标题中的换行导致行距错误

标题中的换行导致行距错误

在我的论文标题页上,我有一个相当长的标题(三行),但我想指定哪些词属于哪一行,因为默认的看起来不太好。假设我刚使用\textbf{\LARGE{I have this really long title And I want to break it At specific locations}}生成如下页面: 无需手动休息 我用大写字母突出显示了想要换行的地方。

但是如果我这样做: \textbf{\LARGE{I have this really long title\\ And I want to break it\\ At specific locations}},线条会正确断开,但会产生这个间隙,这是我不明白并且绝对不想要的。 手动刹车会产生难看的间隙

这一定与我的一些设置或加载的包有关?这是文档的序言和设置:

\documentclass[a4paper,12pt,twoside,openright, english]{book}

% INSTAL THE PACKAGES I WILL MOST LIKELY NEED
\usepackage{siunitx}
\usepackage{cleveref}
\usepackage{latexsym, syntonly, textcomp, amsmath, caption, float}
\usepackage{graphicx}%[pdftex]
\usepackage{subcaption}
%\usepackage{subfig}
\usepackage{wrapfig}
\usepackage{epstopdf}%[outdir=./Figures/]{epspdfconversion}
\usepackage{blindtext, setspace, rotating}
\usepackage{natbib, longtable}
\usepackage[toc,page]{appendix}
\usepackage{babel}
\usepackage{bm}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{threeparttable} %for footnote in tables
\usepackage[hyphens]{url} %break line within long url
\usepackage{lipsum}
\usepackage{array}
%in tabular environment: cell of fixed width with wrapping and align left (L), centred (C), aligned right (R)
%manual breaklines with \newline
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}

\usepackage{titlesec} %manage space between chapter title and first section
\titleformat{\chapter}{\Huge\bfseries}{\chaptername\ \thechapter}{0pt}{\vskip 18pt\raggedright}%
\titlespacing{\chapter}{0pt}{10pt}{<after-sep>}%

\usepackage{titlesec}
\usepackage{fancyhdr}
\usepackage{sidecap}
\usepackage[top=2.3cm, inner=3.2cm, bottom=2.4cm, outer=2.3cm]{geometry}
\usepackage[bookmarks]{hyperref}

\usepackage[strings]{underscore}

\usepackage{xcolor}
\hypersetup{
    colorlinks=false,%%%to have refences and links in blue
    urlcolor={blue!80!black}
}
%% APPENDICES
\usepackage{pdfpages}
\usepackage{listings}
\usepackage{lmodern}  % for bold teletype font
\lstset{
  basicstyle=\ttfamily,
  columns=fullflexible,
  %frame=single,
  breaklines=true,
  postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space},
}
% NUMBER FIGURES AND TABLES BASED ON CHAPTERS
\numberwithin{figure}{chapter}
\numberwithin{table}{chapter}

%%%%%%%%%%%%%%%%%%%%%%%

% LOWER CASE CHAPTER AND SECTION HEADINGS
\pagestyle{fancy}
    \renewcommand{\chaptermark}[1]{%
            \markboth{#1}{}}
    \renewcommand{\sectionmark}[1]{%
            \markright{\thesection\ #1}}
    \fancyhf{}  % delete current header and footer
    \fancyhead[LO,RE]{\bfseries\thepage}
    %\fancyhead[LO]{\bfseries\rightmark}
    %\fancyhead[RE]{\bfseries\leftmark}
    \fancyhead[LE]{\emph\textit{\nouppercase{\rightmark}}}
    \fancyhead[RO]{\emph\textit{\nouppercase{\leftmark}}}
    \fancyhead[RE]{}
    \fancyhead[LO]{}
    \fancyfoot[LE]{\thepage}
    \fancyfoot[RO]{\thepage}
    \renewcommand{\headrulewidth}{0.5pt}
    \renewcommand{\footrulewidth}{0.5pt}
    \addtolength{\headheight}{3pt} % space for the rule
    \fancypagestyle{plain}{%
   \fancyhead{} % get rid of headers on plain pages
   \renewcommand{\headrulewidth}{0.5pt} % and the line
        }
%\syntaxonly

\makeindex
    %attempt to make chapter headings start higher up
    \titleformat{\chapter}[hang]{\LARGE\bfseries}{\thechapter}{1cm}{}
    \titlespacing*{\chapter}{0pt}{0.7cm}{1.5cm}
    \titlespacing*{\section}{0pt}{0.7cm}{0.5cm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%% STARTING WITH THE ACTUAL DOCUMENT %%%%%%%%%%%%%%
\begin{document}
\frontmatter

% FRONT PAGE
\begin{titlepage}
\frontmatter
\doublespacing
    \begin{center}
    \vspace*{2\baselineskip}
        \textbf{\LARGE{I have this really long title\\ And I want to break it\\ At specific locations}}         
        \vspace*{2\baselineskip}
        By \vspace*{2\baselineskip}
        My Name \vspace*{2\baselineskip}
 \vspace*{1\baselineskip} 
\singlespacing
        A thesis\\ submitted to University\\
        in fulfilment of the requirements for the degree of
        \\Doctor of Philosophy.\\
        \vspace*{3\baselineskip}
        University\\year
  \end{center}
\end{titlepage}

\clearpage{\pagestyle{empty}\cleardoublepage} 

那么,如何才能正确获取换行符和行距呢?

答案1

请注意,这\baselineskip是字体大小的功能。

\begin{titlepage}
\begin{center}{\LARGE\baselineskip=2\baselineskip% if you really need double spacing
    \vspace*{\baselineskip}
        \textbf{I have this really long title\\ And I want to break it\\ At specific locations}
        \vspace{\baselineskip}\\
        By \vspace{\baselineskip}\\
        My Name \vspace{\baselineskip}%
}\\
        A thesis\\ submitted to University\\
        in fulfilment of the requirements for the degree of
        \\Doctor of Philosophy.\\
        \vspace*{3\baselineskip}
        University\\year
\end{center}
\end{titlepage}

相关内容