使用回忆录类和小册子包时目录 (TOC) 不完整

使用回忆录类和小册子包时目录 (TOC) 不完整

我正在尝试生成一本小册子的目录,其中包含几个章节和一些部分,但生成的唯一内容是其标题(即目录)。我还没有找到问题的根本原因,有人可以帮忙吗?

以下是文档代码的摘录:

    \documentclass[legalpaper,11pt]{memoir}

    \setlrmarginsandblock{.5in}{.25in}{*}
    \setulmarginsandblock{2in}{1.5in}{*}

    \setlength{\columnsep}{.25in}
    \setlength{\headheight}{15pt}
    \setlength{\textheight}{10.5in}
    \setlength{\textwidth}{8in}
    \setlength{\marginparwidth}{.05in}
    \setlength{\marginparsep}{.05in}
    \setlength{\spinemargin}{.05in}
    \checkandfixthelayout
    \setlength{\oddsidemargin}{.05in}

    \usepackage{multicol}
    \usepackage{graphicx}
    \usepackage{amssymb}
    \usepackage{color}
    %\usepackage[spanish]{babel}
    \usepackage[print,largetypeblock]{booklet} \nofiles
    \pagespersignature{20}
    \ifpdf
    \setpdftargetpages
    \else
    \setdvipstargetpages
    \fi
    \ifprintoption % tweak dvi output only for final printing
    \special{!TeXDict begin /landplus90{true}store end}
    \special{!TeXDict begin <</Tumble true>> setpagedevice end}
    \fi
    \title{Title}
    \date{\today}
    \author{}
    \makeindex
    \begin{document}
        \pagestyle{empty}
        \begin{center}
            % \includegraphics[scale=.35]{../images/rosarium.jpg}
            % {\LARGE \\lat\'in - espa\~nol}
        \end{center}

        \newpage

        \begin{center}
            \vspace*{\fill}

            \textbf{
                \LARGE
                Title
            }
            \textbf{
                \Large
                \\Title
            }

            \vspace*{2in}
            \vfill

            \small
            \textbf{
                Authors
            }

            \vspace*{.25in}
            % \includegraphics[width=133pt,scale=.3]{../images/uvpr.jpg}

            \vspace*{1in}
            \vfill
            \textbf{
                City, State, Country\\
                \today
            }
            \vfill
            \newpage
        \end{center}

        \pagestyle{plain}
        \pagenumbering{roman}
        \maketitle
        \tableofcontents
        \cleardoublepage

        \pagestyle{headings}
        \pagenumbering{arabic}
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        % Page 1
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        \chapter{Modo de rezar}
        \clearpage

        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        % Page 2
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        % \includegraphics[scale=.9]{../images/rosarium.pdf}

        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        % Page 3
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        \chapter{Oraciones}
        \clearpage

        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        % Page 4 - Column 1
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        \begin{multicols}{2}

        \end{multicols}
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        % Page 18
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \end{document}

答案1

警告:序言有点奇怪,除了主要问题之外我没有解决其他问题:\nofiles

如果\nofiles使用,则从.aux一开始就不会生成任何文件(或者如果\nofiles在两次运行之间添加,则.aux文件将不会更新。

因此,要么.toc根本不生成,要么不更新。

\nofiles从一开始就运行,它永远不会生成.aux.toc等等。

 \documentclass[legalpaper,11pt]{memoir}

    \setlrmarginsandblock{.5in}{.25in}{*}
    \setulmarginsandblock{2in}{1.5in}{*}

    \setlength{\columnsep}{.25in}
    \setlength{\headheight}{15pt}
    \setlength{\textheight}{10.5in}
    \setlength{\textwidth}{8in}
    \setlength{\marginparwidth}{.05in}
    \setlength{\marginparsep}{.05in}
    \setlength{\spinemargin}{.05in}
    \checkandfixthelayout
    \setlength{\oddsidemargin}{.05in}

    \usepackage{multicol}
    \usepackage{graphicx}
    \usepackage{amssymb}
    \usepackage{color}
    %\usepackage[spanish]{babel}
    \usepackage[print,largetypeblock]{booklet} 
    % \nofiles
    \pagespersignature{20}
    \ifpdf
    \setpdftargetpages
    \else
    \setdvipstargetpages
    \fi
    \ifprintoption % tweak dvi output only for final printing
    \special{!TeXDict begin /landplus90{true}store end}
    \special{!TeXDict begin <</Tumble true>> setpagedevice end}
    \fi
    \title{Title}
    \date{\today}
    \author{}
    \makeindex
    \begin{document}
        \pagestyle{empty}
        \begin{center}
            % \includegraphics[scale=.35]{../images/rosarium.jpg}
            % {\LARGE \\lat\'in - espa\~nol}
        \end{center}

        \newpage

        \begin{center}
            \vspace*{\fill}

            \textbf{
                \LARGE
                Title
            }
            \textbf{
                \Large
                \\Title
            }

            \vspace*{2in}
            \vfill

            \small
            \textbf{
                Authors
            }

            \vspace*{.25in}
            % \includegraphics[width=133pt,scale=.3]{../images/uvpr.jpg}

            \vspace*{1in}
            \vfill
            \textbf{
                City, State, Country\\
                \today
            }
            \vfill
            \newpage
        \end{center}

        \pagestyle{plain}
        \pagenumbering{roman}
        \maketitle
        \tableofcontents
        \cleardoublepage

        \pagestyle{headings}
        \pagenumbering{arabic}
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        % Page 1
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        \chapter{Modo de rezar}
        \clearpage

        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        % Page 2
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        % \includegraphics[scale=.9]{../images/rosarium.pdf}

        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        % Page 3
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        \chapter{Oraciones}
        \clearpage

        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        % Page 4 - Column 1
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        \begin{multicols}{2}

        \end{multicols}
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        % Page 18
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \end{document}

相关内容