Compare commits
No commits in common. "master" and "latekiss_1.1" have entirely different histories.
master
...
latekiss_1
@ -54,7 +54,7 @@ I link e i riferimenti sono in nero di default, e possibile abilitare il colore
|
||||
|
||||
#### Bibliografia
|
||||
|
||||
È possibile gestire la bibliografia attraverso il flag `--citeproc`.
|
||||
È possibile gestire la bibliografia attraverso il filtro [pandoc-citeproc][].
|
||||
|
||||
#### Compilazione degli esempi
|
||||
Di seguito è riportato il comando utilizzato per compilare gli esempi forniti nella cartella samples.
|
||||
@ -179,3 +179,5 @@ pandoc --template latekiss <input-file> -o <output-file> --top-level-division ch
|
||||
|
||||
[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}
|
||||
$endif$
|
||||
\usepackage{amssymb,amsmath}
|
||||
\usepackage{iftex}
|
||||
\ifPDFTeX
|
||||
\usepackage{ifxetex,ifluatex}
|
||||
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
||||
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage{textcomp} % provide euro and other symbols
|
||||
\else % if luatex or xetex
|
||||
$if(mathspec)$
|
||||
\ifXeTeX
|
||||
\ifxetex
|
||||
\usepackage{mathspec}
|
||||
\else
|
||||
\usepackage{unicode-math}
|
||||
@ -84,7 +84,7 @@ $for(fontfamilies)$
|
||||
$endfor$
|
||||
$if(mathfont)$
|
||||
$if(mathspec)$
|
||||
\ifXeTeX
|
||||
\ifxetex
|
||||
\setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
||||
\else
|
||||
\setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
||||
@ -94,18 +94,18 @@ $else$
|
||||
$endif$
|
||||
$endif$
|
||||
$if(CJKmainfont)$
|
||||
\ifXeTeX
|
||||
\ifxetex
|
||||
\usepackage{xeCJK}
|
||||
\setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
|
||||
\fi
|
||||
$endif$
|
||||
$if(luatexjapresetoptions)$
|
||||
\ifLuaTeX
|
||||
\ifluatex
|
||||
\usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset}
|
||||
\fi
|
||||
$endif$
|
||||
$if(CJKmainfont)$
|
||||
\ifLuaTeX
|
||||
\ifluatex
|
||||
\usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec}
|
||||
\setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
|
||||
\fi
|
||||
@ -216,7 +216,7 @@ $for(header-includes)$
|
||||
$header-includes$
|
||||
$endfor$
|
||||
$if(lang)$
|
||||
\ifXeTeX
|
||||
\ifxetex
|
||||
% Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
|
||||
\usepackage{polyglossia}
|
||||
\setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$}
|
||||
@ -224,24 +224,21 @@ $for(polyglossia-otherlangs)$
|
||||
\setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$}
|
||||
$endfor$
|
||||
\else
|
||||
\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{}
|
||||
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
|
||||
$if(babel-newcommands)$
|
||||
$babel-newcommands$
|
||||
$endif$
|
||||
\fi
|
||||
$endif$
|
||||
\ifLuaTeX
|
||||
\ifluatex
|
||||
\usepackage{selnolig} % disable illegal ligatures
|
||||
\fi
|
||||
$if(dir)$
|
||||
\ifXeTeX
|
||||
\ifxetex
|
||||
% Load bidi as late as possible as it modifies e.g. graphicx
|
||||
\usepackage{bidi}
|
||||
\fi
|
||||
\ifPDFTeX
|
||||
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
||||
\TeXXeTstate=1
|
||||
\newcommand{\RL}[1]{\beginR #1\endR}
|
||||
\newcommand{\LR}[1]{\beginL #1\endL}
|
||||
@ -249,7 +246,6 @@ $if(dir)$
|
||||
\newenvironment{LTR}{\beginL}{\endL}
|
||||
\fi
|
||||
$endif$
|
||||
|
||||
$if(natbib)$
|
||||
\usepackage[$natbiboptions$]{natbib}
|
||||
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
|
||||
@ -260,37 +256,17 @@ $for(bibliography)$
|
||||
\addbibresource{$bibliography$}
|
||||
$endfor$
|
||||
$endif$
|
||||
$if(nocite-ids)$
|
||||
\nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
|
||||
$endif$
|
||||
$if(csl-refs)$
|
||||
\newlength{\cslhangindent}
|
||||
\setlength{\cslhangindent}{1.5em}
|
||||
\newlength{\csllabelwidth}
|
||||
\setlength{\csllabelwidth}{3em}
|
||||
\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
|
||||
{% 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}
|
||||
\newenvironment{cslreferences}%
|
||||
{$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
|
||||
\everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
|
||||
{\par}
|
||||
$endif$
|
||||
|
||||
\PassOptionsToPackage{
|
||||
$if(draft)$
|
||||
$if(draf)$
|
||||
drafting=true,
|
||||
$endif$
|
||||
$if(toc-aligned)$
|
||||
@ -316,6 +292,7 @@ $endif$
|
||||
$endif$
|
||||
}{classicthesis}
|
||||
\usepackage{classicthesis}
|
||||
|
||||
\usepackage{graphicx}
|
||||
|
||||
$if(acronym)$
|
||||
@ -405,13 +382,7 @@ $if(subtitle)$
|
||||
\medskip
|
||||
\textit{$subtitle$} \\
|
||||
$endif$
|
||||
\end{center}
|
||||
\vfill
|
||||
|
||||
%===== superviros and author =====%
|
||||
% centered
|
||||
$if(titlepage-center)$
|
||||
\begin{center}
|
||||
$if(author)$
|
||||
\spacedallcaps{\LARGE $author$} \\
|
||||
$if(matr)$
|
||||
@ -424,44 +395,7 @@ $if(supervisor)$
|
||||
\spacedlowsmallcaps{$supervisor.title$}\\
|
||||
\spacedlowsmallcaps{$supervisor.name$}\\
|
||||
$endif$
|
||||
$if(cosupervisor)$
|
||||
\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)$
|
||||
\vfill
|
||||
\spacedlowsmallcaps{$academic-year$}
|
||||
@ -558,11 +492,13 @@ $if(ac-title)$
|
||||
$else$
|
||||
\chapter*{Acronyms}
|
||||
$endif$
|
||||
\begin{NoHyper}
|
||||
\begin{acronym}[TDMA]
|
||||
$for(acronym)$
|
||||
\acro{$acronym.short$}{$acronym.long$}
|
||||
$endfor$
|
||||
\end{acronym}
|
||||
\end{NoHyper}
|
||||
\cleardoublepage
|
||||
$endif$
|
||||
%*******************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user