2

How can I remove the space between 1.1. and (1)?

Edit: @barbarabeeton's answer removes the space as required but I had a follow up question of whether there is a way to indent "Remark" with the body of the paragraph (1). Basically to have "Nullam" right below "Remark"in the following image:

MWE:

\documentclass[11pt]{amsart}
\usepackage[left=2cm,top=1cm,right=2cm,nohead,nofoot]{geometry}
\usepackage{amsmath, amssymb}
\usepackage{amsthm}
\usepackage[shortlabels]{enumitem}
\theoremstyle{plain}
\newtheorem{Theorem}{Theorem}[section]
\theoremstyle{definition}
\newtheorem{remark}[Theorem]{Remark}

\begin{document}
\section{A}
\begin{remark}
\begin{enumerate}[leftmargin=*]
    \item ABC
    \item ABC
\end{enumerate}
\end{remark}
\end{document}

1 Answers1

1

You may be interested in something a little more simplistic. Setting your own list-like environment:

image

\documentclass{amsart}

\usepackage{amsthm}
\usepackage{lipsum}

\theoremstyle{plain}
\newtheorem{Theorem}{Theorem}[section]
\theoremstyle{definition}
\newtheorem{remark}[Theorem]{Remark}

\newcounter{remarkitem}
\newenvironment{remarklist}{%
  \setcounter{remarkitem}{0}% Restart counter
  \setlength{\parindent}{0pt}%
  \renewcommand{\item}{\par
    \refstepcounter{remarkitem}%
    \ifnum\value{remarkitem}=1
      \hspace*{-0.5ex}%
    \fi
    \mbox{(\theremarkitem)}%
    \nobreakspace
  }
}{%
  \par\addvspace{.5\baselineskip}%
}

\begin{document}

\section{A section}
See number~\ref{list:first} and~\ref{list:second}.
\begin{remark}
  \begin{remarklist}
    \item\label{list:first} \lipsum*[1]
    \item\label{list:second} \lipsum*[2]
  \end{remarklist}
\end{remark}

\end{document}
Werner
  • 603,163
  • But this still doesn't align the body of the paragraphs with "Remark". I would like to have "purus" right below "Remark" in your image. – Sahiba Arora Jun 06 '20 at 11:42
  • @SahibaArora: So something like this? – Werner Jun 06 '20 at 17:12
  • Yes exactly. How do I get that? – Sahiba Arora Jun 06 '20 at 17:13
  • @SahibaArora: I've updated my answer with that detail. Note that you won't be able to use a nested list here. But I guess one can update that if necessary. It depends on the format. – Werner Jun 06 '20 at 18:06
  • That worked perfectly. Thank you. Just out of curiosity, is there a way the numbering in the list can be changed to roman/alpha-numeric? When I use the enumerate environment, I add the optional argument [label=(alph*)]. Can something similar be done here? – Sahiba Arora Jun 06 '20 at 19:55
  • 1
    @SahibaArora: Yes. Use \renewcommand{\theremarkitem}{\alph{remarkitem}} somewhere after \newcounter{remarkitem}. – Werner Jun 07 '20 at 02:55
  • This question has showed up today: Enumeration content alignment. It doesn't involve a theorem-class object, but the visual structure appears identical, and is achieved with available options of the enumitem package. Is there anything useful there? – barbara beeton Jun 08 '20 at 20:06