TransWikia.com

MAA Filler Template Font Style Problem

TeX - LaTeX Asked by Ali Dursun on June 12, 2021

I’m writing something using the "filler template" of the Mathematical Association of America. But it does not work properly – I can not make texts italic or bold. Neither it, nor textit does work.

What can be the problem?

%MSC Primary: XXXXX
documentclass{article}
usepackage{maa-monthly}% https://www.maa.org/sites/default/files/pdf/pubs/maa-monthly.sty



raggedbottom
%flushbottom
%final

%setcounter{annual}{XXXX}
%setcounter{volume}{XXX}
%setcounter{issue}{X}
%setcounter{page}{XXX}

allowdisplaybreaks

%theoremstyle{theorem}
%newtheorem{theorem}{Theorem}[section]

theoremstyle{plain}
newtheorem*{theorem}{Theorem}


begin{document}
begin{filler}
[white]

noindent {large bf textsf{A Consequence of the Pythagorean Theorem}}


noindent The well known Pythagorean theorem $a^2 + b^2 = c^2$ relates the lengths of the three sides of a right triangle. We present an exciting consequence of this result, namely, that if two of the three sides of a right triangle have lengths that are even integers, then the third side must be of even length as well. 

To see this, suppose that $a$ and $b$ are even; then $a = 2a'$, $b = 2b'$, where $a'$ and $b'$ are positive integers.  Hence
[   c^2 = (2a')^2 + (2b')^2  = 4(a'^2 + b'^2).     ]
The result when the hypotenuse and one of the legs are of even length is proved similarly.

begin{thebibliography}{1}
bibitem{Ing} Ingham, A. E. (1932). textit{The Distribution of Prime Numbers}. Cambridge: Cambridge University Press.
end{thebibliography}


rightline{---Submitted by Carl F. Gauss}


bigskip
footnoterule
footnotesize{doi.org/10.XXXX/amer.math.monthly.122.XX.XXX}

footnotesize{MSC: Primary 00X00, Secondary 11Y11; 22Z22}

end{filler}

end{document}

2 Answers

You do not mention it in the text but I assume from your tagging you used xelatex.

The package you are using is very old and not set up for xelatex, if you try you get multiple warnings about fonts and the output is

enter image description here

If you use pdflatex then the output is

enter image description here

Note however that the markup used is very strange, bf,noindent, rightline should not be used in latex, and should never be used at the end of a paragraph, doing so produces the warning

 Underfull hbox (badness 10000) in paragraph at lines 28--29

and bad output.

Correct answer by David Carlisle on June 12, 2021

If you want to compile this with XeLaTeX, then you should declare suitable fonts.

documentclass{article}
usepackage{maa-monthly}% https://www.maa.org/sites/default/files/pdf/pubs/maa-monthly.sty

usepackage{unicode-math}
setmainfont{STIX Two Text}
setmathfont{STIX Two Math}
setsansfont{TeX Gyre Heros}


raggedbottom
%flushbottom
%final

%setcounter{annual}{XXXX}
%setcounter{volume}{XXX}
%setcounter{issue}{X}
%setcounter{page}{XXX}

allowdisplaybreaks

%theoremstyle{theorem}
%newtheorem{theorem}{Theorem}[section]

theoremstyle{plain}
newtheorem*{theorem}{Theorem}


begin{document}
begin{filler}
[white]

noindent {large bfseries textsf{A Consequence of the Pythagorean Theorem}}

bigskip

noindent The well known Pythagorean theorem $a^2 + b^2 = c^2$ relates the lengths 
of the three sides of a right triangle. We present an exciting consequence of this 
result, namely, that if two of the three sides of a right triangle have lengths 
that are even integers, then the third side must be of even length as well. 

To see this, suppose that $a$ and $b$ are even; then $a = 2a'$, $b = 2b'$, where 
$a'$ and $b'$ are positive integers.  Hence
[   c^2 = (2a')^2 + (2b')^2  = 4(a'^2 + b'^2).     ]
The result when the hypotenuse and one of the legs are of even length is proved similarly.

begin{thebibliography}{1}
bibitem{Ing} Ingham, A. E. (1932). textit{The Distribution of Prime Numbers}. 
Cambridge: Cambridge University Press.
end{thebibliography}


rightline{---Submitted by Carl F. Gauss}


bigskip
footnoterule
footnotesize{doi.org/10.XXXX/amer.math.monthly.122.XX.XXX}

footnotesize{MSC: Primary 00X00, Secondary 11Y11; 22Z22}

end{filler}

end{document}

If you don't have the fonts installed in the system, the declarations can be (with an up-to-date TeX Live or MiKTeX distribution)

setmainfont{STIXTwoText}[
  Extension=.otf,
  UprightFont=*-Regular,
  BoldFont=*-Bold,
  ItalicFont=*-Italic,
  BoldItalicFont=*-BoldItalic,
]
setmathfont{STIXTwoMath-Regular.otf}
setsansfont{texgyreheros}[
  Extension=.otf,
  UprightFont=*-regular,
  BoldFont=*-bold,
  ItalicFont=*-italic,
  BoldItalicFont=*-bolditalic,
]

enter image description here

Answered by egreg on June 12, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP