Closed AustinT closed 3 years ago
Are you using XeLaTeX or pdfLaTeX as the engine? Font set up is dependant on the engine, see the class file.
Will involve using \setmathfont see
Are you using XeLaTeX or pdfLaTeX as the engine? Font set up is dependant on the engine, see the class file.
Will involve using \setmathfont see
No, I'm using pdflatex, thanks for the suggestion though, that does seem very similar to what I am encountering.
For reference, I am just using the default setting in the MakeFile, which uses pdflatex.
In that case, for this:
Replace
\RequirePackage{textcomp}
(line 516 in the class file, PHDThesisPSnPDF.cls) with \RequirePackage{newtxmath}
, I think newtxmath loads textcomp. Use:
\begin{equation}
f:\chi \mapsto \Zbar
\end{equation}
To adjust the character position use:
\begin{equation}
f:\chi \mapsto \raisebox{-2pt}{$\Zbar$}
\end{equation}
See also: Directory fonts/newtx
I think the Stix fonts will also be suitable, stix – OpenType Unicode maths fonts, but that will require extra coding to switch to the appropriate font for pdfLaTeX.
In that case, for this:
Replace
\RequirePackage{textcomp}
(line 516 in the class file, PHDThesisPSnPDF.cls) with\RequirePackage{newtxmath}
, I think newtxmath loads textcomp. Use:\begin{equation} f:\chi \mapsto \Zbar \end{equation}
To adjust the character position use:
\begin{equation} f:\chi \mapsto \raisebox{-2pt}{$\Zbar$} \end{equation}
See also: Directory fonts/newtx I think the Stix fonts will also be suitable, stix – OpenType Unicode maths fonts, but that will require extra coding to switch to the appropriate font for pdfLaTeX.
Thank you for the suggestion, but it didn't change the font like I hoped. For reference, the code I am using is $f:\mathcal{X}\mapsto\mathcal{Z}$, not $f:\chi \mapsto \Zbar$ as you suggested. The issue is that $\mathcal{X}$ is just rendering in a different font (like $\mathscr{X}$ might normally render).
However, it was solved by replacing \RequirePackage{textcomp}
with \RequirePackage{stix}
! Thank you very much for the solution!
This template is extremely nice, but one issue I am having is that
\mathcal
seems to render as\mathscr
when thetimes
option is enabled. I am not sure whether this is an issue with the packagemathptmx
or due to some other command which has been overwritten in this template specifically. Any suggestions for resolving this?I've tried searching, but haven't been able to find any instances of people reporting this issue elsewhere, which is why I am raising an issue with this package specifically.
What I see:
What I'd like to see: