I have a series of paragraphs for which the first line of each should not be indented, but the following lines should be. I can't figure out what option or combination of options will give me this result. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey
Tom wrote:
I have a series of paragraphs for which the first line of each should not be indented, but the following lines should be. I can't figure out what option or combination of options will give me this result.
Very low-level, but \noindent before the first paragraph would do the trick. Best wishes, Taco
On Sun, 4 Apr 2010, Tom wrote:
I have a series of paragraphs for which the first line of each should not be indented, but the following lines should be. I can't figure out what option or combination of options will give me this result.
You mean this? http://wiki.contextgarden.net/Shaped_paragraphs Aditya
Aditya Mahajan wrote:
On Sun, 4 Apr 2010, Tom wrote:
I have a series of paragraphs for which the first line of each should not be indented, but the following lines should be. I can't figure out what option or combination of options will give me this result.
You mean this? http://wiki.contextgarden.net/Shaped_paragraphs
Sorry, I misread the original post. Do what Aditya says :) Best wishes, Taco
I have a series of paragraphs for which the first line of each should not be indented, but the following lines should be. I can't figure out what
Exdent works fine when I substitute my text for Knuth in the example, but has a problem when I include it in my document. The first line of text after Exdent is called is not outdented, but is in all subsequent paragraphs as it should be. I tried calling Exdent for the paragraphs that start my document and get the same result. From that I surmise that I have set up something that overrides the outdenting on the first line of the first paragraph, but is overridden by Exdent after that. Do you have any ideas what it might be? I am getting Para 1 Line 1 Para 1 Line 2 Para 2 Line 1 Para 2 Line 2 Para 3 Line 1 Para 3 Line 2 ... When I should be getting Para 1 Line 1 Para 1 Line 2 Para 2 Line 1 Para 2 Line 2 Para 3 Line 1 Para 3 Line 2 ... Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -----Original Message----- From: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] On Behalf Of Aditya Mahajan Sent: Monday, April 05, 2010 2:53 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Hanging indents On Sun, 4 Apr 2010, Tom wrote: option
or combination of options will give me this result.
You mean this? http://wiki.contextgarden.net/Shaped_paragraphs Aditya ____________________________________________________________________________ _______ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ____________________________________________________________________________ _______
On Mon, 5 Apr 2010, Tom wrote:
Exdent works fine when I substitute my text for Knuth in the example, but has a problem when I include it in my document. The first line of text after Exdent is called is not outdented, but is in all subsequent paragraphs as it should be. I tried calling Exdent for the paragraphs that start my document and get the same result. From that I surmise that I have set up something that overrides the outdenting on the first line of the first paragraph, but is overridden by Exdent after that. Do you have any ideas what it might be?
Can you create a minimal example that does not work? \definestartstop [exdent] [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, after=\stopnarrower] \starttext \startexdent \dorecurse{10}{Para 1: Some random text to fill space} \dorecurse{10}{Para 2: Some random text to fill space} \dorecurse{10}{Para 3: Some random text to fill space} \dorecurse{10}{Para 4: Some random text to fill space} \stopexdent \stoptext Aditya
Aditya, It took me awhile to sort through all the code to find what was creating the problem. It appears that the code for the first page of a chapter is the culprit but I don't know why it's causing the problem. \definepagebreak[mychapterpagebreak][yes,header,right] %eliminates headers on blank pages \def\ChapterTitle#1#2{ \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}} \godown[.5in]} \setuphead[chapter] [command= \ChapterTitle,textstyle=bold,header=empty,footer=empty, page=mychapterpagebreak, numbercommand={\switchtobodyfont[big]{\ss\sl}}] \definestartstop [exdent] [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, after=\stopnarrower] \starttext \chapter{HangingIndent} \startexdent \dorecurse{10}{Para 1: Some random text to fill space} \dorecurse{10}{Para 2: Some random text to fill space} \dorecurse{10}{Para 3: Some random text to fill space} \dorecurse{10}{Para 4: Some random text to fill space} \stopexdent \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -----Original Message----- From: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] On Behalf Of Aditya Mahajan Sent: Monday, April 05, 2010 1:52 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Hanging indents On Mon, 5 Apr 2010, Tom wrote:
Exdent works fine when I substitute my text for Knuth in the example, but has a problem when I include it in my document. The first line of text after Exdent is called is not outdented, but is in all subsequent paragraphs as it should be. I tried calling Exdent for the paragraphs that start my document and get the same result. From that I surmise that I have set up something that overrides the outdenting on the first line of the first paragraph, but is overridden by Exdent after that. Do you have any ideas what it might be?
Can you create a minimal example that does not work? \definestartstop [exdent] [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, after=\stopnarrower] \starttext \startexdent \dorecurse{10}{Para 1: Some random text to fill space} \dorecurse{10}{Para 2: Some random text to fill space} \dorecurse{10}{Para 3: Some random text to fill space} \dorecurse{10}{Para 4: Some random text to fill space} \stopexdent \stoptext Aditya ____________________________________________________________________________ _______ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ____________________________________________________________________________ _______
Am 06.04.10 00:19, schrieb Tom:
Aditya,
It took me awhile to sort through all the code to find what was creating the problem. It appears that the code for the first page of a chapter is the culprit but I don't know why it's causing the problem.
\definepagebreak[mychapterpagebreak][yes,header,right] %eliminates headers on blank pages
You change the style of the number but suppress it in the output, i guess there is some reason for this and i don't understand it.
\def\ChapterTitle#1#2{ \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}} \godown[.5in]}
\setuphead[chapter] [command= \ChapterTitle,textstyle=bold,header=empty,footer=empty, page=mychapterpagebreak, numbercommand={\switchtobodyfont[big]{\ss\sl}}]
\setuphead[chapter][indentnext=yes] but i think the setup is used here http://wiki.contextgarden.net/Shaped_paragraphs just for fun. Wolfgang
Aditya,
It took me awhile to sort through all the code to find what was creating
problem. It appears that the code for the first page of a chapter is the culprit but I don't know why it's causing the problem.
\definepagebreak[mychapterpagebreak][yes,header,right] %eliminates
Thanks, Wolfgang. That did it. Because I wasn't using a section, I didn't pay attention to the indentnext=yes. The numbercommand is an artifact leftover from code used for numbered chapters that I neglected to delete. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -----Original Message----- From: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Monday, April 05, 2010 6:30 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Hanging indents Am 06.04.10 00:19, schrieb Tom: the headers
on blank pages
You change the style of the number but suppress it in the output, i guess there is some reason for this and i don't understand it.
\def\ChapterTitle#1#2{ \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}} \godown[.5in]}
\setuphead[chapter] [command= \ChapterTitle,textstyle=bold,header=empty,footer=empty, page=mychapterpagebreak, numbercommand={\switchtobodyfont[big]{\ss\sl}}]
\setuphead[chapter][indentnext=yes] but i think the setup is used here http://wiki.contextgarden.net/Shaped_paragraphs just for fun. Wolfgang ____________________________________________________________________________ _______ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ____________________________________________________________________________ _______
participants (4)
-
Aditya Mahajan
-
Taco Hoekwater
-
Tom
-
Wolfgang Schuster