[NTG-context] Undefined controle sequence with usemodule[vim]

2012-01-02 Thread pol stra

Hello everyone,


When I use t-vim module, I get this error message:
error msg
system   tex  error on line 15 in file vim.tex: Undefined control 
sequence ...

/error msg


for example with this code:
code
\usemodule[vim]

\definevimtyping[python][syntax=python, escape=on]
\starttext
\startpython
# Returns \m{\sum_{i=1}^{n}i}
def sum_upto(n)
r = range(1, n+1)
return sum(r)
\stoppython
\stoptext
/code



But as you can see, there is no line 15 in this file !


Anyway, I can just ignore the error and get the output, but that’s not good.


I attached the log file.
  

vim.log
Description: Binary data
___
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] Undefined controle sequence with usemodule[simpleslides]

2012-01-04 Thread pol stra







Dear all,

I tried to compile the first example of the simpleslide module’s documentation, 
but it doesn’t work:
! Undefined control sequence.

system   tex  error on line 9 in file test-simple.tex: Undefined 
control sequence ...

 1 \usemodule[simpleslides]
 2 [style=BigNumber]
 3 \setupTitle
 4 [ title={Title of the presentation},
 5 author={Name of authors},
 6 date={Date of presentation},
 7 ]
 8 \starttext
 9   \placeTitle
10 \SlideTitle {The first slide}
11 Write whatever you want.
12 \SlideTitle {The second slide}
13 Continue writing.
14 \stoptext
15 

argument \??vars 
   :simpleslides:title:
\dousestylehashparameter #1#2-\ifcsname #1
   #2\endcsname \expandafter \douses...
\dostartattributes ...estylehashparameter {#1}{#2}
  \dousecolorhashparameter {...
\placeTitle ...pleslides:title:}\c!style \c!color 
  \simpleslidestitlecomponen...
l.9 \placeTitle
   
? 
! Undefined control sequence.

Thanks (I hope I’m not too unpolite)

  

test-simple.log
Description: Binary data
___
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] Steps in presentation

2012-09-12 Thread pol stra
Hello,

I tried to use some steps in a presentation.  In the following conversation
http://www.mail-archive.com/ntg-context@ntg.nl/msg53524.html, Wolfgang says
that we can use the pre-60 module.  So I tried this snippet:

\usemodule[pre-stepwise]

\starttext

\StartSteps

\startitemize
\item one \FlushStep
\item two \FlushStep
\item three \FlushStep
\stopitemize

\StopSteps

\stoptext

But it does not compile:

ConTeXt  ver: 2012.09.11 20:36 MKIV  fmt: 2012.9.12  int: english/english

system   cont-new.mkiv loaded
(/opt/context-minimals/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
fontslatin modern fonts are not preloaded
languageslanguage en is active
(pre60.tex
resolversmodules  loaded: 'pre-stepwise'
(/opt/context-minimals/texmf-context/tex/context/base/s-pre-60.mkiv
fontsbeware: no fonts are loaded yet, using 'lm mono' in box
(/opt/context-minimals/texmf-context/tex/context/base/java-imp-stp.mkiv)
interactions javascripts  loaded: library 'stp'
metapost loaded: library 'nav' 
(/opt/context-minimals/texmf-context/tex/context/base/meta-imp-nav.mkiv)){/opt/context-minimals/texmf-fonts/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown: library 'loc'
{/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-math.map}{/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded

!LuaTeX error: There should have been a lua node here, not an object with 
type string!
 == Fatal error occurred, no output PDF file produced!


Is there something broken in recent release of conteXt?  By the way It seems
there is no Rawsteps module anymore but it still is in the wiki. Is there is
something like a bugtracker for conteXt, in order to signal when  a feature is
not working or outdated and signal when it is back (or definitly depreciate)?
(it would be a complementary tool for the mailing list)
  ___
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] Change color of EPS file.

2012-09-12 Thread pol stra
Hello,

I have a EPS file wich contains black lines and no background.
The background of my presentation is colored, so I would like to put this 
figure in white.
I tried a \startcolor … \stopcolor environement without succed.

Is there a way to do so?

In last resort I can put a white background with:
\placefigure[left,none]{caption}{\externalfigure[demo-b][background=color,backgroundcolor=white]}

Best regards

  ___
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] Change color of EPS file.

2012-09-13 Thread pol stra

 From: sbbrou...@gmail.com
 Date: Thu, 13 Sep 2012 13:45:20 +0200
 Subject: Re: [NTG-context] Change color of EPS file.
 To: ntg-context@ntg.nl
 CC: r...@hotmail.fr
 
 Hello Pol stra,
 
 Off-topic for this mailing list, but on-topic for you: You can do this
 with Inkscape.
 
 * Install Inkscape: http://inkscape.org/download/?lang=en
 * Open the EPS in Inkscape
 
 Working white-on-white sucks, so
 * File  Document properties  click to the right of 'Background:',
 below the Default units dropdown
 * Choose something nice and pastel-coloured with alpha (opacity) set
 to non-zero.
 
 * Select the object
 * Object  Ungroup (Ctrl+Shift+G) to make Inkscape see the individual
 paths, instead of a single EPS object
 The single rectangle selecting the object has now turned into a heap
 of rectangles.
 * With the colours at the bottom, set the fill to be red with click
 and/or set the stroke to be red with Shift+click
 
 This will probably not have the desired effect because some of the
 constituent paths will have black fill+transparent stroke, and with
 others it will be the other way round. So you'll have to set
 fill/stroke individually.
 
 * Select paths in turn, and set their fill/stroke as appropriate.
 Their respective values are shown in the bottom left. If you select
 multiple paths and their fill/stroke is different, it will be shown as
 mixed; when multiple paths' fills/strokes are not mixed they are
 identical, and you can change them all at once.
 
 (Depending on ... file-related things ... you may need to use Path 
 Object to Path at some point, and possibly Path  Break Apart. But
 probably not.)
 
 Good luck!
 
 --Sietse

Thanks Sietse

I already tried the inskape way, but it’s too much work if you have many files 
to proced.
But your answer gave me the idea to use imegemagick, so I found this trick:
convert -background none -density 300 -negate a1.EPS bbb.png
I do not know why, but the same command with an EPS output gives me a white 
background so I had use a png file.
The result is good enough for me.
Thanks again
  ___
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] Change color of EPS file.

2012-09-14 Thread pol stra
Aditya Mahajan adit...@umich.edu wrote:
 If you want to use eps images, why not just use a white background at
 ConTeXt end (as you had stated in your first message
 
I think you misread: Pol wants the EPS to be white-on-transparent,
instead of black-on-transparent, so that he can use it on a
(dark-)coloured background.
 
That is exactly what I wanted.

Pol stra wrote:
 But your answer gave me the idea to use imegemagick, so I found this
 trick:
...
 The result is good enough for me.
 
Congratulations. Good luck with your work.
 
Thank you

Cheerio,
Sietse
 
  ___
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] Display math characters

2012-09-14 Thread pol stra
Hello,

from the wiki 
(http://wiki.contextgarden.net/Math/basic#List_of_All_Math_macros) I tryed the 
following snippet:
\usemodule[fnt-25]
\showmathfontcharacters

But context complains that there is no fnt-25 module, so let’s grep 
showmathfontcharacters in conteXt directory.
I found that it is defined into the mat-10 module. So new snippet:
\usemodule[mat-10]
\showmathfontcharacters

End new error:

ConTeXt  ver: 2012.09.11 20:36 MKIV  fmt: 2012.9.12  int: english/english

system   cont-new.mkiv loaded
(/opt/context-minimals/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
fontslatin modern fonts are not preloaded
languageslanguage en is active
(mathsymbols.tex
resolversmodules  loaded: 'mat-10'
(/opt/context-minimals/texmf-context/tex/context/base/s-mat-10.mkiv))
fontsdefining  font with asked name 'unknown' is not found using 
lookup 'file'
fontsdefining  unknown font unknown, loading aborted
fontsdefining  unable to define unknown as [thedefinedfont--0]
! LuaTeX error main ctx instance:22: attempt to index local 'resources' (a 
nil value)
stack traceback:
main ctx instance:22: in function 'showmathfont'
main ctx instance:1: in main chunk.

system   tex  error on line 5 in file 
/opt/context-minimals/texmf-context/tex/context/base/cont-yes.mkiv: LuaTeX 
error  ...

 1 %D \module
 2 %D   [   file=cont-yes,
 3 %Dversion=2012.06.01,
 4 %D  title=\CONTEXT\ Miscellaneous Macros,
 5   %D   subtitle=Startup Stub,
 6 %D author=Hans Hagen,
 7 %D   date=\currentdate,
 8 %D  copyright={PRAGMA ADE \ \CONTEXT\ Development Team}]
 9 %C
10 %C This module is part of the \CONTEXT\ macro||package and is
11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12 %C details.
13 
14 % At some point I will reconsider the \starttext .. \stoptext
15 % wraping as we can assume proper styling. It's a left-over from

argument ...cument.showmathfont(font.current())}
  
\firstoftwoarguments #1#2-#1
 
\doshowmathfontcharacters ...wmathfontcharacters }
  \endgroup 
to be read again 
   \finishjob 
l.5 \finishjob
  
}   context.finishjob()
  
...
l.86 \stopluacode


I do not realy care about this list, I was just currious and it did not work so 
I point it out.
  ___
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] ntg-context Digest, Vol 99, Issue 40

2012-09-14 Thread pol stra

Troy Henderson said:

I tested this on a black-on-transparent EPS that was created via MetaPost, and 
it seems to work fine.  If you are not using Linux (or Unix or Mac OS X), let 
me know and I can probably put together a quick HTML page to do this on my 
server.
Thanks for the invitation. Fortunatly I’m using GNU/Linux.


 cat foo.eps | sed -e s/0 0 0 setrgbcolor/1 1 1 setrgbcolor/g  bar.eps

