我在缩进方面遇到了问题。
以下是我的代码/文本:
\documentclass[12pt]{report}
\usepackage{sectsty}
\begin{document}
\newpage
\allsectionsfont{\centering}
\setcounter{chapter}{0}
\begin{center}
\chapter{Introduction}
\end{center}
\setlength{\parindent}{1.5em} \Indent A major feature of moral
psychology has been its focus on assessing moral judgments, with moral
judgments defined as an ``evaluation of the actions and character of
others'' (Avramova `I\&' Inbar, 2013). Taking influence from
philosophical questions, a typical design for moral judgment is to
present participants with a moral dilemma that involves choosing to
harm either one or many individuals. For example, a prevalent dilemma
used to study moral judgment is the trolley problem (Foot, 1967;
Thomson, 1986), in which a train conductor loses control of a train
that is hurtling towards five individuals repairing the track. A lone
individual is repairing the adjacent set of tracks. The conductor can
steer the trolley onto the adjacent tracks, but doing so would kill
the lone worker (Foot, 1967). Foot (1967) developed the problem the
query the difference between harm perpetrated with the direct
intention to inflict harm, compared to harm perpetrated as an
unintended effect of an act. Thomson (1975; 1985) followed with two
popular variants of the trolley problem. One variant is the \emph{Fat
Man} in which pushing a fat individual over a footbridge is the only
way to stop the trolley (Thomson, 1975). The second variant is the
\emph{Bystander at the switch} in which a passerby comes upon the
scene and can divert the trolley towards the lone worker (Thomson,
1985). Findings suggest the act of switching the rails to adjacent
tracks in which one individual is killed to be more permissible than
pushing a man off a footbridge to stop the train (Hauser, Cushman,
Young, Jin, `I\&' Mikhail, 2007).
\end{document}
我想在段落开头添加缩进,如下所示:
A major feature of moral psychology has been its focus on assessing moral
judgments, with moral judgments defined as.....
哦,我还读到过 LaTeX 会自动缩进第一行,而不需要代码\setlength....\indent...
。我试过了,但没用。
答案1
我添加indentfirst
并注释掉了示例中的一些错误。
\documentclass[12pt]{report}
\usepackage{sectsty}
\usepackage{indentfirst}
\begin{document}
% does nothing \newpage
\allsectionsfont{\centering}
% does nothing \setcounter{chapter}{0}
% no!\begin{center}
\chapter{Introduction}
%no"\end{center}
% possible, but standard is already indented \setlength{\parindent}{1.5em}
% undefined command \Indent
A major feature of moral
psychology has been its focus on assessing moral judgments, with moral
judgments defined as an ``evaluation of the actions and character of
others'' (Avramova
%`I\&'
\&
Inbar, 2013). Taking influence from
philosophical questions, a typical design for moral judgment is to
present participants with a moral dilemma that involves choosing to
harm either one or many individuals. For example, a prevalent dilemma
used to study moral judgment is the trolley problem (Foot, 1967;
Thomson, 1986), in which a train conductor loses control of a train
that is hurtling towards five individuals repairing the track. A lone
individual is repairing the adjacent set of tracks. The conductor can
steer the trolley onto the adjacent tracks, but doing so would kill
the lone worker (Foot, 1967). Foot (1967) developed the problem the
query the difference between harm perpetrated with the direct
intention to inflict harm, compared to harm perpetrated as an
unintended effect of an act. Thomson (1975; 1985) followed with two
popular variants of the trolley problem. One variant is the \emph{Fat
Man} in which pushing a fat individual over a footbridge is the only
way to stop the trolley (Thomson, 1975). The second variant is the
\emph{Bystander at the switch} in which a passerby comes upon the
scene and can divert the trolley towards the lone worker (Thomson,
1985). Findings suggest the act of switching the rails to adjacent
tracks in which one individual is killed to be more permissible than
pushing a man off a footbridge to stop the train (Hauser, Cushman,
Young, Jin,
%`I\&'
\&
Mikhail, 2007).
\end{document}