diff options
Diffstat (limited to 'Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx')
-rw-r--r-- | Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx | 181 |
1 files changed, 108 insertions, 73 deletions
diff --git a/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx b/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx index 982dd0a6262..50327f0ad3d 100644 --- a/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx +++ b/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx @@ -1,7 +1,8 @@ -\documentclass[paper=a4,british]{scrartcl} +\documentclass[paper=a4]{scrartcl} % Packages -\usepackage{graphics, array, varioref} +\usepackage{graphics, array} \usepackage[svgnames]{xcolor} +\usepackage[hypcap=false]{caption} \usepackage{shortvrb} \usepackage{kpfonts-otf} \setmonofont{KpMono}[Color=DarkBlue] @@ -13,7 +14,8 @@ \setmathfont{KpMath-Bold.otf}[version=bold, Style=leqslant, CharacterVariant=3] \setmathfont{KpMath-Sans.otf}[version=sans, Style=leqslant, CharacterVariant=3] -\usepackage{babel} +\usepackage[british,french]{babel} % french layout (lists, …) +\usepackage[english]{varioref} \usepackage{realscripts} \usepackage{microtype} \usepackage{hyperref} @@ -27,7 +29,6 @@ % \MakeShortVerb{\|} -\newcommand*{\textsb}[1]{{\Semibold #1}} \newcommand*{\pkg}[1]{\texttt{#1}} \newcommand*{\opt}[1]{\texttt{#1}} \newcommand*{\optit}[1]{\textit{\color{DarkBlue}#1}} @@ -39,9 +40,10 @@ \title{Kp-fonts: OpenType version} \author{\href{mailto:daniel.flipo@free.fr}{Daniel \textsc{Flipo}}} -\newcommand*{\version}{0.31} +\newcommand*{\version}{0.32} \begin{document} +\selectlanguage{british} \maketitle \thispagestyle{empty} @@ -187,13 +189,25 @@ and a bunch of Kp-fonts specifics symbols. \item \textsc{\textbf{\test}} \end{itemize} -\item[veryoldstyle:] same as option \opt{oldstyle} but the round `s’ - is replaced by the long one {\addfontfeatures{RawFeature=+hist;+hlig}`s’}, - unless it ends a word (then it remains `s’). - Just code \texttt{s=} to force a round `s’ if needed. - {\addfontfeatures{RawFeature=+hist;+hlig;+fina;+calt}% - \textit{Highlands’ mysterious castles}} can be coded as\\ - |\textit{{Highlands’ mysterious castles}| +\item[veryoldstyle:] \label{veryoldstyle} same as option \opt{oldstyle} but + the round `s’ is replaced by the long one + {\addfontfeatures{RawFeature=+hist;+hlig}`s\hspace{1sp}’}, + unless it ends a word (then it remains `s’)% + \footnote{The OpenType \texttt{calt} feature is used to catch `s’ ending + a word.} + and ancient ligatures {\addfontfeatures{RawFeature=+hist;+hlig} si, sl, st} + are activated. + Coding \texttt{s=} prints a round `s’ anytime; in most cases this coding is + not necessary with LuaTeX% + \footnote{TeX’s \tild{} char (nobreakspace) fails to be recognised as ending + a word: \texttt{boys\tild{}band} prints + {\addfontfeatures{RawFeature=+hist;+hlig}boys~band}.}, + f.i. |\textit{some of Highlands’ mysterious castles…}| + will print + {\addfontfeatures{RawFeature=+hist;+hlig;+calt}% + \textit{some of Highlands’ mysterious castles…}} which is correct; + with XeTeX an \texttt{=} sign must be added at the end of + \texttt{mysterious=} to get a round `s’ there. \item[largesmallcaps:] prints larger \textlsc{Small Caps} than the default ones (\textsc{Petites Caps}). @@ -217,8 +231,8 @@ and a bunch of Kp-fonts specifics symbols. \item[mathcal:] forces commands |\mathcal| and |\mathscr| to print %%% Even with STIX2Math \mathcal and \mathscr print the same!!! BUG? - \mathversion{full}$\mathcal{ABCD}$ % $\mathscr{ABCD}$ - instead of \mathversion{base} $\mathcal{ABCD}$ (default). + \mathversion{full}$\mathcal{A,B,C,D}$ % $\mathscr{ABCD}$ + instead of \mathversion{base} $\mathcal{A,B,C,D}$ (default). \item[frenchstyle:] Latin uppercase letters and all Greek letters are printed upright, only lowercase latin letters are printed in italics; @@ -240,6 +254,9 @@ and a bunch of Kp-fonts specifics symbols. \item[fancyReIm:] commands |\Re| et |\Im| print $\RE$ and $\IM$ respectively instead of $\Re$ et $\Im$. +\item[tight :] horizontal spaces tightened in math mode (same settings as + \pkg{fourier-otf}). + \item[noDcommand:] do not define |\D| to avoid incompatibilities with other packages. @@ -249,8 +266,8 @@ and a bunch of Kp-fonts specifics symbols. \label{sec:options-standard} Loading Kp-fonts through \file{kpfonts-otf.sty} offers only a limited choice -of options; using the standard commands \cmd{setmainfont}, \cmd{setsansfont}, -\cmd{setmonofont}, \cmd{setmathfont} offers much more flexibility. +of options; the standard commands \cmd{setmainfont}, \cmd{setsansfont}, +\cmd{setmonofont}, \cmd{setmathfont} offer much more flexibility. On the other hand, \file{kpfonts-otf.sty} defines a lot of useful commands to access AMS and specific Kp-fonts symbols. Loading \pkg{kpfonts-otf} with @@ -295,16 +312,23 @@ Here are the options available for Text Kp-fonts: \item[Ligatures=Common] (default) automatic ligatures ff ffi ffl fi fl. -\item[Ligatures=Rare] {\addfontfeature{Ligatures=Rare} ct et st} ligatures. +\item[Alternate=1] provides an alternative for glyphs + {\addfontfeature{Alternate=1} ffi ffl fi fl} (ff is unchanged). + +\item[Ligatures=Required :] adds {\addfontfeature{Ligatures=Required} ft et tt} + ligatures. + +\item[Ligatures=Rare] adds {\addfontfeature{Ligatures=Rare} ct et st} ligatures. \item[Style=Swash] to get the long-tailed capital Q: {\addfontfeature{Style=Swash}Queen, also in small caps (both sizes): - \textpsc{Queen} and \textlsc{Queen}} ; + \textpsc{Queen} and \textlsc{Queen}}. -\item[Style=Historic] prints a long-s ({\addfontfeature{Style=Historic}s}) - instead of `s’ except as last letter of a word: - {\addfontfeature{Style=Historic}`mysterious’}; getting a normal `s’ is - possible anytime coding `|s=|’. +\item[Style=Historic] replaces any instance of `s’ by the long variant + {\addfontfeature{Style=Historic}s}. It is still possible to get a round + `s’ coding it as `|s=|’. As the long variant is never used at words’ ends + the feature \opt{calc} is also activated: it tries to catch end of words, + see \opt{veryoldstyle} p.~\pageref{veryoldstyle} for more details. \item[Ligatures=Historic] switches specific ligatures for the long {\addfontfeature{Style=Historic}s}: @@ -358,7 +382,7 @@ or to |\setmathfont{}|: \item[nabla =] \opt{italic} (default upright); \end{description} -Seven `Style Variants’ are available with Kp-fonts, here are the first thee: +Seven `Style Variants’ are available with Kp-fonts, here are the first three: \begin{description} \item[Style=mathcal] (\texttt{+ss01}) commands |\mathcal{}| and |\mathscr{}| print \mathversion{full}$\mathcal{ABC}$ instead of @@ -374,16 +398,16 @@ Seven `Style Variants’ are available with Kp-fonts, here are the first thee: \mathversion{base}$\iiint$ (default). \end{description} -\begin{table}[ht] -The next four tables present the other Style Variants available. - - {\centering - \caption{Style=leqslant (\texttt{+ss04})} - \label{ss04} - \begin{tabular}{@{}lcc@{}} - \hline +\vspace{\baselineskip} +The next four tables present the other Style Variants available: +\par\noindent +\begin{minipage}{\linewidth} + \begin{minipage}[t]{0.45\linewidth}\centering + \captionof{table}{Style=leqslant (\texttt{+ss04})}\label{ss04} + \begin{tabular}{@{}lcc@{}} + \hline Command & Default & Variant \\ - \hline + \hline \cmd{leq} & $\leq$ & $\leqslant$ \\ \cmd{geq} & $\geq$ & $\geqslant$ \\ \cmd{nleq} & $\nleq$ & $\nleqslant$ \\ @@ -392,68 +416,70 @@ The next four tables present the other Style Variants available. \cmd{geqq} & $\geqq$ & $\geqqslant$ \\ \cmd{eqless} & $\eqless$ & $\eqslantless$ \\ \cmd{eqgtr} & $\eqgtr$ & $\eqslantgtr$ \\ - \hline - \end{tabular}\par} -\end{table} - -\begin{table}[ht] - \centering - \caption{Style=smaller (\texttt{+ss05})} - \label{ss05} - \begin{tabular}{@{}lcc@{}} - \hline + \cmd{lesseqgtr} & $\lesseqgtr$ & $\lesseqslantgtr$ \\ + \cmd{gtreqless} & $\gtreqless$ & $\gtreqslantless$ \\ + \cmd{lesseqqgtr} & $\lesseqqgtr$ & $\lesseqqslantgtr$ \\ + \cmd{gtreqqless} & $\gtreqqless$ & $\gtreqqslantless$ \\ + \hline + \end{tabular} + \end{minipage}\hspace{\fill} + \begin{minipage}[t]{0.5\linewidth}\centering + \captionof{table}{Style=smaller (\texttt{+ss05})}\label{ss05} + \begin{tabular}{@{}lcc@{}} + \hline Command & Default & Variant \\ - \hline + \hline \cmd{mid} & $\mid$ & $\shortmid$ \\ \cmd{nmid} & $\nmid$ & $\nshortmid$ \\ \cmd{parallel} & $\parallel$ & $\shortparallel$ \\ \cmd{nparallel} & $\nparallel$ & $\nshortparallel$ \\ - \hline - \end{tabular} -\end{table} - -\begin{table}[ht] - \centering - \caption{Style=subsetneq (\texttt{+ss06})} - \label{ss06} - \begin{tabular}{@{}lcc@{}} - \hline + \cmd{parallelslant} & $\parallelslant$ & $\shortparallelslant$ \\ + \cmd{nparallelslant} & $\nparallelslant$ & $\nshortparallelslant$ \\ + \hline + \end{tabular} + \end{minipage}\\[\baselineskip] + \begin{minipage}[t]{0.45\linewidth}\centering + \captionof{table}{Style=subsetneq (\texttt{+ss06})}\label{ss06} + \begin{tabular}{@{}lcc@{}} + \hline Command & Default & Variant \\ - \hline + \hline \cmd{subsetneq} & $\subsetneq$ & $\varsubsetneq$ \\ \cmd{supsetneq} & $\supsetneq$ & $\varsupsetneq$ \\ \cmd{subsetneqq} & $\subsetneqq$ & $\varsubsetneqq$ \\ \cmd{supsetneqq} & $\supsetneqq$ & $\varsupsetneqq$ \\ - \hline - \end{tabular} -\end{table} - - \begin{table}[ht] - {\centering - \caption{Style=parallelslant (\texttt{+ss07})} - \label{ss07} - \begin{tabular}{@{}lcc@{}} - \hline + \hline + \end{tabular} + \end{minipage}\hspace{\fill} + \begin{minipage}[t]{0.5\linewidth}\centering + \captionof{table}{Style=parallelslant (\texttt{+ss07})}\label{ss07} + \begin{tabular}{@{}lcc@{}} + \hline Command & Default & Variant \\ - \hline + \hline \cmd{parallel} & $\parallel$ & $\parallelslant$ \\ \cmd{nparallel} & $\nparallel$ & $\nparallelslant$ \\ - \hline - \end{tabular}\par} + \cmd{shortparallel} & $\shortparallel$ & $\shortparallelslant$ \\ + \cmd{nshortparallel} & $\nshortparallel$ & $\nshortparallelslant$ \\ + \hline + \end{tabular} + \end{minipage} +\end{minipage} \vspace{\baselineskip} Example: switching styles 4 (leqslant) and 6 (subsetneq) can be achieved coding either\\ |\setmathfont{KpMath-Regular.otf}[StylisticSet={4,6}]|\quad or\\ -|\setmathfont{KpMath-Regular.otf}[Style={leqslant,subsetneq}]| -\end{table} +|\setmathfont{KpMath-Regular.otf}[Style={leqslant,subsetneq}]|\\ +but this second syntax is available only if \pkg{kpfonts-otf.sty} has been +loaded (eventually with the \opt{symbols} option). \vspace{\baselineskip} -Table~\vref{cv} shows the available `Glyph Variants’: +Table~\vref{cv} shows the available `Glyphs Variants’: \begin{table}[ht] \centering - \caption{Variantes de glyphe} + \caption{Glyphs Variants} \label{cv} \begin{tabular}{@{}>{\ttfamily}lccl@{}} \hline @@ -575,6 +601,7 @@ are coded in Kp-fonts’ private zone. The full list of Unicode symbols available with Kp-fonts is shown in file \file{unimath-kpfonts.pdf}. +\newpage \subsection{Wide accents} \begin{itemize} @@ -589,6 +616,12 @@ The full list of Unicode symbols available with Kp-fonts is shown in file \overline{A\cup B}\quad \overline{A\cup (B\cap C)\cup D}\quad \underline{m+n+p}\] +\item \cmd{wideoverbar}, \cmd{widecheck} et \cmd{widebreve} + \[\wideoverbar{x}\quad \wideoverbar{xy}\quad \wideoverbar{xyz}\quad + \widecheck{x}\quad \widecheck{xxxx}\quad \widecheck{xxxxxx}\quad + \widebreve{x}\quad \widebreve{xxxx}\quad \widebreve{xxxxxx} + \] + \item \cmd{overparen} and \cmd{underparen} \[\overparen{x}\quad \overparen{xy}\quad \overparen{xyz}\quad \mathring{\overparen{A\cup B}}\quad @@ -623,8 +656,9 @@ The full list of Unicode symbols available with Kp-fonts is shown in file \subsection{Math Versions} -Different versions of the \family{KpMath} fonts may be definde in the +Different versions of the \family{KpMath} fonts may be defined in the document’s preamble:\\ +|\setmathfont{KpMath-Regular.otf}[version=base|, \optit{options} |]|\\ |\setmathfont{KpMath-Bold.otf}[version=bold|, \optit{options} |]|\\ |\setmathfont{KpMath-Semibold.otf}[version=semibold|, \optit{options} |]|\\ |\setmathfont{KpMath-Sans.otf}[version=sans|, \optit{options} |]|\\ @@ -632,7 +666,8 @@ document’s preamble:\\ then, it is easy to switch from one version to another one with |\mathversion{|\optit{name}|}|. -\vspace{\baselineskip} + +\newpage Example\footnote{Option \opt{CharacterVariant=3} changes $\epsilon$ into $\varepsilon$.} : \begin{verbatim} |