Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need to write an document with Arial. And have some math.

I almost do this in entire document with this:

    \documentclass{article}

    \usepackage{amsmath}

    \usepackage{mathspec}
    \setmathsfont(Digits)[Numbers={Lining,Proportional}]{Arial}
    \setmathsfont(Latin)[Numbers={Lining,Proportional}]{Arial}
    \setmathsfont(Greek)[Numbers={Lining,Proportional}]{Arial}

    \usepackage[math-style=upright]{unicode-math}
    \setmathfont{Arial}

    \begin{document}

    \[
    \sqrt{a+b}
    \]

    \[
    \int_{a}^{b}
    \]

    \end{document}

But the square root is broken, and the integral symbol is very small.

What can I do?

I found another package. This package provides math symbols for Myriad Pro, a sans serif font from Adobe. The final code looks like this:

\documentclass{article}

\usepackage{amsmath}

\usepackage{mathspec}
\setmathsfont(Digits)[Numbers={Lining,Proportional}]{Arial}
\setmathsfont(Latin)[Numbers={Lining,Proportional}]{Arial}
\setmathsfont(Greek)[Numbers={Lining,Proportional}]{Arial}

\usepackage{mdsymbol}

enter image description here

share|improve this question
    
could you provide a full MWE example, please? –  Micha May 2 '13 at 7:06
    
Welcome to TeX-SX! You may have a look at our starter page for a quick intro if you wish to familiarize yourself with our format. –  Claudio Fiandrino May 2 '13 at 7:20
2  
Do they require you to use Arial math symbols also ? I was not aware a full math font for Arial existed. If not, you could always use a font that matches Arial nicely just for math. –  ach May 2 '13 at 7:52
3  
@JoãoApel Your university can not possibly require you to do that. There is no Arial math font. Use stix or combra math or some other unicode math font then (if you must) use \mathsf{...} so the letters are in sans serif. –  David Carlisle May 2 '13 at 8:28
4  
@JoãoApel opentype math fonts have to have a lot of extra structure detailing how to extend characters and join rules to sqrt signs and stuff, That is why there are relatively few math fonts, and making one based on Arial would be a lot of work. –  David Carlisle May 2 '13 at 8:34
show 4 more comments

2 Answers 2

There is no arial math font, so you need to use another font. (The university can not require the use of a font that does not exist),

share|improve this answer
add comment

This works, but of course the integral and the square root symbols are not Arial. You may have also other problems, because Arial hasn't the math features requested for math fonts.

\documentclass{article}

\usepackage{amsmath}

\usepackage{mathspec}
\setmathsfont(Digits)[Numbers={Lining,Proportional}]{Arial}
\setmathsfont(Latin)[Numbers={Lining,Proportional}]{Arial}
\setmathsfont(Greek)[Numbers={Lining,Proportional}]{Arial}

\usepackage[math-style=upright]{unicode-math}
\setmathfont{Arial}
\setmathfont[range={\sqrt,\int}]{XITS Math}

\begin{document}

\[
\sqrt{a+b}
\]

\[
\int_{a}^{b}
\]

\end{document}

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.