两种方式,\\和parbox。

两种方式,\\和parbox。

我必须使用所示的包中设置的文档,因为这是期刊规定的。

我只是想防止下面显示的项目从页面右侧消失。最明显的解决方案是将其分成两行。

%The following LaTeX file is an example of an acceptable paper for the 
%Communications in Statistics.

%cisform.tex
%
\documentclass[12pt]{article}

\usepackage{fancyvrb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{bm}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage{longtable}
\usepackage[tableposition = top]{caption}
\usepackage[natbibapa]{apacite}



\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\topmargin}{-.5in}
\setlength{\headsep}{0in}
\setlength{\textwidth}{6.5in}
\setlength{\textheight}{8.5in}
\def\refhg{\hangindent=20pt\hangafter=1}
\def\refmark{\par\vskip 2mm\noindent\refhg}
\def\refhg{\hangindent=20pt\hangafter=1}
\def\refmark{\par\vskip 2mm\noindent\refhg}
\def\refhg{\hangindent=20pt\hangafter=1}    %20pt
\def\refhgb{\hangindent=10pt\hangafter=1}
\def\refmark{\par\vskip 2mm\noindent\refhg}
\renewcommand{\baselinestretch}{1.5}

\newcommand*\mc[1]{\multicolumn{1}{c}{#1}}
\setlength\tabcolsep{5.69pt} % distance between columns in table


\begin{document}


\begin{itemize}
    \item  Simulate the X variables using eqn.1 with the following $(\rho_1,\rho_2)=(0.99,0.99),(0.99,0.1),(0.9,0.9),(0.9,0.1),(0.7,0.3)$
\end{itemize}

\end{document}

答案1

两种方式,\\parbox

默认\parbox命令使框居中,从而使项目符号居中,但通过指定[t]\parbox[t]{\linewidth}{<content>}按照顶线对齐,项目符号就可以正常工作。

\documentclass[12pt]{article}

\usepackage{fancyvrb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{bm}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage{longtable}
\usepackage[tableposition = top]{caption}
\usepackage[natbibapa]{apacite}



\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\topmargin}{-.5in}
\setlength{\headsep}{0in}
\setlength{\textwidth}{6.5in}
\setlength{\textheight}{8.5in}
\def\refhg{\hangindent=20pt\hangafter=1}
\def\refmark{\par\vskip 2mm\noindent\refhg}
\def\refhg{\hangindent=20pt\hangafter=1}
\def\refmark{\par\vskip 2mm\noindent\refhg}
\def\refhg{\hangindent=20pt\hangafter=1}    %20pt
\def\refhgb{\hangindent=10pt\hangafter=1}
\def\refmark{\par\vskip 2mm\noindent\refhg}
\renewcommand{\baselinestretch}{1.5}

\newcommand*\mc[1]{\multicolumn{1}{c}{#1}}
\setlength\tabcolsep{5.69pt} % distance between columns in table


\begin{document}
\begin{itemize}
    % you could use a simple \\ to manually break the line
    \item  Simulate the X variables using eqn.1 with the following \\$(\rho_1,\rho_2)=(0.99,0.99),(0.99,0.1),(0.9,0.9),(0.9,0.1),(0.7,0.3)$
    % or use a top-aligned parbox set to the linewidth to wrap it automatically
    \item \parbox[t]{\linewidth}{Simulate the X variables using eqn.1 with the following $(\rho_1,\rho_2)=(0.99,0.99),$ $(0.99,0.1),$ $(0.9,0.9),$ $(0.9,0.1),$ $(0.7,0.3)$}
    % I broke the long equation into smaller equations to make text-wrapping work right. 
\end{itemize}
\end{document}

答案2

只需将其拆分成几个公式即可:

\documentclass[12pt]{article}

\begin{document}

\begin{itemize}
\item Simulate the $X$ variables using equation~\ref{whatever} with the following
$(\rho_1,\rho_2)=(0.99,0.99)$, $(0.99,0.1)$, $(0.9,0.9)$, $(0.9,0.1)$, $(0.7,0.3)$
\end{itemize}

\end{document}

在此处输入图片描述

答案3

我会把数学变成一个显示的方程式

\begin{itemize}
    \item  Simulate the X variables using eqn.1 with the following 
           \[(\rho_1,\rho_2)=(0.99,0.99),(0.99,0.1),(0.9,0.9),(0.9,0.1),(0.7,0.3)\]
\end{itemize}

相关内容