| 1 |
\documentclass[10pt,a4paper,english]{article} |
| 2 |
\usepackage{geometry,metalogo,hyperref,babel,mdwlist,array,multicol} |
| 3 |
\usepackage[default,osf]{sourcesans} |
| 4 |
\usepackage[scaled=.95]{sourcecodepro} |
| 5 |
|
| 6 |
\hypersetup{ |
| 7 |
colorlinks, |
| 8 |
citecolor=blue, |
| 9 |
filecolor=blue, |
| 10 |
linkcolor=blue, |
| 11 |
urlcolor=blue |
| 12 |
} |
| 13 |
\newcommand*\file[1]{\href{run:#1.pdf}{#1}} |
| 14 |
|
| 15 |
\title{\bfseries |
| 16 |
\Huge sourcesans\\ |
| 17 |
\Large Adobe's Source Sans typeface for \LaTeX |
| 18 |
} |
| 19 |
|
| 20 |
\author{Silke Hofstra, \href{mailto:[email protected]}{[email protected]}} |
| 21 |
\date{Documentation for sourcesans v3.1.\\ \today} |
| 22 |
|
| 23 |
\begin{document} |
| 24 |
\maketitle |
| 25 |
\begin{multicols}{2} |
| 26 |
This package provides the Source Sans font in an easy to use way. For \XeLaTeX\ and \LuaLaTeX\ users the original OpenType fonts from \href{https://github.com/adobe-fonts/source-sans}{GitHub} are used. The entire font family is included. |
| 27 |
|
| 28 |
This package is also available on \href{https://gitlab.com/slxh/latex/sourcesans}{GitLab}. |
| 29 |
|
| 30 |
|
| 31 |
\section{Options} |
| 32 |
The package has the following options: |
| 33 |
\begin{itemize*} |
| 34 |
\item \textbf{oldstyle, osf}: use old style numbers. |
| 35 |
\item \textbf{lining, nf, lf}: use lining numbers. |
| 36 |
\item \textbf{tabular}: use fixed-width numbers. |
| 37 |
\item \textbf{proportional}: use normal numbers. |
| 38 |
\item \textbf{black}: \texttt{\textbackslash bfseries} is black. |
| 39 |
\item \textbf{semibold}: \texttt{\textbackslash bfseries} is semibold. |
| 40 |
\item \textbf{bold}: \texttt{\textbackslash bfseries} is bold. |
| 41 |
\item \textbf{light}: \texttt{\textbackslash mdseries} is light. |
| 42 |
\item \textbf{extralight}: \texttt{\textbackslash mdseries} is extra light. |
| 43 |
\item \textbf{regular}: \texttt{\textbackslash mdseries} is regular. |
| 44 |
\item \textbf{medium}: \texttt{\textbackslash mdseries} is medium. |
| 45 |
\item \textbf{scale, scaled}: Change the scaling with a factor. For example: \texttt{scale=.5} |
| 46 |
\item \textbf{default}: Source Sans is set as the default font family and as the sans serif family. |
| 47 |
\item \textbf{nosfdefault}: Source Sans is not set as sans-serif family. |
| 48 |
\item \textbf{type1, t1}: Override automatic detection and use the Type 1 fonts. |
| 49 |
\item \textbf{opentype, otf}: Override automatic detection and use OpenType fonts. |
| 50 |
\end{itemize*} |
| 51 |
The following options are enabled by default: lining, tabular, bold and regular. |
| 52 |
|
| 53 |
\section{Commands} |
| 54 |
Commands for all weights are also provided for \XeLaTeX\ and \LuaLaTeX\ users. |
| 55 |
\begin{itemize*} |
| 56 |
\item \texttt{\bfseries \textbackslash sourcesans} |
| 57 |
-- the regular and bold weights. |
| 58 |
\item \texttt{\bfseries \textbackslash sourcesansmedium} |
| 59 |
-- the medium and bold weights. |
| 60 |
\item \texttt{\bfseries \textbackslash sourcesanslight} |
| 61 |
-- the light and semibold weights. |
| 62 |
\item \texttt{\bfseries \textbackslash sourcesansextreme} |
| 63 |
-- the extra light and black weights. |
| 64 |
\end{itemize*} |
| 65 |
|
| 66 |
\section{Licence} |
| 67 |
Adobe's Source Sans typeface is available under the \href{http://scripts.sil.org/OFL}{SIL Open Font License 1.1}.\\ |
| 68 |
All \LaTeX\ code is available under the \href{http://www.latex-project.org/lppl/}{\LaTeX\ project public license} v1.3 or later. |
| 69 |
|
| 70 |
\section{Specimen} |
| 71 |
Simple specimen can be found on page \pageref{sec:specimen}. Full specimen can be \href{http://adobe-fonts.github.io/source-sans-pro/}{acquired from Adobe}. |
| 72 |
|
| 73 |
\section{OpenType} |
| 74 |
The OpenType fonts have many features, including old style numerals (1 6 9), ligatures (ff fi fl ft {\addfontfeature{Style=Alternate}fl}) and stylistic alternatives ({\addfontfeature{Style=Alternate} l a g I}). |
| 75 |
|
| 76 |
\subsection{Features} |
| 77 |
A complete list of available font features is available on page \pageref{sec:otfinfo}. More information on how to use font features can be found in the \href{http://mirror.ctan.org/macros/latex/contrib/fontspec/fontspec.pdf}{fontspec documentation}. |
| 78 |
|
| 79 |
\subsection{Files} |
| 80 |
\begin{itemize*} |
| 81 |
\item SourceSans3-ExtraLight.otf |
| 82 |
\item SourceSans3-ExtraLightIt.otf |
| 83 |
\item SourceSans3-Light.otf |
| 84 |
\item SourceSans3-LightIt.otf |
| 85 |
\item SourceSans3-Regular.otf |
| 86 |
\item SourceSans3-RegularIt.otf |
| 87 |
\item SourceSans3-Medium.otf |
| 88 |
\item SourceSans3-MediumIt.otf |
| 89 |
\item SourceSans3-Semibold.otf |
| 90 |
\item SourceSans3-SemiboldIt.otf |
| 91 |
\item SourceSans3-Bold.otf |
| 92 |
\item SourceSans3-BoldIt.otf |
| 93 |
\item SourceSans3-Black.otf |
| 94 |
\item SourceSans3-BlackIt.otf |
| 95 |
\end{itemize*} |
| 96 |
|
| 97 |
\section{Type1} |
| 98 |
The following Type1 font families are included: |
| 99 |
\begin{itemize*} |
| 100 |
\item SourceSansThree-LF |
| 101 |
\item SourceSansThree-TLF |
| 102 |
\item SourceSansThree-OsF |
| 103 |
\item SourceSansThree-TOsF |
| 104 |
\end{itemize*} |
| 105 |
|
| 106 |
With series ‘extralight’ (‘el’), ‘light’ (‘l’), ‘regular’ (‘m’), ‘medium’, ‘semibold’ (‘sb’), ‘bold’ (‘b’), ‘black’ (‘eb’) and shapes ‘n’, ‘i’ and ‘sc’. |
| 107 |
|
| 108 |
\section{Version history} |
| 109 |
\subsection*{3.1} |
| 110 |
\begin{itemize*} |
| 111 |
\item Use standard names for font series. |
| 112 |
\end{itemize*} |
| 113 |
|
| 114 |
\subsection*{3.0} |
| 115 |
\begin{itemize*} |
| 116 |
\item Update fonts to version 3.052 |
| 117 |
\item Rename package to \texttt{sourcesans} |
| 118 |
\item Add medium weight |
| 119 |
\end{itemize*} |
| 120 |
|
| 121 |
\subsection*{2.8} |
| 122 |
\begin{itemize*} |
| 123 |
\item Updated fonts to version 3.006. |
| 124 |
\end{itemize*} |
| 125 |
|
| 126 |
\subsection*{2.7} |
| 127 |
\begin{itemize*} |
| 128 |
\item Updated fonts to Roman 2.045 and Italic 1.095. |
| 129 |
\item Tabular numbers are now default in order to match the original font behaviour. |
| 130 |
\end{itemize*} |
| 131 |
|
| 132 |
\subsection*{2.6} |
| 133 |
\begin{itemize*} |
| 134 |
\item Updated fonts to Roman 2.020 and Italic 1.075. |
| 135 |
\item Modified the \texttt{\textbackslash liningnums} to accomodate for the missing \texttt{lnum} feature. |
| 136 |
\item Experimental support for the LGR (Greek) encoding. |
| 137 |
\end{itemize*} |
| 138 |
|
| 139 |
\subsection*{2.5} |
| 140 |
\begin{itemize*} |
| 141 |
\item Updated fonts to 2.010 |
| 142 |
\end{itemize*} |
| 143 |
|
| 144 |
\subsection*{2.4} |
| 145 |
\begin{itemize*} |
| 146 |
\item Fixed errors in weight implementation. |
| 147 |
\item Updated fonts to 1.065 |
| 148 |
\end{itemize*} |
| 149 |
|
| 150 |
\subsection*{2.3} |
| 151 |
\begin{itemize*} |
| 152 |
\item Weights are now handled with the \href{http://www.ctan.org/pkg/mweights}{mweights} package. |
| 153 |
\end{itemize*} |
| 154 |
|
| 155 |
\subsection*{2.2} |
| 156 |
\begin{itemize*} |
| 157 |
\item Updated fonts to 1.050 |
| 158 |
\item Added \texttt{nosfdefault} option. |
| 159 |
\end{itemize*} |
| 160 |
|
| 161 |
\subsection*{2.1} |
| 162 |
\begin{itemize*} |
| 163 |
\item Updated fonts to 1.040 |
| 164 |
\end{itemize*} |
| 165 |
|
| 166 |
\subsection*{2.0} |
| 167 |
\begin{itemize*} |
| 168 |
\item Merged all \texttt{.sty} files into \texttt{sourcesans.sty}. |
| 169 |
\item \texttt{default} option now sets the default font family to \texttt{Source Sans}, not \texttt{\textbackslash sfdefault}. |
| 170 |
\item \texttt{type1}, \texttt{t1}, \texttt{opentype} and \texttt{otf} option added to override automatic detection. |
| 171 |
\item Added \texttt{OT1} to \texttt{fontspec} options. |
| 172 |
\end{itemize*} |
| 173 |
|
| 174 |
\subsection*{1.02} |
| 175 |
\begin{itemize*} |
| 176 |
\item Changed the order of \texttt{T1} and \texttt{LY1}. |
| 177 |
\item Changed \texttt{lining}/\texttt{nf} behaviour. |
| 178 |
\item Redefined \texttt{\textbackslash oldstylenums}. |
| 179 |
\end{itemize*} |
| 180 |
|
| 181 |
\section{Known issues} |
| 182 |
|
| 183 |
Issues can be reported \href{https://gitlab.com/slxh/latex/sourcesans/issues}{on GitLab} and \href{https://github.com/silkeh/latex-sourcesanspro/issues}{GitHub}. |
| 184 |
|
| 185 |
\newpage |
| 186 |
\end{multicols} |
| 187 |
|
| 188 |
\section{Specimen} |
| 189 |
\label{sec:specimen} |
| 190 |
\subsection{OpenType} |
| 191 |
\begin{figure}[ht] |
| 192 |
\centering |
| 193 |
\includegraphics{sourcesans-otf-specimen} |
| 194 |
\end{figure} |
| 195 |
This table can also be found in \file{sourcesans-otf-specimen}. |
| 196 |
|
| 197 |
\subsection{Type1} |
| 198 |
\begin{figure}[ht] |
| 199 |
\centering |
| 200 |
\includegraphics{sourcesans-type1-specimen} |
| 201 |
\end{figure} |
| 202 |
This table can also be found in \file{sourcesans-type1-specimen}. |
| 203 |
|
| 204 |
\newpage |
| 205 |
\section{Opentype features} |
| 206 |
\label{sec:otfinfo} |
| 207 |
|
| 208 |
\begin{figure}[ht] |
| 209 |
\centering |
| 210 |
\begin{tabular}{>{\ttfamily}l l} |
| 211 |
aalt & Access All Alternates \\ |
| 212 |
c2sc & Small Capitals From Capitals \\ |
| 213 |
case & Case-Sensitive Forms \\ |
| 214 |
ccmp & Glyph Composition/Decomposition \\ |
| 215 |
cv01 & Character Variants 1 \\ |
| 216 |
cv02 & Character Variants 2 \\ |
| 217 |
cv03 & Character Variants 3 \\ |
| 218 |
cv04 & Character Variants 4 \\ |
| 219 |
cv05 & Character Variants 5 \\ |
| 220 |
cv06 & Character Variants 6 \\ |
| 221 |
cv07 & Character Variants 7 \\ |
| 222 |
cv08 & Character Variants 8 \\ |
| 223 |
cv09 & Character Variants 9 \\ |
| 224 |
cv10 & Character Variants 10 \\ |
| 225 |
cv11 & Character Variants 11 \\ |
| 226 |
cv12 & Character Variants 12 \\ |
| 227 |
cv13 & Character Variants 13 \\ |
| 228 |
cv14 & Character Variants 14 \\ |
| 229 |
cv15 & Character Variants 15 \\ |
| 230 |
cv16 & Character Variants 16 \\ |
| 231 |
cv17 & Character Variants 17 \\ |
| 232 |
cv18 & Character Variants 18 \\ |
| 233 |
cv19 & Character Variants 19 \\ |
| 234 |
dlig & Discretionary Ligatures \\ |
| 235 |
dnom & Denominators \\ |
| 236 |
frac & Fractions \\ |
| 237 |
hlig & Historical Ligatures \\ |
| 238 |
kern & Kerning \\ |
| 239 |
liga & Standard Ligatures \\ |
| 240 |
locl & Localized Forms \\ |
| 241 |
mark & Mark Positioning \\ |
| 242 |
mkmk & Mark to Mark Positioning \\ |
| 243 |
numr & Numerators \\ |
| 244 |
onum & Oldstyle Figures \\ |
| 245 |
ordn & Ordinals \\ |
| 246 |
pnum & Proportional Figures \\ |
| 247 |
salt & Stylistic Alternates \\ |
| 248 |
sinf & Scientific Inferiors \\ |
| 249 |
size & Optical Size \\ |
| 250 |
smcp & Small Capitals \\ |
| 251 |
ss01 & Stylistic Set 1 - alternate l \\ |
| 252 |
ss02 & Stylistic Set 2 - alternate a \\ |
| 253 |
ss03 & Stylistic Set 3 - alternate g \\ |
| 254 |
ss04 & Stylistic Set 4 - alternate I \\ |
| 255 |
ss05 & Stylistic Set 5 - \\ |
| 256 |
ss06 & Stylistic Set 6 \\ |
| 257 |
ss07 & Stylistic Set 7 \\ |
| 258 |
ss08 & Stylistic Set 8 \\ |
| 259 |
ss09 & Stylistic Set 9 \\ |
| 260 |
ss10 & Stylistic Set 10 \\ |
| 261 |
subs & Subscript \\ |
| 262 |
sups & Superscript \\ |
| 263 |
titl & Titling \\ |
| 264 |
zero & Slashed Zero \\ |
| 265 |
\end{tabular} |
| 266 |
\end{figure} |
| 267 |
\textit{(list generated with otfinfo)} |
| 268 |
|
| 269 |
\end{document} |