Cambiar la enumeración de números a alfabeto no funciona si primero edito manualmente el espacio entre elementos

Cambiar la enumeración de números a alfabeto no funciona si primero edito manualmente el espacio entre elementos

Estoy intentando cambiar la enumeración de números al alfabeto. es decir, en lugar de la lista

1.
2.
3. 

quiero tener la lista

(a)
(b)
(c)

Para esto utilizo los siguientes comandos:

\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}

Si lo hago de la manera anterior, funciona.

Pero, cuando quiero cambiar el espacio vertical entre elementos, de la siguiente manera:

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

... No funciona.

Entonces, para que quede claro, esta combinación no funciona:

\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}

¿Alguien podría ayudarme cuál es la conexión entre estos dos comandos y por qué el primero anula el segundo?

Gracias,

Respuesta1

contigo enumitemdeberías hacer esto:

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

cambiar algo a nivel global.

Tu codigo:

\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}

ingrese la descripción de la imagen aquí

Respuesta2

Sería más útil publicar un ejemplo completo que demuestre el problema en lugar de fragmentos que no podamos usar. Pero de todos modos está usando (pero no lo ha dicho) enumitemque define \enumeratebuscar un argumento opcional, pero luego define su comando de modo que el comando siempre vaya seguido \setlengthde modo que no se vea el argumento opcional. Después de tu definición es como si te hubieras ido

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

En cualquier caso, configurar \itemsepdentro de la lista es el lugar incorrecto, ya que está utilizando enumitempuede configurar los parámetros de la lista dentro del argumento opcional.

información relacionada