TeX 片段:

TeX 片段:

下面的文档org生成一个tex文件,编译后如下:

*** 理性與情感的對立

**** Yang, X. (2006). A Moral Psychology without the Concept of Reason? History of Philosophy Quarterly, 23(4), 295–318.
:PROPERTIES:
:UNNUMBERED: t
:END:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at vestibulum libero. Morbi mattis elit nunc, eu molestie neque dignissim ac. Praesent commodo neque volutpat ligula gravida, a placerat nunc fermentum. Curabitur pellentesque mollis nisi id aliquet. Integer pellentesque nulla a maximus dapibus. In non nisi turpis. Mauris condimentum hendrerit velit, vel ultrices purus commodo vel.

TeX 片段:

\subsubsection{理性與情感的對立}
\label{sec:orgd4added}

\begin{itemize}
\item Yang, X. (2006). A Moral Psychology without the Concept of Reason? History of Philosophy Quarterly, 23(4), 295–318.
\label{sec:org7a3494f}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at vestibulum libero. Morbi mattis elit nunc, eu molestie neque dignissim ac. Praesent commodo neque volutpat ligula gravida, a placerat nunc fermentum. Curabitur pellentesque mollis nisi id aliquet. Integer pellentesque nulla a maximus dapibus. In non nisi turpis. Mauris condimentum hendrerit velit, vel ultrices purus commodo vel.\\
\end{itemize}

输出:

标题和文本之间没有换行符

如何自动强制在书目项目和后面的文本之间添加新行,以便更好地将它们分开?

删除源文件unnumbered中的属性org将使外观更加美观。因此,提出问题的另一种方式是:如何使其itemize表现得像enumerate

TeX 片段:

\subsubsection{理性與情感的對立}
\label{sec:org864049f}

\begin{enumerate}
\item Yang, X. (2006). A Moral Psychology without the Concept of Reason? History of Philosophy Quarterly, 23(4), 295–318.
\label{sec:orgc05f912}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at vestibulum libero. Morbi mattis elit nunc, eu molestie neque dignissim ac. Praesent commodo neque volutpat ligula gravida, a placerat nunc fermentum. Curabitur pellentesque mollis nisi id aliquet. Integer pellentesque nulla a maximus dapibus. In non nisi turpis. Mauris condimentum hendrerit velit, vel ultrices purus commodo vel.\\
\end{enumerate}

输出:

更美观的结果


我将整个代码包含到上面的代码片段中,以便我们可以找出导致itemize行为不同的原因。

完整代码:

% Created 2020-10-08 Thu 17:06
% Intended LaTeX compiler: pdflatex

\documentclass[12pt,a4paper]{article}
%\documentclass[12pt,a4paper]{ctexart}

\usepackage{xeCJK}
\usepackage{zhnumber} % package for Chinese formatting of date time (use /zhtoday)
\usepackage[yyyymmdd]{datetime} % set date time to numeric

% For Generation of Citations and Bibliography
\usepackage[notes, isbn=false, backend=biber]{biblatex-chicago}
\bibliography{/Users/satibodhi/Creation/notes/bibliography/thesis}

% Set default indentation

\setlength\parindent{24pt}

% Set Paper Size, Page Layout (another variable is 'bindingoffset')
\usepackage[margin = 1.5in, paper = a4paper, inner = 2.5cm,
outer = 2.5cm, top = 3cm, bottom = 2.5cm]{geometry}

% Keep paragraph indentation while having a line break in between paragraphs.
\edef\restoreparindent{\parindent=\the\parindent\relax}
\usepackage{parskip}
\restoreparindent

% Indent first paragraph.
\usepackage{indentfirst}

\usepackage{titlesec}
\usepackage{titling}
\usepackage{fontspec} % packages for title and section-heading font setting.
\usepackage{newunicodechar} % custom fallback font for certain unicode characters.
\usepackage{tocloft} % adding the tocloft package for toc customization

% Set Header and Numbering Depth
\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}

% Set Font.
\setsansfont{Times New Roman}
\setmainfont{Calibri} % Set serifed font to Calibri. Originally set to 'Times New Roman', but it cannot display certain characters such as ①②③.
\setCJKmainfont{Songti TC}
\setCJKsansfont{Kaiti TC} % Set Chinese font. NOTE: Remember to append CJK before of the font class. CJK HAS to be there for the font to show.
\setCJKmonofont{PingFang TC}

% Set fallback fonts for ㊀ characters.

\newCJKfontfamily\fallbackfont{PingFang TC}
\newunicodechar{㊀}{{\fallbackfont ㊀}}
\newunicodechar{㊁}{{\fallbackfont ㊁}}
\newunicodechar{㊂}{{\fallbackfont ㊂}}
\newunicodechar{㊃}{{\fallbackfont ㊃}}
\newunicodechar{㊄}{{\fallbackfont ㊄}}
\newunicodechar{㊅}{{\fallbackfont ㊅}}
\newunicodechar{㊆}{{\fallbackfont ㊆}}
\newunicodechar{㊇}{{\fallbackfont ㊇}}
\newunicodechar{㊈}{{\fallbackfont ㊈}}
\newunicodechar{㊉}{{\fallbackfont ㊉}}

