
所以我即將使用主席提供的範本來完成我的論文。
是的,當然,我嘗試在網上搜索適合這個問題的解決方案,但我發現的通常是關於在某種程度上一切都運行良好,但現在新的縮寫詞沒有被打印到術語表中。
我曾經遇到過這個問題並以某種方式解決了它,但不幸的是我不記得我是如何做到的。
行為是這樣的: *新的首字母縮略詞沒有被轉移到術語表中 *主文檔給了我一個“包術語表警告:術語表條目'hdr'尚未在行%blah%上定義。
是的,沒錯,因為文件中沒有使用“hdr”,所以我沒有將其包含在術語表中。如果我加上「hdr」\newacronym{},它甚至會顯示在第 48 頁的詞彙表中,並附帶一個條目。
對我來說,系統似乎在某種程度上引用了儲存在某處的舊的、已編譯的版本。
我怎麼才能讓系統強制它編譯新的?
我正在使用 sharelatex.com,由於缺乏所需的配置和在任何地方工作的能力,我對此感到非常滿意。
main.tex 看起來像這樣:
\piivsubject{Master Thesis}
% The title of your work.
\piivtitle{My Thesis}
% Your name.
\piivauthor{The Author}
% Name of your supervisor.
\piivsupervisor{Name of Supervisor}
% The date you submit your thesis. You can substitute the command with any date.
\date{\today}
% If you want to use the glossary make sure your 'makeindex' toolchain is working correctly.
% Alternetively, you might want to look into the 'xindy' option of the glossaries package.
\makeglossaries
\begin{document}
\input{src/glossary}
% Abstract is optional. If you do not use an abstract, remove it.
% ---------------------------------
% Begin of abstract
\abstractchap
% \blindtext creates a paragraph of non-sense text. Replace it with your actual content.
\blindtext
% End of abstract
% ---------------------------------
% ---------------------------------
% Begin of listings
\microtypesetup{protrusion=false} % disables protrusion locally in the document
\tableofcontents
% If you should not have any figures, tables or acronyms in your paper remove the according list.
\listoffigures
\listoftables
% Uncomment the next line if you use listings in your document.
% \lstlistoflistings
\microtypesetup{protrusion=true} % enables protrusion
\printglossary[type=\acronymtype]
% End of listings
% ---------------------------------
% ---------------------------------
% Begin of main part
\mainmatter
\include{src/chapter_1}
\include{src/chapter_2}
% Include more chapters here.
% End of main part
% ---------------------------------
% ---------------------------------
% Begin of appendix
\appendix
% Appendix chapters are optional. Use it if you have very long tables or additional figures that
% do not belong to the main text.
% \input{src/appendix}
% Remove this from the final document
\include{src/checklist}
\backmatter
\bibliography{library}
% Fix for long URLs in bibliography
\sloppy
\printglossary
\fussy
\include{src/erklaerung}
% Consult your supervisor about the following declaration of assignment.
%\include{src/abtretungserklaerung}
% End of appendix
% ---------------------------------
\end{document}
我沒有錯誤,也沒有警告,只是一些過滿和未滿的框,但文件看起來像我想要的樣子。
我發現真正奇怪的是第 48 頁的“hdr”引用...
問題: * 這可以以任何方式連接嗎? * 如果它能工作,我可以輕鬆地將 \newacronym{} 命令放在主文件中,而不是單獨的lossary.tex 文件中。我嘗試過一次但沒有改變任何東西。
非常感謝,任何意見都會受到讚賞!
詹姆士
答案1
OP 作為編輯發布的答案:
呃,發布後不久我自己修復了它。
我所做的如下:將lossary.tex 檔案移到images 資料夾中,然後進行編譯。這導致了錯誤,根本沒有創建 PDF。然後我將glossary.tex檔案放回\src的根目錄中並再次按下編譯。
令我驚訝和高興的是它起作用了——詞彙表又起作用了。