Changeset View
Changeset View
Standalone View
Standalone View
autotests/input/highlight.tex
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
48 | \test | 48 | \test | ||
49 | \end{test} | 49 | \end{test} | ||
50 | \%no comment | 50 | \%no comment | ||
51 | \end{equation*} | 51 | \end{equation*} | ||
52 | 52 | | |||
53 | \{ %this should be comment | 53 | \{ %this should be comment | ||
54 | 54 | | |||
55 | \verb%this shouldn't be%and this should be normal text | 55 | \verb%this shouldn't be%and this should be normal text | ||
56 | \verb!verbatim text! normal text | ||||
57 | | ||||
58 | text \texttt{more text} | ||||
56 | 59 | | |||
57 | \begin{verbatim} | 60 | \begin{verbatim} | ||
58 | text inside a verbatim environment is also treated special $ %, | 61 | text inside a verbatim environment is also treated special $ %, | ||
59 | you can even put a \begin{verbatim} inside | 62 | you can even put a \begin{verbatim} inside | ||
60 | \end{verbatim} | 63 | \end{verbatim} | ||
61 | 64 | | |||
62 | normal | 65 | normal | ||
63 | 66 | | |||
64 | \begin{Verbatim} | 67 | \begin{Verbatim} | ||
65 | &@@#^%&^#$ | 68 | &@@#^%&^#$ | ||
66 | \end{Verbatim} | 69 | \end{Verbatim} | ||
67 | 70 | | |||
68 | \begin{Verbatim*} | 71 | \begin{Verbatim*} | ||
69 | @*&^#@*(^#(*@& | 72 | @*&^#@*(^#(*@& | ||
70 | \end{Verbatim*} | 73 | \end{Verbatim*} | ||
71 | 74 | | |||
72 | normal | 75 | normal | ||
73 | 76 | | |||
77 | \begin{Verbatim} | ||||
78 | \begin{verbatim} | ||||
79 | This is a verbatim block. | ||||
80 | \end{verbatim} | ||||
81 | \end{Verbatim} | ||||
82 | | ||||
83 | normal | ||||
84 | | ||||
74 | % test alignat | 85 | % test alignat | ||
75 | \begin{alignat}{2} | 86 | \begin{alignat}{2} | ||
76 | A &= B &= C \\ | 87 | A &= B &= C \\ | ||
77 | A &= B &= C | 88 | A &= B &= C | ||
78 | \end{alignat} | 89 | \end{alignat} | ||
79 | normal text | 90 | normal text | ||
80 | 91 | | |||
81 | \iffalse | 92 | \iffalse | ||
82 | \fill commented out text | 93 | \fill commented out text | ||
83 | \fi | 94 | \fi | ||
84 | 95 | | |||
96 | % Math mode | ||||
97 | | ||||
98 | Depending on the value of $x$ the equation \( f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \) may diverge or converge. | ||||
99 | | ||||
100 | \[ f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \] | ||||
101 | | ||||
102 | \[ | ||||
103 | S = \{ z \in \mathbb{C}\, |\, |z| < 1 \} \quad \textrm{and} \quad S_2=\partial{S} | ||||
104 | \] | ||||
105 | | ||||
106 | \[ | ||||
107 | \frac{ | ||||
108 | \begin{array}[b]{r} | ||||
109 | \left( x_1 x_2 \right)\\ | ||||
110 | \times \left( x'_1 x'_2 \right) | ||||
111 | \end{array} | ||||
112 | }{ | ||||
113 | \left( y_1y_2y_3y_4 \right) | ||||
114 | } | ||||
115 | \] | ||||
116 | | ||||
117 | \begin{eqnarray*} | ||||
118 | \begin{eqnarray*} | ||||
119 | f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \\ | ||||
120 | \textstyle f(x) = \textstyle \sum_{i=0}^{n} \frac{a_i}{1+x} \\ | ||||
121 | \scriptstyle f(x) = \scriptstyle \sum_{i=0}^{n} \frac{a_i}{1+x} \\ | ||||
122 | \scriptscriptstyle f(x) = \scriptscriptstyle \sum_{i=0}^{n} \frac{a_i}{1+x} | ||||
123 | \end{eqnarray*} | ||||
124 | \end{eqnarray*} | ||||
125 | | ||||
126 | \begin{xalignat}{3} | ||||
127 | i_{11} & =i_{23}\nonumber | ||||
128 | \end{xalignat} | ||||
129 | | ||||
130 | c | ||||
131 | \begin{equation} | ||||
132 | c | ||||
133 | \begin{aligned} | ||||
134 | a & b\\ | ||||
135 | c & d | ||||
136 | \end{aligned} | ||||
137 | c | ||||
138 | \end{equation} | ||||
139 | c | ||||
140 | | ||||
141 | $$E=mc^2$$ | ||||
142 | | ||||
143 | \begin{equation} | ||||
144 | E=m | ||||
145 | \end{equation} | ||||
146 | | ||||
147 | \begin{equation | ||||
148 | x=3\textrm{plop} | ||||
149 | \end{equation} | ||||
150 | | ||||
151 | \[ \begin{array}{llll} | ||||
152 | x^3 = (-x)^3 & \text{if $x > 0$}\\ | ||||
153 | x^3 = (-x)^3 & \text{if {$x > 0$}}\\ | ||||
154 | x^3 = (-x)^3 & \text{if {\color{green} $x > 0$}}\\ | ||||
155 | \end{array} \] | ||||
156 | | ||||
157 | \section*{Notes for My Paper} | ||||
158 | | ||||
159 | \begin{center} | ||||
160 | \begin{tabular}{ |c|c|c| } | ||||
161 | \hline | ||||
162 | cell1 & cell2 & cell3 \\ | ||||
163 | cell4 & cell5 & cell6 \\ | ||||
164 | cell7 & cell8 & cell9 \\ | ||||
165 | \hline | ||||
166 | \end{tabular} | ||||
167 | | ||||
168 | \begin{tabular*}{0.75\textwidth}{@{\extracolsep{\fill} } | c | c | c | r | } | ||||
169 | \hline | ||||
170 | label 1 & label 2 & label 3 & label 4 \\ | ||||
171 | \hline | ||||
172 | item 1 & item 2 & item 3 & item 4 \\ | ||||
173 | \hline | ||||
174 | \end{tabular*} | ||||
175 | | ||||
176 | \begin{tabular*}{0.75\textwidth}{ | c | c | c | r | } | ||||
177 | \hline | ||||
178 | label 1 & label 2 & label 3 & label 4 \\ | ||||
179 | \hline | ||||
180 | item 1 & item 2 & item 3 & item 4 \\ | ||||
181 | \hline | ||||
182 | \end{tabular*} | ||||
183 | \end{center} | ||||
184 | | ||||
185 | | ||||
186 | \begin{tabularx}{1\textwidth}{ |>{\setlength\hsize{1\hsize}\centering}X|>{\setlength\hsize{1\hsize}\raggedleft}X@{} >{\setlength\hsize{1\hsize}\raggedright}X|>{\setlength\hsize{1\hsize}\centering}X| } | ||||
187 | \hline | ||||
188 | Label 1 & \multicolumn{2}{>{\centering\setlength\hsize{2\hsize} }X|}{Label 2} & Label 3\tabularnewline | ||||
189 | \hline | ||||
190 | 123 & 123 & 456 & 123 \tabularnewline | ||||
191 | \hline | ||||
192 | 123 & 123 & 456 & 123 \tabularnewline | ||||
193 | \hline | ||||
194 | \end{tabularx} | ||||
195 | | ||||
196 | \begin{lstlisting} | ||||
197 | Write('Case insensitive '); | ||||
198 | Write('Pascal keywords.'); | ||||
199 | \end{lstlisting} | ||||
200 | | ||||
201 | \begin{lstlisting}%[frame=single] | ||||
202 | Write('Case insensitive '); | ||||
203 | Write('Pascal keywords.'); | ||||
204 | \end{lstlisting} | ||||
205 | | ||||
206 | \begin{lstlisting}[frame=single] | ||||
207 | Write('Case insensitive '); | ||||
208 | Write('Pascal keywords.'); | ||||
209 | \end{lstlisting} | ||||
210 | | ||||
211 | \begin{lstlisting}[frame=single] % blah blah | ||||
212 | Write('Case insensitive '); | ||||
213 | Write('Pascal keywords.'); | ||||
214 | \end{lstlisting} | ||||
215 | | ||||
216 | \begin{lstlisting} | ||||
217 | [frame=single] % blah blah | ||||
218 | Write('Case insensitive '); | ||||
219 | Write('Pascal keywords.'); | ||||
220 | \end{lstlisting} | ||||
221 | | ||||
222 | \begin{minted}{python} | ||||
223 | def foo(x): | ||||
224 | return x | ||||
225 | \end{minted} | ||||
226 | | ||||
227 | \begin{minted} | ||||
228 | % blah blah | ||||
229 | {python} | ||||
230 | def foo(x): | ||||
231 | return x | ||||
232 | \end{minted} | ||||
233 | | ||||
234 | \begin{minted}[frame=lines]{python} | ||||
235 | def foo(x): | ||||
236 | return x | ||||
237 | \end{minted} | ||||
238 | | ||||
239 | \begin{minted} | ||||
240 | % plop | ||||
241 | [frame=lines, | ||||
242 | fontsize=\footnotesize | ||||
243 | ] | ||||
244 | % ok | ||||
245 | {python} | ||||
246 | def foo(x): | ||||
247 | return x | ||||
248 | \end{minted} | ||||
249 | | ||||
250 | \begin{comment} | ||||
251 | This is a comment block. | ||||
252 | \end{comment} | ||||
253 | | ||||
254 | \documentclass{article} | ||||
255 | \usepackage{fancyvrb} | ||||
256 | | ||||
257 | \documentclass[12pt]{article} | ||||
258 | \begin{document} | ||||
259 | | ||||
260 | Text that has a footnote\footnote{This $i_s$ the \[i_s\] $$x_i$$ \(x_i\)footnote}\addtocounter{footnote}{-1}\addtocounter{footnote}{-1} looks like this. Later text referring to same footnote\footnotemark uses the other command. | ||||
85 | 261 | | |||
262 | \end{document} |