Math & Sciencenon-italic helvetic math font entire document

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

non-italic helvetic math font entire document

Post by edilonjunior »

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

Code: Select all

\documentclass[a4, 12pt]{article}
\usepackage[top=1cm, bottom= 1cm, left=1cm, right= 1cm]{geometry}
\usepackage[brazil]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{arev} %quase arial
\usepackage{multicol}
\usepackage{array}
\usepackage{mathastext}
\usepackage{chemfig}
%==================================================
\renewcommand{\rmdefault}{phv}% arial math mode
\setlength\parindent{0pt}
\setlength{\columnseprule}{1pt}
\setatomsep{10mm}
%==================================================
\DeclareMathSizes{9}{8}{7}{7} %don't work with mathastext
%==================================================
\begin{document}
\begin{multicols}{2}
\boldmath

1) Certo átomo possui 17 prótons, 20 nêutrons e 17 elétrons. Qual dos átomos representados abaixo é seu isótono?\\

a) $_{19}^{40}K$\\% subscript and superscrip are very large

b) $_{20}^{42}Ca$\\

\end{multicols}
\end{document}
Last edited by Stefan Kottwitz on Tue May 16, 2017 8:57 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

non-italic helvetic math font entire document

Post by Stefan Kottwitz »

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:

\DeclareMathSizes{12}{12}{7}{7}

I get:
math-font-size.png
math-font-size.png (15.73 KiB) Viewed 4306 times
Stefan
LaTeX.org admin
Post Reply