乳胶格式化问题。两段开头的单词/术语已转移

时间:2019-12-14 13:23:38

标签: latex

我对格式有疑问。我只想在以相同字词开头的多个段落之间留空行。但是在某些段落之间,术语的长度(相同的单词和数字)有所不同。我尝试使用\\来获取空行,还尝试使用\bigbreak和下一行\noindent来避免段落缩进。如果没有空行,则不会发生此问题。

如何克服这个问题?请检查我的代码和快照:

方法1:\\

Hypothesis 1: The increase of the ratio of tungsten-trioxide in the composite increases the overall density of the composite.\\
Hypothesis 2: The increase of the ratio of tungsten-trioxide in the composite increases the overall strength of the composite.\\
Hypothesis 3: The increase of the ratio of tungsten-trioxide in the composite changes the UV-/IR-radiation absorption spectrum and -coefficient significantly.

screenshot method 1 - compiled output

方法2:\bigbreak \noindent

Hypothesis 1: The increase of the ratio of tungsten-trioxide in the composite increases the overall density of the composite.\bigbreak
\noindent Hypothesis 2: The increase of the ratio of tungsten-trioxide in the composite increases the overall strength of the composite.\bigbreak
\noindent Hypothesis 3: The increase of the ratio of tungsten-trioxide in the composite changes the UV-/IR-radiation absorption spectrum and -coefficient significantly.

screenshot method 2 - compiled output

很奇怪,我得到了两种不同的错误结果。有什么建议吗? 我使用Overleaf。

1 个答案:

答案 0 :(得分:0)

@Alain

感谢您的解决方案方法,现在看起来更好一些,但是下面的文字还是有些偏移。请检查以下源代码。由于版权义务,我删除了几乎所有内容。首先使用\ mbox,然后像以前一样使用。

\documentclass[journal]{IEEEtran}


% *** CITATION PACKAGES ***
\usepackage[style=ieee]{biblatex} 
\bibliography{ARP_references.bib}    %your file created using JabRef

% *** MATH PACKAGES ***
%
\usepackage{amsmath}
% A popular package from the American Mathematical Society that provides
% many useful and powerful commands for dealing with mathematics.

% *** PDF, URL AND HYPERLINK PACKAGES ***
%
\usepackage{url}
% url.sty was written by Donald Arseneau. It provides better support for
% handling and breaking URLs. url.sty is already installed on most LaTeX
% systems. The latest version and documentation can be obtained at:
% http://www.ctan.org/pkg/url
% Basically, \url{my_url_here}.

% correct bad hyphenation here
\hyphenation{op-tical net-works semi-conduc-tor}

\usepackage{graphicx}  %needed to include png, eps figures

\usepackage{float}  % used to fix location of images i.e.\begin{figure}[H]

\usepackage{textcomp} % für Grad-Zeichen

\usepackage{textgreek} % greek symbols in text

\usepackage{comment} % whole paragraph comments

\usepackage{enumitem} % for enumeration properties

\raggedbottom % avoids silly space after sections or titles (found on internet)

\begin{document}

% paper title
% Do not put math or special symbols in the title.


% author names and IEEE memberships
% note positions of commas and nonbreaking spaces ( ~ ) LaTeX will not break
% a structure at a ~ so this keeps an author's name from being broken across
% two lines.
% use \thanks{} to gain access to the first footnote area
% a separate \thanks must be used for each paragraph as LaTeX2e's \thanks
% was not built to handle multiple paragraphs

\author{}% <-this % stops a space

% The report headers
\markboth{}%do not delete next lines
{Shell \MakeLowercase{\textit{et al.}}: Bare Demo of IEEEtran.cls for IEEE Journals}

% make the title area


% As a general rule, do not put math, special symbols or citations
% in the abstract or keywords.
\begin{abstract}

\end{abstract}

\begin{IEEEkeywords}
keywords, temperature, xxxx equation, etc.
\end{IEEEkeywords}

\section{Introduction}
% Here we have the typical use of a "W" for an initial drop letter
% and "RITE" in caps to complete the first word.
% You must have at least 2 lines in the paragraph with the drop letter
% (should never be an issue)

\IEEEPARstart{A}{irlines}  

\section{}


\section{}


\section{Design of Experiments}
Test\\
\mbox{Hypothesis 1:} The increase of the ratio of tungsten-trioxide in the composite increases the overall density of the composite.\\\\
\mbox{Hypothesis 2:} The increase of the ratio of tungsten-trioxide in the composite increases the overall strength of the composite.\\\\
\mbox{Hypothesis 3:} The increase of the ratio of tungsten-trioxide in the composite changes the UV-/IR-radiation absorption spectrum and -coefficient significantly.\\\\

Test\\
Hypothesis 1: The increase of the ratio of tungsten-trioxide in the composite increases the overall density of the composite.\\\\
Hypothesis 2: The increase of the ratio of tungsten-trioxide in the composite increases the overall strength of the composite.\\\\
Hypothesis 3: The increase of the ratio of tungsten-trioxide in the composite changes the UV-/IR-radiation absorption spectrum and -coefficient significantly.\\\
\end{document} 

有很多评论,因为我使用大学推荐的模板。 Thx-凯登