Newline spacing left by 'theorem' environment

  • MHB
  • Thread starter mathbalarka
  • Start date
  • Tags
    Theorem
In summary, the conversation discusses using the amsthm package in LaTeX to define a theorem environment. The output includes spacing, which the user wants to remove. The expert suggests using \setlength{\parindent}{0pt} in the preamble. The user thanks the expert and mentions that it doesn't work for the Abstract. The expert suggests using \noindent text, but it doesn't work for the Abstract. The conversation also mentions the tcolorbox package and its newtcbtheorem option for designing theorems.
  • #1
mathbalarka
456
0
I am using amsthm package in LaTeX, and defined the theorem environment as

Code:
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}

in the usual way. Now if I compile the code

Code:
\begin{theorem}
Some text
\end{theorem}
More text

The output is

View attachment 1705

Note the spacing appeared in line #2. Is there anyway to remove this?
 

Attachments

  • LaTeX.PNG
    LaTeX.PNG
    4.3 KB · Views: 79
Physics news on Phys.org
  • #2
Do you want to remove indentation from all paragraphs ?
 
  • #3
ZaidAlyafey said:
Do you want to remove indentation from all paragraphs?

Yes.
 
  • #4
Write the following code preamble.

Code:
\setlength{\parindent}{0pt}
 
  • #5
No kidding, that works great!

Thanks, Zaid.

PS : I see it doesn't work for the Abstract. Have any ideas on that?
 
  • #6
mathbalarka said:
No kidding, that works great!

Thanks, Zaid.

PS : I see it doesn't work for the Abstract. Have any ideas on that?

Honestly, I was just trying to do the same for abstract but it didn't work. After a search it seems that

Code:
\noindent text
works fine .
 
  • #7
Okay, that works well, thanks.
 
  • #8
When designing theorems, you should check out the package tcolorbox. It has the option newtcbtheorem.
 

Related to Newline spacing left by 'theorem' environment

1. What is a 'theorem' environment in scientific writing?

A 'theorem' environment is a tool used in scientific writing to present a mathematical or logical statement that has been proven to be true. It is often used in research papers, textbooks, and other scientific literature.

2. How does the 'theorem' environment affect newline spacing?

The 'theorem' environment automatically adds extra space above and below the statement, creating a visual break between the surrounding text and the theorem. This helps to highlight the importance and significance of the theorem in the overall argument.

3. Can the newline spacing in a 'theorem' environment be adjusted?

Yes, the newline spacing in a 'theorem' environment can be adjusted by using specific commands or packages, depending on the document class being used. This allows for more control over the formatting and appearance of the theorem within the text.

4. Why is it important to have consistent newline spacing in a 'theorem' environment?

Consistent newline spacing in a 'theorem' environment helps to maintain a professional and organized appearance in scientific writing. It also makes it easier for readers to follow the logical flow of the argument and understand the significance of the theorem.

5. Are there any guidelines or standards for newline spacing in a 'theorem' environment?

While there are no strict guidelines or standards for newline spacing in a 'theorem' environment, it is generally recommended to use a line spacing of 1.5 or 2 to ensure readability and visual appeal. It is also important to be consistent throughout the document to maintain a professional and cohesive look.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
749
  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
4K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
Back
Top