How can I set up documents in Chalkduster:
\usepackage[no-math]{fontspec}
\setmainfont[Mapping=tex-text]{Chalkduster}
\usepackage[defaultmathsizes]{mathastext}
Thanks in advance.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityHow can I set up documents in Chalkduster:
\usepackage[no-math]{fontspec}
\setmainfont[Mapping=tex-text]{Chalkduster}
\usepackage[defaultmathsizes]{mathastext}
Thanks in advance.
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:
Here is a handy guide for using custom fonts.
Mapping=tex-text
should be Ligatures=TeX
, but it can be omitted, because the option is set by default for the main font.