Re: [NTG-context] Include a list in a list, for example, a List of Figures in a Table of Content

2011-06-06 Thread Mathieu Dupont


Great, thank you !
That works just perfect.


Mathieu



From: schuster.wolfg...@googlemail.com
Date: Mon, 6 Jun 2011 22:30:47 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Include a list in a list, for example,   a List 
of Figures in a Table of Content




Am 06.06.2011 um 14:57 schrieb Mathieu Dupont:No, not at all.I'm sorry, I 
realize I wasn't clear at all.
What I want is simply the List of Figures to figure in my Table of Content, to 
be listed in it, just such as a chapter or a section.So my TOC would look like 
this :
TABLE OF CONTENTList of Figures . page 1Chapter 1 ... page 
2Chapter 2 ... page 3

\definehead[topic][chapter]\setuphead [topic][number=no]
\starttext
\title{Table of Content}
\placelist[chapter,topic,section]
\topic{List of Figures}
\placelist[figure][criterium=all]
\chapter{One}
\placefigure{Two}{2}
\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] Include a list in a list, for example, a List of Figures in a Table of Content

2011-06-06 Thread Wolfgang Schuster

Am 06.06.2011 um 14:57 schrieb Mathieu Dupont:

> 
> No, not at all.
> I'm sorry, I realize I wasn't clear at all.
> 
> What I want is simply the List of Figures to figure in my Table of Content, 
> to be listed in it, just such as a chapter or a section.
> So my TOC would look like this :
> 
> TABLE OF CONTENT
> List of Figures . page 1
> Chapter 1 ... page 2
> Chapter 2 ... page 3

\definehead[topic][chapter]
\setuphead [topic][number=no]

\starttext

\title{Table of Content}

\placelist[chapter,topic,section]

\topic{List of Figures}

\placelist[figure][criterium=all]

\chapter{One}

\placefigure{Two}{2}

\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] Web resource in bbl file

2011-06-06 Thread Marco
On 2011-06-06 Mojca Miklavec  wrote:

> If you  don't need fancy language-dependent  printout of
> date, you can

No, I don't.

> define  a simple  \newbibfield[accessdate] and  then use
> \insertaccessdate{before}{after}{if absent}

Brilliant. Thanks a lot

Marco


___
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] Web resource in bbl file

2011-06-06 Thread Mojca Miklavec
On Mon, Jun 6, 2011 at 15:36, Marco wrote:
> Hi,
>
> how to create an entry for a web resource in a bbl file?
> For books I use a construction like this:
>
> \startpublication
>  [k=foo,
>   t=book]
> \title {Some book title}
> \author {Jack}[W.]{}{Murborg}
> \pubyear {2001}
> \pubname {Pearson Prentice Hall}
> \edition {2}
> \lang {English}
> \city {New York}
> \stoppublication
>
> A web resource should include the title, url and the
> access date.

An old definition of mine without access date:

\setuppublicationlayout[webpage]{%
\inserttitle{\bgroup\it }{\egroup. }{}%
\inserturl{}{}{}%
}
\startpublication
[k=FAIR,
 t=webpage,
 y=,
 s=,
 u=http://www.gsi.de/fair/,
]
\biburl{http://www.gsi.de/fair/}
\title{FAIR -- Facility for Antiproton and Ion Research}
\stoppublication

If you don't need fancy language-dependent printout of date, you can
define a simple
\newbibfield[accessdate]
and then use
\insertaccessdate{before}{after}{if absent}

Else you need to define day, month, year separately and try to combine
them in fancy ways.

Mojca
___
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] Web resource in bbl file

2011-06-06 Thread Marco
Hi,

how to create an entry for a web resource in a bbl file?
For books I use a construction like this:

\startpublication
  [k=foo,
   t=book]
\title {Some book title}
\author {Jack}[W.]{}{Murborg}
\pubyear {2001}
\pubname {Pearson Prentice Hall}
\edition {2}
\lang {English}
\city {New York}
\stoppublication

A web resource should include the title, url and the
access date.

Marco


___
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] Include a list in a list, for example, a List of Figures in a Table of Content

2011-06-06 Thread Mathieu Dupont


No, not at all.I'm sorry, I realize I wasn't clear at all.
What I want is simply the List of Figures to figure in my Table of Content, to 
be listed in it, just such as a chapter or a section.So my TOC would look like 
this :
TABLE OF CONTENTList of Figures . page 1Chapter 1 ... page 
2Chapter 2 ... page 3



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Mon, 6 Jun 2011 07:21:16 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Include a list in a list, for example,   a List 
of Figures in a Table of Content




