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}

7
  • Like this (code)?
    – Werner
    Jun 4, 2020 at 18:17
  • remark is a theorem-class object. See this question: Annoying space before the first item in an enumeration which starts a theorem Jun 4, 2020 at 18:18
  • @Werner Yes, the hack doesn't work for me. Since I label the list items and need to refer to them later. Jun 4, 2020 at 18:22
  • @barbarabeeton I did use [leftmargin=*] after seeing that answer but there is still that little space left which is annoying. Jun 4, 2020 at 18:22
  • I'll have to test that, but I have a meeting shortly, so it won't be possible for several hours. There's another approach, if you're willing to start the list on a new line: insert \leavevmode right after the \begin{remark}, or add a few words to provide some text. Jun 4, 2020 at 18:30

1 Answer 1

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}
7
  • 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. Jun 6, 2020 at 11:42
  • @SahibaArora: So something like this?
    – Werner
    Jun 6, 2020 at 17:12
  • Yes exactly. How do I get that? Jun 6, 2020 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 6, 2020 at 18:06
  • 1
    @SahibaArora: Yes. Use \renewcommand{\theremarkitem}{\alph{remarkitem}} somewhere after \newcounter{remarkitem}.
    – Werner
    Jun 7, 2020 at 2:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .