Issues with XeLaTeX and LuaLatex

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues with XeLaTeX and LuaLatex

Gerben Wierda-2
Hello world,

I’ve been experimenting with XeLaTeX and LuaLaTeX. This is in my preamble:

\documentclass[10pt]{article}
\usepackage{relsize}
\usepackage[dutch]{babel}
\usepackage{multicol}
\usepackage[colorlinks=true]{hyperref}
\usepackage{cleveref}
\crefformat{footnote}{#2\footnotemark[#1]#3}
\usepackage{fontspec}
\usepackage{textcomp}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\usepackage[scale=0.9]{geometry} % see geometry.pdf on how to lay out the page. There's lots.
\geometry{a4paper} % or letter or a5paper or ... etc
\usepackage[protrusion=true]{microtype}
\setmainfont{Optima}
\begin{document}

When using LuaLatex, I get 

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

and neither \textsl{} or \emph{} work.

With either LuaLaTeX or XeLaTeX I get tons of:

Package microtype Warning: Unknown slot number of character
(microtype)                `\r u'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `microtype.cfg/376(protrusion)'.


Package microtype Warning: Unknown slot number of character
(microtype)                `\'Z'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `microtype.cfg/376(protrusion)'.

Apparently, I don’t know what I’m doing. Finally moving away from my very outdated pdfTeX approach is probably the reason.



----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
Reply | Threaded
Open this post in threaded view
|

Re: Issues with XeLaTeX and LuaLatex

Herbert Schulz
> On Jun 14, 2019, at 3:27 PM, Gerben Wierda <[hidden email]> wrote:
>
> Hello world,
>
> I’ve been experimenting with XeLaTeX and LuaLaTeX. This is in my preamble:
>
> \documentclass[10pt]{article}
> \usepackage{relsize}
> \usepackage[dutch]{babel}
> \usepackage{multicol}
> \usepackage[colorlinks=true]{hyperref}
> \usepackage{cleveref}
> \crefformat{footnote}{#2\footnotemark[#1]#3}
> \usepackage{fontspec}
> \usepackage{textcomp}
> \usepackage{enumitem}% http://ctan.org/pkg/enumitem
> \usepackage[scale=0.9]{geometry} % see geometry.pdf on how to lay out the page. There's lots.
> \geometry{a4paper} % or letter or a5paper or ... etc
> \usepackage[protrusion=true]{microtype}
> \setmainfont{Optima}
> \begin{document}
>
> When using LuaLatex, I get
>
> LaTeX Font Warning: Some font shapes were not available, defaults substituted.
>
> and neither \textsl{} or \emph{} work.
>
> With either LuaLaTeX or XeLaTeX I get tons of:
>
> Package microtype Warning: Unknown slot number of character
> (microtype)                `\r u'
> (microtype)                in font encoding `TU' in inheritance list
> (microtype)                `microtype.cfg/376(protrusion)'.
>
>
> Package microtype Warning: Unknown slot number of character
> (microtype)                `\'Z'
> (microtype)                in font encoding `TU' in inheritance list
> (microtype)                `microtype.cfg/376(protrusion)'.
>
> Apparently, I don’t know what I’m doing. Finally moving away from my very outdated pdfTeX approach is probably the reason.
>
>
>
> Gerben Wierda
> Chess and the Art of Enterprise Architecture
> Mastering ArchiMate
> Architecture for Real Enterprises at InfoWorld
> On Slippery Ice at EAPJ

Howdy,

It appears that there is a problem with the Optima font. Does the otf/ttf version have those accented character? Also, where is the Optima font file located? Is it somewhere that Font Book can find it?

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
Reply | Threaded
Open this post in threaded view
|

Re: Issues with XeLaTeX and LuaLatex

Gerben Wierda-2
Hi Herb,

There is only one Optima font on my system: /System/Library/Fonts/Optima.ttc. XeLaTeX handles it well, accented characters, such as á will display OK. slanted displays fine too. There are just these warnings from microtype. Remove \usepackage[protrusion=true]{microtype} and the warnings disappear. The warnings seem to be spurious. The document is typeset OK.

More problematic is the fact that when using  LuaLaTeX, I cant get slanted or bold fonts when I select Optima using fontspec

I’m dropping LuaTeX for now.


On 15 Jun 2019, at 00:10, Herbert Schulz <[hidden email]> wrote:

On Jun 14, 2019, at 3:27 PM, Gerben Wierda <[hidden email]> wrote:

Hello world,

I’ve been experimenting with XeLaTeX and LuaLaTeX. This is in my preamble:

\documentclass[10pt]{article}
\usepackage{relsize}
\usepackage[dutch]{babel}
\usepackage{multicol}
\usepackage[colorlinks=true]{hyperref}
\usepackage{cleveref}
\crefformat{footnote}{#2\footnotemark[#1]#3}
\usepackage{fontspec}
\usepackage{textcomp}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\usepackage[scale=0.9]{geometry} % see geometry.pdf on how to lay out the page. There's lots.
\geometry{a4paper} % or letter or a5paper or ... etc
\usepackage[protrusion=true]{microtype}
\setmainfont{Optima}
\begin{document}

When using LuaLatex, I get

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

and neither \textsl{} or \emph{} work.

With either LuaLaTeX or XeLaTeX I get tons of:

Package microtype Warning: Unknown slot number of character
(microtype)                `\r u'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `microtype.cfg/376(protrusion)'.


Package microtype Warning: Unknown slot number of character
(microtype)                `\'Z'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `microtype.cfg/376(protrusion)'.

Apparently, I don’t know what I’m doing. Finally moving away from my very outdated pdfTeX approach is probably the reason.



Gerben Wierda
Chess and the Art of Enterprise Architecture
Mastering ArchiMate
Architecture for Real Enterprises at InfoWorld
On Slippery Ice at EAPJ

Howdy,

It appears that there is a problem with the Optima font. Does the otf/ttf version have those accented character? Also, where is the Optima font file located? Is it somewhere that Font Book can find it?

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
               https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
Reply | Threaded
Open this post in threaded view
|

Re: Issues with XeLaTeX and LuaLatex

Herbert Schulz
> On Jun 15, 2019, at 9:40 AM, Gerben Wierda <[hidden email]> wrote:
>
> Hi Herb,
>
> There is only one Optima font on my system: /System/Library/Fonts/Optima.ttc. XeLaTeX handles it well, accented characters, such as á will display OK. slanted displays fine too. There are just these warnings from microtype. Remove \usepackage[protrusion=true]{microtype} and the warnings disappear. The warnings seem to be spurious. The document is typeset OK.
>
> More problematic is the fact that when using  LuaLaTeX, I cant get slanted or bold fonts when I select Optima using fontspec
>
> I’m dropping LuaTeX for now.
>
> Gerben Wierda
> Chess and the Art of Enterprise Architecture
> Mastering ArchiMate
> Architecture for Real Enterprises at InfoWorld
> On Slippery Ice at EAPJ
>
>> On 15 Jun 2019, at 00:10, Herbert Schulz <[hidden email]> wrote:
>>
>>> On Jun 14, 2019, at 3:27 PM, Gerben Wierda <[hidden email]> wrote:
>>>
>>> Hello world,
>>>
>>> I’ve been experimenting with XeLaTeX and LuaLaTeX. This is in my preamble:
>>>
>>> \documentclass[10pt]{article}
>>> \usepackage{relsize}
>>> \usepackage[dutch]{babel}
>>> \usepackage{multicol}
>>> \usepackage[colorlinks=true]{hyperref}
>>> \usepackage{cleveref}
>>> \crefformat{footnote}{#2\footnotemark[#1]#3}
>>> \usepackage{fontspec}
>>> \usepackage{textcomp}
>>> \usepackage{enumitem}% http://ctan.org/pkg/enumitem
>>> \usepackage[scale=0.9]{geometry} % see geometry.pdf on how to lay out the page. There's lots.
>>> \geometry{a4paper} % or letter or a5paper or ... etc
>>> \usepackage[protrusion=true]{microtype}
>>> \setmainfont{Optima}
>>> \begin{document}
>>>
>>> When using LuaLatex, I get
>>>
>>> LaTeX Font Warning: Some font shapes were not available, defaults substituted.
>>>
>>> and neither \textsl{} or \emph{} work.
>>>
>>> With either LuaLaTeX or XeLaTeX I get tons of:
>>>
>>> Package microtype Warning: Unknown slot number of character
>>> (microtype)                `\r u'
>>> (microtype)                in font encoding `TU' in inheritance list
>>> (microtype)                `microtype.cfg/376(protrusion)'.
>>>
>>>
>>> Package microtype Warning: Unknown slot number of character
>>> (microtype)                `\'Z'
>>> (microtype)                in font encoding `TU' in inheritance list
>>> (microtype)                `microtype.cfg/376(protrusion)'.
>>>
>>> Apparently, I don’t know what I’m doing. Finally moving away from my very outdated pdfTeX approach is probably the reason.
>>>
>>>
>>>
>>> Gerben Wierda
>>> Chess and the Art of Enterprise Architecture
>>> Mastering ArchiMate
>>> Architecture for Real Enterprises at InfoWorld
>>> On Slippery Ice at EAPJ
>>
>> Howdy,
>>
>> It appears that there is a problem with the Optima font. Does the otf/ttf version have those accented character? Also, where is the Optima font file located? Is it somewhere that Font Book can find it?
>>
>> Good Luck,
>>
>> Herb Schulz
>> (herbs at wideopenwest dot com)

Howdy,

Are you using the macros for accented characters or simply typing them into your document. I may be that microtype is complaining that the composed characters aren't there (but the actual character is there so shows up in your document).

Sigh... I didn't see Optima in Font Book because my Personal Fonts were selected rather than All Fonts. Font Book and my sample don't show Small Caps as being available.

I rarely use lualatex. You might try to remove ~/texlive/2019/texmf-var/luatex-cache and rerun. It will take a while to re-build the cache the first time there is a compile. I have a test file that shows those variations correctly when compiled with lualatex.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
Reply | Threaded
Open this post in threaded view
|

Re: Issues with XeLaTeX and LuaLatex

Herbert Schulz
In reply to this post by Gerben Wierda-2
Howdy,

One more thing. A message on Stack Exchange has pointed out a potential problem with xelatex (fontspec? but probably xetex itself) and small caps with Apple's ttf files.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
Reply | Threaded
Open this post in threaded view
|

Re: Issues with XeLaTeX and LuaLatex

Ettore Aldrovandi
In reply to this post by Gerben Wierda-2
For the record, with the following MWE (I’m on TeXLive 2019)

\documentclass{article}
\usepackage{lipsum}
\usepackage{fontspec}
\setmainfont{Optima}
\usepackage[protrusion=true]{microtype}
\begin{document}
\lipsum[1]
\end{document}

I get the warnings with both xelatex and lualatex. You may want to have a look at the following discussion:


pointing to the character inheritance. It’s Optima: changing Optima to, say, Baskerville makes the warnings go away. 

—Ettore

Ettore Aldrovandi
Department of Mathematics, Florida State University
1017 Academic Way                *   http://www.math.fsu.edu/~ealdrov
Tallahassee, FL 32306-4510, USA * * aldrovandi at math dot fsu dot edu

On Jun 15, 2019, at 10:40, Gerben Wierda <[hidden email]> wrote:

Hi Herb,

There is only one Optima font on my system: /System/Library/Fonts/Optima.ttc. XeLaTeX handles it well, accented characters, such as á will display OK. slanted displays fine too. There are just these warnings from microtype. Remove \usepackage[protrusion=true]{microtype} and the warnings disappear. The warnings seem to be spurious. The document is typeset OK.

More problematic is the fact that when using  LuaLaTeX, I cant get slanted or bold fonts when I select Optima using fontspec

I’m dropping LuaTeX for now.


On 15 Jun 2019, at 00:10, Herbert Schulz <[hidden email]> wrote:

On Jun 14, 2019, at 3:27 PM, Gerben Wierda <[hidden email]> wrote:

Hello world,

I’ve been experimenting with XeLaTeX and LuaLaTeX. This is in my preamble:

\documentclass[10pt]{article}
\usepackage{relsize}
\usepackage[dutch]{babel}
\usepackage{multicol}
\usepackage[colorlinks=true]{hyperref}
\usepackage{cleveref}
\crefformat{footnote}{#2\footnotemark[#1]#3}
\usepackage{fontspec}
\usepackage{textcomp}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\usepackage[scale=0.9]{geometry} % see geometry.pdf on how to lay out the page. There's lots.
\geometry{a4paper} % or letter or a5paper or ... etc
\usepackage[protrusion=true]{microtype}
\setmainfont{Optima}
\begin{document}

When using LuaLatex, I get

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

and neither \textsl{} or \emph{} work.

With either LuaLaTeX or XeLaTeX I get tons of:

Package microtype Warning: Unknown slot number of character
(microtype)                `\r u'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `microtype.cfg/376(protrusion)'.


Package microtype Warning: Unknown slot number of character
(microtype)                `\'Z'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `microtype.cfg/376(protrusion)'.

Apparently, I don’t know what I’m doing. Finally moving away from my very outdated pdfTeX approach is probably the reason.



Gerben Wierda
Chess and the Art of Enterprise Architecture
Mastering ArchiMate
Architecture for Real Enterprises at InfoWorld
On Slippery Ice at EAPJ

Howdy,

It appears that there is a problem with the Optima font. Does the otf/ttf version have those accented character? Also, where is the Optima font file located? Is it somewhere that Font Book can find it?

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
               https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
               https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
Reply | Threaded
Open this post in threaded view
|

Re: Issues with XeLaTeX and LuaLatex

Herbert Schulz
> On Jun 16, 2019, at 3:38 PM, Ettore Aldrovandi <[hidden email]> wrote:
>
> For the record, with the following MWE (I’m on TeXLive 2019)
>
> \documentclass{article}
> \usepackage{lipsum}
> \usepackage{fontspec}
> \setmainfont{Optima}
> \usepackage[protrusion=true]{microtype}
> \begin{document}
> \lipsum[1]
> \end{document}
>
> I get the warnings with both xelatex and lualatex. You may want to have a look at the following discussion:
>
> https://tex.stackexchange.com/questions/380812/microtype-warning-unknown-slot-number-of-character-with-lato-font/380897#380897
>
> pointing to the character inheritance. It’s Optima: changing Optima to, say, Baskerville makes the warnings go away.
>
> —Ettore
>

Howdy,

This is wonderful information.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
Reply | Threaded
Open this post in threaded view
|

Re: Issues with XeLaTeX and LuaLatex

"Néstor E. Aguilera"
Hi,

I haven't used xelatex or lualatex because I don't know which math fonts to use.

In view of Ettore's example, I decided to give them a try and I was surprised by how different the output is.

With Optima, xelatex spreads more the text, using more space than the lualatex version, whereas with Baskerville the opposite seems to be true. Is this reasonable?

Nestor


> On 16 Jun 2019, at 19:35, Herbert Schulz <[hidden email]> wrote:
>
>> On Jun 16, 2019, at 3:38 PM, Ettore Aldrovandi <[hidden email]> wrote:
>>
>> For the record, with the following MWE (I’m on TeXLive 2019)
>>
>> \documentclass{article}
>> \usepackage{lipsum}
>> \usepackage{fontspec}
>> \setmainfont{Optima}
>> \usepackage[protrusion=true]{microtype}
>> \begin{document}
>> \lipsum[1]
>> \end{document}
>>
>> I get the warnings with both xelatex and lualatex. You may want to have a look at the following discussion:
>>
>> https://tex.stackexchange.com/questions/380812/microtype-warning-unknown-slot-number-of-character-with-lato-font/380897#380897
>>
>> pointing to the character inheritance. It’s Optima: changing Optima to, say, Baskerville makes the warnings go away.
>>
>> —Ettore
>>
>
> Howdy,
>
> This is wonderful information.
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest dot com)
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>                https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex