Merge branch 'pseudoruprecht/latexbackend' of git://git.pipapo.org/mob/nobug into...
[nobug] / doc / latex.conf
index 8574393..9444032 100644 (file)
@@ -331,16 +331,29 @@ template::[admonitionblock]
 [passthroughblock]
 |
 
-# FIXME: we get SPURIOUS TEXT at the beginning, but can't delete it.
-# Putting "[]" after the \begin{lstlisting} in the LaTeX output works,
-# but inserting the same "[]" below doesn't.
+# FIXME: without the FANCYVRBSTOP we would get an unwanted
+# blank line before \end{Verbatim}. 
+# I.E.
+#
+# |{newline}
+# \end{Verbatim}
+# 
+# yields
+#
+# <verbatimtext>
+# 
+# \end{Verbatim}
+#
+# in the output .tex. This might be a bug/feature in AsciiDoc 
+# when {newline} is thrown at it.
 
 [listingblock]
 \minisec\{{caption=}{title}\}
 \label\{{id}\}\\hypertarget\{{id}\}\{\}
-\begin\{verbatim\}
+\begin\{Verbatim\}[frame=single]{newline}
 |
-\end\{verbatim\}
+{newline}FANCYVRBSTOP
+\end\{Verbatim\}
 {newline}
 
 
@@ -668,11 +681,14 @@ endif::doctype-book[]
 \usepackage\{textcomp\}
 \usepackage\{alltt\}
 %\usepackage\{listings\}
-\usepackage\{verbatim\}
-\usepackage\{moreverb\}
+%\usepackage\{verbatim\}
+%\usepackage\{moreverb\}
+\usepackage\{fancyvrb\}
 \usepackage\{upquote\}
 \usepackage\{bookman\}
 
+\newcommand*\FancyVerbStopString\{FANCYVRBSTOP\}
+
 %\lstset\{basicstyle=\footnotesize\ttfamily,showstringspaces=false,breaklines,frame=single, rulecolor=\color\{ListingBorderColor\}, xleftmargin=0cm, linewidth=0.95\textwidth\}
 
 {latex-indent-paragraphs%\setlength\{\\parskip\}\{1ex plus 0.5ex minus 0.2ex\}}