Re: [NTG-context] Indenting next multi paragraph description
Actually it works if I comment out "\setupindenting" (or with a manual `\indentation`). But then, no indentation on the rest of the document :( Le 23/02/23 à 22:27, Alex Leray via ntg-context a écrit : \setupindenting[yes, 3em, next] ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Indenting next multi paragraph description
Hi, I'd like to indent next paragraphs in multi paragraph descriptions. For some reason, I can't figure out why this isn't working. Any idea? Here is my code: ### \setupwhitespace[none] \setupindenting[yes, 3em, next] \definedescription[question][ before={\vskip-\parskip}, after={\vskip-\parskip}, width=3em, hang=3, ] \definedescription[answer][ before={\vskip-\parskip}, after={\vskip-\parskip}, width=3em, hang=3, indenting={yes, 3em, next}, % Does nothing indentnext=yes, % Does nothing too ] \starttext \startcolumns[n=2] \startquestion{(T.C.)} \input ward \stopquestion \startanswer{(N.M.)} \input ward \input ward \stopanswer \stopcolumns \stoptext ### Thanks! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Indenting on all TEXpages
Dear list, is it possible to enable indenting globally for TEXpage environments? Or is it recommended to create a separate environment for that purpose? Please find a MWE below. It seems to me that \setupindenting must be set explicitly for every page that needs indenting. Best, Jacob Kauffmann \setupTEXpage[width=10cm] \setupindenting[yes,medium] % not working \starttext \startTEXpage \input knuth \stopTEXpage % working \startTEXpage \setupindenting[yes,medium] \input knuth \stopTEXpage \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting on all TEXpages
On 2/28/2021 4:13 PM, Jacob Kauffmann wrote: Dear list, is it possible to enable indenting globally for TEXpage environments? Or is it recommended to create a separate environment for that purpose? Please find a MWE below. It seems to me that \setupindenting must be set explicitly for every page that needs indenting. Best, Jacob Kauffmann \setupTEXpage[width=10cm] \setupindenting[yes,medium] % not working \starttext \startTEXpage \input knuth \stopTEXpage % working ^^^ not working because you introduce a space: \startTEXpage \setupindenting[yes,medium]% add a percent here \input knuth \stopTEXpage \stoptext There's is often a way: \setupTEXpage[width=10cm,setups=whatever] \startsetups whatever \setupindenting[yes,medium] \stopsetups \starttext \startTEXpage \input knuth \stopTEXpage \startTEXpage \input knuth \stopTEXpage \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting entries in the table of contents?
This is what I'm using at the moment: % Tables of Contents \setuplist[part][textstyle={\sl},pagestyle={\tf}] \setuplist[chapter][textstyle={\sl},pagestyle={\tf},label=yes,width=fi t,stopper=~~] \setuplist[section][width=42pt,margin=10pt,style={\tf}] \setuplist[subsection][width=42pt,margin=18pt,style={\tf}] \setupcombinedlist[content][alternative=c,aligntitle=no,width=2.5em,li st={part,chapter,section,subsection}] Best, Richard -- Richard Mahoney | Indica et Buddhica Littledene Bay Road Oxford NZ T: +6433121699 M: +64210640216 r.maho...@indica-et-buddhica.org https://indica-et-buddhica.org/ -Original Message- From: Henning Hraban Ramm Reply-To: mailing list for ConTeXt users To: mailing list for ConTeXt users Subject: Re: [NTG-context] Indenting entries in the table of contents? Date: Sat, 21 Mar 2020 09:15:12 +0100 Mailer: Apple Mail (2.3445.104.11) > Am 2020-03-21 um 03:10 schrieb T. Kurt Bond : > > I'd like subsection entries in the table of contents to be indented > slightly, and subsubsection entries to be indented slightly more, > and subsubsubsection entries to be indented some more. > > Is there any way to do this? It’s not obvious in https://wiki.contextgarden.net/Table_of_Contents but you need \setuplist[subsection][margin=2cm] etc. see https://wiki.contextgarden.net/Command/setuplist Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD __ _ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting entries in the table of contents?
> Am 2020-03-21 um 03:10 schrieb T. Kurt Bond : > > I'd like subsection entries in the table of contents to be indented slightly, > and subsubsection entries to be indented slightly more, and subsubsubsection > entries to be indented some more. > > Is there any way to do this? It’s not obvious in https://wiki.contextgarden.net/Table_of_Contents but you need \setuplist[subsection][margin=2cm] etc. see https://wiki.contextgarden.net/Command/setuplist Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Indenting entries in the table of contents?
I'd like subsection entries in the table of contents to be indented slightly, and subsubsection entries to be indented slightly more, and subsubsubsection entries to be indented some more. Is there any way to do this? -- T. Kurt Bond, tkurtb...@gmail.com ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting lists
> Am 2020-02-29 um 21:39 schrieb Yves Cloutier : > > How does one indent lists to have the same indentation as paragraphs (ex: > \small). > > It should apply to all lists, and so I assume I would need to use > > \setup Have a look at https://wiki.contextgarden.net/Enumerations#Horizontal_spacing https://wiki.contextgarden.net/Command/setupitemgroup Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Indenting lists
Hello, How does one indent lists to have the same indentation as paragraphs (ex: \small). It should apply to all lists, and so I assume I would need to use \setup > The documentation is a bit thin on how I would do this. Any pointers would be appreciated! Regards, yc ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting number in TOC, particular numbering scheme, and other questions
\setupreferenceformat [chapter] [default] [prefixsegments=...] \setupreferenceformat [section] [default] [prefixsegments=...] That seems to define the segmets when refering to a chapter or section, but I need a dynamic way: I want to go back to the last common ancestor,for example to refer to A.IV.3: * from inside A.IV.4 it should just print 3, * from inside A.V.1 it should print IV.3, and * from inside B.I.1 it should print the full A.IV.3. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting number in TOC, particular numbering scheme, and other questions
Daniel Haid schrieb am 04.12.2019 um 18:55: On 12/3/19 4:24 PM, Hans Hagen wrote: which version I just found out that it is too old (2016.05.17 19:20), I will update. With the one from https://live.contextgarden.net/ it works! Thank you. With the help of your answers I have been able to implement everything except for the references. To clarify what I want to achieve I have written a smaller example that gives the correct output (manually). I use \setupreferencestructureprefix[default][prefixsegments=x:y]\in[foo]. everywhere to get the proper levels x:y. \setupreferenceformat [chapter] [default] [prefixsegments=...] \setupreferenceformat [section] [default] [prefixsegments=...] ... 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting number in TOC, particular numbering scheme, and other questions
On 12/3/19 4:24 PM, Hans Hagen wrote: which version I just found out that it is too old (2016.05.17 19:20), I will update. With the one from https://live.contextgarden.net/ it works! Thank you. With the help of your answers I have been able to implement everything except for the references. To clarify what I want to achieve I have written a smaller example that gives the correct output (manually). I use \setupreferencestructureprefix[default][prefixsegments=x:y]\in[foo]. everywhere to get the proper levels x:y. 1) Is there a quicker way to get this instead of writing setupreferencestructureprefix everywhere? Something like \in[x:y][foo]. 2) Can this somehow be automated? Something like \in[auto][foo] should automatically choose y as the level of foo and x as the first level where foo and the current section differ. Best wishes, D. -- \usemodule[subsub] \usetypescript[termes] \setupbodyfont[termes,12pt] \def\arconv#1{\alphabeticnumerals{#1})} \defineconversion[ar][\arconv] \def\aarconv#1{\alphabeticnumerals{#1}\alphabeticnumerals{#1})} \defineconversion[aar][\aarconv] \definestructureconversionset[myconvset][,A,I,n,ar,aar] \setupheads[part, chapter, section, subsection, subsubsection, subsubsubsection][sectionconversionset=myconvset] \setuphead[chapter][sectionsegments=chapter,style=bold, after={\blank[small]},before={\blank[big]},sectionstopper=.] \setuphead[section][sectionsegments=section,style=bold, after={\blank[small]},before={\blank[big]},sectionstopper=.] \setuphead[subsection][sectionsegments=subsection] \setuphead[subsubsection][sectionsegments=subsubsection,sectionstopper=] \setuphead[subsubsubsection][sectionsegments=subsubsubsection] \starttext \startchapter[title={Chapter}] \startsection[title={Section}] \startsubsection[title={Subsection}] \startsubsubsection[title={First Subsubsection}] \startsubsubsubsection[title={Foo}, reference=foo] \stopsubsubsubsection \startsubsubsection[title={Second subsubsection}] \startsubsubsubsection[title={Bar}, reference=bar] \stopsubsubsubsection \stopsubsubsection \startsubsubsubsection[title={Baz}, reference=bar] Foo is in the current subsection, but a different subsubsection, so we refer to it as \setupreferencestructureprefix[default][prefixsegments=5:6]\in[foo]. Bar is in the current subsubsection, so we refer to it as \setupreferencestructureprefix[default][prefixsegments=6:6]\in[bar]. Of course, we can always also have a full reference like \setupreferencestructureprefix[default][prefixsegments=2:6]\in[bar]. \stopsubsubsubsection \stopsubsection \stopsection \stopchapter \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Indenting number in TOC, particular numbering scheme, and other questions
Hello everyone, I just started to experiment with ConTeXt. I have a few issues with my first document structure. I need a very particular numbering scheme, which I have tried to implement. I have appended the document below. 1. Why is there no indenting in the TOC starting with (what I call) level 7? This could have to something with the fact that the levels starting from 7 are defined in the subsub module? 2. Why are the numbers in the headings inside the main text not printed for levels 8 and 9? Interestingly, they *are* printed for level 7, which is defined in the subsub module. I have looked into m-subsub.mkiv and saw no difference at all between the different levels defined there. 3. Is it possible to indent not only the section name but also the number in the TOC? Moreover, I would like to have a dot after the first three levels, but not the other ones (in the TOC and in the text), like this: A. First Level .. 1 I. Second Level . 2 1. Third Level .. 3 a) Fourth Level . 4 ... 4. I use the conversions A, I, 1 (without dot), and then defined my own ones "a)", "aa)", etc. *with* the ")". I think this is correct, since the way a section has to be referenced in the text is like this (for example): B.IV.5.c).aa).(4) Is there a way to get this? Moreover, is it possible to have a relative referencing command, for example, if section B.IV.5.d) is quoted from inside section B.IV.6.f) the command should only print 5.d) since the B.IV is implied. 5. How can I get rid of the additional vertical space before the second entry "B. Another first level" (chapter)? 6. I wanted to define aliases for the \subsub...subsection commands, since they are difficult to read, and I used \def as you can see below. Is this the right way to do it or would you recommend something else? Any help would be greatly appreciated. D. -- \usemodule[subsub] \usetypescript[termes] \setupbodyfont[termes,12pt] \def\arconv#1{\alphabeticnumerals{#1})} \defineconversion[ar][\arconv] \def\aarconv#1{\alphabeticnumerals{#1}\alphabeticnumerals{#1})} \defineconversion[aar][\aarconv] \def\lnrconv#1{(\numbers{#1})} \defineconversion[lnr][\lnrconv] \def\larconv#1{(\alphabeticnumerals{#1})} \defineconversion[lar][\larconv] \def\laarconv#1{(\alphabeticnumerals{#1}\alphabeticnumerals{#1})} \defineconversion[laar][\laarconv] \def\alpharconv#1{\greeknumerals{#1})} \defineconversion[alphar][\alpharconv] \definestructureconversionset[myconvset][,A,I,n,ar,aar,lnr,lar,laar,alphar] \setupheads[part, chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection, subsubsubsubsubsection, subsubsubsubsubsubsection, subsubsubsubsubsubsubsection][sectionconversionset=myconvset] \setuphead[chapter][sectionsegments=chapter] \setuphead[section][sectionsegments=section] \setuphead[subsection][sectionsegments=subsection] \setuphead[subsubsection][sectionsegments=subsubsection] \setuphead[subsubsubsection][sectionsegments=subsubsubsection] \setuphead[subsubsubsubsection][sectionsegments=subsubsubsubsection] \setuphead[subsubsubsubsubsection][sectionsegments=subsubsubsubsubsection] \setuphead[subsubsubsubsubsubsection][sectionsegments=subsubsubsubsubsubsection] \setuphead[subsubsubsubsubsubsubsection][sectionsegments=subsubsubsubsubsubsubsection] \def\startA{\startchapter} \def\stopA{\stopchapter} \def\startI{\startsection} \def\stopI{\stopsection} \def\startS{\startsubsection} \def\stopS{\stopsubsection} \def\startSS{\startsubsubsection} \def\stopSS{\stopsubsubsection} \def\startSSS{\startsubsubsubsection} \def\stopSSS{\stopsubsubsubsection} \def\startX{\startsubsubsubsubsection} \def\stopX{\stopsubsubsubsubsection} \def\startXX{\startsubsubsubsubsubsection} \def\stopXX{\stopsubsubsubsubsubsection} \def\startXXX{\startsubsubsubsubsubsubsection} \def\stopXXX{\stopsubsubsubsubsubsubsection} \def\start{\startsubsubsubsubsubsubsubsection} \def\stop{\stopsubsubsubsubsubsubsubsection} \setupcombinedlist[content][list={chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection, subsubsubsubsubsection, subsubsubsubsubsubsection, subsubsubsubsubsubsubsection},alternative=c] \starttext \placecontent \startA[title={First level}] \startI[title={Second level}] \startS[title={Third level}] \startSS[title={Fourth level}] \startSSS[title={Fifth level}] \startX[title={Sixth level}] \startXX[title={Seventh level}] \startXXX[title={Eighth level}] \start[title={Ninth level}] \stop \stopXXX \stopXX \stopX \stopSSS \stopSS \stopS \stopI \stopA \startA[title={Another first level}] \stopA \stoptext ___ If your question
Re: [NTG-context] indenting after placefigure
On 12/6/18 9:38 PM, Hans van der Meer wrote: > Thanks, indeed this does the trick. > But I wonder: Has \placefigure then a default [indentnext=no] instead > of abstaining from meddling with the indent setting? This might be similar to indenting after headings. To get the paragraphs indented after them, \setupheads[indentnext] is required. The "indenting" key inherits its value from \setupindenting, but "indentnext" doesn’t. I hope it helps, Pablo -- http://www.ousia.tk ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] indenting after placefigure
Thanks, indeed this does the trick. But I wonder: Has \placefigure then a default [indentnext=no] instead of abstaining from meddling with the indent setting? dr. Hans van der Meer > On 6 Dec 2018, at 21:25, Pablo Rodriguez wrote: > > On 12/6/18 6:10 PM, Hans van der Meer wrote: >> I used \setupindenting[always,medium]. This works everywhere except >> after a figure placed with \placefigure. Why does placing the figure >> suppress the indent after it? And how can this behaviour be changed? > > I wonder whehter \setupfloat[figure][indentnext=yes] would work here. > > I hope it may help, > > Pablo > -- > http://www.ousia.tk > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] indenting after placefigure
On 12/6/18 6:10 PM, Hans van der Meer wrote: > I used \setupindenting[always,medium]. This works everywhere except > after a figure placed with \placefigure. Why does placing the figure > suppress the indent after it? And how can this behaviour be changed? I wonder whehter \setupfloat[figure][indentnext=yes] would work here. I hope it may help, Pablo -- http://www.ousia.tk ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] indenting after placefigure
I used \setupindenting[always,medium]. This works everywhere except after a figure placed with \placefigure. Why does placing the figure suppress the indent after it? And how can this behaviour be changed? dr. Hans van der Meer ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] indenting in framedtext
On Wed, May 10, 2017 at 2:40 PM, Hans Hagenwrote: > On 5/10/2017 1:39 PM, Mikael P. Sundqvist wrote: >> >> Dear list, >> >> I'm trying to have indentation inside a framed text, but I do not >> succeed. Test file below, and result after compiling with latest >> standalone. Is this the intended behavior? >> >> Best regards, Mikael >> >> \setupindenting[yes,medium] >> >> \defineframedtext >> [MyFrame] >> [ >> frame=on, >> width=broad, >> indenting=yes, >> ] >> >> >> \starttext >> >> Indenting works here: \input knuth >> >> \startMyFrame >> But indenting does not work here: \input knuth >> \stopMyFrame >> >> \stoptext > > > \defineframedtext > [MyFrame] > [frame=on, > width=broad, > indenting={yes,medium}, > ] > > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ Ah, many thanks! I don't know why I thought it would suffice with "yes" at this point when it does not in the \setupindenting command. I think I have had "indenting=yes" in my documents for years without really bothering to ask why it has not worked... Thanks again. /Mikael ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] indenting in framedtext
On 5/10/2017 1:39 PM, Mikael P. Sundqvist wrote: Dear list, I'm trying to have indentation inside a framed text, but I do not succeed. Test file below, and result after compiling with latest standalone. Is this the intended behavior? Best regards, Mikael \setupindenting[yes,medium] \defineframedtext [MyFrame] [ frame=on, width=broad, indenting=yes, ] \starttext Indenting works here: \input knuth \startMyFrame But indenting does not work here: \input knuth \stopMyFrame \stoptext \defineframedtext [MyFrame] [frame=on, width=broad, indenting={yes,medium}, ] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] indenting in framedtext
Dear list, I'm trying to have indentation inside a framed text, but I do not succeed. Test file below, and result after compiling with latest standalone. Is this the intended behavior? Best regards, Mikael \setupindenting[yes,medium] \defineframedtext [MyFrame] [ frame=on, width=broad, indenting=yes, ] \starttext Indenting works here: \input knuth \startMyFrame But indenting does not work here: \input knuth \stopMyFrame \stoptext ctx-example18.pdf Description: Adobe PDF document ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] indenting and whitespace in framedtext
Quoting from the command reference: \startframedtext inherits \setupframedtext and \setupframedtext ... indenting = inherits \setupindenting I interprete this as \setupindenting is carried to the inside of the framedtext but this thus not happen. Instead one explicitely sets it on the call of \startframedtext. Why doesn't \startframedtext inherit the value from the document? This is a problem because I need this setup for framedtexts called in an inner module. A second, even more serious problem for me is that the framedtext is ignoring the \setupwhitespace. For both problems see the example below. Hans van der Meer \setupindenting[yes,first,medium] \setupwhitespace[big] \starttext \ConTeXt-version = \contextversion Text for testing indenting of praragraphs. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. Text for testing indenting of praragraphs. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. \tex{startframedtext[width=\textwidth]}\crlf \startframedtext[width=\textwidth] Text for testing indenting of praragraphs. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. Text for testing indenting of praragraphs. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. \stopframedtext \tex{startframedtext[width=\textwidth,indenting={yes,first,medium}]}\crlf \startframedtext[width=\textwidth,indenting={yes,first,medium}] \setupwhitespace[big]\tex{setupwhitespace[big]}\par Text for testing indenting of praragraphs. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. Text for testing indenting of praragraphs. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. \stopframedtext \stoptext indenting-framedtext.pdf Description: indenting-framedtext.pdf ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] indenting
Indeed! But it is a bit surprising that the default space for turning on indenting is identing by zero. Hans van der Meer On 9 Nov 2016, at 11:38, Mikael P. Sundqvist> wrote: On Wed, Nov 9, 2016 at 11:12 AM, Meer, Hans van der > wrote: I do not understand why this is not indented by the latest ConTeXt beta. Neither do options [yes] or [first] on \setupindenting. Hans van der Meer \setupindenting[always] \setupwhitespace[big] \starttext \ConTeXt version = \contextversion Text fot testing indenting of praragraphs. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. Text fot testing indenting of praragraphs. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. Text fot testing indenting of praragraphs. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. \stoptext I think you have to give the amount of indenting as well. Try for example \setupindenting[always,medium] /Mikael ___ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] indenting
On Wed, Nov 9, 2016 at 11:12 AM, Meer, Hans van derwrote: > I do not understand why this is not indented by the latest ConTeXt beta. > Neither do options [yes] or [first] on \setupindenting. > > Hans van der Meer > > > \setupindenting[always] > \setupwhitespace[big] > \starttext > \ConTeXt version = \contextversion > > Text fot testing indenting of praragraphs. A lot of nonsense just to fill > the paragraph so that more than one line is typeset. A lot of nonsense just > to fill the paragraph so that more than one line is typeset. A lot of > nonsense just to fill the paragraph so that more than one line is typeset. > > Text fot testing indenting of praragraphs. A lot of nonsense just to fill > the paragraph so that more than one line is typeset. A lot of nonsense just > to fill the paragraph so that more than one line is typeset. A lot of > nonsense just to fill the paragraph so that more than one line is typeset. > > Text fot testing indenting of praragraphs. A lot of nonsense just to fill > the paragraph so that more than one line is typeset. A lot of nonsense just > to fill the paragraph so that more than one line is typeset. A lot of > nonsense just to fill the paragraph so that more than one line is typeset. > \stoptext I think you have to give the amount of indenting as well. Try for example \setupindenting[always,medium] /Mikael ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] indenting
I do not understand why this is not indented by the latest ConTeXt beta. Neither do options [yes] or [first] on \setupindenting. Hans van der Meer \setupindenting[always] \setupwhitespace[big] \starttext \ConTeXt version = \contextversion Text fot testing indenting of praragraphs. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. Text fot testing indenting of praragraphs. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. Text fot testing indenting of praragraphs. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. \stoptext indenting.pdf Description: indenting.pdf ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] indenting in enumerations in mkiv
Within the enumeration environment I want the first paragraph not to be indented, whereas the second and following paragraphs should start with an indent. The example below works fine in mkii, but I would like to use mkiv in which the first line is also indented. Sytse -- \defineenumeration[example][text=Example,indenting={yes,medium,next}] \starttext contextversion: 2013.05.28 00:36 command: context proef.tex \startexample This first line is indented, but shouldn't. Runs ok under mkii. This second line should be indented and is ok under both mkii and mkiv. \stopexample \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 ___
Re: [NTG-context] indenting in enumerations in mkiv
Am 01.07.2014 um 15:22 schrieb Sytse sytse.knyps...@home.nl: Within the enumeration environment I want the first paragraph not to be indented, whereas the second and following paragraphs should start with an indent. The example below works fine in mkii, but I would like to use mkiv in which the first line is also indented. Sytse -- \defineenumeration[example][text=Example,indenting={yes,medium,next}] \starttext contextversion: 2013.05.28 00:36 command: context proef.tex \startexample This first line is indented, but shouldn't. Runs ok under mkii. This second line should be indented and is ok under both mkii and mkiv. \stopexample \stoptext This is a bug in the enumeration code where the indent setup is used before the title/head is placed which is then handled as first paragraph. To fix this the \indenting command has to be moved after the \directsetup line in strc-con.mkvi: \unexpanded\setvalue{\??constructionstarthandler\v!construction}% this will be redone (reorganized) .. too much boxing {\dostarttagged\t!construction\currentconstruction ... \edef\p_strc_constructions_indenting{\constructionparameter\c!indenting}% \ifx\p_strc_constructions_indenting\empty \else \indenting[\p_strc_constructions_indenting]% \use... \fi ... \directsetup\p_strc_constructions_renderingsetup\relax % \dostoptagged % tag \dostarttagged\t!constructioncontent\empty \ignorespaces} % args not needed 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 ___
Re: [NTG-context] Indenting after floating image
On 2014-02-19 Thangalin wrote: A work-around: \setupexternalfigures[location=default] \setupindenting[yes,medium] \define[1]\PlaceFigure{ \startplacefigure[number=no, location={page}, title={}] \externalfigure[#1] \stopplacefigure \\ \vskip-1em } \starttext \input{ward} \PlaceFigure{cow} \input{ward} \stoptext The wiki states: \setupindenting does not take care of indenting after environments, such as ConTeXt's itemizes, enumerations, definitions, formulas and floats. The work-around forces the new line using \\, then immediately skips back a line. Thanks for sharing your approach. In meantime I've found an alternative solution: ... \stopplacefigure \indentation % this command forces the indentation of the next first paragraph Jan ___ 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 ___
Re: [NTG-context] Indenting after floating image
Ah! I was going to suggest that, but thought you wanted a solution that didn't involve manual adjustments... I also thought I tried adding \indentation to the PlaceFigure macro, but it didn't work (probably because of it being embedded inside another set of braces). ___ 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 ___
Re: [NTG-context] Indenting after floating image
Hi Jan, A work-around: \setupexternalfigures[location=default] \setupindenting[yes,medium] \define[1]\PlaceFigure{ \startplacefigure[number=no, location={page}, title={}] \externalfigure[#1] \stopplacefigure \\ \vskip-1em } \starttext \input{ward} \PlaceFigure{cow} \input{ward} \stoptext The wiki states: \setupindenting does not take care of indenting after environments, such as ConTeXt's itemizes, enumerations, definitions, formulas and floats. The work-around forces the new line using \\, then immediately skips back a line. ___ 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 ___
[NTG-context] Indenting after floating image
Dear All, when an indenting is set, it is applied in a smart way and sometimes suppressed, e.g after images. But when the image is floating and forced to be displayed on a separate page, I would expect the indenting of the following paragraph preserved. Currently it doesn't, see this example: \setupexternalfigures[location=default] \setupindenting[medium, yes] \starttext \input{ward} \startplacefigure[number=no, location={page}, title={}] \externalfigure[cow] \stopplacefigure \input{ward} \stoptext Is there a global switch for it or am I to force the indenting in these cases manually? Thanks, Jan ___ 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 ___
Re: [NTG-context] Indenting in \setuplines
On 6/6/2013 12:36 AM, Marcin Borkowski wrote: Sorry to say that, but neither seems to work... it is hard to say what goes wrong if you only show the error message and no real code 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 ___
Re: [NTG-context] Indenting in \setuplines
Dnia 2013-06-06, o godz. 09:49:27 Hans Hagen pra...@wxs.nl napisał(a): On 6/6/2013 12:36 AM, Marcin Borkowski wrote: Sorry to say that, but neither seems to work... it is hard to say what goes wrong if you only show the error message and no real code Sorry for that, my fault. Now comes the fun part: I *copied* my code from my version of spac-hor.mkiv to the document, and it started to work then! Strange. I attach a MWE. Hans, is it possible to add something like that to spac-hor.mkiv? (This code is not very nice, there's some duplication, but it's simple and works;).) cut here \unprotect \installindentingmethod{oddpairs}{\c_spac_indentation_toggle_state\plusthree} \installindentingmethod{evenpairs}{\c_spac_indentation_toggle_state\plusfour} \newcount \c_spac_par_modulo_four \def\spac_indentation_evenpairs_toggle {% \advance \c_spac_par_modulo_four \plusone \ifnum \c_spac_par_modulo_four=4 \c_spac_par_modulo_four=0 \fi \ifcase \c_spac_par_modulo_four \global\indentationtrue \or \global\indentationfalse \spac_indentation_remove \or \global\indentationfalse \spac_indentation_remove \or \global\indentationtrue \fi } \def\spac_indentation_oddpairs_toggle {% \advance \c_spac_par_modulo_four \plusone \ifnum \c_spac_par_modulo_four=4 \c_spac_par_modulo_four=0 \fi \ifcase \c_spac_par_modulo_four \global\indentationfalse \spac_indentation_remove \or \global\indentationtrue \or \global\indentationtrue \or \global\indentationfalse \spac_indentation_remove \fi } \def\spac_indentation_check_toggle {\ifcase\c_spac_indentation_toggle_state % nothing \or% odd \spac_indentation_no_toggle \or% even \spac_indentation_do_toggle \or% oddpairs \global\let\checkindentation\spac_indentation_oddpairs_toggle \or% evenpairs \global\let\checkindentation\spac_indentation_evenpairs_toggle \fi} \protect \setupindenting[yes,1em] \starttext \startlines[indenting=evenpairs] Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. \stoplines \stoptext cut here Hans Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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 ___
Re: [NTG-context] Indenting in \setuplines
Dnia 2013-06-03, o godz. 15:20:45 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): Hi, I'd like to have my \startlines ... \stoplines indented in the following way: the first two lines unindented, the next two indented, and so on. Basically, this means that I'd like the pattern to be based on (mod 4) arithmetic and not (mod 2). Is it possible? If yes, how? OK, so I thought I can handle this... but not:(. I found the relevant definitions in spac-hor.mkiv and tried to add a line saying \installindentingmethod \v!evenpairs{\c_spac_indentation_toggle_state\plusfour} But after context --make I got an Undefined control sequence. Here's an excerpt from the log information: ! Undefined control sequence. system tex error on line 108 in file /home/marcin/context-2013-05-22-19-28/tex/texmf-context/tex/context/base/spac-hor.mkiv: Undefined control sequence ... 98 99 \installindentingmethod \v!yes {\parindent\d_spac_indentation_par\relax} % not \indent ! 100 \installindentingmethod \v!always{\parindent\d_spac_indentation_par\relax} % not \indent ! 101 102 \installindentingmethod \v!never {\parindent\zeropoint\relax % no \indent ! 103 \c_spac_indentation_toggle_state\zerocount} 104 105 \installindentingmethod \v!odd {\c_spac_indentation_toggle_state\plusone} 106 \installindentingmethod \v!even {\c_spac_indentation_toggle_state\plustwo} 107 %\installindentingmethod \v!oddpairs {\c_spac_indentation_toggle_state\plusthree} 108 \installindentingmethod \v!evenpairs {\c_spac_indentation_toggle_state\plusfour} 109 110 \installindentingmethod \v!normal{\ifx\normalindentation\empty\else 111 \let\v_spac_indentation_current\normalindentation 112 \simplesetupindenting 113 \fi} 114 115 \installindentingmethod \v!reset {\settrue\c_spac_indentation_indent_first 116 \parindent\zeropoint 117 \c_spac_indentation_toggle_state\zerocount} 118 argument \??indentingmethod \v!evenpairs \setvalue #1?-\expandafter \def \csname #1 \endcsname \installindentingmethod ...{\??indentingmethod #1} {#2} l.108 ...{\c_spac_indentation_toggle_state\plusfour} What am I doing wrong? TIA, Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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 ___
Re: [NTG-context] Indenting in \setuplines
On 6/5/2013 11:06 PM, Marcin Borkowski wrote: Dnia 2013-06-03, o godz. 15:20:45 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): Hi, I'd like to have my \startlines ... \stoplines indented in the following way: the first two lines unindented, the next two indented, and so on. Basically, this means that I'd like the pattern to be based on (mod 4) arithmetic and not (mod 2). Is it possible? If yes, how? OK, so I thought I can handle this... but not:(. I found the relevant definitions in spac-hor.mkiv and tried to add a line saying \installindentingmethod \v!evenpairs{\c_spac_indentation_toggle_state\plusfour} % there is no \v!evenpairs \unprotect % english interface only: \installindentingmethod {evenpairs} {\c_spac_indentation_toggle_state\plusfour} % or maybe: \installindentingmethod \v!quadruple {\c_spac_indentation_toggle_state\plusfour} % as \v!quadruple is a known keyword \protect - 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 ___
Re: [NTG-context] Indenting in \setuplines
Dnia 2013-06-06, o godz. 00:22:04 Hans Hagen pra...@wxs.nl napisał(a): On 6/5/2013 11:06 PM, Marcin Borkowski wrote: Dnia 2013-06-03, o godz. 15:20:45 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): Hi, I'd like to have my \startlines ... \stoplines indented in the following way: the first two lines unindented, the next two indented, and so on. Basically, this means that I'd like the pattern to be based on (mod 4) arithmetic and not (mod 2). Is it possible? If yes, how? OK, so I thought I can handle this... but not:(. I found the relevant definitions in spac-hor.mkiv and tried to add a line saying \installindentingmethod \v!evenpairs{\c_spac_indentation_toggle_state\plusfour} % there is no \v!evenpairs \unprotect % english interface only: \installindentingmethod {evenpairs} {\c_spac_indentation_toggle_state\plusfour} % or maybe: \installindentingmethod \v!quadruple {\c_spac_indentation_toggle_state\plusfour} % as \v!quadruple is a known keyword \protect Sorry to say that, but neither seems to work... ! Missing number, treated as zero. to be read again q \v_spac_indentation_current -q uadruple \4unknown #1#2#3#4#5-#2=#1 \relax \spac_indentation_apply_step_one ...on_setup_size \fi \next1 #1,-\spac_indentation_apply_step_one {#1} \syst_helpers_do_process_co... \syst_helpers_do_process_comma_list ...rgument #1, ]\relax \global \advance \... ... l.36 \startlines[indenting=quadruple] ? What do I do? (And what do I do if I really want evenpairs, especially that I'd like to have oddpairs, too, so quadruple is not really a good keyword for me?) TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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 ___
[NTG-context] Indenting in \setuplines
Hi, I'd like to have my \startlines ... \stoplines indented in the following way: the first two lines unindented, the next two indented, and so on. Basically, this means that I'd like the pattern to be based on (mod 4) arithmetic and not (mod 2). Is it possible? If yes, how? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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 ___
[NTG-context] Indenting nested itemize
The following does not seem to indent the second level itemization. The first level is indented correctly by 2em, but the second level is not indenting by 4em. Troy Henderson \setupindenting[no] \setupitemgroup[itemize][1][][margin=2em] \setupitemgroup[itemize][2][][margin=4em] \starttext Here is some text \startitemize \item Here is an item \item Here is another item \startitemize \item Here is a sub-item \item Here is another sub-item \stopitemize \stopitemize \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 ___
[NTG-context] Indenting problems
I can't seem to get indenting to work. I've tried various combinations of \setupindenting, \indenting and \indent to no avail. My latest try looks like this: \setuppapersize[letter][letter] \setuplayout [ backspace=0.10\paperwidth, width=0.60\paperwidth, rightmargin=0.20\paperwidth, footer=0pt, topspace=0.10\paperheight, height=0.80\paperheight] \setuppagenumbering[alternative=doublesided] \setupbackgrounds[text][rightmargin][frame=on,rulethickness=0.05pt] \setuplabeltext[en][chapter=Chapter ] \define[2]\ChapterCommand {\inright[][align=middle]{#1}% \midaligned{#2}} \setuphead [chapter] [command=\ChapterCommand, after=\hairline\blank, header=empty, textstyle=\cgd, numberstyle=\sca] \definefontfeature[smallcaps][smallcaps][onum=yes] \definetypeface[mainface][rm][serif] [pagella] [default] \definetypeface[mainface][ss][sans] [modern] [default] \definetypeface[mainface][cg][calligraphy][chorus] [default] \definetypeface[mainface][mm][math] [palatino][default] \setupbodyfont[mainface] \setupindenting[next] \starttext %\showframe \indenting[small] \startchapter[title=Knuth] \input /usr/home/wwm/LoremIpsum.tex %\dorecurse{10}{\input knuth\par} \stopchapter \startchapter[title=Zapf] \dorecurse{10}{\input zapf\par} \stopchapter \stoptext (Yes, this is an expanded version of Wolfgang's example from yesterday.) This is LuaTeX, Version beta-0.70.2-2012052318 (TeX Live 2012) ConTeXt ver: 2012.05.29 00:12 MKIV fmt: 2012.6.7 int: english/english i386-FreeBSD 9.0 -- Bill Meahan K8QN The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails. -- William Arthur Ward This message is digitally signed with an X.509 certificate to prove it is from me and has not been altered since it was sent. smime.p7s Description: S/MIME Cryptographic Signature ___ 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 ___
Re: [NTG-context] Indenting problems
On Fri, 8 Jun 2012, Bill Meahan wrote: \setupindenting[next] \setupindenting[next,yes] See http://wiki.contextgarden.net/Indentation#Setting_up_indentation_for_the_whole_document 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 ___
Re: [NTG-context] Indenting problems
On Fri, 8 Jun 2012, Aditya Mahajan wrote: On Fri, 8 Jun 2012, Bill Meahan wrote: \setupindenting[next] \setupindenting[next,yes] Sorry, that should be \setupindenting[medium, next, yes] See http://wiki.contextgarden.net/Indentation#Setting_up_indentation_for_the_whole_document (The above page is not completely clear on this). 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 ___
Re: [NTG-context] Indenting problems
On 06/08/2012 10:20, Aditya Mahajan wrote: On Fri, 8 Jun 2012, Aditya Mahajan wrote: On Fri, 8 Jun 2012, Bill Meahan wrote: \setupindenting[next] \setupindenting[next,yes] Sorry, that should be \setupindenting[medium, next, yes] Yep, found that out before I got a chance to read your second note. Thanks so much! -- Bill Meahan K8QN The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails. -- William Arthur Ward This message is digitally signed with an X.509 certificate to prove it is from me and has not been altered since it was sent. smime.p7s Description: S/MIME Cryptographic Signature ___ 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 ___
Re: [NTG-context] indenting \startlines... \stoplines
Am 31.12.2011 um 20:33 schrieb Pablo Rodríguez: Hi there, I want to be a \startlines... \stoplines environment to be 10cm away from the left margin. I know this is a basic question, but I have no idea how to do it. As the lines environment has no margin keys you need the narrower environment to increase the left margin. \definenarrower[narrowlines][left=10cm] \setuplines [before={\startnarrowlines[left]}, after=\stopnarrowlines] \starttext \showframe \startlines One Two Three \stoplines \stoptext 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 ___
Re: [NTG-context] indenting \startlines... \stoplines
On 01/01/2012 10:30 AM, Wolfgang Schuster wrote: Am 31.12.2011 um 20:33 schrieb Pablo Rodríguez: Hi there, I want to be a \startlines... \stoplines environment to be 10cm away from the left margin. I know this is a basic question, but I have no idea how to do it. As the lines environment has no margin keys you need the narrower environment to increase the left margin. Many thanks for your help, Wolfgang. Pablo -- http://www.ousia.tk ___ 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 ___
[NTG-context] indenting \startlines... \stoplines
Hi there, I want to be a \startlines... \stoplines environment to be 10cm away from the left margin. I know this is a basic question, but I have no idea how to do it. Since this is my last question to the list (this year ;-)), I'd really appreciate, if anyone would be so kind to answer it. Happy New Year, Pablo -- http://www.ousia.tk ___ 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 ___
[NTG-context] Indenting in footnotes
I use: \setupindenting[yes, small, next] This works on the main text, but not on the footnotes. In \setupfootnotes I do not find an option to do the same. Am I overlooking something, or is it really not possible? -- Cecil Westerhof ___ 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 ___
Re: [NTG-context] Indenting in footnotes
Am 15.08.2011 um 12:56 schrieb Cecil Westerhof: I use: \setupindenting[yes, small, next] This works on the main text, but not on the footnotes. In \setupfootnotes I do not find an option to do the same. Am I overlooking something, or is it really not possible? \setupnotedefintion[footnote][indenting=…] 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 ___
Re: [NTG-context] Indenting in footnotes
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 15.08.2011 um 12:56 schrieb Cecil Westerhof: I use: \setupindenting[yes, small, next] This works on the main text, but not on the footnotes. In \setupfootnotes I do not find an option to do the same. Am I overlooking something, or is it really not possible? \setupnotedefintion[footnote][indenting=…] Does not exist. What comes closest is the following: \setupfootnotedefinition[footnote][indenting=yes,small,next] But that does not have the required effect. It even generates a blanco page. I attached the tex and pdf files. -- Cecil Westerhof dummy.tex Description: TeX document dummy.pdf Description: Adobe PDF document ___ 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 ___
Re: [NTG-context] Indenting in footnotes
Am 15.08.2011 um 13:23 schrieb Cecil Westerhof: 2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 15.08.2011 um 12:56 schrieb Cecil Westerhof: I use: \setupindenting[yes, small, next] This works on the main text, but not on the footnotes. In \setupfootnotes I do not find an option to do the same. Am I overlooking something, or is it really not possible? \setupnotedefintion[footnote][indenting=…] Does not exist. What comes closest is the following: \setupfootnotedefinition[footnote][indenting=yes,small,next] But that does not have the required effect. It even generates a blanco page. I attached the tex and pdf files. There was a “i” missing and you need braces around the list: \setupnotedefinition[footnote][indenting={yes,small,next}] BTW: You can replace “\ConTeXt\space” with “\CONTEXT\ ” and for longer footnotes you can also replace \footnote{…} with \startfootnote …\stopfootnote. 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 ___
Re: [NTG-context] Indenting in footnotes
Am 15.08.2011 um 13:57 schrieb Cecil Westerhof: BTW: is it possible to define the footnotes somewhere else? You mean like \useurl and \url? 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 ___
Re: [NTG-context] Indenting in footnotes
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com BTW: is it possible to define the footnotes somewhere else? You mean like \useurl and \url? Yes, it now 'distracts' from the main info. -- Cecil Westerhof ___ 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 ___
Re: [NTG-context] Indenting in footnotes
Am 15.08.2011 um 14:16 schrieb Cecil Westerhof: 2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com BTW: is it possible to define the footnotes somewhere else? You mean like \useurl and \url? Yes, it now 'distracts' from the main info. No, what’s possible is this: \startbuffer[footnote:a] Note A \stopbuffer \startsetups[footnote:b] Note B \stopsetups %\setvariables[footnote][c={Note C}] \setvariable{footnote}{c}{Note C} \starttext A\footnote{\getbuffer[footnote:a]} B\footnote{\texsetup{footnote:b}} C\footnote{\getvariable{footnote}{c}} \stoptext You can write a feature request because it’s easy to add this functionality but it depends on Hans. 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 ___
Re: [NTG-context] Indenting in footnotes
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com BTW: is it possible to define the footnotes somewhere else? You mean like \useurl and \url? Yes, it now 'distracts' from the main info. No, what’s possible is this: \startbuffer[footnote:a] Note A \stopbuffer \startsetups[footnote:b] Note B \stopsetups %\setvariables[footnote][c={Note C}] \setvariable{footnote}{c}{Note C} \starttext A\footnote{\getbuffer[footnote:a]} B\footnote{\texsetup{footnote:b}} C\footnote{\getvariable{footnote}{c}} \stoptext That is already a lot better as it was first. ;-} You can write a feature request because it’s easy to add this functionality but it depends on Hans. I'll do that. -- Cecil Westerhof ___ 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 ___
[NTG-context] Indenting in framed environments
Hi, How can I indent text within framedtext environments? I'm asking because my definitions/theorems/etc. commands are surrounded by startframed/stopframed and I want the text inside to be indented. Géry___ 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 ___
Re: [NTG-context] Indenting in framed environments
Am 31.08.2010 um 21:21 schrieb Géry Ogam: Hi, How can I indent text within framedtext environments? I'm asking because my definitions/theorems/etc. commands are surrounded by startframed/stopframed and I want the text inside to be indented. \setupenumerations[...][indenting=yes] 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 ___
Re: [NTG-context] indenting
Hi Xan. You may try: margin=yes, location=serried, Regards. 2009/2/18, Xan dxpubl...@telefonica.net: I have the following enumeration: \defineenumeration [definition] [text=Definició,headstyle=bold,style=italic, between=\blank,titledistance=.5em, textdistance=1em,stopper=.,location=hanging,titleleft=(,titleright=)] and when I use it (\startdefinition ... \stopdefinition) it appears not indenting. I want to indenting it, but \indenting before \startdefinition does not work. How can do that? Thanks in advance, Xan. ___ 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 ___ ___ 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 ___
[NTG-context] indenting
I have the following enumeration: \defineenumeration [definition] [text=Definició,headstyle=bold,style=italic, between=\blank,titledistance=.5em, textdistance=1em,stopper=.,location=hanging,titleleft=(,titleright=)] and when I use it (\startdefinition ... \stopdefinition) it appears not indenting. I want to indenting it, but \indenting before \startdefinition does not work. How can do that? Thanks in advance, Xan. ___ 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 ___
[NTG-context] Indenting first line of paragraphs
Hi, I would like to have the first line of paragraphs indented but the command \setupindenting[medium] (or small or big ) does not produce anything, on none of my machines (all Macs), and neither with TL2007 nor TL2008. What can I do about it? Thanks in advance. Robert Blackstone ___ 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 ___
Re: [NTG-context] Indenting / small paper size / strange paragraph cutting
Aditya Mahajan wrote: — look at the end of the first page : there's a big gap. Don't know why. It's in the middle of a sentence, and the paragraph is big after. Sorry, I don't have Gentium and I do not get the same problem with latin modern. That's because of the penalty for pages ending with a hyphen. At the page size of an ebook, you are better off with \brokenpenalty \zerocount — at the end of the second page, third line before the end, the « dans » is in the margin. I can't hyphenate this word. I woud prefer having bigger white spaces rather than this. Try \setuptolerance[verytolerant, stretch] — on page 3, before « Une horloge » I can't have indentation after \crlf. I used a « \packed » command after empty line but it's not what I want. I want a new line, with indentation but not a « \par » vertical spacing. In other words, you are lying. :-) \def\fakepar{\begingroup\parskip0pt\par\dogotopar{\indent\endgroup}} and then Dans l’arrière pays.\fakepar Une horloge ... does what you want, but it doesn't deserve a price for elegance either. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting / small paper size / strange paragraph cutting
2008/7/26 Aditya Mahajan [EMAIL PROTECTED]: On Sat, 26 Jul 2008, Olivier Guéry wrote: Hello, I got my Sony prs 505 ebook reader last week… Nice machine. I tried to set-up one of my favorite book to be read on this. Here are the specials part : — Page size : 120mm x 90 mm — margins : 3mm up/down and 2mm left/right (could be 1mm, in fact) Here are the links to the .tex and .pdf files. Here are my problems : — I can't set the space before my section number : in line 38 : \setuphead[section][style=tfc, numberstyle=bold, before={\blank[3*big]}, alternative=middle] everithing work but the « before » section Try using before={\blank[force,3*big]}. It works great ! Thank's. Sad that we have to use a « force » command. — still can't have automatic indent after section. I need to force it using « \indentation » (line 47) Use \setupindentation[big,yes] and \setuphead[section][indentnext=yes] It works too \o/. Sad again. Why, when I say « always » I can't have this feature ? — at the end of the second page, third line before the end, the « dans » is in the margin. I can't hyphenate this word. I woud prefer having bigger white spaces rather than this. Try \setuptolerance[verytolerant, stretch] Again, it was the trick (and I should have found this one by myself…). It works too with « tolerant ». Thank's a lot, Olivier. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.com ___ 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 ___
Re: [NTG-context] Indenting / small paper size / strange paragraph cutting
2008/7/27 Taco Hoekwater [EMAIL PROTECTED]: Aditya Mahajan wrote: — look at the end of the first page : there's a big gap. Don't know why. It's in the middle of a sentence, and the paragraph is big after. Sorry, I don't have Gentium and I do not get the same problem with latin modern. That's because of the penalty for pages ending with a hyphen. At the page size of an ebook, you are better off with \brokenpenalty \zerocount That was it. Strange, I had to put this after « \starttext » to get it run. — on page 3, before « Une horloge » I can't have indentation after \crlf. I used a « \packed » command after empty line but it's not what I want. I want a new line, with indentation but not a « \par » vertical spacing. In other words, you are lying. :-) \def\fakepar{\begingroup\parskip0pt\par\dogotopar{\indent\endgroup}} and then Dans l'arrière pays.\fakepar Une horloge ... does what you want, but it doesn't deserve a price for elegance either. I'm totally right with you. I tried to did this because it's the way I find it on the paper book. But it's quite hugly and strange. Your trick is the good one. Sadly S. Beckett books are still under copyright, but I can promis that the result is quite perfect. Cheers, Olivier. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.com ___ 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 ___
[NTG-context] Indenting / small paper size / strange paragraph cutting
Hello, I got my Sony prs 505 ebook reader last week… Nice machine. I tried to set-up one of my favorite book to be read on this. Here are the specials part : — Page size : 120mm x 90 mm — margins : 3mm up/down and 2mm left/right (could be 1mm, in fact) Here are the links to the .tex and .pdf files. Here are my problems : — I can't set the space before my section number : in line 38 : \setuphead[section][style=tfc, numberstyle=bold, before={\blank[3*big]}, alternative=middle] everithing work but the « before » section — still can't have automatic indent after section. I need to force it using « \indentation » (line 47) — look at the end of the first page : there's a big gap. Don't know why. It's in the middle of a sentence, and the paragraph is big after. — at the end of the second page, third line before the end, the « dans » is in the margin. I can't hyphenate this word. I woud prefer having bigger white spaces rather than this. — on page 3, before « Une horloge » I can't have indentation after \crlf. I used a « \packed » command after empty line but it's not what I want. I want a new line, with indentation but not a « \par » vertical spacing. Sorry for this 3 pages exemple. It was hard to do less (but now you have the begining of the french translation of « Stirrings Still » from Samuel Beckett). Olivier. http://nemolivier.free.fr/Soubresauts-prs-small.pdf http://nemolivier.free.fr/Soubresauts-prs-small.tex PS : the new firmware for the sony PRS 505 allow to use .epub files. It's a realy good news : this is an open-source format ! A chance for us to avoid the mp3 mess. I hope context can be used to produce them one time. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.com ___ 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 ___
Re: [NTG-context] Indenting / small paper size / strange paragraph cutting
On Sat, 26 Jul 2008, Olivier Guéry wrote: Hello, I got my Sony prs 505 ebook reader last week… Nice machine. I tried to set-up one of my favorite book to be read on this. Here are the specials part : — Page size : 120mm x 90 mm — margins : 3mm up/down and 2mm left/right (could be 1mm, in fact) Here are the links to the .tex and .pdf files. Here are my problems : — I can't set the space before my section number : in line 38 : \setuphead[section][style=tfc, numberstyle=bold, before={\blank[3*big]}, alternative=middle] everithing work but the « before » section Try using before={\blank[force,3*big]}. — still can't have automatic indent after section. I need to force it using « \indentation » (line 47) Use \setupindentation[big,yes] and \setuphead[section][indentnext=yes] — look at the end of the first page : there's a big gap. Don't know why. It's in the middle of a sentence, and the paragraph is big after. Sorry, I don't have Gentium and I do not get the same problem with latin modern. — at the end of the second page, third line before the end, the « dans » is in the margin. I can't hyphenate this word. I woud prefer having bigger white spaces rather than this. Try \setuptolerance[verytolerant, stretch] — on page 3, before « Une horloge » I can't have indentation after \crlf. I used a « \packed » command after empty line but it's not what I want. I want a new line, with indentation but not a « \par » vertical spacing. I don't know how to get this. You can use \vskip -2em (play around with the length) but there should be a proper way. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \indenting[next] and math = no vertical space before the formula
On Tue, Apr 29, 2008 at 6:49 AM, Aditya Mahajan [EMAIL PROTECTED] wrote: On Mon, 28 Apr 2008, Mikael Persson wrote: Hello again, * snip * I could reproduce the result and have also a fix but I don't know what the correct reults should be and other people like Aditya should decide if it makes sense to change the current behaviour. \def\startdisplaymath {\ifgridsnapping \beforedisplayspace \snapmathtogrid\vbox * snip * Wolfgang This fix seems not to solve the problem entirely. With this fix applied, If one now put a formula inside an enumeration one gets double space before the formula. This is a test file that shows the problem: This is basically because in enumerations indenting is set to never. You can see the same affect with \setupindenting[no] \testtext One possible fix is to add indenting=(reset|next|first) %default is never to the \setupenumeration command. For example \defineenumeration[example] [text=Example, location=serried, width=fit, indenting=reset, %% Add This distance=0.5em, way=bysection, ] Another is to change \startdisplaymath to \def\startdisplaymath {\ifgridsnapping \beforedisplayspace \snapmathtogrid\vbox \bgroup \informulatrue %\forgetall % breaks side floats \else \bgroup \parskip\formulaparskip % ! ! \informulatrue %\forgetall % otherwise backgrounds fail \ifdim\lastskip\zeropoint\else \par \ifvmode \ifdim\parskip\zeropoint\relax \whitespace \vskip-\parskip % kind of forces and cancels again \fi \fi \fi \doif\displaygridcorrection{-\v!top}{\kern-\strutht}% new, currently only option/default \beforedisplayspace \par \ifvmode \ifdim\parskip\zeropoint\relax \else \ifindentfirstparagraph \verticalstrut \vskip-\struttotal \vskip-\baselineskip \fi\fi \fi \fi $$\setdisplaydimensions \setpredisplaysize\lastlinewidth \startinnermath} But this is getting ugly. Aditya Thank you Aditya, but I don't get that to work. Both with ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2008.4.24 int: english/english (with the fix earlier in this thread) and ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2008.4.24 int: english/english (which is the one from new ubuntu, without the fix) this fails with the following error msg: %% Start error msg ! Illegal unit of measure (pt inserted). to be read again \chardef \@@in:reset ...rue \parindent \zerocount \chardef \indentingtoggle \zerocount \next1 #1,-\docomplexsetupindentingB {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... argument ...ndenting ]\docomplexsetupindentingB \checkeverypar \ifindentfi... \firstofoneargument #1-#1 ... l.29 \testexpr % Too much space before the formula if the fix is applied, ? %% Stop error msg The file that gives that error is: %% Begin file \setupindenting[yes,small] \indenting[next] \def\testtext{This is just some text so we see better what happens.} \def\testexpr{% \par \testtext \startformula f(x)= \sin(x) \stopformula \testtext \par } \defineenumeration[example] [text=Example, location=serried, width=fit, indenting=reset, distance=0.5em, way=bysection, ] \starttext \testexpr % OK if fix is applied, otherwise to little space before the formula \startexample \testexpr % Too much space before the formula if the fix is applied, otherwise OK. \stopexample \stoptext %% End file Best regards, Micke P ___ 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 ___
Re: [NTG-context] \indenting[next] and math = no vertical space before the formula
Thank you Aditya, but I don't get that to work. Both with ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2008.4.24 int: english/english (with the fix earlier in this thread) and ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2008.4.24 int: english/english (which is the one from new ubuntu, without the fix) Update your ConTeXt istallation, both systems use old versions. 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 ___
Re: [NTG-context] \indenting[next] and math = no vertical space before the formula
On Wed, Apr 30, 2008 at 9:33 AM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Thank you Aditya, but I don't get that to work. Both with ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2008.4.24 int: english/english (with the fix earlier in this thread) and ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2008.4.24 int: english/english (which is the one from new ubuntu, without the fix) Update your ConTeXt istallation, both systems use old versions. Wolfgang I wish I could. I cant even run the new version from ubuntu, since there is some problem with the fourier fonts, explained in an earlier mail in this thread (and also in an earlier post: http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html ) And new minimals seem not to include the fourier fonts. If I set indenting=next (or first) in the enumeration, the file compiles... Sorry for complaining about old versions of ConTeXt. I am finishing my PhD thesis, and have not found any nice combinations of text and math fonts in the new minimals. (I am not too fond of the lm fonts). If you have a tip about such fonts, please tell me :) Micke P ___ 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 ___
Re: [NTG-context] \indenting[next] and math = no vertical space before the formula
On Wed, Apr 30, 2008 at 9:45 AM, Mikael Persson [EMAIL PROTECTED] wrote: On Wed, Apr 30, 2008 at 9:33 AM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Thank you Aditya, but I don't get that to work. Both with ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2008.4.24 int: english/english (with the fix earlier in this thread) and ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2008.4.24 int: english/english (which is the one from new ubuntu, without the fix) Update your ConTeXt istallation, both systems use old versions. Wolfgang I wish I could. I cant even run the new version from ubuntu, since there is some problem with the fourier fonts, explained in an earlier mail in this thread (and also in an earlier post: http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html) No solution for this problem. And new minimals seem not to include the fourier fonts. If I set indenting=next (or first) in the enumeration, the file compiles... Sorry for complaining about old versions of ConTeXt. I am finishing my PhD thesis, and have not found any nice combinations of text and math fonts in the new minimals. (I am not too fond of the lm fonts). If you have a tip about such fonts, please tell me :) You don't have update your complete installation, cont-tmf.zip is enough for a new version but you also need the latest version of the latin modern fonts. 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 ___
Re: [NTG-context] \indenting[next] and math = no vertical space before the formula
On Wed, 30 Apr 2008, Mikael Persson wrote: On Tue, Apr 29, 2008 at 6:49 AM, Aditya Mahajan [EMAIL PROTECTED] wrote: On Mon, 28 Apr 2008, Mikael Persson wrote: Hello again, * snip * I could reproduce the result and have also a fix but I don't know what the correct reults should be and other people like Aditya should decide if it makes sense to change the current behaviour. \def\startdisplaymath {\ifgridsnapping \beforedisplayspace \snapmathtogrid\vbox * snip * Wolfgang This fix seems not to solve the problem entirely. With this fix applied, If one now put a formula inside an enumeration one gets double space before the formula. This is a test file that shows the problem: This is basically because in enumerations indenting is set to never. You can see the same affect with \setupindenting[no] \testtext One possible fix is to add indenting=(reset|next|first) %default is never to the \setupenumeration command. For example \defineenumeration[example] [text=Example, location=serried, width=fit, indenting=reset, %% Add This distance=0.5em, way=bysection, ] Another is to change \startdisplaymath to \def\startdisplaymath {\ifgridsnapping \beforedisplayspace \snapmathtogrid\vbox \bgroup \informulatrue %\forgetall % breaks side floats \else \bgroup \parskip\formulaparskip % ! ! \informulatrue %\forgetall % otherwise backgrounds fail \ifdim\lastskip\zeropoint\else \par \ifvmode \ifdim\parskip\zeropoint\relax \whitespace \vskip-\parskip % kind of forces and cancels again \fi \fi \fi \doif\displaygridcorrection{-\v!top}{\kern-\strutht}% new, currently only option/default \beforedisplayspace \par \ifvmode \ifdim\parskip\zeropoint\relax \else \ifindentfirstparagraph \verticalstrut \vskip-\struttotal \vskip-\baselineskip \fi\fi \fi \fi $$\setdisplaydimensions \setpredisplaysize\lastlinewidth \startinnermath} But this is getting ugly. Aditya Thank you Aditya, but I don't get that to work. Both with ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2008.4.24 int: english/english (with the fix earlier in this thread) and ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2008.4.24 int: english/english (which is the one from new ubuntu, without the fix) this fails with the following error msg: %% Start error msg ! Illegal unit of measure (pt inserted). to be read again \chardef \@@in:reset ...rue \parindent \zerocount \chardef \indentingtoggle \zerocount \next1 #1,-\docomplexsetupindentingB {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... argument ...ndenting ]\docomplexsetupindentingB \checkeverypar \ifindentfi... \firstofoneargument #1-#1 An old bug (more than two month old :) Also add this \unprotect \defineindentingmethod [\v!reset] {\indentfirstparagraphtrue \parindent\zeropoint%AM was \zerocount \chardef\indentingtoggle\zerocount} \protect 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \indenting[next] and math = no vertical space before the formula
On Wed, Apr 30, 2008 at 7:02 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: On Wed, 30 Apr 2008, Mikael Persson wrote: On Tue, Apr 29, 2008 at 6:49 AM, Aditya Mahajan [EMAIL PROTECTED] wrote: On Mon, 28 Apr 2008, Mikael Persson wrote: Hello again, * snip * I could reproduce the result and have also a fix but I don't know what the correct reults should be and other people like Aditya should decide if it makes sense to change the current behaviour. \def\startdisplaymath {\ifgridsnapping \beforedisplayspace \snapmathtogrid\vbox * snip * Wolfgang This fix seems not to solve the problem entirely. With this fix applied, If one now put a formula inside an enumeration one gets double space before the formula. This is a test file that shows the problem: This is basically because in enumerations indenting is set to never. You can see the same affect with \setupindenting[no] \testtext One possible fix is to add indenting=(reset|next|first) %default is never to the \setupenumeration command. For example \defineenumeration[example] [text=Example, location=serried, width=fit, indenting=reset, %% Add This distance=0.5em, way=bysection, ] Another is to change \startdisplaymath to \def\startdisplaymath {\ifgridsnapping \beforedisplayspace \snapmathtogrid\vbox \bgroup \informulatrue %\forgetall % breaks side floats \else \bgroup \parskip\formulaparskip % ! ! \informulatrue %\forgetall % otherwise backgrounds fail \ifdim\lastskip\zeropoint\else \par \ifvmode \ifdim\parskip\zeropoint\relax \whitespace \vskip-\parskip % kind of forces and cancels again \fi \fi \fi \doif\displaygridcorrection{-\v!top}{\kern-\strutht}% new, currently only option/default \beforedisplayspace \par \ifvmode \ifdim\parskip\zeropoint\relax \else \ifindentfirstparagraph \verticalstrut \vskip-\struttotal \vskip-\baselineskip \fi\fi \fi \fi $$\setdisplaydimensions \setpredisplaysize\lastlinewidth \startinnermath} But this is getting ugly. Aditya Thank you Aditya, but I don't get that to work. Both with ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2008.4.24 int: english/english (with the fix earlier in this thread) and ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2008.4.24 int: english/english (which is the one from new ubuntu, without the fix) this fails with the following error msg: %% Start error msg ! Illegal unit of measure (pt inserted). to be read again \chardef \@@in:reset ...rue \parindent \zerocount \chardef \indentingtoggle \zerocount \next1 #1,-\docomplexsetupindentingB {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... argument ...ndenting ]\docomplexsetupindentingB \checkeverypar \ifindentfi... \firstofoneargument #1-#1 An old bug (more than two month old :) Also add this \unprotect \defineindentingmethod [\v!reset] {\indentfirstparagraphtrue \parindent\zeropoint%AM was \zerocount \chardef\indentingtoggle\zerocount} \protect Aditya Thank you Aditya (and also thank you Wolfgang!) Your help is really appreciated! Micke P ___ 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 ___
Re: [NTG-context] \indenting[next] and math = no vertical space before the formula
Hello again, * snip * I could reproduce the result and have also a fix but I don't know what the correct reults should be and other people like Aditya should decide if it makes sense to change the current behaviour. \def\startdisplaymath {\ifgridsnapping \beforedisplayspace \snapmathtogrid\vbox * snip * Wolfgang This fix seems not to solve the problem entirely. With this fix applied, If one now put a formula inside an enumeration one gets double space before the formula. This is a test file that shows the problem: %%% Test file \setupindenting[yes,small] \indenting[next] \def\testtext{This is just some text so we see better what happens.} \def\testexpr{% \par \testtext \startformula f(x)= \sin(x) \stopformula \testtext \par } \defineenumeration[example] [text=Example, location=serried, width=fit, distance=0.5em, way=bysection, ] \starttext \testexpr % OK if fix is applied, otherwise to little space before the formula \startexample \testexpr % Too much space before the formula if the fix is applied, otherwise OK. \stopexample \stoptext %%% Stop testfile Best regards, Micke P PS Hans, I save the timing testing for next time I try LuaTeX. ___ 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 ___
[NTG-context] \indenting[next] and math = no vertical space before the formula
Dear all, I have a problem with \indenting[next] combined with math formulas. Look at the example below. The space between the text above the formula and the formula is way to small. This goes away if I change next to for example yes. Btw, this happens on my TeXLive 2007 on ubuntu at home, my ConTeXt minimal from 2007-04-03 at work and on live.contextgarden.net (with pdfTeX but not LuaTeX). Do I misuse the indenting macros? Thanks, Micke P % test file \setupindenting[yes,small] \indenting[next] \starttext Hello World! This is just some dumb text to show the problem. \startformula a=b \stopformula Goodbye World! The space below the formula is OK. \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \indenting[next] and math = no vertical space before the formula
On Thu, Apr 24, 2008 at 12:15 PM, Mikael Persson [EMAIL PROTECTED] wrote: Dear all, I have a problem with \indenting[next] combined with math formulas. Look at the example below. The space between the text above the formula and the formula is way to small. This goes away if I change next to for example yes. Btw, this happens on my TeXLive 2007 on ubuntu at home, my ConTeXt minimal from 2007-04-03 at work and on live.contextgarden.net (with pdfTeX but not LuaTeX). Do I misuse the indenting macros? Thanks, Micke P % test file \setupindenting[yes,small] \indenting[next] \starttext Hello World! This is just some dumb text to show the problem. \startformula a=b \stopformula Goodbye World! The space below the formula is OK. \stoptext I could reproduce the result and have also a fix but I don't know what the correct reults should be and other people like Aditya should decide if it makes sense to change the current behaviour. \def\startdisplaymath {\ifgridsnapping \beforedisplayspace \snapmathtogrid\vbox \bgroup \informulatrue %\forgetall % breaks side floats \else \bgroup \parskip\formulaparskip % ! ! \informulatrue %\forgetall % otherwise backgrounds fail \ifdim\lastskip\zeropoint\else \par \ifvmode \ifdim\parskip\zeropoint\relax \whitespace \vskip-\parskip % kind of forces and cancels again \fi \fi \fi \doif\displaygridcorrection{-\v!top}{\kern-\strutht}% new, currently only option/default \beforedisplayspace \par \ifvmode \ifindentfirstparagraph \verticalstrut \vskip-\struttotal \vskip-\baselineskip \fi \fi \fi $$\setdisplaydimensions \setpredisplaysize\lastlinewidth \startinnermath} I added the \ifindentfirstparagraph test before the last skip upwards is executed. 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 ___
Re: [NTG-context] \indenting[next] and math = no vertical space before the formula
Aditya Mahajan wrote: Hans, if you agree with Wolfgang's fix, I think it should be included in core-mat. i just wait till you send me a core-mat with fixes .. fixing whitespace is always a bit tricky ... test with/without whitespace as well as with grids 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 - ___ 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 ___
Re: [NTG-context] \indenting[next] and math = no vertical space before the formula
Thank you Wolfgang, Aditya and Hans for your kind answers. Today the new ubuntu was released, and I did upgrade. That was not too smart: With the newer TeXLive in ubuntu 8.04 came an updated ConTeXt which gave me the problem explained in http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html again. Since I am finishing my PhD thesis and really want to use the utopia+fourier fonts, I downgraded to an old ConTeXt minimal for now. I have not managed to get Wolfgang's solution to work (just tried to copy that definition to my file, and that did not change the vertical space. I will try to make the change in core-mat.tex now). However, some questions remain: 1) I also tried the new context minimal with LuaTeX (to see if it worked better there) and found out that the fourier fonts are not included in the minimals anymore. Are there any plans to include them? Or to make some kind of package with these and other nice free fonts? 2) Will the problem from http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html go away in the near future (of new versions)? From the answers to that question I did not really get if the problem was a big one or not. Best Regards, Micke P PS I am impressed by the speed of LuaTeX. It compiled my document in ~20s instead of 1-2 minutes. On Thu, Apr 24, 2008 at 7:28 PM, Hans Hagen [EMAIL PROTECTED] wrote: Aditya Mahajan wrote: Hans, if you agree with Wolfgang's fix, I think it should be included in core-mat. i just wait till you send me a core-mat with fixes .. fixing whitespace is always a bit tricky ... test with/without whitespace as well as with grids 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 - ___ 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 ___ ___ 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 ___
Re: [NTG-context] \indenting[next] and math = no vertical space before the formula
First, thank you Wolfgang, I tried to change it in the core-mat.tex and it looks great now! 1) I also tried the new context minimal with LuaTeX (to see if it worked better there) and found out that the fourier fonts are not included in the minimals anymore. Are there any plans to include them? Or to make some kind of package with these and other nice free fonts? mojca will look into it (out of reach, mail etc now) since it came up last week sounds great! 2) Will the problem from http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html go away in the near future (of new versions)? From the answers to that question I did not really get if the problem was a big one or not. depends on who wants to fix it -) I don't know what to do (and I am not a programmer), but if there is some monkey-see-monkey-do work, I am happy to help. PS I am impressed by the speed of LuaTeX. It compiled my document in ~20s instead of 1-2 minutes. Due to mplib or in general? Some parts of mkiv can still be sped up, e.g. xml processing, but there's not that much more to gain in font handling (that is ... we're playing with runtime mp fonts and there we can gain a lot when the new img related features show up). Also, some mechanisms will be reimplemented and as such be sped up. Hm, I hoped you would tell me why ;) The document is a math document with a lot of references, 5 different bibliographies. But no MetaPost graphics, just plain text + formulas. It is about 100 pages at the moment. Could it maybe be the fact that I am changing font? With LuaTeX I was using the lm fonts. I have a feeling it takes a bit longer to load other fonts, but that might just be a feeling from what is written in the terminal? Micke P ___ 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 ___
Re: [NTG-context] \indenting[next] and math = no vertical space before the formula
Mikael Persson wrote: First, thank you Wolfgang, I tried to change it in the core-mat.tex and it looks great now! 1) I also tried the new context minimal with LuaTeX (to see if it worked better there) and found out that the fourier fonts are not included in the minimals anymore. Are there any plans to include them? Or to make some kind of package with these and other nice free fonts? mojca will look into it (out of reach, mail etc now) since it came up last week sounds great! 2) Will the problem from http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html go away in the near future (of new versions)? From the answers to that question I did not really get if the problem was a big one or not. depends on who wants to fix it -) I don't know what to do (and I am not a programmer), but if there is some monkey-see-monkey-do work, I am happy to help. PS I am impressed by the speed of LuaTeX. It compiled my document in ~20s instead of 1-2 minutes. Due to mplib or in general? Some parts of mkiv can still be sped up, e.g. xml processing, but there's not that much more to gain in font handling (that is ... we're playing with runtime mp fonts and there we can gain a lot when the new img related features show up). Also, some mechanisms will be reimplemented and as such be sped up. Hm, I hoped you would tell me why ;) The document is a math document with a lot of references, 5 different bibliographies. But no MetaPost graphics, just plain text + formulas. It is about 100 pages at the moment. Could it maybe be the fact that I am changing font? With LuaTeX I was using the lm fonts. I have a feeling it takes a bit longer to load other fonts, but that might just be a feeling from what is written in the terminal? mkiv needs less fonts but they may be bigger (more glyphs) at the end of a run you see the statistics, just write them down occasionally so that we can see the improvements other reasons can be that some mem bugs have been removed over time adn that mkiv share more data, so that overall less memory is needed which in turn gives less garbage collection try adding \usemodule[timing] to the top of the doc and one or more \ShowUsage {} \ShowMemoryUsage{} \ShowNodeUsage {} at the end ... it generates some pictures that show what takes most time - 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 - ___ 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 ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
[EMAIL PROTECTED] wrote: Sorry, I wasn't precise enough: I would like to indent paragraphs inside a block created with \defineenumeration (like theorems...), not inside an itemize block. The output in this latter case is indeed quite awful. \defineenumeration[theorem][indenting=always] This is actually easier to find, because it actually is documented in texshow: http://texshow.contextgarden.net/ Every paragraph (preceded by an empty line or \par) in the text flow will get indented, independently of: * what is above (formula, float, etc) * what environment it belongs to (quote, theorem, abstract, etc.), as long as this environment doesn't need alignment (like itemize, tabular, etc.) Of course, particular objects like captions, tables, footnotes, won't be concerned by indenting. I hope my explanations were clear enough... If needed, I can write a small LaTeX example and send it to the list. The thing is that the formal specification is not clearly defined, not even if you mention all cases. _You_ may not want indented footnotes, but _I_ have typeset a book that did. And consider this: Text text text text \startquotation Quoted text quoted text \stopquotation Text text text text is the next Text indented, yes or no? Whether this is a 'display' or a standalone paragraph is very much up to the document designer. In english mathematical texts, Theorems and such are often seen as a kind of run-in header, so that Theorem 1. Text text text is not indented, but that usually does not apply to Proof. Text text text and Remark 1. Text text text: those usually _are_ indented. I am being hesitant about a 'global switch' because I fear that any automated solution only takes care of one particular set of settings, and so does will really help that much and will become a documentation nightmare. Imagine: The command \indentallparagraphs will make sure that every paragraph in the document will get indented, regardless of its surroundings, with the following exceptions: * the bodies of the predefined floating objects figures, tables, intermezzos, graphics. * the bodies of the predefined footnotes endnotes, and floating marginals * the contents of float captions * the paragraph following a \stopformula, if that formula is not preceded by \placeformula, and there is not empty line inbetween. * any itemgroups, enumerations, descriptions, floats etc. that were not predefined in the context core. * ... I hope you see the problem with that. Even a simple command like \setupindentnext[yes] does not work out-of-the-box, because you actually wanted \setupformulae[indentnext=auto] % not yes As I said before, it may be much easier to put all this in a module (by you, or someone else, but I guess you now have the list of desired commands pretty much at hand?). Then you can say \usemodule[indentall] and the context core would not have to think about all these border cases. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
Selon Taco Hoekwater [EMAIL PROTECTED]: \defineenumeration[theorem][indenting=always] This is actually easier to find, because it actually is documented in texshow: http://texshow.contextgarden.net/ You're right. I found it there just after I sent the mail... Thank you, and sorry I didn't look at it first. The thing is that the formal specification is not clearly defined, not even if you mention all cases. _You_ may not want indented footnotes, but _I_ have typeset a book that did. It's not exactly about what _I_ want: my only wish was to recover the LaTeX specification. And actually, I don't know if it is clearly defined or not. Maybe I'm too used to LaTeX choices. And consider this: Text text text text \startquotation Quoted text quoted text \stopquotation Text text text text is the next Text indented, yes or no? Whether this is a 'display' or a standalone paragraph is very much up to the document designer. Without an empty line over it, it should not be indented. It's the rule in LaTeX, and it seems quite natural (to me). If you want it indented, you have to start a new paragraph, with an empty line or \par. All this because quotation can be part of a paragraph. Formulae, itemize, can also be part of a paragraph, that's why the rule should be the same for them. Floats, footnotes, etc. can't be part of a paragraph, that's why the rule is different for them. In english mathematical texts, Theorems and such are often seen as a kind of run-in header, so that Theorem 1. Text text text is not indented, but that usually does not apply to Proof. Text text text and Remark 1. Text text text: those usually _are_ indented. For theorem like environments, I'd follow the choices of the AMS. The text inside theorems should follow the same rule as the main text outside. The head of theorems never get indented (by default). I am being hesitant about a 'global switch' because I fear that any automated solution only takes care of one particular set of settings, and so does will really help that much and will become a documentation nightmare. Imagine: The command \indentallparagraphs will make sure that every paragraph in the document will get indented, regardless of its surroundings, with the following exceptions: * the bodies of the predefined floating objects figures, tables, intermezzos, graphics. * the bodies of the predefined footnotes endnotes, and floating marginals * the contents of float captions * the paragraph following a \stopformula, if that formula is not preceded by \placeformula, and there is not empty line inbetween. \placeformula shouldn't modify anything there... * any itemgroups, enumerations, descriptions, floats etc. that were not predefined in the context core. * ... I hope you see the problem with that. Even a simple command like \setupindentnext[yes] does not work out-of-the-box, because you actually wanted \setupformulae[indentnext=auto] % not yes auto seems indeed to be the default in LaTeX. As I said before, it may be much easier to put all this in a module (by you, or someone else, but I guess you now have the list of desired commands pretty much at hand?). Then you can say \usemodule[indentall] and the context core would not have to think about all these border cases. I understand that it's delicate to modify the core for such questions. My point is that I always found indenting clear or coherent in LaTeX: you want an indented line, then leave an empty line before. In ConTeXt, I had to fight a bit to recover this simple rule. But as I said, maybe I'm too used to LaTeX choices... As you suggest, I will put every command I used in a separate file, and try to produce a module out of it. I'm not sure I have sufficient knowledge for this yet, but I'll try. Last of all, I want to thank you for all your answers, and apologize for my poor english: I might seem a bit rude, but this is clearly not my wish. Best regards, Morgan ___ 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 ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Ah, misunderstood. You want \setupformulae[indentnext=auto] Thank you, Taco! And may I ask the difference with the 'yes' option? Is it documented somewhere? I'm having a real hard time understanding all the mechanisms of indenting in ConTeXt... The 'auto' indents the next paragraph, but only if it is a separate paragraph (empty line or \par command following the \stop.. command) Thank you, that's precisely what I needed. Indenting is not much more complex than this: there is \indenting with its (pretty long) list of arguments, and then there are the indentnext=[yes|no|auto] option available after various block-creation commands. The indentnext key is relatively new, and is added for requests similar to yours, but at a smaller scale. Some layouts ask for indentation after itemizations but not after floats, sometimes there is a need for 'auto' for formulae but often you really want 'no', some styles indent after block quotations, others dont, etc. etc. Ok, it's clearer to me now. Then I've got one last question on the subject: I didn't manage to have paragraph indented inside an 'enumeration' block, is there an option to do that? Thank you for your patience! I still think that it would be great to have one option to indent absolutely all paragraphs... Best regards, Morgan 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Ok, it's clearer to me now. Then I've got one last question on the subject: I didn't manage to have paragraph indented inside an 'enumeration' block, is there an option to do that? Thank you for your patience! It is indeed possible, but the how is not very intuitive: \startitemize[command=\indent] % or \setupitemize[each][command...] \item \stopitemize the output looks dreadful to my eyes, and I really doubt this will ever become more easily supported. Sorry, I wasn't precise enough: I would like to indent paragraphs inside a block created with \defineenumeration (like theorems...), not inside an itemize block. The output in this latter case is indeed quite awful. I still think that it would be great to have one option to indent absolutely all paragraphs... Is 'absolutely all' including the one above? What about float captions? And multi-line entries in tables? Or table of contents items? Or synonym entries? Footnotes? By 'absolutely all', I mean just like when you use \setlength{\parindent}{1em} in LaTeX (plus eventually the indentfirst package for indenting after heads). Every paragraph (preceded by an empty line or \par) in the text flow will get indented, independently of: * what is above (formula, float, etc) * what environment it belongs to (quote, theorem, abstract, etc.), as long as this environment doesn't need alignment (like itemize, tabular, etc.) Of course, particular objects like captions, tables, footnotes, won't be concerned by indenting. I hope my explanations were clear enough... If needed, I can write a small LaTeX example and send it to the list. Best regards, Morgan ___ 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 ___
[NTG-context] Indenting (again!): a real problem in indentnext=yes
Hi, Sorry but I'm going to talk about indenting again. This time, it seems to me that there is really something wrong with the indentnext=yes option. Look at the following example, it speaks for itself (or at least I hope so). \setupindenting[yes,medium] \setupformulae[indentnext=yes] \starttext This is my first formula: \startformula x = 1, \stopformula and this line should not be indented because it's still in the same sentence. There is no line skip in the source file, and no new paragraph created. This is my second formula: \startformula x = 2. \stopformula This line has to be indented (and it is!), as this is truely a new paragraph. \stoptext The option indentnext=yes does not handle properly the first situation. What do you think? Thanks for your answers, and sorry to bother you again and again! Morgan ___ 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 ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
[EMAIL PROTECTED] wrote: The option indentnext=yes does not handle properly the first situation. What do you think? That works for me as it should. My context: 2008.01.28, pdftex 1.40.5 What are your versions? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: The option indentnext=yes does not handle properly the first situation. What do you think? That works for me as it should. My context: 2008.01.28, pdftex 1.40.5 What are your versions? I'm using the context package in debian sid: * context: 2008.01.02 * pdftex: 1.40.3 But I also tried with ConTeXt live, and the result is the same... Notice that the line after the first formula should NOT be indented. How is it with your installation? 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
[EMAIL PROTECTED] wrote: Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: The option indentnext=yes does not handle properly the first situation. What do you think? That works for me as it should. My context: 2008.01.28, pdftex 1.40.5 What are your versions? I'm using the context package in debian sid: * context: 2008.01.02 * pdftex: 1.40.3 But I also tried with ConTeXt live, and the result is the same... Notice that the line after the first formula should NOT be indented. How is it with your installation? Ah, misunderstood. You want \setupformulae[indentnext=auto] 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: The option indentnext=yes does not handle properly the first situation. What do you think? That works for me as it should. My context: 2008.01.28, pdftex 1.40.5 What are your versions? I'm using the context package in debian sid: * context: 2008.01.02 * pdftex: 1.40.3 But I also tried with ConTeXt live, and the result is the same... Notice that the line after the first formula should NOT be indented. How is it with your installation? Ah, misunderstood. You want \setupformulae[indentnext=auto] Thank you, Taco! And may I ask the difference with the 'yes' option? Is it documented somewhere? I'm having a real hard time understanding all the mechanisms of indenting in ConTeXt... 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
[EMAIL PROTECTED] wrote: Ah, misunderstood. You want \setupformulae[indentnext=auto] Thank you, Taco! And may I ask the difference with the 'yes' option? Is it documented somewhere? I'm having a real hard time understanding all the mechanisms of indenting in ConTeXt... The 'auto' indents the next paragraph, but only if it is a separate paragraph (empty line or \par command following the \stop.. command) Indenting is not much more complex than this: there is \indenting with its (pretty long) list of arguments, and then there are the indentnext=[yes|no|auto] option available after various block-creation commands. The indentnext key is relatively new, and is added for requests similar to yours, but at a smaller scale. Some layouts ask for indentation after itemizations but not after floats, sometimes there is a need for 'auto' for formulae but often you really want 'no', some styles indent after block quotations, others dont, etc. etc. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Indenting with ConTeXt
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 ___ 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 ___
Re: [NTG-context] Indenting with ConTeXt
Hi Morgan, On Jan 21, 2008 2:02 PM, [EMAIL PROTECTED] 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. 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 ___ 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 ___
Re: [NTG-context] Indenting with ConTeXt
Selon Wolfgang Schuster [EMAIL PROTECTED]: Hi Morgan, On Jan 21, 2008 2:02 PM, [EMAIL PROTECTED] 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 ___ ___ 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 ___
Re: [NTG-context] Indenting with ConTeXt
\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. Arthur ___ 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 ___
Re: [NTG-context] Indenting with ConTeXt
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 - ___ 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 ___
[NTG-context] Indenting tables
All - I am creating simple tables like this \starttable[|l|l|l|l|] \HL \VL \bf Time Frame \VL \bf SAN A \VL \bf SAN B \VL \bf SAN C \VL \AR \HL \VL 10pm to 6am - Backup \VL 1500 MB/s \VL 1500 MB/s \VL 1500 MB/s \VL \AR \HL \VL 6am to 10pm – NBU Vaulting \VL \rightarrow \VL \rightarrow \VL 4500MB/s \VL \AR \HL \stoptable The table is created fine, but I would like it to be centered in the surrounding text. The current table starts at the left page margin, rather than where the text starts. Is there a simple way to indent the left edge of the table to match the surrounding text? I have tried using \setuptables[align=middle], but it seems to have no effect. -- Mark Almeida [EMAIL PROTECTED] Solutions Architect (707)398-9524/x81132 Sun Professional Services(707)429-0341 Home Office (707)480-5038 Cell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Indenting tables
On Mon, 5 Feb 2007, The Wizard wrote: All - I am creating simple tables like this \starttable[|l|l|l|l|] \HL \VL \bf Time Frame \VL \bf SAN A \VL \bf SAN B \VL \bf SAN C \VL \AR \HL \VL 10pm to 6am - Backup \VL 1500 MB/s \VL 1500 MB/s \VL 1500 MB/s \VL \AR \HL \VL 6am to 10pm – NBU Vaulting \VL \rightarrow \VL \rightarrow \VL 4500MB/s \VL \AR \HL \stoptable The table is created fine, but I would like it to be centered in the surrounding text. The current table starts at the left page margin, rather than where the text starts. Is there a simple way to indent the left edge of the table to match the surrounding text? I have tried using \setuptables[align=middle], but it seems to have no effect. You can use \midaligned{\starttable ... \stoptable} or (untested) \placetable [here][none]{none} {\starttable ... \stoptable} Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Indenting tables
Aditya Mahajan wrote: On Mon, 5 Feb 2007, The Wizard wrote: All - I am creating simple tables like this \starttable[|l|l|l|l|] \HL \VL \bf Time Frame \VL \bf SAN A \VL \bf SAN B \VL \bf SAN C \VL \AR \HL \VL 10pm to 6am - Backup \VL 1500 MB/s \VL 1500 MB/s \VL 1500 MB/s \VL \AR \HL \VL 6am to 10pm – NBU Vaulting \VL \rightarrow \VL \rightarrow \VL 4500MB/s \VL \AR \HL \stoptable The table is created fine, but I would like it to be centered in the surrounding text. The current table starts at the left page margin, rather than where the text starts. Is there a simple way to indent the left edge of the table to match the surrounding text? I have tried using \setuptables[align=middle], but it seems to have no effect. You can use \midaligned{\starttable ... \stoptable} or (untested) \placetable [here][none]{none} {\starttable ... \stoptable} Aditya Aditya - Thanks so much; the \placetable... form did exactly what I was looking for. -- Mark Almeida [EMAIL PROTECTED] Solutions Architect (707)398-9524/x81132 Sun Professional Services(707)429-0341 Home Office (707)480-5038 Cell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] indenting of first paragraph in (sub)section
Hello, I' trying to figure out why \setupindenting[first,medium,yes] does not indents the FIRST paragraph of a section or subsection. An example follows. Thanks in advance. \setupbodyfont[lbr,11pt] \setuppapersize[A4] \setuplayout[width=17cm,height=28cm, topspace=1cm, header=1cm, footer=1cm, location=middle] \setupitemize[n,joinedup] \setuppagenumbering[location=] \setupwhitespace[medium] \setupindenting[first,medium,yes] \showframe \starttext \section{INTRODUCTION} \subsection{Rationale} Anyone who has been around the computer industry for a decade or more is well aware of this phenomenon: machines are getting exponentially more powerful per unit cost, yet users do not perceive this improvement in the applications that they purchase. For example, while word processors are clearly faster today than they were 21 years ago, they aren't 16,384 times faster as Moore's Law would suggest. Part of the problem, of course, is that some of the additional processing power has been employed to support new features (such as a bit-mapped display), but a large part of the reason software users aren't seeing an increase in speed is because many of today's programmers don't take the time to write efficient software, or they simply {\it don't know} how to write fast code. \stoptext -- С наилучшими пожеланиями, Vyatcheslav mailto:[EMAIL PROTECTED]___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] indenting of first paragraph in (sub)section
On Mon, 11 Dec 2006, Vyatcheslav Yatskovsky wrote: Hello, I' trying to figure out why \setupindenting[first,medium,yes] does not indents the FIRST paragraph of a section or subsection. \setupheads[indentnext=yes] if you want to indent after all heads or \setuphead[section,subsection,subsubsection][indentnext=yes] if you want to control which heads should be indented Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] indenting of first paragraph in (sub)section
Vyatcheslav Yatskovsky wrote: Hello, I' trying to figure out why \setupindenting[first,medium,yes] does not indents the FIRST paragraph of a section or subsection. An example follows. Thanks in advance. It is normal to not indent the first paragraph, only second and later paragraphs - because indenting is used to separate paragraphs from each other, and the first does not need to be separated from anything (because it was first). When I add a second paragraph to your example, it is indented according to your instructions. If you still want to indent the first paragraph, there's probably a way to force it; but I don't know how. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] indenting after section headings with before, after keyvals
On Sun, 6 Aug 2006, Sanjoy Mahajan wrote: The text after section headings is normally not indented, even if \setupindenting[yes] is given -- which looks good and was a pain to get right in my plain TeX days. But the don't indent that code seems to get confused if before= and after= values are given in the heading setup. Below is a minimal example (using context 2006.07.24 10:49) showing that the 'before' hairline is indented, and the Indented? text after the 'after' hairline is indented. All is fine without the \setupindenting or the \setuphead line. Is there an easy fix that I missed? I tried throwing in \noindent into the before or after keys but no luck. I think that the command is \noindentation. \setuphead[section][before={\hairline\blank},after={\nowhitespace\hairline}] Use instead \setuphead[section] [before={\noindentation\hairline\blank}, after={\nowhitespace\hairline\noindentation}] \setupindenting[medium,yes] \starttext \section{First} Indented? \stoptext Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] indenting after section headings with before, after keyvals
I think that the command is \noindentation. Thanks, that does the trick. For future ConTeXt releases, should the no-indentation be handled automatically by \section (e.g. it would wrap the section including the before and after material in an environment with \parindent=0pt)? Or is it better to have the user explicitly specify what they want? -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] indenting after section headings with before, after keyvals
The text after section headings is normally not indented, even if \setupindenting[yes] is given -- which looks good and was a pain to get right in my plain TeX days. But the don't indent that code seems to get confused if before= and after= values are given in the heading setup. Below is a minimal example (using context 2006.07.24 10:49) showing that the 'before' hairline is indented, and the Indented? text after the 'after' hairline is indented. All is fine without the \setupindenting or the \setuphead line. Is there an easy fix that I missed? I tried throwing in \noindent into the before or after keys but no luck. \setuphead[section][before={\hairline\blank},after={\nowhitespace\hairline}] \setupindenting[medium,yes] \starttext \section{First} Indented? \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] indenting in XML environment
Hans Hagen wrote: Christopher G D Tipper wrote: Hi Taco, I've found the miscreant. In my stylesheet I have \def\eDroppedCaps {\DroppedCaps {} {ptmr8r} {2.2\baselineskip} {2pt} {\baselineskip} {2}} and in my XML I have: \defineXMLcommand [dropped-caps] \eDroppedCaps and for some reason this screws up all paragraph indenting. Has this changed recently, because it used to work? well, indenting has been extended (and a bit fixed) My guess is this patch to supp-fun is needed (untested): \def\DroppedCaps#1#2#3#4#5#6#7% does not yet handle accented chars {\convertargument#7\to\asciia \convertcommand \DroppedString\to\asciib \ExpandBothAfter\doifinstringelse\asciia\asciib - {\noindenting + {\noindentation \dontleavehmode %\ifhmode\hskip-\parindent\fi % sensitive for context mechanism Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context