Advertisement
golitter

Untitled

Jun 10th, 2024
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.74 KB | None | 0 0
  1. \documentclass[a4paper]{article}
  2. \usepackage{pdfpages}
  3. \usepackage{fancyhdr}
  4. \usepackage[utf8]{inputenc}
  5. \usepackage{titling} % 用于标题设置
  6. \usepackage{CJKutf8} % Add this line to handle Unicode characters
  7.  
  8. % Define page style
  9. \pagestyle{fancy}
  10. \fancyhf{} % Clear header and footer
  11.  
  12.  
  13. % 清除页眉和页脚
  14. \fancyhead{}
  15. % 清除页横线
  16. \renewcommand{\headrulewidth}{0pt}
  17.  
  18. % 设置页脚
  19. \fancyfoot[R]{\vfill Page \thepage} % 将页脚推到页面底部
  20.  
  21. \begin{document}
  22. % 使用自定义页面样式
  23. \begin{CJK*}{UTF8}{gbsn} % Begin CJK environment
  24. \title{\begin{CJK*}{UTF8}{gbsn}标题\end{CJK*}} % Use CJK environment for the title
  25. \end{CJK*} % End CJK environment
  26. \begin{CJK*}{UTF8}{gbsn} % Begin CJK environment
  27. \author{\begin{CJK*}{UTF8}{gbsn}作者\end{CJK*}} % Use CJK environment for the title
  28. \end{CJK*} % End CJK environment\date{\today}
  29. \maketitle
  30. \thispagestyle{empty} % 目录页无页脚
  31.  
  32. \newpage % 生成目录之前先换页
  33. % \tableofcontents % 生成目录
  34. % 手动添加目录
  35. \begin{CJK*}{UTF8}{gbsn} % Begin CJK environment
  36. % \section*{\begin{CJK*}{UTF8}{gbsn}目录\end{CJK*}}
  37. \section*{目录}
  38. \begin{enumerate}
  39.    \item 标题1\dotfill 3
  40.    \item 标题2 \dotfill 17
  41.    \item 标题3 \dotfill 28
  42.    \item 标题4 \dotfill 31
  43. \end{enumerate}
  44. \end{CJK*} % End CJK environment\date{\today}
  45.  
  46. \thispagestyle{empty} % 目录页无页脚
  47. \clearpage % 生成目录后换页
  48.  
  49. % 合并PDF文件
  50. \includepdf[pages=1-14,pagecommand={\thispagestyle{fancy}}]{1.pdf}
  51. \includepdf[pages=1-11,pagecommand={\thispagestyle{fancy}}]{2.pdf}
  52. \includepdf[pages=1-6,pagecommand={\thispagestyle{fancy}}]{3.pdf}
  53.  
  54. % 添加 4 个空白页
  55. \newpage
  56. \null
  57. \newpage
  58. \null
  59. \newpage
  60. \null
  61. \newpage
  62. \null
  63. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement