0

In my project, I had two types of different subsection, I want to name the first type "Lemma" and the other "Problem". For example, my subsections of lemma would be Lemma 1, Lemma 2, Lemma 3 ... while my problem subsections would be 1.30/25, 1.33/27, 2.17/35, 6.20/78 ... My lemmas is label in order while my problems's title need not to be in order, it just which exercíes that I choose to solve. So how can I make it ? Thank you

PermQi
  • 187
  • 1
    Please provide a small compilable example starting with \documentclass and ending with \end{document} so people can better understand your problem and provide more effective help. There are specialised tools available for the lemmas. For the problems, \subsection*{1.30/25} might be best. Without code, it's hard to give more useful advice. – cfr Oct 05 '23 at 20:21
  • IIRC, theorems (lemmas etc.) are implemented as lists, similar to enumerate but each with a different counter. Nesting them affects the indentation. \section and \subsection also have levels, but they mostly affect the title size and TOC indentation. – John Kormylo Oct 05 '23 at 23:15
  • thank you for your help, I really appreciate – PermQi Oct 06 '23 at 06:15
  • @cfr thanks for \subsection*{}, that was really spot on – PermQi Oct 06 '23 at 06:17

1 Answers1

0

You can use LaTeX Theorems. Here is a good documentation.

With "theorem" we can mean any kind of labelled enunciation that we want to look separated from the rest of the text and with sequential numbers next to it. This approach is commonly used for theorems in mathematics, but can be used for anything. LaTeX provides a command that will let you easily define any theorem-like enunciation.

  • when I use the code \newtheorem{lemma}{Lemma}, how to break new line after tiltle ? Since I don't want to state the lemma right after the title on the same line – PermQi Oct 06 '23 at 13:00
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. – Community Oct 06 '23 at 13:14
  • You can use custom styles taken from the documentation above. Use \newline in place of headspace. – C. Aknesil Oct 06 '23 at 13:25
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center. – Community Oct 06 '23 at 13:40