LaTeX forum ⇒ Math & Sciencenon-italic helvetic math font entire document

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Posts: 1
Joined: Tue May 16, 2017 6:33 pm

non-italic helvetic math font entire document

Postby edilonjunior » Tue May 16, 2017 7:01 pm

I'm trying to make a document in school test format. So I do not want the text in mathematical mode to have the italic format and also be bold, the source of the whole document should be helvetic. The bold I already managed to solve by inserting \ boldmath shortly after \ begin {document}. The "mathastext" package solves a lot, but I can not configure fonts in math mode to be smaller with the "\ DeclareMathSizes {13} {12} {10} {9}" command. My code is below

  1. \documentclass[a4, 12pt]{article}
  2. \usepackage[top=1cm, bottom= 1cm, left=1cm, right= 1cm]{geometry}
  3. \usepackage[brazil]{babel}
  4. \usepackage[T1]{fontenc}
  5. \usepackage[utf8]{inputenc}
  6. \usepackage{amsmath}
  7. \usepackage{arev} %quase arial
  8. \usepackage{multicol}
  9. \usepackage{array}
  10. \usepackage{mathastext}
  11. \usepackage{chemfig}
  12. %==================================================
  13. \renewcommand{\rmdefault}{phv}% arial math mode
  14. \setlength\parindent{0pt}
  15. \setlength{\columnseprule}{1pt}
  16. \setatomsep{10mm}
  17. %==================================================
  18. \DeclareMathSizes{9}{8}{7}{7} %don't work with mathastext
  19. %==================================================
  20. \begin{document}
  21. \begin{multicols}{2}
  22. \boldmath
  24. 1) Certo átomo possui 17 prótons, 20 nêutrons e 17 elétrons. Qual dos átomos representados abaixo é seu isótono?\\
  26. a) $_{19}^{40}K$\\% subscript and superscrip are very large
  28. b) $_{20}^{42}Ca$\\
  30. \end{multicols}
  31. \end{document}
Last edited by Stefan Kottwitz on Tue May 16, 2017 8:57 pm, edited 1 time in total.
Reason: code marked


User avatar
Stefan Kottwitz
Site Admin
Posts: 8262
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany

Postby Stefan Kottwitz » Wed May 17, 2017 11:54 am

Hi Edilon,

welcome to the forum!

For \DeclareMathSizes, take the font size option of the class as the first argument. (Or the currently used font size)

The syntax is:

\DeclareMathSizes{current text size}{math size}{script size}{script script size}

It doesn't scale the text size, that's why one doesn't adjust the text size. The text size argument is for defining, for which current text size which math size shall be used. Try:


I get:

math-font-size.png (15.73 KiB) Viewed 185 times

Site admin

Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 4 guests