[lucida] Question about lucida-otf.sty

John H Lienhard lienhard at mit.edu
Sat Nov 4 22:17:38 CET 2017


Hi all —

While running Lucida OTF [system] fonts under LuaLaTeX, I’ve noticed that various ‘legacy maths alphabets’ are not loading (Latin Modern is produced) and that the math operators font hits a glitch. I don't these issues with other OTF math fonts, and I believe they are specific to lucida-otf.sty

A working example is below. The packages I’m using should all be current versions (at bottom).

These issues can be resolved by uncommenting the \set… commands noted — or by removing “version=normal” from lucida-otf.sty.  I’m not sure whether the issue is local to my system or more general?

 — John Lienhard

~~~~

% !TEX TS-program = lualatex
% !TEX encoding = UTF-8 Unicode

\documentclass[11pt]{article}
\usepackage{amsmath}

\usepackage[MM={Scale=0.92}, MMbold={Scale=0.92}, CAL={Scale=0.92}]{lucida-otf}

% adding these lines results in the correct text faces
%\setmathfontface\mathtt{Lucida Sans Typewriter OT}[Scale=0.92]
%\setmathfontface\mathsf{Lucida Sans OT}[Scale=0.92]
%\setmathfontface\mathbf{Lucida Bright OT Demibold}[Scale=0.92]
%\setmathfontface\mathit{Lucida Bright OT Italic}[Scale=0.92]

% adding the next line corrects error with operator font \mathrm
%\setoperatorfont\symup

% the other path that corrects these problems is to remove "version=normal" from lucida-otf.sty

\newcommand*{\Sphinx}{Sphinx of black quartz, judge my vow.}

\begin{document}

$$f(x) = \tan(x) = \sin(x)\big/\cos(x) \text{ math operator font}$$

Compare maths alphabet font faces to those in text, legacy commands:
$$\mathrm{\Sphinx}   \quad   \text{{\Sphinx}}$$
$$\mathsf{\Sphinx}   \quad   \text{\textsf{\Sphinx}}$$
$$\mathtt{\Sphinx}    \quad   \text{\texttt{\Sphinx}}$$
$$\mathbf{\Sphinx}   \quad   \text{\textbf{\Sphinx}}$$
$$\mathit{\Sphinx}    \quad   \text{\itshape{\Sphinx}}$$
$$\mathbfit{\Sphinx} \quad   \text{\bfseries\itshape{\Sphinx}}$$

Compare maths alphabet font faces to those in text, unicode commands:
$$\symup{\Sphinx}   \quad   \text{{\Sphinx}}$$
$$\symsf{\Sphinx}   \quad   \text{\textsf{\Sphinx}}$$
$$\symtt{\Sphinx}    \quad   \text{\texttt{\Sphinx}}$$
$$\symbf{\Sphinx}   \quad   \text{\textbf{\Sphinx}}$$
$$\symit{\Sphinx}    \quad   \text{\itshape{\Sphinx}}$$
$$\symbfit{\Sphinx} \quad   \text{\bfseries\itshape{\Sphinx}}$$

\end{document}

~~~~~~~

*File List*
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size11.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
 amsmath.sty    2017/09/02 v2.17a AMS math features
 amstext.sty    2000/06/29 v2.01 AMS text
  amsgen.sty    1999/11/30 v2.0 generic functions
  amsbsy.sty    1999/11/29 v1.2d Bold Symbols
  amsopn.sty    2016/03/08 v2.02 operator names
lucida-otf.sty    2017/07/02 v. 0.04 (Herbert Voss) Supports Lucida OpenType fo
r lualatex/xelatex.
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty    2016/05/16 v1.4 Provides the ifluatex switch (HO)
 xkeyval.sty    2014/12/03 v2.7a package option processing (HA)
 xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)
textcomp.sty    2017/04/05 v2.0i Standard LaTeX package
  ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
unicode-math.sty
   expl3.sty    2017/09/18 L3 programming layer (loader)
expl3-code.tex    2017/09/18 L3 programming layer
l3pdfmode.def    2017/03/18 v L3 Experimental driver: PDF mode
  xparse.sty    2017/09/18 L3 Experimental document command parser
l3keys2e.sty    2017/09/18 LaTeX2e option processing using LaTeX3 keys
fontspec.sty    2017/09/22 v2.6e Font selection for XeLaTeX and LuaLaTeX
fontspec-luatex.sty    2017/09/22 v2.6e Font selection for XeLaTeX and LuaLaTeX

 fontenc.sty
   tuenc.def    2017/04/05 v2.0i Standard LaTeX file
fontspec.cfg
ucharcat.sty    2015/11/19 v0.03 ucharcat for luaLaTeX (DPC)
  fix-cm.sty    2015/01/14 v1.1t fixes to LaTeX
  ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
filehook.sty    2011/10/12 v0.5d Hooks for input files
unicode-math-luatex.sty    2017/10/09 v0.8h Unicode maths in XeLaTeX and LuaLaT
eX
lualatex-math.sty    2017/06/15 v1.7 Patches for mathematics typesetting with L
uaLaTeX
etoolbox.sty    2017/01/02 v2.4 e-TeX tools for LaTeX (JAW)
 ***********


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/lucida/attachments/20171104/c8b9b4e5/attachment.html>


More information about the lucida mailing list