Am 06.06.2011 um 01:19 schrieb Mathieu Dupont:Yes, I would like to obtain 
:(page 1)Table of ContentList of Figures1 Chapter(page 2)List of Figures1.1 
Cow.I could use, instead of \completeLOF, something like :\chapter{List of 
Figures}\placeLOFbut then I would have to adjust many other things and it 
becomes very messy.
You want this?
\setuplist[chapter][after={\placelist[figure]}]
\setuplist[figure][label=figure,width=6em]
\starttext
\completecontent
\chapter{One}
\placefigure{Two}{2}
\section{Three}
\placefigure{Four}{4}
\chapter{Five}
\placefigure{Six}{6}
\section{Seven}
\placefigure{Eight}{8}
\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] bad page breaks with \startitemize[columns]

2011-06-06 Thread Peter Münster
On Mon, Jun 06 2011, luigi scarso wrote:

>> \starttext
>> \dorecurse{10}{
>>  \startsection[title=test]
>>    \startitemize[columns, intro]
>>    \item bla
>>    \stopitemize
>>    \input tufte
>>  \stopsection
>> }
>> \stoptext
>
>
> \setuphead[section][before={\testpage[5]\blank}]

I've already tried that...

Please see here:

\setuphead[section][before={\testpage[5]\blank}]
\starttext
bla
\dorecurse{20}{
  \startsection[title=test]
\startitemize[columns, intro]
\item bla
\stopitemize
\dorecurse{120}{bla }
  \stopsection
}
\stoptext

-- 
   Peter
___
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] bad page breaks with \startitemize[columns]

2011-06-06 Thread luigi scarso
On Mon, Jun 6, 2011 at 1:48 PM, Peter Münster  wrote:
> Hello,
>
> How can one avoid these bad page breaks here:
>
> \starttext
> \dorecurse{10}{
>  \startsection[title=test]
>    \startitemize[columns, intro]
>    \item bla
>    \stopitemize
>    \input tufte
>  \stopsection
> }
> \stoptext


\setuphead[section][before={\testpage[5]\blank}]
\starttext
\dorecurse{10}{
 \startsection[title=test]
   \startitemize[columns, intro]
   \item bla
   \stopitemize
   \input tufte
 \stopsection
}
\stoptext



-- 
luigi
___
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] bad page breaks with \startitemize[columns]

2011-06-06 Thread Peter Münster
Hello,

How can one avoid these bad page breaks here:

\starttext
\dorecurse{10}{
  \startsection[title=test]
\startitemize[columns, intro]
\item bla
\stopitemize
\input tufte
  \stopsection
}
\stoptext

TIA for any hints,

-- 
   Peter
___
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] undefined control sequence bug with German umlaut in bibliography

2011-06-06 Thread Arthur Reutenauer
> I was actually thinking of precomposed vs. combining diacritics. I was
> blissfully unaware of the non-shortest-form problem up until now...

  Ah, OK.  But that's exactly the issue for which canonical equivalence
was designed, and in a Unicode-aware version of BibTeX that shouldn't be
an issue.  However, for now...

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] No chapter prefixes in section numbers

2011-06-06 Thread Wolfgang Schuster

Am 06.06.2011 um 01:20 schrieb Mathieu Dupont:

> Ok, thank you very much for the great work Wolfgang !
> 
> For now I guess I could look at the source code of a command to find out its 
> properties (I am not familiar with TeX but maybe I can figure out a few 
> things).

Yes but it isn’t so easy as you thing because you have know first if the 
requested command was generated (in your case with \definehead) or coded 
without intermediate commands. Then you have to follow all dependencies of the 
command to find more keys and at least the valid arguments for them. If this 
would be easy my new command reference would have been already finished but it 
takes often a lot of time to write the complete description for a command.

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] undefined control sequence bug with German umlaut in bibliography

2011-06-06 Thread Pontus Lurcock
On Mon 06 Jun 2011, Arthur Reutenauer wrote:

> > Well, there *is* more than one way to represent ä in UTF-8
> 
> If you mean "non-shortest" forms such as 0xE0 0x83 0xA4 or 0xF0 0x80
> 0x83 0xA4, then no, they have been forbidden since Unicode 3 in 2000
> (formally Corrigendum #1, see
> http://www.unicode.org/versions/corrigendum1.html).

I was actually thinking of precomposed vs. combining diacritics. I was
blissfully unaware of the non-shortest-form problem up until now...

Pont
___
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] Problem installing minimals on PowerMac G4

