summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/lucida-otf/lucida-otf-doc.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2017-07-06 09:17:18 +0900
committerNorbert Preining <norbert@preining.info>2017-07-06 09:17:18 +0900
commit5b0a6c0c2e63df89332c9ad54943b606f1f46290 (patch)
treef9c1376f0c3e20f465b37c89e2310541a6790e6f /texmf-dist/doc/latex/lucida-otf/lucida-otf-doc.tex
parent4c861b390eff7d380e7e0b02f9c2a12f91f3d2df (diff)
add lucida-otf
Diffstat (limited to 'texmf-dist/doc/latex/lucida-otf/lucida-otf-doc.tex')
-rw-r--r--texmf-dist/doc/latex/lucida-otf/lucida-otf-doc.tex316
1 files changed, 316 insertions, 0 deletions
diff --git a/texmf-dist/doc/latex/lucida-otf/lucida-otf-doc.tex b/texmf-dist/doc/latex/lucida-otf/lucida-otf-doc.tex
new file mode 100644
index 00000000..b4694d7c
--- /dev/null
+++ b/texmf-dist/doc/latex/lucida-otf/lucida-otf-doc.tex
@@ -0,0 +1,316 @@
+%% $Id: lucida-otf-doc.tex 443 2017-04-19 10:28:05Z herbert $
+% Copyright 2012-2015 TeX Users Group.
+%
+% Copying and distribution of this file, with or without modification,
+% are permitted in any medium, without royalty.
+
+\listfiles
+\documentclass[11pt]{article}
+\usepackage{geometry}
+
+\usepackage[%usefilenames,
+ TT={Scale=0.88,FakeStretch=0.9},
+ SS={Scale=0.9},
+ RM={Scale=0.9},
+ DefaultFeatures={Ligatures=TeX}]{lucida-otf} % support opentype math fonts
+
+\usepackage{biblatex}
+\addbibresource{\jobname.bib}
+\usepackage{array}
+\usepackage{metalogo} % for \XeTeX logo
+\usepackage{booktabs} % for examples
+\usepackage{ltablex} % for examples
+\usepackage{listings} % for code
+\usepackage{dtk-logos} % for Wikipedia W
+
+\pagestyle{headings}
+
+\usepackage[colorlinks,hyperfootnotes=false]{hyperref}
+% define \code for url-like breaking of typewriter fragments.
+\ifx\nolinkurl\undefined \let\code\url \else \let\code\nolinkurl \fi
+
+% Define \cs to prepend a backslash, and be unbreakable:
+\DeclareRobustCommand\cs[1]{\mbox{\texttt{\char`\\#1}}}
+
+% An environment like quote, but less space above and more below:
+\newenvironment{demoquote}
+ {\tabularx{\dimexpr\linewidth+\marginparwidth}{@{} X >{\ttfamily}l @{}}}
+ {\endtabularx}
+
+
+\title{Support for the Lucida OpenType fonts from TUG}
+\author{Herbert Voß}
+\begin{document}
+\maketitle
+\tableofcontents
+
+\section{Introduction}
+
+{\def\thefootnote{}
+% article.cls uses 1.8em for the footnote indent.
+\footnotetext{\kern-1.8em \textregistered\ Lucida is a trademark of
+Bigelow \& Holmes Inc.\ registered in the U.S. Patent \& Trademark
+Office and other jurisdictions.}
+}
+
+This document contains examples of the Lucida OpenType fonts available
+through TUG. They can be used with any OpenType-aware application,
+including the Lua\TeX\ and \XeTeX\ extensions of \TeX\ (but not
+pdf\TeX).
+
+A brief overview:
+
+\begin{itemize}
+\item Math fonts: Lucida Bright Math and Lucida Bright Math Demi,
+extended OpenType versions of the original Type~1 Lucida math fonts.
+
+\item Three text families (regular, italic, bold, bold italic) also
+coming from the original Type~1 distribution: Lucida Bright, Lucida
+Sans, and Lucida Sans Typewriter.
+
+\item Three specialized fonts from the original Type~1
+distribution: Blackletter, Calligraphy, and Handwriting.
+
+\item Two additional monospaced font families (same four variants):
+Lucida Grande Mono DK and Lucida Console DK. These have O (oh), and Q
+glyphs modified to a somewhat squarish shape, and the 0~(zero) glyph
+open rather than slashed, as preferred by Don Knuth. As usual, Lucida
+ConsoleDK has shorter capitals than Grande Mono, among other smaller
+changes. (If you don't have the DK fonts and want to remake this
+document as a test, you'll need to remove the references to them.)
+
+\end{itemize}
+
+The package \texttt{lucida-otf} supports all families with specific optional
+arguments:
+
+\begin{tabular}{@{} >{\ttfamily}l l @{}}\\\toprule
+\emph{name} & \emph{meaning}\\\midrule
+RM & Lucida Bright (Roman)\\
+SS & Lucida Sans\\
+TT & Lucida Sans Typewriter\\
+GTT & Lucida GrandeDK\\
+CTT & Lucida ConsoleDK \\
+MM & Lucida Math\\
+MMbold & Lucida Boldmath\\
+BL & Lucida Blacklatter\\
+CAL & Lucida Calligraphy\\
+HW & Lucida Handwriting\\
+DefaultFeatures & for all font styles\\\bottomrule
+\end{tabular}
+
+\bigskip
+Except math all fonts are preset with \texttt{Scale=0.92}. For this documentation
+we use instead:
+
+\begin{verbatim}
+\usepackage[TT={Scale=0.88,FakeStretch=0.9},
+ SS={Scale=0.9},
+ RM={Scale=0.9},
+ DefaultFeatures={Ligatures=TeX}]{lucida-otf} % support opentype lucida fonts
+\end{verbatim}
+
+\begin{sloppypar}
+The standard font families \texttt{rm}, \texttt{sf}, and \texttt{tt}
+can be used as usual for any \LaTeX\ engine. The other specific Lucida fonts
+can be used by one of the macros \cs{LucidaBlackletter},
+\cs{LucidaCalligraphy},
+\cs{LucidaHandwriting},
+\cs{LucidaGrandeMonoDK}, and
+\cs{LucidaConsoleDK}. They are defined as:
+\end{sloppypar}
+
+
+
+
+
+\begin{verbatim}
+% The specialized one-off fonts:
+\newfontface\LucidaBlackletter{Lucida Blackletter OT}[\lucidaBL@features]
+\newfontface\LucidaCalligraphy{Lucida Calligraphy OT Italic}[\lucidaCAL@features]
+\newfontface\LucidaHandwriting{Lucida Handwriting OT Italic}[\lucidaHW@features]
+%
+% GrandeMono and Console fonts for an example:
+
+\newfontfamily\LucidaGrandeMonoDK{LucidaGrandeMonoDK}[
+ \lucidaGrandeTT@features,
+ ItalicFont = * Italic,
+ BoldFont = * Bold,
+ BoldItalicFont = * Bold Italic
+]
+%
+\newfontfamily\LucidaConsoleDK{LucidaConsoleDK}[%
+ \lucidaConsoleTT@features,
+ ItalicFont = * Italic,
+ BoldFont = * Bold,
+ BoldItalicFont = * Bold Italic
+]
+\end{verbatim}
+
+By default the fonts are defined by their symbolic name. As an alternative you can load
+the package with the option \texttt{usefilenames}.
+
+\begin{verbatim}
+\usepackage[usefilenames,
+ TT={Scale=0.88,FakeStretch=0.9},
+ SS={Scale=0.9},
+ RM={Scale=0.9},
+ DefaultFeatures={Ligatures=TeX}]{lucida-otf} % support opentype math fonts
+\end{verbatim}
+
+
+
+Then all definitions uses the
+extension \texttt{.otf} and the filename of the fonts:
+
+\begin{verbatim}
+% The specialized one-off fonts:
+\newfontface\LucidaBlackletter{LucidaBlackletterOT}[Extension=.otf,\lucidaBL@features]
+\newfontface\LucidaCalligraphy{LucidaCalligraphyOT-Italic}[Extension=.otf,\lucidaCAL@features]
+\newfontface\LucidaHandwriting{LucidaHandwritingOT-Italic}[Extension=.otf,\lucidaHW@features]
+%
+% GrandeMono and Console fonts for an example:
+
+\newfontfamily\LucidaGrandeMonoDK{LucidaGrandeMonoDK}[
+ Extension = .otf,
+ \lucidaGrandeTT@features,
+ ItalicFont = *-Italic,
+ BoldFont = *-Bold,
+ BoldItalicFont = *-BoldItalic
+]
+%
+\newfontfamily\LucidaConsoleDK{LucidaConsoleDK}[%
+ Extension = .otf,
+ \lucidaConsoleTT@features,
+ ItalicFont = *-Italic,
+ BoldFont = *-Bold,
+ BoldItalicFont = *-BoldItalic
+]
+\end{verbatim}
+
+\section{Text examples}
+
+\newcommand\demotext{%
+ For \textsterling 45, almost anything can
+ be found floating in fields.
+ !`THE DAZED BROWN FOX QUICKLY GAVE 12345--67890 JUMPS!
+ --- ?`But aren't Kafka's Schlo\ss{} and
+ \AE sop's \OE uvres often na\"\i ve vis-\`a-vis the d\ae monic
+ ph\oe nix's official r\^ole in fluffy souffl\'es?}
+
+\newcommand*\demotextsc{\textsc{\ Sphinx of black quartz, judge my vow}.}
+
+\newcommand*\otfoldstylenums{\addfontfeatures{Numbers={OldStyle}}}
+\newcommand*\demotextosf{\ \otfoldstylenums{0123456789}.}
+
+The basic text family is \code{LucidaBrightOT}, with the usual four
+variants---\allowbreak regular, italic, bold, and bold italic, all with
+oldstyle figures; small caps are available in the upright shapes:
+
+\noindent
+\begin{tabularx}{\dimexpr\linewidth+\marginparwidth}{@{} >{\raggedright}X >{\ttfamily}l @{}}
+\demotext\demotextsc \demotextosf & LucidaBrightOT\\[4pt]
+\itshape\demotext\demotextosf & LucidaBrightOT-Italic\\[4pt]
+\bfseries\demotext\demotextsc \demotextosf & LucidaBrightOT-Demibold\\[4pt]
+\bfseries\itshape\demotext\demotextosf & LucidaBrightOT-DemiboldItalic\\[12pt]
+%\end{tabularx}
+~ & ~ \\
+%\noindent
+%\begin{tabularx}{\dimexpr\linewidth+\marginparwidth}{@{} >{\raggedright}X >{\ttfamily}l @{}}
+\sffamily\demotext & LucidaSansOT\\[4pt]
+\sffamily\itshape\demotext & LucidaSansOT-Italic\\[4pt]
+\sffamily\bfseries\demotext & LucidaSansOT-Demibold \\[4pt]
+\sffamily\bfseries\itshape\demotext & LucidaSansOT-DemiboldItalic\\[12pt]
+%\end{tabularx}
+~ & ~ \\
+
+%\noindent
+%\begin{tabularx}{\dimexpr\linewidth+\marginparwidth}{@{} >{\raggedright}X >{\ttfamily}l @{}}
+\ttfamily\demotext & LucidaSansTypewriterOT\\[4pt]
+\ttfamily\itshape\demotext & LucidaSansTypewriterOT-Oblique\\[4pt]
+\ttfamily\bfseries\demotext & LucidaSansTypewriterOT-Bold\\[4pt]
+\ttfamily\bfseries\itshape\demotext & LucidaSansTypewriterOT-BoldOblique\\[12pt]
+%\end{tabularx}
+~ & ~ \\%
+%\noindent
+%\begin{tabularx}{\dimexpr\linewidth+\marginparwidth}{@{} >{\raggedright}X >{\ttfamily}l @{}}
+\LucidaGrandeMonoDK\demotext & LucidaGrandeMonoDK\\[4pt]
+\LucidaGrandeMonoDK\itshape\demotext & LucidaGrandeMonoDK-Italic\\[4pt]
+\LucidaGrandeMonoDK\bfseries\demotext & LucidaGrandeMonoDK-Bold\\[4pt]
+\LucidaGrandeMonoDK\bfseries\itshape\demotext & LucidaGrandeMonoDK-BoldItalic\\[12pt]
+%\end{tabularx}
+%
+~ & ~ \\%
+%\noindent
+%\begin{tabularx}{\dimexpr\linewidth+\marginparwidth}{@{} >{\raggedright}X >{\ttfamily}l @{}}
+\LucidaConsoleDK\demotext & LucidaConsoleDK\\[4pt]
+\LucidaConsoleDK\itshape\demotext & LucidaConsoleDK-Italic\\[4pt]
+\LucidaConsoleDK\bfseries\demotext & LucidaConsoleDK-Bold\\[4pt]
+\LucidaConsoleDK\bfseries\itshape\demotext & LucidaConsoleDK-BoldItalic\\[12pt]
+%\end{tabularx}
+%
+~ & ~ \\%
+%\noindent
+%\begin{tabularx}{\dimexpr\linewidth+\marginparwidth}{@{} >{\raggedright}X >{\ttfamily}l @{}}
+\LucidaBlackletter\demotext & LucidaBlackletterOT\\[4pt]
+\LucidaCalligraphy\demotext & LucidaCalligraphyOT\\[4pt]
+\LucidaHandwriting\demotext & LucidaHandwritingOT\\
+\end{tabularx}
+
+%\setmainfont{LucidaBright}
+
+
+\section{Math examples}
+
+\begin{verbatim}
+Here's some text. And here's some math:
+\[
+ \phi(x)=\int_{-\infty}^{x} e^{-x^{2}/2}
+\]
+And now bold math:
+\boldmath
+\[
+ \phi(x)=\int_{-\infty}^{x} e^{-x^{2}/2}
+\]
+\unboldmath
+Euro and copyright symbols are available: \texteuro\ \textcopyright.
+\end{verbatim}
+
+Here's some text. And here's some math:
+\[
+ \phi(x)=\int_{-\infty}^{x} e^{-x^{2}/2}
+\]
+And now bold math:
+\boldmath
+\[
+ \phi(x)=\int_{-\infty}^{x} e^{-x^{2}/2}
+\]
+\unboldmath
+Euro and copyright symbols are available: \texteuro\ \textcopyright.
+
+
+\section{Closing}
+
+If you have questions or problems regarding installation or use, please
+email \code{lucida@tug.org}; this is an open and publicly archived list
+for Lucida discussion; you can subscribe on the web at
+\url{http://lists.tug.org/lucida}. On the other hand, questions or
+problems related to ordering or licensing should go to
+\code{lucida-admin@tug.org}.
+
+Finally, B\&H's web site for Lucida is \url{http://lucidafonts.com},
+and the home page for Lucida and \TeX\ is \url{http://tug.org/lucida}.
+
+The font list of this documentation is:
+
+\footnotesize\ttfamily
+\expandafter\IfFileExists\expandafter{\jobname.txt}%
+ {\lstinputlisting{\jobname.txt}}{}
+
+\normalfont\rmfamily
+
+\nocite{*}
+\printbibliography
+
+
+\end{document}