pdflatex 產生的 .mlf、.mlt 和 .mtc 檔案是什麼?

pdflatex 產生的 .mlf、.mlt 和 .mtc 檔案是什麼?

在一個特定的文件上pdflatex會產生大量副檔名為、.mlf、、、等的檔案。這幾十個文件很快就會使工作資料夾變得混亂,並使實際資產的定位變得有些困難。.mlt.mtcdocument.mtcdocument.mtc1document.mtc2

我使用 TeXlipse,它通常能夠將此類文件儲存在臨時資料夾中。然而,對於這些特定的擴展,它無法做到這一點,可能是由於一個錯誤

這些文件到底是什麼?他們這一代能以某種方式避免嗎?

更新:正如評論中所建議的,本文檔顯然使用了minitoc(從相當廣泛的模板開始);目錄之前是以下指令:

\dominitoc
\dominilof
\dominilot

有什麼方法可以指示minitoc清理這些文件或將它們藏在其他地方嗎?

答案1

更新提供一個使用不同的小駭客程式碼\jobname,但這會將所有產生的檔案轉移到名為的目錄路徑中\minitocpath

minitoc套件產生一堆文件來執行其設計的任務。

在下面的解釋中,X代表loflottoc,並且Y表示章節、部分或節號,取決於上下文。

的基本概念minitoc是逐章的\tableofcontents\listoffigures命令\listoftables,稱為\minitoc\minilof\minilot

這些命令中的每一個都會為每一章創建一個文件,名為\jobname.mtcY\jobname.mlfY並且\jobname.mltY- 即使沒有\miniX使用命令,也會寫入這些文件。

寫入的文件列表minitoc也儲存在\jobname.maf.

由於minitoc提供了\partX\sectX命令,這些命令分別產生\jobname.ptcY\jobname.plfY和,和。這些命令是互斥的!\jobname.pltY\jobname.stcY\jobname.slfY\jobname.sltY

將這些檔案轉移到某個位置minitoc是不可能的,至少在不修改/修補minitoc.

這是一個範例文件minitoc,用於建立、建立\jobname.mtc0\jobname.mtc3

\documentclass{book}

\usepackage{blindtext}

% Must be placed before `minitoc` is loaded!
\newcommand{\minitocpath}{%
  minitocdump/% Change the name of the directory. 
}

\makeatletter
\let\jobname@@orig\jobname
\def\jobname{\minitocpath/\jobname@@orig}
\makeatother

\usepackage{minitoc}

\dominitoc
\dominilof
\dominilot


\begin{document}
\faketableofcontents
\fakelistoffigures
\fakelistoftables
\chapter{First chapter}
\minitoc
\minilof
\minilot
\section{First section}
\blindtext
\begin{figure}
\caption{A local figure}
\end{figure}

\begin{table}
\caption{A local table}
\end{table}

\chapter{Second chapter}
\minitoc
\minilof
\minilot
\section{Second section}

\chapter{Third chapter}

\section{Third section}
\end{document}

...以及類似的版本\parttoc等。

\documentclass{book}

\usepackage{blindtext}

% Must be placed before `minitoc` is loaded!
    \newcommand{\minitocpath}{%
      minitocdump/% Change the name of the directory. 
    }

    \makeatletter
    \let\jobname@@orig\jobname
    \def\jobname{\minitocpath/\jobname@@orig}
    \makeatother

\usepackage{minitoc}

\doparttoc
\dopartlof
\dopartlot


\begin{document}
\faketableofcontents
\fakelistoffigures
\fakelistoftables
\part{First part}

\parttoc
\partlof
\partlot

\chapter{First chapter}

\section{First section}
\blindtext
\begin{figure}
\caption{A local figure}
\end{figure}

\begin{table}
\caption{A local table}
\end{table}


\blindtext
\begin{figure}
\caption{A local figure}
\end{figure}

\begin{table}
\caption{A local table}
\end{table}


\part{Second part}


\parttoc
\partlof
\partlot

\chapter{Second chapter}
\section{Second section}

\chapter{Third chapter}

\section{Third section}

\blindtext
\begin{figure}
\caption{A local figure}
\end{figure}

\begin{table}
\caption{A local table}
\end{table}
\end{document}

在此輸入影像描述

相關內容