[OS X TeX] No indentation of first paragraph in new environment

John Rawnsley J.Rawnsley at warwick.ac.uk
Thu May 15 15:34:03 CEST 2008


I think you also need to set \@afterindentfalse, e.g.

\makeatletter
\newenvironment{acknowledgments}
{
\newpage
\thispagestyle{plain}
	\@mkboth{\acknowledgename}{\acknowledgename}
\addcontentsline{toc}{section}{Acknowledgments}
%  \vspace*{-.8in} % NAP comment out May 2008
{\centerline{\bf {\LARGE Acknowledgments}}}
\vspace*{.2in}
\@afterindentfalse\@afterheading}
{}
\makeatother

John

On 2008-05-15, at 14:20, Nathan Paxton wrote:

> 	So I tried \@afterheading in two locations, as below, but the  
> behavior of the text didn't change in any noticeable way. Any other  
> suggestions?
>
> -Nathan
> On 14 May 2008, at 10:38 PM, Nathan Paxton wrote:
>
>> % ACKNOWLEDGMENTS
>> %
>> % The acknowledgements environment puts a large, bold, centered
>> % "Acknowledgements" label at the top of the page.
>>
>> \newenvironment{acknowledgments}
>> {
>> \newpage
>> \thispagestyle{plain}
>> 	\@mkboth{\acknowledgename}{\acknowledgename}
>> \addcontentsline{toc}{section}{Acknowledgments}
>> %  \vspace*{-.8in} % NAP comment out May 2008
> HERE
>>
>> {\centerline{\bf {\LARGE Acknowledgments}}}
>> \vspace*{.2in}
> OR HERE
>>
>> }
>> {}
>>

-- 
  John Rawnsley | <http://go.warwick.ac.uk/jhrawnsley>







More information about the macostex-archives mailing list