有没有办法缩进整个文档中每个段落的每一行?

有没有办法缩进整个文档中每个段落的每一行?

有没有办法缩进整个文档中每个段落的每一行?我正在为我们的会议记录打字,主席希望段落看起来像这样。

在此处输入图片描述

我创建了一个模板文件,如果可能的话,我希望能够针对整个文档而不是每个段落进行更改。如果有帮助的话,我附上了下面的 tex 代码。

\documentclass[10pt,twoside]{article}

\usepackage[margin=1in]{geometry}
\usepackage{wallpaper}
\usepackage{etoolbox}

\usepackage{wallpaper}
\graphicspath{{../}}
\ThisULCornerWallPaper{1}{RVCC_letterhead.pdf}

\usepackage[compact]{titlesec}
\titlespacing{\section}{0pt}{*2}{*0}
\titlespacing{\subsection}{0pt}{*0}{*0}
\titlespacing{\subsubsection}{0pt}{*0}{*0}

\usepackage{enumitem}
\setlist{nolistsep}

\begin{document}

\null
\vspace{10mm}
\begin{center}
{\huge \textbf{Council of the Staff Minutes}}
\end{center}

\vspace{5mm}

\begin{description} 
    \item[Chair]{Roberta Harmon}
    \item[Secretary]{Justin Farischon}
    \item[Participants]{17}
    \item[Guest]{N/A}
    \item[Date of Meeting]{February 27, 2018 10:00-11:00}
    \item[Location]{Robeson Room - Library}
\end{description}

\section{Call to Order and Welcome}
    Meeting was called to order at 10:09.

\section{Approval or Correction of January 23, 2018 Minutes}
    Motion was made to approve the minutes as distributed. Motion was seconded.

