Re: [NTG-context] texshow
On 3 Dec 2009 at 18:50, ntg-context-requ...@ntg.nl wrote: Von:ntg-context-requ...@ntg.nl Betreff:ntg-context Digest, Vol 66, Issue 17 An: ntg-context@ntg.nl Antwort an: ntg-context@ntg.nl Datum: Thu, 03 Dec 2009 18:50:04 +0100 > > I can't find a file 'texshow.pl' anymore at my context tree. > > Is the file excluded in actual minimals? > > mtxrun --script server --auto I tried to use this command under windows 2000 scite (console). The process does not do anything obvious. I have killed it after some time. Can I download 'texshow.pl' somewhere? Gruß, 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] How to count with chapter
Hallo, is this a bug too? --- %\chapter{Bla} \definenumber[PC]\getnumber[PC] \setnumber[PC]{1}\getnumber[PC] \incrementnumber[PC]\getnumber[PC] \incrementnumber[PC]\getnumber[PC] --- Without \chapter I get: 0 1 2 3 With \chapter: 0 1 1 2 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] verb-pl.mkii
Hallo, this seems to be a little bug! Inside 'verb-jv.mkii' should 'verb-pl.mkii' be loaded, but it isn't because of not having a standard extension. 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] texshow
Hallo, I can't find a file 'texshow.pl' anymore at my context tree. Is the file excluded in actual minimals? 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] 2UP
Hallo, years ago I had the same problem: with 2UP the table of contents is not included! Wasn't this a bug? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Scite + non-global environbment variables
> Date: Mon, 26 Oct 2009 10:39:00 +0100 > From: Wolfgang Hugemann > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] Scite + non-global environbment > variables > Message-ID: <4ae56e34.70...@hugemann.de> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > Look at the label ':help' in 'cscite.bat'. > > I had done this already. All that is says is > echo usage: cscite root, e.g. cscite d:\copyofcdrom > leaving you with the question which root of what is meant. > > I tested the root directory of context "C:\Programme\contextminimal" This is right! > It seems like I need another hint. YOU have to give some hints! What are you doing? What is happening? Gruß, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Scite + non-global environbment variables
> Date: Fri, 23 Oct 2009 19:24:37 +0200 > From: Wolfgang Hugemann > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] Scite + non-global environbment > variables > Message-ID: <4ae1e6d5.4010...@hugemann.de> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > you should not have any global Context environment variables, > > because you call cscite.bat (setuptex.bat is called then before > > > scite > > is started). > > The problems I see are miktex executables which are in the PATH > > and can interfere with their context equivalents. > > How exactly are you starting scite? > > Well, I just ran scite.exe. OK, I downloaded cscite.bat now. Is > there > somewhere any explanation with what parameters to call this batch? > I could not find such a documentation and the batch is by far not > self-explaning. (This is a really frustrating start with ConTeXt; I > hope it doesn't stay like this.) Look at the label ':help' in 'cscite.bat'. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnote
On 13 Oct 2009 at 23:17, ntg-context-requ...@ntg.nl wrote: Hallo Wolfgang, > > 2.--- > > I want some space on the left of \start\stoptables. > > What I get is SOME space, but not that what I wanted! > > > > \starttables[|l|] > > \starttables[o0|i(3cm)l|] > > > Where is that little space from? Yes, this works. But my example was too simple. I actually have: \starttables[|p(5cm)|lI|] \NC hmm \NC bla \NC\MR \stoptables and this one \starttables[o0|i(3cm)p(5cm)|lI|] \NC hmm \NC bla \NC\MR \stoptables does not work. I don't understand what is going on here! Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnotes
On 6 Oct 2009 at 12:00, ntg-context-requ...@ntg.nl wrote: Hallo, I am a little pressed on time. So I need a solution or a workaround for the following two problems I have posted recently: 1.-- > > please look at the following example: > > > > \starttext > > {\tfx Bla\footnote{Eins}} > > > > \midaligned{Zack\footnote{Zwei}} > > > > Blub\footnote{Drei} > > \stoptext > > > > The second footnote is missing 2.--- I want some space on the left of \start\stoptables. What I get is SOME space, but not that what I wanted! --- \starttext vorher \setupnarrower[left=3cm] \startnarrower[left] \starttables[|l|] \NC hmm \NC\MR \stoptables \stopnarrower nachher \stoptext --- Where is that little space from? How can I get a left space of, say 3cm? 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] left align and tables
Hallo I want some space on the left of \start\stoptables. What I get is SOME space, but not that what I wanted! --- \starttext vorher \setupnarrower[left=3cm] \startnarrower[left] \starttables[|l|] \NC hmm \NC\MR \stoptables \stopnarrower nachher \stoptext --- Where is that little space from? How can I get a left space of, say 3cm? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Scite + non-global environbment variables
Hallo Wolfgang, > I have just started with Context, having been working with LaTeX > (i.e. MikTeX / TeXnicCenter under WIndows) for quite a while. > > I installed Contextminimal and Scite just as proposed as the easiest > way to get started. As setting global environments variables would > interfere with MikTeX, I switched off this option during the > installation process (in the GUI Windows installation program). > > But now I cannot easily start the compilation by pressing Crtl+1 in > Scite, bcause this just calls the compiler and the environment > variables are of course not set for this process. So which file do I > have to change to make Scite call the batch file which sets the > environments variables before it calls the compiler? > > What global Context environment variables would possibly interfere > with MikTeX? > > Greatings from M?nster > Wolfgang Hugemann you should not have any global Context environment variables, because you call cscite.bat (setuptex.bat is called then before scite is started). The problems I see are miktex executables which are in the PATH and can interfere with their context aequivalents. How exactly are you starting scite? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnote
Hi Taco, > Wolfgang Werners-Lucchini wrote: > > Hallo, > > > > please look at the following example: > > > > \starttext > > {\tfx Bla\footnote{Eins}} > > > > \midaligned{Zack\footnote{Zwei}} > > > > Blub\footnote{Drei} > > \stoptext > > > > The second footnote is missing > > verified (both mkii and mkiv) > > > and the numbersize of the first is > > smaller than the third. > > I am not sure about that, I do did not notice a difference > (2009.09.28 09:02, MKII && MKIV). > > Best wishes, > Taco please look at the numbers in the footnotes, not the footnote numbers in the text. I think it is obvious. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] footnotes
Hallo, please look at the following example: \starttext {\tfx Bla\footnote{Eins}} \midaligned{Zack\footnote{Zwei}} Blub\footnote{Drei} \stoptext The second footnote is missing and the numbersize of the first is smaller than the third. I use ConTeXt ver: 2009.06.14 21:01. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ctxtools error
Hallo, I had to install a new ruby and get errors with ctxtools now: - ConTeXt ver: 2009.06.14 21:01 MKII fmt: 2009.8.15 int: english/english >ruby --version ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mswin32] >texmfstart ctxtools --purge --all e:/context/tex/texmf-context/scripts/context/ruby/ctxtools.rb:1330: invalid multibyte char (US-ASCII) e:/context/tex/texmf-context/scripts/context/ruby/ctxtools.rb:1330: invalid multibyte char (US-ASCII) e:/context/tex/texmf-context/scripts/context/ruby/ctxtools.rb:1330: syntax error, unexpected $end, expecting ')' remap(">2r1<2r", "[2ῤ1ῥ]") ^ >Exit code: 1 - What can I do? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] astronomy symbols
Hallo Wolfgang, > > But what is wrong with my code? Why does it not work? > > Take a look at the log file when the font is read. > > load afm | reading > /Users/wolf/context/tex/texmf/fonts/afm/public/wasy/ > wasy10.afm > load afm | unifying /Users/wolf/context/tex/texmf/fonts/afm/public/ > wasy/wasy10.afm > afm glyph | assigning private slot U+F for unknown glyph name > AC > afm glyph | assigning private slot U+F0001 for unknown glyph name > kreuz > ... > afm glyph | assigning private slot U+F0016 for unknown glyph name > saturn > ... I can not find such lines in the log file. Do you have some special switches? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] astronomy symbols
Hallo Wolfgang, > > I can not produce astronomy symbols. > > % Unicode Fonts: http://users.teilar.gr/~g1951d/ > % > % the font for the symbols is hardcoded but as we have in mkiv > fonts > % with more symbols a command to change the font would make sense > > \definefontsynonym [UnicodeSymbols] [name:unicodesymbols] > > \def\UnicodeSymbol#1{\getglyph{UnicodeSymbols}{\utfchar{#1}}} > > \startsymbolset [miscellaneoussymbols] > > \definesymbol[blacktelephone][\UnicodeSymbol{"260E}] > \definesymbol[whitetelephone][\UnicodeSymbol{"260F}] > > \definesymbol[mercury] [\UnicodeSymbol{"263F}] > \definesymbol[earth] [\UnicodeSymbol{"2641}] > \definesymbol[jupiter] [\UnicodeSymbol{"2643}] > \definesymbol[saturn][\UnicodeSymbol{"2644}] > \definesymbol[uranus][\UnicodeSymbol{"2645}] > \definesymbol[neptune] [\UnicodeSymbol{"2646}] > \definesymbol[pluto] [\UnicodeSymbol{"2647}] > > \stopsymbolset > > Wolfgang It is good to know, that there is an alternative. I will try it! But what is wrong with my code? Why does it not work? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] astronomy symbols
Hallo, I can not produce astronomy symbols. I use: LuaTeX, Version beta-0.40.6-2009070100 (Web2C 2009) ConTeXt ver: 2009.06.14 21:01 MKIV fmt: 2009.7.16 int: english/english Here a testfile: -- \usesymbols[was] \setupsymbolset [wasy astronomy] \def\Sat{\symbol[saturn]} \starttext \Sat \stoptext -- The testfile works ok with MK II Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] type problems
Hallo Wolfgang, it is amazing to see, that you are always able to draw a new white rabbit out of your context-hat! is \mono the youngest incarnation of \type, \retype ...? > \starttext > \mono{\%}\mono{\letterpercent} > \mono{\{}\mono{\letterleftbrace} % \mono{\{} works only with MkIV > \mono{\#}\mono{\letterhash} > \startlines > \mono{bla}blub > \stoplines > \stoptext What about \mono{Dies|Das}? Is'nt it frustrating? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] type problems
Hallo, I have always problems with verbatim text. Sometimes I found a solution, sometimes a workaround. Are there solutions to - print text with a verbatim '%' sign - print text with a verbatim '{' why is in the following example '#' --> '##'? why is there a newline between 'bla' and 'blub'? \starttext %\type{%} %\type{{} \retype{#} \startlines \retype{bla}blub \stoplines \stoptext 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \quotation and figure
Hallo, isn't this a very old bug with \quotation and \placefigure? \starttext \placefigure[left]{Bla}{\externalfigure[dummy][height=.3\textheight,wi dth=.3\textwidth]} \quotation{\input tufte } \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \footnotetext
Hallo! with new context the same error with mkiv (mkii is ok): -- >texmfstart texexec --autopdf --luatex tst.tex TeXExec | processing document 'tst.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file tst.top TeXExec | using randomseed 181 TeXExec | tex engine: luatex TeXExec | tex format: cont-en This is LuaTeX, Version beta-0.40.0-2009042221 (Web2C 7.5.7) \write18 enabled. (tst.tex ConTeXt ver: 2009.05.04 11:10 MKIV fmt: 2009.5.5 int: english/english system : cont-new loaded (d:/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (d:/context/tex/texmf-context/tex/context/base/cont-new.mkiv) (d:/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-fil loaded (d:/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (d:/context/tex/texmf-context/tex/context/user/cont-sys.rme (d:/context/tex/texmf-context/tex/context/base/type-tmf.tex) (d:/context/tex/texmf-context/tex/context/base/type-siz.tex (d:/context/tex/texmf-context/tex/context/base/type-siz.mkiv)) (d:/context/tex/texmf-context/tex/context/base/type-otf.tex (d:/context/tex/texmf-context/tex/context/base/type-otf.mkiv))) system : tst.top loaded (tst.top) fonts : preloading latin modern fonts bodyfont: 12pt rm is loaded language: language en is active systems : begin file tst at line 1 references : unknown reference [][bla] ! Undefined control sequence. l.3 \footnotetext [bla]{blub} ? -- Am I the only one with this error? Wolfgang > in order to use footnotes in a table, I use \footnotetext and \note. > But it is not workink. The following test > > \starttext > Bla\note[bla]. > \footnotetext[bla]{blub} > \stoptext > > gives the following error: > > - > >texmfstart texexec --autopdf --luatex tst.tex > TeXExec | processing document 'tst.tex' > TeXExec | no ctx file found > TeXExec | tex processing method: context > TeXExec | TeX run 1 > TeXExec | writing option file tst.top > TeXExec | using randomseed 1433 > TeXExec | tex engine: luatex > TeXExec | tex format: cont-en > This is LuaTeX, Version beta-0.40.0-2009042221 (Web2C 7.5.7) > \write18 enabled. > (tst.tex > > ConTeXt ver: 2009.04.29 20:23 MKIV fmt: 2009.5.4 int: > english/english > > system : cont-new loaded > (d:/context/tex/texmf-context/tex/context/base/cont-new.tex > systems : beware: some patches loaded from cont-new.tex > (d:/context/tex/texmf-context/tex/context/base/cont-new.mkiv) > (d:/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) > system : cont-fil loaded > (d:/context/tex/texmf-context/tex/context/base/cont-fil.tex > loading : ConTeXt File Synonyms > ) > system : cont-sys.rme loaded > (d:/context/tex/texmf-context/tex/context/user/cont-sys.rme > (d:/context/tex/texmf-context/tex/context/base/type-tmf.tex) > (d:/context/tex/texmf-context/tex/context/base/type-siz.tex > (d:/context/tex/texmf-context/tex/context/base/type-siz.mkiv)) > (d:/context/tex/texmf-context/tex/context/base/type-otf.tex > (d:/context/tex/texmf-context/tex/context/base/type-otf.mkiv))) > system : tst.top loaded > (tst.top) > fonts : preloading latin modern fonts > bodyfont: 12pt rm is loaded > language: language en is active > systems : begin file tst at line 1 > references : unknown reference [][bla] > load otf | loading: > d:/context/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf > load otf | file size: 107188 > load otf | enhancing ... > load otf | saving in cache: > d:/context/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf > load otf | loading: > d:/context/tex/texmf/fonts/opentype/public/lm/lmroman8-regular.otf > load otf | file size: 107404 > load otf | enhancing ... > load otf | saving in cache: > d:/context/tex/texmf/fonts/opentype/public/lm/lmroman8-regular.otf > ! Undefined control sequence. > l.3 \footnotetext > [bla]{blub} > ? > - > > What is wrong here? > > Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \footnotetext
Hallo, in order to use footnotes in a table, I use \footnotetext and \note. But it is not workink. The following test \starttext Bla\note[bla]. \footnotetext[bla]{blub} \stoptext gives the following error: - >texmfstart texexec --autopdf --luatex tst.tex TeXExec | processing document 'tst.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file tst.top TeXExec | using randomseed 1433 TeXExec | tex engine: luatex TeXExec | tex format: cont-en This is LuaTeX, Version beta-0.40.0-2009042221 (Web2C 7.5.7) \write18 enabled. (tst.tex ConTeXt ver: 2009.04.29 20:23 MKIV fmt: 2009.5.4 int: english/english system : cont-new loaded (d:/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (d:/context/tex/texmf-context/tex/context/base/cont-new.mkiv) (d:/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-fil loaded (d:/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (d:/context/tex/texmf-context/tex/context/user/cont-sys.rme (d:/context/tex/texmf-context/tex/context/base/type-tmf.tex) (d:/context/tex/texmf-context/tex/context/base/type-siz.tex (d:/context/tex/texmf-context/tex/context/base/type-siz.mkiv)) (d:/context/tex/texmf-context/tex/context/base/type-otf.tex (d:/context/tex/texmf-context/tex/context/base/type-otf.mkiv))) system : tst.top loaded (tst.top) fonts : preloading latin modern fonts bodyfont: 12pt rm is loaded language: language en is active systems : begin file tst at line 1 references : unknown reference [][bla] load otf | loading: d:/context/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf load otf | file size: 107188 load otf | enhancing ... load otf | saving in cache: d:/context/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf load otf | loading: d:/context/tex/texmf/fonts/opentype/public/lm/lmroman8-regular.otf load otf | file size: 107404 load otf | enhancing ... load otf | saving in cache: d:/context/tex/texmf/fonts/opentype/public/lm/lmroman8-regular.otf ! Undefined control sequence. l.3 \footnotetext [bla]{blub} ? - What is wrong here? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mkII with minimals
Hallo, I just installed the minimals and got the following error - >texmfstart texexec --autopdf --pdf antrag.tex TeXExec | processing document 'antrag.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file antrag.top TeXExec | using randomseed 768 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 7.5.7) \write18 enabled. (d:/context/tex/texmf-context/web2c/natural.tcx) I can't find the format file `cont-en.fmt'! kpathsea: Running mktexfmt cont-en.fmt TeXExec | runtime: 2.794 >Exit code: 1 - luatex is working ok. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to update/install minimals
Hallo, I wanted to update a minimal-installation under windows. The first attempt was to invoke: first-detup --keep (found at the garden) The result was the following output, nothing else happend: - receiving incremental file list ./ mtxrun.lua sent 2897 bytes received 2103 bytes 2000.00 bytes/sec total size is 4983352 speedup is 996.67 MTXrun | fileio: variable SELFAUTOLOC set to D:/context/bin MTXrun | fileio: variable SELFAUTODIR set to D:/context MTXrun | fileio: variable SELFAUTOPARENT set to D: MTXrun | fileio: variable TEXMFCNF set to {$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{- local,.local,}/web2c} MTXrun | fileio: no cnf files found (TEXMFCNF may not be set/known) MTXrun | using script: ./bin/mtx-update.lua D:\context\bin\mtxrun.lua:1611: attempt to call field 'env' (a table value) When you want to use context, you need to initialize the tree with: D:\context\tex\setuptex.bat D:\context\tex You can associate this command with a shortcut to the cmd prompt. - What is the field 'env'? The second attempt was the reinstall context. I downloaded: http://minimals.contextgarden.net/setup/context-setup-mswin.zip to a new directory and started first-setup. But the result was identical to the first. What I am doing wrong? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] colored column
On 21 Jan 2009 at 10:47, ntg-context-requ...@ntg.nl wrote: Von:ntg-context-requ...@ntg.nl Betreff:ntg-context Digest, Vol 55, Issue 64 An: ntg-context@ntg.nl Antwort an: ntg-context@ntg.nl Datum: Wed, 21 Jan 2009 10:47:43 +0100 > Hallo Hans, > > > > > What is the problem here? > > > > > > maybe a typo? \{C{red} looks weird > > > > > > > See: > > > --- > % > > Key "\{": Enclose template in braces. \NewFormatKey \{{% > > > \!taDataColumnTemplate=\!thx{\!thx{\the\!taDataColumnTemplate}}% > > \ReadFormatKeys} > > > --- > in > > thrd-tab.tex > > Will this FormatKey be repaired? > > If yes, I would keep this in my example collection. > Hmm! Maybe I have overseen an answer. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Content head
Hallo, I would like to def a costum head, but I also want the pure word 'Inhaltsverzeichnis' as content head. I tryed: \def\Vortrag#1#2{#1~Vortrag:~#2}% \setuphead[chapter][command=\Vortrag ] \definehead[contenthead][title] \starttext \contenthead{Inhaltsverzeichnis} \placecontent \chapter{Bla} blub \stoptext But the content head is still prefixed with 'Vortrag:'. What is the solution for this? Gruß, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] colored column
Hallo Hans, > > > What is the problem here? > > > > maybe a typo? \{C{red} looks weird > > > > See: > --- > % Key "\{": Enclose template in braces. > \NewFormatKey \{{% > \!taDataColumnTemplate=\!thx{\!thx{\the\!taDataColumnTemplate}}% > \ReadFormatKeys} > --- > in thrd-tab.tex Will this FormatKey be repaired? If yes, I would keep this in my example collection. Gruß, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] colored column
Hallo Hans, > > What is the problem here? > > maybe a typo? \{C{red} looks weird > See: --- % Key "\{": Enclose template in braces. \NewFormatKey \{{% \!taDataColumnTemplate=\!thx{\!thx{\the\!taDataColumnTemplate}}% \ReadFormatKeys} --- in thrd-tab.tex > > \starttable[o1|C{red}|] > \VL red \VL\SR > \stoptable This doesn't work! Try \starttable[o1|C{red}|c|] \VL red \VL should be black \VL\SR \stoptable Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] colored column
Hallo Wolf[gang], > > \setupcolors[state=start] > > \starttext > > \starttable[ o1 | \{C{red} |] > > \VL red \VL\SR > > \stoptable > > \stoptext > > > > This was an older example which worked some years ago (see: > > http://www.ntg.nl/pipermail/ntg-context/2006/020803.html), but is > not > > working anymore. > > > > What is the problem here? > > I can' help you to fix the original keys (need to be done by Hans) > but you could define your own key. > > \NewFormatKey W#1% >{\ReadFormatKeys b{\localstartcolor[#1]\{} > a{\}\localstopcolor}} > > \setupcolors[state=start] > \starttext > \starttable[o1|W{red}c|] > \VL red \VL\SR > \stoptable > \stoptext > > Regards, > Wolf It is allways nice to learn something new. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] colored column
Hallo! \setupcolors[state=start] \starttext \starttable[ o1 | \{C{red} |] \VL red \VL\SR \stoptable \stoptext This was an older example which worked some years ago (see: http://www.ntg.nl/pipermail/ntg-context/2006/020803.html), but is not working anymore. What is the problem here? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Some Metapost Problems
Hallo, > Mojca Miklavec wrote: > >> > >>> You need > >>> \runMPgraphicstrue > >> Yes, this helps! > >> > >> But what are the sideeffects? When is the opposite needed? > > \runMPgraphicfalse is faster when you need two tex runs anyway, > because it collects all the graphics in a single metapost run > which is a more efficient way of generating the graphics (in > mkii), > that is its reason for existence. But sometimes it doesn't work, > so having \runMPgraphicstrue in your cont-usr.tex is not a bad > idea. I did this, but 'cont-usr.tex' is never included (windows minimal). The file 'core-job.tex' should do this but it is itself not included. Is 'core-job.tex' not needed? 'cont-sys.tex' has a commented entry \runMPgraphicstrue uncommenting this works. There is also a variable \runMPTEXgraphicstrue. What is this for? Should this be uncommented, too? Will this be overwritten with the next update? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Some Metapost Problems
Hallo Mojca, > > 1. The labels of the first graphic are xscaled (randomly) > > They are not scaled randomly :P > They inherit the sizes from the second graphic. > > See > > http://archive.contextgarden.net/message/20061204.102337.280a6589.en > .html strange > You need > \runMPgraphicstrue Yes, this helps! But what are the sideeffects? When is the opposite needed? > These settings are used exclusevely for btex ... etex and textext. > \sometxt uses the surounding font. > > There could be some settings for fonts in metapost graphics, but > I'm not aware of any. > However, it's rather easy to either: > > a) write your own metapost macro for placing labels that scales > down > everything by 20% > label.top(myscaled(\sometxt{Samstag}), z0) ; > where > vardef myscaled(expr t) = (t scaled 0.8) enddef; This works. > b) write your own handle > \definetextext[scaled]{\switchtobodyfont[8pt]\strut} > and then > label.top(\sometxt[scaled]{Samstag}, z0) ; This works, too. Where is this documented? > c) write your own macro or put some font size switch in front of > the graphic (I did not try it out) > \long\def\startuseMPgraphicwithscaledtext#1\stopuseMPgraphicwithscal > edtext > {\bgroup\switchtobodyfont[8pt]\startuseMPgraphic#1\stopuseMPgraphic\ > egroup} This is not working. Even an explizit {\switchtobodyfont[8pt] \startuseMPgraphic \stopuseMPgraphic } didn't work. I will use one of the other solutions. Thank you very much! Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Some Metapost Problems
Hallo, I have a lot of problems with the following example: \usetypescriptfile[type-exa] \usetypescript[iwona][ec] \setupbodyfont[iwona,11pt] \startMPenvironment%[global] \usetypescript[iwona][ec] \setupbodyfont[iwona,8pt] \stopMPenvironment \startuseMPgraphic{Wochentage} save x,y ; z0 = (3cm,6cm) ; for i:=1 upto 6: z[i] = z[i-1] rotatedaround((3cm,3cm),720/7) ; endfor ; label.top(\sometxt{Samstag}, z0) ; label.lft(\sometxt{Donnerstag}, z1) ; label.lrt(\sometxt{Dienstag}, z2) ; label.urt(\sometxt{Sonntag}, z3) ; label.ulft(\sometxt{Freitag}, z4) ; label.llft(\sometxt{Mittwoch}, z5) ; label.rt(\sometxt{Montag}, z6) ; \stopuseMPgraphic \startuseMPgraphic{Tierkreis} save x,y ; z0 = (4cm,8cm) rotatedaround((4cm,4cm),15) ; for i:=1 upto 11: z[i] = z[i-1] rotatedaround((4cm,4cm),30) ; endfor ; label.ulft(\sometxt{Zwillinge}, z0) ; label.ulft(\sometxt{Stier}, z1) ; label.lft(\sometxt{Widder}, z2) ; label.lft(\sometxt{Fische}, z3) ; label.llft(\sometxt{Wassermann}, z4) ; label.llft(\sometxt{Steinbock}, z5) ; label.lrt(\sometxt{Schütze}, z6) ; label.lrt(\sometxt{Skorpion}, z7) ; label.rt(\sometxt{Waage}, z8) ; label.rt(\sometxt{Jungfrau}, z9) ; label.urt(\sometxt{Löwe}, z[10]) ; label.urt(\sometxt{Krebs}, z[11]) ; \stopuseMPgraphic \starttext \useMPgraphic{Wochentage} Bla \useMPgraphic{Tierkreis} \stoptext 1. The labels of the first graphic are xscaled (randomly) when the second graphic is included. Comment the second, and the first is ok. What I am doing wrong here? This seems to be ok with luatex. 2. The settings in \startMPenvironment do not use the smaller font size [8pt] without [global]. And the outside Text (Bla) remains not big [11pt] with [global]. How can I toggle the two sizes differently? 3. After editing the mp-code I allways have to purge files between two runs. Is this normal? Thanks for your help Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Some Metapost Problems
Hallo, I have a lot of problems with the following example: \usetypescriptfile[type-exa] \usetypescript[iwona][ec] \setupbodyfont[iwona,11pt] \startMPenvironment%[global] \usetypescript[iwona][ec] \setupbodyfont[iwona,8pt] \stopMPenvironment \startuseMPgraphic{Wochentage} save x,y ; z0 = (3cm,6cm) ; for i:=1 upto 6: z[i] = z[i-1] rotatedaround((3cm,3cm),720/7) ; endfor ; label.top(\sometxt{Samstag}, z0) ; label.lft(\sometxt{Donnerstag}, z1) ; label.lrt(\sometxt{Dienstag}, z2) ; label.urt(\sometxt{Sonntag}, z3) ; label.ulft(\sometxt{Freitag}, z4) ; label.llft(\sometxt{Mittwoch}, z5) ; label.rt(\sometxt{Montag}, z6) ; \stopuseMPgraphic \startuseMPgraphic{Tierkreis} save x,y ; z0 = (4cm,8cm) rotatedaround((4cm,4cm),15) ; for i:=1 upto 11: z[i] = z[i-1] rotatedaround((4cm,4cm),30) ; endfor ; label.ulft(\sometxt{Zwillinge}, z0) ; label.ulft(\sometxt{Stier}, z1) ; label.lft(\sometxt{Widder}, z2) ; label.lft(\sometxt{Fische}, z3) ; label.llft(\sometxt{Wassermann}, z4) ; label.llft(\sometxt{Steinbock}, z5) ; label.lrt(\sometxt{Schütze}, z6) ; label.lrt(\sometxt{Skorpion}, z7) ; label.rt(\sometxt{Waage}, z8) ; label.rt(\sometxt{Jungfrau}, z9) ; label.urt(\sometxt{Löwe}, z[10]) ; label.urt(\sometxt{Krebs}, z[11]) ; \stopuseMPgraphic \starttext \useMPgraphic{Wochentage} Bla \useMPgraphic{Tierkreis} \stoptext 1. The labels of the first graphic are xscaled (randomly) when the second graphic is included. Comment the second, and the first is ok. What I am doing wrong here? This seems to be ok with luatex. 2. The settings in \startMPenvironment do not use the smaller font size [8pt] without [global]. And the outside Text (Bla) remains not big [11pt] with [global]. How can I toggle the two sizes differently? 3. After editing the mp-code I allways have to purge files between two runs. Is this normal? Thanks for your help Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \definecolor
> >>> isn't there a three-parameter version of \definecolor ? > >>> It doesn't work. > >>> > >>> \setupcolors[state=start] > >>> \definecolor [MyBlue][blue][p=.2] > >>> \starttext > >>>\color[MyBlue]{Bla} > >>> \stoptext > >> \definespotcolor (three args is too messy) > > > > Ok! Then there are a lot of wiki-pages wrong. > > Who is allowed to correct this? > > you done It is also wrong in 'msplit.pdf' for example and in 'pdftools.rb' Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \definecolor
> > isn't there a three-parameter version of \definecolor ? > > It doesn't work. > > > > \setupcolors[state=start] > > \definecolor [MyBlue][blue][p=.2] > > \starttext > >\color[MyBlue]{Bla} > > \stoptext > > \definespotcolor (three args is too messy) Ok! Then there are a lot of wiki-pages wrong. Who is allowed to correct this? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \definecolor
Hallo, isn't there a three-parameter version of \definecolor ? It doesn't work. \setupcolors[state=start] \definecolor [MyBlue][blue][p=.2] \starttext \color[MyBlue]{Bla} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] page-log.tex
Hallo! I tried to download and unzip context-setup-mswin.zip. The wiki says 'Run first-setup.bat, go for a coffee.' But thats not possible. I am six times asked for a replacement name for 'page-log.tex' which does not exist. I gave him 'page-log.mkii' and finally all goes ok. Wolfgang -- Musensturm-Verlag -- Postfach 1249 -- 36126 Gersfeld >>> http://www.musensturm.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] frameoffset in textbackground
Hallo, I asked this question a week ago, but got no answer. Does anybody know what is 'frameoffset' for? I can not see any difference with and without this parameter. -- \setupcolors[state=start] \definetextbackground[strong] [backgroundcolor=lightgray, location=paragraph, frame=on, frameoffset=5mm] \starttext bla \starttextbackground[strong] zack \stoptextbackground blub \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] frameoffset in textbackground
Hallo, what is 'frameoffset' for? There seems to be no difference with and without this key. -- \setupcolors[state=start] \definetextbackground[strong] [backgroundcolor=lightgray, location=paragraph, frame=on, frameoffset=5mm] \starttext bla \starttextbackground[strong] zack \stoptextbackground blub \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] letter
> To: "mailing list for ConTeXt users" > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi Wolfgang, > > > it seems to me that referenzline, subject, foldmarks, etc, are > about > > 4mm or 5mm to big (A4 paper). The foldmark for example should be > > 105mm from papertop. It is 110mm from top. > > The horizontal offset (3.5mm) of foldmarks ist to small. A > > laserprinter often is not able to print 5mm or more from > paperedge. > > So the foldmarks are invisibel. > > I never measured the real values and it should be simple > whitespace > problem somewhere in the code. Have you found that whitespace? Aren't the foldmarks positioned in absolute values relative to the page? There is no whitespace involved, isn't it? So I don't understand this 5mm offset at all. Are your vertical foldmark positions ok? > The address field was wrong placed and I corrected it, the place for > the > referenece line should work but I change the position dependen on > the > alternative for the layout and the value in the default letterstyle > is ignored > at the moment. > > Don't what do you mean about the subject, the position is controlled > with > the normal page layout. But the bodyspace depends on the space occupied by the header (addresfield, referenceline etc.). Wrong? > I could change the values for the foldmarks, I corrected the > position > already and it got them at least on my own printer. You could try > to > play with \setupletterstyle[topmark,botmark,cutmark][hoffset=...] > and > give me a value that did work for your printer. 6mm should be enough for laserprinters. Grusz, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] letter
Hallo Wolfgang, it seems to me that referenzline, subject, foldmarks, etc, are about 4mm or 5mm to big (A4 paper). The foldmark for example should be 105mm from papertop. It is 110mm from top. The horizontal offset (3.5mm) of foldmarks ist to small. A laserprinter often is not able to print 5mm or more from paperedge. So the foldmarks are invisibel. Grusz, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] letter
> have you called "luatools --generate" because this is neccesary > for MkIV to let it find new files in your TeX tree. Ok! I have learned this now. Is this a replacement or an additive to mktexlsr? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mplib
Hi Taco, > I can remove that line, it is misleading. The content of the > log file is in .log What do you mean with ? There is only ONE log file and that is tst10.log (the log file of the tst10.tex which runs the above code). Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] letter
Hallo Wolfgang, > > 2.) 'letter-17.tex' with luatex (ConTeXt ver: 2008.04.11 00:07 > MKIV > > fmt: 2008.4.11 int: english/english) > > > > system : module t-letter not found > > ! Undefined control sequence. > > l.5 \setupletterstyle > > > > but > > > > kpsewhich t-letter > > d:/context/tex/texmf-project/tex/context/third/letter/base/t- > > letter.tex > could you try to use \usemodule[t][letter] instead of > \usemodule[letter]. I have tried \usemodule[letter] \usemodule[t-letter] \usemodule[t][letter] \input t-letter all negativ kpsewhich finds it, as I wrote I got the error: system : module t-letter not found there is no letter.tex (this all is with luatex, MKII with same context finds it.) Gruß, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] letter
Hallo, I made some tests and want to report: 1.) 'letter-17.tex' with pdftex (ConTeXt ver: 2007.07.29 22:06 MKII fmt: 2008.4.10 int: english/english) ! Undefined control sequence. \letterstopoptimizeyes ...er!value!skip \minustwo \else \ifdim \pagetotal < \next2 #1,->\dosetups {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... \@@su:letter:place ...r] \setups [letter:sequence] \setups [letter:finish] \next1 #1,->\dosetups {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ... l.38 \stopletter 2.) 'letter-17.tex' with luatex (ConTeXt ver: 2008.04.11 00:07 MKIV fmt: 2008.4.11 int: english/english) system : module t-letter not found ! Undefined control sequence. l.5 \setupletterstyle but kpsewhich t-letter d:/context/tex/texmf-project/tex/context/third/letter/base/t- letter.tex 3.) 'letter-17.tex' with pdftex (ConTeXt ver: 2008.04.11 00:07 MKII fmt: 2008.4.11 int: english/english) same error as 1.) Has there something changed in the file finding mechanism since 04.11.? Maybe the strange behaviour of mplib is related to this. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mplib
Hallo Taco et al > \startlua > local function finder(name, mode, ftype) > if mode=="w" then > return name > else > return kpse.find_file(name,ftype) > end > end > > > > Jein! > > > > Try this, a little more elaborate, version of finder: > >local function finder(name, mode, ftype) >local found >if mode=="w" then > found = name >else > found = kpse.find_file(name,ftype) >end >print("MPlib finder: " .. name .. " -> " .. found) >return found >end > > maybe that will give a clue. Example 1: my test file with your finder. -- MPlib finder: mpost.mp -> d:/context/tex/texmf/metapost/base/mpost.mp MPlib finder: mpost.map -> MPlib finder: plain.mp -> d:/context/tex/texmf/metapost/base/plain.mp t={ ["log"]="This is MetaPost, Version 1.003 (INIMP) 23 APR 2008 07:51 (mpost.mp(plain.mp\ Preloading the plain mem file, version 0.99)", ["status"]=0, ["term"]="This is MetaPost, Version 1.003 (Cweb version 0.40) (INIMP)\ (mpost.mp(plain.mp\ Preloading the plain mem file, version 0.99)", } MPlib finder: mpost.mem -> t={ ["log"]=" )\ Beginning to dump on file mpost.mem\ (mem=mpost 8.4.23)\ at most 736 strings of total length 3629\ 3326 memory locations dumped; current usage is 1021&2227\ 501 symbolic tokens\ ", ["status"]=0, ["term"]=" )\ Beginning to dump on file mpost.mem\ (mem=mpost 8.4.23)\ at most 736 strings of total length 3629\ 3326 memory locations dumped; current usage is 1021&2227\ 501 symbolic tokens\ Transcript written on mpost.log.\ ", } -- found = "" no mpost.mem, no mpost.log Example 2: my test file with your finder and ("wb" not "w") -- MPlib finder: mpost.mp -> d:/context/tex/texmf/metapost/base/mpost.mp MPlib finder: mpost.map -> MPlib finder: plain.mp -> d:/context/tex/texmf/metapost/base/plain.mp t={ ["log"]="This is MetaPost, Version 1.003 (INIMP) 23 APR 2008 07:58 (mpost.mp(plain.mp\ Preloading the plain mem file, version 0.99)", ["status"]=0, ["term"]="This is MetaPost, Version 1.003 (Cweb version 0.40) (INIMP)\ (mpost.mp(plain.mp\ Preloading the plain mem file, version 0.99)", } MPlib finder: mpost.mem -> mpost.mem t={ ["log"]=" )\ Beginning to dump on file mpost.mem\ (mem=mpost 8.4.23)\ at most 736 strings of total length 3629\ 3326 memory locations dumped; current usage is 1021&2227\ 501 symbolic tokens\ ", ["status"]=0, ["term"]=" )\ Beginning to dump on file mpost.mem\ (mem=mpost 8.4.23)\ at most 736 strings of total length 3629\ 3326 memory locations dumped; current usage is 1021&2227\ 501 symbolic tokens\ Transcript written on mpost.log.\ ", } -- mpost.mem gets written now but no mpost.log grusz Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mplib
> >> \startlua > >> local function finder(name, mode, ftype) > >> if mode=="w" then > >> return name > >> else > >> return kpse.find_file(name,ftype) > >> end > >> end Jein! The only file in my tex tree which could play that roule is cont-en-mpost.mem in the cache \tex\texmf-cache\luatex- cache\context\c80dc1fd5292ec817c6e82c295beaf1e\formats this file causes from a metapost:process run and is not overwritten by my example. So, there is not written any mpost.mem in the whole tree. Gruß, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mplib
On 19 Apr 2008 at 8:58, [EMAIL PROTECTED] wrote: > >>> Everything I read below says there should be a 'plain.mem' > >>> in the folder where you ran theat file in. If there > >>> really really isn't, then my only advise to you is to buy > >>> a less thieving operating system, as it seems this one steals > >>> your files before you can even have an admiring look at them. > >> :-) > > > > May be you are right that operating system steals files. We should > do > > something against that. > > > > Lutz Haseloff has send me his test (he too sees no 'mpost.mem'): > Hallo Taco, > When Hans and I tested this, it worked just fine. Have you tested exactly my example on a windows minimal? > Does the high-level > context interface work for you at all, btw? The high-level interface seems to work. > I have no idea what is > going on, and I cannot test myself, so I am even more lost than > you are. MPlib firmly believes it has written a file: > >Beginning to dump on file mpost.mem >(mem=mpost 8.4.18) >at most 736 strings of total length 3629 >3326 memory locations dumped; current usage is 1021&2227 >501 symbolic tokens > Yes, I know this. > There is nothing more I myself can do about it. Do you use a sort of io-buffering in the mplib or a memory-file? When is the file flushed or closed? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Discussion: correspondence with ConTeXt
On 19 Apr 2008 at 14:41, [EMAIL PROTECTED] wrote: > > I still use the LaTeX class scrlttr2 for my letters. > > I use adress files bundled with that class. Adresses are macros > > and selected by a string-key. > > I know the \adrentry for scrlltr and could add this function but > not at the moment and only as letter extension. > > > Maybe it would be nice, if there could be a interface to such a > key > > and a lua-function (which defaults to return) taking this key as > > argument. So everybody can write his own adress-import function. > > You should also take a look into Hans correspondence [1] manual, > I prefer to make something based on a xml database on it is > possible > to write serial letters as told in the manual bot not to use some > information for just one letter. > > I will add it on my todo list. The idea was NOT to use THIS or THAT adress format. Instead implementing something like a generic import interface. Gruß, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mplib
Hallo Taco, > > Everything I read below says there should be a 'plain.mem' > > in the folder where you ran theat file in. If there > > really really isn't, then my only advise to you is to buy > > a less thieving operating system, as it seems this one steals > > your files before you can even have an admiring look at them. > :-) May be you are right that operating system steals files. We should do something against that. Lutz Haseloff has send me his test (he too sees no 'mpost.mem'): TeXExec | processing document 'mplibtest.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file mplibtest.top TeXExec | using randomseed 256 TeXExec | tex engine: luatex TeXExec | tex format: cont-en (./mplibtest.tex ConTeXt ver: 2008.04.16 17:34 MKIV fmt: 2008.4.18 int: english/english language : language en is active system : cont-new loaded (C:/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (C:/tex/texmf-context/tex/context/base/cont-new.mkiv lua: used config path - C:/tex/texmf- local/web2c/texmf.cnf;C:/tex/texmf- context/web2c/texmf.cnf;C:/tex/texmf/web2c/texmf.cnf lua: used cache path - C:/tex/texmf-cache/luatex- cache/context/71ddae2d1527093aac63e0e1aa139641 ) (C:/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-old loaded (C:/tex/texmf-context/tex/context/base/cont-old.tex loading: Context Old Macros ) system : cont-fil loaded (C:/tex/texmf-context/tex/context/base/cont-fil.tex loading: Context File Synonyms ) system : cont-sys loaded (C:/tex/texmf-local/tex/context/user/cont-sys.tex (C:/tex/texmf- context/tex/context/base/type-tmf.tex) (C:/tex/texmf- context/tex/context/base/type-siz.tex) (C:/tex/texmf- context/tex/context/base/type-otf.tex)) bodyfont : 12pt rm is loaded specials : tex loaded system : mplibtest.top loaded (./mplibtest.top specials : loading definition file tpd (C:/tex/texmf-context/tex/context/base/spec-tpd.tex specials : loading definition file fdf (C:/tex/texmf-context/tex/context/base/spec-fdf.tex (C:/tex/texmf- context/tex/context/base/spec-fdf.mkiv)) specials : fdf loaded ) specials : fdf loaded ) (./mplibtest.tuo) (./mplibtest.tuo) systems: begin file mplibtest at line 2 t={ ["log"]="This is MetaPost, Version 1.003 (INIMP) 18 APR 2008 06:34 (mpost.mp(plain.mp\ Preloading the plain mem file, version 0.99)", ["status"]=0, ["term"]="This is MetaPost, Version 1.003 (Cweb version 0.40) (INIMP)\ (mpost.mp(plain.mp\ Preloading the plain mem file, version 0.99)", } nothing t={ ["log"]=" )\ Beginning to dump on file mpost.mem\ (mem=mpost 8.4.18)\ at most 736 strings of total length 3629\ 3326 memory locations dumped; current usage is 1021&2227\ 501 symbolic tokens\ ", ["status"]=0, ["term"]=" )\ Beginning to dump on file mpost.mem\ (mem=mpost 8.4.18)\ at most 736 strings of total length 3629\ 3326 memory locations dumped; current usage is 1021&2227\ 501 symbolic tokens\ Transcript written on mpost.log.\ ", } nothing fonts : resetting map file list {C:/tex/texmf-context/fonts/map/pdftex/context/original-empty.map} fonts : using map file: original-base {C:/tex/texmf-context/fonts/map/pdftex/context/original-base.map} fonts : using map file: lm-math {C:/tex/texmf/fonts/map/dvips/lm/lm-math.map} fonts : using map file: lm-rm {C:/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts : using map file: original-ams-base {C:/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map} fonts : using map file: original-ams-euler {C:/tex/texmf-context/fonts/map/pdftex/context/original-ams- euler.map} fonts : using map file: original-public-lm {C:/tex/texmf-context/fonts/map/pdftex/context/original-public- lm.map} [1.1] systems: end file mplibtest at line 38 ) mkiv lua stats : used config path - C:/tex/texmf- local/web2c/texmf.cnf;C:/tex/texmf- context/web2c/texmf.cnf;C:/tex/texmf/web2c/texmf.cnf mkiv lua stats : used cache path - C:/tex/texmf- cache/luatex-cache/context/71ddae2d1527093aac63e0e1aa139641 mkiv lua stats : modules/dumps/instances - 84/20/1 mkiv lua stats : input load time - 0.031 seconds mkiv lua stats : fonts load time - 1.063 seconds mkiv lua stats : xml load time - 0.000 seconds, backreferences: 0, outer filtering time: 0.000 mkiv lua stats : mps conversion time - 0.000 seconds mkiv lua stats : node processing time - 0.000 seconds (including kernel) mkiv lua stats : kernel processing time- 0.000 seconds mkiv lua stats : attribute processing time - 0.016 seconds mkiv lua stats : language load time- 0.031 seconds, n=2 mkiv lua stats : graphics processing time - 0.000 seconds, n=0 (including tex) mkiv lua stats : metapost
Re: [NTG-context] Discussion: correspondence with ConTeXt
On 18 Apr 2008 at 12:00, [EMAIL PROTECTED] wrote: Hallo Wolfgang, > I still wait for comments about the user interface to set the > values before I will release my module to the public although my last > stable version is only available. I still use the LaTeX class scrlttr2 for my letters. I use adress files bundled with that class. Adresses are macros and selected by a string-key. Maybe it would be nice, if there could be a interface to such a key and a lua-function (which defaults to return) taking this key as argument. So everybody can write his own adress-import function. Just an idea. Grusz, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mplib
On 16 Apr 2008 at 1:52, [EMAIL PROTECTED] wrote: Hallo, > >>> (I have temporary appended 'dump;' to plain.mp) > >> After the above, you should have plain.mem in the local > directory. > > > > No. > > There is neither a 'plain.fmt' nor a 'plain.mem'! > > Everything I read below says there should be a 'plain.mem' > in the folder where you ran theat file in. If there > really really isn't, then my only advise to you is to buy > a less thieving operating system, as it seems this one steals > your files before you can even have an admiring look at them. :-) I tried the same with 'mpost'. This has the advantage that one has not to adapt 'plain.mp'. But here too, there is no 'mpost.mem' and no 'mpost.log'. I have included a test before and after mp:finish(). Can anybody with a minimal under windows run this example? --- \starttext % start low-level \startlua local function finder(name, mode, ftype) if mode=="w" then return name else return kpse.find_file(name,ftype) end end mp = mplib.new ( { hash_size = 10, main_memory = 200, param_size = 10, find_file = finder, ini_version = true } ) if mp then res = mp:execute("mpost") tex.print("[" .. tostring(res.status) .. "]") print(table.serialize(res)) if io.open("mpost.mem","r") then print("found") else print("nothing") end res = mp:finish() print(table.serialize(res)) if io.open("mpost.mem","r") then print("found") else print("nothing") end end \stoplua % stop low-level \stoptext --- Gruß, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mplib
On 15 Apr 2008 at 13:31, [EMAIL PROTECTED] wrote: Hallo Taco, > > (I have temporary appended 'dump;' to plain.mp) > > After the above, you should have plain.mem in the local directory. No. There is neither a 'plain.fmt' nor a 'plain.mem'! I have searched in the local directory, where it should be. It is not in 'D:\context\tex\texmf-mswin\web2c' where format-files usally exist. It is not in the cache. I run this: --- \enableregime[utf-8] \starttext % start low-level \startlua local function finder(name, mode, ftype) if mode=="w" then return name else return kpse.find_file(name,ftype) end end mp = mplib.new ( { hash_size = 10, main_memory = 200, param_size = 10, find_file = finder, ini_version = true } ) if mp then res = mp:execute("plain") print(table.serialize(res)) res = mp:finish() print(table.serialize(res)) end \stoplua % stop low-level \stoptext --- with the following output: --- t={ ["log"]="This is MetaPost, Version 1.003 (INIMP) 15 APR 2008 21:00 (plain.mpPreloading the plain mem file, version 0.99", ["status"]=0, ["term"]="This is MetaPost, Version 1.003 (Cweb version 0.40) (INIMP)\ (plain.mpPreloading the plain mem file, version 0.99", } t={ ["log"]=" )\ Beginning to dump on file plain.mem\ (mem=plain 8.4.15)\ at most 735 strings of total length 3629\ 3326 memory locations dumped; current usage is 1021&2227\ 501 symbolic tokens\ ", ["status"]=0, ["term"]=" )\ Beginning to dump on file plain.mem\ (mem=plain 8.4.15)\ at most 735 strings of total length 3629\ 3326 memory locations dumped; current usage is 1021&2227\ 501 symbolic tokens\ Transcript written on plain.log.\ ", } --- Can you see, what I am missing? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mplib
On 13 Apr 2008 at 13:31, [EMAIL PROTECTED] wrote: Hallo Taco, thank you for your example. > % start low-level > \startlua > local function finder(name, mode, ftype) > if mode=="w" then > return name > else > return kpse.find_file(name,ftype) > end > end > mp = mplib.new ( { > hash_size = 10, > main_memory = 200, > param_size = 10, > find_file = finder, > ini_version = true > } ) > if mp then > res = mp:execute('plain') > mp:finish() > end this first step runs with res=0, but there is no 'plain.mem' dumped. (I have temporary appended 'dump;' to plain.mp) this first step runs with res=0 with mp:execute('mpost'), but no 'mpost.mem' the first step even runs with res=0 and mp:execute('\\plain; dump;'), but no 'plain.mem' after that I produced 'plain.mem' executing 'texmfstart texexec --make plain' > > mp = mplib.new ( { > hash_size = 10, > main_memory = 200, > param_size = 10, > find_file = finder, > } ) > > if mp then > res = mp:execute( > "\\beginfig(1) draw (0,0) .. (1,1) .. (2,1); endfig; bye;" ) > tex.print("[" .. tostring(res.status) .. "]") > mp:finish() > end > \stoplua > % stop low-level > this second step returns res=3. Is there a find_file function necessary to find the mem-file given in 'mem_name' or is such a function only necessary for file-names in 'mp:execute'? Wolfgang -- Musensturm-Verlag -- Postfach 1249 -- 36126 Gersfeld >>> http://www.musensturm.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatexing
On 12 Apr 2008 at 9:39, [EMAIL PROTECTED] wrote: > > I have a few silly questions about > > > > tex.print() > > > > To produce > > > > $\sqrt{2}=1.4142135623731$ > > > > it should be enough to write > > > > tex.print("$\\sqrt{2}=" .. math.sqrt(2) .. "$") > > this is because \\ can mean anything, for instance it may expand to > \par or \crlf or .. May be I do not understand this right, but I thought that '\' is luas escape character and tex.print() returns '\' not '\\'. So TeX sees no macro '\\' which could expand to whatever. > there is a \luaescapestring primitive which catches things like > quotes Can you make a little example of usage? > tex.print("\detokenize{$\sqrt{2}=}" .. math.sqrt(2) .. "$") Could not find the definition of \detokenize. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new version luatex / mkiv
On 12 Apr 2008 at 12:00, [EMAIL PROTECTED] wrote: Hallo Taco, > Real API documentation will be provided once I am past the "alpha" > release stage. At the moment, I do not trust the API enough to > expose it to anything except controlled environments (lua mplib, > newmpost) > > >> Isn't mplib a dll under windows? > > It is possible to build the unix version as a .so because support > for that comes from autofoo automatically, but that is not yet > officially supported: debugging dynamic libraries is harder than > debugging static code. On the other side, it is very easy to replace a dll by a new version, if the interface stays stable. > MPlib could become a dll on windows eventually, but first someone > will have to explain to me how to create a windows dll (and I vastly > prefer a solution that does not involve me having to pay Microsoft any > money). You have not to pay anything, to build a Dll. And there is Msys for example, which works in a unix-environment under windows. Should be no problem. > I have exactly zero knowledge in that area and do not have a > Windows installation either: the one and only XP machine here is my > wife's gaming machine and that is strictly offlimits to me. :-) > Future versions of luatex and mpost itself (and potential other > texlive programs) will almost certainly remain statically linked > because that is much more convenient for us as maintainers. If there is more than one program, which is using mplib, you have to update all theses programs, if you make some mplib changes. But I think that a dll could very much boost the metapost usage. It would than be very easy to write third party software. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mplib
On 12 Apr 2008 at 9:39, [EMAIL PROTECTED] wrote: > > \startlua > > mp = mplib.new ( { > > hash_size = 10, > > main_memory = 200, > > param_size = 10, > > } ) > > > > if mp then > > res = mp:execute( > > "beginfig(1) draw (0,0) .. (1,1) .. (2,1); endfig; bye;" ) > > tex.print("[" .. tostring(res.status) .. "]") > > mp:finish() > > end > > \stoplua > > no format, so beginfig, draw etc are unknown I thought 'plain.mem' is the default. But I see, there exists only 'metafun.mem'. So I wrote: -- mp = mplib.new ( { hash_size = 10, main_memory = 200, param_size = 10, mem_name = "metafun.mem" } ) -- and it get the same result > metapost.process("metafun","some commands") > > may work better -- \startlua mp = mplib.new ( { hash_size = 10, main_memory = 200, param_size = 10 } ) if mp then res = metapost.process("metafun","beginfig(1) draw (0,0) .. (1,1) .. (2,1); endfig; bye;") tex.print("[" .. tostring(res.status) .. "]") mp:finish() end \stoplua -- results in : -- mplib : loading format: metafun.mp, name: d:/context/tex/texmf-cache/luatex- cache/context/c80dc1fd5292ec817c6e82c295beaf1e/formats/cont-en- metafun.mem ! Emergency stop. \@@expanded . "]") -- mp:finish() -- end } l.54 \stoplua ! ==> Fatal error occurred, no output PDF file produced! -- why does it load 'metafun.mp'? after that I tried -- \startlua mp = mplib.new ( { hash_size = 10, main_memory = 200, param_size = 10, mem_name = "metafun.mem" } ) if mp then res = metapost.process(mp, "beginfig(1) draw (0,0) .. (1,1) .. (2,1); endfig; bye;") tex.print("[" .. tostring(res.status) .. "]") mp:finish() end \stoplua -- which gives the following error: -- report >> error: This is MetaPost, Version 1.003 (Cweb version 0.40) I can't find the PLAIN mem file! -- What else should I check to find the error? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] luatexing
Hallo, I have a few silly questions about tex.print() To produce $\sqrt{2}=1.4142135623731$ it should be enough to write tex.print("$\\sqrt{2}=" .. math.sqrt(2) .. "$") or better tex.print([[$\sqrt{2}=]] .. math.sqrt(2) .. "$") but that's both not working. The following instead does the job: tex.print("$\string\\sqrt{2}=" .. math.sqrt(2) .. "$") why? Another question: What is the differenz between 'tex.sprint()' and 'tex.write()'? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mplib
Hallo, the following compiles ok, but gives me an status 3=fatal error. Can someone please point me to the error? \startlua mp = mplib.new ( { hash_size = 10, main_memory = 200, param_size = 10, } ) if mp then res = mp:execute( "beginfig(1) draw (0,0) .. (1,1) .. (2,1); endfig; bye;" ) tex.print("[" .. tostring(res.status) .. "]") mp:finish() end \stoplua Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new version luatex / mkiv
Hallo, > > is there or will there be a documented interface description for > mplib. > > In the luatex reference manual (for now). > > http://foundry.supelec.fr/plugins/scmsvn/viewcvs.php/tags/beta-0.25. > 2/manual/?root=luatex This manual is not viewable without deleting a html-frame. Or what I am doing wrong? The manual describes a lua interface. Isn't mplib a dll under windows? If yes, where can I find a header-file of the export table. If no, how have you implemented the library? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new version luatex / mkiv
Hallo, > > > This release of is rather substantial: no longer is metaposts > > > called, but mplib is used instead. is there or will der be a documented interface description for mplib. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] staticMPfigure
Hallo Hans, > >> the following example is a cooked down version of something I > found > >> on the net. Compiling this > >> > >> % > >> \setupcolors[state=start] > >> > >> \forceMPTEXcheck{LABEL} > >> > >> \startMPinclusions > >> vardef [EMAIL PROTECTED](expr s, p)= [EMAIL PROTECTED](textext("% > >>\framed[width=1.5cm]{" & s & "}"),p) > >> enddef ; > >> \stopMPinclusions > > > > I could not get this to work either. Something has changed > > in the MPinclusions parsing, maybe? (Putting the definition > > in a separate mp file prevents the error, of course) > > hm, i'll have a look, but in mkiv there will be no such checks > supported > anyway Have you had a look? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] first steps
Hallo, > That's strange. Here this command gives: > 103 ~: luatools --all *qplr.* > /usr/local/texlive/2007/bin/powerpc-darwin/luatools:4392: bad > argument > #1 to 'pairs' (table expected, got nil) > > allthough: > > 104 ~: find /usr/local -name *qplr.* > /usr/local/texlive/2007/texmf-dist/fonts/afm/public/tex-gyre/qplr.af > m > /usr/local/texlive/2007/texmf-dist/fonts/tfm/public/tex-gyre/cs-qplr > .tfm > /usr/local/texlive/2007/texmf-dist/fonts/tfm/public/tex-gyre/ec-qplr > .tfm > > I got the same with texmfstart under Windows D:\context\wwl>texmfstart luatools --all *.qplr.* texmfstart luatools --all *.qplr.* ...t/tex/texmf-context/scripts/context/lua/luatools.lua:4392: bad argument #1 to 'pairs' (table expected, got nil) and without texmfstart D:\context\wwl>luatools --all *qplr.* no action at all. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mpost updating
Hallo, I have updated an older ConTeXt (ver: 2007.07.29 22:06 MKII) with a aktuell mpost. I have used 'http://minimals.contextgarden.net/current/bin/metapost/mswin/bin/' as source. The command 'texmfstart texexec --autopdf --make --all' produces no metapost formats at all. Calling 'mpost.exe' I get a messagebox with the error: 'procedure entry point "kpse_record_input" in DLL "kpathsea356.dll" not found' (my translation from german). What is wrong here? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] first steps
On 9 Apr 2008 at 10:25, [EMAIL PROTECTED] wrote: Hallo, > > Just to make sure - what's the version of ConTeXt and LuaTeX > > you're using, and do you have the cont-sys.tex file? > > Werner said he had used: Wolfgang :-) > > > http://minimals.contextgarden.net/setup/context-setup-mswin.zip > > But perhaps something was left behind from an earlier install? I reinstalled the whole thing, exactly the same steps and now it runs. Usally I am switching off an existing MikTeX-Installation by renaming the MikTeX-Directory. This was a problem in the past. May be something went wrong with this step. -- rem switchmt.bat [on|off] @echo off set OTEX="E:\PROGRAMME\" set MTEX="MiKTeX 2.7" set XTEX="MiKTeX 2.7.closed" if %1h==h goto end if %1==out goto off if %1==on goto on goto end :on if exist %OTEX%%XTEX% rename %OTEX%%XTEX% %MTEX% goto end :off if exist %OTEX%%MTEX% rename %OTEX%%MTEX% %XTEX% :end -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] first steps
On 8 Apr 2008 at 12:00, [EMAIL PROTECTED] wrote: > > I am using scite with the following command: > > texmfstart texexec --autopdf --luatex tst3.tex > > I simply have no idea. I do not understand why windows > would object to closing a file that doesn't exist (not even > how it could be possible for an opened file to not exist). > > It could be a simple matter of a missing file that somehow > luatex fails to check for during opening so it is not discovered > until it attempts to close the file, but even if that is true, > I have no idea how to debug anything on windows. > > It could also be a (more complicated) problem triggered by > disk synchronisation issues in Windows itself. We have been > bitten by those before (what is your windows flavour?) Windows 2000 > In either case, someone else has to come up with tests and/or > fix attempts. The only advice I can give is to reinstall > context using the new minimals and see if that helps any. > >http://wiki.contextgarden.net/ConTeXt_Minimals This is a fresh installation. I installed it using 'context-setup-mswin.zip'. After some trials, I found that the example compiles ok without the TWO \eogonek commands. There were TWO fclose attempts in the logs, too. Can this be a hint? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] first steps
On 7 Apr 2008 at 20:22, [EMAIL PROTECTED] wrote: > > I tried to make my first luatex-steps with the following > wiki-example > > - > > \usetypescript[palatino] > > \setupbodyfont[palatino,12pt] > > effe fietsen 2: \input tufte $\sqrt{2}$ \eogonek > > > > \sc effe fietsen 2: \input tufte $\sqrt{2}$ \eogonek > > - > > after adding a \start/stoptext pair I get in 4 runs the following > > error: > > Exactly how did you run luatex? The canonical way is > >texexec --luatex tst3 > > but I expect you are using some editor interface? I am using scite with the following command: texmfstart texexec --autopdf --luatex tst3.tex If I try: 'texexec --luatex tst3' I get two runs with {d:/context/tex/texmf/fonts/map/dvips/tex-gyre/qpl-ec.map} fonts : using map file: original-youngryu-px {d:/context/tex/texmf-context/fonts/map/pdftex/context/original- youngryu-px.map} [1.1] systems: end file tst3 at line 8 ){d:/context/tex/texmf/fonts/enc/dvips/tex-gyre/q-ec-sc.enc}fclose: No such file or directory fclose: No such file or directory ! Emergency stop. <*> tst3.tex ! ==> Fatal error occurred, no output PDF file produced! LuaTools | running command: luatex --fmt="d:/context/tex/texmf- cache/luatex- cache/context/c80dc1fd5292ec817c6e82c295beaf1e/formats/cont-en" -- lua="d:/context/tex/texmf-cache/luatex- cache/context/c80dc1fd5292ec817c6e82c295beaf1e/formats/cont-en.luc" "tst3.tex" "" LuaTools | LuaTools | runtime: 23.213 secondsTeXUtil | parsing file tst3.tui Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] first steps
hallo, I tried to make my first luatex-steps with the following wiki-example - \usetypescript[palatino] \setupbodyfont[palatino,12pt] effe fietsen 2: \input tufte $\sqrt{2}$ \eogonek \sc effe fietsen 2: \input tufte $\sqrt{2}$ \eogonek - after adding a \start/stoptext pair I get in 4 runs the following error: - ){d:/context/tex/texmf/fonts/enc/dvips/tex-gyre/q-ec-sc.enc}fclose: No such file or directory fclose: No such file or directory ! Emergency stop. <*> tst3.tex ! ==> Fatal error occurred, no output PDF file produced! - and in the 3. run I get - fonts : using map file: original-youngryu-px [1.1 ! This can't happen (ext4). \actualshipout ... \box \postponedcontent \box 0}} \else \message {[\ifarrang... \myshipout ... \fi {\thisisrealpage \realfolio #1} \gotonextrealpage \aftersh... \dofinaloutput ...gebody #1#2\setpagecounters \else \the \pageboundsetti... \finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2 \resetselectiepagina \incr... \sidefloatoutput ...e \else \finalsidefloatoutput \global \sidefloatvsize \n... ...\fi \else \the \defaultstreamoutput \fi ... l.8 \stoptext - I can not interpret this error. Can someone please explain! Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mpost update in minimal windows
Hallo, I tried to update my metapost executable in the Windows ConTeXt minimal. In the bin dir I found both mpost.exe (Version 1.000-rc1) and a mpost.dll In the archive 'metapost-1.002-windows.zip' there is mpost.exe (Version 1.002 (Web2C 7.5.5)) and no dll So I downloaded 'mplib-alpha-0.20-win32.zip' but there is an other exe newpost.exe (Version 1.002 (Cweb version 0.20)) and no dll So I wonder where I can find the matching dll and which exe above is the right one. There is an other strange thing: In the aktuell 'cont-win.zip' is a 'texmfstart.exe' dated 2007-08-07 with about 700 KB. But the 'texmfstart.exe' in my bin dir, which is installed 7 or 8 months ago ist dated 2007-08-08 and much bigger (~900KB). The next thing I wanted to do ist to update LuaTeX. Ohjeohje?! Wolfgang Musensturm-Verlag -- Postfach 1249 -- 36126 Gersfeld >>> http://www.musensturm.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] staticMPfigure
Hallo, the following example is a cooked down version of something I found on the net. Compiling this % \setupcolors[state=start] \forceMPTEXcheck{LABEL} \startMPinclusions vardef [EMAIL PROTECTED](expr s, p)= [EMAIL PROTECTED](textext("% \framed[width=1.5cm]{" & s & "}"),p) enddef ; \stopMPinclusions \startstaticMPfigure{tst} LABEL.llft("Test", (1,1) ) ; \stopstaticMPfigure \starttext \midaligned{\usestaticMPfigure[tst]} \stoptext % I got the following error: % ! Illegal parameter number in definition of [EMAIL PROTECTED]@@@. ( vardef [EMAIL PROTECTED]( expr s, p)= [EMAIL PROTECTED](textext("\framed [width=1.5c... \dodostartuseMPgraphic ...useMPgraphic {#1}{#2}{#3 }}\elabelgroup \dodostartMPpage ...aphic {@@}#1\stopuseMPgraphic \useMPgraphic {@@}\dostopf... l.14 endfig; \stopMPpage % What is wrong here? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] newlines after keywords
Hello, I would like to separate multiple keywords with newline-chars. The following doesn't work: \setupinteraction[keyword={first\r\n,second\r\n,third},state=start] How can this be done? Gruß, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] c-code
Hallo, some times ago, I tried to use the module 'verb-c' but something like the following didn't work: \usemodule[verb-c] \setupcolors[state=start] \starttext \startC "*\0" \stopC \stoptext Wolfgang Schuster told me, not to use 'verb-c' and to use for example: \setupcolors[state=start] \definetyping[C][option=C] \starttext \startC "*\0" \stopC \stoptext The problematic C-code is typeset ok here, but the colorscheme used, doesn't fit to C-code rather to TeX-Code. How can this be changed? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \start\stoplines and image
Hi Wolfgang, > You should use the right command for this purpose. > > \startfiguretext > {none} > {\blackrule[height=\textheight,width=.5\textwidth]} > \startlines >Sie sprach: >\quotation{Das ist >ein Test.} >\stoplines > \stopfiguretext Yes, that works. But why is my example wrong? It's more or less stolen from . Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \start\stoplines and image
Hallo, I have a little problem with the following code: --- \setuppapersize[S6][S6] \setuplayout[bottomspace=.8cm,bottom=12pt,backspace=1.2cm,width=middle ] \starttext \placefigure[left,height]{none}{% \externalfigure[img.jpg][height=0.99\textheight]} \startlines Sie sprach: \quotation{Das ist ein Test.} \stoplines \stoptext --- The text between \start\stoplines is not completly placed in the right of the image. The quoted parts are moved to the left, on top of the image. What is wrong here? Gruß, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize and math
> > > I have a problem with > > > > > > > > \startitemize[columns,a] > > > > \item $a_n=2+\frac{1}{n+1}$ > > > > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ > > > > \stopitemize > > > > > > > > > Hi, > > > > > > this did not wotk because the second formula is than the first > and > > -^ (what?) > > > > > the multicolumn OTR tries to put half or less of the text into > the > > > second column, you can now force a second column with the > \column > > > command after the first line or you switch both > > > formulas and the OTR can make two columns. > > > > > > \starttext > > > > > > \startitemize[columns,a] > > > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ > > > \item $a_n=2+\frac{1}{n+1}$ > > > \stopitemize > > > > Why is this working? Here the first column is as big as the > second > > above (same formula), so the same problem should arise with the > first > > column as above with the second? > > > No, they are not, the first row (column) is 1 points taller than the > second > one, you can test this with TeX. > > \starttext > > \setbox\scratchbox\hbox{$a_n=\frac{(-1)^n}{\sqrt{n}}-3$} > > Formula 1: \copy\scratchbox > > Height of formula 1: \the\ht\scratchbox > > \setbox\scratchbox\hbox{$a_n=2+\frac{1}{n+1}$} > > Formula 2: \copy\scratchbox > > Height of formula 2: \the\ht\scratchbox Ahhh! The HEIGHT (not the width) ist the problem!? So: \startcolumns \dontleavehmode \vphantom{$a_n=\frac{(-1)^n}{\sqrt{n}}-3$}$a_n=2+\frac{1}{n+1}$% $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ \stopcolumns works too. Is there something like an \mathstrut macro? (I know, that there exists a macro with this name, but that uses ')' as height.) > I hope my examples helped you a little bit to understand the > problems in your example and why my methods worked. > > Wolfgang Hope, I have it! 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize and math
Sorry, I don't understand what the problem is! > > I have a problem with > > > > \startitemize[columns,a] > > \item $a_n=2+\frac{1}{n+1}$ > > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ > > \stopitemize > > > Hi, > > this did not wotk because the second formula is than the first and -^ (what?) > the multicolumn OTR tries to put half or less of the text into the > second column, you can now force a second column with the \column > command after the first line or you switch both > formulas and the OTR can make two columns. > > \starttext > > \startitemize[columns,a] > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ > \item $a_n=2+\frac{1}{n+1}$ > \stopitemize Why is this working? Here the first column is as big as the second above (same formula), so the same problem should arise with the first column as above with the second? > \startitemize[columns,a] > \item $a_n=2+\frac{1}{n+1}$ \column > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ > \stopitemize Why does the \column help with the first formula? No, I don't understand this at all. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] itemize and math
Hallo, I have a problem with \startitemize[columns,a] \item $a_n=2+\frac{1}{n+1}$ \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ \stopitemize which is NOT in columns. \startitemize[columns,a] \item one \item two \stopitemize works! How can I solve this? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Re :luatex:first steps
Hi Wolfgang, > > I have installed the newest windows standalone context package. > > > > My first try was with this snippet, found as 'test-2' at > > luatex.org: > > > > %% > > \lua {tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")} > > \luatex {tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. > "$")} > > \rescan{\lua{tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. > > "$")}} > > %% > > > > but \luatex is unknown. After commenting line 2 > > I get a TeX prompt (*) and after some \end's I got the result. > > > > Should this work in this way? > > replace \luatex with \cxtlua And what about the nonstoping \rescan? I don't understand this example. The output is identical for the three variants. Does it mean that they are all equivalent? What should \rescan do? What happend with the command \luatex? Does it not longer exist? > > > And with this > > > > %% > > % coding: utf-8 > > > > \mainlanguage[deo] > > \enableregime[utf] > > > > \usetypescript[palatino][texnansi] > > \setupbodyfont[palatino,rm,12pt] > > > > \starttext > > Bla {\bf blub} > > \stoptext > > %% > > > > I get the error > > > > -- > > error >> define font: font with name texgyrepagella-regular is > not > > found. > > > >\relax > > \xxdododefinefont ...tspec {#4}\newfontidentifier > > \let > > \localrelativefontsiz... > > \fontstrategy ...me \fontclass #2#3#4#5\endcsname > > > \tryingfontfalse > > \fi > > ...yle \fontalternative \fontsize > > \fi > \iftryingfont > > \fontstr... > > \synchronizefont ...strategy \the \fontstrategies > > \relax \fi > > \iftryingfont \... > > \getvalue [EMAIL PROTECTED]@ \fontstyle } > >\edef \fontstyle > > {\fontstyle }\if... > > ... > > l.7 \setupbodyfont[palatino,rm,12pt] > > -- > > > > Palatino is installed! > > What should I do to use Palatino not Pagella, which obviously is > not > > installed? > > > > Wolfgang > > You need the TeXgyre fonts for MkIV because palatino is mapped to > pagella. Why is it not possible to use palatino? The font is installed by default, Pagella is not. There should be a fallback to palatinno in this case. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] luatex:first steps
Hallo, I have installed the newest windows standalone context package. My first try was with this snippet, found as 'test-2' at luatex.org: %% \lua {tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")} \luatex {tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")} \rescan{\lua{tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")}} %% but \luatex is unknown. After commenting line 2 I get a TeX prompt (*) and after some \end's I got the result. Should this work in this way? And with this %% % coding: utf-8 \mainlanguage[deo] \enableregime[utf] \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,12pt] \starttext Bla {\bf blub} \stoptext %% I get the error -- error >> define font: font with name texgyrepagella-regular is not found. \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... \getvalue [EMAIL PROTECTED]@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.7 \setupbodyfont[palatino,rm,12pt] -- Palatino is installed! What should I do to use Palatino not Pagella, which obviously is not installed? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] verb-c.tex
Hmm! I can not find the problem. Here is a short example, showing the error. Hope that someone can give me a hint! \usemodule[verb-c] \starttext \startC "*\0" \stopC \stoptext and the errormessage: ! Extra \else. \doCtypefiveA ...mment \getpretties {#1}{#2}\else \ifinCsingle \getprettydat... \doCtypefourfour ...pretty \expandafter #2\fi \fi \fi \fi \fi "*\ 0"\relax \flushrestofverbatimline \processverbatimline #1->#1 \dodoverbatimline ...ax \flushrestofverbatimline } \endverbatimline \global \... \presetlastverbatimline ...r \doflushverbatimline \else \kern \zeropoint \do... ... l.16 \stopC ? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize start=2
Hallo! > > > > I have tried snippets like > > > > > > > > \setupitemgroup[[itemize][start=2] > > > > \startitemize[n] > > > > \item zwei > > > > \item drei > > > > \stopitemize > > > > > > > > but could'nt found a solution. > > It looks like a misfeature (ie. bug) to me. > > > But two questions remain: > > > > 1) I am wondering, how you find such answers. What is your > strategie > > searching the sources? > > 2) What is that existing option 'start' for? Take this as an > example > > for question 1). > > As far as I can see, 'start' currently serves no purpose since it > gets > overridden in line 447 in > \expanded{\setitemparameter{\itemlevel}{\c!start}{1}}% > in core-itm.tex anyway. Try to comment out that line. > > The next problem lies a few lines below: > > \doifelsenothing{\getitemparameter\itemlevel\c!start} >{\def\currentitemoffset{1}} > > {\def\currentitemoffset{\getitemparameter\itemlevel\c!start}% > \letitemparameter\itemlevel\c!start\empty}% > > You need to say \edef instead of \def, otherwise the empty value > will > be used for calculating \currentitemoffset. > > How to search? It's difficult to tell, but in this particular > case, > you take a look into core-itm.tex (assuming you know where > itemizations are. If you don't, you can execute "grep \setupitem *" > in > tex/context/base/.) Then, you search for \c!start and try to > figure > out where it is used. You find \setitemlevel. OK, great. What does > it > do there? It's supposed to change \currentitemoffset. If you want > to check \currentitemoffset, you simply place > (my debug: \currentitemoffset) > at the end of \setitemlevel. Now, you either need to copy that > definition on the top of your document (which will override the > global > one), or remake the formats with "texexec --make en" before > running > texexec on your document again. You will get some extra info on top > of your itemization. It doesn't belong there, but you will remove it > afterwards. (Did I forget to say that it might be wise to make a > bacup > of the original file?) Now when you remade the formats (or placed > the > definition on top of your file or to cont-new.tex) and compiled > the > document again, take a look at the result. > > Oh, well, you only get (my debug: ). \currentitemoffset seems to > be empty. If I change the above /def to /edef I get (my debug: 1), but as a sideeffect the counter is incremented and therefor is starting with 2 then. > Then try to put > (I wanted to have: \getitemparameter\itemlevel\c!start) > somewhere at the beginning of \setitemlevel, somewhere inbetween > (after \expandex{...}) and somewhere at the end. It works at the > beginning, then it gets reset to 1, and then it gets deleted. > And they you try to figure out why. \letitemparameter\itemlevel\c!start\empty} commenting this line has too the above sideeffect that counting is started with 2. But I don't understand the whole thing. If I understand you right, the c!start is for increasing the itemizelevel NOT the numbering. So I wonder why the later is affected. Wolfgang > Btw: the two modifications mentioned above don't solve the problem > yet, since you now have a problem with offset +1 (I remember a bug > report from not so long ago, when itemizations started with 0, so > that > might be related). But I would better leave that for Hans. > Itemizations are so complex that I don't dare to touch anything > there. > > 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] verb-c.tex
Hallo! I forgot to say that I am using a patched version. See the following discussion: http://www.ntg.nl/pipermail/ntg-context/2006/020934.html The 'verb-c.tex' in the distribution does not work with backslashes at all. In my example the problem is with the '*\0\0' part of the string. I hope that someone can help! Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] verb-c.tex
Hallo! 'verb-c.tex' stumbles over #define IMPORTFILTER "Diary (*.dry)\0*.dry\0Address (*.adr)\0*.adr\0All Files(*.*)\0*.*\0\0" (one line) How can this be 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize start=2
> > how can I start an itemization with 2 > > > > I have tried snippets like > > > > \setupitemgroup[[itemize][start=2] > > \startitemize[n] > > \item zwei > > \item drei > > \stopitemize > > > > but could'nt found a solution. > > > > Btw.: Is there a differenz between > > > > \setupitemize[] > > > > and > > > > \setupitemgroup[[itemize][] > > > > Wolfgang > > Hi Wolfgang, > > \setupitemize is only macro for \setupitemgroup[itemize] and is > generated with \defineitemgroup like many other setup commands. > > To start your enumeration with 2 you have to define your own > number conversion. > > \def\nextnumber#1{\the\numexpr#1+1\relax} > > \defineconversion[nn][\nextnumber] > > \starttext > \startitemize[nn] > \item zwei > \item drei > \stopitemize > \stoptext > > Wolfgang Hi Wolfgang! This works! But two questions remain: 1) I am wondering, how you find such answers. What is your strategie searching the sources? 2) What is that existing option 'start' for? Take this as an example for question 1). Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] itemize start=2
Hallo, how can I start an itemization with 2 I have tried snippets like \setupitemgroup[[itemize][start=2] \startitemize[n] \item zwei \item drei \stopitemize but could'nt found a solution. Btw.: Is there a differenz between \setupitemize[] and \setupitemgroup[[itemize][] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] TEXapplication
Hallo, while playing with m-pstric I realized that there is an other problem. m-pstric uses the TEXapplication start/stop mechanism, but the resulting box has no extend. The commented version which does not make use of TEXapplication works ok. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] m-pstric
> > - If dvi is not the default, what is the right switch? > > ('texexec --dvi ...' has no effect) > > --dvi would have been more intuitive, but it's --dvips. That was the solution Thank you Mojca! Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] m-pstric
Hallo, I tried the example in the module pstric, but it is not working. Running my 'tst.tex' loads the module and since it is in pdf-mode a line pstricks : using indirect method; enable write18 was written. But in 'tst-texapp.log' appears the same line: pstricks : using indirect method; enable write18 so 'tst-texapp.tex' was not run in dvi-mode and the pstricks macros are not loaded and \pspicture is unknown. \startTEXapplication has a line \executesystemcommand{texexec ...} So my question is: - Is dvi-mode the default for texexec? (I know it was, but there were some opposite remarks on the list) - If dvi is not the default, what is the right switch? ('texexec --dvi ...' has no effect) Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaFont
> >>> But this does massivly restrict metafonts capabilities. Pens > for > >>> example are not allowed (Metafont with applied handbrake)! > >> I agree, metatype1 is not very easy to use if you are familiar > >> with > >> metafont already. For existing fonts, mf2pt1 is in general the > >> best > >> approach, I think. There is a (patched?) version out there that > >> delegates most the hard work to fontforge, and it's results are > >> normally > >> quite acceptable. > > > > There was once (1990) an article in TUGboat 11:4, pages 525-541 > > which discribes an patch to mf84. The patched mf could produce > type3 > > fonts. Should'nt it be possible to do the same for type1? > > Not without a lot of effort. Type3 fonts allow all sorts of stuff > that is illegal in Type1, like overlapping and mixing of strokes > and fills. The cases where fontforge is refusing, are cases which are best handeld inside metafont, where one has the knowledge: a.) elliptical curves, which are represented by polygons (lots of points and resolution depandend) and should converted to something smoother, and b.) short epicycles, which are also artifacts from penmotions, which can easyly be detected and replaced by an corner point. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Scite
Hallo! I had a little problems to install scite 1.74 for conTeXt under Windows. First, I tried to import both 'context.properties' and 'default.properties' in this order in 'SciteGlobal', but only the second(?) was imported. I tried to comment a few other imports, which I don't use, but Scite refuses to import context. Finally I imported 'context.properties' in 'default.properties'. That works! The CTX-tools redefine the keys Ctrl-B and Ctrl-E which normaly are used to insert abbreviations (which can be language-dependend now) and to find matching braces. I replaced the 'Open Logfile' with Ctrl- L (former Ctrl-E) and deleted the 'Check Text' entry completly, because I am calling ISpell with Ctrl-I therefore. It remains one problem: In the Scite console, the backspace key is not really working (the char is deleted only on screen, not in the buffer). Has anybody a solution? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaFont
> > But this does massivly restrict metafonts capabilities. Pens for > > example are not allowed (Metafont with applied handbrake)! > > I agree, metatype1 is not very easy to use if you are familiar > with > metafont already. For existing fonts, mf2pt1 is in general the > best > approach, I think. There is a (patched?) version out there that > delegates most the hard work to fontforge, and it's results are > normally > quite acceptable. There was once (1990) an article in TUGboat 11:4, pages 525-541 which discribes an patch to mf84. The patched mf could produce type3 fonts. Should'nt it be possible to do the same for type1? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaFont
> > Has anybody ever tried to rewrite metafont to produce type1 > fonts? > > Yes. The Gyre project is using an extended Metapost to generate > Type1 > and OTF fonts. > > Best >Martin > That's MetaType1? But this does massivly restrict metafonts capabilities. Pens for example are not allowed (Metafont with applied handbrake)! Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaFont
> >> I am still using MetaFont typefaces. > >> Will too LuaTeX support MetaFont as PdfTeX does? > > Yes (as Hans and Martin said already). But you really should > consider switching to outline fonts. I am looking for a good way to convert these fonts to type1, but textrace and mftrace don't run under windows and the results of mf2pt1 are not (yet) ok. I am working on this. Has anybody ever tried to rewrite metafont to produce type1 fonts? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MetaFont
Hallo, I am still using MetaFont typefaces. Will too LuaTeX support MetaFont as PdfTeX does? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OpenType in ConTeXt
> >> well, i still use texfont for type 1 fonts, but for open type i > >> use luatex anyway which can handle it directly (actually, mkiv also > >> usese afm files instead of tfm when available, so texfont is not > >> needed any more) > > > > How stable/reliable is LuaTeX for general use? > > Well, "not at all" is the wisest answer I can give. Is it possible to run both (mkiv/LuaTeX and mkii/pdfTeX) in parallel? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OpenType in ConTeXt
> > It is nice to have such scripts. But I would like to know what > > goes on behind the scene. In principle one has to know all the > > steps to do it by hand. > > Just use the great otftotfm by hand and you know what is missing. > Then try to read the source code of otfinstall and try to underst > and what the steps are. > > Patrick The otftotfm documentation is exemplary! I would like to volunteer to help writing such docs for texfont or otfinstall. But it is very difficult to get the information. Not all of us are able to read sourcecode in perl and ruby and lua. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OpenType in ConTeXt
> > Why should I use otfinstall instead of texfont, besides the fact > > that texfont doesn't work? > > Do you really need another reason? Have you tried otfinst? The > point > of all these scripts is to make your life easier in generating > metrics, > auxiliary fonts and map files; if you tear yourself with questions > before trying them much of their interest is lost on you. It is nice to have such scripts. But I would like to know what goes on behind the scene. In principle one has to know all the steps to do it by hand. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] adventor
> > I must admit that I find this a bit frustrating. The tex-gyre font > > project looks so promising, but users need a simpler syntax to use > > the fonts (I know we want need this anymore with luatex, but it > > needs to be fixed anyway). > > This type of patch to type-gyr.tex should help: > > -\starttypescript[serif][palatino][ec,texnansi,cs,el,qx,rm,t5,t2a,t2 > b,t2c,l7x] > +\starttypescript[serif][palatino,pagella][ec,texnansi,cs,el,qx,rm,t > 5,t2a,t2b,t2c,l7x] > > (you can't define a typeface for an undefined typescript). > > Hans doesn't like avantgarde, so for you adventor you will have > to create a completely new typescript, as it was never previously > defined in the core. > > Cheers, > Taco 'type-gyr.tex' defines!!! adventor. But the encoding-script is wrong, as Thomas has pointed out. --- excerpt from type-gyr.tex --- \definetypescriptprefix [n:adventor][TeXGyreAdventor] \definetypescriptprefix [f:adventor][ag] \starttypescript [serif] [pagella,termes,heros,bonum,schola,adventor] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x] \loadmapfile[q\typescriptprefix{f:\typescripttwo}-\typescriptthree.map] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Regular] [\typescriptthree-q\typescriptprefix{f:\typescripttwo}r] [encoding=\typescriptthree] ... \stoptypescript \starttypescript [sans] [heros,adventor] [name] \definefontsynonym [Sans] [\typescriptprefix{n:\typescripttwo}-Regular] ... \stoptypescript \starttypescript [map] [pagella,termes,bonum,schola,heros,adventor] [all] \loadmapfile[q\typescriptprefix{f:\typescripttwo}-\typescriptthree.map] \stoptypescript --- I still have some questions: - A complete (all gyre-fonts) type-script makes sense. Will 'type- gyr' be fixed, or should I create my own? - What are the map-files at the gyre-site for? - Is the second \loadmapfile entry above redundant? - What is the correct texfont syntax, to install adventors small-caps variant? - There are enc-files in the ??dvips?? subdirectory of the font tree: 'fonts/enc/dvips/tex-gyre/q--sc.enc Should I make use from these files? Will they be found there? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] adventor
Hallo Luigi! > > I have some problems useing the font adventor from gyre project. > > After downloading the fonts and the context map-files from the > > gyre-site, I tried the following: > > > > \usetypescriptfile[type-gyr] > > > > \definetypeface[adventor][ss][sans][adventor][default][encoding=ec] > > \setupbodyfont[adventor,ss,9pt] > > \starttext > > \ss Bla > > \stoptext > > > > but I get > > > > ! Font \*adventor12ptsstfss*:=TeXGyreAdventor-Regular at 12.0pt > > not loadable: Metric (TFM) file not found. > > Did you install adventor with texfont ? I tried both! Because there were map-files for conTeXt at the gyre-site and a typescript with ConTeXt, I thought I just have to copy everything to the right place. But obviously the gyre-map-files don't fit with the type-gyr script. On the other site, installing the fonts with texfont works, but I don't have found the trick to install the small caps variant, and the naming is not yet the same as in type-gyr (I have to experiment a bit with this!) But I like to know, what I else have to do when installing these fonts manuelly. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___