- Move font files to PrimeTeX.
- Add Roboto as sans serif font and move Roboto Slab to a custom family. - Customize title formatting. - Add boxout macro.
This commit is contained in:
44
Layout.sty
44
Layout.sty
@@ -22,6 +22,9 @@
|
||||
|
||||
\RequirePackage{calc}
|
||||
\RequirePackage[strict]{changepage}
|
||||
% \RequirePackage{caption}
|
||||
% \RequirePackage{graphicx}
|
||||
% \RequirePackage{PrimeTeX/Tables}
|
||||
|
||||
\newlength{\contentwidth}
|
||||
\setlength{\contentwidth}{\textwidth+\marginparsep+\marginparwidth}
|
||||
@@ -30,10 +33,10 @@
|
||||
\setlength{\bigfloatoffset}{0.25in}
|
||||
|
||||
% Maximum width adjustment to fit 2 16x9 screensots on one page.
|
||||
\newlength{\twoscreenshotmaxwidth}
|
||||
\setlength{\twoscreenshotmaxwidth}{0.81in}
|
||||
\newlength{\bigfloatwidth}
|
||||
\setlength{\bigfloatwidth}{0.81in}
|
||||
|
||||
\newcommand{\bigfloat}[4][\twoscreenshotmaxwidth]{%
|
||||
\newcommand{\bigfloat}[4][\bigfloatwidth]{%
|
||||
\begin{#2}[#3]%
|
||||
\begin{adjustwidth*}{-#1+\bigfloatoffset}{-#1-\bigfloatoffset}%
|
||||
\begin{minipage}{#1 * 2 + \textwidth}%
|
||||
@@ -43,10 +46,37 @@
|
||||
\end{#2}%
|
||||
}
|
||||
|
||||
% Title & Heading Options
|
||||
%#region
|
||||
\RequirePackage[sf,raggedright]{titlesec}
|
||||
%#endregion
|
||||
\RequirePackage{wrapfig}
|
||||
|
||||
% \newcommand{\boxout}[7][\bigfloatwidth]{
|
||||
% \bigfloat[#1]{figure}{#2}{
|
||||
% \captionlistentry[figure]{#6.}
|
||||
% \label{fig:#5}
|
||||
|
||||
% \begin{tblrBoxout}{}
|
||||
% \SetCell[c=2]{c}{\sbfamily\bfseries #6}\\
|
||||
% \includegraphics[#4]{#3}
|
||||
% & #7\\
|
||||
% \end{tblrBoxout}
|
||||
% }
|
||||
% }
|
||||
|
||||
\newcommand{\boxout}[4][\bigfloatwidth]{%
|
||||
\bigfloat[#1]{figure}{#2}{%
|
||||
\fcolorbox{PrimeBlue}{PrimePaleBlue}{%
|
||||
\begin{minipage}{\textwidth}%
|
||||
\vspace{1em}%
|
||||
{\centering\textbf{#3}%
|
||||
\begin{minipage}{-2em + \textwidth}%
|
||||
\medskip%
|
||||
#4%
|
||||
\end{minipage}
|
||||
\par}%
|
||||
\vspace{1em}%
|
||||
\end{minipage}%
|
||||
}%
|
||||
}%
|
||||
}
|
||||
|
||||
% Header & Footer Options
|
||||
%#region
|
||||
|
||||
Reference in New Issue
Block a user