"Fossies" - the Fresh Open Source Software Archive

Member "hevea-2.35/examples/di.tex" (16 Jan 2021, 615 Bytes) of package /linux/www/hevea-2.35.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TeX and LaTeX source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 \documentclass{article}
    2 \newcommand{\zyva}[2]
    3   {\left#1\begin{array}{cc}\hline\hline1&2\\3&4\end{array}\right#2}
    4 \begin{document}
    5 Fraction is centered:
    6 $$
    7 \zyva{[}{]} \times \zyva{\lceil}{\rfloor} \over \zyva{(}{)}
    8 $$
    9 You can see arrows:
   10 $$\newcommand{\demo}[1]{\quad\quad#1{1 \times 2 \times \cdots \times n}\quad\texttt{\string#1}}%
   11 \begin{array}{cc}
   12 \demo{\overleftarrow} & \demo{\overrightarrow}
   13 \end{array}
   14 $$
   15 The arrow extends properly
   16 $$\overrightarrow{1234567890}$$
   17 The arrows extend properly
   18 $$
   19 \alpha\quad\overrightarrow{1234567890}\quad\beta\quad\overleftarrow{9876543210}\quad\gamma
   20 $$
   21 
   22 \end{document}