[NTG-context] Problem with location=left (at least) of setlayer

2012-01-18 Thread Cedric Mauclair
Hi Hans, hi list,


The following example shouts at me (something about
\syst_boxes_with_next_box, \pack_layers... and a bunch of other
stuff) if I uncomment the location=left part (right and others are
fine):

% Example below
\definelayer[page][x=0pt, y=0pt]
\setupbackgrounds [page] [background=page]

\starttext
  %% \setlayer[page][location=left]{It doesn't work}
  \setlayer[page][location=rightbottom]{It works!}

  \input knuth
\stoptext


Best regards.

-- Cédric
___
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] dejavu math fallback?

2011-06-16 Thread Cedric Mauclair
Hi list,

On Thu, Jun 16, 2011 at 11:16, Reviczky, Adam adam.revic...@kcl.ac.uk wrote:
 xits is part of the minimals

 It is certainly on contextgarden:
 http://minimals.contextgarden.net/current/fonts/extra/xits/fonts/opentype/public/xits/

 But I don't think it comes with the minimals.

 I just did a fresh minimals setup and it gives me the same:
 ! Math error: parameter \Umathquad\displaystyle is not set.

 along with lines like:
 fonts            defining  forced type otf of xits-math not found

 I also can't find the otf files in the minimals setup (bin, tex).
 I hope it's not just me ...

It's not. Is there a simple/smart way to add these to the minimals, in
texmf-local maybe ?


-- Cédric


 Adam
 ___
 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] règles typographiques

2011-06-16 Thread Cedric Mauclair
2011/6/16 Wolfgang Schuster schuster.wolfg...@googlemail.com:

 Am 16.06.2011 um 14:51 schrieb Steffen Wolfrum:

 Hi,

 I just came across this compilation:
 http://unicode.org/udhr/n/notes_fra.html

 Is this (exactly) what is implemented in ConTeXT with 
 \setcharacterspacing[frenchpunctuation] ?

 Yes but context adds before the colon only a small space and not a word space.

How could one modify that?

Thanks.

-- Cédric


 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] règles typographiques

2011-06-16 Thread Cedric Mauclair
2011/6/16 Wolfgang Schuster schuster.wolfg...@googlemail.com:

 Am 16.06.2011 um 18:14 schrieb Cedric Mauclair:

 Yes but context adds before the colon only a small space and not a word 
 space.

 How could one modify that?

 \setupcharacterspacing [frenchpunctuation] [003A] [left=1] % default: 
 left=.25
Nice!

-- Cédric

 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] Getting arguments by Lua

2011-06-09 Thread Cedric Mauclair
Hello,

I think the tables document.arguments and documents.files might also
be of interest.

Regards.

-- Cédric



2011/6/9 Taco Hoekwater t...@elvenkind.com:


 On 06/09/11 13:41, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
 Hello,

 when I run context by e.g.:

 context.exe Source.mkiv --result=Result.pdf --mode=Mode

 is it possible to access the command line arguments from Lua?

 the 'environment' table has information about this stuff.

 In particular, environment.rawarguments matches the table
 that lua calls 'arg'.

 \directlua{print (table.serialize(environment.rawarguments))}


 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
 ___

___
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] Simplefonts, latest beta and binoms

2011-05-23 Thread Cedric Mauclair
Hi list,


I have some troubles with the simplefonts module. The following worked
fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but
doesn't anymore (2011.05.18 22:26).

Minimal example reproduced here. Whatever font I try, the output of
the parentheses is the same. Setting the math font doesn't help
either.

\usemodule[simplefonts]
\setmainfont[Calluna]% could be Latin Modern Roman
%\setmathfont[Latin Modern Math]% as in t-simplefonts.tex

\starttext
  \startformula
\binom{1}{2}
  \stopformula
\stoptext


Regards.

-- Cédric


simplefonts-error.tex
Description: TeX document


simplefonts-error.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] Simplefonts, latest beta and binoms

2011-05-23 Thread Cedric Mauclair
Thanks, but I am afraid I get the same result with your example.

-- Cédric



On Mon, May 23, 2011 at 12:31, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:

 Hi list,

 I have some troubles with the simplefonts module. The following worked
 fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but
 doesn't anymore (2011.05.18 22:26).


 It’s the fault of the OpenType version of the LM Math fonts which
 are used when you use the simplefonts module:

 \definetypeface[mainface][rm][serif][modern]
 \definetypeface[mainface][mm][math] [modern]

 \setupbodyfont[mainface]

 \starttext
  \startformula
   \binom{1}{2}
  \stopformula
 \stoptext

 Wolfgang

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

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

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

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

Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-23 Thread Cedric Mauclair
I did the following (just in case):
  export DOFONTDIR=
  mtxrun --script font --reload
  context simplefonts-error.tex

The file simplefonts-error.tex is just what Wolfgang suggested:
  \definetypeface[mainface][rm][serif][modern]
  \definetypeface[mainface][mm][math] [modern]

  \setupbodyfont[mainface]

  \starttext
  \startformula
   \binom{1}{2}
  \stopformula
  \stoptext

After perusing the log file, here are the font files that are loaded:
/DATA/context-minimals/tex/texmf/fonts/opentype/public/lm/lmmath.otf
/DATA/context-minimals/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf.

I really wish to use Calluna with Latin/Computer Modern math because I
find palatino too narrow.


PS: if I should send files in private mails only, just tell me.

-- Cédric



On Mon, May 23, 2011 at 15:20, Aditya Mahajan adit...@umich.edu wrote:
 On Mon, 23 May 2011, Wolfgang Schuster wrote:


 Am 23.05.2011 um 12:13 schrieb Cedric Mauclair:

 Hi list,

 I have some troubles with the simplefonts module. The following worked
 fine before (2011.02.25 22:03, need to add '\usemodule[newmat]'), but
 doesn't anymore (2011.05.18 22:26).


 It’s the fault of the OpenType version of the LM Math fonts which
 are used when you use the simplefonts module:

 \definetypeface[mainface][rm][serif][modern]
 \definetypeface[mainface][mm][math] [modern]

 \setupbodyfont[mainface]

 \starttext
 \startformula
  \binom{1}{2}
 \stopformula
 \stoptext

 If I don't use any font setup, then the result is correct. Isn't opentype
 math setup used in both cases?

 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
 ___



simplefonts-error.pdf
Description: Adobe PDF document


simplefonts-error.log
Description: Binary data


simplefonts-error.tex
Description: TeX 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] Simplefonts, latest beta and binoms

2011-05-23 Thread Cedric Mauclair
Thanks for your help. I'll go with palatino for now.

-- Cédric



On Mon, May 23, 2011 at 15:52, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 23.05.2011 um 15:33 schrieb Cedric Mauclair:

 I really wish to use Calluna with Latin/Computer Modern math because I
 find palatino too narrow.

 It is too narrow compared with Calluna but it is at least a better match
 than Latin Modern but it’s possible the small braces are a bug in ConTeXt
 or LuaTeX because it does only appear with OpenType math fonts:

 Input:

 \usemodule[simplefonts]

 \setmainfont[Calluna]

 \startbuffer[example]
 \input ward\par
 \startformula
 c^2=a^2+b^2 \quad \binom{1}{2}
 \stopformula
 \stopbuffer

 \starttext

 \getbuffer[example]

 \setmathfont[palatino]\getbuffer[example]

 \setmathfont[euler]\getbuffer[example]

 \setmathfont[times]\getbuffer[example]

 \setmathfont[cambria]\getbuffer[example]

 \stoptext

 Output: http://d.pr/hKl1

 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] \cdots not displayed in latest beta

2011-04-20 Thread Cedric Mauclair
Hi,

Still missing in beta from 2011-04-20 15:05:01.

Regards.

-- Cédric



On Sun, Apr 17, 2011 at 01:09, Mathieu Boespflug 0xbadc...@gmail.com wrote:
 Hi,

 in the latest beta (211.04.13), the cdots in the following, display as a 
 blank:

 \starttext
 foo $x \cdots y$ bar.
 \stoptext

 ldots, however, work fine.

 Regards,

 Mathieu
 ___
 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] Switchting between betas

2011-02-20 Thread Cedric Mauclair
On Sun, Feb 20, 2011 at 23:07, Hans Hagen pra...@wxs.nl wrote:
 On 20-2-2011 9:37, Michael Goerz wrote:

 More generally, is there a way to switch to the beta version of a
 specific date? Considering that new betas might break the compilation
 of existing documents, there would have to be a way for me to tell
 people compile this document with version  -- even if it's just a
 specific revision number. Otherwise, there wouldn't be any reproducible
 way of compiling documents.

 you can have trees like

 /context-1/...
 /context-2/...
 /context-3/...

 and initialize them on demand or run with

 mtxrun --tree=/context-2 --script context  .

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


Nice! I believe one has to take care of its PATH on his own or does
the context script takes care of that too?

Regards.

-- Cédric
___
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] Stretching chapter titles - MKII

2011-02-16 Thread Cedric Mauclair
On Wed, Feb 16, 2011 at 15:06, Tom t...@tuxedo-press.com wrote:
 I tried to execute MKIV by typing in context hello.tex and got an error
 message. Apparently something else needs to be installed.

 MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

Seems like there are some TEXMF... defined. Try to unset them (in bash
'unset TEXMFLOCAL' for example). Well, this solved the same issue the
other day.

-- Cédric


 What major changes to my documents will I likely need to make to shift to
 MKIV?

 Tom Benjey
 717-258-9733 voice
 717-243-0074 fax
 blog: www.TomBenjey.com




 -Original Message-
 Am 15.02.2011 um 01:45 schrieb Tom:


 Follows is some code that executes. The lines immediately following
 \starttext create a sample of the desired output format. However, I want
 to
 accomplish similar results for chapter titles via the passing of arguments
 containing the chapter title and number. Numerous attempts at that have
 resulted in abject failure. I am clearly missing something.

 Can't you use MkIV, it has better support for tracking?

 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] conditional evaluation and section names

2011-02-15 Thread Cedric Mauclair
On Wed, Feb 16, 2011 at 05:52, Daniel Lyons fus...@storytotell.org wrote:

 On Feb 15, 2011, at 12:05 PM, Wolfgang Schuster wrote:

 \doiftextelse{\getmarking[sectionnumber]}
  {§ \getmarking[sectionnumber]}
  {\unknown}


 I assume there are other helpful functions like this that aren't documented 
 on the wiki (such as \DropCap). Is there a place where these things are 
 documented that I should be looking? Or a particular piece of source code I 
 should read to get acquainted with these sorts of library functions?

You definitely need to check syst-aux.mkiv.


Regards.

-- Cédric


 Thanks again,

 —
 Daniel Lyons

 ___
 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] Bug in letter module.

2011-02-07 Thread Cedric Mauclair
On Mon, Feb 7, 2011 at 09:46, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 07.02.2011 um 09:11 schrieb Cedric Mauclair:

 Hi Wolfgang, hi everyone,

 Using the beta from saturday (but it bugged before too, don't know the
 date though), the letter module fails with ! You can't use `\dimexpr'
 in horizontal mode. when using the french letter style. Minimal
 example included and reproduced below. (At some point, it also
 complained that ExpandSecondAfter didn't exist in MkIV (which it
 doesn't indeed).)

 Fixed.

 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
 ___


That was quick, thanks. I will test it tonight.

-- Cédric
___
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] continious entries in table of contents?

2011-01-16 Thread Cedric Mauclair
Hi,

Try adding alternative=d in the options of subsubsection.

Best regards.

-- Cédric



2011/1/17 Oliver Heins o...@sopos.org:
 Is it possible to set up the table of contents in a way that entries of
 some level get typeset continiously?  I want the entries of the
 subsubsection level (level 4) to appear in a single block, not as
 individual lines:

 [...]
 3 Das Autobiografische in den Filmen der Nouvelle Vague
  3.1 Film als Kunstwerk 61
  3.1.1 Das Autorenkino 61
  3.2 Autobiografie als Kunstwerk 68
  3.2.1 Autobiografie-Theorie in Frankreich und Deutschland im
         historischen Vergleich 81
    Frankreich 81  Exkurs: Existenziell reflektierende Autobiografie 83
    Deutschland 94
  3.2.2  Das Autor-Subjekt: Nouvelle Vague – Nouveau Roman 87
  3.3  Film und Autobiografie werden Kunst  96
 [...]

 This is my code so far, which works fine except the consecutive lines:

 \setupcombinedlist[content][level=4,alternative=a,distance=1em,
  pagecommand={\hskip1em }]
 \setuplist[chapter][width=0mm,style=\sc,pagestyle=normal]
 \setuplist[section][width=0mm,margin=1em]
 \setuplist[subsection][width=0mm,margin=2em]
 \setuplist[subsubsection][width=0mm,style=slanted,
        pagestyle=normal,margin=3em]

 TIA,
  olli

 --
 Oliver Heins he...@sopos.org  http://www.sopos.org/olli
 GPG: F27A BA8C 1CFB B905 65A8  2544 0F07 B675 9A00 D827
 1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
 Please avoid sending me Word or PowerPoint attachments:
 http://www.gnu.org/philosophy/no-word-attachments.html
 ___
 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] How to get numbered cases'ed equations ?

2011-01-04 Thread Cedric Mauclair
On Mon, Jan 3, 2011 at 16:00, Cedric Mauclair cedric.maucl...@gmail.com wrote:
 Hi,

 Maybe someone had the same problem, no ?

 Best regards.

 -- Cédric



 On Tue, Dec 21, 2010 at 09:19, Cedric Mauclair
 cedric.maucl...@gmail.com wrote:
 On Mon, Dec 20, 2010 at 16:45, Cedric Mauclair
 cedric.maucl...@gmail.com wrote:
 Hi list,

 How can I get a numbered equation when using cases in MkIV? The hack
 proposed by Aditya in [1] doesn't work as it uses macros that no
 longer exist (\makesesctionnumber and others). The reference doesn't
 even get recorded. I precise that I don't want (well, don't need) the
 sub numbering per-line, just a regular number would do.

 Minimal example:

 \starttext

 My equation \in[eq:equation] and my other equation \in[eq:other-equation].

 \placeformula[eq:equation]
 \startformula
  E = mc^2
 \stopformula

 \placeformula[eq:equation]
 Typo \placeformula[eq:other-equation]. Still doesn't work.
 \startformula
  \startcases
    \NC E = mc^2 \NC some text\NR
    \NC E = mc^2 \NC some more text\NR
  \stopcases
 \stopformula

 \stoptext


 Thanks.


 [1] http://dl.contextgarden.net/myway/mathalign.pdf

 -- Cédric




I am pretty sure there is a better way to do it, but adding
\handleplaceformulanumbering after \stopcases works.

Regards.

-- Cédric
___
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 get numbered cases'ed equations ?

2011-01-03 Thread Cedric Mauclair
Hi,

Maybe someone had the same problem, no ?

Best regards.

-- Cédric



On Tue, Dec 21, 2010 at 09:19, Cedric Mauclair
cedric.maucl...@gmail.com wrote:
 On Mon, Dec 20, 2010 at 16:45, Cedric Mauclair
 cedric.maucl...@gmail.com wrote:
 Hi list,

 How can I get a numbered equation when using cases in MkIV? The hack
 proposed by Aditya in [1] doesn't work as it uses macros that no
 longer exist (\makesesctionnumber and others). The reference doesn't
 even get recorded. I precise that I don't want (well, don't need) the
 sub numbering per-line, just a regular number would do.

 Minimal example:

 \starttext

 My equation \in[eq:equation] and my other equation \in[eq:other-equation].

 \placeformula[eq:equation]
 \startformula
  E = mc^2
 \stopformula

 \placeformula[eq:equation]
 Typo \placeformula[eq:other-equation]. Still doesn't work.
 \startformula
  \startcases
    \NC E = mc^2 \NC some text\NR
    \NC E = mc^2 \NC some more text\NR
  \stopcases
 \stopformula

 \stoptext


 Thanks.


 [1] http://dl.contextgarden.net/myway/mathalign.pdf

 -- Cédric


___
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 get numbered cases'ed equations ?

2010-12-21 Thread Cedric Mauclair
On Mon, Dec 20, 2010 at 16:45, Cedric Mauclair
cedric.maucl...@gmail.com wrote:
 Hi list,

 How can I get a numbered equation when using cases in MkIV? The hack
 proposed by Aditya in [1] doesn't work as it uses macros that no
 longer exist (\makesesctionnumber and others). The reference doesn't
 even get recorded. I precise that I don't want (well, don't need) the
 sub numbering per-line, just a regular number would do.

 Minimal example:

 \starttext

 My equation \in[eq:equation] and my other equation \in[eq:other-equation].

 \placeformula[eq:equation]
 \startformula
  E = mc^2
 \stopformula

 \placeformula[eq:equation]
Typo \placeformula[eq:other-equation]. Still doesn't work.
 \startformula
  \startcases
    \NC E = mc^2 \NC some text\NR
    \NC E = mc^2 \NC some more text\NR
  \stopcases
 \stopformula

 \stoptext


 Thanks.


 [1] http://dl.contextgarden.net/myway/mathalign.pdf

 -- Cédric

___
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 get numbered cases'ed equations ?

2010-12-20 Thread Cedric Mauclair
Hi list,

How can I get a numbered equation when using cases in MkIV? The hack
proposed by Aditya in [1] doesn't work as it uses macros that no
longer exist (\makesesctionnumber and others). The reference doesn't
even get recorded. I precise that I don't want (well, don't need) the
sub numbering per-line, just a regular number would do.

Minimal example:

\starttext

My equation \in[eq:equation] and my other equation \in[eq:other-equation].

\placeformula[eq:equation]
\startformula
  E = mc^2
\stopformula

\placeformula[eq:equation]
\startformula
  \startcases
\NC E = mc^2 \NC some text\NR
\NC E = mc^2 \NC some more text\NR
  \stopcases
\stopformula

\stoptext


Thanks.


[1] http://dl.contextgarden.net/myway/mathalign.pdf

-- Cédric
___
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] Bug or feature in list and error with setuptructure?

2010-11-30 Thread Cedric Mauclair
Hi list,


I am using the following code with a recent beta (last week):

  \setuplist[subsection][numberstopper=, right=), style=\slanted]

and the ')' is not slanted. However, it is the following:

  \setuplist[subsection][numberstopper=), style=\slanted]

So, bug or feature?


Also, \setupstructure[state=start] causes the compilation to stop
after lpdf-pdx.xml.

Minimal example :
% \setupstructure[state=start]% doesn't work (lpdf-pdx.xml)

\starttext

\startitemize[n]
\item one
\item two
\item three
\item four
\item five
\stopitemize

\stoptext

In a my thesis, I got some other errors, please see attached file. I
am sorry I could not track down the bug in my setup, but with the
minimal example, something is already going wrong.

Regards.

-- Cédric
! LuaTeX error ...text/tex/texmf-context/tex/context/base/lpdf-nod.lua:34: You 
can't assign to this whatsit node (1)

stack traceback:
[C]: ?
...text/tex/texmf-context/tex/context/base/lpdf-nod.lua:34: in function 
'pdfliteral'
...text/tex/texmf-context/tex/context/base/lpdf-tag.lua:197: in 
function 'makecontent'
...text/tex/texmf-context/tex/context/base/lpdf-tag.lua:286: in 
function 'structures_tags_handler'
local nodes_references_handler = nodes.references.ha...:11: in 
function local nodes_references_handler = nodes.references.ha...:7
(tail call): ?
(tail call): ?
main ctx instance:1: in main chunk.
\finalizeshipoutbox ...alize(tex.box[\number #1])}
  
\actualshipout ...zeshipoutbox \shipoutscratchbox 
  \setbox \scratchbox \hbox ...
\myshipout ...\@@ppmethod }\gobbleoneargument {#1}
  \setnextrealpageno \afters...
\dofinaloutput ...hbox {\vbox {\dopagebody #1#2}}}
  \the \everyaftershipout \a...
\finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2
  \resetselectiepagina \doin...
\sidefloatoutput ...e \else \finalsidefloatoutput 
  \global \sidefloatvsize \n...
...
l.119   \stopitemize

! I can't go on meeting you like this.
\actualshipout ...t \fi \box \shipoutscratchbox }}
  \endgroup \else \message {...
\myshipout ...\@@ppmethod }\gobbleoneargument {#1}
  \setnextrealpageno \afters...
\dofinaloutput ...hbox {\vbox {\dopagebody #1#2}}}
  \the \everyaftershipout \a...
\finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2
  \resetselectiepagina \doin...
\sidefloatoutput ...e \else \finalsidefloatoutput 
  \global \sidefloatvsize \n...
\invokenormaloutputroutine ...\OTRcommand \output 
  \fi 
...
l.119   \stopitemize

!  == Fatal error occurred, no output PDF file produced!
MTXrun | fatal error: return code: 1make: *** [phd-thesis-memoir.pdf] Erreur 1

___
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] ConText, TikZ and definecolor: undefined control sequence

2010-10-28 Thread Cedric Mauclair
On Wed, Oct 27, 2010 at 22:08, Michael Murphy michael.mur...@uni-ulm.de wrote:
 On 27/10/2010 19:18, Marius wrote:

 Hello,
 I had the same problem, so I desided to define colors by hand.

 \definecolor [lightgray] [h=D3D3D3]

 \usemodule[tikz]

 \unprotect
 \pgfu...@definecolor{black}{gray}{0}
 \pgfu...@definecolor{gray}{gray}{0.5}
 \pgfu...@definecolor{lightgray}{gray}{0.9}
 \pgfu...@definecolor{white}{gray}{1}
 \protect

 Yes, this is what I've resorted to. But it would be nice to define things
 properly.

 If you want to fix script, you need to change line:

 local cv = colors.value(attributes)
The table colors is expected to have a function named value that
take the attributes parameter as its sole parameter itself. It then
assigns the result to the local variable cv. After some research,
adding  local colors = global.attributes.colors below the line
local prtcatcodes = tex.prtcatcodes works. There is a catch however,
you can't use opacity on these colors. I suppose we have to generate
all the transparency level by using spot colors or something like
that.

However, I still need to
add\let\appendtoPDFdocumentcolorspaces\gobbleoneargument
\let\appendtoPDFdocumentextgstates\gobbleoneargument and
\let\PDFcolor\gobbleoneargument before loading the TikZ module in
order for my documents to build without errors. These macros used to
be defined in mkii (spec-fdf.mkii) and TikZ relies on them
(tex/generic/pgf/utilities/pgfutil-context.def) but not anymore in
mkiv since the color support has changed between mkii and mkiv. I
suppose they had to do with the color support for PDF files, but
letting them gobble their argument still seems to work. On what side
should this problem be looked into: ConTeXt or TikZ?

Regards.

-- Cédric


 into

 local cv = attributes.colors.values

 Just guess, untested.

 Nope, doesn't work. Using

 local colors = colors or { }

 gets me a little further, but then complains that 'value' is a nil value. I
 don't know enough Lua to fix this either. Strangely, it seems to work on
 some older MkIV versions of ConTeXt...

 Michael.
 ___
 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] ConText, TikZ and definecolor: undefined control sequence

2010-10-28 Thread Cedric Mauclair
Actually, the opacity works great!

-- Cédric



On Thu, Oct 28, 2010 at 09:54, Cedric Mauclair
cedric.maucl...@gmail.com wrote:
 On Wed, Oct 27, 2010 at 22:08, Michael Murphy michael.mur...@uni-ulm.de 
 wrote:
 On 27/10/2010 19:18, Marius wrote:

 Hello,
 I had the same problem, so I desided to define colors by hand.

 \definecolor [lightgray] [h=D3D3D3]

 \usemodule[tikz]

 \unprotect
 \pgfu...@definecolor{black}{gray}{0}
 \pgfu...@definecolor{gray}{gray}{0.5}
 \pgfu...@definecolor{lightgray}{gray}{0.9}
 \pgfu...@definecolor{white}{gray}{1}
 \protect

 Yes, this is what I've resorted to. But it would be nice to define things
 properly.

 If you want to fix script, you need to change line:

 local cv = colors.value(attributes)
 The table colors is expected to have a function named value that
 take the attributes parameter as its sole parameter itself. It then
 assigns the result to the local variable cv. After some research,
 adding  local colors = global.attributes.colors below the line
 local prtcatcodes = tex.prtcatcodes works. There is a catch however,
 you can't use opacity on these colors. I suppose we have to generate
 all the transparency level by using spot colors or something like
 that.

 However, I still need to
 add\let\appendtoPDFdocumentcolorspaces\gobbleoneargument
 \let\appendtoPDFdocumentextgstates\gobbleoneargument and
 \let\PDFcolor\gobbleoneargument before loading the TikZ module in
 order for my documents to build without errors. These macros used to
 be defined in mkii (spec-fdf.mkii) and TikZ relies on them
 (tex/generic/pgf/utilities/pgfutil-context.def) but not anymore in
 mkiv since the color support has changed between mkii and mkiv. I
 suppose they had to do with the color support for PDF files, but
 letting them gobble their argument still seems to work. On what side
 should this problem be looked into: ConTeXt or TikZ?

 Regards.

 -- Cédric


 into

 local cv = attributes.colors.values

 Just guess, untested.

 Nope, doesn't work. Using

 local colors = colors or { }

 gets me a little further, but then complains that 'value' is a nil value. I
 don't know enough Lua to fix this either. Strangely, it seems to work on
 some older MkIV versions of ConTeXt...

 Michael.
 ___
 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] ConText, TikZ and definecolor: undefined control sequence

2010-10-28 Thread Cedric Mauclair
Sadly no. I once tried to modify it to make it work and I ended up
with what I proposed. Not very nice, but worked for me.

Thanks for your solution.

-- Cédric



On Thu, Oct 28, 2010 at 13:46, Hans Hagen pra...@wxs.nl wrote:

 \ifdefined\PDFcolor \else

  \ctxlua{function lpdf.pdfcolor(attribute) context(lpdf.color(1,attribute))
 end}

  \def\PDFcolor#1{\ctxlua{lpdf.pdfcolor(\thecolorattribute{#1})}}

 \fi

___
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] ConText, TikZ and definecolor: undefined control sequence

2010-10-27 Thread Cedric Mauclair
Hi,

Same problem here with the latest TikZ 2.10.

Regards.

-- Cédric



On Tue, Oct 26, 2010 at 12:20, Michael Murphy michael.mur...@uni-ulm.de wrote:
 Hi,

 I've been trying to get colors to work in TikZ, and found a nice fix by
 Aditya here:

 http://archive.contextgarden.net/message/20100120.220124.f2d3f8bc.en.html

 The problem is that the lua script doesn't work: I get a problem with
 'colors'.

 LuaTeX error main ctx instance:13: attempt to index global 'colors' (a
 nil value)
 stack traceback:
        main ctx instance:13: in function 'registercolor'
        main ctx instance:1: in main chunk.

 The input file from Aditya (called colorfix.tex) is

 \startluacode
  pgfutil = pgfutil or { }
  local texsprint, format = tex.sprint, string.format
  local prtcatcodes = tex.prtcatcodes

  function pgfutil.unsupported_color(name)
    texsprint(prtcatcodes,format(\\PackageError{pgf}{color %s has
 unsupported model}{}, name))
    texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{gray}{0},
 name))
  end

  function pgfutil.registercolor(name, attributes)
    print(name, attributes)
    local cv = colors.value(attributes)
    if cv then
      local model = cv[1]
      if model == 1 then
        print(model=1)
        texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{gray}{%
 1.3f}, name, cv[2]))
      elseif model == 3 then
        print(model=2)
        texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{rgb}{%
 1.3f,%1.3f,%1.3f}, name, cv[3], cv[4], cv[5]))
      else
        print(no model)
        pgfutil.unsupported_color(name)
      end
    else
        print(no color)
        pgfutil.unsupported_color(name)
    end
  end
 \stopluacode

 \unprotect
 \def\pgfu...@registercolor#1%
  {\ctxlua{pgfutil.registercolor(#1,\thecolorattribute       {#1})}}
 \protect

 and my test file is

 \usemodule[tikz]
 \input colorfix

 \definecolor[mycolor][r=1,g=0,b=1]

 \starttext
 \starttikzpicture
 \fill[mycolor] (0,0) circle (1);
 \stoptikzpicture
 \stoptext

 I'm running the latest beta.

 ___
 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] Caption textcommand option

2010-10-20 Thread Cedric Mauclair
Works for me. Thanks.

-- Cédric



On Tue, Oct 19, 2010 at 22:46, Alan BRASLAU alan.bras...@cea.fr wrote:
 On Tuesday 19 October 2010 20:15:37 Wolfgang Schuster wrote:

 but it’s possible to get the desired result also with a selector, e.g.


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

 \startsetups select:caption
 \setupselector[caption][n=1]
 \stopsetups

 \setupcaptions[setups=select:caption]

 \starttext

 This is some text with a reference to a table named \about[tab:table].

 \placetable[here][tab:table]{\select{caption}{My caption.}{My
 caption}}{...}

 \stoptext
 /example


 I sytematically use the selector mechanism for short caption/full caption,
 the short caption gets used for the list of figures and list of tables.
  \setupselector [caption] [n=1]
  \placelistoffigures [criterium=all]

 Alan
 ___
 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] Caption textcommand option

2010-10-19 Thread Cedric Mauclair
Hi Hans and all,

Would it be possible to add an options to the captions with name
textcommand to typeset the caption text only. In French, we use a
point at the end of the captions, but if I want to use \about...
somewhere, I end up with the dot too, which I don't want.

Currently I have changed, rather crudely, the definition of
\putcompletecaption... to take that into account. Here is what I came
up with.

\def\DotAtEnd#1{#1.}
\setupcaptions[\c!textcommand=\DotAtEnd] % ADDED

\long\def\putcompletecaption
 ...
   \begstrut\floatcaptionparameter\c!textcommand{#2}\endstrut\endgraf
% MODIFIED
 \fi
   \endgroup
  %\floatcaptionparameter\c!after % test for side effects first
   
\doifsomething{\floatcaptionparameter\c!spaceafter}{\blank[\floatcaptionparameter\c!spaceafter]}}
%% END YUCK!!

I am sure there is a better way though.

Regards.

-- Cédric
___
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] Caption textcommand option

2010-10-19 Thread Cedric Mauclair
Sorry, the message was not over.

I was hilighting the interesting part :

\def\DotAtEnd#1{#1.}
\setupcaptions[\c!textcommand=\DotAtEnd] % ADDED

\long\def\putcompletecaption#1#2%
  ...
  \begstrut\floatcaptionparameter\c!textcommand{#2}\endstrut\endgraf
  ...


-- Cédric



On Tue, Oct 19, 2010 at 14:24, Cedric Mauclair
cedric.maucl...@gmail.com wrote:
 Hi Hans and all,

 Would it be possible to add an options to the captions with name
 textcommand to typeset the caption text only. In French, we use a
 point at the end of the captions, but if I want to use \about...
 somewhere, I end up with the dot too, which I don't want.

 Currently I have changed, rather crudely, the definition of
 \putcompletecaption... to take that into account. Here is what I came
 up with.

 \def\DotAtEnd#1{#1.}
 \setupcaptions[\c!textcommand=\DotAtEnd] % ADDED

 \long\def\putcompletecaption
  ...
       \begstrut\floatcaptionparameter\c!textcommand{#2}\endstrut\endgraf
 % MODIFIED
     \fi
   \endgroup
  %\floatcaptionparameter\c!after % test for side effects first
   
 \doifsomething{\floatcaptionparameter\c!spaceafter}{\blank[\floatcaptionparameter\c!spaceafter]}}
 %% END YUCK!!

 I am sure there is a better way though.

 Regards.

 -- Cédric

___
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] Caption textcommand option

2010-10-19 Thread Cedric Mauclair
On Tue, Oct 19, 2010 at 14:46, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 19.10.2010 um 14:24 schrieb Cedric Mauclair:

 Hi Hans and all,

 Would it be possible to add an options to the captions with name
 textcommand to typeset the caption text only. In French, we use a
 point at the end of the captions, but if I want to use \about...
 somewhere, I end up with the dot too, which I don't want.

 Currently I have changed, rather crudely, the definition of
 \putcompletecaption... to take that into account. Here is what I came
 up with.

 Make a complete example to show us what do you want to achieve before you try 
 to modify commands.

Here is a minimal example. I would like the first caption and the
second reference.

Hope this is clear.

-- Cédric


 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
 ___



doted-caption.pdf
Description: Adobe PDF document


doted-caption.tex
Description: TeX 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
___


[NTG-context] Problem with \date command

2010-10-15 Thread Cedric Mauclair
Hi all,

Today I wanted to use the command \date[d=15,m=10,y=2010][weekday].
It gives Friday as it should. However
\date[d=2,m=1,y=2011][weekday] gives the same result which is wrong
(it's a Sunday). In fact, whatever the supplied date, it gives
Friday. I guess the parameter isn't taken into account here.

Bug or feature?

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

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


Re: [NTG-context] Problem with \date command

2010-10-15 Thread Cedric Mauclair
I use the minimal from 3 days ago.

Here is what I do actually.

\def\mydate{\doifnextcharelse\space\domydate\domydate }
\def\domydate #1/#2/#3{\date[d=#1,m=#2,y=#3][weekday,day+,month,year]}
\mydate 2/1/2011 -- Friday 2 january 2011

\date[d=2,m=1,y=2011][weekday,day+,month,year] -- Sunday 2 january 2011

Any ideas?

-- Cédric



On Fri, Oct 15, 2010 at 15:14, Peter Münster pmli...@free.fr wrote:
 \doifmodeelse{mkiv}{MKIV}{MKII}:
 Sunday = \date[d=2,m=1,y=2011][weekday] ?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Problem with \date command

2010-10-15 Thread Cedric Mauclair
Right, I forgot about the catcodes. Thank you.

-- Cédric



On Fri, Oct 15, 2010 at 15:37, Peter Münster pmli...@free.fr wrote:
 On Fri, Oct 15 2010, Cedric Mauclair wrote:

 Any ideas?

 Test file:

 \def\mydate{\doifnextcharelse\space\domydate\domydate }
 \def\domydate #1/#2/#3{\date[d=#1,m=#2,y=#3][weekday,day+,month,year]}
 \starttext
 \mydate 2/1/2011   \par % token #3 = 2
 \mydate 2/1/2      \par % token #3 = 2
 \mydate 2/1/{2011} \par % token #3 = 2011
 \stoptext

 Cheers, Peter

 --
 Contact information: http://pmrb.free.fr/contact/
 ___
 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] Error in mtxrun in beta (2010-09-29)

2010-09-30 Thread Cedric Mauclair
Hi,

I get the following error when trying to use the command : mtxrun
--locate syst-aux.mkiv

...path to mtxrun.../bin/mtxrun:13181: attempt to call field
'find_given_file' (a nil value)

Regards.

-- Cédric
___
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] Error in mtxrun in beta (2010-09-29)

2010-09-30 Thread Cedric Mauclair
I changed find_given_files by findgivenfiles and everything is
back to normal.

-- Cédric



On Thu, Sep 30, 2010 at 13:59, Cedric Mauclair
cedric.maucl...@gmail.com wrote:
 Hi,

 I get the following error when trying to use the command : mtxrun
 --locate syst-aux.mkiv

 ...path to mtxrun.../bin/mtxrun:13181: attempt to call field
 'find_given_file' (a nil value)

 Regards.

 -- Cédric

___
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] Problems with x-set-11.mkiv

2010-09-30 Thread Cedric Mauclair
Hi,

For some reason, line 248 of x-set-11.mkiv file (\blank[\v!line]) is
not taken into account. As a result, when typesetting the setup-??.pdf
files, the line of the first argument being described after a command
is be too high and the word optional is mixed with it.

When we change \blank[\v!line] with the low-level
\vskip\lineheight it works as expected (or it seems). I understand
this is not beautiful, but it is a workaround for now. I am sure a
fix will be available shortly.

I noticed this when generating the seup file with the command (MkIV):
mtxrun --script context --run --interface=en --global
--result=setup-en --purge x-set-12.

There is no problem with the MkII equivalent (as it uses x-set-11.mkii instead):
texexec --int=en --pdf --global --result=setup-en --purge x-set-12.

Regards.

-- Cédric
___
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] poster in context

2010-09-30 Thread Cedric Mauclair
Hi,

I am interested in the source in you would share it. :)

Thanks.

-- Cédric



On Thu, Sep 30, 2010 at 16:08, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 2010/9/29 Jan Pohanka xhpoha...@gmail.com:
 Hello,
 I wonder how to create a poster presentation using ConTeXt.
 It should have following layout.
  _
 |   title, ...        |
  _
 |                     |
 |                     |
 |  text in 3 columns  |
 |  with titles etc.   |
 |                     |
  _
 |  acknowledgement    |
  _

 Is there any way to fix the height of the depicted areas? Now I use
 columnset for the main text. Maybe layers can be useful?

 Something like the posters (links to pdf files) on
    http://mara.pef.upr.si/mars2006/projekti.html
 ?

 I can send you the source code if that is what you want (but I do not
 guarantee that the layout still works).

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

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

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

2010-09-23 Thread Cedric Mauclair
Hi,

There is a typo in the link: it should be setupbackends and not
setupbackeds. The command is fine though.

Regards.

-- Cédric



On Thu, Sep 23, 2010 at 15:00, Vyatcheslav Yatskovsky
yatskov...@gmail.com wrote:
 Please tell an (really) unlucky person who didn't visited the
 conference (like me), what \setupbackeds[export=yes] should do at all?

 You get the contents of your (well-structured) ConTeXt document as XML
 ouput, extension .export, intended for tagged PDF use (e.g. PDF/A),
 but of course usable for XML transformations.

 Thank you, Hraban! Wikified, please check at
 http://wiki.contextgarden.net/Reference/en/setupbackeds

 --
 Best Regards,
 Vyatcheslav Yatskovsky
 ___
 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] section conversion gets lost in MKIV

2010-08-31 Thread Cedric Mauclair
Hi,

Is there a documentation and/or extensive example of the conversionset
feature (and others) somewhere? The comments in the source files (on
the wiki) are kind of scarce and I can't quite figure out how to use
them.

Thanks.

-- Cédric



On Mon, Aug 30, 2010 at 13:23, Hans Hagen pra...@wxs.nl wrote:
 On 30-8-2010 10:34, Mojca Miklavec wrote:

 Dear list,

 Here's a minimal example that work correct in MKII, but wrong in MKIV:

 \setupsection
        [chapter]
        [conversion=Characters]
 \setupsection
        [section]
        [conversion=]

 \starttext
 \chapter{first}
 \section{subfirst}
 \stoptext

 It results in
     A first
     1.1 subfirst
 while it should keep A.1 instead of 1.1 for the section numbering.

 The new way is:

 \definestructureconversionset[MySet][numbers,Characters][numbers] % [per
 level] [default]

 \setupsection
  [chapter]
  [sectionconversionset=MySet]

 \starttext

 \chapter{first}
 \section{subfirst}

 \stoptext

 What you observe is 'conversion' being inherited and makins both the
 conversionsets and conversion work as you want will mess up much code so I
 think that I will remove the 'conversion' key completely in favor of the
 set. Keep in mind that we now keep more status info around and more or less
 local conversion settings (after all then can be changed each moment) is not
 part of that.

 So, a next release will drop 'conversion' ... better not that unpredictable.

 Hans


 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

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

___
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] section conversion gets lost in MKIV

2010-08-31 Thread Cedric Mauclair
On Tue, Aug 31, 2010 at 13:30, Hans Hagen pra...@wxs.nl wrote:
 On 31-8-2010 1:07, Cedric Mauclair wrote:

 Is there a documentation and/or extensive example of the conversionset
 feature (and others) somewhere? The comments in the source files (on
 the wiki) are kind of scarce and I can't quite figure out how to use
 them.

 it's just a list of conversions starting with the one for 'part' and the
 second arg is the default so

 [numbers,characters,greek][numbers]

 will number parts 1..n, chapters a..z and sections alpha..omega and all
 below that as 1..n
All right, I'm starting to get it, for conversionset at least. I
still have some questions though.

1. To what do P and P.N refer to in strc-ini.mkiv?

2. What does the little table mean (reference, mark, list, text
against section, float, etc.)? I see there is something going on
with the next few lines, but I don't clearly see how to use the table.

Thanks.

 -
                                          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] Does Makempy still work?

2010-08-20 Thread Cedric Mauclair
On Thu, Aug 19, 2010 at 19:10, Hans Hagen pra...@wxs.nl wrote:
 On 19-8-2010 6:25, luigi scarso wrote:

 Well, actually I tried pstoedit 3.45 on Fedora and it works like a
 charm.

 and it also works under windows7 with mkii and mkiv

 Can you put 3.45 someplace so that I can downgrade?
I downloaded the sources from sourceforge.net/projects/pstoedit. I had
to patch them though. A don't really know how to issue a patch file so
here is what I modified from what I found on the Internet:
 * file dynload.cpp, line 141: #elif -- #else
 * file cppcomp.h, line after the first comments, top of the file : I added
 #include cstring
 #include cstdlib

It then buit successfully I it works. I send a bug report for the 3.50 version.

Thanks for your help in sourting this out.

-- Cédric





 Hans

 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

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

___
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] Does Makempy still work?

2010-08-19 Thread Cedric Mauclair
On Thu, Aug 19, 2010 at 17:46, luigi scarso luigi.sca...@gmail.com wrote:
 On Wed, Aug 18, 2010 at 9:04 AM, Cedric Mauclair
 cedric.maucl...@gmail.com wrote:
 Hi,

 As suggested by Hans, here is an archive with the tex file I used for
 the tests and the resulting -mpgraph PDF file (plus all the logs and
 stuff). It looks OK, but when I use pstoedit -f mpost (v3.50 with gs
 v8.70), only e, m and c from the formula are in the resulting metapost
 code. I will try with pstoedit v3.45 later today. I use ConTeXt (MkIV)
 from TeXlive 2010 pretest.

 If anyone has enough knowledge in gs and PDF files (Luigi?) and
 especially enough time, could you give it a look please? Thanks in
 advance. I will send the PDF to the author of pstoedit too.
 #texexec makempy.tex
 works ok under windows 7 and pstoedit 3.50
 I've changed scaled 10 with scaled 5

 \starttext
 \startMPcode
  input mp-grph ;
  graphictext
    MP $e=mc^2$ MP
    scaled  5
    withdrawcolor .7blue
    withfillcolor .7white
    withpen pencircle scaled 2pt ;
 \stopMPcode
 \stoptext
Well, actually I tried pstoedit 3.45 on Fedora and it works like a
charm. So it do come from pstoedit v3.50. I still have to send the
file to the autro though, but I don't have much time these days. I'll
try to do it this week-end.

Thanks for the answer.

-- Cédric

 For mkiv, I suspect that gs has some problems with pdfs made by context

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

___
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] Does Makempy still work?

2010-08-18 Thread Cedric Mauclair
Hi,

As suggested by Hans, here is an archive with the tex file I used for
the tests and the resulting -mpgraph PDF file (plus all the logs and
stuff). It looks OK, but when I use pstoedit -f mpost (v3.50 with gs
v8.70), only e, m and c from the formula are in the resulting metapost
code. I will try with pstoedit v3.45 later today. I use ConTeXt (MkIV)
from TeXlive 2010 pretest.

If anyone has enough knowledge in gs and PDF files (Luigi?) and
especially enough time, could you give it a look please? Thanks in
advance. I will send the PDF to the author of pstoedit too.

Thanks.

-- Cédric



On Tue, Aug 17, 2010 at 18:18, Hans Hagen pra...@wxs.nl wrote:
 On 17-8-2010 6:15, Cedric Mauclair wrote:

 I think I will do that or investigate the dynload problem to get
 pstoedit 3.44 to work.

 or both -)

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



makempy-test.tbz
Description: application/bzip-compressed-tar
___
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] Does Makempy still work?

2010-08-17 Thread Cedric Mauclair
Hi everybody,

I tried to make a Metapost outline by following the mmakempy manual
but it didn't work. As I saw that makempy and makempy.bat files
were removed in 2010 (I don't remember the date), my question is: is
it still usable/valid feature?

I processed the example from the manual, both from a standalone mp
file and a tex file (which follows):
\starttext
\startMPcode
input mp-grph ;

beginfig(1) ;
  graphictext
$e=mc^2$
scaled 10
dashed evenly
withdrawcolor .7blue
withfillcolor .7white
withpen pencircle scaled 2pt ;
endfig ;
\stopMPcode
\stoptext

It sucessfully created the test-mpgraph.pdf with the text processed by
TeX but the result page is blank, though it seems the graphic is on
a line by itself (seen from another document where all the lines go
down). When the mp file is processed with mtxrun --script mptopdf,
it warns of a width and height of less than 1in when it tries to
convert from ps to pdf. When the tex file is processed with mtxrun
--script context, it complains that metapost had a problem flushing a
literal and that it couldn't find pstoedit. Of course, this could be
the problem, but I have no idea of how I could get around this. By the
way, I use the TeXlive 2010 pretest.

Thanks.

-- Cédric
___
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] Does Makempy still work?

2010-08-17 Thread Cedric Mauclair
I thought this would come with TeXlive or ConTeXt. It solved the
problem obviously, sorry for not trying it before calling for help.
Also, I removed beginfig...endfig; from the tex file.

However, now I can only see e mc. No = nor 2. Is there a special
version of pstoedit to install? I got mine from
http://www.helga-glunz.homepage.t-online.de/pstoedit/.

-- Cédric



On Tue, Aug 17, 2010 at 10:45, Hans Hagen pra...@wxs.nl wrote:
 On 17-8-2010 9:49, Cedric Mauclair wrote:

 Hi everybody,

 I tried to make a Metapost outline by following the mmakempy manual
 but it didn't work. As I saw that makempy and makempy.bat files
 were removed in 2010 (I don't remember the date), my question is: is
 it still usable/valid feature?

 I processed the example from the manual, both from a standalone mp
 file and a tex file (which follows):
 \starttext
 \startMPcode
 input mp-grph ;

 beginfig(1) ;
   graphictext
     $e=mc^2$
     scaled 10
     dashed evenly
     withdrawcolor .7blue
     withfillcolor .7white
     withpen pencircle scaled 2pt ;
 endfig ;
 \stopMPcode
 \stoptext

 It sucessfully created the test-mpgraph.pdf with the text processed by
 TeX but the result page is blank, though it seems the graphic is on
 a line by itself (seen from another document where all the lines go
 down). When the mp file is processed with mtxrun --script mptopdf,
 it warns of a width and height of less than 1in when it tries to
 convert from ps to pdf. When the tex file is processed with mtxrun
 --script context, it complains that metapost had a problem flushing a
 literal and that it couldn't find pstoedit. Of course, this could be
 the problem, but I have no idea of how I could get around this. By the
 way, I use the TeXlive 2010 pretest.


 do you have pstoedit installed?

 -
                                          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] Does Makempy still work?

2010-08-17 Thread Cedric Mauclair
I forgot to mention that the spacing is correct though nothing appears
(file included).

-- Cédric



On Tue, Aug 17, 2010 at 10:53, Cedric Mauclair
cedric.maucl...@gmail.com wrote:
 I thought this would come with TeXlive or ConTeXt. It solved the
 problem obviously, sorry for not trying it before calling for help.
 Also, I removed beginfig...endfig; from the tex file.

 However, now I can only see e mc. No = nor 2. Is there a special
 version of pstoedit to install? I got mine from
 http://www.helga-glunz.homepage.t-online.de/pstoedit/.

 -- Cédric



 On Tue, Aug 17, 2010 at 10:45, Hans Hagen pra...@wxs.nl wrote:
 On 17-8-2010 9:49, Cedric Mauclair wrote:

 Hi everybody,

 I tried to make a Metapost outline by following the mmakempy manual
 but it didn't work. As I saw that makempy and makempy.bat files
 were removed in 2010 (I don't remember the date), my question is: is
 it still usable/valid feature?

 I processed the example from the manual, both from a standalone mp
 file and a tex file (which follows):
 \starttext
 \startMPcode
 input mp-grph ;

 beginfig(1) ;
   graphictext
     $e=mc^2$
     scaled 10
     dashed evenly
     withdrawcolor .7blue
     withfillcolor .7white
     withpen pencircle scaled 2pt ;
 endfig ;
 \stopMPcode
 \stoptext

 It sucessfully created the test-mpgraph.pdf with the text processed by
 TeX but the result page is blank, though it seems the graphic is on
 a line by itself (seen from another document where all the lines go
 down). When the mp file is processed with mtxrun --script mptopdf,
 it warns of a width and height of less than 1in when it tries to
 convert from ps to pdf. When the tex file is processed with mtxrun
 --script context, it complains that metapost had a problem flushing a
 literal and that it couldn't find pstoedit. Of course, this could be
 the problem, but I have no idea of how I could get around this. By the
 way, I use the TeXlive 2010 pretest.


 do you have pstoedit installed?

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




makempy.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] Trouble with customising section heads

2010-08-17 Thread Cedric Mauclair
Hi,

\namedheadnumber{chapter} gives the real number (ie an integer) of the
chapter. Of course, this could be used with other headings.

-- Cédric



On Tue, Aug 17, 2010 at 11:53, Elias Oltmanns e...@nebensachen.de wrote:
 Elias Oltmanns e...@nebensachen.de wrote:
 For the record:

 Elias Oltmanns e...@nebensachen.de wrote:
 In the attempt to customise my section headings by means of
 \setuphead[section][...command=]
 I followed the instructions at
 http://wiki.contextgarden.net/Figures_in_Headings#Figures_in_Headings
 .
 [...]
 As it turns out, neither MkII nor MkIV processes the attached example
 as expected:
 MkII The table of contents is incomplete, even though the wiki says
      it shouldn't be;

 The solution seems to be to use deeptextcommand instead of textcommand.

 MkIV \currentheadnumber seems to be 0 all the time.

 Apart from Wolfgang's solution, I have now realised that MkIV allows to
 use command instead of textcommand / numbercommand and still produces a
 complete table of contents. Accordingly, the setups look like this:
 \setuphead[section][command=\Myhead]
 \def\Myhead#1#2{%
     Sect #1}

 Well, actually, when I really need just a number as in
 \def\Myhead#1#2{\externalfigure[chapter-\currentheadnumber]}
 I'm still in trouble as far as MkIV is concerned. Can I somehow extract
 that number from the argument? Or can MkIV be changed to provide
 \currentheadnumber as does MkII? Personally, I'm content with using MkII
 right now. So, I'm asking out of curiosity here and for the purpose of
 updating the wiki page referenced above.

 Regards,

 Elias
 ___
 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] Does Makempy still work?

2010-08-17 Thread Cedric Mauclair
I tried some other text and it appears that it can display (some)
maths, but no text.

graphictext something scaled 10 withdrawcolor red withfillcolor
green withpen pencircle scaled 2pt ;

doesn't work either.


P.S. : I am sorry, I just noticed the object of the message does not
start like the others.

-- Cédric



On Tue, Aug 17, 2010 at 10:55, Cedric Mauclair
cedric.maucl...@gmail.com wrote:
 I forgot to mention that the spacing is correct though nothing appears
 (file included).

 -- Cédric



 On Tue, Aug 17, 2010 at 10:53, Cedric Mauclair
 cedric.maucl...@gmail.com wrote:
 I thought this would come with TeXlive or ConTeXt. It solved the
 problem obviously, sorry for not trying it before calling for help.
 Also, I removed beginfig...endfig; from the tex file.

 However, now I can only see e mc. No = nor 2. Is there a special
 version of pstoedit to install? I got mine from
 http://www.helga-glunz.homepage.t-online.de/pstoedit/.

 -- Cédric



 On Tue, Aug 17, 2010 at 10:45, Hans Hagen pra...@wxs.nl wrote:
 On 17-8-2010 9:49, Cedric Mauclair wrote:

 Hi everybody,

 I tried to make a Metapost outline by following the mmakempy manual
 but it didn't work. As I saw that makempy and makempy.bat files
 were removed in 2010 (I don't remember the date), my question is: is
 it still usable/valid feature?

 I processed the example from the manual, both from a standalone mp
 file and a tex file (which follows):
 \starttext
 \startMPcode
 input mp-grph ;

 beginfig(1) ;
   graphictext
     $e=mc^2$
     scaled 10
     dashed evenly
     withdrawcolor .7blue
     withfillcolor .7white
     withpen pencircle scaled 2pt ;
 endfig ;
 \stopMPcode
 \stoptext

 It sucessfully created the test-mpgraph.pdf with the text processed by
 TeX but the result page is blank, though it seems the graphic is on
 a line by itself (seen from another document where all the lines go
 down). When the mp file is processed with mtxrun --script mptopdf,
 it warns of a width and height of less than 1in when it tries to
 convert from ps to pdf. When the tex file is processed with mtxrun
 --script context, it complains that metapost had a problem flushing a
 literal and that it couldn't find pstoedit. Of course, this could be
 the problem, but I have no idea of how I could get around this. By the
 way, I use the TeXlive 2010 pretest.


 do you have pstoedit installed?

 -
                                          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] Does Makempy still work?

2010-08-17 Thread Cedric Mauclair
Thats what I figured out. I have the 3.50 version as it is the only I
can build on my machine. All prior versions configure well but do not
compile due to some dynload problem. (dynload.cpp:141:6: error: #elif
with no expression).

When I launch pstoedit -f mpost, it only outputs the e, m and c.

-- Cédric



On Tue, Aug 17, 2010 at 18:08, Hans Hagen pra...@wxs.nl wrote:
 On 17-8-2010 10:53, Cedric Mauclair wrote:

 \starttext

  \startMPcode
  input mp-grph ;

  beginfig(1) ;
    graphictext
      $e=mc^2$
      scaled 10
      dashed evenly
      withdrawcolor .7blue
      withfillcolor .7white
      withpen pencircle scaled 2pt ;
  endfig ;
  \stopMPcode
  \stoptext

 looks like a bug in pstoedit as indeed the = and ^ are gone

 Hans


 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
 -

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

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


Re: [NTG-context] Does Makempy still work?

2010-08-17 Thread Cedric Mauclair
I think I will do that or investigate the dynload problem to get
pstoedit 3.44 to work.

Thanks a lot.

-- Cédric



On Tue, Aug 17, 2010 at 18:12, Hans Hagen pra...@wxs.nl wrote:
 Hi,

 \starttext
 \startMPcode
 graphictext
    $e=mc^2$
    scaled 10
    dashed evenly
    withdrawcolor .7blue
    withfillcolor .7white
    withpen pencircle scaled 2pt ;
 \stopMPcode
 \stoptext

 there is a file *-mpgraph.pdf afterwards and that looks ok, but the mpy file
 has only three paths so it must be something in pstoedit (or gs)

 you can consider sending the pdf file to the maintainer (or convince luigi
 to look into it as he knows gs well)

 Hans

 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
 -

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

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


Re: [NTG-context] Numbering in Table of Content

2010-08-12 Thread Cedric Mauclair
Hi,

You could also use the \chapter command but in the front matter as it
has no number there (and do not increment the counter either).

Best regards.

-- Cédric



On Thu, Aug 12, 2010 at 03:08, Martin Althoff martin.alth...@yahoo.com wrote:
 Basically I need a few
 unnumbered entries at the top of the table (like abstract,
 acknowledgements, etc)

 Rio,

 I handle this through using the unnumbered sectioning (\title, \subject..) 
 and then a

 \definecombinedlist [content][title,chapter]

 Essentially you add title to the already predefined list or combindedlist 
 content. Read contextref for details. This then generates a TOC with 
 \completecontent which includes the unnumbered sections/headers.

 Regarding the numbering, you might gleen that from the sample document here:

 http://wiki.contextgarden.net/Biochemistry_textbook


 It all kind of goes like this:

 \starttext

 \startfrontmatter
 \setuppagenumbering[conversion=romannumerals]
 \completecontent
 \stopfrontmatter

 \startbodymatter
 \setuppagenumbering[conversion=]
 \setuppagenumber[number=1]
 \title {Introduction}
 \dorecurse{5}{\input tufte\par}
 \chapter{Some Stuff}
 \dorecurse{5}{\input tufte\par}
 \stopbodymatter
 \stoptext


 best, Martin



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