%% %% This is file `veryshortguide.cls', %% generated with the docstrip utility. %% %% The original source files were: %% %% veryshortguide.dtx (with options: `class') %% %% This is a generated file. %% %% Copyright © 2006-2024 by Silmaril Consultants %% %% This file was generated from an XML master source. %% Amendments and corrections should be notified to the %% maintainer for inclusion in future versions. %% \NeedsTeXFormat{LaTeX2e}[2015/01/01] \ProvidesClass{veryshortguide}[2024/02/11 v0.8 Very Short Guide LaTeX document class] %% %% Implementation \RequirePackage{fix-cm} \PassOptionsToPackage{svgnames}{xcolor} %% %% ****************************************************************** %% %% Load the document base class %% %% This class is based on the standard LaTeX _report_ class, with no special options. \DeclareOption*{% \PassOptionsToClass{% \CurrentOption}{report}} \ProcessOptions\relax \LoadClass[oneside]{report} %% %% Packages required for the class %% %% Sets the Google NoTo typeface as the default. \RequirePackage{noto}% %% Provides the \MF{} and \MP{} logos. \RequirePackage{mflogo}% %% Provide for running headers and footers. \RequirePackage{fancyhdr}% %% Creates paragraphs separated by white-space with no indentation. \RequirePackage{parskip}% %% Package for establishing margins and text area. \RequirePackage[margin=12mm,top=10mm, bottom=10mm,nohead]{geometry}% %% Font specification setup for use with \XeLaTeX{}. \RequirePackage{fontspec}% %% Linux Libertine and Biolinum fonts \RequirePackage{libertine}% %% Provide for graphics (PNG, JPG, or PDF format (only) for pdflatex; EPS format (only) for standard \LaTeX{}); and for reflection and rotation features. \RequirePackage{graphicx}% %% Handling of URI formatting. \RequirePackage{url}% %% This provides round-cornered and drop-shadow boxes. \RequirePackage{fancybox}% %% List variants: inline and compact. Note that this replaces the earlier defaults of paralist and mdwlist. \RequirePackage{enumitem}% \setlist[description]{style=unboxed,font=\sffamily\bfseries} \setlist[itemize]{leftmargin=2em} \setlist[enumerate]{leftmargin=2em} %% Allow infinitely-variable font scaling. This is still needed even for \XeLaTeX{} and Lua\LaTeX{} but may one day be superseded by the anysizefont package \RequirePackage{fix-cm}% %% Provides multi-column typesetting. \RequirePackage{multicol}% %% Provides textual fractions with slanting delimiter \RequirePackage{nicefrac}% %% Add more robust verbatim facilities. \RequirePackage{fancyvrb}% %% Karel Horak's dingbats symbols. \RequirePackage{bbding}% %% Creates paragraphs separated by white-space with no indentation. \RequirePackage{parskip}% %% Allow hyphenation in ragged setting. \RequirePackage{ragged2e}% %% Implements simple mathematics in counters and dimensions. \RequirePackage{calc}% %% Package to enable if--then--else conditional processing. \RequirePackage{ifthen}% %% Additional commands for common symbols and punctuation. \RequirePackage{textcomp}% %% Additional column formatting types for tables. \RequirePackage{array}% %% Provides size-relative font size changes (smaller, larger, etc). \RequirePackage{relsize}% %% Provides a more sophisticated casing function than the default. \RequirePackage{textcase}% %% Allows user-programmable changes to the positioning of letters in the \TeX{}-related logos on a per-font basis. \RequirePackage{flexlogo}% %% Underlining as an option (not automatically replacing italics). \RequirePackage[normalem]{ulem}% %% Provide color. \RequirePackage[svgnames]{xcolor}% \@ifundefined{T}{% \newcommand{\T}[2]{{\fontencoding{T1}% \selectfont#2}}}{} %% Add linguistic, cultural change, and H\&J support for many languages. \RequirePackage[british]{babel}% %% Use biblatex instead of \BibTeX{} \RequirePackage[backend=biber,doi=true, isbn=true,url=true,uniquename=false,style=apa]{biblatex}% \AtBeginDocument{% \setlength{\bibitemsep}{1ex}% \setlength{\bibnamesep}{1.5\itemsep}% \defbibheading{shortbib}[References]% {\section{#1}}} \@ifpackagewith{babel}{british}{% \DeclareLanguageMapping{british}% {british-apa}}{\relax} \providetoggle{blx@skipbiblist} %% Adds correct curly quotes for cited titles when using babel/polyglossia or biblatex \RequirePackage{csquotes}% %% Graphical representations of menus, directories, and keys. \RequirePackage{menukeys}% \renewmenumacro{\menu}[>]{roundedmenus} \renewmenumacro{\directory}[/]{pathswithblackfolder} \renewmenumacro{\keys}{shadowedroundedkeys} %% %% ****************************************************************** %% %% Font loading %% %% The _fontspec_ package provides a way to scale the sans and mono fonts to match the roman. \setmainfont{Linux Libertine O} \setsansfont[Scale=MatchLowercase]{Raleway} \setmonofont[Scale=MatchLowercase]{zcoN} %% %% ****************************************************************** %% %% Changes to package defaults %% %% %% %% Use a pointy pencil from the _bbding_ package for itemized lists. \renewcommand{\labelitemi}{% \raisebox{-.5ex}{\textcolor{Purple}{\PencilRight}}} \setlength{\leftmargini}{18pt}% don't waste margin space %% %% Provide commands for distinguishing examples and their output. \newcommand{\example}{% \color{DarkGreen}\textsf{\bfseries Example:} \color{MediumBlue}} \def\endexample{\color{black}} \newcommand{\gives}[1]{% \thinspace\color{DarkGreen}\raisebox{-.4ex} {\ArrowBoldRightStrobe}~\color{DarkRed}{\rmfamily #1}\color{black}} \newcommand{\nobox}{~\raisebox{-.25ex}{\footnotesize \Square\llap\XSolidBrush}} \newcommand{\yesbox}{~\raisebox{-.25ex}{\footnotesize \Square\llap\CheckmarkBold}} %% %% In _fancyverb_'s Verbatim, allow rubric embedded as marked text in red \newcommand{\comment}[1]{% \ifthenelse{\equal{#1}{ }}{}{#1}\normalfont \itshape\footnotesize\color{DarkRed}} \newcommand{\added}{\color{MediumBlue}} \newcommand{\revert}{\ttfamily\upshape\color{black}} %% %% The note environment is for notes which are in the page body, not footnotes. \newenvironment{note}{\begingroup\small\textbf{\sffamily Note:}} {\par\endgroup} %% %% Define a month-year date European way round. \newcommand{\monthdate}{\ifcase\month\or January\or February\or March\or April\or May\or June\or July\or August\or September\or October\or November\or December\fi\space\number\year} %% %% There's something odd about the hyphenation...these were broken: \hyphenation{mathe-mati-cal auto-mati-cal-ly docu-ment docu-ments docu-men-tation statis-ti-cal} \renewcommand{\maketitle}{% \hbox to\textwidth{% \vbox{\hsize=.73\textwidth\huge\bfseries\raggedright \@title} \hss \vbox{\hsize=.27\textwidth\scriptsize\raggedright \@author \par \textit{\@date}}} \par\bigskip\hrule\medskip } %% %% Pack headings together more tightly. \renewcommand\section{\@startsection{subsection}{1}{\z@}% {-0pt\@plus -.2ex \@minus -.2ex}% {1pt \@plus .2ex}% {\sffamily\Large\bfseries}} \renewcommand\subsection{\@startsection{subsection}{2}{\z@}% {-0pt\@plus -.2ex \@minus -.2ex}% {1pt \@plus .2ex}% {\sffamily\large\bfseries}} \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% {-0pt\@plus -1ex \@minus -.2ex}% {1pt \@plus .2ex}% {\sffamily\normalsize\bfseries}} \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% {1ex \@plus1ex \@minus.2ex}% {-1em}% {\sffamily\normalsize}} \setcounter{secnumdepth}{5}% we don't want numbered sections \renewcommand{\thesection}{} \renewcommand{\thesubsection}{} \renewcommand{\thesubsubsection}{\arabic{subsubsection}} \DeclareTeXLogo{Caladea(0)}{m}{n}{.1667}{.125}[.4] \DeclareTeXLogo{Caladea(0)}{m}{it}{.1667}{.08}[.4] \DeclareTeXLogo{Caladea(0)}{bx}{n}{.1667}{.125}[.4] \DeclareLaTeXLogo{Caladea(0)}{bx}{n}{.27}{.1333}[.1] \DeclareLaTeXLogo{Caladea(0)}{m}{n}{.3}{.1}[.1] \DeclareTeXLogo{Raleway(0)}{bx}{n}{.1667}{.125}[.38] \DeclareLaTeXLogo{Raleway(0)}{m}{n}{.3}{.1}[.1] \DeclareLaTeXLogo{Raleway(0)}{b}{n}{.27}{.15}[.1] %% %% Adjust footnote fence. \renewcommand{\footnoterule}{\kern-3pt \hrule height.2pt width.25\columnwidth\kern 2.8pt} %% %% No page numbers, we're faking it; and let text go very sloppy to fit. \pagestyle{empty} \spaceskip=4pt plus3pt minus2pt %% %% Cater for some fonts not having small caps. \renewcommand{\textsc}[1]{{\smaller\MakeTextUppercase{#1}}} %% %% Abbreviate changes of font. \newcommand{\ff}[2][T1]{\fontencoding{#1}\fontfamily{#2}\selectfont} %% %% Stop the `\descriptionlabel`command reverting to the serif font. \renewcommand{\descriptionlabel}[1]{\hspace\labelsep{\sffamily\bfseries #1}} \endinput %% %% End of file `veryshortguide.cls'.