plenty improvements for latex.conf
authorChristian Thaeter <ct@pipapo.org>
Mon, 9 Aug 2010 05:16:40 +0000 (07:16 +0200)
committerChristian Thaeter <ct@pipapo.org>
Mon, 9 Aug 2010 05:16:40 +0000 (07:16 +0200)
doc/latex.conf

index 29653f7..ab05d9d 100644 (file)
@@ -13,7 +13,7 @@ subs=quotes,replacements,attributes,macros,specialcharacters,replacements2
 # The listing block uses a LaTeX verbatim environment where special characters don't need to be escaped.
 # Hence only "callouts" substitution should be applied.
 [blockdef-listing]
-subs=callouts
+source-style=template="listingblock",subs=("callouts",)
 
 
 [attributes]
@@ -28,11 +28,12 @@ latex-use-custom-list-items!
 latex-use-colored-tables!
 latex-use-running-title-headings!
 latex-use-colored-sidebar-blocks!
+newline=\n
 
 [miscellaneous]
 subsnormal=quotes,specialwords,replacements,attributes,macros,specialcharacters,replacements2
 #subsnormal=quotes,specialwords,replacements,attributes,macros,passthroughs,specialcharacters,replacements2
-subsverbatim=callouts,specialcharacters
+subsverbatim=callouts,specialcharacters,replacements2
 outfilesuffix=.tex
 # Screen width in pixels.
 pagewidth=418
@@ -151,7 +152,7 @@ _=\_{}
 
 [image-blockmacro]
 \begin\{figure\}
