Hi,
I am wondering if anyone has seen this before and can help me to overcome. I have a master document containing many Child documents and branches and in ERT frontmatter and mainmatter. If I generate a pdf from this document I get a nice document with roman numbers for the frontmatter, plainpages for the part pages and chappg numbering on the chapter pages. This numbering is also visible in acroread as it is printed on the pages, except for the part pages where ordinary page numbering is used. The funny thing which happens is that when I include this master document in another document with the sole purpose of activating branches the roman numbering breaks in the middle of the multipage index to normal numbers and the chappg numbering in the acroread bottom bar becomes one chapter ahead. Does anyone have a clue on why this is happening? Below my .layout file which might be interesting for other people as well. Regards, Maarten #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[memoir]{memoir in van Oord stijl} # Memoir textclass definition file # Author: Jürgen Spitzmüller <[EMAIL PROTECTED]> # Improvements by: Bennett Helm <[EMAIL PROTECTED]> # feel free to contribute missing features! Input memoir.layout #============================================================ # Eigen styles #------------------------------------------------------------ # Style Warning: Style Warning Margin First_Dynamic LatexType Command LatexName warning ParIndent MM ParSkip 0.4 Align Block AlignPossible Block, Left BottomSep 0.4 Labelsep xx LabelType Static LabelString "Warning:" Font Color Red EndFont LabelFont Size Large Color Black Shape Italic EndFont End #------------------------------------------------------------ # Style Tip: Style Tip Margin First_Dynamic LatexType Command LatexName tip ParIndent MM ParSkip 0.4 Align Block AlignPossible Block, Left BottomSep 0.4 Labelsep xx LabelType Static LabelString "Tip:" Font Color Blue EndFont LabelFont Size Large Color Black Shape Italic EndFont End #------------------------------------------------------------ # Style Leesvoer: Style Leesvoer Margin First_Dynamic LatexType Command LatexName info ParIndent MM ParSkip 0.4 Align Block AlignPossible Block, Left BottomSep 0.4 Labelsep xx LabelType Static LabelString "Info:" Font Color Magenta EndFont LabelFont Size Large Color Black Shape Italic EndFont End #============================================================ Preamble % /usr/share/texmf/web2c/texmf.cnf shell_escape = t zetten % genereren md5sum t.b.v versienummer \def\tmpfile{/tmp/w18-test-\the\year\the\month\the\day\the\time.tex} \immediate\write18{echo `md5sum \jobname.dvi | sed 's/ .*$//'` > \tmpfile} %% onder windows niet... %------------------------------------------------------------ % Opmaak kop- en voetteksten \makeheadrule{plain}{120mm}{.5pt} \makefootrule{plain}{120mm}{.5pt}{1mm} \makeevenhead{plain}{\textsf{\fontsize{8}{9.6}\selectfont\rightmark}}{}{\textsf{\fontsize{8}{9.6}\selectfont\leftmark}} \makeoddhead{plain}{\textsf{\fontsize{8}{9.6}\selectfont\rightmark}}{}{\includegraphics[width=15mm]{images/doc-logo.eps}} \makeevenfoot{plain}{\textsf{\fontsize{8}{9.6}\selectfont{\thepage}}}{}{} \makeoddfoot{plain}{}{}{\textsf{\fontsize{8}{9.6}\selectfont{\thepage}}} \makepagestyle{part} \makeheadrule{part}{120mm}{.5pt} \makefootrule{part}{120mm}{.5pt}{1mm} \makeevenhead{part}{}{}{\textsf{\fontsize{8}{9.6}\selectfont\leftmark}} \makeoddhead{part}{}{}{\includegraphics[width=15mm]{images/doc-logo.eps}} \makeevenfoot{part}{}{}{} \makeoddfoot{part}{}{}{} \makeheadrule{headings}{120mm}{.5pt} \makefootrule{headings}{120mm}{.5pt}{1mm} \makeevenhead{headings}{\textsf{\fontsize{8}{9.6}\selectfont\leftmark}}{}{} \makeoddhead{headings}{\textsf{\fontsize{8}{9.6}\selectfont\rightmark}}{}{\includegraphics[width=15mm]{images/doc-logo.eps}} \makeevenfoot{headings}{\textsf{\fontsize{8}{9.6}\selectfont{\thepage}}}{}{} \makeoddfoot{headings}{}{}{\textsf{\fontsize{8}{9.6}\selectfont{\thepage}}} %------------------------------------------------------------ % Opmaak TOC \renewcommand{\printtoctitle}[1]{\huge\bfseries\sffamily #1} \cftpagenumbersoff{part} \renewcommand{\cftpartfont}{\bfseries\huge\sffamily} %\renewcommand{\cftpartpagefont}{\bfseries\huge\sffamily} \renewcommand{\cftchapterfont}{\normalsize\sffamily} \renewcommand{\cftchapterpagefont}{\normalsize\sffamily} \renewcommand{\cftsectionfont}{\normalsize\sffamily} \renewcommand{\cftsectionpagefont}{\normalsize\sffamily} \renewcommand{\cftsubsectionfont}{\normalsize\sffamily} \renewcommand{\cftsubsectionpagefont}{\normalsize\sffamily} \settocdepth{subsection} \maxtocdepth{subsection} \setsecnumdepth{subsection} \maxsecnumdepth{subsection} % Opmaak van Part in de TOC \setlength{\cftbeforepartskip}{15mm} % Ruimte boven Part \newlength{\mylenb} % a "scratch" length \setlength{\mylenb}{.5em} % extra space at end of number \renewcommand{\cftpartpresnum}{Deel } % note the double 'l' %\renewcommand{\cftpartaftersnum}{ - } \newlength{\mylena} % a "scratch" length \settowidth{\mylena}{\cftpartfont\cftpartpresnum\cftpartaftersnum} \addtolength{\cftpartnumwidth}{\mylena} % add the extra space %------------------------------------------------------------ % Lettertype % sans serif \usepackage[scaled=0.92]{helvet} % serif \usepackage{times} %------------------------------------------------------------ % Mooie inline breuken % Gebruik: ERT \nicefrac{teller}{noemer} %\usepackage{nicefrac} %------------------------------------------------------------ % Part, chapter enz. layout \renewcommand{\partnamefont}{\normalfont\bfseries\huge\sffamily\centering} %% raggedright\ \renewcommand{\partnumfont}{\normalfont\bfseries\huge\sffamily} \renewcommand{\parttitlefont}{\normalfont\bfseries\huge\sffamily\centering} \renewcommand{\chapnamefont}{\normalfont\bfseries\Large\sffamily\raggedright} \renewcommand{\chapnumfont}{\normalfont\bfseries\Large\sffamily} \renewcommand{\chaptitlefont}{\normalfont\bfseries\Large\sffamily} \setlength{\midchapskip}{0pt} \setlength{\afterchapskip}{.5cm} \renewcommand{\afterchaptertitle}{% \par\vspace{0pt}% \hrulefill \par\nobreak\noindent\vskip\afterchapskip} \setsecheadstyle{\large\bfseries\sffamily\raggedright} % section nummers in marge \hangsecnum \setsubsecheadstyle{\normalsize\bfseries\sffamily\raggedright} \setsubsubsecheadstyle{\normalsize\sffamily\raggedright} %------------------------------------------------------------ % Taal \usepackage[dutch]{babel} \usepackage[T1]{fontenc} %------------------------------------------------------------ % Pagina-layout % Gebruik \usepackage{layout} in de pre-amble en een ERT-box met \layout in het document om de betekenis hiervan te zien %\reversemarginpar %\hoffset 0mm %\voffset 0mm %%\oddsidemargin 35mm %\topmargin 0mm %\headheight 12pt %\headsep 5mm %\textheight 230mm %\textwidth 120mm %\marginparsep 0mm %\marginparwidth 15mm %\footskip 10mm %\marginparpush 5pt %\paperwidth 210mm %\paperheight 297mm % %%\addtolength{\footnotesep}{30mm} % Verticale afstand tussen footnoterule en footnote %\addtolength{\skip\footins}{15mm} % Verticale afstand tussen hoofdtekst en footnote %\feetbelowfloat % %\renewcommand{\footnoterule}{% %\kern -3pt % call this kerna %\hrule height 0.1pt width 0.4\columnwidth %\kern 2.6pt % call this kernb %} % %\setlength{\footmarkwidth}{-1.0em} %\setlength{\footmarksep}{-\footmarkwidth} %\footmarkstyle{#1} %------------------------------------------------------------ % Kunnen rekenen met dimensies \usepackage{calc} %------------------------------------------------------------ % Versiebeheer tags %\usepackage{rcs} %------------------------------------------------------------ % Doornummeren enumeratie na onderbreking % Plaats hiervoor het volgende in een ERT-box: %\begin{enumerate}[start=3] (lijst begint met 3) %\item tekst1 %\item tekst2 %\item tekst3 %\end{enumerate} \usepackage{enumitem} \usepackage{graphicx} %------------------------------------------------------------ % Aanpassing opmaak Description \renewcommand*{\descriptionlabel}[1]{\hspace\labelsep \normalfont\bfseries #1} %------------------------------------------------------------ % kleuren definieren voor gebruik \usepackage[usenames]{color} \definecolor{oordblauwa}{cmyk}{.15,.04,0,0} %------------------------------------------------------------ % file-namen afbreken \usepackage{path} \discretionaries |[EMAIL PROTECTED]&*()_+`-=#{}[]:";<>,.?\/| % truukje om taakmenuhelpfile en %m ainmenuhelpfile goed af te breken. k en u erbij, ' eruit % dit is wel tricky, maar voorlopig werkt het %%------------------------------------------------------------ %% Paginanummers en TOC in index \usepackage{chappg} %% \usepackage{tocbibind} zit al in memoir uit zichzelf?? Proberen met LyX versie 1.4.2. %------------------------------------------------------------ % Voor de grafische menu's \usepackage{pst-node} %------------------------------------------------------------ % Automatisch centreren van afbeeldingen \usepackage{ifthen} \makeatletter \renewenvironment{figure}[1][]{% \ifthenelse{\equal{#1}{}}{% [EMAIL PROTECTED] }{% [EMAIL PROTECTED] }% \centering }{% [EMAIL PROTECTED] } \makeatother %------------------------------------------------------------ % Automatisch centreren van tabellen \makeatletter \renewenvironment{table}[1][]{% \ifthenelse{\equal{#1}{}}{% [EMAIL PROTECTED] }{% [EMAIL PROTECTED] }% \centering }{% [EMAIL PROTECTED] } \makeatother %============================================================ % Eigen commmando's \newcommand{\warning}[1]{% \fboxsep=15pt% \fboxrule=1pt% \hspace{-1.5cm}% \raisebox{-1\baselineskip}% {\includegraphics[width=1cm]{images/doc-let-op.eps}}% \hspace{0.5cm}% \framebox{\parbox[t]{0.9\textwidth}{\textit{#1}}}} \newcommand{\tip}[1]{% \fboxsep=15pt% \fboxrule=1pt% \hspace{-1.5cm}% \raisebox{-1\baselineskip}% {\includegraphics[width=1cm]{images/doc-tip.eps}}% \hspace{0.5cm}% \framebox{\parbox[t]{0.9\textwidth}{\textit{#1}}}} \newcommand{\info}[1]{% \fboxsep=15pt% \fboxrule=1pt% \hspace{-1.5cm}% \raisebox{-1\baselineskip}% {\includegraphics[width=1cm]{images/doc-leesvoer.eps}}% \hspace{0.5cm}% \framebox{\parbox[t]{0.9\textwidth}{\textit{#1}}}} % PDF opties \usepackage[ plainpages=false, hypertexnames=true, pdfpagelabels=true, bookmarks=true, hyperindex=false, a4paper=true, colorlinks=true, % als we geen rode hokjes om de links willen (print wel!) linkcolor=black, pdfpagemode=UseOutlines, bookmarksnumbered=true]{hyperref} % Fix PDF links bij gebruik van memoir + hyperref \usepackage{memhfixc} EndPreamble __________________________________________________ Disclaimer: This mail transmission and any attached files are confidential and are intended for the addressee only. If you are not the person or organization to whom it is addressed, you must not copy, disclose, distribute or take any action in reliance upon it. If you have received this message in error, please contact the sender by email and delete all copies of this message and all copies of any attached files.