Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wolfgang Schuster
me '../setup_frontmatter.tex'
structures > begin of sectionblock 'frontpart'
open source > level 4, order 22, name 'title.tex'
metapost > initializing instance 'metafun' using format 'metafun'
metapost > loading 'metafun' as 
'/opt/context_new/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' 
using method 'default'

metapost > initializing number mode 'scaled'
backend > xmp > using file 
'/opt/context_new/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'

pages > flushing realpage 1, userpage 1, subpage 1
open source > level 5, order 23, name '../setup_copyright.tex'
close source > level 5, order 23, name '../setup_copyright.tex'
pages > flushing realpage 2, userpage 1
close source > level 4, order 23, name 'title.tex'
structure > sectioning > title @ level 2 : 0.0 -> \headtext {content}
fonts > defining > font with asked name 'linlibertinerb' is not found 
using lookup 'file'

fonts > defining > unknown font 'linlibertinerb', loading aborted
fonts > defining > unable to define 'linlibertinerb' as 
'libertine-12pt-rm-bf-0-c-0'


tex error > tex error on line 418 in file ../setup_frontmatter.tex: ! 
Undefined control sequence



\14>:texta ...idth=\textwidth ]{ {\cornflowerblue
  \userpagenumber } 
\hfill }

\17>>1 #1,->\syst_setups {#1}
 \syst_helpers_do_process_comma_item
\syst_helpers_do_process_comma_list ...rgument #1,
  ]\relax \global 
\advance \...

 \ignorecrlf \setups {texta}
   {}{}{}
\secondoftwoarguments #1#2->#2
\page_layouts_process_element_single_indeed ...#4}
  \fi \endgroup
...
l.39 \completecontent[partnumber=no]

You’re using the command \cornflowerbluein in your setups (probably for 
the header or footer)
to change the color of the page number but ConTeXt doesn’t create 
individual commands

anymore for colors which are loaded from the color files.


You can fix fix when you change the color setting to

\color[cornflowerbluein]{\userpagenumber}

or even better you set the color with

\setupheader[color=cornflowerbluein]


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] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
 name '../setup_code.tex'
close source> level 3, order 20, name '../setup_global.tex'
open source > level 3, order 21, name '../setup_frontmatter.tex'
structures  > begin of sectionblock 'frontpart'
open source > level 4, order 22, name 'title.tex'
metapost> initializing instance 'metafun' using format 'metafun'
metapost> loading 'metafun' as
'/opt/context_new/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
using method 'default'
metapost> initializing number mode 'scaled'
backend > xmp > using file
'/opt/context_new/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
open source     > level 5, order 23, name '../setup_copyright.tex'
close source> level 5, order 23, name '../setup_copyright.tex'
pages   > flushing realpage 2, userpage 1
close source> level 4, order 23, name 'title.tex'
structure   > sectioning > title @ level 2 : 0.0 -> \headtext {content}
fonts   > defining > font with asked name 'linlibertinerb' is not
found using lookup 'file'
fonts   > defining > unknown font 'linlibertinerb', loading aborted
fonts   > defining > unable to define 'linlibertinerb' as
'libertine-12pt-rm-bf-0-c-0'

tex error   > tex error on line 418 in file ../setup_frontmatter.tex: !
Undefined control sequence


\14>:texta ...idth=\textwidth ]{ {\cornflowerblue
  \userpagenumber } \hfill }
\17>>1 #1,->\syst_setups {#1}
 \syst_helpers_do_process_comma_item
\syst_helpers_do_process_comma_list ...rgument #1,
  ]\relax \global \advance
\...
 \ignorecrlf \setups {texta}
   {}{}{}
\secondoftwoarguments #1#2->#2

\page_layouts_process_element_single_indeed ...#4}
  \fi \endgroup
...
l.39 \completecontent[partnumber=no]

?

=== end output ===

On Wed, Dec 6, 2017 at 10:01 PM, Wim Neimeijer <wneimei...@gmail.com> wrote:

> Thanks for all your input and help, but as said before I don't have the
> time to upgrade and than to discover existing things don't work
> resulting in a complete new thread to debug these existing things and/or
> fix with a new beta installation.
>
> But that is perhaps not my biggest concern with all these beta releases,
> ConText is great and for the most part easy to use, I am more worried that
> my existing ConText environment (setup) becomes broken, and/or resulting
> in complete different PDF output.
> I have no way of knowing, apart from visually inspecting a lot of pages of
> PDF.
>
> I thought including some code examples via \typefile (with a bit of text
> in either Cyrillic, Chinese, Japanese or Korean)
> could be achieved with a simple local font switch, or setting a regime or
> via \setuptyping but not on a global level
> with \definefontsynonym, definefontfallback etc.
>
> My fix is to change the examples a bit and continue.
> Again thanks for the help
>
>
>
>
>
> On Wed, Dec 6, 2017 at 9:25 PM, Hans Hagen <pra...@wxs.nl> wrote:
>
>> On 12/6/2017 7:24 PM, Wim Neimeijer wrote:
>>
>>> I disagree, a version from 2016 is not very old. I have a lot of
>>> documents using a ConText setup which works with this version
>>> of luatex and context.
>>>
>>> Last week I tried to use the latest beta with my documents and the beta
>>> was unable to run my documents.
>>> As it seems it is not backward compatible and I have no time at the
>>> moment to debug or test.
>>>
>> hm, normally updates are backwar dcompatible (apart from very beta
>> features) ... what fails?
>>
>>
>>
>> -
>>   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] Couple of questions

2017-07-28 Thread Gerion Entrup
Am Freitag, 28. Juli 2017, 17:05:59 CEST schrieb Pablo Rodriguez:
> On 07/28/2017 02:22 AM, Gerion Entrup wrote:
> > 2. Own title format
> > I've set an own title format for chapters, like described in the wiki. 
> > Unfortunately this applies to the table of contents and bibliography as 
> > well.
> > Below a minimal example, that reproduces it:
> > ```
> > \setupinteraction[state=start]
> > 
> > \define[2]\MyChapter{\framed[frame=off,bottomframe=on,topframe=on]
> > {\vbox{\headtext{chapter} #1\blank#2}}}
> > 
> > \setuphead[chapter][command=\MyChapter, style={\switchtobodyfont[24pt,ss]}, 
> > header=empty, page=mychapterpagebreak]
> > \setupheadtext[chapter=Chapter, content=Table of Contents]
> > 
> > \starttext
> > \completecontent
> > \page[yes]
> > 
> > \startchapter[title=foo]
> > 
> > \stoptext
> > ```
> > How can I prevent the printing of "Chapter" in the table of contents and
> > bibliography?
> 
> Hi Gerion,
> 
> play with the sample, in order to see what fits you best:
> 
> \setupinteraction[state=start]
> 
> \define[2]\MyChapter{\framed[frame=off,bottomframe=on,topframe=on]
> {\vbox{\headtext{chapter} #1\blank[small]#2}}}
> 
> \setuphead[chapter][command=\MyChapter,
> style={\switchtobodyfont[24pt,ss]}, header=empty, page=mychapterpagebreak]
> 
> \startsectionblockenvironment[bodypart]
> \setupheadtext[chapter=Chapter]
> \stopsectionblockenvironment
> 
> \startsectionblockenvironment[appendix]
> \setupheadtext[chapter=Appendix]
> \stopsectionblockenvironment
> 
> \starttext
> \startfrontmatter
> \chapter{Table of Contents}\placecontent
> \stopfrontmatter
> 
> \startbodymatter
> \startchapter[title=foo]
> \stopbodymatter
> 
> \startappendices
> \chapter{Bibliography}
> \stopappendices
> 
> \startbackmatter
> \chapter{Bibliography}
> \stopbackmatter
> 
> \stoptext
Thank you, that works for me.


> > 5. Numbering of floats
> > I want a numbering for my figures in this format:
> > way=bychapter, prefixsegments=chapter
> > 
> > I guess, this is the default, but I've explicitly set it.
> > In some captions the prefix is ignored. For example there are 5 figures in 
> > chapter 2, then the captions of the figures (the text is in German) are:
> > Abbildung 2.1   foo
> > Abbildung 2.2   bar
> > Abbildung 3foobar
> > Abbildung 4otherfoo
> > Abbildung 5lastfoo
> > 
> > Is there anything, I can do, to prevent this?
> 
> I cannot reproduce the problem you mention:
> 
> \mainlanguage[de]
> \starttext
> \dorecurse{5}{\chapter{Kapitel}
> \placefigure{Eine Kuh}{\externalfigure[cow.pdf]}}
> \chapter{Kapitel}
> \dorecurse{5}{\placefigure{Eine andere Kuh}
> {\externalfigure[cow.pdf]}}
> \dorecurse{5}{\chapter{Kapitel}
> \placefigure{Noch eine andere Kuh}{\externalfigure[cow.pdf]}}
> \stoptext
> 
> In general, please provide minimal samples of code that show your problem.
Was not that simple, but I found the problem, that causes it:
subsubsections without numbers.

Here is a minimal example:
```
\mainlanguage[de]
\setuphead[subsubsection][number=off]
\setupcaptions[way=bychapter,
   prefixsegments=chapter]

\starttext

\startchapter[title=Kapitel]
\placefigure{Eine Kuh}{\externalfigure[cow.pdf]}

\startsection[title=Abschnitt]
\startsubsection[title=Unterabschnitt]
\placefigure{Eine Kuh}{\externalfigure[cow.pdf]}

\startsubsubsection[title=Und hier gibts ein Problem]
\placefigure{Eine Kuh}{\externalfigure[cow.pdf]}
\stopsubsubsection

\startsubsubsection[title=Und hier gibts ein Problem]
\stopsubsubsection

\stopsubsection
\stopsection
\stopchapter

\stoptext
```
Is there a way to fix this?

Gerion


___
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] Couple of questions

2017-07-28 Thread Pablo Rodriguez
On 07/28/2017 02:22 AM, Gerion Entrup wrote:
> 2. Own title format
> I've set an own title format for chapters, like described in the wiki. 
> Unfortunately this applies to the table of contents and bibliography as well.
> Below a minimal example, that reproduces it:
> ```
> \setupinteraction[state=start]
> 
> \define[2]\MyChapter{\framed[frame=off,bottomframe=on,topframe=on]
> {\vbox{\headtext{chapter} #1\blank#2}}}
> 
> \setuphead[chapter][command=\MyChapter, style={\switchtobodyfont[24pt,ss]}, 
> header=empty, page=mychapterpagebreak]
> \setupheadtext[chapter=Chapter, content=Table of Contents]
> 
> \starttext
> \completecontent
> \page[yes]
> 
> \startchapter[title=foo]
> 
> \stoptext
> ```
> How can I prevent the printing of "Chapter" in the table of contents and
> bibliography?

Hi Gerion,

play with the sample, in order to see what fits you best:

\setupinteraction[state=start]

\define[2]\MyChapter{\framed[frame=off,bottomframe=on,topframe=on]
{\vbox{\headtext{chapter} #1\blank[small]#2}}}

\setuphead[chapter][command=\MyChapter,
style={\switchtobodyfont[24pt,ss]}, header=empty, page=mychapterpagebreak]

\startsectionblockenvironment[bodypart]
\setupheadtext[chapter=Chapter]
\stopsectionblockenvironment

\startsectionblockenvironment[appendix]
\setupheadtext[chapter=Appendix]
\stopsectionblockenvironment

\starttext
\startfrontmatter
\chapter{Table of Contents}\placecontent
\stopfrontmatter

\startbodymatter
\startchapter[title=foo]
\stopbodymatter

\startappendices
\chapter{Bibliography}
\stopappendices

\startbackmatter
\chapter{Bibliography}
\stopbackmatter

\stoptext

> 5. Numbering of floats
> I want a numbering for my figures in this format:
> way=bychapter, prefixsegments=chapter
> 
> I guess, this is the default, but I've explicitly set it.
> In some captions the prefix is ignored. For example there are 5 figures in 
> chapter 2, then the captions of the figures (the text is in German) are:
> Abbildung 2.1   foo
> Abbildung 2.2   bar
> Abbildung 3foobar
> Abbildung 4otherfoo
> Abbildung 5lastfoo
> 
> Is there anything, I can do, to prevent this?

I cannot reproduce the problem you mention:

\mainlanguage[de]
\starttext
\dorecurse{5}{\chapter{Kapitel}
\placefigure{Eine Kuh}{\externalfigure[cow.pdf]}}
\chapter{Kapitel}
\dorecurse{5}{\placefigure{Eine andere Kuh}
{\externalfigure[cow.pdf]}}
\dorecurse{5}{\chapter{Kapitel}
\placefigure{Noch eine andere Kuh}{\externalfigure[cow.pdf]}}
\stoptext

In general, please provide minimal samples of code that show your problem.

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
___

[NTG-context] Couple of questions

2017-07-27 Thread Gerion Entrup
Hi,

this is a rather long mail, but I'll add the answers to the wiki.

For the future: Should I write one mail per question or all in one? :)

1. Color of references and table of content:
How can I define/change the colors of references and the table of content? And
why are some references red and others green?


2. Own title format
I've set an own title format for chapters, like described in the wiki. 
Unfortunately this applies to the table of contents and bibliography as well.
Below a minimal example, that reproduces it:
```
\setupinteraction[state=start]

\define[2]\MyChapter{\framed[frame=off,bottomframe=on,topframe=on]
{\vbox{\headtext{chapter} #1\blank#2}}}

\setuphead[chapter][command=\MyChapter, style={\switchtobodyfont[24pt,ss]}, 
header=empty, page=mychapterpagebreak]
\setupheadtext[chapter=Chapter, content=Table of Contents]

\starttext
\completecontent
\page[yes]

\startchapter[title=foo]

\stoptext
```
How can I prevent the printing of "Chapter" in the table of contents and
bibliography?


3. Text size in t-vim
I've defined a smaller text size in t-vim, but this seems to affect \inline... 
as well. Is there a way to circumvent this?

Minimal example:
```
\setupinteraction[state=start]

\usemodule[t-vim]
\definevimtyping[python][syntax=python,
 style={\switchtobodyfont[8pt,tt]},]
\starttext
\startpython
for line in foo:
print(line)
\stoppython
This is keyword \inlinepython{in} Python.
\stoptext
```


4. Captions of combinations
The wiki shows, how to completely autolabel figures in a combination with mkiv.
Is there a way to simply prefix the label with a), b), c),...?

Another related question: Is there a way to define the width and align of the 
labels of a combination?


5. Numbering of floats
I want a numbering for my figures in this format:
way=bychapter, prefixsegments=chapter

I guess, this is the default, but I've explicitly set it.
In some captions the prefix is ignored. For example there are 5 figures in 
chapter 2, then the captions of the figures (the text is in German) are:
Abbildung 2.1   foo
Abbildung 2.2   bar
Abbildung 3foobar
Abbildung 4otherfoo
Abbildung 5lastfoo

Is there anything, I can do, to prevent this?


6. Multiple references
I want to create the same footnote on multiple locations in the text. 
Therefore I used:
```
\setupinteraction[state=start]

\starttext
This\footnote[letter-s]{"s" is a letter.} is\note[letter-s] a 
nons\note[letter-s]ens\note[letter-s]e text.
\stoptext

```
But this uses different fonts for the number in the text. Is there a way to fix 
this or do it better?




___
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] Caption with new line

2017-03-17 Thread Kostirya
Hello.

I use \vbox to separate headtext from text in chapter header by new line.

 \define[2]\MyChapterCommand{\vbox{\centeraligned{\headtext{chapter} #1.\\#2}}}
 \define[1]\DotAfterNumber{\doiftext{#1}{#1.}}

 \setuphead[chapter][command=\MyChapterCommand]
 \setuphead[title][numbercommand=\DotAfterNumber,command=]

Tell me, please, how can I do like for Captions of Floating Objects?

Nick.
___
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] Caption with new line

2017-03-17 Thread Kostirya
Hello.

I use \vbox to separate headtext from text in chapter header by new line.

 \define[2]\MyChapterCommand{\vbox{\centeraligned{\headtext{chapter} #1.\\#2}}}
 \define[1]\DotAfterNumber{\doiftext{#1}{#1.}}

 \setuphead[chapter][command=\MyChapterCommand]
 \setuphead[title][numbercommand=\DotAfterNumber,command=]

Tell me, please, how can I do like for Captions of Floating Objects?

Nick.
___
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] TOC in bookmarks

2016-07-11 Thread Wolfgang Schuster

Marcus Vinicius Mesquita <mailto:marcusvinicius.mesqu...@gmail.com>
11. Juli 2016 um 15:00
Dear list

How can one make the page with the TOC also appear in the bookmarks 
using mkiv?


\setupinteraction[state=start]

\placebookmarks[title,chapter][force=yes]

\starttext

% Variant 1, shows the text which is set with 
\setupheadtext[][content=...]

\completecontent

% Variant 2, you can set your own text for the bookmark
% \starttitle[title=\headtext{content},reference=content,bookmark=Table 
of content]

% \placecontent
% \stoptitle

\dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}}

\stoptext

BTW: It isn't necessary to format the text of your question.

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] TOC in bookmarks

2016-07-11 Thread Marcus Vinicius Mesquita
Thank you

Marcus Vinicius

On Mon, Jul 11, 2016, 10:33 Wolfgang Schuster <schuster.wolfg...@gmail.com>
wrote:

> Marcus Vinicius Mesquita <marcusvinicius.mesqu...@gmail.com>
> 11. Juli 2016 um 15:00
>
> Dear list
>
> How can one make the page with the TOC also appear in the bookmarks using
> mkiv?
>
>
> \setupinteraction[state=start]
>
> \placebookmarks[title,chapter][force=yes]
>
> \starttext
>
> % Variant 1, shows the text which is set with
> \setupheadtext[][content=...]
> \completecontent
>
> % Variant 2, you can set your own text for the bookmark
> % \starttitle[title=\headtext{content},reference=content,bookmark=Table of
> content]
> % \placecontent
> % \stoptitle
>
> \dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}}
>
> \stoptext
>
> BTW: It isn't necessary to format the text of your question.
>
> 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] Improving Pandoc Support for ConTeXt

2015-10-26 Thread Wolfgang Schuster

Aditya Mahajan <mailto:adit...@umich.edu>
24. Oktober 2015 um 21:11
On Mon, 19 Oct 2015, Andrew Dunning wrote:
It has been mentioned a few times on this list, with Pablo Rodríguez 
recently developing a set of templates for typesetting its XHTML 
output (at https://github.com/ousia/from-pandoc-to-context). One of 
its aims is to ease the process of producing a high-quality PDF; it 
has the strongest support for LaTeX at the moment, but it seems to me 
that ConTeXt would ultimately provide a more reliable and lightweight 
solution. The basic support is already in place; it only needs to be 
more thoroughly updated to take advantage of MkIV.


This translation is not written in a ConTeXtish way. A lot of

\startmode[*en,*uk] \chapter{...} \stopmode
\startmode[*es] \chapter {...} \stopmode

etc could be written using \labeltext. For example:

\chapter{\labeltext{notes}]

\setuplabeltext[en][notes={Notes}]
\setuplabeltext[es][notes={Notas}]
etc.

Why don’t you use \headtext?

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] Improving Pandoc Support for ConTeXt

2015-10-26 Thread Aditya Mahajan

On Mon, 26 Oct 2015, Wolfgang Schuster wrote:


 Aditya Mahajan <mailto:adit...@umich.edu>
 24. Oktober 2015 um 21:11
 On Mon, 19 Oct 2015, Andrew Dunning wrote:
>  It has been mentioned a few times on this list, with Pablo Rodríguez 
>  recently developing a set of templates for typesetting its XHTML output 
>  (at https://github.com/ousia/from-pandoc-to-context). One of its aims is 
>  to ease the process of producing a high-quality PDF; it has the 
>  strongest support for LaTeX at the moment, but it seems to me that 
>  ConTeXt would ultimately provide a more reliable and lightweight 
>  solution. The basic support is already in place; it only needs to be 
>  more thoroughly updated to take advantage of MkIV.


 This translation is not written in a ConTeXtish way. A lot of

 \startmode[*en,*uk] \chapter{...} \stopmode
 \startmode[*es] \chapter {...} \stopmode

 etc could be written using \labeltext. For example:

 \chapter{\labeltext{notes}]

 \setuplabeltext[en][notes={Notes}]
 \setuplabeltext[es][notes={Notas}]
 etc.

Why don’t you use \headtext?


Because I did not know about it :-)

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] (announcement) from pandoc to ConTeXt

2015-07-09 Thread Wolfgang Schuster



Pablo Rodriguez mailto:oi...@gmx.es
9. Juli 2015 18:32
Dear list,

this is a bit weird, because the vast majority of the list members are
way forward in the path of ConTeXt knowledge than myself.

But just in case you were interested, I created an environment to
typeset XHTML generated by pandoc with ConTeXt MkIV.

Here you have the websites:

http://www.from-pandoc-to-context.tk
https://github.com/ousia/from-pandoc-to-context


Just a few comments on your code.

1. When you use \vfill at the begin of a makeup environment you don’t 
need \mbox and a ConTeXt user would use \dontleavehmode instead of \mbox.


2. To create a language dependant header for the TOC etc. you can use 
the \headtext command, e.g.


\title{\headtext{content}}
\placelist[part,chapter]

3. Be careful when you use _ in command names, e.g. \TOC_Title because 
it your case you created the command \TOC followed by the string “_Title”.


4. Better use \crlf to force a line break for the br/ tag because \\ 
can produce different results depending in the environment.


5. Use \define[2]\... or \unexpanded\def\... to create your \href command.

6. ConTeXt already has a \url command.

7. Your \url command has two font changes (\tt and \hw) and one should 
be removed.


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] mkiv versus mkii: whitespace issues

2015-03-22 Thread Wolfgang Schuster

 Am 21.03.2015 um 19:49 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 On 20 Mar 2015, at 18:33, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.03.2015 um 14:43 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Sorry to ask again, but is there no solution?
 
 Can you send a *working* minimal example!
 
 I don’t know how. It happens with my project. I can’t publish my entire 
 project’s source code as it is for a book that is sold commercially.
 
 I’ll look into trying to make a minimal example. But so far I haven’t been 
 able to.

The initial is the problem but you can fix this when you replace \GotoPar with 
a different mechanism.

 begin example
\showgrid

\definelist[chaptertext][style=\itx]