It simply translates the (0,0,0) triplet (which is black) to the (1,1,1) 
triplet (which is white).  This is very simplistic and may not do all that you 
want.

Unfortunatly there is no such a sequence in my file:

grep setrgbcolor a1.EPS 
/setcmykcolor{1 sub 4 1 roll 3{3 index add neg dup 0 lt{pop 0}if 3 1 
roll}repeat setrgbcolor pop}wd
/sw/setlinewidth ld/scap/setlinecap ld/sj/setlinejoin ld/sm/setmiterlimit 
ld/sd/setdash ld/rgb/setrgbcolor ld/crgb/currentrgbcolor ld/cmyk/setcmykcolor 
ld/gs/gsave ld/gr/grestore ld

But thank you for gave a try.
  ___
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 \useMPlibrary[txt]

2012-09-17 Thread pol stra
Dear all,

There is a problem with \useMPlibrary[txt] at compilation time (ConTeXt  ver: 
2012.09.11 20:36 MKIV):

metapost loaded: library 'txt' 
(/opt/context-minimals/texmf-context/tex/context/base/meta-imp-txt.mkiv
! Undefined control sequence.

system   tex  error on line 149 in file 
/opt/context-minimals/texmf-context/tex/context/base/meta-imp-txt.mkiv: 
Undefined control sequence ...

139\ht\scratchbox\parheight
140\dp\scratchbox\zeropoint
141\box\scratchbox
142\getshapecharacteristics
143\egroup}
144 
145 \def\setupshapetexts%
146   {\dodoubleempty\getparameters[\??sh]}
147 
148 \setupshapetexts%
149 [\c!bodyfont=]
150 
151 %%% rotfont nog definieren
152 
153 \doifundefined{RotFont}{\definefont[RotFont][RegularBold]}
154 
155 \def\processfollowingtoken#1% strut toegevoegd
156   {\appendtoks#1\to\MPtoks
157\setbox\MPbox=\hbox{\RotFont\setstrut\strut\the\MPtoks}%
158\startMPdrawing
159  n := n + 1 ; len[n] := \the\wd\MPbox ;

argument \??sh 
 
\setsomevalue #1#2-\expandafter \def \csname #1
#2\endcsname 
\syst_helpers_get_parameters_assign_indeed ...{#2}
  {#3}
\syst_helpers_process_comma_item ...mpty \_e_o_p_ 
  \doubleexpandafter \syst_h...
\syst_helpers_get_parameters ...ss_comma_item #1,]
  ,\_e_o_p_ 
l.149   [\c!bodyfont=]


The fact is I don’t realy know what it is for, I took it from the wiki 
(http://wiki.contextgarden.net/User-Defined_Enumerations).
Maybe it is not compatible with Mkiv?

Best regards
  ___
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] Attach source to pdf

2013-03-28 Thread pol stra
Hello,

Is there a way to automatically attach the source file to the produced pdf?

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
___

Re: [NTG-context] Attach source to pdf

2013-03-28 Thread pol stra


  Is there a way to automatically attach the source file to the produced pdf? 
\setupinteraction [state=start]
\starttext
  \attachment[file=attachfile.tex, title=Some file, author=Me]
\stoptext

Ok. It works, thank you.
  ___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] 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
___


Re: [NTG-context] modify resume

2010-09-21 Thread pol stra

2010/9/19 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 http://pastie.org/1091180
 http://pastie.org/1091177
 
I renamed the first one into cv.tex and the second one into moderncv.tex.
When i run texexec cv.tex, i’ve got this message :

 Runaway argument?
 {{\margintext {##1} ##2 
 ! Paragraph ended before \complexdefine was complete.
 to be read again 
   \par 
 l.87 {{\margintext{#1} #2 \par
   }}



i don’t understand why.
  ___
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-22 Thread pol stra

I’m sorry but it still don’t work.
I add \usesymbols[mvs] but i have this message:

! Font \**Dings**:=MarVoSym at 8.3pt not loadable: Metric (TFM) file not fo
und.
to be read again 
   \relax 
\definefontlocal ...ndcsname \lastfontname \relax 
  \expandafter \let \expanda...

\dododefinefont ...ontspec {#2}\rawfontidentifier 
  \let \localrelativefontsiz...

\redodefinefont #1#2#3-\dododefinefont {#1}{#2}
\doifsetupselse {#3} {\setup...

\placehead ...} \hbox {\addressb } \hbox {{\Dings 
  B} \email } \hbox {{\Dings...
l.14 \placehead

I think this line is suspect:
\definefont[Dings][name:MarVoSym]
Why name: ?


  ___
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-27 Thread pol stra

Ok i removed \definefont and \Dings :
It works now !

I’ve got two last questions:
how can I make starting the head at the backspace (in margin) but continuing in 
text? 
where can i find documentation about hbox,hfill etc. ?

Thanks

From: r...@hotmail.fr
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] modify resume
Date: Wed, 22 Sep 2010 13:55:12 +0200








I’m sorry but it still don’t work.
I add \usesymbols[mvs] but i have this message:

! Font \**Dings**:=MarVoSym at 8.3pt not loadable: Metric (TFM) file not fo
und.
to be read again 
   \relax 
\definefontlocal ...ndcsname \lastfontname \relax 
  \expandafter \let \expanda...

\dododefinefont ...ontspec {#2}\rawfontidentifier 
  \let \localrelativefontsiz...

\redodefinefont #1#2#3-\dododefinefont {#1}{#2}
\doifsetupselse {#3} {\setup...

\placehead ...} \hbox {\addressb } \hbox {{\Dings 
  B} \email } \hbox {{\Dings...
l.14 \placehead

I think this line is suspect:
\definefont[Dings][name:MarVoSym]
Why name: ?


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

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


[NTG-context] Chapter headers variation

2010-05-05 Thread pol stra

Hello,
i realy like the example of the wiki about chapter headers, but i wonder if it 
is possible to have a deeptext only on the first letter?
thanks
  
_
Hotmail et MSN dans la poche? HOTMAIL et MSN sont dispo gratuitement sur votre 
téléphone!
http://www.messengersurvotremobile.com/?d=Hotmail___
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 headers variation

2010-05-15 Thread pol stra

Maybe this could be done by modify t-lettrine.tex and use a lettrine in the 
header ?
  
_
Hotmail : Simple et Efficace qui vous facilite la vie… Découvrez la NOW 
génération !
http://www.windowslive.fr/hotmail/nowgeneration/___
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 headers variation

2010-05-24 Thread pol stra

That wasn’ t exactly what i expected but thanks to you i get it:

\definefont[BigFontOne][Regular sa 3] 
\definefont[BigFontTwo][RegularBold sa 2]  

\definecolor[BigColorOne][r=.86,g=.850,b=.54]
\definecolor[BigColorTwo][r=.43,g=.425,b=.27]

\def\ChapterCommand#1%
 {\doChapterCommand#1\end}

 \def\doChapterCommand#1#2\end
  {\rlap{\BigFontOne\BigColorOne#1}\kern15pt#1#2}


 \setuphead[chapter]
 [deeptextcommand=\ChapterCommand,
color=BigColorTwo,
style=\BigFontTwo]
 ]

Date: Sat, 15 May 2010 20:28:28 +0200
From: schuster.wolfg...@googlemail.com
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Chapter headers variation






  


Am 15.05.10 20:24, schrieb pol stra:

  Maybe
this could be done by modify t-lettrine.tex and use a lettrine in the
header ?




untested:



\def\ChapterCommand#1%

  {\doChapterCommand#1\end}



\def\doChapterCommand#1#2\end

  {{\red #1}#2}





\setuphead[chapter][deeptextcommand=\ChapterCommand]





Wolfgang


  
_
Installez gratuitement les nouvelles Emoch'ticones !
http://www.ilovemessenger.fr/emoticones/telecharger-emoticones-emochticones.aspx___
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] Pdf bookmarks with meta-structure (frontmatter, bodymatter etc)

2013-10-21 Thread pol stra
Hello,

In my document, when I use a meta-structure, I only get introduction and 
content bookmarks, while not using a meta-structure, I have my part and 
chapter (which is the desired behaviour). How can I get the same behaviour in 
both structures?
(by the way, how can I change the bookmarks of the table of contents, I tried 
\completecontent[bookmark=mytitle] and \setupcombinedlist[mytitle] without 
success).

Thank you all

Here is my sample code:

\setupinteraction [state=start]

\placebookmarks[part, chapter, section, title, subject][force=yes]

\setupcombinedlist[content][
list={title, part, chapter, subject, subsubject, section, subsection},
alternative=c]

\setuphead[part][placehead=yes, bodypartlabel=part]

\startmode[meta]
\startfrontmatter
\startchapter[title={Introduction}]
% \component c_introduction
\stopchapter

\completecontent[criterium=all]
\stopfrontmatter

\startbodymatter
\startpart[title={part}]
\startchapter[title={chapter1}]
\stopchapter
\stoppart
\stopbodymatter
\stopmode

\startmode[nonmeta]
\startchapter[title={Introduction}]
% \component c_introduction
\stopchapter

\completecontent[criterium=all]

\startpart[title={part}]
\startchapter[title={chapter1}]
\stopchapter
\stoppart
\stopmode

  ___
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] Pdf bookmarks with meta-structure (frontmatter, bodymatter etc)

2013-11-05 Thread Pol Stra
Le lundi 4 novembre 2013, 20:11:25 Hans Hagen a écrit :
 On 10/21/2013 6:45 PM, pol stra wrote:
  Hello,
  
  In my document, when I use a meta-structure, I only get introduction
  and content bookmarks, while not using a meta-structure, I have my
  part and chapter (which is the desired behaviour). How can I get the
  same behaviour in both structures?
  (by the way, how can I change the bookmarks of the table of contents, I
  tried \completecontent[bookmark=mytitle] and \setupcombinedlist[mytitle]
  without success).
  
  Thank you all
  
  Here is my sample code:
  
  \setupinteraction [state=start]
  
  \placebookmarks[part, chapter, section, title, subject][force=yes]
  
  \setupcombinedlist[content][
  
   list={title, part, chapter, subject, subsubject, section,
   subsection},
   alternative=c]
  
  \setuphead[part][placehead=yes, bodypartlabel=part]
  
  \startmode[meta]
  
   \startfrontmatter
   
   \startchapter[title={Introduction}]
   
   % \component c_introduction
   \stopchapter
   
   \completecontent[criterium=all]
   
   \stopfrontmatter
   
   \startbodymatter
   
   \startpart[title={part}]
   
   \startchapter[title={chapter1}]
   \stopchapter
   
   \stoppart
   
   \stopbodymatter
  
  \stopmode
  
  \startmode[nonmeta]
  
   \startchapter[title={Introduction}]
   
   % \component c_introduction
   \stopchapter
   
   \completecontent[criterium=all]
   
   \startpart[title={part}]
   
   \startchapter[title={chapter1}]
   \stopchapter
   
   \stoppart
  
  \stopmode
 
 If you want to influence the bookmark title you should explicitly set if
 (and then not use \complete ... but \place...). Anyhow, I've added an
 extra level to the bookmarks where you can also set the block titles.
 
 \setupinteraction
[state=start]
 
 \placebookmarks
[part,chapter,section,title,subject]
[force=yes]
 
 \setupcombinedlist
[content]
[list={part,chapter,section,subsection},
 alternative=c]
 
 \setuphead
[part]
[placehead=yes,
 bodypartlabel=part]
 
 \starttext
 
  \startfrontmatter[bookmark=A fancy title]
  \startchapter[title={The introduction}]
  \stopchapter
  \startchapter[title=Contents]
  \placecontent[criterium=all]
  \stopchapter
  \stopfrontmatter
 
  \startbodymatter
  \startpart[title={part}]
  \startchapter[title={Some chapter}]
  \stopchapter
  \stoppart
  \stopbodymatter
 
 \stoptext
 
 
 -
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
 
 -

Thank you for the job Hans!

___
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] bookmarks: frontpart, bodypart, etc. ???

2013-11-07 Thread pol stra
Le jeudi 7 novembre 2013, 10:00:00 Alan BRASLAU a écrit :
 Hello,
 
 The bookmark mechanism has changed in a very recent beta and now
 \startfrontmatter \stopfrontmatter
 \startbodymatter \stopbodymatter
 \startappendices \stopappendices
 \startbackmatter \stopbackmatter
 ALL now add bookmarks to the PDF document???
 This is VERY strange!
 
 I am using:
 \setupinteraction [state=start,option=bookmark]
 \setupinteractionscreen [option=bookmark]
 \placebookmarks [part,chapter,title,section,subsection]
 [part,chapter,title]
 
 
 Alan

This is because I asked for…

See the joined discussion.

You do not like it?

Le lundi 4 novembre 2013, 20:11:25 Hans Hagen a �crit :
 On 10/21/2013 6:45 PM, pol stra wrote:
  Hello,
  
  In my document, when I use a meta-structure, I only get introduction
  and content bookmarks, while not using a meta-structure, I have my
  part and chapter (which is the desired behaviour). How can I get the
  same behaviour in both structures?
  (by the way, how can I change the bookmarks of the table of contents, I
  tried \completecontent[bookmark=mytitle] and \setupcombinedlist[mytitle]
  without success).
  
  Thank you all
  
  Here is my sample code:
  
  \setupinteraction [state=start]
  
  \placebookmarks[part, chapter, section, title, subject][force=yes]
  
  \setupcombinedlist[content][
  
   list={title, part, chapter, subject, subsubject, section,
   subsection},
   alternative=c]
  
  \setuphead[part][placehead=yes, bodypartlabel=part]
  
  \startmode[meta]
  
   \startfrontmatter
   
   \startchapter[title={Introduction}]
   
   % \component c_introduction
   \stopchapter
   
   \completecontent[criterium=all]
   
   \stopfrontmatter
   
   \startbodymatter
   
   \startpart[title={part}]
   
   \startchapter[title={chapter1}]
   \stopchapter
   
   \stoppart
   
   \stopbodymatter
  
  \stopmode
  
  \startmode[nonmeta]
  
   \startchapter[title={Introduction}]
   
   % \component c_introduction
   \stopchapter
   
   \completecontent[criterium=all]
   
   \startpart[title={part}]
   
   \startchapter[title={chapter1}]
   \stopchapter
   
   \stoppart
  
  \stopmode
 
 If you want to influence the bookmark title you should explicitly set if
 (and then not use \complete ... but \place...). Anyhow, I've added an
 extra level to the bookmarks where you can also set the block titles.
 
 \setupinteraction
[state=start]
 
 \placebookmarks
[part,chapter,section,title,subject]
[force=yes]
 
 \setupcombinedlist
[content]
[list={part,chapter,section,subsection},
 alternative=c]
 
 \setuphead
[part]
[placehead=yes,
 bodypartlabel=part]
 
 \starttext
 
  \startfrontmatter[bookmark=A fancy title]
  \startchapter[title={The introduction}]
  \stopchapter
  \startchapter[title=Contents]
  \placecontent[criterium=all]
  \stopchapter
  \stopfrontmatter
 
  \startbodymatter
  \startpart[title={part}]
  \startchapter[title={Some chapter}]
  \stopchapter
  \stoppart
  \stopbodymatter
 
 \stoptext
 
 
 -
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
 
 -

Thank you for the job Hans!

___
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] troubles with labels

2013-12-29 Thread Pol Stra
Dear all,

with this minimalist content of metapost file:

```
beginfig(1);
dotlabel.ulft(A, origin);
endfig;
end.
```

And this conteXt file:

```
\starttext
\startMPrun
input mymp.mp;
\stopMPrun
\externalfigure[mprun.21][width=5cm]
\stoptext
```

The resulting pdf file contains no figure. But this conteXt file works:

```
\starttext
\startMPcode
dotlabel.ulft(A, origin);
\stopMPcode
\stoptext
```
As with any metapostfile which does not contain labels. But as soon as there is 
label, their is no figure.

Two last things:
if I compile the metapost file with standalone metapost, I can include the 
resulting file as an external figure. But if I put a label A', while with 
displaying figure with a viewer it is ok, when included in a conteXt file, I 
only obtain A label. Also, if I try to change the font in the metapost file 
(for example defaultfont:=pplr8r;) it does not work in conteXt.

Do you have an explanation or workaround?
Thank you




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

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


Re: [NTG-context] Project structure

2014-02-09 Thread Pol Stra
Le jeudi 6 février 2014, 22:25:05 Marco Patzer a écrit :
 On 2014–02–05 pol stra wrote:
  The problem is that only text of first introduction is used.
 
 You can use \allinputpaths to see what's going on. The paths are
 indeed added and ConTeXt walks through the list and uses a matching
 file, if found. This happens to always be the file of the first
 chapter.
 
 I don't know know of a command which resets the custom set up paths.
 If none exists, I doubt it will be hard to implement.
 
  I attached the project structure.
 
 Thanks for that.
 
 Marco

So, if I well understood, their is currently no solution but give a different 
name for each file?

___
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] Combination maxwidth

2014-03-07 Thread pol stra
Hello,

I tried to use a combination in a placefigure command with two figures side by 
side:

\placefigure[2][ref]{figure caption}
{\startcombination
{subcaption 1} {\externalfigure[myfigure1]} {subcaption 2} 
{\externalfigure[myfigure2]}
\stopcombination
}

But the result doesn't fit into the pagewidth. Is there maxwidth command like 
for combinations ?
Or there is a way to get distance so I could set myfigure1 and myfigure2 
maxwidth to 0.5*(\textwidth - distance) ?

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] Figure numbering with parts

2014-05-17 Thread Pol Stra
Hello,

I want to number my figures like this:
partnumber.sectionnumber.figurenumber

I didn't find documentation on \setupnumber.

I tried:

\setupnumber[figure][way=bypart, numberpart=yes]
\setupnumber[figure][way=bypart, numberpart=yes, prefixsegments=part]

But when changing part, the numbering starts again at 1.

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
___


Re: [NTG-context] Figure numbering with parts

2014-05-17 Thread Pol Stra
Le samedi 17 mai 2014, 11:25:04 Wolfgang Schuster a écrit :
 Am 17.05.2014 um 11:21 schrieb Pol Stra r...@hotmail.fr:
  Hello,
  
  I want to number my figures like this:
  partnumber.sectionnumber.figurenumber
  
  I didn't find documentation on \setupnumber.
  
  I tried:
  
  \setupnumber[figure][way=bypart, numberpart=yes]
  \setupnumber[figure][way=bypart, numberpart=yes, prefixsegments=part]
  
  But when changing part, the numbering starts again at 1.
 
 The counter setup for floats are controlled with the \setupcaption command.
 
 When you set “way=bypart” you tell context to reset the counter with each
 new \part heading.
 
 Wolfgang

Ok, I see: way=bypart is related to figurenumber. But what about the 
numeberpart attribute?

Let's say I have two parts with two sections in each. Currently, with 
\setupnumber[figure][way=bypart, numberpart=yes] I have:

Part 1
Section 1
figure 1.1
figure 1.2
Section 2
figure 2.3
figure 2.4
Part 2
Section 1
figure 1.1 % here we start again at 1 instead of 2
figure 1.2 % the 2 is OK, but not the 1
Section 2
figure 2.3
figure 2.4

While I want:

Part 1
Section 1
figure 1.1.1
figure 1.1.2
Section 2
figure 1.2.3
figure 1.2.4
Part 2
Section 1
figure 2.1.1
figure 2.1.2
Section 2
figure 2.2.3
figure 2.2.4

I think you missed an example in my previous message. ;-)
___
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] Figure numbering with parts

2014-05-17 Thread Pol Stra
Le samedi 17 mai 2014, 12:40:35 Wolfgang Schuster a écrit :
 Am 17.05.2014 um 12:28 schrieb Pol Stra r...@hotmail.fr:
  Le samedi 17 mai 2014, 11:25:04 Wolfgang Schuster a écrit :
  Am 17.05.2014 um 11:21 schrieb Pol Stra r...@hotmail.fr:
  Hello,
  
  I want to number my figures like this:
  partnumber.sectionnumber.figurenumber
  
  I didn't find documentation on \setupnumber.
  
  I tried:
  
  \setupnumber[figure][way=bypart, numberpart=yes]
  \setupnumber[figure][way=bypart, numberpart=yes, prefixsegments=part]
  
  But when changing part, the numbering starts again at 1.
  
  The counter setup for floats are controlled with the \setupcaption
  command.
  
  When you set “way=bypart” you tell context to reset the counter with each
  new \part heading.
  
  Wolfgang
  
  Ok, I see: way=bypart is related to figurenumber. But what about the
  numeberpart attribute?
  
  Let's say I have two parts with two sections in each. Currently, with
  \setupnumber[figure][way=bypart, numberpart=yes] I have:
  
  Part 1
  
  Section 1
  
  figure 1.1
  figure 1.2
  
  Section 2
  
  figure 2.3
  figure 2.4
  
  Part 2
  
  Section 1
  
  figure 1.1 % here we start again at 1 instead of 2
  figure 1.2 % the 2 is OK, but not the 1
  
  Section 2
  
  figure 2.3
  figure 2.4
  
  While I want:
  
  Part 1
  
  Section 1
  
  figure 1.1.1
  figure 1.1.2
  
  Section 2
  
  figure 1.2.3
  figure 1.2.4
  
  Part 2
  
  Section 1
  
  figure 2.1.1
  figure 2.1.2
  
  Section 2
  
  figure 2.2.3
  figure 2.2.4
  
  I think you missed an example in my previous message. ;-)
 
 I still miss some example code.
 
 You want to do is not possible with this structure because you go from parts
 to section without a chapter between them which leaves a gap in the prefix
 numbers.
 
 To fix this you have to change your sections to chapters or replace your
 parts with chapters.
 
 \useMPlibrary[dum]
 
 \setupcaption
   [figure]
   [way=bypart,
prefixsegments=part:chapter]
 
 \starttext
 
 \dorecurse{2}
   {\part{Part #1}
\dorecurse{2}
  {\chapter{Chapter ##1}
 \dorecurse{2}
   {\placefigure[force]{Dummy Figure 1}{\externalfigure[dummy]
 
 \stoptext
 
 Wolfgang

Oops! Sorry, I over simplified my use case: there *are* chapters in my 
documents.

Ok, with the sample of code you provided it works like I want. I shouldn't 
have used `setupnumber` but  `setupcaption`.

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

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

[NTG-context] [bug?] no space before \cite[data][] and after \abbreviation

2014-05-22 Thread pol stra
Hello,

I used see \cite[data] in a document and I obtained seeAuthor without space 
between see and Author. I think it is a bug.

I also had troubles with abbreviations (although it might be a bad use from 
myself):
setting \abbreviation{AB}{Abbreviation}

an \AB some text will give an ABsome text = missing space after 
abbreviation
an {\AB} some text will give an AB some text = OK
an \infull{AB} some text will give an  some text = missing expanded 
abbreviation

setting:
\definesynonyms[abbrev][abbrevs][\infull]
\setupsynonyms[style=normal]
\abbrev{AB}{Abbreviation}

an \AB some text will give an ABsome text = missing space after 
abbreviation
an {\AB} some text will give an AB some text = OK
an \infull{AB} some text will give an Abbreviation some text = OK

Is it bugs or I do something wrong ?

Best regards,
  ___
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?] no space before \cite[data][] and after \abbreviation

2014-05-25 Thread Pol Stra
Le jeudi 22 mai 2014, 16:15:22 Wolfgang Schuster a écrit :
 Am 22.05.2014 um 14:35 schrieb pol stra r...@hotmail.fr:
  Hello,
  
  I used see \cite[data] in a document and I obtained seeAuthor without
  space between see and Author. I think it is a bug.
  
  I also had troubles with abbreviations (although it might be a bad use
  from myself): setting \abbreviation{AB}{Abbreviation}
  
  an \AB some text will give an ABsome text = missing space after
  abbreviation an {\AB} some text will give an AB some text = OK
  an \infull{AB} some text will give an  some text = missing expanded
  abbreviation
 Spaces after commands (e.g. \TeX) are ignored, to keep the space you have to
 add “\ ” or “{} ” after the command.
 
 \abbreviation{AB}{Abbreviation}
 
 \starttext
 text \AB\ text \AB{} \infull{AB} text
 \stoptext
 
 
 There is also a automatic way for this where you don’t have add any thing
 after the command but there are a few exceptions where this doesn’t work.
 
 \abbreviation{AB}{Abbreviation}
 
 \setupsynonyms
   [abbreviation]
   [next=\autoinsertnextspace]
 
 \starttext
 text \AB text
 \stoptext
 
 Wolfgang

Thank you Wolfgang,
It is good to be aware about this behaviour.

What about the cite command and the space _before_?

Best regards 
___
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?] no space before \cite[data][] and after \abbreviation

2014-05-28 Thread pol stra


 Subject: Re: [NTG-context] [bug?] no space before \cite[data][] and after 
 \abbreviation
 From: schuster.wolfg...@gmail.com
 Date: Tue, 27 May 2014 16:38:28 +0200
 CC: ntg-context@ntg.nl
 To: r...@hotmail.fr
 
 
 Am 25.05.2014 um 09:27 schrieb Pol Stra r...@hotmail.fr:
 
  What about the cite command and the space _before_?
 
 Do you have a minimal example for this?
 
 Wolfgang

Sorry, it seems the issue appears only when used in footnote.
I joined a minimal example. You can see in the output that there is a space in 
the text, but not in the footnote.

Pol
  

test_bib.bib
Description: Binary data


test_cite.tex
Description: TeX document


test_cite.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] Which Image quality should I use ?

2014-07-13 Thread Pol Stra
Le samedi 12 juillet 2014, 16:14:25 Peter Münster a écrit :
 On Sat, Jul 12 2014, Pol Stra wrote:
  I think I should do something like:
  `convert -density 300 input.png -resize AAAxBBB output.png`
  
  but I don't know if it’s the good way to do it
 
 Hi,
 
 I can be done automatically for example by using this module:
 http://modules.contextgarden.net/grph-downsample
 

Thank you, it looks interesting. Is there a documentation somewhere or could 
you provide an example about how to use it ?

Also, it changes the resolution only at inclusion into the pdf or it does it 
on original files ? My concern is to give the sources in attachment of the 
document, so if I don't change those files, the document will still be huge. 

There is a way to include the source without duplicates images ?

  or which resolution is appropriate.
 
 It depends on the printer. 300dpi is often enough.

___
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] Metafun standalone and fonts

2014-09-27 Thread Pol Stra
Hello!

I have an mp file that I use with success in my document with mprun.

But if I try to generate the figure alone with this command:

mpost --mem=metafun myfigure.mp

I obtain this error:

 ! Font cmr10 not usable: TFM file not found.
 thelabel-...ture(EXPR3):infont.defaultfont.scaled
 
   .defaultscale.fi;(p.shifte
   ...
 
 l.22 label.ulft($\vec{k}$, point infinity of p4)
  ;

This is with my ConTeXt installation with only mkiv.
The ConTeXt installation with both mkiv and mkii, the error is:


 Warning: cannot open font map file psfonts.map
 ]
 Missing character: There is no 226 in font cmr10!

I tried to set:
defaultfont:=latinmodernmath;

Which is in the list of:
mtxrun --script fonts --list --all --pattern=

but it doesn't found the TFM file either.

I know I can use the:

\startMPpage
\input myfigure.mp
\stopMPpage

But the point is I want to generate an svg file, not a pdf.

(mpost -s 'outputformat=svg;prologues:=3' --mem=metafun myfigure.mp)


Note that with mpost command, it use metafun.mpii, while with mprun, it use 
metafun.mpiv.

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
___


Re: [NTG-context] Metafun standalone and fonts

2014-09-27 Thread Pol Stra
Le samedi 27 septembre 2014, 12:23:47 Hans Hagen a écrit :
 On 9/27/2014 10:21 AM, Pol Stra wrote:
  Hello!
  
  I have an mp file that I use with success in my document with mprun.
  
  But if I try to generate the figure alone with this command:
  
  mpost --mem=metafun myfigure.mp
 
 that will never work with metafun in mkiv as we have extensions
 
 just run
 
 context myfigure.mp
 
 or do:
 
 \starttext
 
 \startMPpage
 mp code
 \stopMPpage
 
 \stoptext
 
 and run that.
 
 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
 
 -

Ah, nice about directly use the context command!

Unfortunately, this only solve half of my problem: this outputs one pdf with 
all figures, while I try to output all figures in separated svg files.

My workaround is to put only one figure per file and convert the pdf with 
pdf2svg. I hoped there where a more direct way to do it.

Regards
___
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] \adaptpapersize doesn't change back

2014-11-18 Thread Pol Stra
Hello,

This message is just for bug report.

from wiki, the below example should switch back page 4 in portrait mode, 
but it doesn't. (ConTeXt  ver: 2014.11.17 14:32 MKIV beta)

\definepapersize[main] [A4]
\definepapersize[extra][A4,landscape]
\setuppapersize[main]
\starttext
Page 1. Portrait \page
Page 2. Portrait \page
\adaptpapersize[extra]
Page 3. Landscape \page
Page 4. Portrait \page
\stoptext


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

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