
我有一個我想使用的標題頁模板。當我在 TexStudio 中點擊“編譯”時,TexStudio 將打開對話框以安裝其他套件。我點選對話框(附圖)
結果是一條錯誤訊息“vmargin.sty
找不到文件”,我發現它vmargin.sty
不再使用(舊),我應該用幾何圖形替換它。但我不能這樣做,因為那樣我就必須重寫整個模板(當然模板不能用 編譯\usepackage{geometry}
)。我還更改了下載包的伺服器。但結果是一樣的。你能幫助我嗎?謝謝。下面我加入模板的程式碼:
\documentclass{thesisclass}
% Based on thesisclass.cls of Timo Rohrberg, 2009
% ----------------------------------------------------------------
% Thesis - Main document
% ----------------------------------------------------------------
%% -------------------------------
%% | Information for PDF file |
%% -------------------------------
\hypersetup{
pdfauthor={Not set},
pdftitle={Not set},
pdfsubject={Not set},
pdfkeywords={Not set}
}
%% ---------------------------------
%% | Information about the thesis |
%% ---------------------------------
\newcommand{\myname}{Name}
\newcommand{\mytitle}{Title of thesis\\
Second title line}
\newcommand{\myinstitute}{Chair for Computer Science II\\
Software Engineering}
\newcommand{\reviewerone}{?}
\newcommand{\reviewertwo}{?}
\newcommand{\advisor}{?}
\newcommand{\advisortwo}{?}
\newcommand{\timestart}{XX. Monat 20XX}
\newcommand{\timeend}{XX. Monat 20XX}
\newcommand{\submissiontime}{DD. MM. 20XX}
%% ---------------------------------
%% | ToDo Marker - only for draft! |
%% ---------------------------------
% Remove this section for final version!
\setlength{\marginparwidth}{20mm}
\newcommand{\margtodo}
{\marginpar{\textbf{\textcolor{red}{ToDo}}}{}}
\newcommand{\todo}[1]
{{\textbf{\textcolor{red}{(\margtodo{}#1)}}}{}}
%% --------------------------------
%% | Old Marker - only for draft! |
%% --------------------------------
% Remove this section for final version!
\newenvironment{deprecated}
{\begin{color}{gray}}
{\end{color}}
%% --------------------------------
%% | Settings for word separation |
%% --------------------------------
% Help for separation:
% In german package the following hints are additionally available:
% "- = Additional separation
% "| = Suppress ligation and possible separation (e.g. Schaf"|fell)
% "~ = Hyphenation without separation (e.g. bergauf und "~ab)
% "= = Hyphenation with separation before and after
% "" = Separation without a hyphenation (e.g. und/""oder)
% Describe separation hints here:
\hyphenation{
% Pro-to-koll-in-stan-zen
% Ma-na-ge-ment Netz-werk-ele-men-ten
% Netz-werk Netz-werk-re-ser-vie-rung
% Netz-werk-adap-ter Fein-ju-stier-ung
% Da-ten-strom-spe-zi-fi-ka-tion Pa-ket-rumpf
% Kon-troll-in-stanz
}
%% ------------------------
%% | Including files |
%% ------------------------
% Only files listed here will be included!
% Userful command for partially translating the document (for bug-fixing e.g.)
\includeonly{%
titlepage,
declaration,
introduction,
content,
evaluation,
conclusion,
appendix
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Here, main documents begins %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
% Remove the following line for German text
\selectlanguage{english}
\frontmatter
\pagenumbering{roman}
\include{titlepage}
\include{declaration}
\blankpage
%% -------------------
%% | Directories |
%% -------------------
\tableofcontents
\blankpage
%% -----------------
%% | Main part |
%% -----------------
\mainmatter
\pagenumbering{arabic}
\include{introduction}
\include{content}
\include{evaluation}
\include{conclusion}
%% --------------------
%% | Bibliography |
%% --------------------
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\bibname}
\iflanguage{english}
{\bibliographystyle{IEEEtranSA}} % english style
{\bibliographystyle{babalpha-fl}} % german style
% Use IEEEtran for numeric references
%\bibliographystyle{IEEEtranSA})
\bibliography{thesis}
%% ----------------
%% | Appendix |
%% ----------------
\cleardoublepage
\input{appendix}
\end{document}
答案1
由於 miktex 嘗試下載錯誤的軟體包,因此您的本機軟體包資料庫似乎有故障或過時。您可以透過與線上資料庫同步來更新此資料庫:
轉到套件管理器(admin和使用者版本)並同步(選單儲存庫),然後重試。