Re: [NTG-context] first line indents

2014-10-13 Thread Wolfgang Schuster

Am 14.10.2014 um 00:45 schrieb Andrea Valle :

> Yeah, I put it because I (still) get in Terminal:
> 
> languages   > language 'en' is active
> 
> is it relevant? I had some issues with hyphenation

You can ignore this message, it’s just a stupid message from the default setup.

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] first line indents

2014-10-13 Thread Andrea Valle


> 
> 1. This part is missing in your example below.
> 
> 2. To end a paragraph insert a blank line or use \par.


Ah! Never known about that! My fault

> 
>> \mainlanguage[it] 
>> \language[it]
> 
> You don’t need \language here because \mainlanguage already loads the italian 
> hyphenation patterns, the \language
> command is only used in the content of your document when you want to load 
> different hyphenation patterns.

Yeah, I put it because I (still) get in Terminal:

languages   > language 'en' is active

is it relevant? I had some issues with hyphenation

Thanks a lot

-a-

___
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] first line indents

2014-10-13 Thread Wolfgang Schuster

Am 14.10.2014 um 00:14 schrieb Andrea Valle :

> Thanks, that’s what I was thinking but I’m missing something. If I replace  
> the double white line in knuth.tex with \crlf
> indentation is not applied anymore to the first block.

1. This part is missing in your example below.

2. To end a paragraph insert a blank line or use \par.

> In my source I have this:
> 
>  TYPESET with Mark IV %%%
> 
> \enableregime[utf]

Can be omitted because MkIV expects UTF-8 as default encoding.

> \mainlanguage[it] 
> \language[it]

You don’t need \language here because \mainlanguage already loads the italian 
hyphenation patterns, the \language
command is only used in the content of your document when you want to load 
different hyphenation patterns.

> \setupcolors[state=start]

Can be omitted because colors are enabled by default.

> \definepapersize[ZaffiriBook][width=130mm,height=205mm]
> \setuppapersize[ZaffiriBook, portrait][ZaffiriBook, portrait]
> \setuppagenumber[state=stop]
> \setuppagenumbering[location={footer, margin}]
> 
> \setupindenting[yes, medium]
> \setupheads[indentnext=yes]
> 
> \setuptyping
>[before={\setupbodyfont[6pt]},
> after={\setupbodyfont[9pt]}]

Use \setuptyping[bodyfont=6pt].

> \usetypescript[palatino]

Can be omitted because the following line load the typescript.

> \setupbodyfont[palatino,9pt]

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] first line indents

2014-10-13 Thread Andrea Valle
Thanks, that’s what I was thinking but I’m missing something. If I replace  the 
double white line in knuth.tex with \crlf
indentation is not applied anymore to the first block.

In my source I have this:

 TYPESET with Mark IV %%%

\enableregime[utf]
\mainlanguage[it] 
\language[it]
\setupcolors[state=start]
\definepapersize[ZaffiriBook][width=130mm,height=205mm]
\setuppapersize[ZaffiriBook, portrait][ZaffiriBook, portrait]
\setuppagenumber[state=stop]
\setuppagenumbering[location={footer, margin}]

\setupindenting[yes, medium]
\setupheads[indentnext=yes]

\setuptyping
   [before={\setupbodyfont[6pt]},
after={\setupbodyfont[9pt]}]

\usetypescript[palatino]
\setupbodyfont[palatino,9pt]

\setupfootnotes[way=bysection, numberconversion=romannumerals]

\defineparagraphs
 [mypar][n=3,before={\blank},after={\blank}]
 \setupparagraphs
 [mypar][1][width=.3\textwidth,style=bold]
  \setupparagraphs
 [mypar][2][width=.4\textwidth]

\starttext


%% various chapter inputs follow

I get the indent only in the first line of each section/subsection

Best
-a-


--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

On 13 Oct 2014, at 23:48, Wolfgang Schuster  wrote:

> 
> Am 13.10.2014 um 23:42 schrieb Andrea Valle :
> 
>> thanks Wolfgang,
>> see the “indent” section here:
>> http://smad.jmu.edu/shen/webtype/indent.html
> 
> \setupindenting[yes,medium]
> 
> \starttext
> 
> \input knuth
> 
> \section{Knuth}
> 
> \input knuth
> 
> \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
> ___

