更改聯運

更改聯運

我不知道為什麼,但我的程式碼提供了具有不同行間值的文字。為了更清楚,讓我展示我的程式碼:

\documentclass[12pt,a4paper, english]{article} 
\usepackage{graphicx,amssymb} 
\textwidth=15cm \hoffset=-1.2cm 
\textheight=25cm \voffset=-2cm 

\pagestyle{empty} 

\date{\today} 
\def\keywords#1{\begin{center}{\bf Keywords}\\{#1}\end{center}} 

\begin{document}

\title{Title}

\author{\textit{Author} \\ 
        University\\\\
       }

\maketitle

\thispagestyle{empty}

\keywords{keywords}
%
%
\vspace{0.7cm}
{\Large{\textbf{Introduction}}}\\\\
%
Text 1
\begin{equation}
    u^{k+1}
\end{equation}
Text 2
%
\begin{footnotesize}
\begin{thebibliography}{9}
 %
\bibitem{blabla} 
Blabla.
\end{thebibliography}
\end{footnotesize}
\end{document}

結果如下圖所示:

在此輸入影像描述

正如您所看到的,公式下面的文字的行間比之前的要小。如果我刪除 \begin{footnotesize} 和 \end{footnotesize} (參考書目),我會得到我想要的(兩個文本的行間相同)。有什麼建議可以使參考書目具有相同的行間和較小的字體大小嗎?謝謝你!

答案1

每當您看到 時\\\\,您就知道該文件有問題。總是

另外,您似乎擔心空行:不擔心。他們很好!

您遇到的問題確實是前面沒有空行,因此最後一段在已經生效\begin{footnotesize}時被分成幾行進行排版。\footnotesize

這是文件的編輯版本(應避免使用\hoffset和)。\voffset

\documentclass[12pt,a4paper]{article} 
\usepackage{amsmath,amssymb}
\usepackage[
  textwidth=15cm,
  textheight=25cm,
  heightrounded,
]{geometry}

\usepackage[nopar]{lipsum} % for mock text

\newcommand\keywords[1]{\begin{center}\textbf{Keywords}\\#1\end{center}}

\pagestyle{empty} 

\begin{document}

\title{Title}
\author{%
  \textit{Author}\\
  University
}
\date{\today} 
\maketitle

\thispagestyle{empty}

\keywords{keywords}

\section*{Introduction}

\lipsum[1]
\begin{equation}
    u^{k+1}
\end{equation}
\lipsum[2]

\begin{footnotesize}\renewcommand{\Large}{\normalsize}
\begin{thebibliography}{9}

\bibitem{blabla} 
Blabla.

\end{thebibliography}
\end{footnotesize}

\end{document}

lipsum包只是用來填充無意義的文字。我還縮小了參考文獻標題的大小。

在此輸入影像描述

相關內容