我的词汇表包含来自 WiKipedia 的定义,我想使用 /cite 命令将其作为引文引用到我的参考书目中。我的参考书目使用超链接链接到文档中的位置,当读者跳转到参考书目并需要返回阅读位置时,这非常有用。但参考书目中的超链接不包含词汇表!在预期的位置,它显示“(文档)”,链接到第一页,但不链接到词汇表。
我觉得书目是先建立的,但找不到词汇表页面?有没有人能帮忙解决这个问题?任何帮助我都会非常感激。:)
我将我的论文精简为一个小例子(miniexample.tex + References.bib),并附上从 TeXnicCenter 导出的输出配置文件。miniexample.tex:
\documentclass{scrbook}
\usepackage{glossaries}
\usepackage{cite}
\usepackage[colorlinks, linkcolor=black, menucolor=black, urlcolor=black, plainpages=false, pdfpagelabels, pagebackref=false, backref=section, breaklinks={true}]{hyperref}
\pagenumbering{Alph}
\pagestyle{empty}
\newglossaryentry{SWOT}{%
type=\acronymtype,
name={SWOT},%
first={Strength, Weaknesses, Opportunities and Threads (SWOT)},
description={Strength, Weaknesses, Opportunities and Threats\\ SWOT is a structured planning method used to evaluate the strengths, weaknesses, opportunities, and threats involved in a project or in a business venture~\cite{SWOTWiKiPedia}}%
}
\makeindex
\makeglossaries
\begin{document}
any title
\newpage
\clearpage
\pagenumbering{Roman}
\printglossaries
\tableofcontents
\normalsize
\pagenumbering{arabic}
Here i do some test with citation of SWOT~\cite{SWOTWiKiPedia}.
Here i do use gls of \gls{SWOT}. Now i use \gls{SWOT} a second time.
\newpage
Usage of SWOT~\cite{SWOTWiKiPedia} on the next page.
\bibliographystyle{alpha}
\bibliography{References}
\end{document}
参考文献.bib
@misc{SWOTWiKiPedia,
key = {SWOTWiKiPedia},
title = {Strengths, Weaknesses, Opportunities, and Threats},
howpublished = {Wikipedia, The Free Encyclopedia \newline \url{http://en.wikipedia.org/wiki/SWOT_analysis}},
note = {\\Accessed: 2014-04-25}
}
使用 TeXnicCenter 并导入 latex-pdf-glossary+acronym_win7.tco 作为输出配置文件:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<txcop:outputProfiles version="2" xmlns:txcop="http://schemas.ToolsCenter.org/TeXnicCenter/OutputProfiles.xsd">
<outputProfileList>
<outputProfile name="LaTeX ⇨ PS" stopOnLatexError="false">
<texCommand execute="true" path="latex.exe" arguments="-src -max-print-line=120 -interaction=nonstopmode "%wm""/>
<bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>
<makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>
<preProcessors/>
<postProcessors>
<processor name="DviPs" path="dvips.exe" arguments=""%Bm.dvi"" inputFile="" outputFile=""/>
</postProcessors>
<viewer path="" closeBeforeCompilation="false">
<viewProjectCommand type="commandLine">
<commandLineCommand path="" arguments=""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewProjectCommand>
<viewCurrentFileCommand type="commandLine">
<commandLineCommand path="" arguments=""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewCurrentFileCommand>
<viewCloseCommand type="commandLine">
<commandLineCommand path="" arguments=""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewCloseCommand>
</viewer>
</outputProfile>
<outputProfile name="LaTeX ⇨ DVI" stopOnLatexError="false">
<texCommand execute="true" path="latex.exe" arguments="-src -max-print-line=120 -interaction=nonstopmode "%wm""/>
<bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>
<makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>
<preProcessors/>
<postProcessors/>
<viewer path="yap.exe" closeBeforeCompilation="false">
<viewProjectCommand type="commandLine">
<commandLineCommand path="yap.exe" arguments="-1 "%bm.dvi""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewProjectCommand>
<viewCurrentFileCommand type="commandLine">
<commandLineCommand path="yap.exe" arguments="-1 -s %l"%Wc" "%bm.dvi""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewCurrentFileCommand>
<viewCloseCommand type="commandLine">
<commandLineCommand path="" arguments=""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewCloseCommand>
</viewer>
</outputProfile>
<outputProfile name="LuaLaTeX ⇨ PDF" stopOnLatexError="false">
<texCommand execute="true" path="lualatex.exe" arguments="-max-print-line=120 -interaction=nonstopmode "%wm""/>
<bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>
<makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>
<preProcessors/>
<postProcessors/>
<viewer path="miktex-texworks.exe" closeBeforeCompilation="false">
<viewProjectCommand type="commandLine">
<commandLineCommand path="miktex-texworks.exe" arguments=" "%bm.pdf""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewProjectCommand>
<viewCurrentFileCommand type="commandLine">
<commandLineCommand path="miktex-texworks.exe" arguments=" "%bm.pdf""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewCurrentFileCommand>
<viewCloseCommand type="commandLine">
<commandLineCommand path="" arguments=""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewCloseCommand>
</viewer>
</outputProfile>
<outputProfile name="LaTeX ⇨ PS ⇨ PDF" stopOnLatexError="false">
<texCommand execute="true" path="latex.exe" arguments="-max-print-line=120 -interaction=nonstopmode "%wm""/>
<bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>
<makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>
<preProcessors/>
<postProcessors>
<processor name="DviPs (PDF)" path="dvips.exe" arguments="-P pdf "%Bm.dvi"" inputFile="" outputFile=""/>
<processor name="ps2pdf" path="ps2pdf.exe" arguments=""%bm.ps"" inputFile="" outputFile=""/>
</postProcessors>
<viewer path="miktex-texworks.exe" closeBeforeCompilation="false">
<viewProjectCommand type="commandLine">
<commandLineCommand path="miktex-texworks.exe" arguments=" "%bm.pdf""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewProjectCommand>
<viewCurrentFileCommand type="commandLine">
<commandLineCommand path="miktex-texworks.exe" arguments=" "%bm.pdf""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewCurrentFileCommand>
<viewCloseCommand type="commandLine">
<commandLineCommand path="" arguments=""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewCloseCommand>
</viewer>
</outputProfile>
<outputProfile name="XeLaTeX ⇨ PDF" stopOnLatexError="false">
<texCommand execute="true" path="xelatex.exe" arguments="-max-print-line=120 -interaction=nonstopmode "%wm""/>
<bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>
<makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>
<preProcessors/>
<postProcessors/>
<viewer path="miktex-texworks.exe" closeBeforeCompilation="false">
<viewProjectCommand type="commandLine">
<commandLineCommand path="miktex-texworks.exe" arguments=" "%bm.pdf""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewProjectCommand>
<viewCurrentFileCommand type="commandLine">
<commandLineCommand path="miktex-texworks.exe" arguments=" "%bm.pdf""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewCurrentFileCommand>
<viewCloseCommand type="commandLine">
<commandLineCommand path="" arguments=""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewCloseCommand>
</viewer>
</outputProfile>
<outputProfile name="LaTeX ⇨ PDF" stopOnLatexError="false">
<texCommand execute="true" path="pdflatex.exe" arguments="-max-print-line=120 -interaction=nonstopmode "%wm""/>
<bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>
<makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>
<preProcessors/>
<postProcessors/>
<viewer path="AcroRd32.exe" closeBeforeCompilation="true">
<viewProjectCommand type="dde">
<commandLineCommand path="AcroRd32.exe" arguments=" "%bm.pdf""/>
<ddeCommand path="AcroRd32.exe" server="acroviewR11" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>
</viewProjectCommand>
<viewCurrentFileCommand type="dde">
<commandLineCommand path="AcroRd32.exe" arguments=" "%bm.pdf""/>
<ddeCommand path="AcroRd32.exe" server="acroviewR11" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>
</viewCurrentFileCommand>
<viewCloseCommand type="dde">
<commandLineCommand path="" arguments=""/>
<ddeCommand path="" server="acroviewR11" topic="control" command="[DocClose("%bm.pdf")]"/>
</viewCloseCommand>
</viewer>
</outputProfile>
<outputProfile name="LaTeX ⇨ PDF (Glossary+Acronym)" stopOnLatexError="false">
<texCommand execute="true" path="pdflatex.exe" arguments="-interaction=nonstopmode -max-print-line=120 "%pm""/>
<bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>
<makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm""/>
<preProcessors/>
<postProcessors>
<processor name="makeglossaries #1" path="makeindex.exe" arguments="-s "%tm".ist -t "%tm".glg -o "%tm".gls "%tm".glo" inputFile="" outputFile=""/>
<processor name="makeacronyms #1" path="makeindex.exe" arguments="-s "%tm".ist -t "%tm".alg -o "%tm".acr "%tm".acn" inputFile="" outputFile=""/>
<processor name="pdflatex #2" path="pdflatex.exe" arguments="-interaction=nonstopmode -max-print-line=120 "%pm"" inputFile="" outputFile=""/>
<processor name="makeglossaries #2" path="makeindex.exe" arguments="-s "%tm".ist -t "%tm".glg -o "%tm".gls "%tm".glo" inputFile="" outputFile=""/>
<processor name="makeacronyms #2" path="makeindex.exe" arguments="-s "%tm".ist -t "%tm".alg -o "%tm".acr "%tm".acn" inputFile="" outputFile=""/>
<processor name="pdflatex #3" path="pdflatex.exe" arguments="-interaction=nonstopmode -max-print-line=120 "%pm"" inputFile="" outputFile=""/>
</postProcessors>
<viewer path="AcroRd32.exe" closeBeforeCompilation="true">
<viewProjectCommand type="dde">
<commandLineCommand path="" arguments=""/>
<ddeCommand path="AcroRd32.exe" server="acroviewR11" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>
</viewProjectCommand>
<viewCurrentFileCommand type="dde">
<commandLineCommand path="" arguments=""/>
<ddeCommand path="AcroRd32.exe" server="acroviewR11" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>
</viewCurrentFileCommand>
<viewCloseCommand type="dde">
<commandLineCommand path="" arguments=""/>
<ddeCommand path="" server="acroview" topic="control" command="[DocClose("%bm.pdf")]"/>
</viewCloseCommand>
</viewer>
</outputProfile>
<outputProfile name="LaTeX ⇨ DVI ⇨ PDF" stopOnLatexError="false">
<texCommand execute="true" path="latex.exe" arguments="-max-print-line=120 -interaction=nonstopmode "%wm""/>
<bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>
<makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>
<preProcessors/>
<postProcessors>
<processor name="dvipdfm" path="dvipdfm.exe" arguments=""%bm.dvi"" inputFile="" outputFile=""/>
</postProcessors>
<viewer path="miktex-texworks.exe" closeBeforeCompilation="false">
<viewProjectCommand type="commandLine">
<commandLineCommand path="miktex-texworks.exe" arguments=" "%bm.pdf""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewProjectCommand>
<viewCurrentFileCommand type="commandLine">
<commandLineCommand path="miktex-texworks.exe" arguments=" "%bm.pdf""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewCurrentFileCommand>
<viewCloseCommand type="commandLine">
<commandLineCommand path="" arguments=""/>
<ddeCommand path="" server="" topic="System" command=""/>
</viewCloseCommand>
</viewer>
</outputProfile>
<outputProfile name="LaTeX ⇨ PDF (with glossaries)" stopOnLatexError="false">
<texCommand execute="true" path="pdflatex.exe" arguments="-max-print-line=120 -interaction=nonstopmode "%wm""/>
<bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>
<makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm".glo -t "%tm".glg -s "%tm".ist -o "%tm".gls"/>
<preProcessors/>
<postProcessors/>
<viewer path="AcroRd32.exe" closeBeforeCompilation="true">
<viewProjectCommand type="dde">
<commandLineCommand path="AcroRd32.exe" arguments=" "%bm.pdf""/>
<ddeCommand path="AcroRd32.exe" server="acroviewR11" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>
</viewProjectCommand>
<viewCurrentFileCommand type="dde">
<commandLineCommand path="AcroRd32.exe" arguments=" "%bm.pdf""/>
<ddeCommand path="AcroRd32.exe" server="acroviewR11" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>
</viewCurrentFileCommand>
<viewCloseCommand type="dde">
<commandLineCommand path="" arguments=""/>
<ddeCommand path="" server="acroviewR11" topic="control" command="[DocClose("%bm.pdf")]"/>
</viewCloseCommand>
</viewer>
</outputProfile>
</outputProfileList>
</txcop:outputProfiles>
答案1
亲爱的女士们,先生们,
它似乎位于
\usepackage[colorlinks, linkcolor=black, menucolor=black, urlcolor=black, plainpages=false, pdfpagelabels, pagebackref=false, breaklinks={true}, backref=section]{hyperref}
正是 backref=section。词汇表似乎不算作部分,然后创建指向文档第一页的 (document)。
我选择 backref=page 来解决我的论文中的问题。backref 的选项包括:
backref=page, % activate back references inside bibliography (section, slide, page, none)
现在将罗马页码添加到参考书目中作为反向引用。
祝您使用 TeX 愉快!