ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Blank lines and \noindent
@ 2010-08-05 12:14 Martin Althoff
  2010-08-05 12:26 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Althoff @ 2010-08-05 12:14 UTC (permalink / raw)
  To: ntg-context

Just curious about the intented behaviour of \noindent. 

If I place it as shown in the example, the next paragraph will still be indented. However, if the blank line between \noindent and the following text is deleted or contains a comment, the following text will not be indented. Is this placement dependency intended? I thought I could use blank lines at liberty to "style" the sources. 

Secondly, is there any way of integrating the \noindent into the \textrule. Means: the paragraph following a textrule should not be indented. Not crucial, but would reduce the clutter in the sources. There are about 600 textrules... Not pretty, I know, but currently they are my indicator, that a page in the original book, from which the text comes, has changed. 

Thanks again, Martin


\setupindenting[yes,small]
\indenting[next]

\starttext
\input{davis}

% page 86 Old page header
\textrule[top]{Change of Page}
\noindent

\input{davis}

\stoptext



___________________________________________________________________________________
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] 8+ messages in thread

* Re: Blank lines and \noindent
  2010-08-05 12:14 Blank lines and \noindent Martin Althoff
@ 2010-08-05 12:26 ` Wolfgang Schuster
  2010-08-06  5:51   ` Martin Althoff
  2010-08-06  8:06   ` Markus Finke
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2010-08-05 12:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

  Am 05.08.10 14:14, schrieb Martin Althoff:
> Just curious about the intented behaviour of \noindent.
>
> If I place it as shown in the example, the next paragraph will still be indented. However, if the blank line between \noindent and the following text is deleted or contains a comment, the following text will not be indented. Is this placement dependency intended? I thought I could use blank lines at liberty to "style" the sources.
No, you use it the wrong way, \noindent has to be used in front of text 
or a box but you in your case a paragraph is between \noindent and the text.

You should also use ConTeXt’s own commands \indentation and \noindentation.
> Secondly, is there any way of integrating the \noindent into the \textrule. Means: the paragraph following a textrule should not be indented. Not crucial, but would reduce the clutter in the sources. There are about 600 textrules... Not pretty, I know, but currently they are my indicator, that a page in the original book, from which the text comes, has changed.
\setuptextrules[inbetween=\noindentation]
> Thanks again, Martin
>
>
> \setupindenting[yes,small]
> \indenting[next]
\indenting is just a synonym for \setupindenting and deprecated, move 
'next' into \setupindenting
> \starttext
> \input{davis}
\input{...} is LaTeX style, to read files with spaces in ConTeXt you can 
use \input "..." or \ReadFile{...}

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] 8+ messages in thread

* Re: Blank lines and \noindent
  2010-08-05 12:26 ` Wolfgang Schuster
@ 2010-08-06  5:51   ` Martin Althoff
  2010-08-06  7:27     ` Hans Hagen
  2010-08-06  8:06   ` Markus Finke
  1 sibling, 1 reply; 8+ messages in thread
From: Martin Althoff @ 2010-08-06  5:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang, thanks for the input. Got me a bit further.


> You should also use ConTeXt’s own commands \indentation
> and \noindentation.

OK, had taken them to be equivalent reading the manual. But I see the context commands do what I want...

> \input{...} is LaTeX style, to read files with spaces in
> ConTeXt you can use \input "..." or \ReadFile{...}

I know (almost) nothing about Latex. It just seemed to conform to general context syntax and worked. Ah, well. 

best, Martin



___________________________________________________________________________________
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] 8+ messages in thread

* Re: Blank lines and \noindent
  2010-08-06  5:51   ` Martin Althoff
@ 2010-08-06  7:27     ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2010-08-06  7:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 6-8-2010 7:51, Martin Althoff wrote:

> I know (almost) nothing about Latex. It just seemed to conform to general context syntax and worked. Ah, well.

\input was always an exception to the rule but in luatex indeed \input 
handles {}

\readfile{somename}{}{}

is more context (the second and third arg can be used for a message or 
so, \ReadFile takes only one argument)

The readfile command also backtracks to . and .. as one can have a 
project structure


Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Blank lines and \noindent
  2010-08-05 12:26 ` Wolfgang Schuster
  2010-08-06  5:51   ` Martin Althoff
@ 2010-08-06  8:06   ` Markus Finke
  2010-08-06  9:35     ` Martin Althoff
  2010-08-06 12:36     ` Wolfgang Schuster
  1 sibling, 2 replies; 8+ messages in thread
From: Markus Finke @ 2010-08-06  8:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

After \blank I always need an \indenting[no].

How do I set up this general behaviour?
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Blank lines and \noindent
  2010-08-06  8:06   ` Markus Finke
@ 2010-08-06  9:35     ` Martin Althoff
  2010-08-06 12:36     ` Wolfgang Schuster
  1 sibling, 0 replies; 8+ messages in thread
From: Martin Althoff @ 2010-08-06  9:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Marcus,


> After \blank I always need an
> \indenting[no].
> 
> How do I set up this general behaviour?

Not sure if I read your question correctly. 

a. to disable indenting completely (which is default)

\setupindenting[no]

b. disabling in front of particular paragraphs seems to be a bit sensitive. I currently place an \noindentation in front of every paragraph where it needs to prevented. \noindentation tolerates blank lines between it an the text, however clashes with \inmargin. If they appear together indentation still takes place. My workaround: keep one word between the two. 

Not sure if this helps, and even answers your questions.

take care, Martin



___________________________________________________________________________________
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] 8+ messages in thread

* Re: Blank lines and \noindent
  2010-08-06  8:06   ` Markus Finke
  2010-08-06  9:35     ` Martin Althoff
@ 2010-08-06 12:36     ` Wolfgang Schuster
  2010-08-06 14:35       ` Markus Finke
  1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2010-08-06 12:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

  Am 06.08.10 10:06, schrieb Markus Finke:
> After \blank I always need an \indenting[no].
>
> How do I set up this general behaviour?

http://www.ntg.nl/pipermail/ntg-context/2010/051222.html

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] 8+ messages in thread

* Re: Blank lines and \noindent
  2010-08-06 12:36     ` Wolfgang Schuster
@ 2010-08-06 14:35       ` Markus Finke
  0 siblings, 0 replies; 8+ messages in thread
From: Markus Finke @ 2010-08-06 14:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>> After \blank I always need an \indenting[no].
>>
>> How do I set up this general behaviour?
>
> http://www.ntg.nl/pipermail/ntg-context/2010/051222.html
>
> Wolfgang

This was a very usefull (and overlooked by me) hint. The module becomes 
a standard in my preambles.

Thank you Wolfgang (and Martin too)!
___________________________________________________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2010-08-06 14:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-05 12:14 Blank lines and \noindent Martin Althoff
2010-08-05 12:26 ` Wolfgang Schuster
2010-08-06  5:51   ` Martin Althoff
2010-08-06  7:27     ` Hans Hagen
2010-08-06  8:06   ` Markus Finke
2010-08-06  9:35     ` Martin Althoff
2010-08-06 12:36     ` Wolfgang Schuster
2010-08-06 14:35       ` Markus Finke

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).