-\hypertarget\{{id}\}\{\}
+\\hypertarget\{{id}\}\{\}
 \caption\{{title}\}
 \href\{{link}\}\{%
 \includegraphics[{scale?scale={scale},}{width?width={width}pt,}{height? height={height}pt}]\{{target}\}%
@@ -182,17 +183,17 @@ _=\_{}
 [literal-inlinemacro]
 
 [listtags-bulleted]
-list={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{itemize\}|\end\{itemize\}
+list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{itemize\}|\end\{itemize\}
 item=\item%|
 text=|
 
 [listtags-numbered]
-list={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
+list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
 item=\item%|
 text=|
 
 [listtags-labeled]
-list={title?\minisec\{{title}\}} \par{id?\label\{{id}\}\hypertarget\{{id}\}\{\}} |
+list={title?\minisec\{{title}\}} \par{id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} |
 item=\begin\{quote\}|\end\{quote\}
 text=|
 term=\noindent\textbf\{%|\}
@@ -200,7 +201,7 @@ entry=
 label=
 
 [listtags-horizontal]
-list={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{description\}|\end\{description\}
+list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{description\}|\end\{description\}
 item=
 text=|
 term=\item[%|]
@@ -208,12 +209,12 @@ entry=
 label=
 
 [listtags-callout]
-list={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
+list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
 item=\item%|
 text=|
 
 [listtags-qanda]
-list={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
+list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
 item=\begin\{quotation\}|\end\{quotation\}
 text=|
 term=|
@@ -221,7 +222,7 @@ entry=\item%|
 label=
 
 [listtags-glossary]
-list={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
+list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
 item=\item%|
 text=|
 term=\item%|
@@ -229,7 +230,7 @@ entry=
 label=
 
 [listtags-bibliography]
-list=biblist={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{description\} | \end\{description\}
+list=biblist={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{description\} | \end\{description\}
 item=|
 text=|
 
@@ -309,8 +310,8 @@ $$passthrough=|
 # Paragraph substitution.
 [paragraph]
 {title%} \par{latex-indent-paragraphs!\noindent\{\}}
-{title#} \paragraph\{{title}\}
-\label\{{id}\}\hypertarget\{{id}\}\{\}
+{title#} \paragraph\{{title}:\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
 
 |
 
@@ -335,15 +336,16 @@ template::[admonitionblock]
 # but inserting the same "[]" below doesn't.
 
 [listingblock]
-\\minisec\{{caption=Listing: }{title}\}
-\label\{{id}\}\hypertarget\{{id}\}\{\}
-\begin\{verbatim\}|\end\{verbatim\}
+\minisec\{{caption=Listing: }{title}\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
+\begin\{verbatim\}
+|{newline}
+\end\{verbatim\}
 
-% FIXXME: dirty hack to circumvent missing \n after verbatim
 
 [literalblock]
 \minisec\{{title}\}
-\label\{{id}\}\hypertarget\{{id}\}\{\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
 \begin\{alltt\}
 
 |
@@ -352,7 +354,7 @@ template::[admonitionblock]
 
 [verseblock]
 \minisec\{{title}\}
-\label\{{id}\}\hypertarget\{{id}\}\{\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
 \begin\{alltt\}
 \normalfont\{\}
 
@@ -361,7 +363,7 @@ template::[admonitionblock]
 \end\{alltt\}
 
 [sidebarblock]
-\label\{{id}\}\hypertarget\{{id}\}\{\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
 \par\noindent{}
 ifndef::latex-use-colored-sidebar-blocks[]
 \setlength\{\tabcolsep\}\{0pt\}
@@ -391,7 +393,7 @@ endif::latex-use-colored-sidebar-blocks[]
 
 [quoteblock]
 \minisec\{{title}\}
-\label\{{id}\}\hypertarget\{{id}\}\{\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
 \begin\{quote\}
 
 |
@@ -405,7 +407,7 @@ endif::latex-use-colored-sidebar-blocks[]
 
 [exampleblock]
 \minisec\{{caption=}{title}\}
-\label\{{id}\}\hypertarget\{{id}\}\{\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
 \begin\{quotation\}
 
 |
@@ -414,7 +416,7 @@ endif::latex-use-colored-sidebar-blocks[]
 
 [admonitionblock]
 \begin\{addmargin*\}[0em]\{0em\}
-\label\{{id}\}\hypertarget\{{id}\}\{\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
 \begin\{minipage\}\{\linewidth\}
 {icons#} \includegraphics\{{icon={iconsdir}/{name}.png}\}
 {icons%} \minisec\{{caption}\}
@@ -479,7 +481,7 @@ endif::latex-use-colored-tables[]
 {eval:{rowcount}{gt}{latex-table-rowlimit}} {colspecs}
 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|sides:|}
 {eval:{rowcount}{gt}{latex-table-rowlimit}} \}
-{eval:{rowcount}{gt}{latex-table-rowlimit}} \hypertarget\{{id}\}\{\}
+{eval:{rowcount}{gt}{latex-table-rowlimit}} \\hypertarget\{{id}\}\{\}
 {eval:{rowcount}{gt}{latex-table-rowlimit}} \caption\{{title}\}
 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|topbot:\hline}
 {eval:{rowcount}{gt}{latex-table-rowlimit}} {headrows}
@@ -494,7 +496,7 @@ endif::latex-use-colored-tables[]
 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title%} \par{latex-indent-paragraphs!\noindent}
 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \begin\{table\}
 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \begin\{center\}
-{eval:{rowcount}{lt}={latex-table-rowlimit}} \hypertarget\{{id}\}\{\}
+{eval:{rowcount}{lt}={latex-table-rowlimit}} \\hypertarget\{{id}\}\{\}
 {eval:{rowcount}{lt}={latex-table-rowlimit}} \caption\{{title}\}
 {eval:{rowcount}{lt}={latex-table-rowlimit}} \begin\{tabular\}\{lllllllllllllll
 {eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|sides:|}
@@ -539,19 +541,19 @@ endif::latex-use-bibliography-environment[]
 
 
 [toc]
-\label\{{id}\}\hypertarget\{{id}\}\{\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
 \tableofcontents
 
 [index]
 \setindexpreamble\{
 |
 \}
-\label\{{id}\}\hypertarget\{{id}\}\{\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
 \printindex
 
 ifdef::latex-use-bibliography-environment[]
 [bibliography]
-\label\{{id}\}\hypertarget\{{id}\}\{\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
 \begin\{thebibliography\}\{99\}
 |
 \end\{thebibliography\}
@@ -559,11 +561,11 @@ endif::latex-use-bibliography-environment[]
 
 [appendix]
 \appendix
-\label\{{id}\}\hypertarget\{{id}\}\{\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
 |
 
 [abstract]
-\label\{{id}\}\hypertarget\{{id}\}\{\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
 \begin\{abstract\}
 |
 
@@ -572,7 +574,7 @@ endif::latex-use-bibliography-environment[]
 [abstractblock]
 
 [dedication]
-\label\{{id}\}\hypertarget\{{id}\}\{\}
+\label\{{id}\}\\hypertarget\{{id}\}\{\}
 \dedication\{
 |
 \}
@@ -582,7 +584,7 @@ endif::latex-use-bibliography-environment[]
 ifdef::doctype-book[]
 \frontmatter
 \chapter*\{Preface\}
-\label\{preamble\}\hypertarget\{{preamble}\}\{\}
+\label\{preamble\}\\hypertarget\{{preamble}\}\{\}
 endif::doctype-book[]
 
 
@@ -631,7 +633,7 @@ endif::doctype-book[]
 
 [header]
 {encoding$UTF-8:}% coding: utf-8
-\documentclass [a4paper,abstracton,titlepage,openright]\{{doctype@article:scrartcl:scrbook}\}
+\documentclass [a4paper,abstracton,titlepage,halfparskip,openright,draft]\{{doctype@article:scrartcl:scrbook}\}
 \pagestyle\{{latex-use-running-title-headings?headings}{latex-use-running-title-headings!plain}\}
 \usepackage\{makeidx\}
 \usepackage[table]\{xcolor\}
@@ -668,6 +670,7 @@ endif::doctype-book[]
 \usepackage\{verbatim\}
 \usepackage\{moreverb\}
 \usepackage\{upquote\}
+\usepackage\{bookman\}
 
 %\lstset\{basicstyle=\footnotesize\ttfamily,showstringspaces=false,breaklines,frame=single, rulecolor=\color\{ListingBorderColor\}, xleftmargin=0cm, linewidth=0.95\textwidth\}
 
@@ -696,5 +699,5 @@ endif::doctype-book[]
 {doctitle#\maketitle}
 
 [footer]
-\label\{footer\}\hypertarget\{footer\}\{\}
+\label\{footer\}\\hypertarget\{footer\}\{\}
 \end\{document\}