| 1 |
\documentclass[12pt,a4paper]{article} |
| 2 |
|
| 3 |
\usepackage[T1]{fontenc} |
| 4 |
\usepackage[utf8]{inputenc} |
| 5 |
\usepackage{sectsty} |
| 6 |
\usepackage{helvet} |
| 7 |
\usepackage[scaled=1.15]{inconsolata} |
| 8 |
\usepackage{xcolor} |
| 9 |
\usepackage[colorlinks=true, urlcolor=cyan!40!black]{hyperref} |
| 10 |
\usepackage{microtype} |
| 11 |
\usepackage{metalogo} |
| 12 |
\usepackage{listings} |
| 13 |
|
| 14 |
\renewcommand{\familydefault}{\sfdefault} |
| 15 |
\newcommand{\LaTeXcpr}{L\kern-.25em\raisebox{.22em}{\large A}\kern-.1em\relax\TeX} |
| 16 |
\newcommand{\Cuprum}{{\fontfamily{cpr}\selectfont Cuprum}} |
| 17 |
|
| 18 |
\sectionfont{\fontfamily{cpr}\selectfont} |
| 19 |
\subsectionfont{\fontfamily{cpr}\selectfont} |
| 20 |
|
| 21 |
\title{\fontfamily{cpr}\selectfont Cuprum font family for \LaTeXcpr} |
| 22 |
\date{\fontfamily{cpr}\selectfont 2019/02/01} |
| 23 |
\author{\fontfamily{cpr}\selectfont Federico Roncaglia\footnote{\texttt{phaiderikos} at \texttt{protonmail} dot \texttt{com}}} |
| 24 |
|
| 25 |
\lstset{texcl=true,basicstyle=\color{black!70!white!90!green}\normalsize\ttfamily,tabsize=2} |
| 26 |
\let\textttb\texttt |
| 27 |
\renewcommand{\texttt}[1]{{\color{black!70!white!90!green}\textttb{#1}}} |
| 28 |
|
| 29 |
\begin{document} |
| 30 |
\maketitle |
| 31 |
|
| 32 |
\section{Introduction} |
| 33 |
The \Cuprum{} font family has been published by the \hyperref{http://jovanny.ru}{}{}{Free Fonts Project} some years ago, with more than other 50 free fonts and families, thanks to active collaboration with a large number of designers. |
| 34 |
|
| 35 |
These fonts can be seen all over the world, and in particular \Cuprum{} is extensively used by \hyperref{https://unipd.it}{}{}{University of Padua} in some of its sub-websites. So I decided to make this small package to be used with \LaTeX{} (thus without the need of \XeLaTeX{} or \LuaLaTeX). |
| 36 |
|
| 37 |
The fonts are redistributed under their original license (SIL Open Font License, Version 1.1). |
| 38 |
|
| 39 |
\section{Installation} |
| 40 |
\begin{enumerate} |
| 41 |
\item Copy the contents of the subdirectories: |
| 42 |
\begin{itemize} |
| 43 |
\item \texttt{doc} in \texttt{texmf/doc/latex/cuprum} |
| 44 |
\item \texttt{map} in \texttt{texmf/fonts/map/dvips/cuprum} |
| 45 |
\item \texttt{tex} in \texttt{texmf/tex/latex/cuprum} |
| 46 |
\item \texttt{tfm} in \texttt{texmf/fonts/tfm/cuprum} |
| 47 |
\item \texttt{ttf} in \texttt{texmf/fonts/truetype/public/cuprum}. |
| 48 |
\end{itemize} |
| 49 |
|
| 50 |
\item Add the line |
| 51 |
\begin{lstlisting} |
| 52 |
Map cuprum.map |
| 53 |
\end{lstlisting} |
| 54 |
at the end of the file \texttt{updmap.cfg} in your distribution. Under Mik\TeX, this should be done by typing the command |
| 55 |
\begin{lstlisting} |
| 56 |
initexmf --edit-config-file updmap |
| 57 |
\end{lstlisting} |
| 58 |
in the console. |
| 59 |
|
| 60 |
\item Refresh the databases by using these commands: |
| 61 |
\begin{itemize} |
| 62 |
\item \texttt{mktexlsr} to rebuild the list of files located in your \texttt{texmf} tree; |
| 63 |
\item \texttt{updmap-sys} to rebuild the map files. |
| 64 |
\end{itemize} |
| 65 |
\end{enumerate} |
| 66 |
|
| 67 |
\section{Usage} |
| 68 |
Make sure to include the \texttt{fontenc} package with T1 encoding: |
| 69 |
\begin{lstlisting}[language=TeX] |
| 70 |
\usepackage[T1]{fontenc} |
| 71 |
\end{lstlisting} |
| 72 |
Then, you can use the font family either locally, with |
| 73 |
\begin{lstlisting} |
| 74 |
{\fontfamily{cpr}\selectfont some text} |
| 75 |
\end{lstlisting} |
| 76 |
or globally, loading the package \texttt{cuprum}: |
| 77 |
\begin{lstlisting} |
| 78 |
\usepackage{cuprum} |
| 79 |
\end{lstlisting} |
| 80 |
That's all! |
| 81 |
\end{document} |