what are the influences after cancelling \hypersetup in org-mode?

我怕爱的太早我们不能终老 提交于 2020-01-04 09:01:35

问题


I make pdf in org-mode with my own preamble, but the PDF or tex file generated always appear the information resulting from:

(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))

those cods locate in ~/.emacs.d/org-7.8.11/lisp/org-latex.el

I cancelled it to prevent the useless information appearing at the first page of its PDF-file. However is it OK to delete such codes without any function lost?

what influences will be caused by this action?

Thank you for your help.


回答1:


Ok, I know how it is.

add the code into your preamble :

\usepackage{hyperref}

all are solved.




回答2:


In that same file you mention, (lisp/org-latex.el), it suggests

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

So the following should work

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

Alas, I've reading downloaded source code not the same as my current org version, so this didn't work. apropos may be an easy fix, so

M-x apropos RET hyperref RET

leads me to the variable org-latex-with-hyperref, so now I try

(setq org-latex-with-hyperref nil)

This worked for me.



来源:https://stackoverflow.com/questions/11366425/what-are-the-influences-after-cancelling-hypersetup-in-org-mode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!