\define[1]\ChapterAbstract{\doflushatpar{\writetolist[chaptertext]{}{#1}}}

\starttext

\title{\headtext{content}}

\placelist[chapter,chaptertext]

\chapter{Knuth}

\ChapterAbstract{\input ward }

\placeinitial\input knuth

\stoptext
 end example

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] How to use \setuplist for formatting a chapter entry?

2015-02-04 Thread Rob Heusdens

 You have to write a working minimal example for further help.

 Wolfgang


So this is the example:

\setupinteraction[state=start]

\definehead[intro][chapter]
\definehead[back][chapter]
\definehead[appendix][chapter]

\definecombinedlist[content][chapter,intro,appendix,back]
\setupcombinedlist[content][alternative=c]


\setupheadtext[content=Inhoud]
\setupheadtext[chapter=Hoofdstuk]
\setupheadtext[appendix=Bijlage]
\setupheadtext[back=Noten]

\definefiller[ChapterFiller]

\define[1]\MyContentCommand%
  {\framed[frame=off,offset=none,frameoffset=0pt]
 {\vbox{\blank[4cm]\Word{#1

\define[1]\MyIntroCommand%
  {\framed[frame=off,offset=none,frameoffset=0pt]
 {\vbox{\blank[4cm]\Word{#1

\define[2]\MyChapterCommand%
  {\framed[frame=off,offset=none,frameoffset=0pt]
 {\vbox{\blank[4cm]{\small \headtext{chapter}
#1}\blank\unhyphenated{#2

\define[1]\MyAppendixCommand%
  {\framed[frame=off,offset=none,frameoffset=0pt]
 {\vbox{\blank[4cm]{\small \headtext{appendix}}\blank\unhyphenated{#1

\define[1]\MyBackCommand%
  {\framed[frame=off,offset=none,frameoffset=0pt]
 {\vbox{\blank[4cm]{\small \headtext{back}}\blank\unhyphenated{#1

\definefiller[ChapterFiller]

\define[1]\ChapterNumberToc%
 {Hoofdstuk #1 -- }

\define[3]\ChapterToc%
{\vbox{\bf Hoofdstuk #1 -- #2 \filler[ChapterFiller] #3}}

\define[1]\AppendixToc%
{Bijlage -- #1}

\define[1]\BackToc%
{Noten -- #1}

\setuphead[intro][number=no,header=nomarking,command=\MyIntroCommand]
\setuphead[chapter][header=nomarking,command=\MyChapterCommand,aligntitle=yes,align={flushleft,nothyphenated,verytolerant}]
\setuphead[title][command=,textcommand=\MyContentCommand]
\setuphead[appendix][number=no,header=nomarking,command=,textcommand=\MyAppendixCommand,align={flushleft,nothyphenated,verytolerant}]
\setuphead[back][number=no,header=nomarking,command=,textcommand=\MyBackCommand,align={flushleft,nothyphenated,verytolerant}]

\setuplist[chapter][headnumber=yes,style=bold,width=17ex,numbercommand=\ChapterNumberToc]
%\setuplist[chapter][headnumber=yes,style=bold,alternative=command,command=\ChapterToc]
\setuplist[appendix][headnumber=no,style=bold,textcommand=\AppendixToc]
\setuplist[back][headnumber=no,style=bold,textcommand=\BackToc]

\starttext
\completecontent
\startfrontmatter
\intro{Intro}
\stopfrontmatter
\startbodymatter
\dorecurse{5}{
\chapter {Knuth} \input knuth
\chapter {Zapf}  \input zapf}
\stopbodymatter
\startappendices
\appendix{Appendix}
\stopappendices
\startbackmatter
\back{Back}
\stopbackmatter
\stoptext

As you can see, starting from chapter 10 (there are 21 chapters in the
real document) there is now no space between the endash and the title,
like it is for the first 9 chapters.

So, instead of using the numbercommand for the \setuplist[chapter] I tried
using:

\setuplist[chapter][headnumber=yes,style=bold,alternative=command,command=\ChapterToc]

(by uncommenting that line and commenting out the old \setuplist[chapter]

with the command \ChapterToc already defined in the MWE.

However, that does not produce the desired result.

Can you give a clue?

Thanks,

Rob

___
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] More headache with \setuphead

2015-02-01 Thread Pablo Rodriguez
On 02/01/2015 12:26 AM, Rob Heusdens wrote:
 Related post:
 section with \sethupead[section][alternative=text]; other type of section
 misbehaves..
 [...]
 Can anyone advise?

Hi Rob,

how about providing a sample that can be copied, pasted and compiled and
a brief description of what you get and what you intend?

It might be that I’m not good at reading, that my background is not
computer science, that my English is broken, or that I’m a lazy person
(or simply a jerk :-)).

Seriously, the sample avoids guesswork. Not only reconstructing the
code, but meeting the requirements you have for your document.

I think this should be your improved sample:

\define[1]\MyContentCommand%
  {\framed[frame=on,offset=none,frameoffset=0pt]
 {\vbox{\blank[1cm]\Word{#1

\define[2]\MyChapterCommand%
  {\framed[frame=on,offset=none,frameoffset=0pt]
 {\vbox{\blank[4cm]{\small \headtext{chapter}
#1}\blank\unhyphenated{#2

\setuphead[chapter]
   [header=nomarking,
   command=\MyChapterCommand,
   aligntitle=yes,
   align={flushleft,nothyphenated,verytolerant}]

\setuphead[title]
   [command=,
textcommand=\MyContentCommand]

\starttext
\completecontent

\chapter{Chapter}
\stoptext

In \completecontent, the heading command is not \content but \title.

At least, it seems to work in the previous sample.

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

[NTG-context] More headache with \setuphead

2015-01-31 Thread Rob Heusdens
Related post:
section with \sethupead[section][alternative=text]; other type of section
misbehaves..


Hello list,

It seems I have more problems with \setuphead, which I can't get hold on.

This time content misbehaves in way I can't understand.

Here are the relevant definitions/commands:

\setuphead[chapter]
   [header=nomarking,
   command=\MyChapterCommand,
   aligntitle=yes,
   align={flushleft,nothyphenated,verytolerant}]

\setuphead[content]
   [command=,
textcommand=\MyContentCommand]

What I expect this set of definitions to do is to indeed perform
\MyChapterCommand for a chapter to typeset the title of a chapter.

For the table of contents, I hoped that it would not do the command, which
I set for chapter (by clearing that option with =,), and instead perform
the textcommand \MyContentCommand.

However from my output it is clear that the table of content still does
\MyChapterCommand.

As a workaround, I postponed setting \setuphead for chapter till after the
content.

But why does this not work?

Even if content is supposedly doing the same thing as chapter does, it I
make thereafter changes to content, and in fact undo the command setting
and instead direct it to perform a textcommand, I don't expect it to still
perform \MyChapterCommand. But it does that.

Below the definitions for both commands:

\define[1]\MyContentCommand%
  {\framed[frame=off,offset=none,frameoffset=0pt]
 {\vbox{\blank[4cm]\Word{#1


\define[2]\MyChapterCommand%
  {\framed[frame=off,offset=none,frameoffset=0pt]
 {\vbox{\blank[4cm]{\small \headtext{chapter}
#1}\blank\unhyphenated{#2


Can anyone advise?

Thanks,

Rob

___
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] luatex crashes

2014-01-21 Thread Henning Hraban Ramm
Am 2014-01-21 um 22:49 schrieb Henning Hraban Ramm te...@fiee.net:

 ConTeXt  ver: 2014.01.21 16:07 MKIV beta  fmt: 2014.1.21  int: english/english
 
 This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746)
 
 This is LuajitTeX, Version beta-0.78.2 (TeX Live 2014/dev)
 
 
 The problems seems to be in the index mechanism, specifically in \placeindex.
 If I use \completeindex[criterium=all], it runs through, then I can replace 
 it with \placeindex (to get rid of the title), and it works, while I don’t 
 change anything.
 If I remove the „good“ TUC file, I get the crash again, and no TUC file is 
 created. If I put it back, it works again.
 

Rather minimal example:

---
\setupregister[index][align=yes]

\starttext

\dorecurse{20}{%
\expanded{\chapter{My chapter \recurselevel}}
\expanded{\index{Index entry \recurselevel}}
\expanded{\section{My Zapf \recurselevel}}
\input zapf
\expanded{\section{My Tufte \recurselevel}}
\input tufte
}

\completeindex
%\placeindex

\stoptext
---

Without the setup [align=yes] I get a different error, but no crash of the 
binary:


structuresectioning  chapter @ level 2 : 0.21 - \headtext {index}
! Attempt to double-free glue_spec node 5028, ignored.

system   tex  error on line 17 in file 
/Users/hraban/Documents/projekte/context-tests/indexcrash.tex: Attempt to 
double-free glue_spec node 5028, ignored ...

 7 \expanded{\chapter{My chapter \recurselevel}}
 8 \expanded{\index{Index entry \recurselevel}}
 9 \expanded{\section{My Zapf \recurselevel}}
10 \input zapf
11 \expanded{\section{My Tufte \recurselevel}}
12 \input tufte
13 }
14 
15 \completeindex
16 %\placeindex
17   
18 \stoptext


\page_shipouts_normal ...box \shipoutscratchbox }}
  \else \page_shipouts_ignor...
\page_boxes_shipout ... {\box \shipoutscratchbox }
  \fi \setnextrealpageno \th...
\page_otr_construct_and_shipout ...cted_page #1#2}
  \page_otr_flush_pending_co...
\page_sides_output_routine_nop ...de_float_output 
  \global \d_page_sides_vsiz...
\page_sides_output_routine ..._output_routine_nop 
  \fi 
\page_otr_triggered_output_routine ...and_routine 
  \fi 
...
l.17 



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] ToC - right-alignment of roman numerals

2013-11-18 Thread Jan Tosovsky
On 2013-11-17 Jan Tosovsky wrote:
 On 2013-06-03 Marco Patzer wrote:
  On 2013–06–03 honyk wrote:
 
   in fresh MkIV I use the following commands for building ToC, but I
   have no idea how to align the label (roman numeral) to the right.
 
  The width setting needs to be applied to the chapter list, not the
  content list, see example
 
  \setuphead[chapter][conversion=Romannumerals]
  \setupheadnumber[chapter][48]
 
  \setupcombinedlist
[content]
[alternative=c]
 
  \setupcombinedlist
[chapter]
[distance=1em,
 width=1cm,
 numbercommand={\simplealignedbox{\listparameter{width}}{flushright}}
]
 
  \starttext
  \completecontent
  \chapter{Foo}
  \chapter{Bar}
  \stoptext
 
 
 Whereas this works for basic test cases, in my document it ends with an
 error:
 
 structuresectioning  title @ level 2 : 0.0 - \headtext
 {content}
 ! Argument of \147flushright has an extra }.

There was a missing comma after the numbercommand parameter! Strange...

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] ToC - right-alignment of roman numerals

2013-11-17 Thread Jan Tosovsky
On 2013-06-03 Marco Patzer wrote:
 On 2013–06–03 honyk wrote:
 
  in fresh MkIV I use the following commands for building ToC, but I
  have no idea how to align the label (roman numeral) to the right.
 
 The width setting needs to be applied to the chapter list, not the
 content list, see example

 \setuphead[chapter][conversion=Romannumerals]
 \setupheadnumber[chapter][48]
 
 \setupcombinedlist
   [content]
   [alternative=c]
 
 \setupcombinedlist
   [chapter]
   [distance=1em,
width=1cm,
numbercommand={\simplealignedbox{\listparameter{width}}{flushright}}
   ]
 
 \starttext
 \completecontent
 \chapter{Foo}
 \chapter{Bar}
 \stoptext
 

Whereas this works for basic test cases, in my document it ends with an error:

structuresectioning  title @ level 2 : 0.0 - \headtext {content}
! Argument of \147flushright has an extra }.

How can I decode this message and fix the problematic location?

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] deeptextcommand and firstcharacter

2013-09-21 Thread Hans Hagen

On 9/21/2013 7:11 PM, Thangalin wrote:

Hi,

Most programming languages allow extraction of a character or substring
from a string. For example, if I wanted to stylize the word Index:

*I...* Index *...X*

It would be handy to do something like:

 \bold{\getcharacter[1]{#!}}... #1
...\bold{\getcharacter[\stringlength{#!}]}


tex is macro language so that would not work .. of course I can provide 
something more clever than the previous hack but not this week (it's not 
too complex but i need to fool the font system and of course one might 
wonder if such features make any typographical sense at all esp in 
automated document processing)



That is a much more flexible solution than only providing a mechanism to
get the first character.


in this case #1 == \headtext{#1} so you cannot easily do such things 
without know what you deal with


-
  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] Two questions about registers

2013-06-02 Thread Wolfgang Schuster

Am 02.06.2013 um 19:46 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl:

 Hi list,
 
 I have two questions regarding registers.
 
 1. How to change the title of the register (placed by
 \completeregister) and its numbering style?  (Assume that e.g. I want
 it to be an unnumbered section and not a numbered chapter.)

When you use one of the \complete… (content, synonyms etc.) commands
context uses either \chapter or \title to place the heading for the register,
in addition it creates a reference to the register which has the name
of the register, e.g. “content” or “index”.

In cases where this heading type isn’t sufficient you can use \title
(or any other heading) in combination with \place…, the disadvantage
of this method is that you loose the multilingual labels (not really
a problem) but you can access the texts with \headtext{…},
e.g. \headtext{content} or \headtext{index}


 2. I'd like my register not to have the headers with subsequent letters
 of the alphabet.  I did [indicator=no] in \setupregister, but still got
 the *vertical spacing* between gropus of entries beginning with the same
 letter. Then, I did also [before={}], but then the space between entry
 groups is actually *smaller* than the usual interline space (confirmed
 by doing \showgrid).  What should I do to prevent this from happening?

Can you provide a example for this?

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] Two questions about registers

2013-06-02 Thread Marcin Borkowski
Dnia 2013-06-02, o godz. 20:46:12
Wolfgang Schuster schuster.wolfg...@gmail.com napisał(a):

 
 Am 02.06.2013 um 19:46 schrieb Marcin Borkowski
 mb...@wmi.amu.edu.pl:
 
  Hi list,
  
  I have two questions regarding registers.
  
  1. How to change the title of the register (placed by
  \completeregister) and its numbering style?  (Assume that e.g. I
  want it to be an unnumbered section and not a numbered chapter.)
 
 When you use one of the \complete… (content, synonyms etc.) commands
 context uses either \chapter or \title to place the heading for the
 register, in addition it creates a reference to the register which
 has the name of the register, e.g. “content” or “index”.

Just curiosity: when \chapter and when \title?

 In cases where this heading type isn’t sufficient you can use \title
 (or any other heading) in combination with \place…, the disadvantage
 of this method is that you loose the multilingual labels (not really
 a problem) but you can access the texts with \headtext{…},
 e.g. \headtext{content} or \headtext{index}

By multilingual labels, you mean the texts like Index, Contents
etc., right?

  2. I'd like my register not to have the headers with subsequent
  letters of the alphabet.  I did [indicator=no] in \setupregister,
  but still got the *vertical spacing* between gropus of entries
  beginning with the same letter. Then, I did also [before={}], but
  then the space between entry groups is actually *smaller* than the
  usual interline space (confirmed by doing \showgrid).  What should
  I do to prevent this from happening?
 
 Can you provide a example for this?

See my other email.  Tl;dr: I was wrong, everything is fine.

 Wolfgang

Thanks,

-- 
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] [***SPAM***] Changing the font of the TOC-Title

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 08:06 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hello,
 
 I know, that I can change the TOC-Title by
 
 \setupheadtext[content=Whatever the TOC-Title may be]
 
 How can I change the Font of the TOC-Title, is there a style key, or somewhat 
 like that?
 (Directly \setupheadtext[content=Whatever the TOC-Title may be, 
 style=Chapterstyle] does not work, where Chapterstyle is a defined Font)

The title for the TOC is placed with the \title command, to change it’s style 
you have
to change the values for \title, e.g.

  \setuphead[title][style=\ssc]

When you don’t want to change the style of all title-headings you can create
your heading with a different style, e.g.

  \definehead[toctitle][title]

  \setuphead[toctitle][style=\ssc]

  \starttext

  \toctitle[content]{\headtext{content}}

  \placecontent

  …

  \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] Contents title

2012-12-02 Thread Wolfgang Schuster

Am 02.12.2012 um 15:51 schrieb Vyatcheslav Y. yatskov...@gmail.com:

 Hi,
 
 How to change the appearnace of the title of Contents list?
 
 With the following code I get big and not bold  Содержание, which
 does not match my section style. I'd like it's font size and weight)
 to be the same as section (\bfc).
 
 \setupcombinedlist
 [content]
 [alternative=c]
 
 \completecontent
 
 
 P.S. Strange, but no help here
 http://wiki.contextgarden.net/Table_of_Contents

The title for the TOC is placed with “\title{\headtext[content]}”.

To change the layout for the title change the “title” style or create your own 
heading with the same settings as your section and place the TOC with

  \myheading{Content}

  \placecontent

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] table of contents

2012-07-09 Thread Wolfgang Schuster

Am 09.07.2012 um 11:43 schrieb Meer, H. van der:

 Is there a simple manner to restrict the table of contents to chapter and 
 section, excluding subsections, subsubsections?
 
 Now I use (and get all)
 
 \startfrontmatter% the table of contents
  \setuppagenumber[number=1,numberconversion=romannumerals]

You can put this setup in a sectionblockenvironment.

  \completecontent
 \stopfrontmatter
 
 I tried  \completecontent[criterium={chapter,section}] bat that doesn't work.
 Could not find it on the wiki, but I might have missed the right search term.


The list archive should contain dozens of answers to this question but here it 
is again.

\starttext

\title{Contents} % use \title{\headtext{content}} to get a language dependent 
title
\placelist[chapter,section]

…

\stoptext

or

\definecombinedlist[content][chapter,section]

\starttext

\completecontent

…

\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] table of contents

2012-07-09 Thread Wolfgang Schuster

Am 09.07.2012 um 11:54 schrieb Wolfgang Schuster:

 I tried  \completecontent[criterium={chapter,section}] bat that doesn't work.
 Could not find it on the wiki, but I might have missed the right search term.
 
 
 The list archive should contain dozens of answers to this question but here 
 it is again.
 
 \starttext
 
 \title{Contents} % use \title{\headtext{content}} to get a language dependent 
 title
 \placelist[chapter,section]
 
 …
 
 \stoptext
 
 or
 
 \definecombinedlist[content][chapter,section]
 
 \starttext
 
 \completecontent
 
 …
 
 \stoptext

There two additional ways with the new code.

\setupcombinedlist[content][list={chapter,section}]

\starttext

\completecontent

…

\stoptext

and

\starttext

\completecontent[list={chapter,section}]

…

\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] beta

2012-07-09 Thread Meer, H. van der
This new beta crashed here immidiately:
ConTeXt  ver: 2012.07.09 20:28 MKIV  fmt: 2012.7.9  int: english/english
metapost loading 'metafun': 
/Users/hans/TeX/context-new/tex/texmf-context/metapost/context/base/metafun.mpiv
structuresectioning   @ level 1 : 0 - \headtext {content}
! Extra \else.

system   tex  error on line 23 in file practicum.tex: Extra  ...

13 
14 \starttext
15 
16 \startstandardmakeup
17 \input front % the front page
18 \stopstandardmakeup
19 
20 \startfrontmatter% the table of contents
21  \setuppagenumber[number=1,numberconversion=romannumerals]
22  \completecontent
23   \stopfrontmatter
24 
25 \startbodymatter % the main body of the contents
26 \setuppagenumber[number=1,numberconversion=numbers]\resetpagenumber
27 \page[right]\input algemeen
28 \page[right]\input transpositie
29 \page[right]\input monoalfabeet
30 \page[right]\input polyalfabeet
31 \page[right]\input midway
32 \page[right]\input isomorfie
33 \page[right]\input kerckhoffs


\strc_sectioning_handle ...ioning_after_yes \else 
  \ifconditional \c_strc_sec...
\strc_sectioning_start_named_section_indeed ...#3}
  \headparameter \c!insidese...
to be read again 
   \strc_lists_combined_place 
\strc_lists_combined_complete ...s_combined_place 
  [#1][#2]\stopnamedsection 
to be read again 
   \stopfrontmatter 
l.23 \stopfrontmatter


Hans van der Meer



On 9 jul. 2012, at 20:38, Hans Hagen wrote:

 Hi,
 
 In the process of mkiv-ing a new beta has been uploaded. This time the 
 rendering of sections has been dealt with. New is that one can use 'setups' 
 for rendering. This mechanism is still somewhat experimental (and might get 
 improved) but the idea is given below:
 

___
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] compilation broken in latest beta

2012-04-06 Thread Pablo Rodríguez
Hi there,

after upgrading today to latest beta, some of my documents don't compile.

I'm afraid I cannot provide a minimal sample. Here is the error log:

source /opt/ctxbeta/tex/setuptex  context --purgeall prueba.tex (in
directory: /home/ousia)
mtx-context | run 1: luatex
--fmt=/var/cache/ctxbeta/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en
--lua=/var/cache/ctxbeta/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui
--backend=pdf ./prueba.tex \stoptext
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)
 \write18 enabled.
(prueba.tex
ConTeXt  ver: 2012.04.02 22:23 MKIV  fmt: 2012.4.6  int: english/english
system   cont-new.mkiv loaded
(/opt/ctxbeta/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   prueba.top loaded
(prueba.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
resolversmodules  loaded: 'simplefonts'
(../../opt/ctxbeta/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.tex
loading  ConTeXt User Module / Simplefonts
+
/opt/ctxbeta/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua)
fontstypescripts  unknown: library 'loc'
{/opt/ctxbeta/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/ctxbeta/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/opt/ctxbeta/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontsbodyfont 10.5pt is defined (can better be done global)
fontsbodyfont 12.6pt is defined (can better be done global)
fontsbodyfont 8.4pt is defined (can better be done global)
fontsotf prepare  unsupported coverage contextpos for 'RQD
' Greek Caps after Accents Positioning-1
system   command \url is already defined
fontsotf prepare  unsupported coverage contextpos for 'RQD
' Greek Caps after Accents Positioning-1
fontsotf prepare  unsupported coverage contextpos for 'RQD
' Enclosed Cyrillic Letters-1
backend  xmp  using file
'/opt/ctxbeta/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
pagesflushing realpage 2, userpage 1
structures   begin of sectionblock frontpart
structuresectioning  title @ level 2 : 0.0 - \headtext {content}
! Undefined control sequence.
system   tex  error on line 11 in file prueba.tex: Undefined
control sequence ...
 1 \mainlanguage[es]
 2 \setuplanguage[es][patterns={es,agr}]
 3 \setuppapersize[A5]
 4 \usemodule[simplefonts][size=10.5pt]
 5
\definefontfeature[default][default][script=latn,calt=yes,ss11=yes,ss06=yes]
 6 \setmainfont[Theano Didot][italicfont=Old Standard Italic]
 7 \setupbodyfontenvironment[default][em=italic]
 8
\setupinteraction[state=start,color=,style=,contrastcolor=,focus=standard]
 9 \setupcombinedlist[content][interaction=all]
10 \setupindenting[medium,always]
11   \setupinterlinespace[line=3.15ex]
12 \setupwhitespace[small]
13 \setupheads[indentnext=yes]
14 \definepagebreak[firstpagebreak][yes,header,footer,right]
15 \setupsectionblock[frontpart][page=]
16 \setupsectionblock[bodypart] [page=]
17 \setupsectionblock[backpart] [page=]
18 \setupsectionblock[appendix] [page=]
19 \setuphead[part][page=firstpagebreak]
20
\setuphead[chapter][style=\itc,align=center,after={\blank[3*line]},page=firstpagebreak]
21 \setuppagenumbering[alternative=doublesided,location={botton,middle}]
\12:77:abc ...trc_lists_get_reference_attribute
  \v!all
\strc_lists_get_des...
\strc_lists_apply_renderingsetup ...nderingsetup }
  \relax \the
\t_lists_every...
\strclistsentryprocess ... \fi \fi \fi \endcsname
  \dostoptagged
\listextrapa...
l.11 {}
\ctxcommand ...\directlua \zerocount {commands.#1}
\doplacestructurelist ...s = #4, order = #5 }}
  \dostoptagged
...
l.62
?
! Emergency stop.
system   tex  error on line 11 in file prueba.tex: Emergency
stop ...
 1 \mainlanguage[es]
 2 \setuplanguage[es][patterns={es,agr}]
 3 \setuppapersize[A5]
 4 \usemodule[simplefonts][size=10.5pt]
 5
\definefontfeature[default][default][script=latn,calt=yes,ss11=yes,ss06=yes]
 6 \setmainfont[Theano Didot][italicfont=Old Standard Italic]
 7 \setupbodyfontenvironment[default][em=italic]
 8
\setupinteraction[state=start,color=,style=,contrastcolor=,focus=standard]
 9 \setupcombinedlist[content][interaction=all]
10 \setupindenting[medium,always]
11   \setupinterlinespace[line=3.15ex]
12 \setupwhitespace[small]
13 \setupheads[indentnext=yes]
14 \definepagebreak[firstpagebreak][yes,header,footer,right]
15 \setupsectionblock[frontpart][page=]
16

[NTG-context] Table of contents

2012-04-04 Thread John Devereux
Hi all,

Feeling stupid...

I updated my context MKIV to the latest version, was working with one
~1y old.

I can't get a table of contents to work at all for some strange reason,
am I misunderstanding something basic? I have tried all sorts of
variants, but a test case and log follows. 

Thanks,

John


==
%-*-context-*-
\starttext
\completecontent
\section{One}
some text
\stoptext
==


mtx-context | run 1: luatex 
--fmt=/home/jd/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en
 
--lua=/home/jd/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui
 --backend=pdf ./test.mkiv \stoptext
This is LuaTeX, Version beta-0.70.1-2011051918 (rev 4277) 
 \write18 enabled.
(test.mkiv

ConTeXt  ver: 2012.04.02 22:23 MKIV  fmt: 2012.4.4  int: english/english

system   cont-new.mkiv loaded
(/home/jd/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test.top loaded
(test.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/home/jd/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown: library 'loc'
{/home/jd/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/jd/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
structuresectioning  title @ level 2 : 0.0 - \headtext {content}
! Undefined control sequence.

system   tex  error on line 11 in file test.mkiv: Undefined control 
sequence ...

1 %-*-context-*-
2 \starttext
3 \completecontent
4 \section{One}
5 some text
6 \stoptext
7 


\12:77:abc ...trc_lists_get_reference_attribute 
  \v!all \strc_lists_get_des...
\strc_lists_apply_renderingsetup ...nderingsetup }
  \relax \the \t_lists_every...
\strclistsentryprocess ... \fi \fi \fi \endcsname 
  \dostoptagged \listextrapa...
l.11 {}
   
\ctxcommand ...\directlua \zerocount {commands.#1}
  
\doplacestructurelist ...s = #4, order = #5 }}
  \dostoptagged 
...
l.4 \section
{One}
? ! Interruption.

system   tex  error on line 11 in file test.mkiv: Interruption ...

1 %-*-context-*-
2 \starttext
3 \completecontent
4 \section{One}
5 some text
6 \stoptext
7 

to be read again a
l
\v!all -al
   l
\12:77:abc ...ts_get_reference_attribute \v!all 
  \strc_lists_get_destinatio...
\strc_lists_apply_renderingsetup ...nderingsetup }
  \relax \the \t_lists_every...
\strclistsentryprocess ... \fi \fi \fi \endcsname 
  \dostoptagged \listextrapa...
l.11 {}
   
...
l.4 \section
{One}
? 
! Emergency stop.

system   tex  error on line 11 in file test.mkiv: Emergency stop ...

1 %-*-context-*-
2 \starttext
3 \completecontent
4 \section{One}
5 some text
6 \stoptext
7 

to be read again a
l
\v!all -al
   l
\12:77:abc ...ts_get_reference_attribute \v!all 
  \strc_lists_get_destinatio...
\strc_lists_apply_renderingsetup ...nderingsetup }
  \relax \the \t_lists_every...
\strclistsentryprocess ... \fi \fi \fi \endcsname 
  \dostoptagged \listextrapa...
l.11 {}
   
...
l.4 \section
{One}
!  == Fatal error occurred, no output PDF file produced!

-- 

John Devereux
___
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] Broken Nightly Still

2011-12-28 Thread Kip Warner
Hey folks,

Since I upgraded from the Nov 29th nightly to today's Dec 28th, my
ConTeXt source does not compile. I do not understand the error message.

$ context Source/Handbook.tex --purgeresult

resolvers   | resolving | loading configuration file 
'selfautodir:/share/texmf/web2c/contextcnf.lua'
resolvers   | resolving | loading configuration file 
'/usr/share/texmf/web2c/contextcnf.lua'
mtx-context | run 1: luatex 
--fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en
 
--lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
 --backend=pdf Source/Handbook.tex \stoptext
This is LuaTeX, Version beta-0.71.0-2011122302 (rev 4358) 
 \write18 enabled.

resolversresolving  loading configuration file 
'/usr/share/texmf/web2c/contextcnf.lua'
(Source/Handbook.tex

ConTeXt  ver: 2011.12.28 11:07 MKIV  fmt: 2011.12.28  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   Handbook.top loaded
(Handbook.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) 
(/usr/share/texmf/tex/context/base/type-otf.mkiv)
filesreadfile  asked name: 'loc', not found
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not found using 
lookup 'file'
fontsvirtual math  loading font LMMath7-Regular subfont 9 with 
name stmary10.afm at 458752 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not found using 
lookup 'file'
fontsvirtual math  loading font LMMath9-Regular subfont 9 with 
name stmary10.afm at 589824 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not found using 
lookup 'file'
fontsvirtual math  loading font LMMath12-Regular subfont 9 with 
name stmary10.afm at 786432 is skipped, not found
fontsfallback modern rm 12pt is loaded
(Source/Environment.tex
resolversmodules  loaded: 'units'
(/usr/share/texmf/tex/context/base/m-units.mkiv+ 
/usr/share/texmf/tex/context/base/x-mathml.lua)
resolversmodules  loaded: 'simplefonts'
(/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex
loading  ConTeXt User Module / Simplefonts
+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua)
fontsbeware: fontclass ignored (if needed use: 
[fontclass][size][settings])
)
backend  xmp  using file 
'/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
 Source/Makeup/Images/m_k_i_v_Avaneya_Logo.pdf
pagesflushing realpage 1, userpage 1, subpage 1
 Source/Makeup/Images/m_k_i_v_Bazaar_Logo.pdf 
Source/Makeup/Images/m_k_i_v_ConTeXt_Logo.pdf 
Source/Makeup/Images/m_k_i_v_By-nc-sa_plain.pdf
pagesflushing realpage 2, userpage 1, subpage 2
structuresectioning  title @ level 2 : 0.0 - \headtext {content}
(Source/Preface/Preface.tex
pagesflushing realpage 3, userpage 1, subpage 1
structuresectioning  chapter @ level 2 : 0.1 - Preface
backend  references  invalid page reference: 0
references   unknown reference [Preface][Revision Control Management]
backend  references  invalid page reference: 0
)
pagesflushing realpage 4, userpage 2, subpage 1
(Source/Core_Leitmotifs/Core_Leitmotifs.tex
structuresectioning  chapter @ level 2 : 0.1 - Core Leitmotifs
references   unknown reference [Core Leitmotifs][Communication]
backend  references  invalid page reference: 0
references   unknown reference [Core Leitmotifs][Resources For Everyone]
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
references   unknown reference [Core Leitmotifs][Genuine Progress 
Indicator]
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0

Overfull \hbox (2.51901pt too wide) detected at line 37
[]  
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0

[NTG-context] Broken Nightly

2011-12-22 Thread Kip Warner
Hey folks,

Since I upgraded from the Nov 29th nightly to today's Dec 22nd, my
ConTeXt source does not compile. I do not understand the error message
either. I would post the source, but there are over a 180 pages worth.

$ context Source/Handbook.tex --purgeresult

resolvers   | resolving | loading configuration file
'selfautodir:/share/texmf/web2c/contextcnf.lua'
resolvers   | resolving | loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
mtx-context | run 1: luatex
--fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en
 
--lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
 --backend=pdf Source/Handbook.tex \stoptext
This is LuaTeX, Version beta-0.71.0-2011122302 (rev 4358) 
 \write18 enabled.

resolversresolving  loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
(Source/Handbook.tex

ConTeXt  ver: 2011.12.22 16:52 MKIV  fmt: 2011.12.22  int:
english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   Handbook.top loaded
(Handbook.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv)
(/usr/share/texmf/tex/context/base/type-otf.mkiv)
filesreadfile  asked name: 'loc', not found
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath7-Regular subfont 9
with name stmary10.afm at 458752 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath9-Regular subfont 9
with name stmary10.afm at 589824 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath12-Regular subfont 9
with name stmary10.afm at 786432 is skipped, not found
fontsfallback modern rm 12pt is loaded
(Source/Environment.tex
resolversmodules  loaded: 'units'
(/usr/share/texmf/tex/context/base/m-units.mkiv
+ /usr/share/texmf/tex/context/base/x-mathml.lua)
resolversmodules  loaded: 'simplefonts'
(/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex
loading  ConTeXt User Module / Simplefonts
+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua)
fontsbeware: fontclass ignored (if needed use:
[fontclass][size][settings])
)
backend  xmp  using file
'/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
 Source/Makeup/Images/m_k_i_v_Bazaar_Logo.pdf
Source/Makeup/Images/m_k_i_v_ConTeXt_Logo.pdf
pagesflushing realpage 2, userpage 1, subpage 2
structuresectioning  title @ level 2 : 0.0 - \headtext
{content}
(Source/Preface/Preface.tex
pagesflushing realpage 3, userpage 1, subpage 1
structuresectioning  chapter @ level 2 : 0.1 - Preface
backend  references  invalid page reference: 0
references   unknown reference [Preface][Revision Control
Management]
backend  references  invalid page reference: 0
)
pagesflushing realpage 4, userpage 2, subpage 1
(Source/Core_Leitmotifs/Core_Leitmotifs.tex
structuresectioning  chapter @ level 2 : 0.1 - Core
Leitmotifs
references   unknown reference [Core Leitmotifs][Communication]
backend  references  invalid page reference: 0
references   unknown reference [Core Leitmotifs][Resources For
Everyone]
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
references   unknown reference [Core Leitmotifs][Genuine Progress
Indicator]
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0

Overfull \hbox (2.51901pt too wide) detected at line 37
[]  
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
pagesflushing realpage 5

[NTG-context] fatal error: return code: 1

2011-12-19 Thread Kip Warner
Hey Wolfgang,

This morning's daily appears broken as well. I've noticed that ConTeXt
2011.11.29 was the last working build for me. The error message changes
from day to day, and today it gives the most mysterious:

$ context Source/Handbook.tex --purgeresult --batchmodendbook.pdf
--purgeresult --
resolvers   | resolving | loading configuration file
'selfautodir:/share/texmf/web2c/contextcnf.lua'
resolvers   | resolving | loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
mtx-context | run 1: luatex --interaction=batchmode
--fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en
 
--lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
 --backend=pdf Source/Handbook.tex \stoptext
This is LuaTeX, Version beta-0.71.0-2011101421 (rev 4358) 
 \write18 enabled.

resolversresolving  loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
system   cont-new.mkiv loaded

system   beware: some patches loaded from cont-new.mkiv

system   Handbook.top loaded

fontslatin modern fonts are not preloaded
languageslanguage en is active

fontspreloading latin modern fonts (second stage)

filesreadfile  asked name: 'loc', not found

fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath7-Regular subfont 9
with name stmary10.afm at 458752 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath9-Regular subfont 9
with name stmary10.afm at 589824 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath12-Regular subfont 9
with name stmary10.afm at 786432 is skipped, not found
fontsfallback modern rm 12pt is loaded

resolversmodules  loaded: 'units'

resolversmodules  loaded: 'simplefonts'

loading  ConTeXt User Module / Simplefonts

fontsbeware: fontclass ignored (if needed use:
[fontclass][size][settings])

backend  xmp  using file
'/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1

pagesflushing realpage 2, userpage 1, subpage 2
structuresectioning  title @ level 2 : 0.0 - \headtext
{content}

[...]

pagesflushing realpage 182, userpage 180, subpage 30

pagesflushing realpage 183, userpage 181, subpage 31
structuresectioning  chapter @ level 2 : 0.2 - \headtext
{index}
pagesflushing realpage 184, userpage 182, subpage 1
mkiv lua stats   used config file
- /usr/share/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - readable:
'/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d' 
(order 2)
mkiv lua stats   used cache path   - writable:
'/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d'
mkiv lua stats   resource resolver - loadtime 0.269 seconds, 4
scans with scantime 0.221 seconds, 1211 shared scans, 135 found files,
scanned
paths: /usr/local/share/fonts /usr/share/fonts /usr/share/texmf 
/usr/share/texmf-texlive
mkiv lua stats   stored bytecode data  - 302 modules, 63 tables,
365 chunks
mkiv lua stats   cleaned up reserved nodes - 61 nodes, 10 lists of 432
mkiv lua stats   node memory usage - 8 glue, 4 kern, 9 penalty,
87 attribute, 1074 glue_spec, 15 attribute_list
mkiv lua stats   node list callback tasks  - 6 unique task lists, 11
instances (re)created, 48666 calls
mkiv lua stats   h-node processing time- 3.877 seconds including
kernel
mkiv lua stats   attribute processing time - 0.805 seconds front- and
backend
mkiv lua stats   used backend  - pdf (backend for directly
generating pdf output)
mkiv lua stats   loaded tex modules- 2 requested, 2 found
(*-simplefonts *-units), 0 missing
mkiv lua stats   loaded patterns   - en::2
mkiv lua stats   jobdata time  - 0.000 seconds saving,
0.000 seconds loading
mkiv lua stats   callbacks - 95869 direct, 9333
indirect, 105202 total
mkiv lua stats   lxml preparation time - 0.000 seconds, 0 nodes, 14
lpath calls, 0 cached calls
mkiv lua stats   interactive elements  - 40 references, 304
destinations
mkiv lua stats   v-node processing time- 2.336 seconds 
mkiv lua stats   result saved in file  - Avaneya Project Crew
Handbook.pdf.pdf
mkiv lua stats   margin data   - 254 entries, 0 pending
mkiv lua stats   loaded fonts  - 39 files

Re: [NTG-context] Undefined control sequence

2011-12-18 Thread Kip Warner
On Sat, 2011-12-17 at 06:27 +0100, Wolfgang Schuster wrote:
 I uploaded a new revision of the module which should be in the minimals in a 
 few hours.

It still bails, but now for apparently a different reason. I find it
very hard to read the error messages ConTeXt throws. I'm accustomed to
gcc style output with...

application: file: line: description

...type error messages. I wonder if there is any way to make it more
readable. This is the current output now up until it bails.

$ context Source/Handbook.tex --result=Avaneya Project Crew
Handbook.pdf --purgeresult

resolvers   | resolving | loading configuration file
'selfautodir:/share/texmf/web2c/contextcnf.lua'
resolvers   | resolving | loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
mtx-context | run 1: luatex
--fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en
 
--lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
 --backend=pdf Source/Handbook.tex \stoptext
This is LuaTeX, Version beta-0.71.0-2011101421 (rev 4358) 
 \write18 enabled.

resolversresolving  loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
(Source/Handbook.tex

ConTeXt  ver: 2011.12.17 10:04 MKIV  fmt: 2011.12.18  int:
english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   Handbook.top loaded
(Handbook.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv)
(/usr/share/texmf/tex/context/base/type-otf.mkiv)
filesreadfile  asked name: 'loc', not found
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath7-Regular subfont 9
with name stmary10.afm at 458752 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath9-Regular subfont 9
with name stmary10.afm at 589824 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath12-Regular subfont 9
with name stmary10.afm at 786432 is skipped, not found
fontsfallback modern rm 12pt is loaded
(Source/Environment.tex
resolversmodules  loaded: 'units'
(/usr/share/texmf/tex/context/base/m-units.mkiv
+ /usr/share/texmf/tex/context/base/x-mathml.lua)
resolversmodules  loaded: 'simplefonts'
(/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex
loading  ConTeXt User Module / Simplefonts
+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua)
fontsbeware: fontclass ignored (if needed use:
[fontclass][size][settings])
)
backend  xmp  using file
'/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
 Source/Makeup/Images/m_k_i_v_Bazaar_Logo.pdf
Source/Makeup/Images/m_k_i_v_ConTeXt_Logo.pdf
pagesflushing realpage 2, userpage 1, subpage 2
structuresectioning  title @ level 2 : 0.0 - \headtext
{content}
(Source/Preface/Preface.tex
pagesflushing realpage 3, userpage 1, subpage 1
structuresectioning  chapter @ level 2 : 0.1 - Preface
backend  references  invalid page reference: 0
references   unknown reference [Preface][Revision Control
Management]
backend  references  invalid page reference: 0
)
pagesflushing realpage 4, userpage 2, subpage 1
(Source/Core_Leitmotifs/Core_Leitmotifs.tex
structuresectioning  chapter @ level 2 : 0.1 - Core
Leitmotifs
references   unknown reference [Core Leitmotifs][Communication]
backend  references  invalid page reference: 0
references   unknown reference [Core Leitmotifs][Resources For
Everyone]
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
references   unknown reference [Core Leitmotifs][Genuine Progress
Indicator]
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend  references  invalid page reference: 0
backend

[NTG-context] Problems with \completecontent after upgrade to latest beta

2011-12-16 Thread Steffen Fritzsche
Hi,

I just installed the latest beta (2011.12.15) on my workstation. I'm not able 
to create my document, because there are problems with the placement of my toc. 
The same tex is running fine on my laptop with (2011.11.29). It hangs while 
placing the front matter. The following error is displayed:

system   tex  error on line 107 in file main.tex: Emergency stop ...

97 
98 % 
==
99 % STRUCTURE
100 % 
==
101 
102 \startfrontmatter
103 \completecontent
104 %\completefigures
105 %\completelistings
106 %\component index/abbreviations
107   \stopfrontmatter
108 
109 \startbodymatter
110 \component chapter01/main
111 \component chapter02/main
112 \component chapter03/main
113 \component chapter04/main
114 \component chapter05/main
115 \component chapter06/main
116 \component chapter07/main
117 \component chapter08/main

to be read again 
  [
\next_optional_command_yes ...\startnamedsection [
 {title}][{title={\headtext...
to be read again 
  [
\dotripleemptythreenormal #1#2#3-#1[{#2}][{#3}][
]
to be read again 
  \doplacecombinedlist 
\docompletecombinedlist ...]}\doplacecombinedlist 
 [#1][#2]\stopnamedsection 
...
l.107 \stopfrontmatter

!  == Fatal error occurred, no output PDF file produced!


Were there any changes to this part? Am I doing something wrong?

Thanks!
Steffen

___
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] Bibliography is not working

2011-06-22 Thread yoraxe
Hey,

Typing

\setupbibtex[database=bib]

\starttext
\completepublications
\stoptext

with bib.bib:

@BOOKLET{booklet,
  title = {Something here},
  year = {2005},
  publisher = {Something here},
}

creates the attached pdf-file without any references. I also attache the
log-file.

Thanks,

Yoraxe
(bibtest.tex

ConTeXt  ver: 2011.06.11 16:45 MKIV  fmt: 2011.6.13  int: english/english

system   cont-new.mkiv loaded
(/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   bibtest.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   bibtest,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=bibtest]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(bibtest.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
publications wrote a new auxiliary file \jobname.aux
{/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/home/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file bibtest at line 3
structuresectioning  chapter @ level 2 : 0.1 - \headtext {pubs}
publications loading database from bibtest.bbl
(bibtest.bbl)
backend  xmp  using file '/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
system   end file bibtest at line 5
 )/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats   used config file  - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - readable: '/home/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606' (order 1)
mkiv lua stats   used cache path   - readable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606' (order 2)
mkiv lua stats   used cache path   - writable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606'
mkiv lua stats   input load time   - 0.006 seconds
mkiv lua stats   stored bytecode data  - 287 modules, 61 tables, 348 chunks
mkiv lua stats   cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats   node memory usage - 2 glue, 2 penalty, 12 attribute, 27 glue_spec, 3 attribute_list
mkiv lua stats   node list callback tasks  - 6 unique task lists, 5 instances (re)created, 2378 calls
mkiv lua stats   used backend  - pdf (backend for directly generating pdf output)
mkiv lua stats   loaded patterns   - en::2
mkiv lua stats   callbacks - 2519 direct, 2972 indirect, 5491 total
mkiv lua stats   randomizer- resumed with value 0.14122827217971
mkiv lua stats   lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats   result saved in file  - bibtest.pdf
mkiv lua stats   loaded fonts  - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats   fonts load time   - 0.252 seconds 
mkiv lua stats   luatex banner - this is luatex, version beta-0.70.1-2011051918

Re: [NTG-context] Parsing CFF DICT failed

2011-05-15 Thread Reviczky, Adam
 Any chance of a (smallish) test file?

I've attached the test file, log and broken pdf/synctex files.

Do you need anything else?

Adam
\enabledirectives[system.synctex]
\setupbibtex[database={sample},sort=author]
\starttext
\chapter{Bibliography}
\completepublications[criterium=text]
\stoptext
@STRING{hh = {Hans Hagen}}

@ELECTRONIC{hh2010,
  author = hh,
  year = {2010},
  title = {Metafun. \CONTEXT\ mkiv},
  url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf},
}

@ARTICLE{hh2010a,
  author = hh,
  title = {The Font Name Mess},
  journal = {MAPS},
  year = {2010},
  volume = {40},
  pages = {2-8},
  keywords = {context},
}

@ARTICLE{hh2010b,
  author = hh,
  title = {Grouping in Hybrid Environments},
  journal = {MAPS},
  year = {2010},
  volume = {40},
  pages = {67-71},
  keywords = {context},
}

@BOOK{Eijkhout1991,
  title = {\TeX\ by Topic. A \TeX nician's Reference},
  publisher = {Addison-Wesley},
  year = {1991},
  author = {Victor Eijkhout},
  address = {London},
  keywords = {general},
}
(test.tex

ConTeXt  ver: 2011.05.14 16:34 MKIV  fmt: 2011.5.14  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   test.tex,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=test.tex]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(test.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
system   synctex functionality is enabled!
publications wrote a new auxiliary file \jobname.aux
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file test.tex at line 3
structuresectioning  chapter @ level 2 : 0.1 - Bibliography
backend  xmp  using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
structuresectioning  chapter @ level 2 : 0.2 - \headtext {pubs}
publications loading database from test.bbl
(test.bbl)
pagesflushing realpage 2, userpage 2
system   end file test.tex at line 6
 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
!LuaTeX error (file /usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf): Parsing CFF DICT failed. (error=-1)
 == Fatal error occurred, no output PDF file produced!


test.pdf
Description: test.pdf


test.synctex.gz(b.txt
Description: test.synctex.gz(b.txt
___
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] Parsing CFF DICT failed

2011-05-14 Thread Reviczky, Adam
It seems to be syntex/luatex related.

Here's a minimal example using the sample.bib from the wiki 
(http://wiki.contextgarden.net/sample_bib):
%%%
\enabledirectives[system.synctex]
\setupbibtex[database={sample},sort=author]
\starttext
\chapter{Bibliography}
\completepublications[criterium=text]
\stoptext
%%%

error:
!LuaTeX error (file 
/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf): Parsing CFF 
DICT failed. (error=-1)
 == Fatal error occurred, no output PDF file produced!

note: * criterium=all works, obviously I have cite's in my document, but that 
shouldn't matter
 * commenting out the synctex line also makes it work again
 * somehow the problem is in combination with a title element (part, 
chapter, etc.), because without it it works again as well

More verbose log attached.

Adam
(test.tex

ConTeXt  ver: 2011.05.14 16:34 MKIV  fmt: 2011.5.14  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   test.tex,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=test.tex]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(test.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
system   synctex functionality is enabled!
publications wrote a new auxiliary file \jobname.aux
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file test.tex at line 4
structuresectioning  chapter @ level 2 : 0.1 - Bibliography
backend  xmp  using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
structuresectioning  chapter @ level 2 : 0.2 - \headtext {pubs}
publications loading database from test.bbl
(test.bbl)
pagesflushing realpage 2, userpage 2
system   end file test.tex at line 7
 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
!LuaTeX error (file /usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf): Parsing CFF DICT failed. (error=-1)
 == Fatal error occurred, no output PDF file produced!
___
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] label bug with latest beta (2011.04.22)

2011-04-23 Thread Reviczky, Adam
Hi

With the latest beta (2011.04.22) I cannot compile my thesis any more.
I think I've narrowed it down to this minimal example:

%%%
\starttext
\startpart[title={Table of Contents}]
\completecontent[criterium=all]
\stoptext
%%%

! LuaTeX error /usr/share/texmf/tex/context/base/strc-lst.lua:496: no string to 
print
stack traceback:
[C]: in function 'texsprint'
/usr/share/texmf/tex/context/base/strc-lst.lua:496: in function 'label'
main ctx instance:1: in main chunk.

Shouldn't be the label function something like this:
function lists.label(n)
local l = lists.result[n]
local t = l.titledata
if t then
texsprint(t.label or 0) -- 0 if no label?
end
end

Can someone confirm this?
It works with the 2011.04.20 beta, logs attached.

Adam
(toc.tex

ConTeXt  ver: 2011.04.22 18:17 MKIV  fmt: 2011.4.23  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   toc.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   toc.tex,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=toc.tex]
system   options  \setupsystem[\c!n=2,\c!m=2]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(toc.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file toc.tex at line 1
structuresectioning  part @ level 1 : 1 - Table of Contents
backend  xmp  using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
structuresectioning  title @ level 2 : 1.0 - \headtext {content}
! LuaTeX error /usr/share/texmf/tex/context/base/strc-lst.lua:496: no string to print
stack traceback:
	[C]: in function 'texsprint'
	/usr/share/texmf/tex/context/base/strc-lst.lua:496: in function 'label'
	main ctx instance:1: in main chunk.

system   tex  error on line 11 in file toc.tex: LuaTeX error  ...

1 \starttext
2 \startpart[title={Table of Contents}]
3 \completecontent[criterium=all]
4 \stoptext
5 


\listsymbol@default label(\currentlistindex )}
  }\leftlabeltext \currentli...
argument ...!numbercommand {\currentlistsymbol }
  }\hfill 
\domakelistelement ...ndgroup }{#3{#4}}\else #3{#4
  }\fi 
argument ...mmand {\currentlistsymbol }}\hfill }
  }
\firstoftwoarguments #1#2-#1
 
argument ...thc \zeropoint \setbox 2\emptyhbox }
  \setbox 4\hbox {\doif {\li...
...
l.3 \completecontent[criterium=all]
   
? q
OK, entering \batchmode...

pagesflushing realpage 2, userpage 2
system   end file toc.tex at line 4
 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats   used config file  - /usr/share/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d
mkiv lua stats   input load time   - 0.121 seconds
mkiv lua stats   stored bytecode data  - 284 modules, 58 tables, 342 chunks
mkiv lua stats   cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats   node memory usage - 19 glue_spec
mkiv lua stats   node

[NTG-context] [***SPAM***] Minimals ignores structureblockenvironment for frontmatter etc.

2011-03-20 Thread Tom
Minimals MKIV ignores the structureenvironment blocks when the suffix is
'matter' but applies them if the suffix is 'part.' Furthermore, they are
applied in \starttext if between \startfrontmatter -- \stopfrontmatter, etc.
blocks and error if between \startfrontpart -- \stopfrontpart, etc. blocks.
The following code executes but does not apply the environment block
commands. Commenting out the three \startstructureblockenvironment commands
with 'matter arguments and uncommenting the three 'part' commands will
cause the environment block commands to be executed.

Ironically, the \start-\stop pairs between \starttext and \stoptext error if
'part' is used but execute if 'matter.' 

\def\MyFrontMatterCommand#1#2% #1 is number, #2 is text
 {\framed[frame=off,align=middle,width=broad]
 {\switchtotypeface[ChapterStart] #2}}

\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off,bottomframe=on,topframe=off]
 {\vbox{\centerline{\headtext{chapter} #1}\par\blank{\centerline{#2}


\definepagebreak[mychapterpagebreak][yes,header,right]

\startstructureblockenvironment[frontmatter]
%ignored if frontmatter, applied if frontpart
%\startstructureblockenvironment[frontpart]

\setuppagenumbering[state=start,location=bottom,conversion=romannumerals] 

\setuphead[chapter]
 [command=\MyFrontMatterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  number=no,after={\blank[0.5in]}]

\stopstructureblockenvironment

\startstructureblockenvironment[bodymatter]
%ignored if bodymatter, applied if bodypart
%\startstructureblockenvironment[bodypart]

\setuppagenumbering[alternative=doublesided,location=]

\setuppagenumbering[state=start,location=bottom,conversion=numbers] 

\setuphead[chapter]
 [command=\MyChapterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  after={\blank[0.5in]},before={\blank[force,1.0in]}
  \placeinitial] 

\stopstructureblockenvironment

\startstructureblockenvironment[backmatter]
%ignored if back, applied if backpart
%\startstructureblockenvironment[backpart]

\setuphead[title]
 [command=\MyFrontMatterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  number=no,after={\blank[0.25in]}]

\setuphead[chapter]
 [command=\MyFrontMatterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  number=no,after={\blank[0.25in]}]


\stopstructureblockenvironment

\starttext 

\startfrontmatter % errors if startfrontpart

%sample front matter
\input knuth 

\completecontent[alternative=c,criterium=all]

\chapter{Preface}
\input knuth

\chapter{Introduction} 
\input knuth  

\stopfrontmatter

\startbodymatter %errors if startbodypart

\chapter{I Was Born}
\input knuth

\chapter{I Observe}
Lorem {\index{lorem}}ipsum dolor sit amet, consectetur adipiscing elit.
Maecenas ipsum turpis, imperdiet vel aliquam eu, iaculis at lorem. Proin ut
orci ac dui sodales commodo vel quis sem. Etiam nunc odio, luctus non cursus
elementum, elementum non. 

\stopbodymatter

\startbackmatter %errors if startbackpart
\title{Appendices}
\page[blank]
\completeindex
\stopbackmatter

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Chapters not sowing up in ToC

2011-02-15 Thread Wolfgang Schuster

Am 14.02.2011 um 21:05 schrieb Tom:

 When attempting to place only the chapter number on the first page of a
 chapter, the chapters do not appear in the ToC  the ToC does not display.
 Inserting #2 just before the last } in the definition for MyChapterCommand
 causes the ToC to appear with chapter names although it and the chapters are
 ugly.
 
 Is it necessary to include chapter names at the beginning of chapters?
 Perhaps this is intended because leaving chapter names off the beginning of
 chapters would reduce the value of the ToC. Maybe ToCs are not desired in
 such situations.
 
 
 %insert #2 before last } to cause ToC to appear although
 %very ugly
 \def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off]
 {\vbox{\centerline{\headtext{chapter} #1 

Replace this with:

\setuplabeltext[en][chapter=Chapter ]

\define[2]\MyChapterCommand % #1 is number, #2 is text
 {\framed[frame=off,align=middle,width=broad]{#1#2}}

\setuphead
  [chapter]
  [command=\MyChapterCommand,
   deeptextcommand=\gobbleoneargument,
   header=empty,
   footer=chapter,
   page=mychapterpagebreak,
   before={\blank[force,1.0in]},
   after={\blank[0.5in]}]

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] Chapter Command causes ToC to not display correctly

2011-02-14 Thread Tom
The code below seems to work fine when the first MyChapterCommand is
commented out and the second one is active. However, when the first one is
active and the second one is commented out, the ToC does not display
properly. What could be causing this to happen?

I know that the first MyChapterCommand is not appropriate and use an
appropriate on in the front matter environment for the actual book.

\definetypeface [mainface] [rm] [serif] [palatino][default]
\definetypeface [mainface] [ss] [sans]  [iwona-heavy] [default]
\definetypeface [mainface] [tt] [mono]  [modern]  [default]
\definetypeface [mainface] [mm] [math]  [palatino][default]

\definetypeface [pagenumber] [ss] [sans] [iwona-light] [default]

\definetypeface [dedication] [rm] [serif] [chancery] [default]

\setupbodyfont[mainface]

%\starthiding
%Chapter number only - not appropriate for frontmatter
\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off,bottomframe=on,topframe=on]
 {\vbox{\centerline{ #1 
%\stophiding

\starthiding
%lines above and below chapter number and title
\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off,bottomframe=on,topframe=on]
 {\vbox{\headtext{chapter} #1\blank#2}}} 
\stophiding

% headings

\definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]},befo
re=\page]
\definehead [intro] [chapter]

\setuphead[chapter][style=\ss\bfd,alternative=middle,
  command=\MyChapterCommand,
  header=empty,footer=chapter,
  after={\blank[0.5in]},before={\blank[force,1.0in]}
  \placeinitial]

\setuphead[intro][number=no]
\setuphead[dedication][incrementnumber=no]

\definecombinedlist [content][intro,chapter,section]

% pagenumbers

\setuppagenumbering
[state=start,alternative=doublesided,conversion=numbers,location=]
\setupheadertexts
 [chapter][pagenumber][pagenumber][My Book Title]
\setupheader[style={\switchtobodyfont[pagenumber,20pt]\sl}]

%turn on indentation 
\setupindenting[yes,medium,next]

\starttext
\dedication{}
\startdedication
\startalignment[middle]
To someone who inspired or supported me. Let's see how this works for
dedications that span multiple lines.
\stopalignment
\stopdedication
\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\chapter{Second Chapter - Ag}
\input knuth
\stoptext



Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Chapters not sowing up in ToC

2011-02-14 Thread Tom
When attempting to place only the chapter number on the first page of a
chapter, the chapters do not appear in the ToC  the ToC does not display.
Inserting #2 just before the last } in the definition for MyChapterCommand
causes the ToC to appear with chapter names although it and the chapters are
ugly.

Is it necessary to include chapter names at the beginning of chapters?
Perhaps this is intended because leaving chapter names off the beginning of
chapters would reduce the value of the ToC. Maybe ToCs are not desired in
such situations.


%insert #2 before last } to cause ToC to appear although
%very ugly
\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off]
 {\vbox{\centerline{\headtext{chapter} #1 

\setuphead[chapter]
 [command=\MyChapterCommand,
  header=empty,footer=chapter,page=mychapterpagebreak,
  after={\blank[0.5in]},before={\blank[force,1.0in]}]

\starttext

\completecontent
\chapter{The First Chapter}
\input knuth
\chapter{The\\Second\\Chapter}
\input knuth
\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] how to make 3-line header?

2011-01-27 Thread Jeong Dalyoung
Dear all,

I tried to make a chapter head with 3 lines as following:

Chapter #1

Main Title

subtitle


I looked up wiki and saw many good examples. I modified them to test the above 
structure. I am using 3 arguments. But it fails. It worked for only 2 arguments.
In simpleslide module, we can set many lines for a title. 
Is there a way of doing that? The following is a slight modification of one in 
the wiki. It worked for 2 arguments but not for 3.

Thank for reading.

Best regards,

Dalyoung


\setupcolors[state=start]

\setuphead[chapter][command=\Myheader]
%\setupheadtext[chapter=Chapitre]
%\defineoverlay[HeaderDeco][\uniqueMPgraphic{HeaderDeco}]

\def\Myheader#1#2%#3
{%
\framedtext
[width= \overlaywidth,
height=6\bodyfontsize,
background=screen,%{foreground,HeaderDeco},
offset=0pt,
strut=no,
frame=off,
align=middle]{%
{\tfb  #1 }%\headtext{chapter} #1
\blank[big]
{\ss\tfc #2}
%   \blank[small]
%{\ss\tfc #3}
}
}   
\starttext
  \chapter{ConTeXt}{It is good.}
\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] how to redefine section headers

2010-12-14 Thread Philipp A.
hi!

i want to achieve the effect i see when using the following code, only in a
semantically correct way (and without defining a \MyHeader macro like in
some examples)

\setuphead[section][numbercommand=\headtext{section}~]
\setupheadtext[de][section=Aufgabe]
\def\task{\section{}}

so if my document looks like

\starttext
\task
\task
\stoptext

this should render to:
Aufgabe 1 Aufgabe 2

(i hope the mailing list delivers html mail)

And maybe somebody knows a cool way to do this:

\starttext
\task
\task[Graphs]
\stoptext


Aufgabe 1 Aufgabe 2: Graphs

thank you!
___
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] scancsv.lua

2010-09-26 Thread Daniel Grycman
/basiclayer/pgfcorequick
.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjec
ts.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathp
rocessing.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrow
s.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade
.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage
.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayer
s.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretrans
parency.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatte
rns.code.tex)))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes
.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.c
ode.tex))
(/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgffor.tex
(/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgfrcs.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgffor.code.
tex))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz
.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/libraries/pgflibraryplo
thandlers.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix
.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libr
aries/tikzlibrarytopaths.code.tex)))
system  : module edtsnc loaded
(/usr/local/texlive/2010/texmf-dist/tex/context/base/m-edtsnc.tex
editsync: loading and enabling editor synchronization support
)
system  : module chart loaded
(/usr/local/texlive/2010/texmf-dist/tex/context/base/m-chart.tex
(/usr/local/texlive/2010/texmf-dist/tex/context/base/m-chart.mkiv
systems : The chart mkiv xml interface is not yet defined!
))
systems : begin file /Users/grycman/Dropbox/Uni/kvvtest.tex at
line 26
!pages  : flushing realpage 1, userpage 1, subpage 1
!pages  : flushing realpage 2, userpage 2
structure   : title @ level 2 : 0.0 - \headtext {content}
!pages  : flushing realpage 3, userpage 3
structure   : section @ level 3 : 0.0.1 - Kontakt
structure   : subsection @ level 4 : 0.0.1.1 - Organisation des
Germanistischen Instituts

Overfull \hbox (284.90858pt too wide) in paragraph at lines 64--1
[]

Underfull \hbox (badness 1) in paragraph at lines 96--1

structure   : subsection @ level 4 : 0.0.1.2 - Allgemeine
Studienberatung und Studienfachberatung
!pages  : flushing realpage 4, userpage 4
structure   : subsubject @ level 4 : 0.0.1.2 - Studienfachberatung
Master of Education
structure   : subsection @ level 4 : 0.0.1.3 - Die Lehrenden des
Germanistischen Instituts
! LuaTeX error scancsv.lua:147: table index is nil
stack traceback:
scancsv.lua:147: in function 'ReadLineFromCSV'
scancsv.lua:184: in function 'lineaction'
scancsv.lua:216: in function 'filelineaction'
\directlua :1: in main chunk.
argument ...lua {filelineaction(personen.csv)}
  
\firstoftwoarguments #1#2-#1
  
to be read again
  
l.116 \filelineaction{personen.csv}
  
?
! Emergency stop.
argument ...lua {filelineaction(personen.csv)}
  
\firstoftwoarguments #1#2-#1
  
to be read again
  
l.116 \filelineaction{personen.csv}
  
!  == Fatal error occurred, no output PDF file produced!MTXrun | fatal
error: return code: 1


Jaroslav, can you help me? Or anybody else?

Daniel




___
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] completelistofunits and completelistofabbreviations in MkIV

2010-08-06 Thread Hans Hagen

On 6-8-2010 1:59, Vedran Miletić wrote:

\usemodule[units]

\starttext

\completelistofunits

\chapter{Something}

1 \Meter.
\stoptext



in strc-syn.mkiv replace

\def\docompletelistofsynonyms[#1][#2]%
  {\edef\currentsynonym{#1}%

\normalexpanded{\systemsuppliedchapter[#1]{\noexpand\headtext{\synonymparameter\s!multi}}}%
   \doplacelistofsynonyms[#1][#2]%
   \page[\v!yes]}


--

-
  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] completelistofunits and completelistofabbreviations in MkIV

2010-08-06 Thread Vedran Miletić
Datuma 6. kolovoza 2010. 14:09 Hans Hagen pra...@wxs.nl je napisao/la:
 \def\docompletelistofsynonyms[#1][#2]%
  {\edef\currentsynonym{#1}%

 \normalexpanded{\systemsuppliedchapter[#1]{\noexpand\headtext{\synonymparameter\s!multi}}}%
   \doplacelistofsynonyms[#1][#2]%
   \page[\v!yes]}

Works!

-- 
Vedran Miletić
___
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] Shaded frame with colored text

2010-07-02 Thread Tom
Thanks. That did the trick. Now, How do I insert multi-page PDFs created
elsewhere in an appendix.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Thursday, July 01, 2010 6:49 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Shaded frame with colored text

Am 02.07.10 00:42, schrieb Tom:
 I haven't had any luck filling in the background of a frame with any color
 other than black and with changing the color of the text in the frame to
 white or gray. What needs to be added to this mkii code?


Colors are disabled in MkII, to enable them include

\setupcolors[state=start]

to your document.
 \def\MyChapterCommand#1#2% #1 is number, #2 is text
{\framed[frame=on,align=middle]
   {\vbox{\headtext{chapter} #1\blank#2}}}

\framed
   [..,
background=color,
backgroundcolor=red,
foregroundcolor=blue,
...]
   {...}
 \setuphead[chapter]
   [command=\MyChapterCommand,textstyle=\ss\bf,
header=empty,footer=chapter,
numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in]

use 'numberstyle' instead of 'numbercommand' for style related settings
and replace your \vskip settings with \blank

   before={\blank[force,1.0in]},
   after={\blank[0.5in]},

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
___


[NTG-context] Shaded frame with colored text

2010-07-01 Thread Tom
I haven't had any luck filling in the background of a frame with any color
other than black and with changing the color of the text in the frame to
white or gray. What needs to be added to this mkii code?

\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=on,align=middle]
 {\vbox{\headtext{chapter} #1\blank#2}}} 

\setuphead[chapter]
 [command=\MyChapterCommand,textstyle=\ss\bf,
  header=empty,footer=chapter,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in]
 
\starttext
\chapter{Test Chapter}
\input knuth
\stoptext

Thanks,

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






___
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] Shaded frame with colored text

2010-07-01 Thread Wolfgang Schuster

Am 02.07.10 00:42, schrieb Tom:

I haven't had any luck filling in the background of a frame with any color
other than black and with changing the color of the text in the frame to
white or gray. What needs to be added to this mkii code?
   


Colors are disabled in MkII, to enable them include

\setupcolors[state=start]

to your document.

\def\MyChapterCommand#1#2% #1 is number, #2 is text
   {\framed[frame=on,align=middle]
  {\vbox{\headtext{chapter} #1\blank#2}}}
   

\framed
  [..,
   background=color,
   backgroundcolor=red,
   foregroundcolor=blue,
   ...]
  {...}

\setuphead[chapter]
  [command=\MyChapterCommand,textstyle=\ss\bf,
   header=empty,footer=chapter,
   numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in]
   

use 'numberstyle' instead of 'numbercommand' for style related settings
and replace your \vskip settings with \blank

  before={\blank[force,1.0in]},
  after={\blank[0.5in]},

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] Bibliography help

2009-12-05 Thread Curiouslearn
Hi,

Is it possible to use .bib files that I had made for latex (it is a
bibtex database), with Context? Do I need to use the module bibltx for
these? When I compile my source code the Log window says, module
bibltx not found (log file is pasted below).

I tried the first example in the Bibliography article on Context
Garden with some small changes. That is, I tried the following.

\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=econbibTest]
\starttext
\section{Checking Bib}
See \cite[Bergstrom_Bagnoli(2005)] for monotonicity properties of
hazard rates of various standard distributions.
\completepublications[criterium=all]
\stoptext
@ARTICLE{Bergstrom_Bagnoli(2005),
  author = {Mark Bagnoli and Ted Bergstrom},
  title = {Log-concave Probability and its Applications},
  journal = {Economic Theory},
  year = {2005},
  volume = {26},
  pages = {445-469},
  timestamp = {2008.06.08}
}

I have attached the output.  I have reproduced the citation from the
bibtex file above to show what the bib file contains. Can someone
please point out where I am going wrong?

Thanks very much.


The following is the log:

This is LuaTeX, Version beta-0.46.0-2009112820
 \write18 enabled.
(BibTest.tex

ConTeXt  ver: 2009.11.27 21:24 MKIV  fmt: 2009.11.29  int: english/english

system  : cont-new loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/user/cont-sys.rme
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-lua.tex)
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.mkiv)))
system  : BibTest.top loaded
(BibTest.top)
fonts   : preloading latin modern fonts
bodyfont: 12pt rm is loaded
language: language en is active
system  : module bib loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/m-obsolete.texThis
is BibTeX, Version 0.99c (TeX Live 2009)
The top-level auxiliary file: BibTest.aux
The style file: cont-no.bst
Database file #1: econbibTest.bib

systems : skipping obsolete module
)
system  : module bibltx not found
publications: wrote a new auxiliary file cont-en.aux
systems : begin file BibTest at line 4
structure   : section @ level 3 : 0.0.1 - Checking Bib
fonts   : resetting map file list
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-empty.map}
fonts   : using map file: original-base
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-base.map}
fonts   : using map file: original-ams-base
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map}
fonts   : using map file: original-ams-euler
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map}
fonts   : using map file: original-public-lm
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map}
fonts   : using map file: lm-math
{/Applications/ConTeXtMinimals/tex/texmf/fonts/map/dvips/lm/lm-math.map}
fonts   : using map file: lm-rm
{/Applications/ConTeXtMinimals/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
!pages  : flushing page, realpage 1, userpage 1
structure   : chapter @ level 2 : 0.1 - \headtext {pubs}
publications: loading database from BibTest.bbl
(BibTest.bbl)
publications: warning: cite argument article-full is unknown on line 175
system  : xmp data not flushed (needs luatex upgrade)
!pages  : flushing page, realpage 2, userpage 2
systems : end file BibTest at line 8
system  : cont-err loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
)

system  : module bibltx not found

 
)/Applications/ConTeXtMinimals/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats : used config path  -
/Applications/ConTeXtMinimals/tex/texmf-local/web2c/texmf.cnf;/Applications/ConTeXtMinimals/tex/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path   -
/Applications

[NTG-context] bibtex referencelist doesn't show up with mkiv

2009-09-22 Thread Janneman
/dvips/lm/lm-math.map}
fonts   : using map file: lm-rm
{/home/janerik/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}[1.1]
structure   : chapter @ level 2 : 0.1 - \headtext {pubs}
[2.2]
systems : end file test at line 20
system  : cont-err loaded
(/home/janerik/context/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) )/home/janerik/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats : used config path  - /home/janerik/context/tex/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path   - /home/janerik/context/tex/texmf-cache
mkiv lua stats : input load time   - 0.032 seconds
mkiv lua stats : stored bytecode data  - 185 modules, 45 tables, 230 chunks
mkiv lua stats : node list callback tasks  - 4 unique tasks, 3 created, 27 calls
mkiv lua stats : cleaned up reserved nodes - 23 nodes, 9 lists of 1410
mkiv lua stats : node memory usage - 18 glue_spec, 2 dir
mkiv lua stats : used backend  - pdf (backend for directly generating pdf output)
mkiv lua stats : loaded patterns   - en:us:pat:exc:2
mkiv lua stats : startup time  - 0.800 seconds (including runtime option file processing)
mkiv lua stats : callbacks - direct: 210, indirect: 4122, total: 4332
mkiv lua stats : loaded fonts  - 29 files: lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm
mkiv lua stats : fonts load time   - 0.505 seconds
mkiv lua stats : result saved in file  - test.pdf
mkiv lua stats : luatex banner - this is luatex, version beta-0.43.0-2009081914
mkiv lua stats : control sequences - 29483 of 165536
mkiv lua stats : current memory usage  - 30 MB (ctx: 31 MB)
mkiv lua stats : runtime   - 1.708 seconds, 1 processed pages, 2 shipped pages, 1.171 pages/second

\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=7titlar]
\setuppublications[alternative=apa]


\starttext 
\cite[Carlsen2008amt]
\cite[Dash2008fik]
\cite[Häggström2008tso]
\cite[Klisinska2009tft]
\cite[Lantz-Andersson2009fie]
\cite[Långström2008msf]
\cite[Sumpter2009oao]

\completepublications



\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
___


[NTG-context] pagenumbering/toc bug?

2009-09-11 Thread Derek CORDEIRO
The example for pagenumbering(different pagenumbering in different parts
with appropriate change in TOC) in MkIV given by Wolfgang @
http://www.ntg.nl/pipermail/ntg-context/2009/043296.html no longer works.

If \completecontent is commented it works.

errors:

structure   : begin of sectionblock frontpart
structure   : title @ level 2 : 0.0 - \headtext {content}
! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-pag.lua:104:
bad argument #3 to 'format' (string expected, got table)
stack traceback:
[C]: in function 'format'
...text/tex/texmf-context/tex/context/base/strc-pag.lua:104: in function
'number'
...text/tex/texmf-context/tex/context/base/strc-pag.lua:172: in function
'prefixpage'
...text/tex/texmf-context/tex/context/base/strc-lst.lua:399: in function
'prefixedpage'
main ctx instance:1: in main chunk.
\structurelistpagenumber ...gestopper \!!es , } )}

\doifsomething #1-\edef \!!stringa {#1
   }\ifx \!!stringa \empty \expandafter
...
argument ...omething {\structurelistpagenumber }
   {\hbox \ifdim \listwidth
...
\firstofoneargument #1-#1

argument ...and {\structurelistpagenumber }}
  }\vbox {\hsize \!!widthb
\...
\domakelistelement ...#4}[internal(#2)]\else #3{#4
  }\fi
...


ConTeXt  ver: 2009.09.09 14:31 MKIV  fmt: 2009.9.11  int: english/english

Ofcourse, it worked well a few days back, I updated today.

-- 
A few minutes of yours can give many minutes of education to someone less
priviledged. Go to my blog(http://teachmetowrite.blogspot.com/) and click on
the social vibe badge to make a difference.
___
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] Pagenumbering of appendices

2009-09-11 Thread Olaf Mersmann
* Derek CORDEIRO derekcorde...@gmail.com [090911 07:51]:
 On Thu, Sep 10, 2009 at 9:10 PM, 
 olafm+cont...@kimberly.tako.deolafm%2bcont...@kimberly.tako.de wrote:
  I've been trying to turn off the conversion of page numbers to roman
  numerals in my appendix without any luck. Here is a minimal example:
 
   \setuppagenumbering[way=bytext,location={bottom, right}]
   \startsectionblockenvironment[bodypart]
 \setuppagenumber[number=1, state=start]
   \stopsectionblockenvironment
   \startsectionblockenvironment[appendix]
 

 \setupuserpagenumber[numberconversion=numbers]

 \setuppagenumbering is still used for the other parameters below.

Thanks for the hint. Never saw \setupuserpagenumber[] before.

 Please refer to this thread:
 http://www.ntg.nl/pipermail/ntg-context/2009/043284.html for a related
 discussion.

I tried to run an expanded version of the minimal example Wolfgang
provided with the current minimals and it gave the following error:

  ...
  systems : begin file simple at line 24
  structure   : begin of sectionblock frontpart
  structure   : title @ level 2 : 0.0 - \headtext {content}
  ! LuaTeX error ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:104: 
bad argument #3 to 'format' (string expected, got table)
  stack traceback:
  [C]: in function 'format'
  ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:104: in 
function 'number'
  ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:172: in 
function 'prefixpage'
  ...0910/tex/texmf-context/tex/context/base/strc-lst.lua:399: in 
function 'prefixedpage'
  main ctx instance:1: in main chunk.

The example is:

  \definestructureconversionset[frontpart:pagenumber] [] [romannumerals]
  \definestructureconversionset[bodypart:pagenumber]  [] [numbers]
  \definestructureconversionset[appendix:pagenumber]  [] [numbers]
  \definestructureconversionset[backpart:pagenumber]  [] [numbers]
  
  \startstructureblockenvironment[frontpart]
  \setupuserpagenumber[numberconversion=romannumerals]
  \setuppagenumber[number=1]
  \stopstructureblockenvironment
  
  \startstructureblockenvironment[bodypart]
\setupuserpagenumber[numberconversion=numbers]
\setuppagenumber[number=1]
  \stopstructureblockenvironment
  
  \startstructureblockenvironment[appendix]
   \setupuserpagenumber[numberconversion=numbers]
  \stopstructureblockenvironment
  
  \startstructureblockenvironment[backpart]
   \setupuserpagenumber[numberconversion=numbers]
  \stopstructureblockenvironment
  
  \starttext
  \startfrontmatter
\completecontent[criterium=all]
\chapter{Front}
\input tufte
  \stopfrontmatter
  \startbodymatter
   \chapter{Body}
   \input knuth
  \stopbodymatter
  \startappendices
   \chapter{Appendix}
   \input knuth
  \stopappendices
  \startbackmatter
\chapter{Back}
\input knuth
  \stopbackmatter
  \stoptext

The original gave the same error for me. Any help in debugging this
would be appreciated.

Cheers,
Olaf
___
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] Pagenumbering of appendices

2009-09-11 Thread Derek CORDEIRO
On Fri, Sep 11, 2009 at 2:34 PM, Olaf Mersmann 
olafm+cont...@kimberly.tako.de olafm%2bcont...@kimberly.tako.de wrote:

 * Derek CORDEIRO derekcorde...@gmail.com [090911 07:51]:
  On Thu, Sep 10, 2009 at 9:10 PM, 
  olafm+cont...@kimberly.tako.deolafm%2bcont...@kimberly.tako.de
 olafm%2bcont...@kimberly.tako.de olafm%252bcont...@kimberly.tako.de
 wrote:
   I've been trying to turn off the conversion of page numbers to roman
   numerals in my appendix without any luck. Here is a minimal example:
  
\setuppagenumbering[way=bytext,location={bottom, right}]
\startsectionblockenvironment[bodypart]
  \setuppagenumber[number=1, state=start]
\stopsectionblockenvironment
\startsectionblockenvironment[appendix]
  
 
  \setupuserpagenumber[numberconversion=numbers]
 
  \setuppagenumbering is still used for the other parameters below.

 Thanks for the hint. Never saw \setupuserpagenumber[] before.

  Please refer to this thread:
  http://www.ntg.nl/pipermail/ntg-context/2009/043284.html for a related
  discussion.

 I tried to run an expanded version of the minimal example Wolfgang
 provided with the current minimals and it gave the following error:

  ...
  systems : begin file simple at line 24
  structure   : begin of sectionblock frontpart
  structure   : title @ level 2 : 0.0 - \headtext {content}
  ! LuaTeX error
 ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:104: bad argument #3
 to 'format' (string expected, got table)
  stack traceback:
  [C]: in function 'format'
  ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:104: in
 function 'number'
  ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:172: in
 function 'prefixpage'
  ...0910/tex/texmf-context/tex/context/base/strc-lst.lua:399: in
 function 'prefixedpage'
  main ctx instance:1: in main chunk.

 The example is:

  \definestructureconversionset[frontpart:pagenumber] [] [romannumerals]
  \definestructureconversionset[bodypart:pagenumber]  [] [numbers]
  \definestructureconversionset[appendix:pagenumber]  [] [numbers]
  \definestructureconversionset[backpart:pagenumber]  [] [numbers]

  \startstructureblockenvironment[frontpart]
  \setupuserpagenumber[numberconversion=romannumerals]
  \setuppagenumber[number=1]
  \stopstructureblockenvironment

  \startstructureblockenvironment[bodypart]
\setupuserpagenumber[numberconversion=numbers]
\setuppagenumber[number=1]
  \stopstructureblockenvironment

  \startstructureblockenvironment[appendix]
   \setupuserpagenumber[numberconversion=numbers]
  \stopstructureblockenvironment

  \startstructureblockenvironment[backpart]
   \setupuserpagenumber[numberconversion=numbers]
  \stopstructureblockenvironment

  \starttext
  \startfrontmatter
\completecontent[criterium=all]
\chapter{Front}
\input tufte
  \stopfrontmatter
  \startbodymatter
   \chapter{Body}
   \input knuth
  \stopbodymatter
  \startappendices
   \chapter{Appendix}
   \input knuth
  \stopappendices
  \startbackmatter
\chapter{Back}
\input knuth
  \stopbackmatter
  \stoptext

 The original gave the same error for me. Any help in debugging this
 would be appreciated.


Hans has squashed those bugs. If you update ConTeXt it should be working
fine.

-- 
A few minutes of yours can give many minutes of education to someone less
priviledged. Go to my blog(http://teachmetowrite.blogspot.com/) and click on
the social vibe badge to make a difference.
___
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] LuaTex choking on \definesynonyms?

2009-08-29 Thread Roland
Hi, sorry to get back to this so late but I still can't get it to work
with the latest updated ConTeXt Minimals. Am I using a wrong command?
Is the command already integrated in the latest Minimals? I can't seem
to find it in the setup-en.pdf file dated August 28th...

My minimal example:
 1  %\definesynonyms[abbreviation][abbreviations][\infull]
 2
 3  \starttext
 4  \abbreviation{VVV}{Bureau of Tourist Information}
 5  The Dutch \VVV\ can provide you with the tourist
 6  information on Hasselt.
 7  \completelistofabbreviations
 8  \stoptext

Output:
 1  This is LuaTeX, Version beta-0.43.0-2009081911
 2   \write18 enabled.
 3  (/Users/rs/Desktop/Dropbox/B/BerlinPaper/BookConTeXt/minimal.tex
 4
 5  ConTeXt  ver: 2009.08.28 14:44 MKIV  fmt: 2009.8.29  int:
english/english
 6
 7  system  : cont-new loaded
 8  
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.tex
 9  systems : beware: some patches loaded from cont-new.tex
10  
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.mkiv))
11  system  : cont-fil loaded
12  
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-fil.tex
13  loading : ConTeXt File Synonyms
14  )
15  system  : cont-sys.rme loaded
16  
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/user/cont-sys.rme
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.mkiv)))
17  system  : minimal.top loaded
18  (minimal.top)
19  fonts   : preloading latin modern fonts
20  bodyfont: 12pt rm is loaded
21  language: language en is active
22  systems : begin file minimal at line 3
23  fonts   : resetting map file list
24  
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-empty.map}
25  fonts   : using map file: original-base
26  
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-base.map}
27  fonts   : using map file: original-ams-base
28  
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map}
29  fonts   : using map file: original-ams-euler
30  
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map}
31  fonts   : using map file: original-public-lm
32  
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map}
33  fonts   : using map file: lm-math
34  {/Applications/ConTeXtMinimals/tex/texmf/fonts/map/dvips/lm/lm-math.map}
35  fonts   : using map file: lm-rm
36  
{/Applications/ConTeXtMinimals/tex/texmf/fonts/map/dvips/lm/lm-rm.map}[1.1]
37  structure   : chapter @ level 2 : 0.1 - \headtext {abbreviations}
38  ! Missing } inserted.
39  inserted text
40  }
41  to be read again
42 \endgroup
43  \@@dodescriptionhandler ...escriptionheadtext {#1}
44
\iftrialtypesetting \else ...
45  \@@dostartdescription ...er \c!sample \endstrut }}
46
}\assignwidth \description...
47  \@@dostartdescriptionindeed ...dostartdescription
48\csname
@@description\curr...
49  \dodowithpar ...\bgroup \@@makedescription []{VVV}
50#1\@@stopdescription
51  ...
52  l.7 \completelistofabbreviations
53
54  ?
55  ! Emergency stop.
56  inserted text
57  }
58  to be read again
59 \endgroup
60  \@@dodescriptionhandler ...escriptionheadtext {#1}
61
\iftrialtypesetting \else ...
62  \@@dostartdescription ...er \c!sample \endstrut }}
63
}\assignwidth \description...
64  \@@dostartdescriptionindeed ...dostartdescription
65\csname
@@description\curr...
66  \dodowithpar ...\bgroup \@@makedescription []{VVV}
67#1\@@stopdescription
68  ...
69  l.7 \completelistofabbreviations
70
71  !  == Fatal error occurred, no output PDF file
produced!MTXrun | run 1: luatex
--fmt=/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en
--lua=/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache

[NTG-context] Problems in latest beta

2009-06-02 Thread Kevin D. Robbins
In the latest beta, I nearly have everything working for a set of documents
that haven't built cleanly in MkIV since Hans started merging the new
structure code. Thanks, Hans and others, for the steady progress! I've
started reading the new structure code, and I have to say I find it much
easier to understand.

I have a few remaining problems, that I've discovered so far, that I'd
appreciate any help you can give me.

First, I still haven't been able to use \placelistofacronyms or
\completelistofacronyms to produce a list of acronyms used in my document.

Here is my test case:
=
\definesynonyms[acronym][acronyms][\infull]
\setupcapitals[sc=yes]
\setupsynonyms[acronym][textstyle=small,width=1.25in]

\acronym{ABC}{A Better Compiler}
\acronym{DEF}{Don't Ever Fail}

\starttext

\completelistofacronyms

% \title{Acronyms}\placelistofacronyms

\section{\ABC\ Section}
\infull{ABC} (\ABC)

\section{\DEF\ Section}
\infull{DEF} (\DEF)

\stoptext
=

Here is the error:
=
structure   : chapter @ level 2 : 0.1 - \headtext {acronyms}
! Undefined control sequence.
\dosetsynonymattributes ...def \fontattributehash
  {\synonymparameterhash
#1}...
\@@ddsyndeftitle ...tes \c!textstyle \c!textcolor
  ABC
\doif #1#2-\edef \!!stringa {#1
}\edef \!!stringb {#2}\ifx \!!stringa
\!!str...
\dododescriptioncomponent ...er \c!title }\v!none
  {\global
\nodescriptioncap...
\@@makedescription ...itle ={#2},\c!bookmark =,][]

\@@dostartdescriptionindeed
\dodowithpar ...tes \c!textstyle \c!textcolor ABC}
  #1\@@stopdescription
...
l.10 \completelistofacronyms
=

Second, I use the following float definitions for wide figures and tables.
The floats are placed as I expect, but neither the wide figures nor the wide
tables are given numbers in the caption...I just see Figure  Foo, bar, baz
instead of Figure 1  Foo, bar, baz. However, the other figures and tables
are numbered correctly, so it looks like the counters are incremented, just
not used in the captions for wide figures and tables.

\definefloat[widefigure][widefigures][figure]
\setupfloat[widefigure]
  [location=inner]

\definefloat[widetable][widetables][table]
\setupfloat[widetable]
  [location=inner]

Here is a test case:
=
\definefloat[widetable][widetables][table]
\setupfloat[widetable]
  [location=inner]

\starttext

\completelistoftables
\page[yes]

\placewidetable[here,force][tab:foo]{Bar}
{\starttable
   [s1
|lp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)|]
  \HL[5]
  \NC Foo \NC \Use4[c]{Bar} \AR
  \NC
  \NC Baz
  \NC Boo
  \NC Blah
  \NC Flub \NC \AR
  \HL[5]
  \NC Bop \NC 3 \NC 1 \NC 0   \NC 2   \NC \AR
  \NC Bap \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Bip \NC 1 \NC 2 \NC 3   \NC 0   \NC \AR
  \NC Nip \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Nup \NC 2 \NC 2 \NC 0   \NC 0   \NC \AR
  \HL[5]
 \stoptable}

\placetable[here,force][tab:foo]{Bar}
{\starttable
   [s1
|lp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)|]
  \HL[5]
  \NC Foo \NC \Use4[c]{Bar} \AR
  \NC
  \NC Baz
  \NC Boo
  \NC Blah
  \NC Flub \NC \AR
  \HL[5]
  \NC Bop \NC 3 \NC 1 \NC 0   \NC 2   \NC \AR
  \NC Bap \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Bip \NC 1 \NC 2 \NC 3   \NC 0   \NC \AR
  \NC Nip \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Nup \NC 2 \NC 2 \NC 0   \NC 0   \NC \AR
  \HL[5]
 \stoptable}

\stoptext
=

Third, I can't get my appendices to count in letters A, B, C, etc. Following
Hans' suggestion, I read
strc-def.mkivhttp://source.contextgarden.net/tex/context/base/strc-def.mkiv?search=conversionsetre:
conversion sets. I tried adding these lines to my document:

\definestructureseparatorset  [appendix] [] [.]
\definestructureconversionset [appendix] [Romannumerals,Characters] [numbers]
\definestructureresetset  [appendix] [] [0]
\setupstructureblock[appendix][sectionconversionset=appendix]
\setupstructurehead[chapter][sectionconversionset=\structureblockparameter\c!sectionconversionset]

But, I still see the appendices counting 1, 2, 3, etc. Where am I going wrong?

I built all these examples using ConTeXt Minimals Versions:

MTXrun | main context file:
/opt/context/beta/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2009.06.02 09:30

This is LuaTeX, Version beta-0.40.1-2009050920 (Web2C 7.5.7) luatex.web =
v2376

Thanks,

Kevin
___
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

Re: [NTG-context] \placelist

2009-05-04 Thread Otared Kavian


On 4 mai 09, at 18:09, Wolfgang Schuster wrote:


Hi Hans,

\placelist produce no output in mkiv.

\starttext

%\placelistoffigure
\completelistoffigures

here

\placefigure{dummy}{\framed{DUMMY}}

\stoptext

Wolfgang



Hi,

As a matter of fact, the above example of \placelist gives a LuaTeX  
error
(ConTeXt  ver: 2009.04.21 16:11 MKIV  fmt: 2009.4.25  int: english/ 
english):


%%% begin console output
structure   : title @ level 2 : (0.0) . - \headtext {figures}
! LuaTeX error ...imal/tex/texmf-context/tex/context/base/strc-doc.lua: 
502: attempt to index field 'sectiontitle' (a nil value)

stack traceback:
	...imal/tex/texmf-context/tex/context/base/strc-doc.lua:502: in  
function 'sectiontitle'
	...imal/tex/texmf-context/tex/context/base/strc-lst.lua:308: in  
function 'title'

main ctx instance:1: in main chunk.
\structurelistsectiontitle ...\currentlistindex )}

\listtextcommand #1-\begstrut #1
 \endstrut
argument ...tentry {\structurelistsectiontitle }
  }\egroup \ifdim \wd  
4=\zer...

\secondoftwoarguments #1#2-#2

\dosomelistelement ... 4\relax \relax \fi }\hss }}
  \endgraf  
\nointerlineskip ...

\dodolistelement ...ement {#1}{#2}{#3}{#4}{#5}{#6}
  \global  
\utilitydonetrue

...
l.9

?
Process aborted
%%% end console output

Best regards: OK
___
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] new structure code

2009-04-24 Thread Kevin D. Robbins
On Fri, Apr 24, 2009 at 12:36 PM, Hans Hagen pra...@wxs.nl wrote:

 Wolfgang Schuster wrote:


 Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins:

  Hi all,

 I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11
 and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been
 using \nolist with long table captions, so I don't get the whole caption in
 the list of tables. Is there a new way to accomplish this?



 \defineselector[caption][max=2,n=2]

 \starttext

 \start
 \setupselector[caption][n=1]
 \completelistoftables
 \stop

 \placetable
  {\select{caption}{Foo.}{Foo. Bar, Baz}}
  {...}

 \stoptext


 ah .. you always surprise me .. i'd even forgot about that one

 upcoming structure code will provide

 \startchapter[label=...,title={...},bookmark={...},mark={...},list={...},reference={...}]



You anticipated my next question! This is great news...I've always wanted to
be able to specify the text that should go in the bookmark when the title
itself includes markup.

But, will there be similar support for specifying bookmark text for things
like \completelistoffigures? Right now, the bookmark says something like
'\headtext{figures}' in my PDF viewer.

Thanks again,

Kevin
___
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] new structure code

2009-04-24 Thread Hans Hagen

Kevin D. Robbins wrote:

On Fri, Apr 24, 2009 at 12:36 PM, Hans Hagen pra...@wxs.nl wrote:


Wolfgang Schuster wrote:


Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins:

 Hi all,

I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11
and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been
using \nolist with long table captions, so I don't get the whole caption in
the list of tables. Is there a new way to accomplish this?



\defineselector[caption][max=2,n=2]

\starttext

\start
\setupselector[caption][n=1]
\completelistoftables
\stop

\placetable
 {\select{caption}{Foo.}{Foo. Bar, Baz}}
 {...}

\stoptext


ah .. you always surprise me .. i'd even forgot about that one

upcoming structure code will provide

\startchapter[label=...,title={...},bookmark={...},mark={...},list={...},reference={...}]




You anticipated my next question! This is great news...I've always wanted to
be able to specify the text that should go in the bookmark when the title
itself includes markup.


that has always been possible ...

\chapter{Some Text}

\bookmark{Overloads the previous one}


But, will there be similar support for specifying bookmark text for things
like \completelistoffigures? Right now, the bookmark says something like
'\headtext{figures}' in my PDF viewer.


you can turn on expansion (\setuplist[figure][expansion=yes]) but indeed 
 this will be taken care of;



-
  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] context mkiv nomenclature problem (bug)

2009-04-14 Thread Thomas Prochaska
Am Samstag, 11. April 2009 08:28:33 schrieb Wolfgang Schuster:
 Am 10.04.2009 um 10:28 schrieb Thomas Prochaska:
  Hi!
 
  this simple example works with texexec but not with context.
 
  %-
  \definesynonyms[nomenclature][nomenclatures][\infull]
  \setupsynonyms[nomenclature][criterium=all,width=broad]
 
  \nomenclature[a]{abcdefg}{alphabet}
  \nomenclature[b]{b}{letter b}
 
  \starttext
  xxx
  \completelistofnomenclatures
  yyy
  \stoptext
  %-
 
  is this bug known? i couldn't find anything on the web or in the
  mailinglist
  archive.
 
  thanks!

 You need the latest beta because Hans rewrote registers, section,
 synonyms etc.
 in mkiv and it was broken for a while in the last betas but is now back.

 Wolfgang

hm, with the latest context minimal i get this:

structure  : chapter @ level 2 : (0.4) . - \headtext {abbreviations}
[5]
! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-syn.lua:108: 
attempt to index local 'rd' (a nil value)
stack traceback:
...text/tex/texmf-context/tex/context/base/strc-syn.lua:108: in 
function 'prepare'
...text/tex/texmf-context/tex/context/base/strc-syn.lua:170: in 
function 'analysed'
...text/tex/texmf-context/tex/context/base/strc-syn.lua:179: in 
function 'process'
main ctx instance:1: in main chunk.
\doplacelistofsynonyms ...meter \c!criterium  })}
  \stoppacked \endgroup
\docompletelistofsynonyms ...stofsynonyms {#1}{#2}
  \page [\v!yes ]
l.51 \completelistofabbreviations
  % abkürzungsverzeichnis
?

is this work in progress or should this work by now?

regards
thomas prochaska
___
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] context mkiv nomenclature problem (bug)

2009-04-14 Thread Thomas Prochaska
Am Dienstag, 14. April 2009 13:47:44 schrieb Wolfgang Schuster:
 Am 14.04.2009 um 13:28 schrieb Thomas Prochaska:
  hm, with the latest context minimal i get this:
 
  structure  : chapter @ level 2 : (0.4) . - \headtext
  {abbreviations}
  [5]
  ! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-
  syn.lua:108:
  attempt to index local 'rd' (a nil value)
  stack traceback:
 ...text/tex/texmf-context/tex/context/base/strc-syn.lua:108: in
  function 'prepare'
 ...text/tex/texmf-context/tex/context/base/strc-syn.lua:170: in
  function 'analysed'
 ...text/tex/texmf-context/tex/context/base/strc-syn.lua:179: in
  function 'process'
 main ctx instance:1: in main chunk.
  \doplacelistofsynonyms ...meter \c!criterium  })}
   \stoppacked \endgroup
  \docompletelistofsynonyms ...stofsynonyms {#1}{#2}
   \page [\v!yes ]
  l.51 \completelistofabbreviations
   % abkürzungsverzeichnis
  ?
 
  is this work in progress or should this work by now?

 Works for me and I can't reproduce your error.

 MTXrun | current version: 2009.04.13 15:00
 This is LuaTeX, Version snapshot-0.38.0-2009041013, build unknown

 Wolfgang

strange,

i get this error mentioned in my last post with the same version you use.

MTXrun | run 1: luatex --fmt=/home/fin/tmp/context/tex/texmf-cache/luatex-
cache/context/33a30fde7a9f22efaab522cd44afb585/formats/cont-en --
lua=/home/fin/tmp/context/tex/texmf-cache/luatex-
cache/context/33a30fde7a9f22efaab522cd44afb585/formats/cont-en.lui 
./dipla.tex   

This is LuaTeX, Version snapshot-0.38.0-2009041013 (Web2C 7.5.7)
 
(dipla.tex  
 

ConTeXt  ver: 2009.04.13 15:00 MKIV  fmt: 2009.4.14  int: english/english

thomas
___
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] Incorrect bookmark title of \completelistofabbreviations and no abbreviations are listed

2009-03-13 Thread Nikolai Weibull
On Tue, Mar 10, 2009 at 13:44, Nikolai Weibull n...@bitwi.se wrote:

 In neither --lua nor --xtx do I get a list of
 abbreviations with \completelistofabbreviations.  The bookmark text is
 \headtext {abbreviations} for both.

Can I at least get an acknowledgement that this is a problem with
LuaTeX and that there's no simple fix at the moment so that I can
begin working around it?

Thanks.
___
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] Incorrect bookmark title of \completelistofabbreviations and no abbreviations are listed

2009-03-13 Thread luigi scarso
On Tue, Mar 10, 2009 at 1:44 PM, Nikolai Weibull n...@bitwi.se wrote:
 Hi!

 Long time no post.  Anyway, I’m writing a document where I’m using
 abbreviations.  In neither --lua nor --xtx do I get a list of
 abbreviations with \completelistofabbreviations.  The bookmark text is
 \headtext {abbreviations} for both.  With --pdf I get a list of
 abbreviations and the bookmark text is abbreviations.  Here's a
 minimal example:

 \setupheadtext[en][abbreviations={Abbreviations Used in This Document}]

 \abbreviation{CSS}{Cascading Style Sheets}

 \setupinteraction
  [state=start,
   menu=on]
 \placebookmarks[chapter]

 \starttext

 \startbodymatter
 \CSS\ stands for \infull{CSS}.
 \stopbodymatter

 \startbackmatter
 \completelistofabbreviations
 \stopbackmatter

 \stoptext

$ context test.tex
seems to work ok here with latest minimals,
or I don't understand the problem .


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


[NTG-context] Incorrect bookmark title of \completelistofabbreviations and no abbreviations are listed

2009-03-10 Thread Nikolai Weibull
Hi!

Long time no post.  Anyway, I’m writing a document where I’m using
abbreviations.  In neither --lua nor --xtx do I get a list of
abbreviations with \completelistofabbreviations.  The bookmark text is
\headtext {abbreviations} for both.  With --pdf I get a list of
abbreviations and the bookmark text is abbreviations.  Here's a
minimal example:

\setupheadtext[en][abbreviations={Abbreviations Used in This Document}]

\abbreviation{CSS}{Cascading Style Sheets}

\setupinteraction
  [state=start,
   menu=on]
\placebookmarks[chapter]

\starttext

\startbodymatter
\CSS\ stands for \infull{CSS}.
\stopbodymatter

\startbackmatter
\completelistofabbreviations
\stopbackmatter

\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] boldstyle for numbers in defineenumeration

2009-03-06 Thread Hans Hagen

Aditya Mahajan wrote:

On Thu, 5 Mar 2009, Wolfgang Schuster wrote:



Am 05.03.2009 um 20:19 schrieb Aditya Mahajan:


On Thu, 5 Mar 2009, Wolfgang Schuster wrote:



Am 05.03.2009 um 19:48 schrieb Aditya Mahajan:


The textcolor does not work. I have to put in in text field.
The example that works is:
Hans: does it make sense to add text(style|color|command) and 
number(style|color|command) keys to enumerations? I could patch 
core-des.tex with these keys.


Hi Aditya, if you do this, can you also integrate the headalign key 
which is mentioned in core-des?


What should headalign do?



It should control the alignment of the headtext.

\setuplayout
[backspace=5cm,
 leftmargin=4cm,
 width=12cm]

\definedescription
[description]
[location=margin,
 width=\leftmarginwidth]

\showframe

\starttext

\description{text} bla bla bla

\description{longer text} bla bla bla

%\setupdescriptions[description][headalign=flushright]
\setupdescriptions[description][text=\hfill]

\description{text} bla bla bla

\description{longer text} bla bla bla

\stoptext


Thanks. I first guess was

\defineframed
  [framehead]
  [location=low,width=\leftmarginwidth,align=flushright,frame=off]

\setupdescriptions[description][text=,location=command,headcommand=\framehead] 



but this does not work. You can also use, but it will be nice to have a 
headalign key.


\setupdescriptions[description][command=\framehead]

\description{text} bla bla bla

\description{longer text} bla bla bla

My only trouble with core-des is that it is ugly. It is an old module, 
and lot of features have been added in an ad-hoc manner with time. I 
hope that at some stage it will be rewritten in the new strc-* style.


sure, it's already different in strc but such 'upgrades' are rather 
gradual since we want to keep compatibilitiy


-
  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] boldstyle for numbers in defineenumeration

2009-03-05 Thread Wolfgang Schuster


Am 05.03.2009 um 20:19 schrieb Aditya Mahajan:


On Thu, 5 Mar 2009, Wolfgang Schuster wrote:



Am 05.03.2009 um 19:48 schrieb Aditya Mahajan:


The textcolor does not work. I have to put in in text field.
The example that works is:
Hans: does it make sense to add text(style|color|command) and  
number(style|color|command) keys to enumerations? I could patch  
core-des.tex with these keys.


Hi Aditya, if you do this, can you also integrate the headalign key  
which is mentioned in core-des?


What should headalign do?



It should control the alignment of the headtext.

\setuplayout
  [backspace=5cm,
   leftmargin=4cm,
   width=12cm]

\definedescription
  [description]
  [location=margin,
   width=\leftmarginwidth]

\showframe

\starttext

\description{text} bla bla bla

\description{longer text} bla bla bla

%\setupdescriptions[description][headalign=flushright]
\setupdescriptions[description][text=\hfill]

\description{text} bla bla bla

\description{longer text} bla bla bla

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


Re: [NTG-context] boldstyle for numbers in defineenumeration

2009-03-05 Thread Aditya Mahajan

On Thu, 5 Mar 2009, Wolfgang Schuster wrote:



Am 05.03.2009 um 20:19 schrieb Aditya Mahajan:


On Thu, 5 Mar 2009, Wolfgang Schuster wrote:



Am 05.03.2009 um 19:48 schrieb Aditya Mahajan:


The textcolor does not work. I have to put in in text field.
The example that works is:
Hans: does it make sense to add text(style|color|command) and 
number(style|color|command) keys to enumerations? I could patch 
core-des.tex with these keys.


Hi Aditya, if you do this, can you also integrate the headalign key which 
is mentioned in core-des?


What should headalign do?



It should control the alignment of the headtext.

\setuplayout
[backspace=5cm,
 leftmargin=4cm,
 width=12cm]

\definedescription
[description]
[location=margin,
 width=\leftmarginwidth]

\showframe

\starttext

\description{text} bla bla bla

\description{longer text} bla bla bla

%\setupdescriptions[description][headalign=flushright]
\setupdescriptions[description][text=\hfill]

\description{text} bla bla bla

\description{longer text} bla bla bla

\stoptext


Thanks. I first guess was

\defineframed
  [framehead]
  [location=low,width=\leftmarginwidth,align=flushright,frame=off]

\setupdescriptions[description][text=,location=command,headcommand=\framehead]

but this does not work. You can also use, but it will be nice to have a 
headalign key.


\setupdescriptions[description][command=\framehead]

\description{text} bla bla bla

\description{longer text} bla bla bla

My only trouble with core-des is that it is ugly. It is an old module, and 
lot of features have been added in an ad-hoc manner with time. I hope that 
at some stage it will be rewritten in the new strc-* style.


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
___


[NTG-context] subsección demasiado larga

2008-11-21 Thread mpg-yahoo
[postscript,12pt]
%\setupbodyfont[12pt]

\setupinterlinespace[big]
\setupwhitespace[medium]
%\setupindenting[small,yes]

\setupitemize[inbetween={},style=bold,identnext=no,]
%% 1 redondo negro, 2 guión, 3 asterisco, 4 trángulo vacío, 5 circulo
%% pequeño vacío, 6 circulo grande vacío, 7 circulo más grande vacío,
%% 8 cuadrado vacío
\setupitemize[1][
1%n
,packed][width=10pt,margin=5pt,after={\blank[10pt]},before={\blank[10pt]}]

\setupitemize[2][
2%a
,packed][width=10pt,after={\blank[10pt]},before={\blank[10pt]},left=,right=.,stopper=]

\setupitemize[3][
3%r
,packed][width=10pt,left=,right=]

\setupitemize[4][
4%i
,packed][width=10pt,left=,right=] 

\setupheadtext[en][pubs=Referencias]

\def\Dot#1{#1.}

\setuphead[title][part, style={\bfa},
  before={\begingroup\setupbodyfont[20pt]},
  after={\centerline{\tfa}
 \bigskip\bigskip\endgroup}]


\setuphead[chapter][style={\bfd},
,numbercommand=\Dot%,numbercommand={\groupedcommand{}{.}}
]

\setuphead[section,subject][%
%textcommand=\underbar,
style={\bfa},
  before={\blank[10pt]}, after={\blank[10pt]}
,numbercommand=\Dot%,numbercommand={\groupedcommand{}{.}}
]




\setuphead[subsection][
 textcommand=\underbar,
 style={\sl},
 before={\blank[8pt]}, after={\blank[8pt]},
 numbercommand=\Dot%,numbercommand={\groupedcommand{}{}}
]

\def\MyHeader#1#2{%
\framedtext
[width= \overlaywidth,
  height=\bodyfontsize,
  offset=0pt,
  strut=no,
  frame=on,
align=right
]
{\headtext{subsection}#1#2}}


\setuphead[subsubsection,subject][%
%textcommand=\underbar,
style={\sl},
before={\blank[6pt]}, after={\blank[6pt]}
,numbercommand=\Dot%,numbercommand={\groupedcommand{}{.}}
]

 \setupinteraction[state=start,color=blue]
 \setuplist[chapter][alternative=f,style=bold,interacction=all,after={\medskip}]
 \setuplist[section,figure,table][alternative=f,style=bold,interacction=all,after={\medskip},margin=15pt]
 \setuplist[subsection][alternative=f,style=slanted,interacction=all,after={\medskip},margin=25pt]

%%otro tipo de indice de materias
% \setuphead[chapter][number=yes,textcommand=\tfb]
% \setuphead[section][number=yes,textcommand=\bf]
% \setuphead[subsection][number=yes]
% \setuphead[subsubsection][number=yes]


% \setupinteraction[state=start,color=blue]
% \setuplist[chapter][alternative=f,style=bold,interaction=all]
% \setuplist[section][alternative=f,style=bold,interaction=all]
% \setuplist[subsection][alternative=f,interaction=all]
% \setuplist[subsubsection][alternative=a,interaction=all]

% \setuppublications[alternative=apa]
% \setuppublicationlayout[article]{%
%\insertartauthors{}{ }{\insertthekey{}{ }{}}%
%\insertpubyear{(}{). }{\unskip.}%
%\insertarttitle{\bgroup }{\egroup. }{}%
%\insertjournal{\bgroup \it}{\egroup}
% {\insertcrossref{En }{}{}}%
%\insertvolume
% {, }
% {\insertissue{(}{)}{}\insertpages{:}{.}{.}}
% {\insertpages{, páginas }{.}{.}}%
%\insertnote{ }{.}{}%
%\insertcomment{}{.}{}%
% }

% \setuppublicationlayout[book]{%
%\insertauthors{}{ }{\insertthekey{}{ }{}}%
%\insertpubyear{(}{). }{\unskip.}%
%\inserttitle{\bgroup }{\egroup, }{}%
% {\insertcrossref{En }{}{}}%
%\insertvolume {vol }
% {\insertissue{(}{)}{}\insertpages{:}{.}{.}}
% {\insertpages{ páginas }{.}{.}}%
%\insertnote{ }{.}{}%
%\insertcomment{}{.}{}%
% }

\setupcaptions[location=top]

\switchtobodyfont[palatino]

\stopenvironment


\startproduct tema-17 \project apuntes

\chapter{Estado de necesidad}

\section{Concepto, naturaleza y modalidades}

CONCEPTO: situación de conflicto entre dos bienes jurídicos en la que
la salvación de uno de ellos exige el sacrificio del otro

MODALIDADES incluidas en el art. 20.5 CP:
\startitemize{}
\item 
Estado de necesidad (agresivo) justificante: lesión de un bien
jurídico de otra persona para evitar la lesión de un bien jurídico
propio o ajeno de mayor valor
\item 
Estado de necesidad disculpante: lesión de un bien jurídico para
evitar la lesión de otro bien jurídico de igual valor (no excluye la
antijuricidad)
\item 
Colisión de deberes: cumplimiento de un deber que salva un bien
jurídico a costa de incumplir el deber de salvar otro bien jurídico de
igual valor
\item 
Estado de necesidad defensivo justificante: lesión de un bien jurídico
que amenaza con lesionar otro bien jurídico de igual valor
\item 
Justificación de la realización del tipo omisivo: lesión del bien
jurídico de mayor valor mediante el salvamento activo del bien
jurídico de menor valor (obligado por el tipo de omisió, por un
mandato)
\item 
NATURALEZA JUSTIFICANTE: se basa en la posibilidad de ponderación de
los bienes jurídicos en conflictos sobre la base de dos criterios:
\stopitemize

\subsection{Criterio de la jerarquía de los bienes jurídicos} Entendiendo que
existe una diferencia valorativa entre los distintos bienes protegidos
en un Ordenamiento jurídico.

\subsection{Criterio de la forma de protección

Re: [NTG-context] Kerning

2008-11-13 Thread Wolfgang Schuster
On Thu, Nov 13, 2008 at 7:18 AM, Bart C. Wise
[EMAIL PROTECTED] wrote:
 Wolfgang,  thanks so much for your help so far.

 I was able to take the code and make it work correctly to stretch the chapter
 title.  What I want is two lines for a chapter head.  For example,
 Line 1: Chapter One
 Line 2: Title for Chap 1

 I want line 1 to be stretched.  Everything I have tried does not work.  I can
 get the Chapter word to stretch, but not the whole line (and it should
 probably be treated as a whole line when stretching).  I was never able to get
 the chapter number (now a word) to stretch.

 So how do I grab the output for line 1 and then stretch it?

 Here's a sample of what I have without any stretching:

 \def\Myheader#1#2{%
\framedtext[width=0.60\textwidth, frame=off, align=middle]{%
\vbox{\headtext{chapter}~#1 \blank #2}}}

 \def\englishnumbers#1{
\ifcase#1 \or ONE\or TWO\or THREE\or FOUR\or FIVE\fi}
 \defineconversion[englishnumbers][\englishnumbers]

 \setupsection[chapter][conversion=englishnumbers]
 \setuphead [chapter][
command=\Myheader,
textcommand=\bfd,
 ]
 \setupheadtext[chapter=CHAPTER] % used by \headtext
 \starttext
 \chapter{Title for Chap 1}
 \processfile{tufte}
 \stoptext

\def\Myheader#1#2%
 {\framed
[width=0.60\textwidth,
frame=off,
align=middle]
{\determineheadnumber[chapter]
 
\expanded{\stretchednormalcase{CHAPTER~\convertnumber{englishnumbers}{\currentheadnumber}}}
 \blank#2}}

\def\englishnumbers#1{
  \ifcase#1 \or ONE\or TWO\or THREE\or FOUR\or FIVE\fi}

\defineconversion[englishnumbers][\englishnumbers]

\setuphead
 [chapter]
 [command=\Myheader,
  deeptextcommand=\stretchednormalcase,
  textstyle=\bfd]

 P.S. If there's a better way to do the number-word conversion, let me know.

Search for \numprint in the list archive.

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] Kerning

2008-11-13 Thread Bart C. Wise
Wolfgang,

Thanks so much for your help!  It works exactly as I desire.

Bart

On Thursday 13 November 2008 01:36:11 am Wolfgang Schuster wrote:
 On Thu, Nov 13, 2008 at 7:18 AM, Bart C. Wise

 [EMAIL PROTECTED] wrote:
  Wolfgang,  thanks so much for your help so far.
 
  I was able to take the code and make it work correctly to stretch the
  chapter title.  What I want is two lines for a chapter head.  For
  example, Line 1: Chapter One
  Line 2: Title for Chap 1
 
  I want line 1 to be stretched.  Everything I have tried does not work.  I
  can get the Chapter word to stretch, but not the whole line (and it
  should probably be treated as a whole line when stretching).  I was never
  able to get the chapter number (now a word) to stretch.
 
  So how do I grab the output for line 1 and then stretch it?
 
  Here's a sample of what I have without any stretching:
 
  \def\Myheader#1#2{%
 \framedtext[width=0.60\textwidth, frame=off, align=middle]{%
 \vbox{\headtext{chapter}~#1 \blank #2}}}
 
  \def\englishnumbers#1{
 \ifcase#1 \or ONE\or TWO\or THREE\or FOUR\or FIVE\fi}
  \defineconversion[englishnumbers][\englishnumbers]
 
  \setupsection[chapter][conversion=englishnumbers]
  \setuphead [chapter][
 command=\Myheader,
 textcommand=\bfd,
  ]
  \setupheadtext[chapter=CHAPTER] % used by \headtext
  \starttext
  \chapter{Title for Chap 1}
  \processfile{tufte}
  \stoptext

 \def\Myheader#1#2%
  {\framed
 [width=0.60\textwidth,
 frame=off,
 align=middle]
 {\determineheadnumber[chapter]
 
 \expanded{\stretchednormalcase{CHAPTER~\convertnumber{englishnumbers}{\curr
entheadnumber}}} \blank#2}}

 \def\englishnumbers#1{
   \ifcase#1 \or ONE\or TWO\or THREE\or FOUR\or FIVE\fi}

 \defineconversion[englishnumbers][\englishnumbers]

 \setuphead
  [chapter]
  [command=\Myheader,
   deeptextcommand=\stretchednormalcase,
   textstyle=\bfd]

  P.S. If there's a better way to do the number-word conversion, let me
  know.

 Search for \numprint in the list archive.

 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] Kerning

2008-11-13 Thread Bart C. Wise
On Thursday 13 November 2008 12:46:27 am Hans Hagen wrote:
 Bart C. Wise wrote:
  Wolfgang,  thanks so much for your help so far.
 
  I was able to take the code and make it work correctly to stretch the
  chapter title.  What I want is two lines for a chapter head.  For
  example, Line 1: Chapter One
  Line 2: Title for Chap 1
 
  I want line 1 to be stretched.  Everything I have tried does not work.  I
  can get the Chapter word to stretch, but not the whole line (and it
  should probably be treated as a whole line when stretching).  I was never
  able to get the chapter number (now a word) to stretch.
 
  So how do I grab the output for line 1 and then stretch it?
 
  Here's a sample of what I have without any stretching:
 
  \def\Myheader#1#2{%
  \framedtext[width=0.60\textwidth, frame=off, align=middle]{%
  \vbox{\headtext{chapter}~#1 \blank #2}}}
 
  \def\englishnumbers#1{
  \ifcase#1 \or ONE\or TWO\or THREE\or FOUR\or FIVE\fi}
  \defineconversion[englishnumbers][\englishnumbers]
 
  \setupsection[chapter][conversion=englishnumbers]
  \setuphead [chapter][
  command=\Myheader,
  textcommand=\bfd,
  ]
  \setupheadtext[chapter=CHAPTER] % used by \headtext
  \starttext
  \chapter{Title for Chap 1}
  \processfile{tufte}
  \stoptext
 
 
  P.S. If there's a better way to do the number-word conversion, let me
  know.
 
  On Wednesday 12 November 2008 10:17:35 am Wolfgang Schuster wrote:
  Am 12.11.2008 um 18:03 schrieb Bart C. Wise:
  Okay, it works until I place an an argument in the stretched command.
 
  def\MyChapterCommand#1#2{
\framed[align=center,frame=off,width=\textwidth]{
\vbox{
  fails--  \stretched{#2}
  works--  \stretched{This is a Test}
}
}
  \setuphead[chapter][
command=\MyChapterCommand
  }
 
 
  I get the following error when I run texexec:
 
  ! Missing \endcsname inserted.
  to be read again
\let
  \nextprocessedtoken ...oup \ifincolor \ifcsname #1
   #3\endcsname \let
  \dostopa...
 
  \dodoprocesstokens ...token \let \before \between
   \fi \let
  \nextprocessedtok...
  argument This is a test: \dostartattributes
   {\??ko \v!title }\c!style
  \c!c...
 
  \processtokens ...fore \before \doprocesstokens #5
   \lastcharacter
  \endgroup
  \stretched ... \relax \hss \relax {\hss \hss }{#1}
   \egroup
  ...
 
  How can I use the #1  #2 arguments in the stretched command?
 
  You could use it only with \deeptextcommand, here is a old mail
  with a example from Hans (you could ignore the other code).
 
  http://archive.contextgarden.net/message/20060113.102321.bf24d7ca.en.htm
 l

 look for the property mechanism

 \startproperty[stretch]stretched\stopproperty

 token processing is always tricky since the parser does not know what to
 expect; properties use a pdf trick; in mkiv we have more clever stretching



Hans,

I tried the above code and it failed.  I looked around on the ConTeXt site and 
the web in general.  It seems like a \defineproperty[stretch] needs to be 
declared, but I can't find it anywhere.  You'll have to excuse my ignorance, 
but will you be explicit on how to use the \startproperty[stretch] stretch 
\stopproperty.

Bart
___
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] Kerning

2008-11-12 Thread Bart C. Wise
Wolfgang,  thanks so much for your help so far.

I was able to take the code and make it work correctly to stretch the chapter 
title.  What I want is two lines for a chapter head.  For example,
Line 1: Chapter One
Line 2: Title for Chap 1

I want line 1 to be stretched.  Everything I have tried does not work.  I can 
get the Chapter word to stretch, but not the whole line (and it should 
probably be treated as a whole line when stretching).  I was never able to get 
the chapter number (now a word) to stretch.

So how do I grab the output for line 1 and then stretch it?

Here's a sample of what I have without any stretching:

\def\Myheader#1#2{%
\framedtext[width=0.60\textwidth, frame=off, align=middle]{%
\vbox{\headtext{chapter}~#1 \blank #2}}}

\def\englishnumbers#1{
\ifcase#1 \or ONE\or TWO\or THREE\or FOUR\or FIVE\fi}
\defineconversion[englishnumbers][\englishnumbers]

\setupsection[chapter][conversion=englishnumbers]
\setuphead [chapter][
command=\Myheader,
textcommand=\bfd,
]
\setupheadtext[chapter=CHAPTER] % used by \headtext
\starttext
\chapter{Title for Chap 1}
\processfile{tufte}
\stoptext


P.S. If there's a better way to do the number-word conversion, let me know.


On Wednesday 12 November 2008 10:17:35 am Wolfgang Schuster wrote:
 Am 12.11.2008 um 18:03 schrieb Bart C. Wise:
  Okay, it works until I place an an argument in the stretched command.
 
  def\MyChapterCommand#1#2{
\framed[align=center,frame=off,width=\textwidth]{
  \vbox{
  fails--\stretched{#2}
  works--\stretched{This is a Test}
  }
  }
  \setuphead[chapter][
command=\MyChapterCommand
  }
 
 
  I get the following error when I run texexec:
 
  ! Missing \endcsname inserted.
  to be read again
\let
  \nextprocessedtoken ...oup \ifincolor \ifcsname #1
   #3\endcsname \let
  \dostopa...
 
  \dodoprocesstokens ...token \let \before \between
   \fi \let
  \nextprocessedtok...
  argument This is a test: \dostartattributes
   {\??ko \v!title }\c!style
  \c!c...
 
  \processtokens ...fore \before \doprocesstokens #5
   \lastcharacter
  \endgroup
  \stretched ... \relax \hss \relax {\hss \hss }{#1}
   \egroup
  ...
 
  How can I use the #1  #2 arguments in the stretched command?

 You could use it only with \deeptextcommand, here is a old mail
 with a example from Hans (you could ignore the other code).

 http://archive.contextgarden.net/message/20060113.102321.bf24d7ca.en.html

 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] Kerning

2008-11-12 Thread Hans Hagen
Bart C. Wise wrote:
 Wolfgang,  thanks so much for your help so far.
 
 I was able to take the code and make it work correctly to stretch the chapter 
 title.  What I want is two lines for a chapter head.  For example,
 Line 1: Chapter One
 Line 2: Title for Chap 1
 
 I want line 1 to be stretched.  Everything I have tried does not work.  I can 
 get the Chapter word to stretch, but not the whole line (and it should 
 probably be treated as a whole line when stretching).  I was never able to 
 get 
 the chapter number (now a word) to stretch.
 
 So how do I grab the output for line 1 and then stretch it?
 
 Here's a sample of what I have without any stretching:
 
 \def\Myheader#1#2{%
 \framedtext[width=0.60\textwidth, frame=off, align=middle]{%
 \vbox{\headtext{chapter}~#1 \blank #2}}}
 
 \def\englishnumbers#1{
 \ifcase#1 \or ONE\or TWO\or THREE\or FOUR\or FIVE\fi}
 \defineconversion[englishnumbers][\englishnumbers]
 
 \setupsection[chapter][conversion=englishnumbers]
 \setuphead [chapter][
 command=\Myheader,
 textcommand=\bfd,
 ]
 \setupheadtext[chapter=CHAPTER] % used by \headtext
 \starttext
 \chapter{Title for Chap 1}
 \processfile{tufte}
 \stoptext
 
 
 P.S. If there's a better way to do the number-word conversion, let me know.
 
 
 On Wednesday 12 November 2008 10:17:35 am Wolfgang Schuster wrote:
 Am 12.11.2008 um 18:03 schrieb Bart C. Wise:
 Okay, it works until I place an an argument in the stretched command.

 def\MyChapterCommand#1#2{
   \framed[align=center,frame=off,width=\textwidth]{
 \vbox{
 fails--\stretched{#2}
 works--\stretched{This is a Test}
 }
 }
 \setuphead[chapter][
   command=\MyChapterCommand
 }


 I get the following error when I run texexec:

 ! Missing \endcsname inserted.
 to be read again
   \let
 \nextprocessedtoken ...oup \ifincolor \ifcsname #1
  #3\endcsname \let
 \dostopa...

 \dodoprocesstokens ...token \let \before \between
  \fi \let
 \nextprocessedtok...
 argument This is a test: \dostartattributes
  {\??ko \v!title }\c!style
 \c!c...

 \processtokens ...fore \before \doprocesstokens #5
  \lastcharacter
 \endgroup
 \stretched ... \relax \hss \relax {\hss \hss }{#1}
  \egroup
 ...

 How can I use the #1  #2 arguments in the stretched command?
 You could use it only with \deeptextcommand, here is a old mail
 with a example from Hans (you could ignore the other code).

 http://archive.contextgarden.net/message/20060113.102321.bf24d7ca.en.html

look for the property mechanism

\startproperty[stretch]stretched\stopproperty

token processing is always tricky since the parser does not know what to 
expect; properties use a pdf trick; in mkiv we have more clever stretching


-
   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] Adding custom key/value pairs

2008-04-17 Thread Wolfgang Schuster
On Tue, Apr 15, 2008 at 5:34 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
 Hi Wolfgang,


 On Tue, 15 Apr 2008, Wolfgang Schuster wrote:

  On Mon, Apr 14, 2008 at 6:11 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
  On Mon, 14 Apr 2008, Taco Hoekwater wrote:
 
  Wolfgang Schuster wrote:
 
  Why not, I have nothing against a few predefined title pages layouts.
 
  Somewhat related: it would be nice if there was some common code for
  titles (books as well as articles).
 
  [snip]
 
  Anyway, the maps module contains all the code to do everything. And
  the same is true for the TUG module. And for quite a few others I have
  laying around. Lots of duplicate code all over, so a common framework
  would be great. I've been meaning to write one for a long time, but
  somehow I never quite get around to actually doing it.
 
  Just saying this to let you know that I would really welcome a module
  with commands like \setuptitle, \definetitle, and \placetitle.
 
  I agree with that. It will be really nice to have a module that does a few
  simple titles (alternate=(a|b|c), etc.) For one of my personal modules,
  I was following something along the lines of the maps module. But I find
  Wolfgang's solution on the wiki to be more ConTeXtish than what all other
  modules use.
 
  Hi Aditya,
 
  could you use a few lines what do you expect from a 
  placetitle/placetitlepage
  command or a titlepage environment.

 Some of the things that I use \placetitle for:

 * Writing academic papers. Currenly, I have a macro that I use like this:

 \article
[title ={...},
 author={...},
publication={...},% This just goes to pdf subtitle
date={...},
bottom={...}, %text placed at page bottom,
  %usually current revision number
thanks={...}, %placed on the footer of the first page
]

 \startabstract
 ...
 \stopabstract

 \startkeywords
 
 \stopkeywords

 The abstract environment places a head (Abstract) followed by its
 content. The formatting depends on whether it is a journal article, or a
 conference article.

 keyword also places a head followed by its content.

 Currently, what I have is that \article places all its contents, and so do
 abstract and keyword. So, I do not have to store anything.

 * TUGBoat articles: This uses a style file originally by Hans, which I
 have modified considerably, but still uses the same interface.

 This uses

 \setvariables
[tugboat]
[title={...},
 author={...},
 address={...},
 email={...},
 year={...},
 volume={..},
 number={...},
 page={...}]

 The title and the author go to the document title. The address and email
 go at the end of the article. The year, volume, number, and page go to the
 header and footer of the article.

 The rest of the article is somethng like

 \starttext
 \startArticle

 \startAbstract
 
 \stopAbstract
 ...

 \stopArticle
 \stoptext

 This structure is the reason I think something like \setuptitle (or
 \setupdocumenttitle) is needed.

 * Practex journal, which uses

 http://wiki.contextgarden.net/Modules/Pracjourn

 * My Ways which use

 http://wiki.contextgarden.net/Modules/MyWay

 * and finally Maps which use

 http://wiki.contextgarden.net/Modules/Maps

 

 Notice that almost all of them so similar things, but in slightly
 different manner. What I wish for is a common interface, and I really like
 your idea of \setuptitle. In fact, I think that something like that should
 be part of the core.

I module should be enogh for the start, makes it easier to test without
the need to create a new relase or replace one of the core files and to
generate a new format file.

 The module does not need to take care of all the formatting requirements:
 just provide the interface. For a particular publications, the module for
 that publication can modify the \placetitle command to do what they want.
 With this, the user documentation can just say that use

 \setuptitle[title=...,author=..., date=] %and maybe setups={...}

 So, we will have a consistent user inteferface for all documents.

  What should we do with the abstract, did it depend on the document title ...

 In general, the formatting of the abstract will depend on the kind of the
 document. Just need something like

 \definetitlesubstructure% or something more appropriate
   [abstract]
   [headtext={Abstract},
headstyle=bold,
headcolor=blue,
headalign=middle,
inbetween=\blank,%between the head and the body
style=small, %for the contents
color=black, %for the contents
   ]

I would replace headetext with \setuphead[abstract] and the format
for the table of content (is this what do you mean with for the content)
with \setuplist but should abstract use a own command to place the
title \definehead[abstract]  or can we use one of the predefined ones
(title -- new page or subject -- if you need a abstract in different languages
on one page).

 This should

Re: [NTG-context] Adding custom key/value pairs

2008-04-15 Thread Aditya Mahajan
Hi Wolfgang,

On Tue, 15 Apr 2008, Wolfgang Schuster wrote:

 On Mon, Apr 14, 2008 at 6:11 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
 On Mon, 14 Apr 2008, Taco Hoekwater wrote:

 Wolfgang Schuster wrote:

 Why not, I have nothing against a few predefined title pages layouts.

 Somewhat related: it would be nice if there was some common code for
 titles (books as well as articles).

 [snip]

 Anyway, the maps module contains all the code to do everything. And
 the same is true for the TUG module. And for quite a few others I have
 laying around. Lots of duplicate code all over, so a common framework
 would be great. I've been meaning to write one for a long time, but
 somehow I never quite get around to actually doing it.

 Just saying this to let you know that I would really welcome a module
 with commands like \setuptitle, \definetitle, and \placetitle.

 I agree with that. It will be really nice to have a module that does a few
 simple titles (alternate=(a|b|c), etc.) For one of my personal modules,
 I was following something along the lines of the maps module. But I find
 Wolfgang's solution on the wiki to be more ConTeXtish than what all other
 modules use.

 Hi Aditya,

 could you use a few lines what do you expect from a placetitle/placetitlepage
 command or a titlepage environment.

Some of the things that I use \placetitle for:

* Writing academic papers. Currenly, I have a macro that I use like this:

\article
[title ={...},
 author={...},
publication={...},% This just goes to pdf subtitle
date={...},
bottom={...}, %text placed at page bottom,
  %usually current revision number
thanks={...}, %placed on the footer of the first page
]

\startabstract
...
\stopabstract

\startkeywords

\stopkeywords

The abstract environment places a head (Abstract) followed by its 
content. The formatting depends on whether it is a journal article, or a 
conference article.

keyword also places a head followed by its content.

Currently, what I have is that \article places all its contents, and so do 
abstract and keyword. So, I do not have to store anything.

* TUGBoat articles: This uses a style file originally by Hans, which I 
have modified considerably, but still uses the same interface.

This uses

\setvariables
[tugboat]
[title={...},
 author={...},
 address={...},
 email={...},
 year={...},
 volume={..},
 number={...},
 page={...}]

The title and the author go to the document title. The address and email 
go at the end of the article. The year, volume, number, and page go to the 
header and footer of the article.

The rest of the article is somethng like

\starttext
\startArticle

\startAbstract

\stopAbstract
...

\stopArticle
\stoptext

This structure is the reason I think something like \setuptitle (or 
\setupdocumenttitle) is needed.

* Practex journal, which uses

http://wiki.contextgarden.net/Modules/Pracjourn

* My Ways which use

http://wiki.contextgarden.net/Modules/MyWay

* and finally Maps which use

http://wiki.contextgarden.net/Modules/Maps



Notice that almost all of them so similar things, but in slightly 
different manner. What I wish for is a common interface, and I really like 
your idea of \setuptitle. In fact, I think that something like that should 
be part of the core.

The module does not need to take care of all the formatting requirements: 
just provide the interface. For a particular publications, the module for 
that publication can modify the \placetitle command to do what they want. 
With this, the user documentation can just say that use

\setuptitle[title=...,author=..., date=] %and maybe setups={...}

So, we will have a consistent user inteferface for all documents.

 What should we do with the abstract, did it depend on the document title ...

In general, the formatting of the abstract will depend on the kind of the 
document. Just need something like

\definetitlesubstructure% or something more appropriate
   [abstract]
   [headtext={Abstract},
headstyle=bold,
headcolor=blue,
headalign=middle,
inbetween=\blank,%between the head and the body
style=small, %for the contents
color=black, %for the contents
   ]

This should define a command that captures its contents, and provides a 
command \placetitlesubstructure[abstract].

Similarly, we can define

\definetitlesubstructure
   [keywords]
   []

Then, \placetitlesubstructure[abstract] and 
\placetitlesubstracutre[keywords] and go in the after={...} key of 
\setuptitle.

As I said before, the module just needs to collect the information, and 
provide one or two simple styles. Once the information is collected, it is 
easy to use other keys (e.g. thanks key in my first case) and let the user 
define a setups that take of how to handle those keys.

Aditya
___
If your question

[NTG-context] trouble with indices

2008-02-17 Thread Jesse Alama
I've noticed that with the most recent ConTeXt release I'm unable to
make indices.  This example fails:

  \starttext
  Hello, this \index{copula}is an index.
  \completeindex
  \stoptext

The error I get is:

  chapter : 1 \headtext {index}
  ! Extra }, or forgotten \endgroup.
  \stoppacked -\par \ifvmode \egroup 
  \ifdim \lastskip =\noparskipsignal 
\rela...
  
  \doutilities ...protectutilities \unprotect \fi #4
\the 
\everybeforeutilityre...
  
  \doplaceregister ...ster \stoppacked \stopcolumns 
\endgroup \fi 
  \docompleteregister ...ter [\currentregister ][#2]
\page [\v!yes ]\endgroup 
\fi 
  to be read again 
 \par 
  l.6 
  
  ? 

The error arises both with pdftex or xetex.  I think that some recent
change must be responsible for this, because I didn't notice any
problems with indices, say, a couple months ago.  What might be going
on?

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] bib module

2008-02-12 Thread Bob Grünberg
system  : macros of module bibltx loaded
(/usr/share/texmf/tex/context/bib/t-bibltx.tex)
publications: loading formatting style from bibl-apa
(/usr/share/texmf/tex/context/bib/bibl-apa.tex))
publications: loading formatting style from bibl-aps
(/usr/share/texmf/tex/context/bib/bibl-aps.tex) (./test.tuo) (./test.tuo)
(./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo)
(./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo)
fonts   : using map file: texnansi-public-lm.map
fonts   : using map file: original-public-vnr.map
fonts   : using map file: original-public-csr.map
fonts   : using map file: original-public-plr.map
fonts   : using map file: original-public-lm.map
fonts   : using map file: original-ams-euler.map
fonts   : using map file: original-ams-cmr.map
fonts   : using map file: texnansi-base.map
fonts   : using map file: t5-base.map
fonts   : using map file: qx-base.map
fonts   : using map file: 8r-base.map
fonts   : using map file: ec-base.map
fonts   : using map file: ec-public-lm.map
fonts   : using map file: original-base.map
publications: loading database from test.bbl
(./test.bbl)
systems : begin file test at line 27
structure   : begin of sectionblock frontmatter
structure   : end of sectionblock frontmatter
(./test.tuo) [1.1]
chapter : 1 Einleitung
(./einleitung.tex [2.2]
Overfull \hbox (62.2829pt too wide) in paragraph at lines 42--43
 [][] \*12ptmmmr* elek-tro-sta-ti-sche Wech-sel-wir-kung zwi-schen Par-ti-al-la
-dun-gen, die Dipol-Dipol-Wechselwirkung
[3.3] [4.4]
Overfull \hbox (37.03873pt too wide) in paragraph at lines 76--89
\*12ptmmmr* h^^?aufig an-ge-wandt [20]. In die-ser Ar-beit wur-de die $[]$H- un
d $[]$H-NMR Festk^^?orperspektroskopie
[5.5])
section : 1.1 Synthese
section : 1.2 Eigenschaften
[6.6] [7.7]
title   : - \headtext {pubs}
(./test.tuo) [8.8]
systems : end file test at line 77
 )
(see the transcript file for additional information)
Output written on test.dvi (8 pages, 21972 bytes).
Transcript written on test.log.

   return code : 0
  run time : 1 seconds

total run time : 1 seconds

##bibtex OUTPUT
$ bibtex test
This is BibTeX, Version 0.99c (Web2C 7.5.4)
The top-level auxiliary file: test.aux
The style file: cont-no.bst
Database file #1: disse.bib





 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005

executable : pdfetex
format : cont-en
 inputfile : test
output : pdftex
 interface : en
  current mode : none
   TeX run : 1

This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 file:line:error style messages enabled.
 %-line parsing enabled.
 (/usr/share/texmf/web2c/natural.tcx)
entering extended mode
(./test.tex

ConTeXt  ver: 2005.01.31  fmt: 2007.12.22  int: english  mes: english

language: language en is active
protectionstate 0
system  : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex!
color   : palette rollover is available
system (E-TEX) : [line 878]
system (E-TEX) : [line 933]
)
system  : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/usr/share/texmf/tex/context/user/cont-sys.rme
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-dis.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en-default:default-1-2:2 de-texnansi:texnansi-3
-2:2 de-ec:ec-4-2:2 fr-texnansi:texnansi-5-2:2 fr-ec:ec-6-2:2 es-def
ault:default-7-2:2 it-texnansi:texnansi-8-2:2 it-ec:ec-9-2:2 nl-texnan
si:texnansi-10-2:2 nl-ec:ec-11-2:2 loaded
specials: tex,postscript,rokicki loaded
system  : test.top loaded
(./test.top
specials: loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex unprotect 3 unprotect 4
system (E-TEX) : [line 2280] \ifcsname
protect 4 protect 3)
specials: fdf loaded
unprotect 3 protect 3)
specials: fdf,tpd loaded
)
color   : system rgb is global activated
system  : macros of module chemic loaded
(/usr/share/texmf/tex/context/base/m-chemic.tex
(/usr/share/texmf/tex/generic/pictex/pictex.tex)
(/usr/share

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
]
\definetabulate[name][name][text]
\definetext[name][position][text][text][text]
# \definetextbackground
\definetextposition[name][settings]
# \definetextvariable[settings][???][???]
\definetype[name][settings]
# \definetypeface
\definetyping[file|typing|name][settings]
\defineversion[name][numbers]
# \defineXMLargument
# \defineXMLcommand
# \defineXMLenvironment
# \defineXMLenvironmentsave
# \defineXMLgrouped
# \defineXMLgsave
# \defineXMLgstore
# \defineXMLignore
# \defineXMLnested
# \defineXMLpickup
# \defineXMLprocess
# \defineXMLsave
# \defineXMLsavecontent
# \defineXMLsingular
# \defineXMLstore
# \defXMLstring
\description{text}text
\determineheadnumber[section]
\determinelistcharacteristics[names][settings]
# \digits
\disableinteractionmenu[position|name][references]
# \disablemode
# \doglobal
# \dogotopar
# \doif
# \doifcommon
# \doifcommonelse
# \doifdefined
# \doifdefinedelse
# \doifelse
# \doifelsenothing
# \doifelsevalue
# \doiffieldelse
# \doifflagged
# \doifinset
# \doifinsetelse
# \doifmode
# \doifmodeelse
# \doifnextcharelse
# \doifnot
# \doifnotcommon
# \doifnotflagged
# \doifnothing
# \doifnotinsetelse
# \doifnotmode
# \doifnotvalue
# \doifsomething
# \doiftext
# \doiftextelse
# \doifundefined
# \doifundefinedelse
# \doifvalue
# \doifXMLdata
# \doifXMLdataelse
# \doifXMLop
# \doifXMLparelse
# \doloop
# \donothing
# \dontleavehmode
\donttest
# \dorecurse
# \dostepwiserecurse
# \dowithnextbox
# \dowithnextboxcontent
# \empty
\emptylines[number]
# \emptytoks
# \enablemode
# \endstrut
\enumeration
# \environment
# \EQ
# \eTABLE
# \eTABLEbody
# \eTABLEfoot
# \eTABLEhead
# \eTABLEnext
# \eTD
# \eTH
# \eTR
# \exitloop
# \expanded
\externalfigure[file][settings]
\field[name]
\fieldstack[name][names][settings]
\fillinfield[text]{text}
\fillinline[settings]
\fillinrules[settings]{text}{text}
\fillintext[settings]{text}{text}
\fitfield[name]
\fixedspaces
# \FLOWchart
# \flushcollector
# \flushlayer
# \flushXMLelement
\followprofile{text}[text]
\followprofileversion{text}[text][text]
\followversion{text}[text]
\footnote[reference]{text}
\footnotetext[reference]{text}
\forceblocks[names][names]
# \forgetall
# \FR
\fraction{text}{text}
\framed[settings]{text}
\framedtext[settings]
\from[reference]
\getbuffer[name]
# \getfiguredimensionsonly
# \getmarking[name][options]
# \getvalue
# \getvariable
# \globalletvalue
\godown[dimension]
\goto{text}{text}[references]
\gotobox{text}[references]
\graycolor[text]
\grid[options]
# \gsaveXMLasdata
\hairline
\head[references]
\headnumber[section]
\headtext{text}
# \hfilll
\hideblocks[names][names]
\high{text}
# \HL
\hl[number]
# \hpos
# \hspace
# \ifconditional
# \ifdefined
# \iftrialtypesetting
# \ifundefined
\in{text}{text}[reference]
# \includeFLOWchart
# \includemenu
# \increment
\indentation
\indenting[options]
\inframed[settings]{text}
\ininner[+|-|low][reference]{text}
\inleft[+|-|low][reference]{text}
\inline[reference]
\inmargin[+|-|low][reference]{text}
\inothermargin[+|-|low][reference]{text}
\inouter[+|-|low][reference]{text}
\inright[+|-|low][reference]{text}
\installlanguage[name][options]
\interactionbar[settings]
\interactionbuttons[settings][names]
\item[references]
\items[settings]{text}
\its[references]
\keepblocks[names][all|names]
\labeling[reference]
\labels[name]
\labeltext{text}
\language[language code]
\leftaligned{text}
# \letgvalue
# \letvalue
\listsymbol[name]{text}
# \loadmapfile
\loadsorts
\loadsynonyms
# \localhsize
\logfields
\lohi[low]{text}{text}
\low{text}
# \LR
\mainlanguage[language code]
\mar[references]{text}
\marginrule[number]{text}
\margintext[+|-|low][reference]{text}
\marking[name]{text}
\markversion
\mathematics{text}
\mediaeval{text}
\midaligned{text}
\mirror{text}
\MONTH{text}
\month{text}
\moveongrid[options]
# \MR
\name{text}
# \NC
# \newcounter
# \nextbox
\nextsection
\nocap{text}
\noheaderandfooterlines
\noindenting
\nolist{text}
\nomarking{text}
\nomoreblocks
\nomorefiles
\nop
\nospace
\note[reference]
\notopandbottomlines
\nowhitespace
# \NR
\numbers{text}
\overbar{text}
\overbars{text text}
# \overlaybutton
# \overlayfigure
\overstrike{text}
\overstrikes{text text}
\packed
\page[options]
\pagereference[reference]
\pagetype[name]
\paragraph
\part[references]{text}
\periods[number]
\placebookmarks[names][names|all]
\placecombinedlist[name][settings]
\placecombinedlist[name][settings]
# \placefigure
\placefloat[options][references]{text}{text}
\placefootnotes[settings]
\placeformula[references]{text}$$ $$
# \placelayer
\placelegend{text}{text}
\placelist[names][settings]
\placelistoffloats
\placelistofsorts
\placelistofsynonyms
\placelocalfootnotes[settings]
\placelogos[names]
\placeongrid[settings{text}
\placeontopofeachother{text}{text}
\placereferencelist[names]
\placeregister[name][settings]
\placeregister[settings]
\placerule[name]
\placesidebyside{text}{text}
\placesubformula[references]{text}$$ $$
\placetextvariable[name]
# \plusone
# \plustwo
\position(numbers){text}
\positiontext[name]{text}
# \prependtoks

[NTG-context] Underline the headertext with a thinrule

2007-05-13 Thread Bert Trüger

Hi again,

luigi, thanks for your tips. I simply want to put a \thinrule
underneath the headertext in textwidth. My setup is:

\setupheadertexts[chapter][\pagenumber][section][\pagenumber]
\setupheader[after=\thinrule]
\setuphead[subsubsection][number=no,alternative=text,indenttext=yes,textstyle=bold]
\definetext[chapter][footer][pagenumber]
\setuphead[chapter][header=high,footer=chapter,page=yes]
\setuphead[blank][state=empty]

This way I get a \thinrule starting in the left margin in textwidth
under an odd page. I would like the headertext with chapter and
pagenumber underlined with \thinrule on every odd page, except it
is blank or the beginning of a new chapter, and the same with
section and pagenumber in the header for every even page, except it
is blank or the beginning of a new chapter -- a simple underlined
headtext like in many books.

Thanks for your help

Bert
___
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] Page number on 'chapter' pages

2007-02-01 Thread Confused Scientist

Hi all,
I'm using ConTeXt to layout my phd thesis and I need to follow some rather
strict rules.  One of these is that every page must be numbered.  I'm having
some trouble adding numbers to the page where the chapter starts and the
preceding page (where I place a famous quotation).  Below are the
definitions in my environment.

Any ideas on how to add page numbers to these pages?

Thanks,
Dave

%%% cut

\setuppagenumbering[
 alternative=doublesided,
 style={\sc},
 location={footer, marginedge},
 partnumber=no,
 way=bytext]

%%% Formal title, Chapter #: Title
\definetext[chapter][footer][pagenumber]

\setuphead
 [chapter]
 [command=\MyChapterText,
  style={\switchtobodyfont[UtopiaTitling, 16pt]\sc},
  placehead=yes,
  color=black,
  number=yes,
  continue=no,
  distance=0pt,
  page=,
  header=nomarking,
  footer=chapter,
  distance=0pt,
  before=\setups{chapter:before}]

\def\MyChapterText#1#2%
 {\vbox to 35mm
   \bgroup{\leftaligned{\vbox{\headtext{chapter} #1\blank#2}}}\vss\egroup}
\setupheadtext[chapter=Chapter]

\startsetups [chapter:before]
 \page[left]
 \noheaderandfooterlines
 \vbox to 35mm{}
 \vbox{\blank
 \startalignment[left,nothyphenated]
   \noindent \setups[chapter:quote]
 \stopalignment}
 \resetsetups[quote:text]
 \page[right]
 \noheaderandfooterlines
\stopsetups

%%% cut
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Index and bookmark problem

2006-12-01 Thread Wim Neimeijer

Hi,

I get an error when I use bookmarks in combination with indexed keywords 
in chapter/section
like the example below. When I comment out the \placebookmarks, things 
seem to work.

Is this behavior to be expected or is there a workaround/solution ?

Kind regards
Wim Neimeijer

% Example %
\setupinteraction[state=start]
\placebookmarks[chapter]
\setupinteractionscreen[option=bookmark]

\starttext
\chapter{Affiene connectie en affiene \index{geodeten}geodeten}
\section{Inleiding}
\index{Ruimtetijd} Ruimtetijd is een vierdimensionale differentieerbare 
vari\eteit. In de vorige paragrafen hebben we op grond
van het equivalentieprincipe van Einstein een metriek en een metrische 
connectie op \index{Ruimtetijd} Ruimtetijd ingevoerd.
In deze paragraaf zullen we wat algemener een 
\index{connectie+affiene}affiene connectie op \index{Ruimtetijd} 
Ruimtetijd invoeren.
Het zal blijken dat de metrische en de affiene connectie aan elkaar 
gelijk kunnen zijn.


\setupfootertexts[]
\setupheadertexts[][][][]
\setupregister[index] [partnumber=no,
  criterium=all,
  pagestyle={\tf},
  style={\WORD}, % use 
uppercase header characters!

  interaction=pagenumber,
  align=yes]
\completeindex
\stoptext

Error from log

texmfstart texexec --autopdf --pdf testindex.tex
TeXExec | processing document 'testindex.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file testindex.top
TeXExec | using randomseed 1138
TeXExec | tex engine: pdfetex
TeXExec | tex format: cont-en
TeXExec | progname: context
This is pdfeTeX, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5)
\write18 enabled.
(f:\context\usr\local\context\tex\texmf-local/web2c/natural.tcx)
entering extended mode
(./testindex.tex

ConTeXt  ver: 2006.11.16 12:02 MK II  fmt: 2006.11.16  int: english/english

language: language en is active
system  : cont-new loaded
.. ( some info lines deleted)
(f:\context\usr\local\context\tex\texmf-local/tex/context/base/spec-fdf.mkii)) 


specials: fdf loaded
)
specials: fdf,tpd loaded
)
systems : system commands are enabled
interaction : active
(./testindex.tuo) (./testindex.tuo
! Undefined control sequence.
\doregister #1-\chardef \registerpagestatus
   \plusone \def 
\currentregister ...

argument Affiene connectie en affiene \index
 {geodeten}geodeten
\sanitizePDFdocencoding ...docencoding \edef #2{#1
}
\doPDFinsertbookmark ...oding #3\to \bookmarktext
\stripstring 
\bookmarktext...

argument \flushbookmark
\dodoputbookmarkelement {\v!chapter 
}{10}{2}{\head...


\secondoftwoarguments #1#2-#2
   l.27 ...\headtext 
{index}}{2--0-2-0-0-0-0-0--3}{3}

   ?

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Conflict with chapter definition and header

2006-08-04 Thread Taco Hoekwater


Confused Scientist wrote:
 Thanks Taco.
 
 This is certainly closer to what I'm trying to do, but I still have a 
 problem with the chapter names missing from the header of every odd/left 
 page.  Below is how I setup the headers:


The setups are the problem. Your code essentially does

   \vbox{\chapter{}}

The result is that the markings from the \chapter stay local
to the \vbox that contains it. You need something like this
instead (I leave the details for you to sort out)

\setuphead
   [chapter]
   [command=\MyChapterText,
before=\setups{chapter:before},
after=]

\def\MyChapterText#1#2%
   {\vbox to 35mm
  {\headtext{chapter}~#1\blank[small]#2\vss}}

\startsetups [chapter:before]
   \page[left]
   \noheaderandfooterlines
   \vbox to 35mm{}
   \vbox{\blank
   \startalignment[left,nothyphenated]
 \noindent \setups[chapter:quote]
   \stopalignment}
   \resetsetups[quote:text]
   \page[right]
   \noheaderandfooterlines
\stopsetups


Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] New bib module release

2006-08-04 Thread Taco Hoekwater
Hi all,

I have just uploaded a new version of the bib module to

   http://modules.contextgarden.net/bib

It should become automatically included in the next ConTeXt
release, as always.

New features:

* Added support for configuration of \completepublicationlist,
   using \setuppublicationlist[title=\chapter]
* The module now uses the expansion of \headtext{pubs}, so that
   PDF bookmarks should come out alright.
* A hook is added for support of repeated author suppression in
   the publication list:
 \setuppublicationlist[artauthorcommand=\threeargs]
   (see the manual for a bit more information)
* The bracketed arguments of \artauthor, \author and \editor
   (bbl commands) are now optional.
* Minor updates to the documentation

Happy TeXing,
Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Conflict with chapter definition and header

2006-08-03 Thread Confused Scientist
Thanks Taco.This is certainly closer to what I'm trying to do, but I still have a problem with the chapter names missing from the header of every odd/left page. Below is how I setup the headers:\setupheadertexts

 [] % even left
 [section] % even right
 [chapter] % odd left
 [] % odd rightAny ideas?Thanks,James-- example --%%% Layout\setuppagenumbering[ alternative=doublesided, style={\sc}, location={footer, marginedge}, partnumber=no,
 way=bytext]\setuppapersize[a4][a4] % paper size (210 x 297 mm)\definelayout[even] % Even = Left [topspace=14mm, % at the very top of the page bottomspace=14mm, % at the very bottom of the page
 header=6mm, % for header headerdistance=4mm, % between body and header footer=6mm, % for footer footerdistance=4mm, % between body and footer
 backspace=38mm, % binding edge space cutspace=32mm, % opposite to binding edge leftmargin=25mm, % space for margin notes rightmargin=25mm, % space for right margin notes
 width=fit, height=fit]\definelayout[odd] % Odd = Right [topspace=14mm, % at the very top of the page bottomspace=14mm, % at the very bottom of the page
 header=6mm, % for header headerdistance=4mm, % between body and header footer=6mm, % for footer footerdistance=4mm, % between body and footer
 backspace=38mm, % binding edge cutspace=32mm, % opposite to binding edge leftmargin=25mm, % the space for margin notes rightmargin=25mm, % the space for right margin notes
 width=fit, height=fit]\setuplayout [location=doublesided] % double-sided pages\setupheader[style={\it}]\setupheadertexts [] % even left [section] % even right
 [chapter] % odd left [] % odd right\definetext[chapter][footer][pagenumber]\setupheadtext [chapter=Chapter]\setuphead [chapter] [command=\MyChapterText, style={\sc\tfc},
 placehead=yes, color=black, number=yes, continue=no, page=, header=high, footer=chapter, distance=0pt, before=\setups{chapter:before}, after=\setups{chapter:after}]
\def\MyChapterText#1#2{\vbox{\sc\tfc\headtext{chapter}~#1\blank[small]#2}}\startsetups [chapter:before] \page[left] \noheaderandfooterlines \vbox to 35mm{} \vbox{\blank \startalignment[left,nothyphenated]
 \noindent \setups[chapter:quote] \stopalignment} \resetsetups[quote:text] \page[right] \noheaderandfooterlines \vbox to 35mm \bgroup\stopsetups\startsetups [chapter:after] \vss\egroup
\stopsetups\showframe%%% Text\starttext\startsetups[chapter:quote] \vbox{My quote goes here\par \it{---author from ``source'', 1900.}}\stopsetups\chapter{This is a split chapter title\blank[small]%
 On two lines}\input tufte\section{Section One}\dorecurse{3}{\input tufte \par \input knuth \par}\section{Section Two}\dorecurse{3}{\input tufte \par \input knuth \par}\startsetups[chapter:quote]
 \vbox{My quote goes here\par \it{---author from ``source'', 1900.}}\stopsetups\chapter{A short title}\input tufte\section{Section One}\dorecurse{3}{\input tufte \par \input knuth \par}
\section{Section Two}\dorecurse{3}{\input tufte \par \input knuth \par}\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Conflict with chapter definition and header

2006-07-19 Thread Confused Scientist
Hello,I'm trying to put together a couple of examples I found in the ConTeXt manual, the wiki and the maling list archive. Unfortunately, I've broken my headers/footers in the process. What I am trying to do is have a double-sided layout where (at the beginning of each chapter) a famous quote is given on the left page and the chapter begins on the right. I do not want any header/footer on the left, but I would like the footer (page number) on the right. 
My problem is that I cannot seem to control the page headers and footers for the left/right chapter page. Also, I cannot seem to get the section name to reliably appear after using setupheadertexts? I am using:

TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 
3.141592-1.30.4-2.2 (Web2C 7.5.5) context : ver: 2006.02.03 21:03 cont-en : ver: 2006.02.03 21:03 fmt: 2006.2.10 mes: english cont-nl : ver: 2006.02.03 21:03 fmt: 
2006.2.10
 mes: dutch total run time : 9 secondsand below is an example of what I have. Any ideas on what I've done wrong.Thanks,Dave%%% Layout\setuppagenumbering[ alternative=doublesided,
 style={\sc}, location={footer, marginedge}, partnumber=no, way=bytext]\setuppapersize[a4][a4] % paper size (210 x 297 mm)\definelayout[even] % Even = Left [topspace=14mm, % at the very top of the page
 bottomspace=14mm, % at the very bottom of the page header=6mm, % for header headerdistance=4mm, % between body and header footer=6mm, % for footer
 footerdistance=4mm, % between body and footer backspace=38mm, % binding edge space cutspace=32mm, % opposite to binding edge leftmargin=25mm, % space for margin notes
 rightmargin=25mm, % space for right margin notes width=fit, height=fit]\definelayout[odd] % Odd = Right [topspace=14mm, % at the very top of the page
 bottomspace=14mm, % at the very bottom of the page header=6mm, % for header headerdistance=4mm, % between body and header footer=6mm, % for footer
 footerdistance=4mm, % between body and footer backspace=38mm, % binding edge cutspace=32mm, % opposite to binding edge leftmargin=25mm, % the space for margin notes
 rightmargin=25mm, % the space for right margin notes width=fit, height=fit]\setuplayout [location=doublesided] % double-sided pages\setupheader[style={\it}]
\setupheadertexts [] % even left [section] % even right [chapter] % odd left [] % odd right\definetext[chapter][footer][pagenumber]\setupheadtext [chapter=Chapter]

\setuphead [chapter] [command=\MyChapterText, style={\sc\tfc}, placehead=yes, color=black, number=yes, continue=no, page=, header=high, footer=chapter, distance=0pt,
 before=\setups{chapter:before}, after=\setups{chapter:after}]\def\MyChapterText#1#2{\vbox{\sc\tfc\headtext{chapter}~#1\blank[small]#2}}\startsetups [chapter:before] \page[left] \vbox to 35mm{}\vbox{\blank
 \noheaderandfooterlines \startalignment[left,nothyphenated] \noindent \setups[chapter:quote] \stopalignment} \resetsetups[quote:text] \page[right] \vbox to 35mm\bgroup\stopsetups

\startsetups [chapter:after] \vss\egroup\stopsetups\showframe%%% Text\starttext\startsetups[chapter:quote] \vbox{My quote goes here\par \it{---author from ``source'', 1900.}}
\stopsetups\chapter{This is a split chapter title\blank[small]% On two lines}\input tufte\section{Section One}\dorecurse{3}{\input tufte \par \input knuth \par}\section{Section Two}
\dorecurse{3}{\input tufte \par \input knuth \par}\startsetups[chapter:quote] \vbox{My quote goes here\par \it{---author from ``source'', 1900.}}\stopsetups\chapter{A short title}

\input tufte\section{Section One}\dorecurse{3}{\input tufte \par \input knuth \par}\section{Section Two}\dorecurse{3}{\input tufte \par \input knuth \par}\stoptext

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Install mess (Type3 Fonts)

2006-03-20 Thread nico

I know, I shouldn't have updated the context distrib, but I did... Of  
course, I add problems with missing fonts, and installed the lm fonts from  
CTAN. Now texexec can compile again.

But the fonts used are now horrible, producing fuzzy letters. Can anyone  
give me some hints to fix this buggy install?

If it can be of some help here is a log of a program I compiled.


This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (format=cont-en  
2006.3.20)  21 MAR 2006 01:48
entering extended mode
  (/usr/local/share/texmf-dist/web2c/natural.tcx)
**cont-en programlisting.001.tex
(./programlisting.001.tex

ConTeXt  ver: 2006.03.20 10:19  fmt: 2006.3.20  int: english  mes: english

language: language en is active
protectionstate 0
system  : cont-new loaded
(/usr/local/share/texmf-dist/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
color   : palette rollover is available
)
system  : cont-old loaded
(/usr/local/share/texmf-dist/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/local/share/texmf-dist/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/usr/local/share/texmf-dist/tex/context/user/cont-sys.rme
(/usr/local/share/texmf-dist/tex/context/base/type-exa.tex)
(/usr/local/share/texmf-dist/tex/context/base/type-syn.tex)
(/usr/local/share/texmf-dist/tex/context/base/type-enc.tex)
(/usr/local/share/texmf-dist/tex/context/base/type-siz.tex)
(/usr/local/share/texmf-dist/tex/context/base/type-map.tex)
(/usr/local/share/texmf-dist/tex/context/base/type-spe.tex)
(/usr/local/share/texmf-dist/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en-ec:ec-1-2:3 uk-ec:ec-2-2:3  
de-texnansi:tex
nansi-3-2:3 de-ec:ec-4-2:3 fr-texnansi:texnansi-5-2:3  
fr-ec:ec-6-2:3
  es-ec:ec-7-2:3 pt-texnansi:texnansi-8-2:3 pt-ec:ec-9-2:3  
it-texnansi
:texnansi-10-2:3 it-ec:ec-11-2:3 nl-texnansi:texnansi-12-2:3  
nl-ec:ec-
 13-2:3 cz-il2:il2-14-2:3 cz-ec:ec-15-2:3 sk-il2:il2-16-2:3  
 sk-ec:ec
-17-2:3 pl-pl0:pl0-18-2:3 pl-ec:ec-19-2:3 pl-qx:qx-20-2:3 loaded
specials: tex,postscript,rokicki loaded
\openout2 = `programlisting.001.tui'.

system  : programlisting.001.top loaded
(./programlisting.001.top
specials: loading definition file tpd
(/usr/local/share/texmf-dist/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/usr/local/share/texmf-dist/tex/context/base/spec-fdf.tex)
specials: fdf loaded
)
specials: fdf,tpd loaded
)
\openout0 = `programlisting.001-mpgraph.mp'.

\openout0 = `mpgraph.mp'.

  (/usr/home/ben/project/docbook/db2tex/dbcontext/context/style/patch-fig.tex)
(/usr/home/ben/project/docbook/db2tex/dbcontext/context/style/patch-verb.tex)
color   : system rgb is global activated
interaction : active
(./programlisting.001.tuo)
system  : chapter,section,subsection not found/processed
(./programlisting.001.tuo)
system  : chapter,section,subsection not found/processed
(./programlisting.001.tuo) (./programlisting.001.tuo)  
(./programlisting.001.tuo
) (./programlisting.001.tuo) (./programlisting.001.tuo)
(./programlisting.001.tuo) (./programlisting.001.tuo)  
(./programlisting.001.tuo
) (./programlisting.001.tuo) (./programlisting.001.tuo)
(./programlisting.001.tuo) (./programlisting.001.tuo)  
(./programlisting.001.tuo
)
systems : begin file programlisting.001 at line 79
(/usr/local/share/texmf-dist/tex/context/base/pdfr-ec.tex)
fonts   : resetting map file list
fonts   : using map file: original-base
fonts   : using map file: ec-public-lm
fonts   : using map file: ec-base
fonts   : using map file: 8r-base
fonts   : using map file: t5-base
fonts   : using map file: original-ams-base
fonts   : using map file: original-ams-euler
fonts   : using map file: original-public-lm
interaction : pdftex code inserted
[1.1{/usr/local/share/texmf-dist/fonts/map/dvips/context/original-empty.map}{/u
sr/local/share/texmf-dist/fonts/map/dvips/context/original-base.map}{/usr/local
/share/texmf-dist/fonts/map/dvips/context/ec-public-lm.map}{/usr/local/share/te
xmf-dist/fonts/map/dvips/context/ec-base.map}{/usr/local/share/texmf-dist/fonts
/map/dvips/context/8r-base.map}{/usr/local/share/texmf-dist/fonts/map/dvips/con
text/t5-base.map}{/usr/local/share/texmf-dist/fonts/map/pdftex/context/original
-ams-base.map}{/usr/local/share/texmf-dist/fonts/map/dvips/context/original-ams
-euler.map}{/usr/local/share/texmf-dist/fonts/map/dvips/context/original-public
-lm.map}]
structure   : begin of sectionblock frontmatter
title   : - \headtext {content}
(./programlisting.001.tuo)
system  :  
part,chapter,section,subsection,subsubsection,subsubsubsectio
n,subsubsubsubsection not found/processed
structure   : end

[NTG-context] New bib beta (release candidate)

2006-02-05 Thread Taco Hoekwater
Hi all,

I have finally uploaded a new beta for the bib module. I really
hope this is the last one before a normal release in a week or
two.

   http://tex.aanhet.net/bib/m-bib-beta-20060205.zip

I do not intend to do any more work on the still open limitations/
wishlist at this time, because synchronisation with the standard
context distibution is becoming an issue. Only the documentation
still needs to be fixed, and of course any fatal bugs that may be
in this beta.

Compared to the november 23 beta, the following things have
changed (many thanks to the people who pointed out bugs and
submitted fixes):

   * Make right-aligned labels work even if autohang=no
   * Use 'et al.' instead of 'et.al.'.
   * Additional headtext for cz
   * Keep whitespace after \cite with single argument
   * Fix broken \cite-with-braced-argument
   * Fix \usepublications not finding it's files
   * Fix compressed version of authoryear style
!!* Renamed the \url and \type to \biburl and \bibtype

Most of those are only fixes and should not bother you, but
watch out for that last one, it breaks compatibility.
I really had to do this, because \url and \type clashed
heavily with predefined context commands, but it invalidates
some existent bbl files, sorry.


Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] PhD Style for ConTeXt

2005-12-06 Thread Willi Egger

Hi Renaud,

Since I ws dealing with some aspects of your questions recently ...



I'm working on it now, I've build my document following a complete 
structure (project, environment, products, components) as described in 
the manual, well done...

The layout is now as I want using \setuplayout.
Currently, I'm working on title. I've found the 
\setuplabeltext[fr][chapter=Chapitre] command to customize chapter 
name but then, I will draw a line or graphics under my chapter title 
and don't know how to deal with properly.


Moreover, I experienced some problems with TOC and the use of \title 
for my introduction chapter (I don't want numbering on this).

Eventually, how can I bypass header or footer for a chapter page ?

Thanks, up to now I'm very pleased with ConTeXt, METAFUN and METAPOST !!!


1. Lines under the chapter-title:
   If it should be a simple line then you can use
\setupbackgrounds[header][text][bottomframe=on].

   If it should be a graphical element one can think of approaches like:
   \setupcolors[state=start]
   \startuseMPgraphic{HeaderDeco}
   numeric w, h, repeats;
   path p[];
   w := OverlayWidth ; h := OverlayHeight ;
   repeats := abs(TextWidth/BodyFontSize);
   p[1] := unitsquare xscaled w yscaled h ;
   draw p[1] withcolor white;
   p[2] := fullcircle scaled BodyFontSize;
   p[3] := fullcircle scaled .25BodyFontSize;
   draw p[2] shifted (.5BodyFontSize,0);
   for i = 1 upto repeats:
   if odd i :
   filldraw p[3] shifted (i*BodyFontSize+.5BodyFontSize,0);
   else :
   draw p[2] shifted (i*BodyFontSize+.5BodyFontSize,0);
   fi;
  endfor;
   \stopuseMPgraphic

   \setuphead[chapter][command=\Myheader]
   \setupheadtext
 [chapter=Chapitre]
   \defineoverlay[HeaderDeco][\uniqueMPgraphic{HeaderDeco}]

   \def\Myheader#1#2{%
   \framedtext
   [width= \overlaywidth,
   height=6\bodyfontsize,
   background={foreground,HeaderDeco},
   offset=0pt,
   strut=no,
   frame=off,
   align=middle]{%
   \headtext{chapter} #1
   \blank[small]
   #2}}

\starttext
   \chapter{Here we go!}
\stoptext

  2. Bypassing header and footer: \noheaderandfooterlines or 
\setuphead[chapter][header=high]


Kind regards

Willi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] [BIB] Extra space before surname

2005-09-13 Thread Giuseppe Bilotta
Tuesday, September 13, 2005 Taco Hoekwater wrote:



 Giuseppe Bilotta wrote:
 Hello,
 
 I just noticed that there is an extra space before the
 surname if there is no von part.

 Sounds like a familiar bug. Please try this (and let me
 know if it works or not):

\usemodule[bib]
%
% next 3 lines hopefully fix a bug
%
\let\bibdoif  \doifnotemptyvalue
\let\bibdoifnot   \doifemptyvalue
\def\bibdoifelse#1#2#3{\doifemptyvalueelse{#1}{#3}{#2}}

Looks like something else is needed:

title   : - \headtext {pubs}
(./bez-art.tuo
! Missing \endcsname inserted.
to be read again 
   \penalty 
\nonbreakablespace -\penalty 
  \!!tenthousand \ 
argument P.~
  E.
\bibdoif #1-[EMAIL PROTECTED] \ifx \csname #1
 \endcsname \empty \expandafter \gobbleonear...

\invertedshortauthor ...c!juniorsep }\bibdoif {#4}
  {#4\unskip }
\@@ar@@1 ...author\the \scratchcounter \endcsname 
  \ifnum \etallimitcounter ...
...
l.105 ...ion {bezier93}}{2::0:0:9:0:0:0:0::20}{20}
  


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] [BIB] Extra space before surname

2005-09-13 Thread Giuseppe Bilotta
Tuesday, September 13, 2005 Taco Hoekwater wrote:

   \def\invertedshortauthor#1#2#3#4#5%
{\doifnotempty{#2}{#2\bibalternative\c!vonsep}%
 #3\bibalternative\c!surnamesep
 \doifnotempty{#5}{#5\bibalternative\c!juniorsep}%
 \doifnotempty{#4}{#4\unskip}}


No luck ...

subject : - \headtext {pubs}
(./bez-art.tuo
! Missing \endcsname inserted.
to be read again 
   \vtop 
\bottomaccent #1#2#3#4#5-\dontleavehmode \vtop 
{\forgetall \baselineskip \z...

\dohandleaccent ...acterencoding #1\endcsname {#2}
  \fi \fi \fi 
\invertedshortauthor ...nsep}#3\bibalternative \c 
  !surnamesep \doifnotempty ...

\@@ar@@1 ...author\the \scratchcounter \endcsname 
  \ifnum \etallimitcounter ...

\redoloop -\expandrecursecontent 
  \endofloop 
...
l.159 ...ion {bezier93}}{2::0:0:7:1:0:0:0::25}{25}


 (we slowly are getting to the point where it is easier on you to
   send me the actual document and a list of errors in t-bib :))

Can do that, if you want :)

-- 
Giuseppe Oblomov Bilotta

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \placelist is influensed by \completeregister ??

2005-07-29 Thread Vit Zyka

Dear Hans, Taco, ...

I noticed strange behaviour. When I use \completeregister lists I have 
defined are ignored:


--
\defineregister[letter][letters]
\definelist[somelist]

\starttext
  Hello! \letter{Letter S}
  \writetolist[somelist]{List entry, part A}{List entry, part B}
  %\placeregister[letter]
  \completeregister[letter]
  \placelist[somelist]
\stoptext
-
I discovered that the source of the bug is probably \headtext the line
\expanded{\systemsuppliedchapter[\currentregister]{\noexpand\headtext{\currentregister}}}%

in the \completeregister definition. Please can somebody have a look on it?
vit

--
\unprotect
\def\docompleteregister[#1][#2]%
  {\iffirstargument
 \begingroup
 \edef\currentregister{#1}%
 % the expansion is needed because we don't want \v!'s in the tuo 
file (french)
% 
\expanded{\systemsuppliedchapter[\currentregister]{\noexpand\headtext{\currentregister}}}%

 \placeregister[\currentregister][#2]%
 \page[\v!yes]%
 \endgroup
   \fi}
\protect


--
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] creating a new head

2005-06-29 Thread Hans Hagen

Arun Swarup wrote:

Hi,

I would like to design a new head for \chapter{...}, but I am new to
TeX/ConTeXt and am having trouble.

I would like my head to be something like this:
http://www.geocities.com/arunswarup/images/title.png

I know this a more a TeX-related rather than a ConTeXt-related problem


\setuphead
  [chapter]
  [command=\MyChapter,
   style=\ss\bfd,
   header=high,
   after={\blank[3*big]}]

\setupheadtext
  [chapter=Chapter]

\def\MyChapter#1#2%
  {\vbox \bgroup
 \framed

[frame=off,bottomframe=on,offset=none,height=1cm,width=broad,align=flushleft]
   {\headtext{chapter} #1}
 \vskip2mm
 \framed

[frame=off,topframe=on,offset=none,height=4cm,width=broad,align={flushleft,low}]
   {#2}
\egroup}


\starttext

\chapter{HOW TO INSTALL AND TEST SAMBA}

\input tufte


\stoptext


-
  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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Index and publication list conflict

2004-11-22 Thread Matthias Weber
Hello all,
I might be the only one, but I wanted the index before the 
bibliography, so
my backmatter looks like:

\startbackmatter
\completeindex
\completepublications
\stopbackmatter
which results in the log (excerpt)
title  : - \headtext {pubs}
(./cxmf.tuo)
system : pubs not found/processed
When I conform and use
\startbackmatter
\completepublications
\completeindex
\stopbackmatter
everything is fine, up to the order. ( TeXLive 2004 only)
Matthias
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] i18n in ConTeXt ( some bugs)

2004-10-22 Thread Hans Hagen
Adam Lindsay wrote:
In OpenType fonts, \i doesn't compose well with accents, unlike normal
TeX fonts. Therefore a couple more definitions (at least) are needed in
enco-acc:
\defineaccent ' {\i} {\iacute}
\defineaccent ` {\i} {\igrave} % etc.
ok, added
  I had the toughest time getting strings like \v!january to switch
language. I found that this change (from \currentmainlanguage) fixed the
inability to \ShowLanguageValues. In lang-lab:
\def\labellanguage{\defaultlanguage\currentlanguage}
\def\headlanguage {\defaultlanguage\currentlanguage}
dangerous and wrong, better
\gdef\ShowHeadText#1{\tttf#1\VL\mainlanguage[\currentlanguage]\headtext{#1}\VisualizeLastSpace}
\gdef\ShowLabelText#1{\tttf#1\VL\mainlanguage[\currentlanguage]\labeltext{#1}\VisualizeLastSpace}
Another bug in visualisation was no doubt brought on by the switch to low
level english. In s-mod-00:
  \VL \ShowLabelText \subsection   \VL\MR
  \VL \ShowLabelText \subsubsection\VL\MR
... changes to...
  \VL \ShowLabelText \v!subsection   \VL\MR
  \VL \ShowLabelText \v!subsubsection\VL\MR
corrected
With that done, I noticed a few smaller bugs in the lang-* files. I am
not an expert in any of these languages, so all of my recommendations are
subject to verification by people who know what they're doing!
In lang-grk, a copy-paste error was propagated: 
 \s!fi = \s!gr
corrected
In lang-ura, the Hungarian word for abbreviations has a typo:
  R\ovid\'\it\'esek = R\ovid\'it\'esek (or R\ovid\'\i t\'esek)
corrected
In lang-sla, the Polish word for part has an \ecedilla, which I'm
guessing should be an \eogonek...
  Ust\c{e}p = Ust\k{e}p  (probably!)
corrected
(some day i'll change all these into \namedglyphs)
In lang-ita, The Catalan word for March is spelled with a \,. That's
probably a cedilla:
  mar\,c = mar\c{c}
ok
Finally, I've done some work filling out enco-uc with characters used in
the other encodings and (especially) characters used in the lang-* files.
It's attached. I have a couple questions that remain for experts:
indeed
Greek: I defined \Greekleftquot as a guillemot, as a guess. Is that right?
Cyrillic: The Unicode codepoint for \cyrilicii completely baffled me for
a while. (I don't have a copy of the t2a/b fonts here with me to take a
look for myself!) According to Unicode, it should be the same as
\cyrillici, but that can't be right. I'm now guessing that since it
appears the same as the roman 'i' in enco-cyr, it corresponds with
U+0456: CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I. Is that right?
The additions to enco-uc are attached. I would be ever so grateful if
they found their way into the distribution!
ok, added
btw, we can also need to extend the utf (unic-*) files
By the way, although these seem like complaints, I must say (again) that
hm, bug are bugs, no complaints -)
the plumbing supporting arbitrary encodings, accents, and input regimes
in ConTeXt is absolutely fantastic. Making XeTeX work with ConTeXt is
really quite trivial compared to the efforts being expended on the
XeLaTeX side!
ah, that's good news; i already got pessimistic seeing the stream of 
patched needed for latex that pass by on the xetex list

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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] endnotes: ! Dimension too large. ??

2004-01-13 Thread Hans Hagen
At 14:09 11/01/2004, you wrote:
OK, but what should I do if I have a \MyNote in a \MyHeading ?

See error-log below:

! Undefined control sequence.
argument)
systems: end file SetupEnvironment at line 3
structure  : begin of sectionblock frontmatter
title  : - \headtext {content}
(./HSLN_1.tuo
! Undefined control sequence.
argument Influences in the 20th century\MyNotes


hm, are you sure that \MyNotes is defined at the top of your file?

hans  

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] endnotes: ! Dimension too large. ??

2004-01-11 Thread Steffen Wolfrum
OK, but what should I do if I have a \MyNote in a \MyHeading ?

See error-log below:


! Undefined control sequence.
argument)
systems: end file SetupEnvironment at line 3
structure  : begin of sectionblock frontmatter
title  : - \headtext {content}
(./HSLN_1.tuo
! Undefined control sequence.
argument Influences in the 20th century\MyNotes 
  {: an introduction}
\limitatetext ...it \empty \normallimitatetext {#1
  }\leftlimit {#3}\else \spe...

\lijsttekstcommando #1-\begstrut #1
\endstrut 
\doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4
  }\dostopattributes 
argument ...entury\MyNotes {: an introduction}}}
  \egroup \ifdim \wd 4=\zero...

\secondoftwoarguments #1#2-#2
  
...
l.8 ...: an introduction}}{1::0:0:0:1:0:0:0::7}{1}
  
?  Influences in the 20th century\MyNotes 
  {: an introduction}
\sanitizePDFdocencoding ...docencoding \edef #2{#1
  }
\doPDFinsertbookmark ...oding #3\to \bookmarktext 
  \scratchcounter #4\advance...

\doplacebookmarks ...okmarkelement \flushbookmark 
  \egroup \else \expanded {\...
to be read again 
   \par 
l.238 
  
? 



Thank you,

Steffen




Hans Hagen [EMAIL PROTECTED] wrote:

 At 01:09 10/01/2004, you wrote:
 
 OK, I have more than 700 footnotes - but when using location=page 
 everything works fine.
 
 I was trying to find whether there is something missing when I just 
 continue, and I found the TableOfContent is cut.
 But the text and the footnotes as well seem to be OK.
 
 
 Is there a patch helping me to avoid this error?
 
 Why not use the following mechanism:
 
 \starttext
 
 \definelist[MyNoteList]
 
 \newcounter\MyNotes
 
 \long\def\MyNote#1%
{\ifhmode\unskip\fi
 \doglobal\increment\MyNotes\relax
 \high{\MyNotes}%
 \expanded{\writetolist[MyNoteList]{\MyNotes}}{#1}}
 
 \dorecurse{1000}{test \MyNote{Whow, another note}\endgraf}
 
 \page \placelist[MyNoteList][criterium=text]
 
 \stoptext
 
 You can format the list any way you like, e.g.:
 
 \def\MyNoteList#1#2#3{#1\quad#2\endgraf}
 
 \placelist[MyNoteList][criterium=text,command=\MyNoteList]
 
 also, you can now cal lthem per chapter,
 
 \placelist[MyNoteList][criterium=chapter]
 
 etc
 
 
 ___
 ntg-context mailing list
 [EMAIL PROTECTED]
 http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context