From 4698c2f5cb565619bc5bcc89024152b7696ed938 Mon Sep 17 00:00:00 2001 From: Andrew Dunning Date: Sun, 11 Oct 2015 02:03:42 -0400 Subject: Add fontenc, indent, subparagraph variables to LaTeX. `fontenc` allows for a different encoding: closes #112. `indent` and `subparagraph` allow the default Pandoc overrides for these features to be disabled. --- default.beamer | 2 +- default.latex | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/default.beamer b/default.beamer index 9198ef010..8cab25b8e 100644 --- a/default.beamer +++ b/default.beamer @@ -29,7 +29,7 @@ $endif$ \usepackage{ifxetex,ifluatex} \usepackage{fixltx2e} % provides \textsubscript \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex - \usepackage[T1]{fontenc} + \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc} \usepackage[utf8]{inputenc} $if(euro)$ \usepackage{eurosym} diff --git a/default.latex b/default.latex index 463b096b6..14b413440 100644 --- a/default.latex +++ b/default.latex @@ -12,7 +12,7 @@ $endif$ \usepackage{ifxetex,ifluatex} \usepackage{fixltx2e} % provides \textsubscript \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex - \usepackage[T1]{fontenc} + \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc} \usepackage[utf8]{inputenc} $if(euro)$ \usepackage{eurosym} @@ -135,8 +135,11 @@ $if(strikeout)$ % avoid problems with \sout in headers with hyperref: \pdfstringdefDisableCommands{\renewcommand{\sout}{}} $endif$ +$if(indent)$ +$else$ \setlength{\parindent}{0pt} \setlength{\parskip}{6pt plus 2pt minus 1pt} +$endif$ \setlength{\emergencystretch}{3em} % prevent overfull lines \providecommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} @@ -174,6 +177,8 @@ $for(header-includes)$ $header-includes$ $endfor$ +$if(subparagraph)$ +$else$ % Redefines (sub)paragraphs to behave more like sections \ifx\paragraph\undefined\else \let\oldparagraph\paragraph @@ -183,6 +188,7 @@ $endfor$ \let\oldsubparagraph\subparagraph \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} \fi +$endif$ \begin{document} $if(title)$ -- cgit v1.2.3