% !TEX encoding = UTF-8
% !TEX program = lualatex
\documentclass{book}
\usepackage{luatexja-fontspec}
\setmainjfont{FandolSong}
\usepackage{bookmark}
\usepackage{indentfirst}
\usepackage{hyperref}
\usepackage{titlesec}
\renewcommand{\contentsname}{目\hspace{1.5em}录}
\renewcommand{\chaptername}{第~\thechapter~章}
\renewcommand{\bibname}{参考文献}
\renewcommand{\figurename}{图}
\renewcommand{\tablename}{表}
\titleformat{\chapter}{\normalfont\huge\bfseries\filcenter}{\chaptertitlename }{20pt}{\huge}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{} % clear all fields
\hypersetup{%
pdfencoding=auto, %PDF编码设置,解决属性和书签乱码
%pdfpagemode=FullScreen %默认全屏显示
colorlinks=true,
linkcolor=black
}
\begin{document}
\author{张大鹏}
\title{NLP}
\date{}
\frontmatter
\maketitle
\tableofcontents
\mainmatter
\include{./TeX_files/chapter01}
\include{./TeX_files/other}
\include{./TeX_files/data_material}
\backmatter
% bibliography, glossary and index would go here.
\end{document}
lualatex:The basic structure of the book
最新推荐文章于 2023-11-15 10:42:23 发布