儲存 .tex 檔案

儲存 .tex 檔案

我有一個大型的 .tex 檔案資料庫,我用它來透過 esami 套件進行編譯。我的公司設計了各個級別的數學和科學課程,因此雖然 Latex 提供了漂亮的圖形(耶!),但我的硬碟上儲存了近 7,000 個 tex 檔案。這些只是問題 - 我有另一個充滿 .pdf 的資料夾,這些檔案通常在每個問題中編譯。當然,它們每晚都會備份,但肯定有另一種方法來處理這個問題。我有興趣創建一個更好的儲存系統,以便當我離開電腦時可以使用這些檔案。

我考慮過雲端存儲,但我想知道是否有人對這將如何影響編譯速度有任何意見?我認為直接從硬碟運行檔案將是最快的編譯方法,但我很想聽聽任何人的建議。

以下是幾何問題 (MWE) 的範例:

這是使用 pdfLatex+MakeIndex+Bibtex 在 TexWorks 中運行的 shell 檔案:

    \documentclass[a4paper,UKenglish]{article}
\usepackage[shufflerandom,twocolumns,xyz,solutionsonly]{esami}
\usepackage{mdframed}
\usepackage{xlop}
\usepackage{longdiv}
\makeatletter
\renewcommand\section{\@startsection{section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\huge\center\bfseries}}
\makeatother
\setlength{\columnsep}{-4in}
\def\examname{2016/01/16}
\def\numcompiti{1}%%% The number of the versions
\date{2016/01/16}
\def\Data{\longdate}%%% or \shortdate: the date in the heading
\renewcommand{\familydefault}{\sfdefault}
\begin{document}
g-0621
\testversioni
\pagestyle{esame}
\whiledo{\thevers<\numcompiti}{\stepvers
\FPeval\seme{round((\thenomefile+(3*\thevers)):0)}
\randomi=\seme
\permuta
\begin{large}
\begin{minipage}[t][6.4in][t]{7.5in}

\esercizi{../g-0621}

\end{minipage}
\closevers
}
\end{large}
\end{document}

這是程式碼在“\esercizi{../g-0621}”行中引用的實際問題文件

\newproblem{

\begin{problem}Write a formal proof for the following:

\begin{center}
\begin{minipage}{5cm}
\includegraphics[scale=0.75]{C:/Teaching/Problems/Diagrams/graph210.pdf}
\end{minipage}
\hspace{0.10\textwidth}
\begin{minipage}{5cm}
\begin{align*}
\textbf{Given}&:m \angle 2 > m\angle 1\\
\textbf{Prove}&:m \angle 2 > m\angle 4\\
\end{align*}
\end{minipage}
\end{center}

\begin{center}
\begin{tabular}{|c|c|c|c|c|c|}\hline
\textbf{Statement}&\textbf{Reason}\\\hline
\fillin[e]{6cm}{$m \angle 2 > m\angle 1$}&\fillin[e]{6cm}{Given}\\[3ex]\hline
\fillin[e]{6cm}{$m \angle 1 > m\angle 3$}&\fillin[e]{6cm}{Exterior Angle Inequality}\\[3ex]\hline
\fillin[e]{6cm}{$m \angle 2 > m\angle 3$}&\fillin[e]{6cm}{Transitive Property of Inequality}\\[3ex]\hline
\fillin[e]{6cm}{$\angle 3 \cong \angle 4$}&\fillin[e]{6cm}{Vertical Angle Theorem}\\[3ex]\hline
\fillin[e]{6cm}{$m \angle 2 > m\angle 4$}&\fillin[e]{6cm}{Substitution Property}\\[3ex]\hline
\end{tabular}
\end{center}



\end{problem}

}

根據記錄,如果有人正在製作問題資料庫,我喜歡 esami 包。它有一個學習曲線,但是一旦您了解如何使用該包,它就會變得非常壯觀。

最後(我對長篇文章表示歉意),如果這裡沒有人有直接答案,我也可以自己測試編譯,但是有沒有辦法獲得編譯速度的記錄列印輸出?

我想我可以在外部驅動器、雲端儲存和我自己的桌面上設定相同的問題,然後測試這 3 個方法,看看使用其他 2 種方法時編譯需要多花多少時間。

答案1

您希望僅將 7.000 個檔案保存在雲端儲存上,還是同時保存在您的電腦和雲端儲存上以進行備份?我經常使用 esami 套件編譯文件,有時嘗試將主文件和練習放在我的電腦上,同步到雲端儲存。我沒有註意到編譯有任何減慢,因為我在編譯時關閉了同步功能,並在完成後打開它來備份我的工作。我不知道有任何工具可以追蹤編譯時間。我沒有嘗試僅使用雲端儲存上的文件進行編譯,因此我無法幫助您。至於外部硬碟選項,更難以評估它是否影響編譯時間,因為它取決於硬碟速度、USB 連接埠速度等。

相關內容