When I write text in frac, it looks bad no space... bad font. How can I change it
\documentclass{article}
\begin{document}
$ \frac{Lorem Ipsum}{abc dfe}$
\end{document}
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityWhen I write text in frac, it looks bad no space... bad font. How can I change it
\documentclass{article}
\begin{document}
$ \frac{Lorem Ipsum}{abc dfe}$
\end{document}
You could make the space character active in math mode to insert a thick muskip in its place. For this you will have to modify the definition of \obeyspaces
(which I should probably propose to the LaTeX core) to make the expansion of the obeyed space overrideable. Then you just have to append \obeyspaces
to \everymath
and \everydisplay
and you are all set to produce the most horrible-looking documents.
\documentclass{article}
\makeatletter
\def\obeyedspace{\space}
\def\@obeyedspace{\obeyedspace}
{\obeyspaces\global\let \@obeyedspace}
\makeatother
\renewcommand\obeyedspace{\;}
\everydisplay={\obeyspaces}
\everymath={\obeyspaces}
\begin{document}
$\frac{Lorem Ipsum}{abc dfe}$
\end{document}
amsmath
and usefrac{\text{Lorem Ipsum}}{\text{abc def}}
. – Bernard Aug 2 '20 at 22:05\frac
spaces are ignored in math mode try$abc def$
– David Carlisle Aug 2 '20 at 22:06