Use ` as default character for \verb in LaTeX output.
If ` is in the content to be escaped, another symbol will be used as before. git-svn-id: https://pandoc.googlecode.com/svn/trunk@806 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
parent
56016a998d
commit
4283ce3662
2 changed files with 7 additions and 7 deletions
|
@ -216,7 +216,7 @@ inlineToLaTeX (Subscript lst) = do
|
|||
return $ "\\textsubscript{" ++ contents ++ "}"
|
||||
inlineToLaTeX (Code str) = return $ "\\verb" ++ [chr] ++ stuffing ++ [chr]
|
||||
where stuffing = str
|
||||
chr = ((enumFromTo '!' '~') \\ stuffing) !! 0
|
||||
chr = (('`':(enumFromTo '!' '~')) \\ stuffing) !! 0
|
||||
inlineToLaTeX (Quoted SingleQuote lst) = do
|
||||
contents <- inlineListToLaTeX lst
|
||||
let s1 = if (not (null lst)) && (isQuoted (head lst)) then "\\," else ""
|
||||
|
|
|
@ -412,7 +412,7 @@ So is \textbf{\emph{this}} word.
|
|||
|
||||
So is \textbf{\emph{this}} word.
|
||||
|
||||
This is code: \verb!>!, \verb!$!, \verb!\!, \verb!\$!, \verb!<html>!.
|
||||
This is code: \verb`>`, \verb`$`, \verb`\`, \verb`\$`, \verb`<html>`.
|
||||
|
||||
\sout{This is \emph{strikeout}.}
|
||||
|
||||
|
@ -434,7 +434,7 @@ These should not be superscripts or subscripts, because of the unescaped spaces:
|
|||
|
||||
`He said, ``I want to go.''\,' Were you alive in the 70's?
|
||||
|
||||
Here is some quoted `\verb!code!' and a ``\href{http://example.com/?foo=1&bar=2}{quoted link}''.
|
||||
Here is some quoted `\verb`code`' and a ``\href{http://example.com/?foo=1&bar=2}{quoted link}''.
|
||||
|
||||
Some dashes: one---two---three---four---five.
|
||||
|
||||
|
@ -460,9 +460,9 @@ Ellipses\ldots{}and\ldots{}and\ldots{}.
|
|||
These shouldn't be math:
|
||||
|
||||
\begin{itemize}
|
||||
\item To get the famous equation, write \verb!$e = mc^2$!.
|
||||
\item To get the famous equation, write \verb`$e = mc^2$`.
|
||||
\item \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is emphasized.)
|
||||
\item Escaped \verb!$!: \$73 \emph{this should be emphasized} 23\$.
|
||||
\item Escaped \verb`$`: \$73 \emph{this should be emphasized} 23\$.
|
||||
\end{itemize}
|
||||
Here's a LaTeX table:
|
||||
|
||||
|
@ -603,7 +603,7 @@ An e-mail address: \href{mailto:nobody@nowhere.net}{nobody@nowhere.net}
|
|||
Blockquoted: \href{http://example.com/}{http://example.com/}
|
||||
|
||||
\end{quote}
|
||||
Auto-links should not occur here: \verb!<http://example.com/>!
|
||||
Auto-links should not occur here: \verb`<http://example.com/>`
|
||||
|
||||
\begin{verbatim}
|
||||
or here: <http://example.com/>
|
||||
|
@ -629,7 +629,7 @@ Subsequent blocks are indented to show that they belong to the footnote (as with
|
|||
\begin{verbatim}
|
||||
{ <code> }
|
||||
\end{verbatim}
|
||||
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].}
|
||||
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].}
|
||||
|
||||
\begin{quote}
|
||||
Notes can go in quotes.\footnote{In quote.}
|
||||
|
|
Loading…
Reference in a new issue