walking-zine/parts/4-commands.tex

50 lines
1.2 KiB
TeX

%%% Multicolumns
\usepackage{multicol}
\setlength{\columnseprule}{0.5pt}
\def\columnseprulecolor{\color{gray7}}
\setlength{\columnsep}{5mm}
%%% Poetry
\usepackage{verse}
\newcommand{\attrib}[1]{
\nopagebreak{\raggedleft\footnotesize #1\par\vspace{\baselineskip}}
}
\renewcommand{\poemtitlefont}{\normalfont\large\itshape\centering}
%%% Fonts
\usepackage{mathptmx}
%\usepackage{newtxtext,newtxmath}
%%% Text decorations
\newcommand{\kdec}{
\noindent{}\begin{center}
\pgfornament[scale=0.25,color=green6]{85}
\end{center}
}
%%% Misc commands
%\setcounter{secnumdepth}{0}
\newcommand{\kskip}{\\\hphantom{xxx}}
% Make hrefs easier (must load package hyperref}
\newcommand\kref[2]{\href{#1}{{\texttt{#2}}}}
% Put unnumbered sections in TOC, also with idented second lines for Latin names
\newcommand{\ksecp}[3]{
\section*{
% \raggedright
{\small {#1}\kskip{}\textmd{({#2}{\small \textsc{{#3}}}})}
}
\addcontentsline{toc}{section}{{\small {#1} ({#2}{\small \textsc{\textmd{{#3}}}})}}
}
\newcommand{\ksecn}[1]{
\section*{{#1}}
\addcontentsline{toc}{section}{{#1}}
}
% Where are our images?
\graphicspath{{images/}}
% Custom boxes for «tcolorbox» package
\newtcolorbox{kbox}{
colback=white,
sharp corners=all,
boxrule=0.75pt,
colframe=gray8,
}