自定义枚举项

自定义枚举项

我想在 Latex 上写以下内容。请帮助我。

在此处输入图片描述

\documentclass[12pt,oneside,a4paper]{report}
\pagestyle{plain}
\usepackage{enumerate}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{bm}
\usepackage{mathdesign}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{glossaries}
\usepackage{enumitem}
\makeglossaries
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{defn}{Definition}[section]
\newtheorem{remk}{Remark}[section]
\newtheorem{assump}{Assumptions}[section]
\numberwithin{equation}{section}
\setlength{\topmargin}{-.7in}
\setlength{\textheight}{9.5in}
\setlength{\oddsidemargin}{-.3in}
\setlength{\textwidth}{7in}
\renewcommand{\qedsymbol}{$\blacksquare$}
\begin{document}\begin{theorem}
If the $(k\times 1)$ vector $\bm{x}$ is distributed normally with mean vector $\bm{\mu}$ and variance-covariance matrix $\bm{I}_k$, then
\begin{enumerate}[(i).]
\item $\mathbb{E}[\phi(\bm{x}'\bm{x})\bm{x}]=\bm{\mu}\mathbb{E}[\phi(\chi^{2}_{(k+2,\Delta)})]$,
\item $\mathbb{E}[\phi(\bm{x}'\bm{x})\bm{x}\bm{x}']=\bm{I}_{k}\mathbb{E}[\phi(\chi^{2}_{(k+2,\Delta)})]+\bm{\mu}\bm{\mu}'\mathbb{E}[\phi(\chi^{2}_{(k+4,\Delta)})]$
\end{enumerate}
where $\Delta=\frac{1}{2}\bm{\mu}'\bm{\mu}$ is the noncentrality parameter.
\end{theorem}
 \begin{assump}[Regularity Conditions]
\begin{enumerate}[start=0,label={(\bfseries R\arabic*):}]
\begin{enumerate}
\item The pdfs are distinct.
\item The pdfs have common support for all $\theta$.
\end{enumerate}
\end{assump}
\end{document}

答案1

如果没有更多信息,这是一个启动器......(我还没有完成枚举周围的定理环境)

enumitem包是轻松定制 itemize/enumerate 列表的关键。它提供了使用起始值(start=0)和label=....选项的方法。

enumitem可以一起使用或作为 enumerate使用该shortlabels选项。

\documentclass{article}
\usepackage{enumerate}
\usepackage[shortlabels]{enumitem}

\begin{document}

% Traditional style
\begin{enumerate}[a)] 
\item This is
\item an easy
\item customization of standard enumerate
\end{enumerate}


\begin{enumerate}[start=0,label={(\bfseries R\arabic*):}]
\item This is
\item an easy
\item customization of enumerate
\end{enumerate}
\end{document} 

在此处输入图片描述

答案2

由于标签放置方面仍然存在一些问题,我提出了一种更像 OP 帖子中的图像的变体。我将其替换amsthmntheorem,它具有break定理样式,并且如果 \theoremname 为粗体,则将定理的可选参数以粗体显示。

加载mathdesign没有发生任何变化,因为没有选择字体作为选项。我添加了charter

\documentclass[12pt,oneside,a4paper]{report}
\pagestyle{plain}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{bm}
\usepackage[charter]{mathdesign}
\usepackage[shortlabels]{enumitem}

%\usepackage{amssymb}
%\usepackage{amsthm}
%\newtheorem{theorem}{Theorem}[section]
%\newtheorem{corollary}{Corollary}[section]
%\newtheorem{lemma}{Lemma}[section]
%\newtheorem{defn}{Definition}[section]
%\newtheorem{remk}{Remark}[section]
%\newtheorem{assump}{Assumptions}[section]
%\renewcommand{\qedsymbol}{$\blacksquare$}

  \usepackage[thmmarks, amsmath, thref]{ntheorem}

 \theoremstyle{plain}
 \theoremheaderfont{\upshape\bfseries}
 \theorembodyfont{\itshape}
 \theoremseparator{.}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{defn}{Definition}[section]
\newtheorem{remk}{Remark}[section]

\theoremstyle{break}
 \theoremseparator{.\medskip}
\newtheorem{assump}{Assumptions}[section]

 \theoremstyle{nonumberplain}
 \theoremheaderfont{\itshape}
 \theorembodyfont{\upshape}
 \theoremsymbol{\ensuremath{\blacksquare}}
 \newtheorem{proof}{Proof}

\numberwithin{equation}{section}
\setlength{\topmargin}{-.7in}
\setlength{\textheight}{9.5in}
\setlength{\oddsidemargin}{-.3in}
\setlength{\textwidth}{7in}

\begin{document}
\setcounter{chapter}{6}\setcounter{section}{1}
\begin{theorem}
  If the $(k \times 1)$ vector $\bm{x}$ is distributed normally with mean vector $\bm{\mu}$ and variance-covariance matrix $\bm{I}_k$, then
  \begin{enumerate}[(i).]
    \item $\mathbb{E}[\phi(\bm{x}'\bm{x})\bm{x}]=\bm{\mu}\mathbb{E}[\phi(\chi^{2}_{(k+2,\Delta)})],$

    \item $\mathbb{E}[\phi(\bm{x}'\bm{x})\bm{x}\bm{x}'] = \bm{I}_{k}\mathbb{E}[\phi(\chi^{2}_{(k+2,\Delta)})] + \bm{\mu}\bm{\mu}'\mathbb{E}[\phi(\chi^{2}_{(k+4,\Delta)})],$
  \end{enumerate}
  where $\Delta=\frac{1}{2}\bm{\mu}'\bm{\mu}$ is the noncentrality parameter.
\end{theorem}

\begin{assump}[Regularity Conditions]
  \begin{enumerate}[start=0,label={\upshape(\bfseries R\arabic*):},wide = 0pt, leftmargin = 3em]
    \item The pdfs are distinct; i.e., $ \theta \neq \theta' \Rightarrow f(x_i; \theta) \neq f(x_i; \theta')$. Text text text text text text text text text text text text text text text text text.
    \item The pdfs have common support for all $\theta$.
    \item The point $ \theta_0$ is an interior point of $ \Omega $.
  \end{enumerate}
\end{assump}
\end{document}

在此处输入图片描述

相关内容