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
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
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
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 -----------------------------------------------------------------
After \blank I always need an \indenting[no]. How do I set up this general behaviour?
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
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
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)!
participants (4)
-
Hans Hagen
-
Markus Finke
-
Martin Althoff
-
Wolfgang Schuster