summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/tempora/tempora-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/fonts/tempora/tempora-doc.tex')
-rw-r--r--Master/texmf-dist/doc/fonts/tempora/tempora-doc.tex41
1 files changed, 32 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/fonts/tempora/tempora-doc.tex b/Master/texmf-dist/doc/fonts/tempora/tempora-doc.tex
index 35312c3786d..1e275d59484 100644
--- a/Master/texmf-dist/doc/fonts/tempora/tempora-doc.tex
+++ b/Master/texmf-dist/doc/fonts/tempora/tempora-doc.tex
@@ -2,9 +2,9 @@
\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage[parfill]{parskip}% Begin paragraphs with an empty line rather than an indent
-\pdfmapfile{+tempora.map}
+\pdfmapfile{=tempora.map}
\usepackage{graphicx}
-\usepackage[LGR,T2A,T1]{fontenc}
+\usepackage[OT2,LGR,T2A,T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{substitutefont}
\usepackage[greek.polutoniko,russian,english]{babel}
@@ -12,9 +12,12 @@
\usepackage[varqu,varl]{zi4}% inconsolata
\usepackage[bigdelims,vvarbb]{newtxmath}
\useosf % must come immediately after newtxmath
-\substitutefont{LGR}{\rmdefault}{Tempora}
-\substitutefont{T2A}{\rmdefault}{Tempora}
+\substitutefont{LGR}{\rmdefault}{Tempora-TLF}
+\substitutefont{T2A}{\rmdefault}{Tempora-TLF}
+\substitutefont{OT2}{\rmdefault}{Tempora-TLF}
\usepackage{fonttable}
+\newcommand\cyrtext{\fontencoding{OT2}\selectfont} % declaration
+\DeclareTextFontCommand{\textcyr}{\cyrtext} %macro with argument
%
\title{The Tempora package}
\author{Michael Sharpe}
@@ -26,18 +29,39 @@
The package is intended to be an add-on to a comprehensive Times-like text font package, such as {\tt newtxtext} or {\tt tgtermes}, adding the possibility of writing parts in Greek or Cyrillic. The Greek part of {\tt Tempora} offers essentially full support for the LGR encoding, and thus for {\tt babel}'s {\tt greek} options---{\tt monotonic} (the default), {\tt ancient} and {\tt polutoniko}---while the Cyrillic part offers almost full support for the {\tt T2A} encoding and lesser support for the more Asian flavors, {\tt T2B} and {\tt T2C}.
\newpage
\section*{Some Font tables}
-\def\tfmname{Tempora-Regular-lgr}
+\def\tfmname{Tempora-Regular-TLF-lgr}
\textbf{\tfmname} \textsc{glyph table}:\hspace{.3in}
\fonttable{\tfmname}
Notice that the glyph in slot 115 may appear to be incorrect---you might think it should be the letter sigma (non-final), as in the first letter of \foreignlanguage{greek}{σῦς}. The {\tt tfm} files contain instructions to render a final sigma as in the last letter of that word, and the {\tt fonttable} package appears to treat all entries in the table as final letters. So, not really an issue.
\newpage
-\def\tfmname{Tempora-Regular-t2a}
+\def\tfmname{Tempora-Regular-TLF-t2a}
\textbf{\tfmname} \textsc{glyph table}:\hspace{.3in}
\fonttable{\tfmname}
Example: \foreignlanguage{russian}{который}.
\newpage
+\def\tfmname{Tempora-Regular-TLF-ot2}
+\textbf{\tfmname} \textsc{glyph table}:\hspace{.3in}
+\fonttable{\tfmname}
+
+%Example: \foreignlanguage{russian}{который}.
+To use OT$2$ as a poor man's T$2$A, you include in your preamble some variant of:
+\begin{verbatim}
+\documentclass{article}
+\usepackage[OT2,T1]{fontenc} % loads ot2enc.def
+\usepackage{substitutefont}
+\substitutefont{OT2}{\rmdefault}{Tempora-TLF} % after loading text font package
+\newcommand\cyrtext{\fontencoding{OT2}\selectfont} % declaration
+\DeclareTextFontCommand{\textcyr}{\cyrtext} %macro with argument
+\end{verbatim}
+The Russian part of the following sentence is entered as \verb|\textcyr{a e1to --- po-russki}|.
+
+This is text in English, then Russian:
+\textcyr{a e1to --- po-russki}.
+
+For further details of using OT$2$, consult the documentation for the {\tt nimbus15} package.
+\newpage
\section*{Usage}
There are two basic pathways that can be followed, one based on {\tt fontspec} (XeLaTeX or LuaLaTeX), the other on pure LaTeX (pdflatex).
\subsection*{LaTeX} The loading order of packages is important here. See the documentation of the {\tt newtx} package for details. Here's an example of using {\tt newtx} text and math, set up to allow the use of polytonic Greek, Russian and English as the main language.
@@ -51,8 +75,8 @@ There are two basic pathways that can be followed, one based on {\tt fontspec} (
\usepackage{cabin}% sans serif
\usepackage[bigdelims,vvarbb]{newtxmath}
\useosf % use oldstyle figures except in math
-\substitutefont{LGR}{\rmdefault}{Tempora} % use Tempora to render Greek text
-\substitutefont{T2A}{\rmdefault}{Tempora} % use Tempora to render Russian
+\substitutefont{LGR}{\rmdefault}{Tempora-TLF} % use Tempora to render Greek text
+\substitutefont{T2A}{\rmdefault}{Tempora-TLF} % use Tempora to render Russian
\end{verbatim}
Any {\tt utf8}-encoded text typed outside of a \verb|\foreignlanguage{}{}| block will be rendered as T1-encoded {\tt newtxtext}, while that within \verb|\foreignlanguage{greek}{}| will be rendered as LGR-encoded polytonic Greek, and similarly for \verb|\foreignlanguage{russian}{}|. The macro \verb|\textgreek| made available by {\tt babel-greek} may be used to avoid unicode. For example, \verb+\textgreek{>agaj\~{h}| t'uqh|?}+ renders as \textgreek{>agaj\~{h}| t'aqh|?}. The macro \verb|\LGCscale| can be set if you wish to rescale the {\tt Tempora} text. For example, \verb|\def\LGCscale{1.05}| will scale it up by 5\%. This is handled automatically for you by {\tt newtxtext} if you set its scale using the {\tt scaled} option.
@@ -72,7 +96,6 @@ This file will be read by {\tt fontspec} whenever {\tt tempora} is loaded as a f
\textsc{Example:}
\begin{verbatim}
\usepackage{fontspec}
-\defaultfontfeatures{Mapping=tex-text}
\setmainfont{TeX Gyre Termes}% assumes it to be in one of your fonts folders
\newfontfamily{\Temp}{tempora} % reads tempora.fontspec
\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gill Sans}