항목 뒤의 간격을 줄이는 방법(mbox 사용)

항목 뒤의 간격을 줄이는 방법(mbox 사용)

다음 예에서는 열거와 관련된 몇 가지 문제에 직면하고 있습니다.

첫째, 항목이 별도의 줄에서 시작되는지 확인하기 위해 \mbox{}\를 사용했지만 항목이 필요한 것보다 조금 더 아래쪽으로 이동했습니다.

둘째, 위의 예에서 3...4 대신 (3.1), (3.4) 등의 번호 매기기를 어떻게 시작할 수 있습니까? 열거 옵션으로 3.\arabic을 사용해 보았지만 오류가 5개 있습니다.

셋째, \mbox를 사용하면 열거가 사라집니다. "선형 함수"라는 항목은 (4)로 열거되어야 합니다.

\documentclass[leqno,10pt]{article}
\usepackage{soul}
\usepackage[margin=0.75in]{geometry}
\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
\let\endchangemargin=\endlist 
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{Lecture 1}
\rhead{Handout 2}
\usepackage{mathtools}
\usepackage{enumitem,array}
\usepackage{relsize}
\usepackage{amsmath}
\usepackage{amsthm} %for proof 
\newtheorem*{mythm}{Theorem}
\newtheorem*{mydef}{Definition}
\title{\ul{Expectations in Bivariate Probability Distribution}}
\date{}
\newenvironment{mydescription}{%
   \renewcommand\descriptionlabel[1]{\hspace{\labelsep}\textbf{{##1}}}%
   \begin{description}%
}{%
   \end{description}%
}
\newenvironment{definition}[1][Definition]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\begin{document}
\newcommand{\myitem}{\stepcounter{enumi}\item[(\theenumi)]}%for enumerate with no. in brackets
\newcommand\litem[1]{\item{\bfseries {#1}}}

\thispagestyle{fancy}

\begin{definition} 
Let the random vector $(X,Y)$ have a joint \textbf{pdf} $f(x,y)$, and let $Z=h(X,Y)$ be a (single-valued) function of (X,Y). Then the expectation of the random variable $Z$ is 
\begin{equation}
E(Z)=\int_{-\infty}^{\infty}{\int_{-\infty}^{\infty}{h(x,y)f(x,y)dxdy}}
\label{eq:}
\end{equation}
\end{definition}    

\begin{mydescription}
\item[Moments] For non-negative integers $j,k$:
        \begin{enumerate}[leftmargin=-0.3cm,start=2]
        \myitem Let $Z=X^{j}Y^{k}$. Then $E(Z)=E(X^{j}Y^{k})$ is called the $(j,k)$ raw moment ($=$ moment about the origin) of the bivariate distribution.
        \myitem Let $Z=X^{*^{j}}Y{*^{k}}$, where $X^{*}=X-E(X)$ and $Y^{*}=Y-E(Y)$. Then $E(Z)=E(X^{*^{j}}Y{*^{k}})$ is called the $(j,k)$ central moment ($=$ moment about the mean) of the bivariate distribution. 
        \end{enumerate}
\item[Variance and Covariance as Special cases of Central Moments]\mbox{}\\
\begin{enumerate}[leftmargin=-0.3cm,start=3]
    \item $j=2,k=0$
    \item $j=1,k=1$
\end{enumerate}

\item[Theorems]

\begin{enumerate}[leftmargin=*,start=4]\mbox{}\\
        \litem{Linear function} 

    \end{enumerate}

\end{mydescription}
\end{document}

답변1

\\1: 이후에는 사용하지 마세요 \mbox{}.

2: 옵션은 입니다 label=(3.\arabic{enumi}). 비록 열거형이 중첩되지 않은 점을 고려하면 약간 이상하긴 합니다.

3: \mbox{}뒤에 넣지 \item[Theorems]말고 뒤에 넣으세요.\begin{enumerate}[leftmargin=*,start=4]

관련 정보