Skip to main content
9 votes

\color{} inserts blank line after environment!

Groups in TeX are not no-op they have effects, so if you want to have no observable effect on spacing (which is actually surprisingly hard) you need to compensate for the group, not just do nothing. ...
David Carlisle's user avatar
8 votes

\color{} inserts blank line after environment!

David has explained what happened. But as you mention lualatex: There you could avoid the problem by using luacolor, which uses attributes instead of specials and so doesn't disturb the math spacing: \...
Ulrike Fischer's user avatar
6 votes

How to get latex to ignore blank lines in equations

In LuaTeX \suppressmathparerror = 1 Will disable this check at the engine level. In other engines you could (although it may conflict with other uses) use \everydisplay{\let\par\relax} \everymath{\...
David Carlisle's user avatar
3 votes
Accepted

Indentation of verbatim environment result in additional empty line before the following content, why?

LaTeX ain't Java or C. Indenting the source might seem appealing to people accustomed to programming languages, but TeX is aimed at typesetting, so spaces are significant, whereas in Java or C source ...
egreg's user avatar
  • 1.1m
3 votes

Indentation of verbatim environment result in additional empty line before the following content, why?

Indentation of \begin{verbatim} is not a problem. No matter if there a spaces or/and black lines before, the verbatim text will start in a new line. Dot. But indentation of \end{verbatim} is ...
Fran's user avatar
  • 82.3k
3 votes

Indentation of verbatim environment result in additional empty line before the following content, why?

You could use a verbatimbox to avoid the issue...even making the verbatim inline, if desired. \documentclass{book} \usepackage{tcolorbox,verbatimbox} \begin{document} \begin{tcolorbox} \begin{...
Steven B. Segletes's user avatar
2 votes

Empty line number when removing date

First off: Greetings from a Star Wars fan to a Pulp Fiction fan! :-) You wrote, However, if I remove the date with \date{} there is a line number left in the empty line after the title. How can I ...
Mico's user avatar
  • 512k
2 votes
Accepted

ArabLuaTeX brackets and empty line

Well spotted! This is due to the way \par is processed by the current release of arabluatex. I just pushed a fix to this problem. Could you retrieve it from either http://git.robertalessi.net/...
Robert Alessi's user avatar
1 vote
Accepted

Uses only half the page / Right side of the page empty

The issue stems from not closing the structures within your algorithm. That is, \IFs should have a closing \ENDIF, \WHILEs should have a closing \ENDWHILE and \FORs should have a closing \ENDFOR. ...
Werner's user avatar
  • 606k

Only top scored, non community-wiki answers of a minimum length are eligible