I am using TeXworks 0.5 r.1350 (Debian). My tex source is
\documentclass[a4paper,11pt]{article}
\usepackage{amsmath} % needed to get the command equation* to work
\usepackage[a4paper]{geometry} % needed to get the A4 paper size to work
\usepackage{syntonly} % skips producing output and speeds up error check
\usepackage{gensymb} % to use the degree symbol
\usepackage[displaymath, mathlines]{lineno} %<<<<<<<<<<<<<<<<<<<<
\usepackage{color,soul} % highlighting
\setlength{\voffset}{-3.0cm}
\setlength{\hoffset}{0cm}
\setlength{\textwidth}{13.5cm}
\setlength{\textheight}{28cm}
\pagestyle{empty}
\linenumbers %<<<<<<<<<<<<<<<<<<<<
\begin{document}
\input{myDirectory/myFile.tex}
\end{document}
As I typeset this, the line numbering behaves irregularly in the sense that
- if a paragraph contains no equation environment, it does always well;
- if equation environments are present in the paragraph, it skips numbering more often than not. Edit: Rather, only the starred equations are being skipped over.
Repeating the typesetting and invoking the package without options, that is \usepackage{lineno}
, do not help. I am aware of another post where a section break was the issue but I don't think this applies there.
Is there a fix or workaround for this? Thanks for helping me out.
syntonly
, to begin with. However, without seeing an example of code that produces the irregular skipping of numbers it's difficult to say more. – egreg Jan 12 '16 at 21:15