___
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] first line indents

2014-10-13 Thread Wolfgang Schuster

Am 13.10.2014 um 23:42 schrieb Andrea Valle :

> thanks Wolfgang,
> see the “indent” section here:
> http://smad.jmu.edu/shen/webtype/indent.html

\setupindenting[yes,medium]

\starttext

\input knuth

\section{Knuth}

\input knuth

\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] first line indents

2014-10-13 Thread Andrea Valle
thanks Wolfgang,
see the “indent” section here:
http://smad.jmu.edu/shen/webtype/indent.html


Best

-a-

--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

On 13 Oct 2014, at 23:12, Wolfgang Schuster  wrote:

> 
> Am 13.10.2014 um 23:03 schrieb Andrea Valle :
> 
>> Hi, I’d like to have first line indents for the whole document I’m working o 
>> (the latter including various chapter).
>> Each new line, an indent.
>> Following the wiki, I’m able only to get the first line of a section 
>> indented.
> 
> What do you mean with a indent for each new line?
> 
> Wolfgang
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
> 

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] first line indents

2014-10-13 Thread Wolfgang Schuster

Am 13.10.2014 um 23:03 schrieb Andrea Valle :

> Hi, I’d like to have first line indents for the whole document I’m working o 
> (the latter including various chapter).
> Each new line, an indent.
> Following the wiki, I’m able only to get the first line of a section indented.

What do you mean with a indent for each new line?

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
___

[NTG-context] first line indents

2014-10-13 Thread Andrea Valle
Hi, I’d like to have first line indents for the whole document I’m working o 
(the latter including various chapter).
Each new line, an indent.
Following the wiki, I’m able only to get the first line of a section indented.

Thanks

best

-a-

--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

___
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] Stopper and itemize

2014-10-13 Thread Otared Kavian
What do you mean by a « break »?

On 14 Oct 2014, at 02:24, Fabrice Couvreur  wrote:

> hi,
> In the following code, the default stopper is the point.
> 
> \starttext
> \startitemize[columns,a,joinedup]
> \item $f(0)$
> \item $g(0,3)$
> \item $f(\sqrt 2)$
> \item $g(-4)$
> \stopitemize
> \stoptext
> 
> How to have a break ?
> Best regards,
> Fabrice
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Stopper and itemize

2014-10-13 Thread Fabrice Couvreur
hi,
In the following code, the default stopper is the point.

\starttext
\startitemize[columns,a,joinedup]
\item $f(0)$
\item $g(0,3)$
\item $f(\sqrt 2)$
\item $g(-4)$
\stopitemize
\stoptext

How to have a break ?
Best regards,
Fabrice
___
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] Stopper and itemize

2014-10-13 Thread Fabrice


___
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] Starting with bibliography / international entries

2014-10-13 Thread Hans Hagen

On 10/13/2014 5:18 PM, Henning Hraban Ramm wrote:

Am 2014-10-13 um 18:00 schrieb Henning Hraban Ramm :


Am 2014-10-13 um 16:49 schrieb Wolfgang Schuster :


The context suite comes with the file mkiv-publications.pdf which is the manual 
for the new bibliography mechanism.


Thanks for the hint, I didn’t look after that.

I guess I will use the Lua syntax, since it’s the shortest.


… or stay with .bib, since there are tools for it, and maybe someone else might 
need my data.


And hopefully I’ll figure out how to setup the output ;-)

But how would you cope with the international (i.e. Cyrillic) titles/authors?
Should I define fields like author_original or is there a better way (maybe 
define the book twice, using crossref)?


I found this about BibLaTeX / Babel:
http://tex.stackexchange.com/questions/28010/how-to-create-multilingual-english-japanese-bibliographies-with-biblatex-bib
It’s nearly the same problem as mine.

BibLaTeX 3.0 + Biber 2.0 are advertised to support this syntax:

@COLLECTION{yanagida_zengaku_sosho_1975,
   LANGID = {japanese},
   EDITOR = {柳田聖山},
   EDITOR_romanised = {Yanagida, Seizan},
   TITLE = {禪學叢書},
   TITLE_romanised = {Chūbun shuppansha},
   TITLE_translated_english = {Collected Materials for the Study of Zen},
   LOCATION = {京都},
   LOCATION_romanised = {Kyōto},
   LOCATION_translated_english = {Kyoto},
   PUBLISHER = {中文出版社},
   PUBLISHER_romanised = {Chūbun shuppansha},
   DATE = {1974/1977}
}

