三甲检查,需要附件台帐上传。通常的做法,是将相关文件合并成一个文件或者目录打包成压缩文件,对于资料的查找非常不方便。
快速制作合成有目录有链接的PDF,非常有必要,一个可行的方案是生成一个Latex进行编译。
1.目录和PDF文件
使用Excel制作规范的内容,PDF对应文件名,页数。-表示整个文件。
文件名对应PDF文件名字,要用英文和数字,避免使用中文。

2.替换
notepad++软件,拷贝Excel内容

搜索替换:

查找目标:(.+?)\s+(\S+)\s+(\S+)
替换为:\\includepdf[addtotoc={1,section,1,$1,$2},pages={$3}]{$2}

3.生成latex文件
%文件头
\documentclass[openany]{book}
\usepackage[UTF8]{ctex}
\usepackage[colorlinks]{hyperref} %链接需要
\usepackage{pdfpages} %导入pdf
\pdfminorversion=7
\usepackage[margin=0.5in,includehead,includefoot]{geometry} %设置边距
\geometry{bottom=0.2cm}
\begin{document}
\tableofcontents %生产目录
\thispagestyle{empty}% 当前页不显示页码
\setcounter{page}{0}
\includepdfset{pagecommand={\thispagestyle{plain}}}
%需要添加的内容
%includepdf[addtotoc={1,section,1,内容名字,标识},pages={页数}]{PDF文件}
\includepdf[addtotoc={1,section,1,基于内耳体素模型的膜迷路三维可视化,p3_1.pdf},pages={1-3}]{p3_1.pdf}
\includepdf[addtotoc={1,section,1,磁共振显微成像三维重建显示成人尸体膜半规管,p1_1.pdf},pages={-}]{p1_1.pdf}
%文件尾巴
\end{document}
4.编译环境安装
4.1 软件下载,自动解压缩到D盘根目录miktex。
https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/win32/miktex/setup/windows-x86/miktex-portable.exe
4.2 运行texworks
D:\miktex\texmfs\install\miktex\bin\miktex-texworks.exe
4.3 编译
TexWorks软件合成,默认pdfLaTeX方式

效果图:

网友评论