Don't manually format your proof, but instead put it into a proof environment.


1. Add the theorems (AMS) module to your document: from the menu choose 
document->settings, and on the left hand side choose "modules".  Then in the 
list double click on "Theorems (AMS)".  Of course you already need to do this 
to 
put theorems, definitions etc into your document.

2. Now select your proof, then in the layout dropdown (near the top left of the 
screen, saying "standard" by default) choose proof. 

Now your proof will automatically be captioned with "Proof." in italics, and 
end 
with a \square.

Sadly the square doesn't appear if the last line is an equation.  If it's a 
single line, then add the command \qedhere at the end of the equation.  If it's 
a multiline equation, see this message:
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg84894.html

Jim

>
>From: Barak Shoshany <bara...@gmail.com>
>To: lyx-users@lists.lyx.org
>Sent: Sun, 16 January, 2011 18:19:18
>Subject: \square aligned to the right
>
>
>Hi Everybody,
>
>
>I many mathematics texts, proofs are ended with a \square or \blacksquare 
>symbol.
>Usually, the square appears at the same line as the last line of text or last 
>equation, aligned to the far right; i.e., even though the line ends in the 
>left 
>or the middle of the page, the square is always aligned to the right.
>Obviously, adding spaces until the end of the line is reached is not a 
>feasible 
>solution. Starting a new right-aligned paragraph containing only the square is 
>not a solution either, because the square should be in the same line as the 
>text.
>Does anyone have an idea how to do this?
>
>
>Thank you,
>Barak


      

Reply via email to