Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/resources/formats/pdf/pandoc/pandoc.tex
12923 views
1
$-- part of this file are now in 'common.latex' pandoc's template
2
$-- however we keep this partial template for backward compatibility
3
$-- as `pandoc.tex` is a custom Quarto partial that we insert in Pandoc's one.
4
$if(highlighting-macros)$
5
$highlighting-macros$
6
$endif$
7
8
$tables.tex()$
9
$graphics.tex()$
10
$if(svg)$
11
\usepackage{svg}
12
$endif$
13
14
$--
15
$-- strikeout/underline
16
$--
17
$if(strikeout)$
18
\ifLuaTeX
19
\usepackage{luacolor}
20
\usepackage[soul]{lua-ul}
21
\else
22
\usepackage{soul}
23
$if(beamer)$
24
\makeatletter
25
\let\HL\hl
26
\renewcommand\hl{% fix for beamer highlighting
27
\let\set@color\beamerorig@set@color
28
\let\reset@color\beamerorig@reset@color
29
\HL}
30
\makeatother
31
$endif$
32
$if(CJKmainfont)$
33
\ifXeTeX
34
% soul's \st doesn't work for CJK:
35
\usepackage{xeCJKfntef}
36
\renewcommand{\st}[1]{\sout{#1}}
37
\fi
38
$endif$
39
\fi
40
$endif$
41
42
$citations.tex()$
43
44
$babel-lang.tex()$
45
46
$--
47
$-- pagestyle
48
$--
49
$if(pagestyle)$
50
\pagestyle{$pagestyle$}
51
$endif$
52
53
$--
54
$-- prevent overfull lines
55
$--
56
\setlength{\emergencystretch}{3em} % prevent overfull lines
57
58
$tightlist.tex()$
59
60
$--
61
$-- subfigure support
62
$--
63
$if(subfigure)$
64
\usepackage{subcaption}
65
$endif$
66
67
$--
68
$-- text direction support for pdftex
69
$--
70
$if(dir)$
71
\ifPDFTeX
72
\TeXXeTstate=1
73
\newcommand{\RL}[1]{\beginR #1\endR}
74
\newcommand{\LR}[1]{\beginL #1\endL}
75
\newenvironment{RTL}{\beginR}{\endR}
76
\newenvironment{LTR}{\beginL}{\endL}
77
\fi
78
\ifluatex
79
\newcommand{\RL}[1]{\bgroup\textdir TRT#1\egroup}
80
\newcommand{\LR}[1]{\bgroup\textdir TLT#1\egroup}
81
\newenvironment{RTL}{\textdir TRT\pardir TRT\bodydir TRT}{}
82
\newenvironment{LTR}{\textdir TLT\pardir TLT\bodydir TLT}{}
83
\fi
84
$endif$
85
86
$biblio-config.tex()$
87
88
$--
89
$-- csquotes
90
$--
91
$if(csquotes)$
92
\usepackage[$for(csquotesoptions)$$csquotesoptions$$sep$,$endfor$]{csquotes}
93
$endif$
94
95
$for(header-includes)$
96
$header-includes$
97
$endfor$
98
99