El Viernes, 09 de Agosto de 2013 08:59 a.m., Richard Heck escribió:

  On 08/09/2013 09:42 AM, Alex Vergara Gil wrote:

    I have written my MSc thesis in LyX and the way references are handled 
helps me a lot, but I got only one suggestion: when I set my own labels LyX 
also asigns a number to the equation which is automatically changed but doesn´t 
correspond to the "real" equation number that appears in the final text, so 
when I finally got about 120 pages written I detect one wrong equation and I 
have to spend a few time to detect which equation is in the LyX document 
because I didn´t find the equation 2.4 instead it was equation 17. So I think 
this behaviour is wrong and must be fixed.

  Do you remember what document class, etc, you were using? It sounds like it 
set "number equations by section", and the layout file did not know about that.

  Richard

The class I used was book (KOMA-Script) with the following preamble

% increase link area for cross-references and autoname them
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}

\newlength{\abc}

\settowidth{\abc}{\space}

\AtBeginDocument{%

\addto\shorthandsspanish{

\renewcommand{\equationautorefname}{\hspace{-\abc}}

\renewcommand{\sectionautorefname}{sec.\negthinspace}

\renewcommand{\subsectionautorefname}{sec.\negthinspace}

\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}

\renewcommand{\figureautorefname}{Fig.\negthinspace}

\renewcommand{\tableautorefname}{Tab.\negthinspace}

}

}




% in case somebody want to have the label "equation"

%\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})}

\def\es@tablename{Ttabla}

\def\es@appendixname{Aanexo}




% that links to image floats jumps to the beginning

% of the float and not to its caption

\usepackage[figure]{hypcap}




% the pages of the TOC is numbered roman

% and a pdf-bookmark for the TOC is added

\let\myTOC\tableofcontents

\renewcommand\tableofcontents{%

\frontmatter

\pdfbookmark[1]{\contentsname}{}

\myTOC

\mainmatter }




% make caption labels bold

\setkomafont{captionlabel}{\bfseries}

\setcapindent{1em}




% enable calculations

\usepackage{calc}




% fancy page header/footer settings

\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}

\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}




% increase the bottom float placement fraction

\renewcommand{\bottomfraction}{0.5}




% avoid that floats are placed above its sections

\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}

Reply via email to