Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to make a new environment in LaTeX. It'll be a proof environment (for math papers), and what I want is to indent all the paragraph. How can I do that?

I do this:

\newenvironment{proo}[1][\proofname]{\noindent\normalfont{\itshape#1{:}}\quad\mdseries\ignorespaces}  {{$\Box$}{\vskip\belowdisplayskip}} 
share|improve this question

migrated from stackoverflow.com Jan 30 at 19:42

This question came from our site for professional and enthusiast programmers.

2 Answers 2

What is wrong with the AMS packages? I.e., amsthm here? It has plenty of knobs to frob. Besides, your creativity is better spent elsewhere than reinventing what experts offer as their solution. Even if it isn't perfect, it is probably what your readers are accustomed to, so it eases understanding.

share|improve this answer

Perhaps try the following:

\let\proofindent=20pt % or whatever you want

\newenvironment{proof}[1][\proofname]%
{\advance\leftskip\proofindent% 
 \noindent\normalfont{\itshape#1{:}}\quad\mdseries\ignorespaces}  
{{$\Box$}{\vskip\belowdisplayskip}} 

I just adopted part of the \narrower macro to give an expanded left margin.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.