Page LayoutIssues with Lineno

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

Issues with Lineno

Post by spiegboy »

One paragraph fails to be numbered when i use lineno, please help solve this problem

Code: Select all

\documentclass[review,12pt]{elsarticle}
\biboptions{sort&compress}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{setspace,xspace,hanging,color}
\usepackage{fixltx2e} %use \textsubscript
\usepackage{enumerate}
\usepackage{textcase,gensymb}
\usepackage{subfigure}%it's for subfigures
\newcommand*\stdtextsubscript{}
\let\stdtextsubscript\textsubscript
\renewcommand*\textsubscript[1]{\stdtextsubscript{#1}\allowbreak}
\usepackage{amssymb}
\usepackage{lineno}

%\journal{Nuclear Physics B}

\begin{document}
\linenumbers
text text text
\textcolor{red}{The equation needs to be modified should we take into account the residual stress imposed on the wire by the composite matrix. Here we consider the resultant effect of residual stress ( $\overline{\sigma}_{m}$ ) without considering the individual components. At the surface of the metallic core, the residual forces at the axial and azimuthal direction are compressive \cite{Chiriac1995a}. After the curing process for the composite preparation, there will be also residual stresses formed at the matrix-wire interface, and they are compressive in all directions due to much larger thermal contraction of epoxy matrix than that of wire. Therefore, the residual stress at the glass-metal interface is enhanced.} Eq.~\ref{eq:usov3} can thus be modified to
\begin{subequations}\label{eq:usov4}
\begin{align}	 H_k=\frac{3\left|\lambda_s\right|}{M_s}(\sigma_{zz}-\sigma_{\phi\phi}+\overline{\sigma}_{m}+\widetilde{\sigma}_{zz}),\\
\widetilde{\sigma}_{zz}=\frac{1}{(1-k)p^2+k}\overline{\sigma}_{zz}.
\end{align}
\end{subequations}

Text text text
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Issues with Lineno

Post by frabjous »

Please see these instructions (linked from our Board Rules) on how to create a minimal working example -- a minimal example should not load packages not relevant to the problem, and should not include citations to nonexistent bibliography files.

But I suspect you could fix your problem by adding a paragraph break (blank line) before \begin{subequations} ...
Post Reply