\section{Chair's Report}
    \subsection{Substantial Completion of the Forum Constitution \& Bylaws}
        The Forum Constitution and Bylaws are in the final draft and will be going for electronic vote soon.  The Ad-Hoc Committee worked for several months on the new Constitution and Bylaws to make them simplified and easier to follow.  

    \subsection{Revised Campus Display Policy}
        The Diversity Council is proposing a policy on how they will hand complaints for campus displays.

\begin{center}
``\textbf{Challenge process:}  Any member of the RVCC community who objects to the content of a campus display must express their concerns in writing and submit these to the Chair of Diversity Council for review by the CDC.  A response to such a complaint will be provided by the Chair of the Diversity Council within 48 hours.  However, no action related to the exhibit may be taken until the CDC has made a decision about the complaint and delivered their response. This policy applies to all members of the RVCC community, including students, employees, and visitors.''
\end{center}
    \subsection{Responding to items of concern brought to the Forum Steering Committee.}
        Forum steering committee is addressing more general concerns, now that the academic committees have moved to a separate Academic Steering Committee.
\begin{itemize}
            \item{Smoking policy - (Will need representation on an Ad-Hoc Committee)}

                The Forum was charged by the President to review and revamp the College no-smoking policy. The Forum Steering Committee created an Ad-Hoc Committee to handle this issue. Rose Arroyo volunteered to represent the Council of Staff on the Ad-Hoc Committee.

                We discussed problems with the old policy.  Including how no one was keeping track of the fines and that the students are not required to have College ID cards.  

                It was mentioned that Security would have to be the ones to enforce the no smoking policy.              
            \item{Wheelchair Access}

                Last Forum it was brought to attention that several areas of the college are not truely accessable to handicapped members of the college.  We discussed that the power doors in many areas of the college are not working.  And that they seem to be constantly broken.
            \item{Parking}
            \item{Campus Safety (in light of the Florida shooting)}
\end{itemize}       

\section{Committee Report - Community Life (Parking - Cindy Coulbourne)}
    The Community Life Committee has been tasked with looking into and proposing recommendations to the President.  Some of the proposed ideas include hang tags or stickers for vehicles, registering vehicles, a shuttle for cars parked in Lot 5 and having transient parking spaces specifically for adjunct faculty that are only here for an hour or two.  It was mentioned that students are parking in staff parking spots, and that there is plenty of parking in Lot 5.

\section{Nominations for the Forum (Vice-Chair (2yr term) \& Secretary (1yr term))}
    It was mentioned that the Forum Steering Committee Vice-Chair \& Secretary positions are open for nominations this year.

\section{Nominations for CoS (Chair, Vice-Chair \& Secretary)}
    It was mentioned that the Council of Staff positions of Chair, Vice-Chair \& Secretary will be open for nomination this year.  Roberta Harmon was renominated for the Position of Chair.  No one was nominated for the position of Vice-Chair.  Justin Farischon was renominated for the Position of Secretary.

\section{Old Business}
    Ronnie Weyl is looking for interest from Council of Staff for $50^{th}$ Anniversary Committees.  Particularly, the 12 themes subgroup and the events of campus subgroup.  Roberta will send an email with the list of tasks for each group.

\section{New Business}
    Friday March $2^{nd}$, in Conference Center Room B \& C, There will be a Forum meeting where the President will go over the college budget.

    Friday April $13^{th}$, in E109, the President will explain the plan for the student dormitory.

\section{Good of the Order}
    N/A

\section{Motion to Adjourn}
    Motion was made to adjourn at 11:04.

\end{document}

答案1

您可以增加边距并将标题移到边距中,而不必缩进每一行。

标题的缩进由的第二个参数控制\titlespacing,因此您必须设置例如

\titlespacing*{\section}{-2em}{*2}{*0} // Move the section title 2em to the left.

为了使段落标题的开头与文本对齐,以便只有数字在边距中,您可以改用\titleformat。使用\llap您可以让数字位于正常位置的左侧而不使用任何空格,这样标题文本就在正确的位置:

\documentclass[10pt,twoside]{article}

\usepackage[margin=1in]{geometry}
\usepackage{wallpaper}
\usepackage{etoolbox}

\usepackage{wallpaper}

\usepackage[compact]{titlesec}
\titleformat{\section}
  {\normalfont\Large\bfseries}{\llap{\thesection\hspace{1em}}}{0em}{}
\titleformat{\subsection}
  {\normalfont\large\bfseries}{\llap{\thesubsection\hspace{1em}}}{0em}{}
\titleformat{\subsubsection}
  {\normalfont\normalsize\bfseries}{\llap{\thesubsubsection\hspace{1em}}}{0em}{}
\titlespacing*{\section}{0pt}{*2}{*0}
\titlespacing*{\subsection}{0pt}{*0}{*0}
\titlespacing*{\subsubsection}{0pt}{*0}{*0}

\usepackage{enumitem}
\setlist{nolistsep}

\begin{document}

\null
\vspace{10mm}
\begin{center}
{\huge \textbf{Council of the Staff Minutes}}
\end{center}

\vspace{5mm}

\begin{description} 
    \item[Chair]{Roberta Harmon}
    \item[Secretary]{Justin Farischon}
    \item[Participants]{17}
    \item[Guest]{N/A}
    \item[Date of Meeting]{February 27, 2018 10:00-11:00}
    \item[Location]{Robeson Room - Library}
\end{description}

\section{Call to Order and Welcome}
    Meeting was called to order at 10:09.

\section{Approval or Correction of January 23, 2018 Minutes}
    Motion was made to approve the minutes as distributed. Motion was seconded.

\section{Chair's Report}
    \subsection{Substantial Completion of the Forum Constitution \& Bylaws}
        The Forum Constitution and Bylaws are in the final draft and will be going for electronic vote soon.  The Ad-Hoc Committee worked for several months on the new Constitution and Bylaws to make them simplified and easier to follow.  

    \subsection{Revised Campus Display Policy}
        The Diversity Council is proposing a policy on how they will hand complaints for campus displays.

\begin{center}
``\textbf{Challenge process:}  Any member of the RVCC community who objects to the content of a campus display must express their concerns in writing and submit these to the Chair of Diversity Council for review by the CDC.  A response to such a complaint will be provided by the Chair of the Diversity Council within 48 hours.  However, no action related to the exhibit may be taken until the CDC has made a decision about the complaint and delivered their response. This policy applies to all members of the RVCC community, including students, employees, and visitors.''
\end{center}
    \subsection{Responding to items of concern brought to the Forum Steering Committee.}
        Forum steering committee is addressing more general concerns, now that the academic committees have moved to a separate Academic Steering Committee.
\begin{itemize}
            \item{Smoking policy - (Will need representation on an Ad-Hoc Committee)}

                The Forum was charged by the President to review and revamp the College no-smoking policy. The Forum Steering Committee created an Ad-Hoc Committee to handle this issue. Rose Arroyo volunteered to represent the Council of Staff on the Ad-Hoc Committee.

                We discussed problems with the old policy.  Including how no one was keeping track of the fines and that the students are not required to have College ID cards.  

                It was mentioned that Security would have to be the ones to enforce the no smoking policy.              
            \item{Wheelchair Access}

                Last Forum it was brought to attention that several areas of the college are not truely accessable to handicapped members of the college.  We discussed that the power doors in many areas of the college are not working.  And that they seem to be constantly broken.
            \item{Parking}
            \item{Campus Safety (in light of the Florida shooting)}
\end{itemize}       

\section{Committee Report - Community Life (Parking - Cindy Coulbourne)}
    The Community Life Committee has been tasked with looking into and proposing recommendations to the President.  Some of the proposed ideas include hang tags or stickers for vehicles, registering vehicles, a shuttle for cars parked in Lot 5 and having transient parking spaces specifically for adjunct faculty that are only here for an hour or two.  It was mentioned that students are parking in staff parking spots, and that there is plenty of parking in Lot 5.

\section{Nominations for the Forum (Vice-Chair (2yr term) \& Secretary (1yr term))}
    It was mentioned that the Forum Steering Committee Vice-Chair \& Secretary positions are open for nominations this year.

\section{Nominations for CoS (Chair, Vice-Chair \& Secretary)}
    It was mentioned that the Council of Staff positions of Chair, Vice-Chair \& Secretary will be open for nomination this year.  Roberta Harmon was renominated for the Position of Chair.  No one was nominated for the position of Vice-Chair.  Justin Farischon was renominated for the Position of Secretary.

\section{Old Business}
    Ronnie Weyl is looking for interest from Council of Staff for $50^{th}$ Anniversary Committees.  Particularly, the 12 themes subgroup and the events of campus subgroup.  Roberta will send an email with the list of tasks for each group.

\section{New Business}
    Friday March $2^{nd}$, in Conference Center Room B \& C, There will be a Forum meeting where the President will go over the college budget.

    Friday April $13^{th}$, in E109, the President will explain the plan for the student dormitory.

\section{Good of the Order}
    N/A

\section{Motion to Adjourn}
    Motion was made to adjourn at 11:04.

\end{document}

在此处输入图片描述

答案2

如果不需要在层级上写任何文字\section(即没有缩进),马塞尔的建议可能是最简单的解决方案。如果您这样做,这里有一个建议。(我使用 KOMA-Script(scrartcl),它可以让您非常轻松地格式化子部分标题。)

\documentclass{scrartcl}

\usepackage{etoolbox}

\newlength\subsectionindentlength
\setlength\subsectionindentlength{5ex}

% 1. fixed number width
\makeatletter
    \RedeclareSectionCommand[indent=\dimexpr -\subsectionindentlength\relax]{subsection}
    \renewcommand\sectionlinesformat[4]{%
        \ifstr{#1}{subsection}{%
            \hskip #2\rlap{#3}%
            \@hangfrom{\hskip\subsectionindentlength}{#4}%
        }{%
            \@hangfrom{\hskip #2#3}{#4}%
        }%
    }
\makeatother

% 2. fixed number indentation and distance to heading
%\makeatletter
%   \RedeclareSectionCommand[indent=\dimexpr -\subsectionindentlength\relax]{subsection}
%\makeatother

% 3. fixed heading indentation and distance to number
%\makeatletter
%   \renewcommand\sectionlinesformat[4]{%
%       \ifstr{#1}{subsection}{%
%           \@hangfrom{\llap{#3}}{#4}%
%       }{%
%           \@hangfrom{\hskip #2#3}{#4}%
%       }%
%   }
%\makeatother

\makeatletter
    % create commands to indent and unindent (but not multiple times)
    \def\subsection@@indent{%
        \par\begingroup
        \advance\leftmargin\subsectionindentlength
        \advance\linewidth-\subsectionindentlength
        \advance\@totalleftmargin\subsectionindentlength
        \parshape\@ne\@totalleftmargin\linewidth
        \@setpar{{\@@par}}%
    }
    \def\subsection@@unindent{\par\endgroup}
    \let\subsection@indent\subsection@@indent
    \let\subsection@unindent\relax
    \def\subsectionindent{%
        \subsection@indent%
        \let\subsection@indent\relax%
        \let\subsection@unindent\subsection@@unindent%
    }
    \def\subsectionunindent{%
        \subsection@unindent%
        \let\subsection@indent\subsection@@indent%
        \let\subsection@unindent\relax%
    }
    % modify \section and \subsection as to take care of indentation
    % \par is necessary to make sure the indentation does not take place in the paragraph before the hea
    \preto\section{\par\subsectionunindent}
    \preto\subsection{\subsectionindent}
\makeatother

\begin{document}

\section{Indentation}
Text here is not indented.

\subsection{First}
Text here is.

\setcounter{subsection}{12}
\subsection{Thirteenth, really really long subsection title, that does not fit into a single line and has to be broken}
Everything should work fine.

\end{document}

顶部的树块(两个有注释)提出了三种替代方案:

  1. 我们可以固定小节编号的宽度,这样标题的缩进量与文本的缩进量相同(如您的示例所示)。如果您有很多小节,则可能需要相当大的缩进量(如您的示例所示)。\subsectionindentlength如果您喜欢这种可能性,只需增加值即可。 第一种可能性

  2. 我们可以固定小节编号与标题之间的距离(通常都是这样做的)。根据缩进,标题(尤其是当标题很长时)不会以与文本相同的缩进开始(或继续)。另一方面,您不必担心编号的长度。 第二种可能性

  3. 我们可以同时固定标题的缩进和数字与标题的距离(与 Marcel 的回答非常相似)。在这里,小节编号不会全部从相同的缩进开始(甚至可能从边距开始)。 第三种可能性

执行实际缩进的命令基本上取自这个问题

相关内容