Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正列表中多行的缩进问题,外文原文与译文位置交换,删去外文原文字样 #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions BUPTthesisbachelor.sty
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}

% List environment config
\usepackage[inline]{enumitem}
% Uncomment the two lines below if you want an list environment to share the same indent with a paragraph and no extra blank before, in or after the list.
%\setlist[itemize]{labelindent=\parindent,leftmargin=*,noitemsep,topsep=0pt}
%\setlist[enumerate]{labelindent=\parindent,leftmargin=*,noitemsep,topsep=0pt,label={\arabic*)}} % Modify the label format by yourself if you do not like 1), 2), ... here.
% The three lines below make a list environment to share the same indent with a paragraph and eliminate extra vertical space before, in or after the list. In other words, an item in a list will look like a normal paragraph, especially when it has multiline. (If so, why list? Why not a paragraph directly? I don't know -_-)
\setlist[itemize]{leftmargin=0pt,itemindent=*,labelindent=\parindent,noitemsep,topsep=0pt}
\setlist[enumerate]{leftmargin=0pt,itemindent=*,labelindent=\parindent,noitemsep,topsep=0pt,label={\arabic*)}} % Modify the label format by yourself if you do not like 1), 2), ... here.
\setlist[description]{leftmargin=0pt,itemindent=*,labelindent=\parindent,noitemsep,topsep=0pt}
Binary file modified main.pdf
Binary file not shown.
21 changes: 12 additions & 9 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,15 @@ \section{列表样式}
\begin{itemize}
\item \textbf{第一章为基础模块示例},是的,就是本章。
\item \textbf{第二章为不存在},是的,其实它不存在。
\item \textbf{多行的情况},如果有多行,我的意思是,真的有很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行。
\end{itemize}

以下是使用数字作为项目符号的列表样式。

\begin{enumerate}
\item \textbf{第一章为基础模块示例},是的,就是本章。
\item \textbf{第二章为不存在},是的,其实它不存在。
\item \textbf{多行的情况},如果有多行,我的意思是,真的有很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行。
\end{enumerate}

以下是句中列表样式。
Expand All @@ -283,6 +285,7 @@ \section{列表样式}
\begin{description}
\item \textbf{第一章为基础模块示例},是的,就是本章。
\item \textbf{第二章为不存在},是的,其实它不存在。
\item \textbf{多行的情况},如果有多行,我的意思是,真的有很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行很多行。
\end{description}

%%%%%%%%%%%%%%%%%%%%%%% Main Area ENDs Here %%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -378,6 +381,15 @@ \section*{附录2\quad{}数学符号}
\end{tabular}
\end{center}

% Translated Article
\blankmatter
\includepdf[pages=-, scale=0.95, pagecommand={}]{docs/translation.pdf}
%\centering
%% 原文第一页,PDF缩放比例为0.95,可以自行调整
%\includepdf[pages=1, scale=0.95, pagecommand=\heiti\sanhao{\textbf{外\quad{}文\quad{}原\quad{}文}}]{docs/translation.pdf}
%% 原文剩余部分
%\includepdf[pages=2-, scale=0.95, pagecommand={}]{docs/translation.pdf}

\newpage\backmatter

% Translation
Expand Down Expand Up @@ -450,15 +462,6 @@ \chapter*{第二章\quad{}我也不知道是什么}

\endgroup

% Translated Article
\blankmatter
%\thispagestyle{empty}
\centering
% 原文第一页,PDF缩放比例为0.95,可以自行调整
\includepdf[pages=1, scale=0.95, pagecommand=\heiti\sanhao{\textbf{外\quad{}文\quad{}原\quad{}文}}]{docs/translation.pdf}
% 原文剩余部分
\includepdf[pages=2-, scale=0.95, pagecommand={}]{docs/translation.pdf}

% 开题报告
\blankmatter
\includepdf[pages=-]{docs/openingReport.pdf}
Expand Down