【问题标题】:Compile twice in django_tex在 django_tex 中编译两次
【发布时间】:2022-01-20 21:28:23
【问题描述】:

我需要使用django_tex 两次编译.tex 文件,以便正确加载目录。有没有办法告诉django_tex 中的解释器运行编译器两次(我使用pdflatex)??

代码:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}


\begin{document}


\tableofcontents
\section{Introduction}
Introduction text.

\section{Second section}
Second section text.

\end{document}

【问题讨论】:

    标签: django compilation latex pdflatex tableofcontents


    【解决方案1】:

    django_tex 似乎支持 latexmk,它会(在许多其他有用的东西中,比如运行参考书目工具)自动确定所需的 *tex 运行次数。

    要使用这个,你可以按照https://github.com/weinbusch/django-tex/pull/5#issuecomment-447030408的建议添加

    LATEX_INTERPRETER='latexmk -pdf'
    
    

    致您的settings.py

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-08
      • 2017-12-29
      • 2011-09-16
      • 1970-01-01
      相关资源
      最近更新 更多