![将小节(第 3 级)缩进设置为距左边距 0.5 英寸](https://linux22.com/image/379375/%E5%B0%86%E5%B0%8F%E8%8A%82%EF%BC%88%E7%AC%AC%203%20%E7%BA%A7%EF%BC%89%E7%BC%A9%E8%BF%9B%E8%AE%BE%E7%BD%AE%E4%B8%BA%E8%B7%9D%E5%B7%A6%E8%BE%B9%E8%B7%9D%200.5%20%E8%8B%B1%E5%AF%B8.png)
我正在使用以下课程来输入我的论文: https://interval.louisiana.edu/thesis-class/ULL-thesis-class-explanation.html 我应该对课程进行哪些编辑来解决缩进问题?此外,我想在摘要和简历页面的左边距处添加 0.5 英寸的缩进。 \indent、\hspace{0.5in} 和 \hspace*{0.5} 不起作用。 \qquad 和 \quad 起作用了,但我无法将缩进设置为 0.5 英寸。我该如何在课堂上解决这个问题?
\documentclass[12pt, letterpaper]{ullthesis2017}
\addtolength{\footskip}{0.25in}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[utf8]{inputenc}
\usepackage{float}
\usepackage{comment}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{array}
\usepackage{tabu}
\usepackage{graphicx}
\graphicspath{ {/} }
\usepackage{matlab-prettifier}
\usepackage{caption}
\usepackage{subcaption}
%\usepackage[colorinlistoftodos]{todonotes}
%\numberwithin{equation}{section}
%\usepackage{cleveref}
\usepackage{amsmath,amssymb,amsfonts}
%\usepackage{breqn}
%\usepackage[intoc,refpage]{nomencl}
%\makenomenclature
\usepackage{hyperref}
%\renewcommand{\pagedeclaration}[1]{\dotfill\hyperpage{#1}}
%\newcommand{\nm}[2]{\nomenclature{#1}{#2}}
%\renewcommand{\contentsname}{Table of Contents}
\usepackage{lipsum}
%\usepackage{epsfig} %% for loading postscript figures
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{epstopdf}
%\DeclareGraphicsExtensions{.png,.pdf}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyvrb}
%\usepackage[usenames]{color}
\usepackage{layout}
\usepackage{mydef}
\usepackage{url}
\usepackage{titlesec}
%\newcommand{\sectionbreak}{\clearpage}
\usepackage{indentfirst}
\usepackage{ragged2e}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[T1]{fontenc}
\usepackage{bigfoot} % to allow verbatim in footnote
%\usepackage[numbered,framed]{matlab-prettifier}
\usepackage{filecontents}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{caption}
\captionsetup[table]{justification=raggedright,singlelinecheck=off}
\captionsetup[figure]{justification=raggedright,singlelinecheck=off}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage[style=authoryear,sorting=ynt]{biblatex}
\usepackage[bibstyle=authoryear,firstinits=true,maxbibnames=99]{biblatex}
\DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}}
\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}
\AtBeginBibliography{\vspace*{20pt}} %add space between bibliography title and first entry
\defbibenvironment{bibliography}
{\list
{\printtext[labelnumberwidth]{%
\printfield{prefixnumber}%
\printfield{labelnumber}}}
{\setlength{\labelwidth}{\labelnumberwidth}%
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{\biblabelsep}%
\addtolength{\leftmargin}{\labelsep}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
\renewcommand*{\makelabel}[1]{\hss##1}}
{\endlist}
{\item}
\DeclareNameAlias{sortname}{last-first}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A. and Buthor, B.},
year = {2001},
title = {Alpha},
}
\end{filecontents}
\setlength\bibitemsep{2\itemsep}
\addbibresource{mendeley.bib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage[all]{nowidow}
%%%%%%%%%%%%%% Nomenclature %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[intoc, english]{nomencl}
\makenomenclature
\usepackage{etoolbox}
%%%%landscape table %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage{lscape}
\usepackage{pdflscape}
\usepackage{afterpage}
\usepackage{longtable} % for 'longtable' environment
\usepackage{everypage}
%\newcommand{\Lpagenumber}{\ifdim\textwidth=\linewidth\else\bgroup
% \dimendef\margin=0 %use \margin instead of \dimen0
% \ifodd\value{page}\margin=\oddsidemargin
% \else\margin=\evensidemargin
% \fi
% \raisebox{\dimexpr -\topmargin-\headheight-\headsep-0.5\linewidth}[0pt][0pt]{%
% \rlap{\hspace{\dimexpr \margin+\textheight+\footskip}%
% \llap{\rotatebox{90}{\thepage}}}}%
%\egroup\fi}
%\AddEverypageHook{\Lpagenumber}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\titleformat{\chapter}[block]
{\singlespacing\bfseries\filcenter}{\chaptertitlename\ \thechapter: \ }{0pt}{}
\titlespacing*{\chapter}
{0pt}{-0.5\baselineskip}{0pt}
\titleformat{\section}
{\bfseries}{\thesection\ }{1em}{}
\titlespacing*{\section}{0pt}{*0}{0pt}
\titleformat{\subsection}[runin]
{\bfseries}{\thesubsection}{1em}{}[.]
\titlespacing{\subsection}
{\parindent}{*0}{0pt}% 0pt before edit
\titleformat{\subsubsection}[runin]
{\itshape\bfseries}{\thesubsubsection}{1em}{}[.]
\titlespacing{\subsubsection}
{\parindent}{*0}{0pt}% 0pt before edit
\usepackage{tocloft} \setlength{\cftsecindent}{0.5in} \setlength{\cftsubsecindent}{1in}
\setcounter{secnumdepth}{5}
\raggedright % Changed from raggedright (my edit)
%\parindent=0.5in
%\setlength{\parindent}{0.5in} % for making paragraph indent 0.5 inches edited by me
\setlength{\textheight}{8.75in}
\setlength{\textwidth}{6.25in}
\setlength{\topmargin}{-0.6in}
\setlength{\oddsidemargin}{0.25in}
\begin{document}
\title{A Comprehensive }
\author{Ab}
\convocationdate{Summer}
\gradyear{2018}
\degree{Masters in Science}
\major{Engineering}
\supervisor{Ab}
\ranksupervisor{Associate Professor }
\deanofgraduateschool{M}
\firstcommitteemember{F}
\rankfirstcommitteemember{Professor }
\secondcommitteemember{Me}
\ranksecondcommitteemember{Assistant }
\filefordedication{B-dedicatory}
\fileforacknowledgement{B-acknowledgement}
\prefatorypages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{C-chapter1}
\include{C-chapter2}
\include{C-chapter3}
\include{C-chapter4}
\include{C-chapter5}
\include{C-chapter6}
%\bibliographystyle{apalike}
%\bibliography{mendeley}
\printbibliography[heading=bibintoc,title={Bibliography}]
\appendix
\closingpages
\include{F-abstract}
\include{F-biosketch}
\end{document}
答案1
您正在使用\titlespacing
包提供的titlesec
。此命令的第二个参数设置第一个参数中标题级别的缩进runin
。因此,您必须\titlespacing{\subsection}{\parindent}{*0}{0pt}
用
\titlespacing{\subsection}{.5in}{*0}{0pt}