2

How can I set up documents in Chalkduster:

\usepackage[no-math]{fontspec}
\setmainfont[Mapping=tex-text]{Chalkduster}
\usepackage[defaultmathsizes]{mathastext}

Thanks in advance.

1

1 Answer 1

2

XeLaTeX is a great solution to all font issues. The code you have should work:

\documentclass{standalone}
\usepackage[no-math]{fontspec}
\setmainfont[Mapping=tex-text]{Chalkduster} 
\usepackage[defaultmathsizes]{mathastext}
\begin{document}
I am a poor imitation of a chalkboard
\end{document}

Make sure you typeset with XeLaTeX, not LaTeX (there are usually such options in your editor). You also need the Chalkduster font installed on your machine and need to use the correct name (this should show up when using a font explorer or similar). Here's the result:

enter image description here

Here is a handy guide for using custom fonts.

2
  • 2
    Mapping=tex-text should be Ligatures=TeX, but it can be omitted, because the option is set by default for the main font.
    – egreg
    Jan 29, 2018 at 16:37
  • This fails for me with Error 35584. Any ideas? tex.stackexchange.com/a/550440/218836
    – cobordism
    Jun 21, 2020 at 16:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .