【问题标题】:what are the influences after cancelling \hypersetup in org-mode?在 org-mode 中取消 \hypersetup 后有什么影响?
【发布时间】:2012-07-06 16:50:03
【问题描述】:

我用自己的序言在 org 模式下制作 pdf,但生成的 PDF 或 tex 文件总是出现以下信息:

(format "\\hypersetup{\n  pdfkeywords={%s},\n  pdfsubject={%s},\n  pdfcreator={%s}}\n"
(org-export-latex-fontify-headline keywords)
(org-export-latex-fontify-headline description)
(concat "Emacs Org-mode version " org-version))

这些鳕鱼位于 ~/.emacs.d/org-7.8.11/lisp/org-latex.el

我取消了它以防止其 PDF 文件的第一页出现无用信息。 但是这样的代码可以删除而不丢失任何功能吗?

这个动作会造成什么影响?

感谢您的帮助。

【问题讨论】:

    标签: latex org-mode


    【解决方案1】:

    好的,我知道了。

    将代码添加到您的序言中:

    \usepackage{hyperref}
    

    一切都解决了。

    【讨论】:

      【解决方案2】:

      在你提到的同一个文件中,(lisp/org-latex.el),它建议

      org-latex-hyperref-template...
      Set it to the empty string to ignore the command completely.
      

      所以以下应该可以工作

      (setq org-latex-hyperref-template "")
      

      唉,我下载的源代码与我当前的org 版本不同,所以这不起作用。 apropos 可能很容易解决,所以

      M-x apropos RET hyperref RET
      

      将我带到变量org-latex-with-hyperref,所以现在我尝试

      (setq org-latex-with-hyperref nil)
      

      这对我有用。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-04-03
        • 1970-01-01
        • 2015-02-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多