数学模式 $$ 使得 itemize 环境中的行太长

数学模式 $$ 使得 itemize 环境中的行太长

我有一份如下的物品清单:

\begin{itemize}
\item define \textit{N} to be the largest non-negative integer such that $k\times 4^{H-1}<max(f(X(t);4,3), f(X(t);5,7))$. If $f(X(t);0,-1)>k\times 4^{H-1}$ and blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla.
\end{itemize}

在此处输入图片描述

问题是第一行太长(见图=。我怎样才能使数学模式中的表达式像文本一样自然地进入下一行?

我的序言

%\UseRawInputEncoding
\documentclass[12pt]{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage{titlesec}
%\titleformat{\section}
% {\normalfont\fontsize{12}{15}\bfseries}{\thesection}{1em}{}
% \usepackage{titlesec}
%\titleformat{\subsection}
% {\normalfont\fontsize{12}{15}\bfseries}{\thesubsection}{1em}{}
\usepackage{amsmath,amsfonts,amssymb}
\newcommand*{\defeq}{\stackrel{\text{def}}{=}}
\usepackage{color,xcolor}
\usepackage{subfig} 
\usepackage[pdftex]{graphicx}
\usepackage{setspace}
\usepackage{booktabs}
\usepackage{lscape,url}
\usepackage[round]{natbib}
\usepackage{lipsum}
\usepackage[hidelinks]{hyperref}
\usepackage[labelfont={bf},labelsep=colon,justification=justified]{caption}
\usepackage{array}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{L}[1]{>{ \arraybackslash}p{#1}}
\usepackage{eurosym}
\usepackage{titlesec}
\usepackage{rotating}
\usepackage{longtable}
\usepackage{placeins}
\usepackage{bookmark}
\usepackage[english]{babel}
\usepackage[autostyle, english = american]{csquotes}
\usepackage{indentfirst}
%\usepackage[multiple]{footmisc}
%\usepackage{appendix}
\usepackage[top=1.5in, bottom=1.5in, left=0.9in, right=0.9in]{geometry}
\topmargin -1.5cm
\oddsidemargin -0.04cm
\evensidemargin -0.04cm
\textwidth 16.59cm
\textheight 21.94cm
\usepackage[font=footnotesize,labelfont=bf]{caption}
\usepackage{threeparttable}
\setcounter{MaxMatrixCols}{10}
\newtheorem{theorem}{Theorem}
\newtheorem{acknowledgement}[theorem]{Acknowledgement}
\newtheorem{algorithm}[theorem]{Algorithm}
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{case}[theorem]{Case}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{conclusion}[theorem]{Conclusion}
\newtheorem{condition}[theorem]{Condition}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{criterion}[theorem]{Criterion}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{notation}[theorem]{Notation}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{solution}[theorem]{Solution}
\newtheorem{summary}[theorem]{Summary}
\newenvironment{proof}[1][Proof]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
\renewcommand{\baselinestretch}{2}
\newcommand\cites[1]{\citeauthor{#1}'s\ (\citeyear{#1})}
\usepackage{setspace}
\usepackage{hyperref}
\usepackage{comment}
\usepackage{multirow}
\usepackage{textcomp}
\interfootnotelinepenalty=10000
\usepackage[bottom]{footmisc}
\usepackage[labelsep=period]{caption}
\usepackage{lscape} 
\usepackage{blindtext}
\usepackage{dcolumn}
\usepackage{capt-of}
\newcolumntype{d}[1]{D{.}{.}{#1}}
%\usepackage{siunitx}
%\usepackage{mathptmx,siunitx}
%\sisetup{input-symbols = {()},  % do not treat "(" and ")" in any special way
  %       group-digits  = false} % no grouping of digits
\usepackage{tablefootnote}
\setlength{\footskip}{65pt}
\onehalfspacing
%\usepackage{etoolbox}
%\usepackage{xr}
%\externaldocument[SND-]{NetworkDescription}
\usepackage{titlesec}
\makeatletter
\newcommand{\setappendix}{Appendix~\thechapter:~}
\newcommand{\setchapter}{\thechapter~}
\titleformat{\chapter}{\bfseries\LARGE}{%
  \ifnum\pdfstrcmp{\@currenvir}{appendices}=0
    \setappendix
  \else
    \setchapter
  \fi}{0em}{}
\makeatother
\usepackage[titletoc]{appendix}
\usepackage[T1]{fontenc}
\usepackage{etoolbox}
\makeatletter
\patchcmd{\@maketitle}{\LARGE}{\fontsize{16}{17}\selectfont}{}{}
\makeatother
\begin{document}

答案1

我建议重新措辞该句子并提供以下例子供您参考。

\begin{itemize}
\item define $k\times 4^{N-1}<\max(f(X(t);4,3), f(X(t);5,7))$ with \textit{N} being the largest non-negative integer. If $f(X(t);0,-1)>k\times 4^{H-1}$ and \ldots
\end{itemize}

答案2

我已经将您冗长的序言简化为我认为重现您要修复的格式问题所需的最低限度的内容。

基本上,TeX 不允许在内联数学中换行,包括逗号后面的换行。若要在特定位置启用换行,请\allowbreak根据需要插入指令。

在此处输入图片描述

\documentclass[12pt]{article}
\textwidth 16.59cm
\oddsidemargin -0.04cm
\evensidemargin -0.04cm
\usepackage[T1]{fontenc}

\begin{document}
\begin{itemize}
\item Define $N$ to be the largest non-negative integer such that 
$k\times 4^{H-1}<\max(f(X(t);4,3), f(X(t);5,7))$. 
If $f(X(t);0,-1)>k\times 4^{H-1}$ and blablabla 
blablabla blablabla blablabla blablabla.

\item Define $N$ to be the largest non-negative integer such that 
$k\times 4^{H-1}<\max(f(X(t);4,3),\allowbreak f(X(t);5,7))$. 
If $f(X(t);0,-1)>k\times 4^{H-1}$ and blablabla 
blablabla blablabla blablabla blablabla.
\end{itemize}
\end{document}

相关内容