… and extract the right version according to configuration.
Is there support for these constructed keys in ConTeXt?


sure, you can use any field you like and you can adapt yoru rendering 
setups to use them


the problem is not so much to support variants of fields (although I 
really dislike this mixed upper/lowercase mess)


the main question is: how mixed is this used? are EDITOR and 
EDITOR_whatever used at the same time?


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
___

[NTG-context] (no subject)

2014-10-13 Thread Fabrice Couvreur
hi,
In the following code, the default stopper is the point.

\starttext
\startitemize[columns,a,joinedup]
\item $f(0)$
\item $g(0,3)$
\item $f(\sqrt 2)$
\item $g(-4)$
\stopitemize
\stoptext

How to have a break ?
Best regards,
Fabrice
___
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] Starting with bibliography / international entries

2014-10-13 Thread Henning Hraban Ramm
Am 2014-10-13 um 18:00 schrieb Henning Hraban Ramm :

> Am 2014-10-13 um 16:49 schrieb Wolfgang Schuster 
> :
> 
>> The context suite comes with the file mkiv-publications.pdf which is the 
>> manual for the new bibliography mechanism.
> 
> Thanks for the hint, I didn’t look after that.
> 
> I guess I will use the Lua syntax, since it’s the shortest.

… or stay with .bib, since there are tools for it, and maybe someone else might 
need my data.

> And hopefully I’ll figure out how to setup the output ;-)
> 
> But how would you cope with the international (i.e. Cyrillic) titles/authors?
> Should I define fields like author_original or is there a better way (maybe 
> define the book twice, using crossref)?

I found this about BibLaTeX / Babel:
http://tex.stackexchange.com/questions/28010/how-to-create-multilingual-english-japanese-bibliographies-with-biblatex-bib
It’s nearly the same problem as mine.

BibLaTeX 3.0 + Biber 2.0 are advertised to support this syntax:

@COLLECTION{yanagida_zengaku_sosho_1975,
  LANGID = {japanese},
  EDITOR = {柳田聖山},
  EDITOR_romanised = {Yanagida, Seizan},
  TITLE = {禪學叢書},
  TITLE_romanised = {Chūbun shuppansha},
  TITLE_translated_english = {Collected Materials for the Study of Zen},
  LOCATION = {京都},
  LOCATION_romanised = {Kyōto},
  LOCATION_translated_english = {Kyoto},
  PUBLISHER = {中文出版社},
  PUBLISHER_romanised = {Chūbun shuppansha},
  DATE = {1974/1977}
}

… and extract the right version according to configuration.
Is there support for these constructed keys in ConTeXt?

Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Starting with bibliography / international entries

2014-10-13 Thread Henning Hraban Ramm
Am 2014-10-13 um 16:49 schrieb Wolfgang Schuster :

> The context suite comes with the file mkiv-publications.pdf which is the 
> manual for the new bibliography mechanism.

Thanks for the hint, I didn’t look after that.

I guess I will use the Lua syntax, since it’s the shortest.
And hopefully I’ll figure out how to setup the output ;-)

But how would you cope with the international (i.e. Cyrillic) titles/authors?
Should I define fields like author_original or is there a better way (maybe 
define the book twice, using crossref)?


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Starting with bibliography / international entries

2014-10-13 Thread Wolfgang Schuster

Am 13.10.2014 um 12:31 schrieb Henning Hraban Ramm :

> Hi,
> 
> it’s the first time I need a proper bibliography, and our book will be 
> published in three languages (German, English and Russian).
> Most of the sources are in Russian.
> 
> I’d use everything (titles, author names) in original spelling (i.e. 
> cyrillic), but would like to provide also a transliteration.
> In German and English issues I’d like to use a „Latin“ reference code, in 
> Russian a Cyrillic (or original-type) one.
> 
> What format would you suggest for the database?
> Can ConTeXt MkIV already handle something „better“ than .bib?
> (I guess the information in the wiki is outdated?)
> Does general BibTeX documentation still apply?

The context suite comes with the file mkiv-publications.pdf which is the manual 
for the new bibliography mechanism.

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
___

[NTG-context] Starting with bibliography / international entries

