useful-linux-commands/parts/4-commands.tex

76 lines
1.8 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.1]{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,
}
% Lettrine options
%\renewcommand{\LettrineFontHook}{\Zallmanfamily} %\color{green5}} % Initial font and color
\renewcommand{\LettrineFontHook}{\EileenBlfamily} %\color{green5}} % Initial font and color
\renewcommand*{\DefaultLhang}{0.5} % Default lhang value
% Ninecolors saturation
\NineColors{saturation=low}
% tcolorbox macro
\newcommand{\ktcbox}[1]{
\begin{tcolorbox}[
boxrule=0.5pt,
arc=4mm,
colbacktitle=green9,
coltitle=green3,
colback=white,
colframe=green7,
fonttitle=\Fontlukas\bfseries\slshape\Large,
fontupper=\small,
title=How I Use This:
]#1
\end{tcolorbox}
}