【问题标题】:Intermittent reference (bibliography) in LatexLatex 中的间歇性参考(参考书目)
【发布时间】:2021-11-21 18:34:15
【问题描述】:

我有 TexStudio 和 MikTex 分别在我的 PC 版本 4.0.3 和 4.4 上编辑 Latex 文件。但是,我的 bibfiles 引用以随机方式工作:有时它们会被识别,而在其他情况下则不会。

最小的可重现示例

\documentclass[msc]{ppgccufmg}

\begin{document}
    
Testing the reference \cite{COAF}
    
\ppgccbibliography{bibfile}

\end{document}

书目文件.bib

@misc{COAF,
    title = {O que é lavagem de dinheiro e financiamento do terrorismo},
    howpublished = {\url{https://www.gov.br/coaf/pt-br/pastas-antigas-disponiveis-para-pesquisa/o-sistema-de-prevencao-a-lavagem-de-dinheiro/o-que-e-o-crime-de-lavagem-de-dinheiro-ld}},
    note = {Accessed: 2010-09-30}
}

类ppgccufmg:https://github.com/verlab/ppgccufmg (删除第 40 行的 \RequirePackage{etexttools})

错误:

【问题讨论】:

    标签: latex bibliography miktex texstudio


    【解决方案1】:

    两个问题:

    • latex 忽略\end{document} 之后的所有内容,如果你想要一个参考书目,你必须把它放在它之前

    • 您在 .bib 文件中使用 \url{...}。您需要加载像 hyperrefurl 这样定义此宏的包


    \documentclass[msc]{ppgccufmg}
    
    \usepackage{hyperref}
    
    \begin{document}
        
    Testing the reference \cite{COAF}
    
    \ppgccbibliography{\jobname}
    
    \end{document}
    

    【讨论】:

    • \end{document} 之后的参考书目确实是我在构建最小可重现示例时的错误。我刚刚修好了。它工作得很好。非常感谢!
    • @CláudioAlmeida 不客气!
    猜你喜欢
    • 1970-01-01
    • 2015-06-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多