2014-10-13 Thread Henning Hraban Ramm
Hi,

it’s the first time I need a proper bibliography, and our book will be 
published in three languages (German, English and Russian).
Most of the sources are in Russian.

I’d use everything (titles, author names) in original spelling (i.e. cyrillic), 
but would like to provide also a transliteration.
In German and English issues I’d like to use a „Latin“ reference code, in 
Russian a Cyrillic (or original-type) one.

What format would you suggest for the database?
Can ConTeXt MkIV already handle something „better“ than .bib?
(I guess the information in the wiki is outdated?)
Does general BibTeX documentation still apply?

Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Possibly bug: misalignment with matrix

2014-10-13 Thread Hans Hagen

On 10/12/2014 7:08 PM, Xan wrote:

and

\item $\startdet[n=3]
\NC yz \NC \frac{1}{x} \NC x \NR
\NC zx \NC \frac{1}{y} \NC y \NR
\NC xy \NC \frac{1}{z} \NC z \NR
\stopdet$


puts x over 1 in the second row


in a next beta ...

\definemathmatrix[TheMatrixA][left={\left\lvert\,},right={\,\right\rvert}]
\definemathmatrix[TheMatrixB][left={\left\lvert\,},right={\,\right\rvert},strut=1.25]
\definemathmatrix[TheMatrixC][left={\left\lvert\,},right={\,\right\rvert},strut=1.50]

\starttext

$\startTheMatrixA[n=3]
\NC yz \NC \frac{1}{x} \NC x \NR
\NC zx \NC \frac{1}{y} \NC y \NR
\NC xy \NC \frac{1}{z} \NC z \NR
\stopTheMatrixA$

$\startTheMatrixB[n=3]
\NC yz \NC \frac{1}{x} \NC x \NR
\NC zx \NC \frac{1}{y} \NC y \NR
\NC xy \NC \frac{1}{z} \NC z \NR
\stopTheMatrixB$

$\startTheMatrixC[n=3]
\NC yz \NC \frac{1}{x} \NC x \NR
\NC zx \NC \frac{1}{y} \NC y \NR
\NC xy \NC \frac{1}{z} \NC z \NR
\stopTheMatrixC$

\stoptext

upto you to wikify it


-
  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] \writetolist in mkiv

2014-10-13 Thread Jano Kula

Thank you, Wolfgang, here is the working example for the structure manual ;)

% \writetolist & local table of contents example
\def\ManualSubsection#1{\blank%
{\bf Manual Subsection #1}\par%
\writetolist[subsection]{}{Manual Subsection #1}%
\input tufte\relax}

\starttext
\dorecurse{3}{%
\startchapter[title=Chapter]
\placelist[section][criterium=chapter]
\startsection[title=Section]
\placelist[subsection][criterium=section]
\ManualSubsection{\recurselevel-1}
\ManualSubsection{\recurselevel-2}
\stopsection
\startsection[title=Section]
\placelist[subsection][criterium=section]
\ManualSubsection{\recurselevel-1}
\ManualSubsection{\recurselevel-2}
\stopsection
\stopchapter}
\stoptext




On 12.10.2014 23:06, Wolfgang Schuster wrote:


Am 12.10.2014 um 22:57 schrieb Jano Kula :


Hello Wolfgang,

On 12.10.2014 21:28, Wolfgang Schuster wrote:


Am 12.10.2014 um 20:39 schrieb Jano Kula :


Hello to everybody!

Minimal story
-
How to insert local TOC of manually created subsections after the section 
starts?

% start minimal example
\def\ManualSubsection#1{\blank%
{\bf Manual Subsection #1}\par%
\writetolist[subsection]{whatever}{Manual Subsection #1}%
\input tufte\relax}

\starttext
\dorecurse{3}{%
\startchapter[title=Chapter]
\placecontent[chapter,criterium=local] % local TOC OK


You can’t put a keyword (chapter) and a assignment (criterium=local) in the 
same argument
of a setup-command, what you’re looking for is 
\placelist[chapter][criterium=local].

Wolfgang


Thanks, got it: \placelist[section][criterium=local] places the list of 
sections included in the chapter.

Still, how to do the same with subsections manually inserted by 
\writetolist[subsection]{}{Subsection title}?


\placelist[subsection][criterium=section]

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___