LyXBox after Theorems

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
d4rtagnan
Posts: 2
Joined: Tue Jan 17, 2012 5:28 pm

Box after Theorems

Post by d4rtagnan »

Version: LyX 2.0
Document class: article
Used module for theorems: theorems(AMS)

Usually, after every proof, there is this white square (\qed) on the right side.

I would like to set this box also after every theorem (remark, definition, proposition etc.) and define this in my latex preamble under "Document/Settings/latex preamble".

After browsing the web for hours, I just found people with the same problem, but no proper solutions.

Thank you very much for your help!!

PS: This is my LaTeX preamble at the moment:

Code: Select all

\newtheoremstyle{definition}
  {}% measure of space to leave above the theorem. E.g.: 3pt
  {}% measure of space to leave below the theorem. E.g.: 3pt
  {\it}% name of font to use in the body of the theorem
  {}% measure of space to indent the head
  {\bf}% name of head font
  {.}% punctuation between head and body
  { }% space after theorem head; " " = normal interword space
  {}% Manually specify head

\newtheoremstyle{remark}
  {}% measure of space to leave above the theorem. E.g.: 3pt
  {}% measure of space to leave below the theorem. E.g.: 3pt
  {\it}% name of font to use in the body of the theorem
  {}% measure of space to indent the head
  {\bf}% name of head font
  {.}% punctuation between head and body
  { }% space after theorem head; " " = normal interword space
  {}% Manually specify head

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

d4rtagnan
Posts: 2
Joined: Tue Jan 17, 2012 5:28 pm

Re: Box after Theorems

Post by d4rtagnan »

Maybe specifying my question helps to help me: :P


I want to put a white square (\qed) after every theorem (Remark, Proposition, etc.).

At the moment, I solve this by writing in the TeX mode "\qed".

It would be more elegant to define something in the LaTeX preamble, such that after every theorem automatically the white square appears as after proofs.


Any hint would help me, thanks a lot!
Post Reply