Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
345a811c5d | |||
945682f272 | |||
b1f12a4a24 | |||
6ec27a84bb |
@ -54,7 +54,7 @@ I link e i riferimenti sono in nero di default, e possibile abilitare il colore
|
|||||||
|
|
||||||
#### Bibliografia
|
#### Bibliografia
|
||||||
|
|
||||||
È possibile gestire la bibliografia attraverso il filtro [pandoc-citeproc][].
|
È possibile gestire la bibliografia attraverso il flag `--citeproc`.
|
||||||
|
|
||||||
#### Compilazione degli esempi
|
#### Compilazione degli esempi
|
||||||
Di seguito è riportato il comando utilizzato per compilare gli esempi forniti nella cartella samples.
|
Di seguito è riportato il comando utilizzato per compilare gli esempi forniti nella cartella samples.
|
||||||
@ -179,5 +179,3 @@ pandoc --template latekiss <input-file> -o <output-file> --top-level-division ch
|
|||||||
|
|
||||||
[pandoc-crossref]: https://lierdakil.github.io/pandoc-crossref/
|
[pandoc-crossref]: https://lierdakil.github.io/pandoc-crossref/
|
||||||
|
|
||||||
[pandoc-citeproc]: https://github.com/jgm/pandoc-citeproc
|
|
||||||
|
|
||||||
|
104
latekiss.tex
104
latekiss.tex
@ -53,14 +53,14 @@ $if(linestretch)$
|
|||||||
\usepackage{setspace}
|
\usepackage{setspace}
|
||||||
$endif$
|
$endif$
|
||||||
\usepackage{amssymb,amsmath}
|
\usepackage{amssymb,amsmath}
|
||||||
\usepackage{ifxetex,ifluatex}
|
\usepackage{iftex}
|
||||||
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
\ifPDFTeX
|
||||||
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
|
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
|
||||||
\usepackage[utf8]{inputenc}
|
\usepackage[utf8]{inputenc}
|
||||||
\usepackage{textcomp} % provide euro and other symbols
|
\usepackage{textcomp} % provide euro and other symbols
|
||||||
\else % if luatex or xetex
|
\else % if luatex or xetex
|
||||||
$if(mathspec)$
|
$if(mathspec)$
|
||||||
\ifxetex
|
\ifXeTeX
|
||||||
\usepackage{mathspec}
|
\usepackage{mathspec}
|
||||||
\else
|
\else
|
||||||
\usepackage{unicode-math}
|
\usepackage{unicode-math}
|
||||||
@ -84,7 +84,7 @@ $for(fontfamilies)$
|
|||||||
$endfor$
|
$endfor$
|
||||||
$if(mathfont)$
|
$if(mathfont)$
|
||||||
$if(mathspec)$
|
$if(mathspec)$
|
||||||
\ifxetex
|
\ifXeTeX
|
||||||
\setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
\setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
||||||
\else
|
\else
|
||||||
\setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
\setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
||||||
@ -94,18 +94,18 @@ $else$
|
|||||||
$endif$
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
$if(CJKmainfont)$
|
$if(CJKmainfont)$
|
||||||
\ifxetex
|
\ifXeTeX
|
||||||
\usepackage{xeCJK}
|
\usepackage{xeCJK}
|
||||||
\setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
|
\setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
|
||||||
\fi
|
\fi
|
||||||
$endif$
|
$endif$
|
||||||
$if(luatexjapresetoptions)$
|
$if(luatexjapresetoptions)$
|
||||||
\ifluatex
|
\ifLuaTeX
|
||||||
\usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset}
|
\usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset}
|
||||||
\fi
|
\fi
|
||||||
$endif$
|
$endif$
|
||||||
$if(CJKmainfont)$
|
$if(CJKmainfont)$
|
||||||
\ifluatex
|
\ifLuaTeX
|
||||||
\usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec}
|
\usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec}
|
||||||
\setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
|
\setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
|
||||||
\fi
|
\fi
|
||||||
@ -216,7 +216,7 @@ $for(header-includes)$
|
|||||||
$header-includes$
|
$header-includes$
|
||||||
$endfor$
|
$endfor$
|
||||||
$if(lang)$
|
$if(lang)$
|
||||||
\ifxetex
|
\ifXeTeX
|
||||||
% Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
|
% Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
|
||||||
\usepackage{polyglossia}
|
\usepackage{polyglossia}
|
||||||
\setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$}
|
\setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$}
|
||||||
@ -224,21 +224,24 @@ $for(polyglossia-otherlangs)$
|
|||||||
\setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$}
|
\setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$}
|
||||||
$endfor$
|
$endfor$
|
||||||
\else
|
\else
|
||||||
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
|
\usepackage[$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
|
||||||
|
% get rid of language-specific shorthands (see #6817):
|
||||||
|
\let\LanguageShortHands\languageshorthands
|
||||||
|
\def\languageshorthands#1{}
|
||||||
$if(babel-newcommands)$
|
$if(babel-newcommands)$
|
||||||
$babel-newcommands$
|
$babel-newcommands$
|
||||||
$endif$
|
$endif$
|
||||||
\fi
|
\fi
|
||||||
$endif$
|
$endif$
|
||||||
\ifluatex
|
\ifLuaTeX
|
||||||
\usepackage{selnolig} % disable illegal ligatures
|
\usepackage{selnolig} % disable illegal ligatures
|
||||||
\fi
|
\fi
|
||||||
$if(dir)$
|
$if(dir)$
|
||||||
\ifxetex
|
\ifXeTeX
|
||||||
% Load bidi as late as possible as it modifies e.g. graphicx
|
% Load bidi as late as possible as it modifies e.g. graphicx
|
||||||
\usepackage{bidi}
|
\usepackage{bidi}
|
||||||
\fi
|
\fi
|
||||||
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
\ifPDFTeX
|
||||||
\TeXXeTstate=1
|
\TeXXeTstate=1
|
||||||
\newcommand{\RL}[1]{\beginR #1\endR}
|
\newcommand{\RL}[1]{\beginR #1\endR}
|
||||||
\newcommand{\LR}[1]{\beginL #1\endL}
|
\newcommand{\LR}[1]{\beginL #1\endL}
|
||||||
@ -246,6 +249,7 @@ $if(dir)$
|
|||||||
\newenvironment{LTR}{\beginL}{\endL}
|
\newenvironment{LTR}{\beginL}{\endL}
|
||||||
\fi
|
\fi
|
||||||
$endif$
|
$endif$
|
||||||
|
|
||||||
$if(natbib)$
|
$if(natbib)$
|
||||||
\usepackage[$natbiboptions$]{natbib}
|
\usepackage[$natbiboptions$]{natbib}
|
||||||
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
|
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
|
||||||
@ -256,17 +260,37 @@ $for(bibliography)$
|
|||||||
\addbibresource{$bibliography$}
|
\addbibresource{$bibliography$}
|
||||||
$endfor$
|
$endfor$
|
||||||
$endif$
|
$endif$
|
||||||
|
$if(nocite-ids)$
|
||||||
|
\nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
|
||||||
|
$endif$
|
||||||
$if(csl-refs)$
|
$if(csl-refs)$
|
||||||
\newlength{\cslhangindent}
|
\newlength{\cslhangindent}
|
||||||
\setlength{\cslhangindent}{1.5em}
|
\setlength{\cslhangindent}{1.5em}
|
||||||
\newenvironment{cslreferences}%
|
\newlength{\csllabelwidth}
|
||||||
{$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
|
\setlength{\csllabelwidth}{3em}
|
||||||
\everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
|
\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
|
||||||
{\par}
|
{% don't indent paragraphs
|
||||||
|
\setlength{\parindent}{0pt}
|
||||||
|
% turn on hanging indent if param 1 is 1
|
||||||
|
\ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi
|
||||||
|
% set entry spacing
|
||||||
|
\ifnum #2 > 0
|
||||||
|
\setlength{\parskip}{#2\baselineskip}
|
||||||
|
\fi
|
||||||
|
}%
|
||||||
|
{}
|
||||||
|
\usepackage{calc}
|
||||||
|
\newcommand{\CSLBlock}[1]{#1\hfill\break}
|
||||||
|
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
|
||||||
|
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
|
||||||
|
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
|
||||||
|
$endif$
|
||||||
|
$if(csquotes)$
|
||||||
|
\usepackage{csquotes}
|
||||||
$endif$
|
$endif$
|
||||||
|
|
||||||
\PassOptionsToPackage{
|
\PassOptionsToPackage{
|
||||||
$if(draf)$
|
$if(draft)$
|
||||||
drafting=true,
|
drafting=true,
|
||||||
$endif$
|
$endif$
|
||||||
$if(toc-aligned)$
|
$if(toc-aligned)$
|
||||||
@ -292,7 +316,6 @@ $endif$
|
|||||||
$endif$
|
$endif$
|
||||||
}{classicthesis}
|
}{classicthesis}
|
||||||
\usepackage{classicthesis}
|
\usepackage{classicthesis}
|
||||||
|
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
|
|
||||||
$if(acronym)$
|
$if(acronym)$
|
||||||
@ -382,7 +405,13 @@ $if(subtitle)$
|
|||||||
\medskip
|
\medskip
|
||||||
\textit{$subtitle$} \\
|
\textit{$subtitle$} \\
|
||||||
$endif$
|
$endif$
|
||||||
|
\end{center}
|
||||||
\vfill
|
\vfill
|
||||||
|
|
||||||
|
%===== superviros and author =====%
|
||||||
|
% centered
|
||||||
|
$if(titlepage-center)$
|
||||||
|
\begin{center}
|
||||||
$if(author)$
|
$if(author)$
|
||||||
\spacedallcaps{\LARGE $author$} \\
|
\spacedallcaps{\LARGE $author$} \\
|
||||||
$if(matr)$
|
$if(matr)$
|
||||||
@ -395,7 +424,44 @@ $if(supervisor)$
|
|||||||
\spacedlowsmallcaps{$supervisor.title$}\\
|
\spacedlowsmallcaps{$supervisor.title$}\\
|
||||||
\spacedlowsmallcaps{$supervisor.name$}\\
|
\spacedlowsmallcaps{$supervisor.name$}\\
|
||||||
$endif$
|
$endif$
|
||||||
|
$if(cosupervisor)$
|
||||||
\vfill
|
\vfill
|
||||||
|
\spacedallcaps{Corelatore}\\
|
||||||
|
\spacedlowsmallcaps{$cosupervisor.title$}\\
|
||||||
|
\spacedlowsmallcaps{$cosupervisor.name$}\\
|
||||||
|
$endif$
|
||||||
|
\end{center}
|
||||||
|
$else$
|
||||||
|
% aligned
|
||||||
|
$if(supervisor)$
|
||||||
|
\begin{minipage}{2in}
|
||||||
|
\spacedallcaps{Relatore:}\\
|
||||||
|
\spacedlowsmallcaps{$supervisor.title$}\\
|
||||||
|
\spacedlowsmallcaps{$supervisor.name$}
|
||||||
|
\end{minipage}
|
||||||
|
$endif$
|
||||||
|
$if(author)$
|
||||||
|
\hfill
|
||||||
|
\begin{minipage}{1.5in}
|
||||||
|
\spacedallcaps{Candidato:}\\
|
||||||
|
\spacedlowsmallcaps{$author$}\\
|
||||||
|
$if(matr)$
|
||||||
|
\spacedlowsmallcaps{$matr$}
|
||||||
|
$endif$
|
||||||
|
\end{minipage}
|
||||||
|
$endif$
|
||||||
|
$if(cosupervisor)$
|
||||||
|
\\
|
||||||
|
\\
|
||||||
|
\\
|
||||||
|
\spacedallcaps{Corelatore:}\\
|
||||||
|
\spacedlowsmallcaps{$cosupervisor.title$}\\
|
||||||
|
\spacedlowsmallcaps{$cosupervisor.name$}
|
||||||
|
$endif$
|
||||||
|
$endif$
|
||||||
|
|
||||||
|
\vfill
|
||||||
|
\begin{center}
|
||||||
$if(academic-year)$
|
$if(academic-year)$
|
||||||
\vfill
|
\vfill
|
||||||
\spacedlowsmallcaps{$academic-year$}
|
\spacedlowsmallcaps{$academic-year$}
|
||||||
@ -492,13 +558,11 @@ $if(ac-title)$
|
|||||||
$else$
|
$else$
|
||||||
\chapter*{Acronyms}
|
\chapter*{Acronyms}
|
||||||
$endif$
|
$endif$
|
||||||
\begin{NoHyper}
|
|
||||||
\begin{acronym}[TDMA]
|
\begin{acronym}[TDMA]
|
||||||
$for(acronym)$
|
$for(acronym)$
|
||||||
\acro{$acronym.short$}{$acronym.long$}
|
\acro{$acronym.short$}{$acronym.long$}
|
||||||
$endfor$
|
$endfor$
|
||||||
\end{acronym}
|
\end{acronym}
|
||||||
\end{NoHyper}
|
|
||||||
\cleardoublepage
|
\cleardoublepage
|
||||||
$endif$
|
$endif$
|
||||||
%*******************************************************
|
%*******************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user