-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: section titles are not bold if mathpazo
package is used
#1097
Comments
Hey @cgahr thx for this one! If you try several engines you can see that only
While |
Hmm, that's interesting. It seems like Also, with the package being from the 2000s, I don't think that there will be any change to this (In addition, I did not find a way to contact the author). I'd love to have it in tectonic anyway, but I perfectly understand the reason why this does not belong here. Please close the issue if there won't be any changes to tectonic to handle this. |
@cgahr Their contact info is As an alternative, here's some code that works portably for \documentclass{article}
\usepackage{iftex}
\iftutex
\usepackage{fontspec}
\setmainfont{Palatino}
\else
\usepackage{mathpazo}
\fi
\begin{document}
Hello, World!
\end{document}
Cheers! |
@cgahr The package If you are however willing to conditionally compile your document, based on what TeX engine is used, just like @Neved4 suggested, you may find luck with the following in your document's preamble: \usepackage{iftex}
\iftutex
% running under Unicode TeX engine (XeTeX, LuaTeX), use modern things
\setmainfont{texgyrepagella}[
Extension = .otf,
UprightFont = *-regular,
BoldFont = *-bold,
ItalicFont = *-italic,
BoldItalicFont = *-bolditalic]
\usepackage{unicode-math}
\setmathfont{texgyrepagella-math.otf}
\else
% running something older, ensure it is pdfTeX (i.e `pdflatex` or `latex`)
\RequirePDFTeX
% additionally, force `latex` to produce PDF output (needed for Arxiv)
\pdfoutput=1
% use old things
\usepackage{mathpazo}
\fi Above, For future reference, the full example below works for me with Tectonic (although I am unable to test pdflatex now, I believe it should work just as well): \documentclass{article}
\usepackage{iftex}
\iftutex
% running under Unicode TeX engine (XeTeX, LuaTeX), use modern things
\usepackage{fontspec}
\setmainfont{texgyrepagella}[
Extension = .otf,
UprightFont = *-regular,
BoldFont = *-bold,
ItalicFont = *-italic,
BoldItalicFont = *-bolditalic]
\usepackage{unicode-math}
\setmathfont{texgyrepagella-math.otf}
\else
% running something older, ensure it is pdfTeX (i.e `pdflatex` or `latex`)
\RequirePDFTeX
% additionally, force `latex` to produce PDF output (needed for Arxiv)
\pdfoutput=1
% use old things
\usepackage{mathpazo}
\fi
\begin{document}
\section{Introduction}
\label{sec1}
\section{Preparation of Manuscript}
\label{sec2}
\end{document} If you are interested more about modern Unicode setups in TeX, be sure to read more in the documentation of the The code above is based on comment elsewhere: #969 (comment). As mentioned in that issue, a shorter way of specifying the Pagella font is normally available: \setmainfont{TeX Gyre Pagella}
\setmathfont{TeX Gyre Pagella Math} However, that one suffers from another Tectonic issue (#9) and I actually think that specifying fonts by font file names rather than font names is much preferable and consistent (see #965 (comment)) |
I suggest |
@vlasakm Great suggestion! 🚀 Edited to reflect it accordingly. |
Thank you so much for your inputs! For now, I just try to not use However, should the need arise, I know where to look! |
mathpazo
"unbolds" section headingsIf I import the latex package
mathpazo
, section titles are suddenly not bold anymore. Compiling using pdflatex works as intendend:with
mathpazo
Code
Screenshot of result
without
mathpazo
Code
Screenshot of result
Version
The text was updated successfully, but these errors were encountered: