# Is there a way to globally set the math font style?

Specifically, I am using complex numbers and I would like my z to look like one would write it on paper. That is, with a bar through the middle. So my question is twofold. Does there exist a font in latex that has this bar and how do I set this such that this font is used in all math environments in my documents. A working example would be as follows.

\documentclass{article}
\usepackage{amsmath}

\begin{document}
$$z=a+ib$$
\end{document}

• Either there's such a symbol or define a command that uses this font for the symbol, say \myz
– user31729
Sep 14 '15 at 12:57

A first trial with logical markup, so make a consistent notation, defining \myz to be the (uppercase!) \mathcal{Z} letter.

\documentclass{article}
\usepackage{amsmath}

\newcommand{\myz}{\mathcal{Z}}

\begin{document}
$$\myz=a+ib$$
\end{document}

• Thanks, that helps with my current document. I guess this is the closest we can get without a global setting. There is probably simply no font that solves this problem by itself. Thanks again. Sep 14 '15 at 13:48
• @Justsomeone: I don't know at the moment. Perhaps you should give us a example how this z - letter should look like.
– user31729
Sep 14 '15 at 13:50