强制在 apa6e 中中断标题

强制在 apa6e 中中断标题

提前致歉:这在示例中并不最小,但我担心我对哪些包控制什么的缺乏了解可能会导致我遗漏对输出有影响的包。

我想在我想要的地方拆分文档的标题,而不是在 LaTeX 或软件包拆分的地方。我的标题目前是这样的:

Research Analysis Exam: A Critique of ``Evidence in Teacher Education: The Performance As-
sessment for California Teachers (PACT)''

我想像这样打破它:

Research Analysis Exam: A Critique of ``Evidence in Teacher Education: 
The Performance Assessment for California Teachers (PACT)''

当然是居中了。我该如何做,但又能让 LaTeX 以通常的方式对文章的其余部分进行连字符处理?

\documentclass[leavefloats]{apa6e}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\addbibresource{RAE}   %SUPPLY YOUR NAME OF BIBLATEX HERE (REMEMEBER NO SPACES IN THIS NAME)
\DeclareLanguageMapping{american}{american-apa}
\usepackage{enumerate}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{ragged2e}
\usepackage{textcomp}
%\usepackage[justification=justified,singlelinecheck=false,font=small,format=plain,labelfont=bf,up,textfont=normal,up]{caption}
\usepackage{etoolbox}
\usepackage{microtype}  %disable ligitures
\DisableLigatures{encoding = *, family = *}
\makeatletter
\renewcommand{\maketitle}{%
\thispagestyle{titlepage}%
\vspace*{1in}%
\Centering\@title\\\@author%
\vfill%
\ifdefined%
\apaSIXe@leavefloats{}
\fi
\RaggedRight%
\mspart{\@title}%
}
\makeatother
\usepackage[section]{placeins}
\usepackage{setspace}
\usepackage{appendix}
\usepackage{float}
\usepackage{subfig}
\usepackage{amsmath}
\setlength{\parindent}{1 em}
\usepackage{color}
\usepackage{ifthen}
\makeatletter
\renewenvironment{figure}[1][]{%
\ifthenelse{\equal{#1}{}}{%
\@float{figure}
}{%
\@float{figure}[#1]%
}%
\centering
}{%
\end@float
}
\renewenvironment{table}[1][]{%
\ifthenelse{\equal{#1}{}}{%
\@float{table}
}{%
\@float{table}[#1]%
}%
\centering
}{%
\end@float
}

\defbibheading{bibliography}{%
\section{\normalfont\refname}}

\title{Research Analysis Exam: A Critique of ``Evidence in Teacher Education: The Performance Assessment for California Teachers (PACT)''}
\shorttitle{Research Analysis Exam}
\author{Tyler Rinker}
\date{\today} % or \date{24Jan11} for example
\begin{document}
\maketitle
\section{Introduction}
\section{Précis}
\printbibliography
\end{document}

答案1

您可以通过选择适当的段落框宽度来强制中断,例如13cm

\title{%
  \texorpdfstring
    {\parbox{13cm}{\centering Research Analysis Exam: A Critique of ``Evidence in Teacher Education: 
      The Performance Assessment for California Teachers (PACT)'' \par\kern\baselineskip}}
    {Research Analysis Exam}}

此外,由于您当前的设置(使用hyperref将内容放入\title书签中,建议使用\texorpdfstring以将 TeX 内容与 ASCII 内容(用于书签)分开。

相关内容