インターラインの変更

インターラインの変更

理由はわかりませんが、私のコードは行間の値が異なるテキストを提供します。より明確にするために、私のコードを示します。

\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パッケージは、意味のないテキストを埋め込むためだけのものです。また、参考文献の見出しのサイズも小さくしました。

ここに画像の説明を入力してください

関連情報