[texhax] paragraph indent start-over

Eric Abrahamsen girzel at gmail.com
Sun Feb 28 05:02:33 CET 2010


On Feb 28, 2010, at 2:23 AM, Paul Isambert wrote:

> Create a new token list with
>
> \newtoks\EveryPar
>
> and add \EveryPar=\everypar at the beginning of your snippet command  
> and \everypar=\EveryPar at the end.
>

Thanks Paul,

This doesn't seem to be working though, here's the simplest failing  
example, these commands placed just before the start of the document:

\newtoks\EveryPar

\newcommand{\intro}[1]{
   \EveryPar=\everypar
   {\small #1}
   \everypar=\EveryPar}

No error, but the first paragraph of proper text is still indented.  
I've tried putting the intro snippet inside an \hbox, and that works,  
but it won't wrap the text for longer snippets…

Thanks,
Eric

> Paul
>
> Eric Abrahamsen a écrit :
>> I've made a custom command for inserting a small snippet of  
>> introductory text after each section's headline. I don't want this  
>> snippet to "steal" the normal \noindent behavior of the first  
>> paragraph of proper text after the snippet, ie I want LaTeX to view  
>> that first paragraph of proper text as the actual first paragraph,  
>> and not indent it.
>>
>> Is there any way that I can either define my introductory snippet  
>> so that it's not seen as a real paragraph, or somehow put a  
>> \noindent into the end of the command so it applies to the  
>> following paragraph, or otherwise reset some internal counter so  
>> that the paragraph following is seen as the first?
>>
>> Thanks!
>> Eric
>> _______________________________________________
>> TeX FAQ: http://www.tex.ac.uk/faq
>> Mailing list archives: http://tug.org/pipermail/texhax/
>> More links: http://tug.org/begin.html
>>
>> Automated subscription management: http://tug.org/mailman/listinfo/texhax
>> Human mailing list managers: postmaster at tug.org
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org




More information about the texhax mailing list