Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[a4paper]{article}
- \usepackage{pdfpages}
- \usepackage{fancyhdr}
- \usepackage[utf8]{inputenc}
- \usepackage{titling} % 用于标题设置
- \usepackage{CJKutf8} % Add this line to handle Unicode characters
- % Define page style
- \pagestyle{fancy}
- \fancyhf{} % Clear header and footer
- % 清除页眉和页脚
- \fancyhead{}
- % 清除页横线
- \renewcommand{\headrulewidth}{0pt}
- % 设置页脚
- \fancyfoot[R]{\vfill Page \thepage} % 将页脚推到页面底部
- \begin{document}
- % 使用自定义页面样式
- \begin{CJK*}{UTF8}{gbsn} % Begin CJK environment
- \title{\begin{CJK*}{UTF8}{gbsn}标题\end{CJK*}} % Use CJK environment for the title
- \end{CJK*} % End CJK environment
- \begin{CJK*}{UTF8}{gbsn} % Begin CJK environment
- \author{\begin{CJK*}{UTF8}{gbsn}作者\end{CJK*}} % Use CJK environment for the title
- \end{CJK*} % End CJK environment\date{\today}
- \maketitle
- \thispagestyle{empty} % 目录页无页脚
- \newpage % 生成目录之前先换页
- % \tableofcontents % 生成目录
- % 手动添加目录
- \begin{CJK*}{UTF8}{gbsn} % Begin CJK environment
- % \section*{\begin{CJK*}{UTF8}{gbsn}目录\end{CJK*}}
- \section*{目录}
- \begin{enumerate}
- \item 标题1\dotfill 3
- \item 标题2 \dotfill 17
- \item 标题3 \dotfill 28
- \item 标题4 \dotfill 31
- \end{enumerate}
- \end{CJK*} % End CJK environment\date{\today}
- \thispagestyle{empty} % 目录页无页脚
- \clearpage % 生成目录后换页
- % 合并PDF文件
- \includepdf[pages=1-14,pagecommand={\thispagestyle{fancy}}]{1.pdf}
- \includepdf[pages=1-11,pagecommand={\thispagestyle{fancy}}]{2.pdf}
- \includepdf[pages=1-6,pagecommand={\thispagestyle{fancy}}]{3.pdf}
- % 添加 4 个空白页
- \newpage
- \null
- \newpage
- \null
- \newpage
- \null
- \newpage
- \null
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement