[NTG-context] Chapter-author in TOC

2010-09-19 Thread Andreas Harder
Hi all!

I’m using the structureuservariable to set an author on a per chapter basis. 
But I would also like to have them in the table of contents, so I tried the 
following:

\setuplist[chapter][alternative=MyListItem]

\definelistplacement[MyListItem][none]#1#2#3%
  {#1 #2 (\structureuservariable{author}) #3}

\starttext

\placelist[chapter]

\startchapter[title=Quote from Tufte][author=Tufte]
  \input tufte
\stopchapter

\startchapter[title=Quote from Knuth][author=Knuth]
  \input Knuth
\stopchapter

\stoptext

… without success. I appreciate any help.

Greeting
Andreas
___
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] Chapter-author in TOC

2010-09-19 Thread Wolfgang Schuster

Am 19.09.2010 um 17:44 schrieb Andreas Harder:

> Hi all!
> 
> I’m using the structureuservariable to set an author on a per chapter basis. 
> But I would also like to have them in the table of contents, so I tried the 
> following:
> 
> [...]
> 
> … without success. I appreciate any help.

Hi Andreas,

your question comes just in time, here is a example i planned to send to Harald 
only.

\define[3]\ChapterList
  {\bTABLE[offset=0pt,strut=yes,frame=off,width=.5\textwidth]
 \bTR
   \bTD \structurelistuservariable{date} \eTD
   \bTD #2 \eTD
 \eTR
   \eTABLE}

\setuplist
  [chapter]
  [alternative=command,
   command=\ChapterList]

\define[2]\ChapterHead
  {\startframedtext[frame=off,width=\textwidth,offset=0pt,align=middle]
   
\doifsomething{\structureuservariable{date}}{\structureuservariable{date}\blank}
   #2
   
\doifsomething{\structureuservariable{author}}{\blank\structureuservariable{author}}
   \stopframedtext}

\setuphead
  [chapter]
  [command=\ChapterHead]

\starttext
\completecontent
\startchapter[title=Rom][date=12.06.2010,author=Knuth]
\input knuth
\stopchapter
\startchapter[title=Pisa][date=14.06.2010,author=Tufte]
\input tufte
\stopchapter
\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] Chapter-author in TOC

2010-09-19 Thread Andreas Harder

Am 19.09.2010 um 18:36 schrieb Wolfgang Schuster:

> 
> Am 19.09.2010 um 17:44 schrieb Andreas Harder:
> 
>> Hi all!
>> 
>> I’m using the structureuservariable to set an author on a per chapter basis. 
>> But I would also like to have them in the table of contents, so I tried the 
>> following:
>> 
>> [...]
>> 
>> … without success. I appreciate any help.
> 
> Hi Andreas,
> 
> your question comes just in time, here is a example i planned to send to 
> Harald only.
> 
> \define[3]\ChapterList
>  {\bTABLE[offset=0pt,strut=yes,frame=off,width=.5\textwidth]
> \bTR
>   \bTD \structurelistuservariable{date} \eTD
>   \bTD #2 \eTD
> \eTR
>   \eTABLE}
> 
> \setuplist
>  [chapter]
>  [alternative=command,
>   command=\ChapterList]
> 
> \define[2]\ChapterHead
>  {\startframedtext[frame=off,width=\textwidth,offset=0pt,align=middle]
>   
> \doifsomething{\structureuservariable{date}}{\structureuservariable{date}\blank}
>   #2
>   
> \doifsomething{\structureuservariable{author}}{\blank\structureuservariable{author}}
>   \stopframedtext}
> 
> \setuphead
>  [chapter]
>  [command=\ChapterHead]
> 
> \starttext
> \completecontent
> \startchapter[title=Rom][date=12.06.2010,author=Knuth]
> \input knuth
> \stopchapter
> \startchapter[title=Pisa][date=14.06.2010,author=Tufte]
> \input tufte
> \stopchapter
> \stoptext

Thank you very much Wolfgang, as always perfect!

Andreas

___
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] Problems with the installation of the minimals on Win XP :-(

2010-09-19 Thread Marius
On 27 August 2010 13:22, Mojca Miklavec  wrote:
> On Thu, Aug 26, 2010 at 17:40, Florian Baudach wrote:
>> I solved it, but I think in a very ugly way:
>>
>> 1. I downloaded the kpathsea60071.dll via http and copied the file to
>> /context/bin
>> 2. I downloaded also curl.exe (Don't know if it was necessary :-( )
>> 3. The I got the errors: MSVCP71.DLL and MSVCR71.DLL not found
>
> Akira replied that the two files are present in xetex-w32.tar.bz2 (on
> w32tex.org). If needed, we can add them to the zip for installation
> (it is probably also needed for runtime files then, not only for
> installation, right?).
>
> Is there any other user with the same experience?

Yes, missing MSVCP71.DLL and MSVCR71.DLL on windows xp  and windows 7.
___
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] \setupcombinedlist ignores `level' argument?

2010-09-19 Thread Corsair
On Sun, Sep 19, 2010 at 08:06:05AM +0200, Wolfgang Schuster wrote:
> 
> Am 19.09.2010 um 00:09 schrieb Corsair:
> 
> > Hi all,
> > 
> > If I understand this right, \setupcombinedlist[content][level=section]
> > tells ConTeXt to list up to section level when doing \completecontent.
> > But it seems no matter what I set for `level', \completecontent lists
> > however deeply it can.
> 
> This option is gone in MkIV, the alternative is to use
> 
> \starttext
> 
> \title{Contents}
> 
> \placelist[chapter,section,...]

I see.  That explains.  Thank you very much!

-- 
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.
___
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] modify resume

2010-09-19 Thread pol stra

Hi all,

I like the result of the t-resume module, but i think it waste space so it is 
possible to modify layout ?
I can’t make a two lines title  (if too long overwrite adress field).
I don’t want page numbering.

The fact is i don’t know how module works and how to «fork» it for my own use.

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


[NTG-context] Super Wolfgang !

2010-09-19 Thread luigi scarso
http://meeting.contextgarden.net/2010/talks/2010-09-17-closing/wolfgang-color.jpg

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

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


Re: [NTG-context] modify resume

2010-09-19 Thread Wolfgang Schuster

Am 19.09.2010 um 22:29 schrieb pol stra:

> Hi all,
> 
> I like the result of the t-resume module, but i think it waste space so it is 
> possible to modify layout ?
> I can’t make a two lines title  (if too long overwrite adress field).
> I don’t want page numbering.
> 
> The fact is i don’t know how module works and how to «fork» it for my own use.

The moderncv style is not very easy to modify but here is another
implementation (not from me) for ConTeXt which is easier to change.

http://pastie.org/1091180
http://pastie.org/1091177

You can ask the author of he is willing to put the module on the garden.

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] Super Wolfgang !

2010-09-19 Thread Vedran Miletić
2010/9/19 luigi scarso :
> http://meeting.contextgarden.net/2010/talks/2010-09-17-closing/wolfgang-color.jpg

Awesome! :D

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


[NTG-context] luatex-plain can not work with the beta (2010.09.18 12:08, linux x86)

2010-09-19 Thread 李延瑞
Hi Hans,

It can load cid fonts rightly now. But I found it can not generate
MetaPost figure.

For example,

%filename: test.tex

\setmplibformat{plain}
\mplibcode
beginfig(1);
draw fullcircle scaled 10cm withcolor red withpen pencircle;
endfig;
\endmplibcode
\end

luatex output the log:

This is LuaTeX, Version beta-0.63.0-2010091123  (format=luatex-plain
2010.9.20)  20 SEP 2010 08:20
 \write18 enabled.
**test
(./test.tex 
(/opt/context/tex/texmf-context/tex/generic/context/luatex-basics.tex
\lastallocatedattribute=\count26
) (/opt/context/tex/texmf-context/tex/generic/context/luatex-fonts.tex
(using
cache: /opt/context/tex/texmf-cache/luatex-cache/generic)
!
! Attribute 0 is reserved for ConTeXt's font feature management and has to be
! set to zero. Also, some attributes in the range 1-255 are used for special
! purposed so setting them at the TeX end might break the font handler.
!

I am using the merged version of 'luatex-fonts.lua' here. If
you run into problems or experience unexpected behaviour, and
if you have ConTeXt installed you can try to delete the file
'luatex-font-merged.lua' as I might then use the possibly
updated libr
aries. The merged version is not supported as it
is a frozen instance.

 )
(/opt/context/tex/texmf-context/tex/generic/context/luatex-mplib.tex
\mplibscratchbox=\box16
)> $Id
! Isolated expression.

   :
l.1  $Id:
  plain.mp,v 1.3 2005/04/28 06:45:21 taco Exp $
! Extra tokens will be fl
ushed.

   :
l.1  $Id:
  plain.mp,v 1.3 2005/04/28 06:45:21 taco Exp $
>> base_name
>> "plain"
! Equation cannot be performed (numeric=string).

   ;
l.8 ...base_name, base_vers
ion; base_name="plain";
   base_version="1.004";
>> base_version
>> "1.004"
! Equation cannot be performed (numeric=string).

   ;
l.8 ...n; base_name="plain"; base_version
="1.004";

>> "Preloading the plain mem file, version "
>> base_version
! Not implemented: (string)&(unknown numeric).

   ;
l.10 ...he plain mem file, version "&base_ver
sion;

>> base_version
! Not a string.

   ;
l.10 ...he plain mem file, version "&base_version;

)
! Attempt to close th
e bottom level file!.
l.576 defaultpen := savepen;



