1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
|
%%
%% 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 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}[2020/04/16 v0.7
The Very Short Guide to LaTeX]
\RequirePackage{fix-cm}
\PassOptionsToPackage{svgnames}{xcolor}
%%
%% ******************************************************************
%%
%% Load the document base class
\DeclareOption*{%
\PassOptionsToClass{%
\CurrentOption}{report}}
\ProcessOptions\relax
\LoadClass[oneside]{report}
%%
%% Packages required for the class or package
%%
%% 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{}).
\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[inline]{enumitem}%
\setlist[description]{style=unboxed}
\setlist[itemize]{leftmargin=2em}
\setlist[enumerate]{leftmargin=2em}
\newlist{inlineenum}{enumerate*}{1}
\setlist[inlineenum,1]{label=\emph{\alph*}),
itemjoin={{; }},itemjoin*={{; and }}}
%% Allow infinitely-variable font scaling.
\RequirePackage{fix-cm}%
%% Provides multi-column typesetting.
\RequirePackage{multicol}%
%% Slanted fractions, even in math mode.
\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}%
%% Required for calculations involving lengths or counters, such as changes to widths for margin adjustment.
\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{xcolor}%
\@ifundefined{T}{%
\newcommand{\T}[2]{{\fontencoding{T1}%
\selectfont#2}}}{}
%% Add language, cultural changes, 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 biblatex
\RequirePackage{csquotes}%
%% Graphical representations of menus, directories, and keys.
\RequirePackage{menukeys}%
\renewmenumacro{\menu}[>]{roundedmenus}
\renewmenumacro{\directory}[/]{hyphenatepathswithfolder}
\renewmenumacro{\keys}{shadowedroundedkeys}
%%
%% ******************************************************************
%%
%% Font loading
\setmainfont{Linux Libertine O}
\setsansfont[Scale=MatchLowercase]{Raleway}
\setmonofont[Scale=MatchLowercase]{zcoN}
%%
%% ******************************************************************
%%
%% Changes to package defaults
\renewcommand{\labelitemi}{%
\raisebox{-.5ex}{\textcolor{Purple}{\PencilRight}}}
\setlength{\leftmargini}{18pt}% don't waste margin space
\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}}
\newcommand{\comment}[1]{%
\ifthenelse{\equal{#1}{ }}{}{#1}\normalfont
\itshape\footnotesize\color{DarkRed}}
\newcommand{\added}{\color{MediumBlue}}
\newcommand{\revert}{\ttfamily\upshape\color{black}}
\newenvironment{note}{\begingroup\small\textbf{\sffamily Note:}}
{\par\endgroup}
\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}
\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
}
\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]
\renewcommand{\footnoterule}{\kern-3pt
\hrule height.2pt width.25\columnwidth\kern 2.8pt}
\pagestyle{empty}
\spaceskip=4pt plus3pt minus2pt
\renewcommand{\textsc}[1]{{\smaller\MakeTextUppercase{#1}}}
\newcommand{\ff}[2][T1]{\fontencoding{#1}\fontfamily{#2}\selectfont}
\renewcommand{\descriptionlabel}[1]{\hspace\labelsep{\sffamily\bfseries #1}}
\endinput
%%
%% End of file `veryshortguide.cls'.
|