Compare commits

...

4 Commits
1.1 ... master

Author SHA1 Message Date
345a811c5d
fix draft 2021-08-04 11:39:53 +02:00
945682f272
Fix acronym hyperlinks 2021-06-05 16:33:09 +02:00
b1f12a4a24
Add co-supervisor
- Add option to add one co-supervisor
- Add option to aline supervisor and author
2021-05-28 19:19:04 +02:00
6ec27a84bb
LaTeKiSS 1.2
- Update template to support the `--citeproc` flag
2021-05-28 13:30:02 +02:00
2 changed files with 85 additions and 23 deletions

View File

@ -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 filtro [pandoc-citeproc][].
È possibile gestire la bibliografia attraverso il flag `--citeproc`.
#### Compilazione degli esempi
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-citeproc]: https://github.com/jgm/pandoc-citeproc

View File

@ -53,14 +53,14 @@ $if(linestretch)$
\usepackage{setspace}
$endif$
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage{iftex}
\ifPDFTeX
\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,21 +224,24 @@ $for(polyglossia-otherlangs)$
\setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$}
$endfor$
\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)$
$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
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\ifPDFTeX
\TeXXeTstate=1
\newcommand{\RL}[1]{\beginR #1\endR}
\newcommand{\LR}[1]{\beginL #1\endL}
@ -246,6 +249,7 @@ $if(dir)$
\newenvironment{LTR}{\beginL}{\endL}
\fi
$endif$
$if(natbib)$
\usepackage[$natbiboptions$]{natbib}
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
@ -256,17 +260,37 @@ $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}
\newenvironment{cslreferences}%
{$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
\everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
{\par}
\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}
$endif$
\PassOptionsToPackage{
$if(draf)$
$if(draft)$
drafting=true,
$endif$
$if(toc-aligned)$
@ -292,7 +316,6 @@ $endif$
$endif$
}{classicthesis}
\usepackage{classicthesis}
\usepackage{graphicx}
$if(acronym)$
@ -382,7 +405,13 @@ $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)$
@ -395,7 +424,44 @@ $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$}
@ -492,13 +558,11 @@ $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$
%*******************************************************