summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/sourcecodepro/sourcecodepro.tex
blob: 84710486f9adb0ae5eb849f844838400e867a63a (plain)
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
\documentclass[11pt,a4paper,english]{article}
\usepackage{sourcecodepro}
\usepackage[default]{sourcesanspro-otf}
\usepackage{geometry,dtklogos,hyperref,babel,mdwlist,multicol}
\hypersetup{
    colorlinks,
    citecolor=blue,
    filecolor=blue,
    linkcolor=blue,
    urlcolor=blue
}
\newcommand*\file[1]{\href{run:#1.pdf}{#1}}

\title{\Huge \bfseries sourcecodepro\\ \Large Adobe's Source Code Pro typeface for \LaTeX}
\author{Silke Hofstra, \href{mailto:silke@slxh.nl}{silke@slxh.nl}}

\begin{document}
\maketitle

\begin{multicols}{2}

This package provides the Source Code Pro font in an easy to use way. For \XeLaTeX\ and \LuaLaTeX\ users the original OpenType fonts are used. The entire font family is included. It can also be downloaded from \href{https://github.com/adobe/source-code-pro}{Github}.

\section{Packages}
The packages that can be used are:
\begin{itemize*}
	\item \textbf{sourcecodepro}:\\
		Loads either \texttt{sourcecodepro-otf} or \texttt{sourcecodepro-type1} depending on your engine.
	\item \textbf{sourcecodepro-otf}:\\
		Loads the original fonts (only for \XeLaTeX\ and \LuaLaTeX\ users).
	\item \textbf{sourcecodepro-type1}:\\
		Loads generated Type1 fonts.
\end{itemize*}

\section{Options}
The packages have the following options:
\begin{itemize*}
	\item \textbf{oldstyle, osf}: use old style numbers.
	\item \textbf{lining, nf}: use lining numbers.
	\item \textbf{black}: \texttt{\textbackslash bfseries} is black.
	\item \textbf{semibold}: \texttt{\textbackslash bfseries} is semibold.
	\item \textbf{bold}: \texttt{\textbackslash bfseries} is bold.
	\item \textbf{light}: \texttt{\textbackslash mdseries} is light.
	\item \textbf{extralight}: \texttt{\textbackslash mdseries} is extra light.
	\item \textbf{regular}: \texttt{\textbackslash mdseries} is regular.
	\item \textbf{scaled}: Scaling factor, eg: \texttt{scaled=.5}
	\item \textbf{default}: Font family is default.
\end{itemize*}
The following options are enabled by default: \texttt{lining, bold, regular}.

\section{Commands}
Commands for all variants are also provided in the \texttt{sourcecodepro-otf} package:
\begin{itemize*}
	\item \texttt{\bfseries \textbackslash sourcecodepro} -- the regular and bold variants.
	\item \texttt{\bfseries \textbackslash sourcecodeprolight} -- the light and semibold variants.
	\item \texttt{\bfseries \textbackslash sourcecodeproextreme} -- the extra light and black variants.
\end{itemize*}

\section{Licence}
Adobe's Source Code Pro typeface is available under the \href{http://scripts.sil.org/OFL}{SIL Open Font License 1.1}.

\section{Specimen}
Simple specimen follow. Full specimen can be \href{http://store1.adobe.com/type/browser/pdfs/1960.pdf}{acquired from Adobe}.

\end{multicols}

\subsection{OpenType}
\begin{figure}[ht]
	\centering
	\includegraphics{sourcecodepro-otf-specimen}
\end{figure}
This table can also be found in \file{sourcecodepro-otf-specimen}.

\subsection{Type1}
\begin{figure}[ht]
	\centering
	\includegraphics{sourcecodepro-type1-specimen}
\end{figure}
This table can also be found in \file{sourcecodepro-type1-specimen}.
\end{document}