ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Hanging indents
@ 2010-04-04 23:22 Tom
  2010-04-05  6:47 ` Taco Hoekwater
  2010-04-05  6:53 ` Aditya Mahajan
  0 siblings, 2 replies; 9+ messages in thread
From: Tom @ 2010-04-04 23:22 UTC (permalink / raw)
  To: ntg-context

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





___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Hanging indents
  2010-04-04 23:22 Hanging indents Tom
@ 2010-04-05  6:47 ` Taco Hoekwater
  2010-04-05  6:53 ` Aditya Mahajan
  1 sibling, 0 replies; 9+ messages in thread
From: Taco Hoekwater @ 2010-04-05  6:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Hanging indents
  2010-04-04 23:22 Hanging indents Tom
  2010-04-05  6:47 ` Taco Hoekwater
@ 2010-04-05  6:53 ` Aditya Mahajan
  2010-04-05  6:54   ` Taco Hoekwater
  2010-04-05 15:54   ` Tom
  1 sibling, 2 replies; 9+ messages in thread
From: Aditya Mahajan @ 2010-04-05  6:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Hanging indents
  2010-04-05  6:53 ` Aditya Mahajan
@ 2010-04-05  6:54   ` Taco Hoekwater
  2010-04-05 15:54   ` Tom
  1 sibling, 0 replies; 9+ messages in thread
From: Taco Hoekwater @ 2010-04-05  6:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Hanging indents
  2010-04-05  6:53 ` Aditya Mahajan
  2010-04-05  6:54   ` Taco Hoekwater
@ 2010-04-05 15:54   ` Tom
  2010-04-05 17:52     ` Aditya Mahajan
  1 sibling, 1 reply; 9+ messages in thread
From: Tom @ 2010-04-05 15:54 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

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:

> 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
____________________________________________________________________________
_______
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
____________________________________________________________________________
_______


___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Hanging indents
  2010-04-05 15:54   ` Tom
@ 2010-04-05 17:52     ` Aditya Mahajan
  2010-04-05 22:19       ` Tom
  0 siblings, 1 reply; 9+ messages in thread
From: Aditya Mahajan @ 2010-04-05 17:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Hanging indents
  2010-04-05 17:52     ` Aditya Mahajan
@ 2010-04-05 22:19       ` Tom
  2010-04-05 22:30         ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Tom @ 2010-04-05 22:19 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

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
____________________________________________________________________________
_______


___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Hanging indents
  2010-04-05 22:19       ` Tom
@ 2010-04-05 22:30         ` Wolfgang Schuster
  2010-04-05 22:42           ` Tom
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2010-04-05 22:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Hanging indents
  2010-04-05 22:30         ` Wolfgang Schuster
@ 2010-04-05 22:42           ` Tom
  0 siblings, 0 replies; 9+ messages in thread
From: Tom @ 2010-04-05 22:42 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

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:
> 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

____________________________________________________________________________
_______
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
____________________________________________________________________________
_______


___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-04-05 22:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-04 23:22 Hanging indents Tom
2010-04-05  6:47 ` Taco Hoekwater
2010-04-05  6:53 ` Aditya Mahajan
2010-04-05  6:54   ` Taco Hoekwater
2010-04-05 15:54   ` Tom
2010-04-05 17:52     ` Aditya Mahajan
2010-04-05 22:19       ` Tom
2010-04-05 22:30         ` Wolfgang Schuster
2010-04-05 22:42           ` Tom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).