不知道如何缩进软件包

不知道如何缩进软件包

我正在尝试撰写个人陈述,并使用了一些新软件包对其进行格式化。我不明白为什么它不允许我缩进段落。我试过\par\hspace等等,但都没有成功。下面我发布了序言和陈述的开头。

    \documentclass[a4paper,10pt]{article}
    \usepackage{marvosym}
    \usepackage{fontspec}                   
    \usepackage{xunicode,xltxtra,url,parskip} 
    \RequirePackage{color,graphicx}
    \usepackage[usenames,dvipsnames]{xcolor}
    \usepackage[big]{layaureo} 
    \usepackage{titlesec}   
    \usepackage{setspace}
    \usepackage{hyperref}
    \definecolor{linkcolour}{rgb}{0,0.2,0.6}
    \hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}
    \usepackage{array}
    \usepackage{indentfirst}
    \setlength\parindent{24pt}

    \defaultfontfeatures{Mapping=tex-text}
    \setmainfont[
    SmallCapsFont = Fontin-SmallCaps.otf,
    BoldFont = Fontin-Bold.otf,
    ItalicFont = Fontin-Italic.otf
    ]
    {Fontin.otf}


    \titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule]
    \titlespacing{\section}{0pt}{3pt}{3pt}
    \usepackage{geometry}
    \geometry{top=0.75in,bottom=0.75in,left=0.75in,right=0.75in} 

    \begin{document}
    %Beginning of the statement
    \begin{doublespace}
    \normalsize
    This is the first sentence of the personal statement. 
    \end{doublespace}
    \end{document}

答案1

好吧,稍微改变一下调用包的顺序,并添加一些文本和部分,我就看到了缩进......

请参阅以下 MWE(请参阅我评论的您使用的字体我尚未安装):

\documentclass[a4paper,10pt]{article}

\usepackage{marvosym}
\usepackage{fontspec}                   
\usepackage{xunicode,xltxtra,url,parskip} 
\usepackage{color,graphicx}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[big]{layaureo} % <==========================================??
\usepackage{titlesec}   
\usepackage{setspace}

\usepackage{blindtext}


\usepackage{array}
\usepackage{indentfirst}

\usepackage{geometry}
\geometry{top=0.75in,bottom=0.75in,left=0.75in,right=0.75in} 

\usepackage{hyperref}

\definecolor{linkcolour}{rgb}{0,0.2,0.6}
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}

\setlength\parindent{24pt}

\defaultfontfeatures{Mapping=tex-text}
    %\setmainfont[
    %SmallCapsFont = Fontin-SmallCaps.otf,
    %BoldFont = Fontin-Bold.otf,
    %ItalicFont = Fontin-Italic.otf
    %]
    %{Fontin.otf}


    \titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule]
    \titlespacing{\section}{0pt}{3pt}{3pt}


\begin{document}
    %Beginning of the statement
\section{Test}
\blindtext 

\begin{doublespace}
\normalsize
This is the first sentence of the personal statement. 
\end{doublespace}

\blindtext
\end{document}

结果如下:

在此处输入图片描述

请注意,hyperref在您的情况下,应该最后调用该包......

相关内容