% WHEN \documentclass is set to {article},
% zhnum[style={Traditional,Financial}] doesn't work with the section counter,
% so we define our own counter and increase it every time in \thesection.

\newcounter{mysec}[section]
\renewcommand\thesection{%
    \addtocounter{mysec}{1}%
    \zhnum[style={Traditional,Financial}]{mysec}、} % 大標題序號:壹、貳、參、…
\renewcommand\thesubsection{\zhnum{subsection}、} % added a 、小標題序號:一、二、三、…
\renewcommand\thesubsubsection{(\zhnum{subsubsection})} % added parentheses
% (full-width, don't know if that's what you want) 副標題序號:(一)(二)(三)
\renewcommand\theparagraph{\arabic{paragraph}} % arabic numbering for paragraph
\renewcommand\thesubparagraph{} % no subparagraph numbering

% we have to adjust the spacing in the toc because the section label is longer than usual
\addtolength\cftsecnumwidth{1em}
\addtolength\cftsubsecindent{1em}
\addtolength\cftsubsubsecindent{1em}

% Set formats for each heading level. 'sffamily' will point to the sans-serif font. In this case, 「楷體」.

% here we need to make sure the normal section counter is accessed
\titleformat{\section}{\LARGE\bfseries\sffamily\filcenter}
    {\zhnum[style={Traditional,Financial}]{section}、}{.5em}{}

\titleformat*{\subsection}{\Large\bfseries\sffamily}
\titleformat*{\subsubsection}{\large\bfseries\sffamily} % Set formats for each heading level. 'sffamily' will point to the sans-serif font. In this case, 「楷體」.

% The `titlesec` package is used over here to make use of `\paragraph` and `\subparagraph` as headings. Up to five levels of headings can be implemented this way.

% no extra version for numberless is necessary since no numbers are used anyways
% also you get newlines from omitting the [display] in \titleformat already
\titleformat{\paragraph}[block]
    {\large\bfseries\sffamily}{\theparagraph}{0em}{}
\titleformat{\subparagraph}[block]
    {\large\bfseries\sffamily}{}{0em}{}
% we need the following so that they don't indent (second argument, 0em);
% you'll have to adjust the spacing though since this is not display style anymore:
\titlespacing*{\paragraph}{0em}{3.25ex plus 1ex minus .2ex}{.75ex plus .1ex}
\titlespacing*{\subparagraph}{0em}{3.25ex plus 1ex minus .2ex}{.75ex plus .1ex}

% Set title font.
\renewcommand{\maketitlehooka}{\sffamily}

% Set quotation font.
\usepackage{etoolbox}
\newCJKfontfamily\quotefont{Kaiti TC}
\AtBeginEnvironment{quote}{\quotefont\normalsize}

% Tweak default settings.
\renewcommand{\baselinestretch}{1.2} % Set line width.
\renewcommand{\contentsname}{\hfill\bfseries\Large 目\hspace{0.5cm} 錄\hfill} % Translate content page title to Chinese.
\renewcommand{\cftaftertoctitle}{\hfill} % Center contents title.
\renewcommand{\abstractname}{摘要} % Translate abstract title to Chinese.
\renewcommand{\tablename}{表} % Translate table to Chinese.
\renewcommand{\figurename}{圖} % Translate figure to Chinese.

% For text-boxes

\usepackage{mdframed}
\BeforeBeginEnvironment{minted}{\begin{mdframed}}
\AfterEndEnvironment{minted}{\end{mdframed}}

% For tables

\usepackage{float}
\restylefloat{table}

% [FIXME] ox-latex 的設計不良導致 hypersetup 必須在這裡插入
\usepackage{hyperref}
\hypersetup{
  colorlinks=true, %把紅框框移掉改用字體顏色不同來顯示連結
  linkcolor=[rgb]{0,0.37,0.53},
  citecolor=[rgb]{0,0.47,0.68},
  filecolor=[rgb]{0,0.37,0.53},
  urlcolor=[rgb]{0,0.37,0.53},
  pagebackref=true,
  linktoc=all,}

\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\author{me}
\date{\today}
\title{Annotated Bibliography}
\begin{document}

\maketitle
\tableofcontents \clearpage

\subsubsection{理性與情感的對立}
\label{sec:org3289944}

\begin{itemize}
\item Yang, X. (2006). A Moral Psychology without the Concept of Reason? History of Philosophy Quarterly, 23(4), 295–318.
\label{sec:org686092f}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at vestibulum libero. Morbi mattis elit nunc, eu molestie neque dignissim ac. Praesent commodo neque volutpat ligula gravida, a placerat nunc fermentum. Curabitur pellentesque mollis nisi id aliquet. Integer pellentesque nulla a maximus dapibus. In non nisi turpis. Mauris condimentum hendrerit velit, vel ultrices purus commodo vel.\\
\end{itemize}
\end{document}

相关内容