1

I need to "similarize" my latex output to web browser serif display. I would like all math to be switched to upright and mimick html browsers, too. \usepackage{mathastext} \usepackage{times} \usepackage{amsmath} are good starts.

how do I get latex mathmode to default to upright lowercase greek letters to match the times font in its upright form now, rather than remain in italics. upgreek.sty would have been good, except that it requires me to change use in the document.

I want the latex \beta to look like β (&beta;) and not like β (<i>&beta;</i>), and preferably a little fattier than usual, too, because web browsers seem to be a little fatty...

  • 1
    Why do you want to mimic incorrect rendering? And it’s not web browsers that are the culprit, it’s incorrectly coded HTML documents. (And whether a character in a regular typeface looks fatty depends on the font, on the rendering engine, and the eye of the beholder.) – Jukka K. Korpela Mar 2 '14 at 21:31
  • 1
    times is deprecated, by the way. – cfr Mar 2 '14 at 22:07
2

You could try the following:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{txfonts}
\usepackage[upright]{txgreeks}
\usepackage{mathastext}
\begin{document}
This is text mode and now a math display:
\[ \alpha^n+\beta^m = \gamma^q \]
\end{document}

txgreeks

\[ \Gamma\cdot x+\Omega\cdot y=\Psi\cdot z \]

more txgreeks

  • except use the newtx package, which has better metrics for the txfonts fonts... – wasteofspace Mar 2 '14 at 21:46
  • @wasteofspace yes, possibly, and I think this should be \usepackage{newtxtext,newtxmath} on a recent installation. In this context, there is also \MTsetmathskips command from mathastext 1.3a and later which allows to have some extra space around letters in math mode. – user4686 Mar 2 '14 at 21:51
  • is there a font that is a just little bit heavier here? (this is because the Times font on OSX seems a little heavier than the txfonts, too.) – ivo Welch Mar 3 '14 at 3:54
  • I don't know, not being knowledgeable in fonts. See perhaps the Font Catalogue – user4686 Mar 3 '14 at 16:56
1

If you're not stuck with times, any font package that has a french math option (whatever be its exact name in the package) will do it. To my knowledge, fourier, kpfonts, mathdesign and MinionPro will do it. Perhaps also MyriadProfrom the FontPro package

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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