
我已經遇到這個問題有一段時間了,但無法解決它,這讓我發瘋。我是乳膠新手,找不到任何已經回答的問題可以幫助我解決這個問題,所以這裡是:
我正在寫我的論文,並且正在使用一個已經定義的論文類別(“Thesis.cls”,基於 Steve R. Gunn 的“ECSthesis.cls”,來自 Latextemplates.com,如果有幫助的話)。
現在一切正常,但它使用 natbib 來管理參考書目,我想嘗試 biblatex,所以我評論了模板中導入 natbib 包的部分,並添加了設置 biblatex 的行。它看起來像這樣:
natbib 的設定:
\documentclass[12pt, a4paper, twoside, openright]{Thesis} % Paper size, default font size and one-sided paper
\graphicspath{{Pictures/}} % Specifies the directory where pictures are stored
\usepackage[comma, authoryear]{natbib} % Use the natbib reference package - read up on this to edit the reference style; if you want text (e.g. Smith et al., 2012) for the in-text references (instead of numbers), remove 'numbers' \usepackage[comma,authoryear]{natbib}
%\usepackage[utf8]{inputenc}%espaniol (it's already declared in Thesis.cls)
\hypersetup{urlcolor=black, colorlinks=false, citecolor=black, linkcolor=black, pdfborder={0 0 0}} % Colors hyperlinks in blue - change to black if annoying
\title{\ttitle} % Defines the thesis title - don't touch this
\begin{document}
我改為:
\documentclass[12pt, a4paper, twoside, openright]{Thesis} % Paper size, default font size and one-sided paper
\graphicspath{{Pictures/}} % Specifies the directory where pictures are stored
%%%%%% SETUP BIBLIOGRAPHY
\usepackage[spanish,english]{babel}
\usepackage[autostyle]{csquotes}
\usepackage[backend=biber,style=alphabetic,sorting=ynt]{biblatex}
\addbibresource{Bibliography.bib}
\hypersetup{urlcolor=black, colorlinks=false, citecolor=black, linkcolor=black, pdfborder={0 0 0}} % Colors hyperlinks in blue - change to black if annoying
\title{\ttitle} % Defines the thesis title - don't touch this
\begin{document}
現在,在這些變更之後,專案編譯並且 pdf 看起來不錯,參考書目和引用工作完美,但我在以下位置收到未定義的控制序列錯誤
\begin{document}
僅在新增以下行後才會出現錯誤:
\usepackage[backend=biber,style=alphabetic,sorting=ynt]{biblatex}
所以我猜測 Thesis.cls 和 biblatex 套件中已經定義的內容之間可能存在某種不相容,但找不到任何內容(或者只是在看到它時無法識別它)。
我做錯了什麼或你知道我該看什麼嗎?
任何幫助是極大的讚賞!