1

Command \frac works in strange way:

enter image description here

Any suggestions?

\documentclass{report}
\usepackage{polski}
\usepackage[cp1250]{inputenc}
\usepackage{graphicx}

\begin{document}
\setcounter{secnumdepth}{3}
\setlength{\textheight}{24.4cm}
\setlength{\parindent}{0mm}

\frac{1}{2}

\end{document}
egreg
  • 1,121,712
  • Please edit your question so that it includes a complete example code that reproduces this behaviour. – Ian Thompson Jun 29 '14 at 12:58
  • Welcome to TeX.SX! As this is not the default behavior, we really need more information, so can you create a complete, minimal code example, a minimal working example (MWE), demonstrating the issue? – Torbjørn T. Jun 29 '14 at 12:59
  • I added preambula of tex to my question. Both Tex => PDF and Tex=>DVI works same way. – Pipiripi Jun 29 '14 at 13:09
  • 2
    Did you see that for you example there are errors in the log? \frac is a math mode command so you are seeing 'error recovery': $\frac{1}{2}$ is correct for input and gives the right result. – Joseph Wright Jun 29 '14 at 13:09
  • 2
    Compiling your code produces several errors, because \frac is only valid in math mode (e.g. within $...$). You shouldn't expect the output document to look right if you get compilation errors. – jub0bs Jun 29 '14 at 13:10

0 Answers0