章节和引文中的空格问题

章节和引文中的空格问题

我遇到了 ezthesis 问题。

1-这是我的第四章,只有在这一章中,我的页眉(示例,Nº4)才从页面中间附近开始,而其他页眉则从顶部附近开始。

2-我使用以下代码(取自这里)来定义我的引文,在我的例子中,正如图片所示,作者与引文是分开的,而在原始示例出现在下一行。代码如下:

\documentclass[oneside,numbers,a4paper,spanish]{ezthesis}
\usepackage[Bjornstrup]{fncychap}
\author{}
\title{}
\degree{}
\supervisor{}
\institution{}
\faculty{}
\department{}
\hyperlinking
\begin{document}
\include{Chapters/titlepage}
\include{Chapters/Ch1}
\include{Chapters/Ch2}
\include{Chapters/Ch3}
\include{Chapters/Ch4}
\include{Chapters/Ch5}

这是我的第四章:

\makeatletter
%%\renewcommand{\@chapapp}{}% Not necessary...
\newenvironment{chapquote}[2][2em]
  {\setlength{\@tempdima}{#1}%
   \def\chapquote@author{#2}%
   \parshape 1 \@tempdima \dimexpr\textwidth-2\@tempdima\relax%
   \itshape}
  {\par\normalfont\hfill--\ \chapquote@author\hspace*{\@tempdima}\par\bigskip}
\makeatother

\chapter{Example}

Here is a line before the quotes

\begin{chapquote}{Lewis Carroll, \textit{Alice in Wonderland}}
``Begin at the beginning,'' the King said, gravely, ``and go on till you
come to an end; then stop.''
\end{chapquote}

我该如何解决这个问题?

先谢谢了! 间距

答案1

没有答案!。仅显示 MWE 的重要性(评论区的代码很糟糕):

这有效:

\documentclass[oneside,numbers,a4paper,spanish]{ezthesis}
\usepackage[Bjornstrup]{fncychap}
\author{}
\title{}
\degree{}
\supervisor{}
\institution{}
\faculty{}
\department{}
\hyperlinking

\makeatletter
%%\renewcommand{\@chapapp}{}% Not necessary...
\newenvironment{chapquote}[2][2em]
  {\setlength{\@tempdima}{#1}%
   \def\chapquote@author{#2}%
   \parshape 1 \@tempdima \dimexpr\textwidth-2\@tempdima\relax%
   \itshape}
  {\par\normalfont\hfill--\ \chapquote@author\hspace*{\@tempdima}\par\bigskip}
\makeatother

\begin{document}
\chapter{one}
\chapter{two}
\chapter{three}
%\chapter{four}
\chapter{Example}

Here is a line before the quotes

\begin{chapquote}{Lewis Carroll, \textit{Alice in Wonderland}}
``Begin at the beginning,'' the King said, gravely, ``and go on till you
come to an end; then stop.''
\end{chapquote}

\end{document}

在此处输入图片描述

底线是:没有人拥有水晶球。

相关内容