Hi, I'm very new to ConTeXt and I've got some (probably naive) questions about indenting. 1. According to the ConTeXt Excursion, using \setupindenting[medium] should lead to indented paragraph. And actually, at least for me, it doesn't... I saw examples on the wiki with \setupindenting[yes,medium]: this actually works, but the 'yes' option is not documented for the \setupindenting command on texshow. What am I missing here? Is the \indenting command needed even to indent the whole document? It is not what I understood from the Excursion... 2. I have not been able to indent the first paragraph after a \section (or any other titling) command. Isn't it the role of the 'first' option for \setupindenting? Is a trick needed to have it work? Thanks in advance for your answers, Morgan \setupindenting[medium,first] \starttext This paragraph is not indented. It becomes indented when I add the (undocumented?) 'yes' option to \setupindenting. \section{A section} How to get this one indented (in the whole document)? \stoptext
Hi Morgan,
On Jan 21, 2008 2:02 PM,
Hi,
I'm very new to ConTeXt and I've got some (probably naive) questions about indenting.
1. According to the ConTeXt Excursion, using \setupindenting[medium] should lead to indented paragraph. And actually, at least for me, it doesn't... I saw examples on the wiki with \setupindenting[yes,medium]: this actually works, but the 'yes' option is not documented for the \setupindenting command on texshow. What am I missing here? Is the \indenting command needed even to indent the whole document? It is not what I understood from the Excursion...
The manuals are a little bit outdated and not every new feature and change in the setup is documented.
2. I have not been able to indent the first paragraph after a \section (or any other titling) command. Isn't it the role of the 'first' option for \setupindenting? Is a trick needed to have it work?
This is a feature, because the first paragraph after a section shouldn't be intended by default, you could change this with the following setups. a. You want to enable indenting only for section commands. \setuphead[section][indentnext=yes] b. You want to enable indenting for all headers \setupheads[indentnext=yes]
Thanks in advance for your answers,
Morgan
\setupindenting[medium,first] \starttext
This paragraph is not indented. It becomes indented when I add the (undocumented?) 'yes' option to \setupindenting.
\section{A section}
How to get this one indented (in the whole document)?
\stoptext
Greetings, Wolfgang
Selon Wolfgang Schuster
Hi Morgan,
On Jan 21, 2008 2:02 PM,
wrote: Hi,
I'm very new to ConTeXt and I've got some (probably naive) questions about indenting.
1. According to the ConTeXt Excursion, using \setupindenting[medium] should lead to indented paragraph. And actually, at least for me, it doesn't... I saw examples on the wiki with \setupindenting[yes,medium]: this actually works, but the 'yes' option is not documented for the \setupindenting command on texshow. What am I missing here? Is the \indenting command needed even to indent the whole document? It is not what I understood from the Excursion...
The manuals are a little bit outdated and not every new feature and change in the setup is documented.
I see. So the 'yes' option is now a "true option" of \setupindenting?
2. I have not been able to indent the first paragraph after a \section (or any other titling) command. Isn't it the role of the 'first' option for \setupindenting? Is a trick needed to have it work?
This is a feature, because the first paragraph after a section shouldn't be intended by default, you could change this with the following setups.
In french documents, common usage is to indent every paragraphs, including those following titles. Maybe this behaviour could be added in the \mainlanguage[fr] command? I guess that babel does it in LaTeX when the frenchb option is chosen.
a. You want to enable indenting only for section commands.
\setuphead[section][indentnext=yes]
b. You want to enable indenting for all headers
\setupheads[indentnext=yes]
Thanks for this solution. This probably should be the default for french documents...
Thanks in advance for your answers,
Morgan
\setupindenting[medium,first] \starttext
This paragraph is not indented. It becomes indented when I add the (undocumented?) 'yes' option to \setupindenting.
\section{A section}
How to get this one indented (in the whole document)?
\stoptext
Greetings,
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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
Arthur Reutenauer wrote:
\setupheads[indentnext=yes] Thanks for this solution. This probably should be the default for french documents...
I concur; this is indeed the most common practice.
there will be no such defaults hardcoded in the format; of course there can be a module s-french that set such things up Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Arthur Reutenauer
-
Hans Hagen
-
morgan.brassel@free.fr
-
Wolfgang Schuster