git.iko.soy/typeable/pandoc
on master help sign in
LaTeX writer tests updated,

+ for new handling of verbatim environments + for change from textwidth to columnwidth in table output (so that tables look right in columnar output) git-svn-id: https://pandoc.googlecode.com/svn/trunk@811 788f1e2b-df1e-0410-8736-df70ead52e1b

commit06208f4e25d7f700fbe2ff3bb7de9d981b3f9bf2 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSat 28 Jul 2007, 02:32 (19 years ago) parent9939b0f
2 files changed+14−13
tests/tables.latex+5−5 tests/writer.latex+9−8
tests/tables.latex+5−5
@@ -2,7 +2,7 @@ Simple table with caption:
22
33\begin{table}[h]
44\begin{center}
5−\begin{tabular}{>{\PBS\raggedleft\hspace{0pt}}p{0.15\textwidth}>{\PBS\raggedright\hspace{0pt}}p{0.09\textwidth}>{\PBS\centering\hspace{0pt}}p{0.16\textwidth}>{\PBS\raggedright\hspace{0pt}}p{0.13\textwidth}}
5+\begin{tabular}{>{\PBS\raggedleft\hspace{0pt}}p{0.15\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.09\columnwidth}>{\PBS\centering\hspace{0pt}}p{0.16\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.13\columnwidth}}
66Right
77 & Left
88 & Center
@@ -32,7 +32,7 @@ Right
3232Simple table without caption:
3333
3434\begin{center}
35−\begin{tabular}{>{\PBS\raggedleft\hspace{0pt}}p{0.15\textwidth}>{\PBS\raggedright\hspace{0pt}}p{0.09\textwidth}>{\PBS\centering\hspace{0pt}}p{0.16\textwidth}>{\PBS\raggedright\hspace{0pt}}p{0.13\textwidth}}
35+\begin{tabular}{>{\PBS\raggedleft\hspace{0pt}}p{0.15\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.09\columnwidth}>{\PBS\centering\hspace{0pt}}p{0.16\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.13\columnwidth}}
3636Right
3737 & Left
3838 & Center
@@ -61,7 +61,7 @@ Simple table indented two spaces:
6161
6262\begin{table}[h]
6363\begin{center}
64−\begin{tabular}{>{\PBS\raggedleft\hspace{0pt}}p{0.15\textwidth}>{\PBS\raggedright\hspace{0pt}}p{0.09\textwidth}>{\PBS\centering\hspace{0pt}}p{0.16\textwidth}>{\PBS\raggedright\hspace{0pt}}p{0.13\textwidth}}
64+\begin{tabular}{>{\PBS\raggedleft\hspace{0pt}}p{0.15\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.09\columnwidth}>{\PBS\centering\hspace{0pt}}p{0.16\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.13\columnwidth}}
6565Right
6666 & Left
6767 & Center
@@ -92,7 +92,7 @@ Multiline table with caption:
9292
9393\begin{table}[h]
9494\begin{center}
95−\begin{tabular}{>{\PBS\centering\hspace{0pt}}p{0.15\textwidth}>{\PBS\raggedright\hspace{0pt}}p{0.14\textwidth}>{\PBS\raggedleft\hspace{0pt}}p{0.16\textwidth}>{\PBS\raggedright\hspace{0pt}}p{0.34\textwidth}}
95+\begin{tabular}{>{\PBS\centering\hspace{0pt}}p{0.15\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.14\columnwidth}>{\PBS\raggedleft\hspace{0pt}}p{0.16\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.34\columnwidth}}
9696Centered Header
9797 & Left Aligned
9898 & Right Aligned
@@ -117,7 +117,7 @@ Second
117117Multiline table without caption:
118118
119119\begin{center}
120−\begin{tabular}{>{\PBS\centering\hspace{0pt}}p{0.15\textwidth}>{\PBS\raggedright\hspace{0pt}}p{0.14\textwidth}>{\PBS\raggedleft\hspace{0pt}}p{0.16\textwidth}>{\PBS\raggedright\hspace{0pt}}p{0.34\textwidth}}
120+\begin{tabular}{>{\PBS\centering\hspace{0pt}}p{0.15\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.14\columnwidth}>{\PBS\raggedleft\hspace{0pt}}p{0.16\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.34\columnwidth}}
121121Centered Header
122122 & Left Aligned
123123 & Right Aligned
tests/writer.latex+9−8
@@ -1,6 +1,7 @@
11\documentclass{article}
22\usepackage{ucs}
33\usepackage[utf8x]{inputenc}
4+\usepackage[Q=yes,verbatimenv=yes,pverb-linebreak=no]{examplep}
45\setlength{\parindent}{0pt}
56\setlength{\parskip}{6pt plus 2pt minus 1pt}
67\newcommand{\textsubscript}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
@@ -412,7 +413,7 @@ So is \textbf{\emph{this}} word.
412413
413414So is \textbf{\emph{this}} word.
414415
415−This is code: \verb`>`, \verb`$`, \verb`\`, \verb`\$`, \verb`<html>`.
416+This is code: \Q{\>}, \Q{\$}, \Q{\\}, \Q{\\\$}, \Q{\<html\>}.
416417
417418\sout{This is \emph{strikeout}.}
418419
@@ -434,7 +435,7 @@ These should not be superscripts or subscripts, because of the unescaped spaces:
434435
435436`He said, ``I want to go.''\,' Were you alive in the 70's?
436437
437−Here is some quoted `\verb`code`' and a ``\href{http://example.com/?foo=1&bar=2}{quoted link}''.
438+Here is some quoted `\Q{code}' and a ``\href{http://example.com/?foo=1&bar=2}{quoted link}''.
438439
439440Some dashes: one---two---three---four---five.
440441
@@ -460,9 +461,9 @@ Ellipses\ldots{}and\ldots{}and\ldots{}.
460461These shouldn't be math:
461462
462463\begin{itemize}
463−\item To get the famous equation, write \verb`$e = mc^2$`.
464+\item To get the famous equation, write \Q{\$e\ \=\ mc\^2\$}.
464465\item \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is emphasized.)
465−\item Escaped \verb`$`: \$73 \emph{this should be emphasized} 23\$.
466+\item Escaped \Q{\$}: \$73 \emph{this should be emphasized} 23\$.
466467\end{itemize}
467468Here's a LaTeX table:
468469
@@ -603,7 +604,7 @@ An e-mail address: \href{mailto:nobody@nowhere.net}{nobody@nowhere.net}
603604Blockquoted: \href{http://example.com/}{http://example.com/}
604605
605606\end{quote}
606−Auto-links should not occur here: \verb`<http://example.com/>`
607+Auto-links should not occur here: \Q{\<http\:\/\/example\.com\/\>}
607608
608609\begin{verbatim}
609610or here: <http://example.com/>
@@ -626,10 +627,10 @@ Here is a footnote reference,\footnote{Here is the footnote. It can go anywhere
626627
627628Subsequent blocks are indented to show that they belong to the footnote (as with list items).
628629
629−\begin{verbatim}
630+\begin{Verbatim}
630631 { <code> }
631−\end{verbatim}
632−If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.} This should \emph{not} be a footnote reference, because it contains a space.[\^{}my note] Here is an inline note.\footnote{This is \emph{easier} to type. Inline notes may contain \href{http://google.com}{links} and \verb`]` verbatim characters, as well as [bracketed text].}
632+\end{Verbatim}
633+If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.} This should \emph{not} be a footnote reference, because it contains a space.[\^{}my note] Here is an inline note.\footnote{This is \emph{easier} to type. Inline notes may contain \href{http://google.com}{links} and \Q{\]} verbatim characters, as well as [bracketed text].}
633634
634635\begin{quote}
635636Notes can go in quotes.\footnote{In quote.}