Latex 期刊论文 编译pdf时手动添加书签的一种方法

您所在的位置:网站首页 如何给pdf加标签 Latex 期刊论文 编译pdf时手动添加书签的一种方法

Latex 期刊论文 编译pdf时手动添加书签的一种方法

2024-07-14 18:49| 来源: 网络整理| 查看: 265

问题描述

在用latex写论文时,想让pdf生成书签。在用其他模板写论文时,这是非常简单的,只需要在\begin{document}之前导入hyperref包即可。

\usepackage{hyperref}

其中的bookmarks默认为True,因此会自动添加书签。

然而,这次使用的论文模板导入hyperref包后,无论怎样操作都无法生成书签。原因未知。

 

解决

尚未找到合适的解决方法,目前使用的是临时方法。

参考链接:

https://tex.stackexchange.com/questions/433899/hyperref-doesnt-produce-bookmarks-for-title-page-nor-the-toc

https://zhuanlan.zhihu.com/p/66434387

使用bookmark包,之后手动添加目录。

例如:

\documentclass{atemplatecannotaddbookmarks} \usepackage[numbered]{bookmark} \usepackage{hyperref} \hypersetup{ bookmarksnumbered=true, bookmarksopen=true, bookmarksopenlevel=5, colorlinks=true, citecolor=black, filecolor=black, linkcolor=black, urlcolor=black, pdfstartview=Fit, pdfpagemode=UseOutlines } \begin{document} % self_package \title[]{} \bookmark[dest=\HyperLocalCurrentHref,level=1]{Abstract} \input{article/0abstract.tex} \bookmark[dest=\HyperLocalCurrentHref,level=1]{Introduction} \input{article/1introduction.tex} \end{document}

结果

 

还在寻找能够自动添加书签的好方法



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3