User Tools

Site Tools


latex:linenumbers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
latex:linenumbers [2012/10/31 15:37] – created nchiaplatex:linenumbers [2012/10/31 16:00] (current) nchiap
Line 4: Line 4:
  
 <code latex> <code latex>
-\usepackage{lineno}+\usepackage{lineno} % in preamble 
 +% [...] 
 +\linenumbers  % after \begin{document} 
 +</code> 
 + 
 + 
 +===== missing line numbers before equations ===== 
 +''lineno'' fails in some cases to put line numbers for a paragraph containing equations.  
 +The problem occurs when the paragraph before the equation is not finished (with an empty line between the text and the equation).  
 +There are several ways to fix this. 
 +  - use the official LHCb template\\ The template modifies the math environments to work propperly with ''lineno''. (If the document is an official LHCb publication you should be using this template anyways.) 
 +  - make sure ''lineno'' is the last package you load:\\''lineno'' fixes at least the equation environment. 
 +  - adjust the environment your self: <code latex>\let\oldeq\equation{}\def\equation{\par\vspace{-\parskip}\oldeq}</code> 
latex/linenumbers.1351694264.txt.gz · Last modified: 2012/10/31 15:37 by nchiap