2011-06-06 Thread Taco Hoekwater

On 06/06/2011 10:05 AM, Mojca Miklavec wrote:

On Mon, Jun 6, 2011 at 09:59, Robert Blackstone wrote:

On  Sun, 5 Jun 2011 03:23:54 Mojca Miklavec wrote


How exactly do you run MKIV?


I always use TeXShop with an engine-file (in
~/Library/TeXShop/Engines), made executable, in this case
mkiv-04-06.engine, which reads:
#!/bin/bash

source /Users/robert/context-minimals-04-06/tex/setuptex
context "$1"
It works on my other machines.
Incidentally, I found that mkiv does not work on this machine with the
october minimals either, so maybe it never worked on this PowerMac
(Tiger). I failed to notice it because I always used mkii and I only
started using mkiv recently. I cannot check it either, since I trashed
earlier minimals.


Judging from your log:

"The argument 
"/Users/robertblackstone/Dropbox/C-tests/Titles-interline_spacing_of/Titles-interline_spacing_of-test1PM.tex"
is not a valid TEXROOT path.

I would say that there is a problem with your TeXshop. This means that
you must have called

"source /Users/robert/context-minimals-04-06/tex/setuptex
/Users/robertblackstone/Dropbox/C-tests/Titles-interline_spacing_of/Titles-interline_spacing_of-test1PM.tex"


It could perhaps be a line ending problem (\r <=> \n), where bash
actually sees something like this?:

  source /Users/robert/context-minimals-04-06/tex/setuptex\rcontext "$1"


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] undefined control sequence bug with German umlaut in bibliography

2011-06-06 Thread Arthur Reutenauer
> Well, there *is* more than one way to represent ä in UTF-8

  If you mean "non-shortest" forms such as 0xE0 0x83 0xA4 or 0xF0 0x80 0x83
0xA4, then no, they have been forbidden since Unicode 3 in 2000 (formally
Corrigendum #1, see http://www.unicode.org/versions/corrigendum1.html).

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem installing minimals on PowerMac G4

2011-06-06 Thread Mojca Miklavec
On Mon, Jun 6, 2011 at 09:59, Robert Blackstone wrote:
> On  Sun, 5 Jun 2011 03:23:54 Mojca Miklavec wrote
>>
>> How exactly do you run MKIV?
>>
> I always use TeXShop with an engine-file (in
> ~/Library/TeXShop/Engines), made executable, in this case
> mkiv-04-06.engine, which reads:
> #!/bin/bash
>
> source /Users/robert/context-minimals-04-06/tex/setuptex
> context "$1"
> It works on my other machines.
> Incidentally, I found that mkiv does not work on this machine with the
> october minimals either, so maybe it never worked on this PowerMac
> (Tiger). I failed to notice it because I always used mkii and I only
> started using mkiv recently. I cannot check it either, since I trashed
> earlier minimals.

Judging from your log:

"The argument 
"/Users/robertblackstone/Dropbox/C-tests/Titles-interline_spacing_of/Titles-interline_spacing_of-test1PM.tex"
is not a valid TEXROOT path.

I would say that there is a problem with your TeXshop. This means that
you must have called

"source /Users/robert/context-minimals-04-06/tex/setuptex
/Users/robertblackstone/Dropbox/C-tests/Titles-interline_spacing_of/Titles-interline_spacing_of-test1PM.tex"

somehow. Please try to open Terminal.app and write:

source /Users/robert/context-minimals-04-06/tex/setuptex
context 
/Users/robertblackstone/Dropbox/C-tests/Titles-interline_spacing_of/Titles-interline_spacing_of-test1PM.tex

and see if that one fails as well.

Mojca
___
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] Problem installing minimals on PowerMac G4

2011-06-06 Thread Robert Blackstone
On  Sun, 5 Jun 2011 03:23:54 Mojca Miklavec wrote
>
> How exactly do you run MKIV?
>
I always use TeXShop with an engine-file (in
~/Library/TeXShop/Engines), made executable, in this case
mkiv-04-06.engine, which reads:
#!/bin/bash

source /Users/robert/context-minimals-04-06/tex/setuptex
context "$1"
It works on my other machines.
Incidentally, I found that mkiv does not work on this machine with the
october minimals either, so maybe it never worked on this PowerMac
(Tiger). I failed to notice it because I always used mkii and I only
started using mkiv recently. I cannot check it either, since I trashed
earlier minimals.

Kind regards,

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___