最初に項目間のスペースを手動で編集すると、列挙を数字からアルファベットに変更できません

最初に項目間のスペースを手動で編集すると、列挙を数字からアルファベットに変更できません

列挙を数字からアルファベットに変更しようとしています。つまり、リストの代わりに

1.
2.
3. 

リストが欲しい

(a)
(b)
(c)

このために、次のコマンドを使用します。

\documentclass[12pt, a4paper]{article}
\usepackage{setspace}
\setstretch{1}
\usepackage{mathtools}
\usepackage{enumitem}
\usepackage[ampersand]{easylist}
\usepackage[margin=2.5cm]{geometry}
\setlength{\topmargin}{-2cm}
\usepackage{titling}
\setlength{\droptitle}{0cm}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{amssymb}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\newtheorem{example}{Example}
\theoremstyle{remark} 
\newtheorem*{solution}{Solution}
\newtheorem*{remark}{Remark}
\title{\textbf{Metric Spaces} \vspace{-0.5cm}}

\begin{document}
\maketitle

\section{Basic Topology}
    \begin{definition} %\parskip0pt \parsep0pt
    A set $X$ together with a real-valued function $d$ is called a metric space if for all $x, y, z, \in X,$ the following properties are satisfied:

    \usepackage{enumitem}

    %%This command creates list.
    \begin{enumerate}[label=(\alph*)]
    \item $ d(x,x)=0$
    \item $ d(x,y)>0 if x \neq y $
    \item $ d(x,y)=d(y,x) $
    \item $ d(x,y) \leq d(x,z)+d(z,y) $
    \end{enumerate}

上記の方法で実行すれば動作します。

しかし、アイテム間の垂直方向のスペースを変更したい場合は、次のようになります。

\let\oldenumerate\enumerate\renewcommand{\enumerate}{\oldenumerate\setlength{\itemsep}{3pt}\setlength{\parskip}{0pt}\setlength{\parsep}{0pt}}

... それは動作しません。

つまり、この組み合わせは機能しないということです。

\documentclass[12pt, a4paper]{article}
\usepackage{setspace}
\setstretch{1}
\usepackage{mathtools}
\usepackage{enumitem}
\usepackage[ampersand]{easylist}
\usepackage[margin=2.5cm]{geometry}
\setlength{\topmargin}{-2cm}
\usepackage{titling}
\setlength{\droptitle}{0cm}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{amssymb}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\newtheorem{example}{Example}
\theoremstyle{remark} 
\newtheorem*{solution}{Solution}
\newtheorem*{remark}{Remark}
\title{\textbf{Metric Spaces} \vspace{-0.5cm}}
\let\oldenumerate\enumerate\renewcommand{\enumerate}{\oldenumerate\setlength{\itemsep}{3pt}\setlength{\parskip}{0pt}\setlength{\parsep}{0pt}}


\begin{document}
\maketitle

\section{Basic Topology}
    \begin{definition} %\parskip0pt \parsep0pt
    A set $X$ together with a real-valued function $d$ is called a metric space if for all $x, y, z, \in X,$ the following properties are satisfied:

    \usepackage{enumitem}

    %%This command creates list.
    \begin{enumerate}[label=(\alph*)]
    \item $ d(x,x)=0$
    \item $ d(x,y)>0 if x \neq y $
    \item $ d(x,y)=d(y,x) $
    \item $ d(x,y) \leq d(x,z)+d(z,y) $
    \end{enumerate}

これら 2 つのコマンドの関係と、最初のコマンドが 2 番目のコマンドを無効にする理由について、どなたか教えていただけませんか?

ありがとう、

答え1

次のようにenumitemしてください:

\setlist[enumerate,1]{itemsep=10pt}

地球規模で何かを変えること。

あなたのコード:

\documentclass[12pt, a4paper]{article}
\usepackage{mathtools}
\usepackage{enumitem}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{amssymb}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\newtheorem{example}{Example}
\theoremstyle{remark}
\newtheorem*{solution}{Solution}
\newtheorem*{remark}{Remark}
\title{\textbf{Metric Spaces} \vspace{-0.5cm}}
\setlist[enumerate,1]{itemsep=10pt}
\setlength{\parskip}{0pt}\setlength{\parsep}{0pt}


\begin{document}
\maketitle

\section{Basic Topology}
    \begin{definition} %\parskip0pt \parsep0pt
    A set $X$ together with a real-valued function $d$ is called a metric space if for all $x, y, z, \in X,$ the following properties are satisfied:

    %%This command creates list.
    \begin{enumerate}[label=(\alph*)]
    \item $ d(x,x)=0$
    \item $ d(x,y)>0 if x \neq y $
    \item $ d(x,y)=d(y,x) $
    \item $ d(x,y) \leq d(x,z)+d(z,y) $
    \end{enumerate}
\end{definition}
\end{document}

ここに画像の説明を入力してください

答え2

使用できない断片ではなく、問題を示す完全な例を投稿する方が便利です。しかし、いずれにせよ、オプションの引数を探すためにenumitemwhich定義を使用しています(ただし、言及していません)。\enumerateただし、コマンドの後には常にオプションの引数が表示されないようにコマンドを定義しています\setlength。定義後、次のようになります。

\begin{enumerate}\setlength{\itemsep}{3pt}[label=(\alph*)]

\itemsepリスト内での設定はいずれにしても間違った場所です。enumitemオプションの引数内でリスト パラメータを設定できるためです。

関連情報