no-error> )
No pages of output.
PDF statistics: 0 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 1 (max. 1000)

-- 
Best regards,

Li Yanrui (李延瑞)
___
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] modify resume

2010-09-19 Thread Henning Hraban Ramm
2010/9/19 Wolfgang Schuster :
> http://pastie.org/1091180
> http://pastie.org/1091177

Regarding the second one:
MVS (marvosym) symbols are included in the distribution and accessable
via \usesymbols[mvs], see http://wiki.contextgarden.net/Symbols

(Didn't check if the code makes sense otherwise.)

Greetlings, Hraban
___
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] Metapost and underscore

2010-09-19 Thread Aditya Mahajan

Hi,

Really bad things happen if the variable name in metapost contains an 
underscore. It took me quite a while to isolate this problem.


Minimal example:

\startMPinclusions
  input rboxes ;
\stopMPinclusions

\starttext
\startMPpage
  rboxit.A (textext("A")) ;
  rboxit.B_1 (textext("B")) ;
  rboxit.C (textext("C")) ;

  A.c = origin ;

  xpart B_1.c = xpart C.c = xpart A.c + 3cm ;
  ypart B_1.s - ypart C.n = 1cm ;

  drawboxed(A,B_1,C) ;
\stopMPpage

\startMPpage
  rboxit.A (textext("A")) ;
  rboxit.B (textext("B")) ;
  rboxit.C (textext("C")) ;

  A.c = origin ;

  xpart B.c = xpart C.c = xpart A.c + 3cm ;
  ypart B.s - ypart C.n = 1cm ;

  drawboxed(A,B,C) ;
\stopMPpage
\stoptext


See attached output. The label of box B is placed at origin rather than at 
the correct location!


I am using  2010.08.17 and luatex 0.61 (too close to a deadline to 
update).


Aditya


test.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Metapost and underscore

2010-09-19 Thread Aditya Mahajan

On Mon, 20 Sep 2010, Aditya Mahajan wrote:


Hi,

Really bad things happen if the variable name in metapost contains an 
underscore. It took me quite a while to isolate this problem.


This is getting weirder. The bug is triggered even for the following 
example:


\startMPpage
  rboxit.A (textext("A")) ;
  rboxit.B1 (textext("B")) ;
  rboxit.B2 (textext("C")) ;

  A.c = origin ;

  xpart B1.c = xpart B2.c = xpart A.c + 3cm ;
  ypart B1.s - ypart B2.n = 1cm ;

  drawboxed(A,B1,B2) ;
\stopMPpage

but disappears if I replace B1 with Ba and B2 with Bb!

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
___


[NTG-context] Problem with Schusters letter package

2010-09-19 Thread Rolf Lindgren
I think I've managed to set ConTeXt to mkiv, things proceed relatively 
smoothly, and from the log file, it appears that the right files are read. I'm 
using the most recent version of Schusters's letter package.

When compiling the example letter, the following error occurs:

! Undefined control sequence.
 \lsoptionmethod 
   

the macro in question seems to appear in default.nli but is not defined 
anywhere.

Any and all help appreciated. 

Thank you,
-- 
Rolf Marvin Bøe Lindgren
http://www.grendel.no/
http://www.elvetun.no/
+47 40061755

___
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] Metapost and underscore

2010-09-19 Thread Taco Hoekwater

On 09/20/2010 08:34 AM, Aditya Mahajan wrote:

Hi,

Really bad things happen if the variable name in metapost contains an
underscore. It took me quite a while to isolate this problem.


The metapost string comparisons were broken until luatex 0.63.

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

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