Re: [NTG-context] help with citation please (mkiv)
Am 12.01.2011 um 20:19 schrieb Aditya Mahajan: > On Wed, 12 Jan 2011, Steffen Wolfrum wrote: > >> Hi friends, >> >> I am a bit confused with the use of citation/bibliographies in MkIV. >> Maybe someone can help me? >> >> Say, I have a bib-file containing entries like ... >> >> @BOOK{mb:Wassermann1990, >> title = {Alternativkommentar zum Strafgesetzbuch}, >> year = {1990 (Bd. 1), 1986 (Bd. 3)}, >> editor = {Wassermann, Rudolph}, >> % address = {Neuwied}, >> howcited = {\emph{Bearbeiter}, in: Wassermann, AK-StGB}, >> juratitle = {AK-StGB}, >> owner = {mascha}, >> timestamp = {2006.10.02} >> } >> >> In the typeset document I need an entry like this: >> \emph{Amelung} in Wassermann, Alternativkommentar zum Strafgesetzbuch, >> §\,94, Rn. 4. >> >> In a Latex document I saw the usage like this: >> \cite[Amelung][§\,94, Rn. 4]{mb:Wassermann1990} >> >> >> Who do I do it in ConTeXt MkIV?? > > \cite[extras={, §\,94, Rn. 4}][mb:Wassermann1998] > > (or \cite[mb:Was...][extras={...}], I do not remember the order) I though it should be the first one, too. But the citation doesn't work (see example attached). Steffen --- bib_steffen.pdf Description: Adobe PDF document bib_steffen.tex Description: Binary data samplex.bib Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finalizing a module
On Wed, Jan 12, 2011 at 21:11, Willi Egger wrote: > Hi, > > I would like to finalize my module... > I still got a couple of questions: > > 1. How is the module documentation compiled? > 2. How is a module packaged for uploading? > 3. Where is it in the meantime to be uploaded? Contextgarden or TLcontrib? contextgarden.net please, at least until Taco sets up something special (in coordination with me). Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to invoke Unicode symbols?
Am 12.01.2011 um 23:24 schrieb Vyatcheslav Yatskovsky: > Hi! > > I'm back again with my question. I really want to get Unicode 'Quarter Note' > symbol, either from standard or custom font. > > The following example does not work, while the font (Symbola) is found. Works here. Can you try it with a clean installation! 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] Finalizing a module
Am 12.01.2011 um 21:11 schrieb Willi Egger: > Hi, > > I would like to finalize my module... > I still got a couple of questions: > > 1. How is the module documentation compiled? context --ctx=s-mod with “--mode=nocode” you can hide the source and output only the documentation > 2. How is a module packaged for uploading? zip file with tds structure Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to invoke Unicode symbols?
Hi! I'm back again with my question. I really want to get Unicode 'Quarter Note' symbol, either from standard or custom font. The following example does not work, while the font (Symbola) is found. I probably did not define something, but I don't know what. \starttext \startfont[file:Symbola602 sa 2] \fontchar{notequarter} \fontchar{musicalnote} \fontchar{musicalnotedbl} \fontchar{sixteenthnotedbl} \stopfont \stoptext ! LuaTeX error ...tminimal/texmf-context/tex/context/base/cldf-com.lua:58: attempt to call global 'format' (a nil value) stack traceback: ...tminimal/texmf-context/tex/context/base/cldf-com.lua:58: in function 'char' ...tminimal/texmf-context/tex/context/base/font-ctx.lua:830: in function 'char' :1: in main chunk. \fontchar #1->\ctxlua {fonts.char("#1")} l.4 \fontchar{notequarter} ? Please, help me. Regards, Vyatcheslav \starttext \startfont[file:Symbola602 sa 2] \fontchar{notequarter} \fontchar{musicalnote} \fontchar{musicalnotedbl} \fontchar{sixteenthnotedbl} \stopfont \stoptext___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Finalizing a module
Hi, I would like to finalize my module... I still got a couple of questions: 1. How is the module documentation compiled? 2. How is a module packaged for uploading? 3. Where is it in the meantime to be uploaded? Contextgarden or TLcontrib? Kind regards Willi ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] help with citation please (mkiv)
On Wed, 12 Jan 2011, Steffen Wolfrum wrote: Hi friends, I am a bit confused with the use of citation/bibliographies in MkIV. Maybe someone can help me? Say, I have a bib-file containing entries like ... @BOOK{mb:Wassermann1990, title = {Alternativkommentar zum Strafgesetzbuch}, year = {1990 (Bd. 1), 1986 (Bd. 3)}, editor = {Wassermann, Rudolph}, % address = {Neuwied}, howcited = {\emph{Bearbeiter}, in: Wassermann, AK-StGB}, juratitle = {AK-StGB}, owner = {mascha}, timestamp = {2006.10.02} } In the typeset document I need an entry like this: \emph{Amelung} in Wassermann, Alternativkommentar zum Strafgesetzbuch, §\,94, Rn. 4. In a Latex document I saw the usage like this: \cite[Amelung][§\,94, Rn. 4]{mb:Wassermann1990} Who do I do it in ConTeXt MkIV?? \cite[extras={, §\,94, Rn. 4}][mb:Wassermann1998] (or \cite[mb:Was...][extras={...}], I do not remember the order) Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] help with citation please (mkiv)
Hi friends, I am a bit confused with the use of citation/bibliographies in MkIV. Maybe someone can help me? Say, I have a bib-file containing entries like ... @BOOK{mb:Wassermann1990, title = {Alternativkommentar zum Strafgesetzbuch}, year = {1990 (Bd. 1), 1986 (Bd. 3)}, editor = {Wassermann, Rudolph}, % address = {Neuwied}, howcited = {\emph{Bearbeiter}, in: Wassermann, AK-StGB}, juratitle = {AK-StGB}, owner = {mascha}, timestamp = {2006.10.02} } In the typeset document I need an entry like this: \emph{Amelung} in Wassermann, Alternativkommentar zum Strafgesetzbuch, §\,94, Rn. 4. In a Latex document I saw the usage like this: \cite[Amelung][§\,94, Rn. 4]{mb:Wassermann1990} Who do I do it in ConTeXt MkIV?? Any help very welcome!! Thank you, Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
2011/1/12 Michal Kvasnička: > Hallo. > > Can you tell me how to solve it? I will really need mptopdf in two or three > weeks painfully. Many thanks. You can always use \starttext\startMPpage your metapost code \stopMPpage\stoptext but the problem needs to be resolved. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
On Wed, Jan 12, 2011 at 18:12, Mojca Miklavec wrote: > 2011/1/12 Michal Kvasnička : >> Hallo. >> >> I tried mtxrun --script mptopdf chart08.1 but I've got the following error. >> >> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) >> \write18 enabled. >> entering extended mode >> [MP to PDF] >> (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m >> ap/pdftex/plain/pdftex.map}) [1] >> !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found >> ==> Fatal error occurred, no output PDF file produced! > > I have tried to compile the following example: > > beginfig(1); > draw btex $x+1=2$ etex; > endfig; > end. > > It works fine with TeX Live 2010/TLContrib, but fails in minimals > (nearly-latest version of ConTeXt). > > To me this seems as if mptopdf was trying to run plain pdfTeX instead > of ConTeXt [or I have no idea what]. It then only reads pdftex.map > which certainly lacks the information about lmmi font. But I wonder > why it only reads from pdftex.map ... I could fix pdftex.map, but I > would like to figure out what exactly is going on ... Just some more information ... Looking into the filename.1 makes me very suspicious: %!PS %%BoundingBox: 0 0 0 0 %%HiResBoundingBox: 0 0 0 0 %%Creator: MetaPost 1.503 %%CreationDate: 2011.01.12:1822 %%Pages: 1 %*Font: ec-lmr12 11.95517 11.95517 1c:800c040106d42298 %*Font: lmmi12 11.95517 11.95517 78:8 %%BeginProlog %%EndProlog %%Page: 1 1 0 0 0 setrgbcolor 208.537 -9.2369 moveto (1) ec-lmr12 11.95517 fshow -1.133 -67.5053 moveto (b) ec-lmr12 11.95517 fshow 5.6958 -67.5053 moveto (egin\034g\(1\);) ec-lmr12 11.95517 fshow 60.9747 -67.5053 moveto (dra) ec-lmr12 11.95517 fshow 77.5584 -67.5053 moveto (w) ec-lmr12 11.95517 fshow 89.9146 -67.5053 moveto (btex) ec-lmr12 11.95517 fshow 116.2533 -67.5053 moveto (x) lmmi12 11.95517 fshow showpage %%EOF What exactly does "begindraw" do in EPS file? Adding ec-lmr12 and lmmi12 into pdftex.map got rid of the error, but didn't generate any valid output (it created an empty pdf). What mptopdf run on filename.1 does is basically pdftex -fmt=mptopdf -progname=context \\relax mathmp.1 (maybe I'm wrong; but it behaved exactly like that), but I didn't manage to get any sensible output out of that. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
2011/1/12 Michal Kvasnička : > Hallo. > > I tried mtxrun --script mptopdf chart08.1 but I've got the following error. > > This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) > \write18 enabled. > entering extended mode > [MP to PDF] > (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m > ap/pdftex/plain/pdftex.map}) [1] > !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found > ==> Fatal error occurred, no output PDF file produced! I have tried to compile the following example: beginfig(1); draw btex $x+1=2$ etex; endfig; end. It works fine with TeX Live 2010/TLContrib, but fails in minimals (nearly-latest version of ConTeXt). To me this seems as if mptopdf was trying to run plain pdfTeX instead of ConTeXt [or I have no idea what]. It then only reads pdftex.map which certainly lacks the information about lmmi font. But I wonder why it only reads from pdftex.map ... I could fix pdftex.map, but I would like to figure out what exactly is going on ... Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
2011/1/12 Michal Kvasnička : > Hallo. > > I tried mtxrun --script mptopdf chart08.1 but I've got the following error. > > This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) > \write18 enabled. > entering extended mode > [MP to PDF] > (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m > ap/pdftex/plain/pdftex.map}) [1] > !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found > ==> Fatal error occurred, no output PDF file produced! > > MPtoPDF 1.4.0 : error while processing tex file > > I'm using ConTeXt minimals under Ubuntu 10.10, the last stable version of > ConTeXt (ver: 2010.07.30 11:35 MKII). However, it produces the same error > with two other betas I've got in my computer. > > I guess there is something broken inside the mptopdf since I can compile the > charts themselves with texexec --mptex chart08.mp. And when I include it > into a TeX file with \externalfigure, the pdf file created is all right. > > Can you tell me how to solve it? I will really need mptopdf in two or three > weeks painfully. Many thanks. > > Best wishes, > Michal Can you show a minimal example ? -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
Hallo. I tried mtxrun --script mptopdf chart08.1 but I've got the following error. This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. entering extended mode [MP to PDF] (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m ap/pdftex/plain/pdftex.map}) [1] !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found ==> Fatal error occurred, no output PDF file produced! MPtoPDF 1.4.0 : error while processing tex file I'm using ConTeXt minimals under Ubuntu 10.10, the last stable version of ConTeXt (ver: 2010.07.30 11:35 MKII). However, it produces the same error with two other betas I've got in my computer. I guess there is something broken inside the mptopdf since I can compile the charts themselves with texexec --mptex chart08.mp. And when I include it into a TeX file with \externalfigure, the pdf file created is all right. Can you tell me how to solve it? I will really need mptopdf in two or three weeks painfully. Many thanks. Best wishes, Michal 2011/1/12 Hans Hagen > On 10-1-2011 12:37, Mojca Miklavec wrote: > >> Hans& Taco, >> >> A tiny request: is there any chance to make the mptopdf script point >> to "--script mptopdf" instead of "--script base"? >> > > i see, the sh script is wrong > > > And note for Taco: I have no idea how it got there (I think that I use >> TLContrib), but my TL installation (/usr/texbin/mptopdf) contains: >> > > it was wrong in the context zip; for windows one can just copy the stub > mtxrun.exe to mptopdf.exe but the same is not true for the shell script that > needs to be: > > #!/bin/sh > mtxrun --script mptopdf "$@" > > I'm not sure, but a generic (copyable) script could be: > > #!/bin/sh > mtxrun --script $0 "$@" > > (no shell expert) > > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > - > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Interaction messing with footnote positioning
Hi all, consider the following document: \setupinteraction[state=start] \starttext {\definedfont[Regular at 30pt] blah\footnote{hello}} \stoptext and compare it with the result for the same document where the first line is commented out. The footnote number isn't aligned the same. Shouldn't setupinteraction have no impact this sort of thing? Best, Mathieu ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Skew not working in latest beta
On Wed, Jan 12, 2011 at 04:08:40PM +0100, Taco Hoekwater wrote: > > > On 01/12/11 16:02, Mathieu Boespflug wrote: > > It seems this is a regression of either ConTeXt or LuaTeX. I have a > > PDF that I generated on December 9th that doesn't have this problem. > > According to the PDF metadata, the versions used to create it were: > > > > Producer: LuaTeX-0.64.0 > > Creator: ConTeXt - 2010.11.27 14:27 > > > > I also have a PDF from the same source created end of December with > > the following versions, that features the bug: > > > > ConTEXt version 2010.12.21 10 :50 on LuaTeX version 0.65.0. > > > > Could it be a LuaTeX 0.65 regression? > > Well, luatex 0.65.0 had this bugfix: > > * With OpenType math fonts, accents over any class except 0 and 7 > were misplaced. > > And that could be related. Works fine here for "true" OpenType math fonts, so I think it might be something ConTeXt. \setupbodyfont[xits] %\setupbodyfont[cambria] %\setupbodyfont[asana] % no accents! \starttext hello $\hat x \hat A$. \stoptext BTW, accents are not shown with Asana which lacks spacing accents that context used to use for non-wide accents, shouldn't be using combining accents with both now Luatex have "fixed" keyword? Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Skew not working in latest beta
On 01/12/11 16:02, Mathieu Boespflug wrote: > It seems this is a regression of either ConTeXt or LuaTeX. I have a > PDF that I generated on December 9th that doesn't have this problem. > According to the PDF metadata, the versions used to create it were: > > Producer: LuaTeX-0.64.0 > Creator: ConTeXt - 2010.11.27 14:27 > > I also have a PDF from the same source created end of December with > the following versions, that features the bug: > > ConTEXt version 2010.12.21 10 :50 on LuaTeX version 0.65.0. > > Could it be a LuaTeX 0.65 regression? Well, luatex 0.65.0 had this bugfix: * With OpenType math fonts, accents over any class except 0 and 7 were misplaced. And that could be related. ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Skew not working in latest beta
It seems this is a regression of either ConTeXt or LuaTeX. I have a PDF that I generated on December 9th that doesn't have this problem. According to the PDF metadata, the versions used to create it were: Producer: LuaTeX-0.64.0 Creator: ConTeXt - 2010.11.27 14:27 I also have a PDF from the same source created end of December with the following versions, that features the bug: ConTEXt version 2010.12.21 10 :50 on LuaTeX version 0.65.0. Could it be a LuaTeX 0.65 regression? Best, Mathieu On Wed, Jan 12, 2011 at 3:37 PM, Hans Hagen wrote: > On 12-1-2011 2:30, Mathieu Boespflug wrote: >> >> \starttext >> >> hello $\hat x \hat A$. >> \stoptext > > I have no clue ... does it also concern a different luatex binary? > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > - > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Skew not working in latest beta
On 12-1-2011 2:30, Mathieu Boespflug wrote: \starttext hello $\hat x \hat A$. \stoptext I have no clue ... does it also concern a different luatex binary? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Skew not working in latest beta
Hi all, consider the following short document \starttext hello $\hat x \hat A$. \stoptext In the latest beta, and in a December beta as well, the hat above the capital A is misplaced. IIRC the placement used to be correct, back in november. Any ideas as to a workaround in the meantime ? Mathieu ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] the chart module broken
Hi Li Yanrui, Your example works fine with mkiv (version 2010.01.12), but fails to work with mkii, in which case I get the error message: Fatal error: catcode push/pop mismatch. Fix this! \wait= Best regards: OK On 11 janv. 2011, at 01:13, Li Yanrui (李延瑞) wrote: > Hi, > > With beta 2011.01.10 17:55, the chart module is broken. For this > minimal example: > > \usemodule[chart] > > \starttext > > \startFLOWchart[example] > \startFLOWcell > \name {flow} > \location {1,1} > \text {Flow} > \connection [rl] {chart} > \stopFLOWcell > \startFLOWcell > \name {chart} > \location{2,1} > \text {Charts} > \stopFLOWcell > \stopFLOWchart > > \FLOWchart[example] > > \stoptext > > I got the error: > > (virtual://viafile.1) (virtual://viafile.2) (virtual://viafile.3 > ! Undefined control sequence. > \asciia ...LOLrulethickness ; connect_\cFLOWfrom_ > \cFLOWto (\FLOWfrom ,\zFLO... > \dostartMPdrawing ...data {\MPdrawingdata \asciia > }\egroup > \dodoFLOWconnectionC ...ace [0,0,0]\stopMPdrawing > \fi \fi \fi \ignorespaces > ...text {Flow} \connection [rl] {chart} > > \startFLOWcell ...FLOWconnectionC \ignorespaces #1 > \unskip > l.6 \stopFLOWcell > > ? > > -- > Best regards, > > Li Yanrui > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] mptopdf (broken again)
On Wed, Jan 12, 2011 at 12:17, Hans Hagen wrote: > On 12-1-2011 10:31, Mojca Miklavec wrote: > >> No, that would not work properly. $0 gives me full path to the >> executable script, so in my case I would get >> mtxrun --script /context/tex/texmf-osx-64/bin/mptopdf >> which is probably not desirable. There are ways to circumvent this, >> but leaving the scripts the way they are now still seems reasonable to >> me. > > ok, can you check if the current zip has it right for you? It seems ok, thanks. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
On 12-1-2011 10:31, Mojca Miklavec wrote: No, that would not work properly. $0 gives me full path to the executable script, so in my case I would get mtxrun --script /context/tex/texmf-osx-64/bin/mptopdf which is probably not desirable. There are ways to circumvent this, but leaving the scripts the way they are now still seems reasonable to me. ok, can you check if the current zip has it right for you? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Replacing a piece of a paper
Am 12.01.2011 um 11:56 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > Hello, > > thanks for the code. > > On Wed, 12 Jan 2011 10:30:39 +0100, Wolfgang Schuster > wrote: > >> \define[2]\Replacement >> {\startTEXpage[background={foreground,replacement}]% {\startTEXpage >> \layeredtext >> [corner={right,bottom},location={left,top}] >> [background=color,backgroundcolor=white,offset=0pt] >> {\externalfigure[#2]} >> {\externalfigure[#1]} >> \stopTEXpage} >> >> \useexternalfigure[big] [hacker][scale=3000] >> \useexternalfigure[small][cow] >> >> \starttext >> \Replacement{big}{small} >> \stoptext >> >> \layeredtext is described in the details manuals. > > Which exactly do you mean? I searched for some information about > "\layeredtext" and "\startTEXpage[background=". You don’t need “backround={…}”, it’s a leftover from a earlier attempt to find a nice solution to your problem. \startTEXpage … \stopTEXpage produce a separate page for it’s content where the page is a large as the content itself, try: \starttext \input knuth\par \startTEXpage[width=10cm] \input knuth\par \stopTEXpage \input knuth\par \stoptext > I tried wiki, contextref.pdf and google, also several from > http://www.pragma-ade.com/show-man-1.htm, but I'm not much smarter so far. http://pragma-ade.com/show-man-27.htm 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] Replacing a piece of a paper
2011/1/12 Procházka Lukáš Ing. - Pontex s. r. o. : > Hello, > > thanks for the code. > > On Wed, 12 Jan 2011 10:30:39 +0100, Wolfgang Schuster > wrote: > >> \define[2]\Replacement >> {\startTEXpage[background={foreground,replacement}]% >> \layeredtext >> [corner={right,bottom},location={left,top}] >> [background=color,backgroundcolor=white,offset=0pt] >> {\externalfigure[#2]} >> {\externalfigure[#1]} >> \stopTEXpage} >> >> \useexternalfigure[big] [hacker][scale=3000] >> \useexternalfigure[small][cow] >> >> \starttext >> \Replacement{big}{small} >> \stoptext >> >> \layeredtext is described in the details manuals. > > Which exactly do you mean? I searched for some information about > "\layeredtext" and "\startTEXpage[background=". I tried wiki, contextref.pdf > and google, also several from http://www.pragma-ade.com/show-man-1.htm, but > I'm not much smarter so far. > > Best regards, > > Lukas maybe http://www.pragma-ade.com/general/manuals/details.pdf -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Replacing a piece of a paper
Hello, thanks for the code. On Wed, 12 Jan 2011 10:30:39 +0100, Wolfgang Schuster wrote: \define[2]\Replacement {\startTEXpage[background={foreground,replacement}]% \layeredtext [corner={right,bottom},location={left,top}] [background=color,backgroundcolor=white,offset=0pt] {\externalfigure[#2]} {\externalfigure[#1]} \stopTEXpage} \useexternalfigure[big] [hacker][scale=3000] \useexternalfigure[small][cow] \starttext \Replacement{big}{small} \stoptext \layeredtext is described in the details manuals. Which exactly do you mean? I searched for some information about "\layeredtext" and "\startTEXpage[background=". I tried wiki, contextref.pdf and google, also several from http://www.pragma-ade.com/show-man-1.htm, but I'm not much smarter so far. Best regards, Lukas Wolfgang -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Which table environment?
Am 11.01.2011 um 01:03 schrieb Felix Ingram: > Hello all, > > I've been playing with the various table environments but I thought > I'd seek advice as to which would be the best for my requirements. > > I need to be able to do the following: > > - Repeating header row with coloured background and text (I can get > this working with TABLE but not tabulate). Tabulate supports background color for cells, Hans posted a example last november. Headers and footers are supported too, look for \starttabulatehead and \starttabulatetail. > - Multi-page tables (TABLE and tabulate are fine with these). > - Insert images in a cell (TABLE seems to handle this better than tabulate). Indeed. > - Have rows that will split across pages - we will have large pieces > of text and images which will end up being taller than the page. > (tabulates paragraph support is the right sort of thing) Correct, tabulate only feature. > - Start next row on current page. ??? > - Include other tables, lists etc in a cell (this is a "nice to have" > rather than a "must have") TABLE > The reason I need these various things is because Word acts this way > and I need to produce something similar (until we can argue for a > format change). Use tabulate for text centric tables and TABLE for tables with a strict layout and figures and other content (because you can set the cells width and height). > At the moment I'm leaning towards tabulate but I'm having issues with > images and the headers. I'm using Mk IV (bonus question: as a newbie, > should I just start with IV and ignore II? Or is II better for any > particular reason?). Use MkIV, the differences between both are not so big but for me there are many minor things why i prefer MkIV over MkII. 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] mptopdf (broken again)
On Wed, Jan 12, 2011 at 10:07, Hans Hagen wrote: > > it was wrong in the context zip; for windows one can just copy the stub > mtxrun.exe to mptopdf.exe but the same is not true for the shell script that > needs to be: > > #!/bin/sh > mtxrun --script mptopdf "$@" That's right, but may I ask to fix that in ConTeXt? > I'm not sure, but a generic (copyable) script could be: > > #!/bin/sh > mtxrun --script $0 "$@" > > (no shell expert) No, that would not work properly. $0 gives me full path to the executable script, so in my case I would get mtxrun --script /context/tex/texmf-osx-64/bin/mptopdf which is probably not desirable. There are ways to circumvent this, but leaving the scripts the way they are now still seems reasonable to me. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Replacing a piece of a paper
Am 12.01.2011 um 09:39 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > Hello, > > thanks to all for the answers, Peter's solution is closest to that I need. My > code now is: > > --- > \setuppapersize[A1,landscape] > \setuplayout[page] > \setuppositioning > [state=overlay, > yoffset=-12pt % Why? > ] > > \starttext > \startpositioning >\position(0,0){\rotate[rotation=90]{\externalfigure[TvNK]}} > > \position(630mm,297mm){\framed[frame=off,offset=overlay,background=color,backgroundcolor=white] > {\externalfigure[_R]}} > \stoppositioning > \stoptext > --- > > I'd still have two questions: > > - Is it possible to determine the size of the PDF being inserted (in my case > the "TvNK", which is A1)? I'd need to know this because depending on this, > I'd need to \setuppapersize[,landscape]. > > - Is it possible to "move" the origin for \positioning to the right bottom > corner? It's not "fatal" to know it, as having the PDF size known, I can > evaluate 630mm = width.of.A1 - width.of.A4 and 297 = height.of.A1 - > height.of.A4; I'm just curious. \define[2]\Replacement {\startTEXpage[background={foreground,replacement}]% \layeredtext [corner={right,bottom},location={left,top}] [background=color,backgroundcolor=white,offset=0pt] {\externalfigure[#2]} {\externalfigure[#1]} \stopTEXpage} \useexternalfigure[big] [hacker][scale=3000] \useexternalfigure[small][cow] \starttext \Replacement{big}{small} \stoptext \layeredtext is described in the details manuals. 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] mptopdf (broken again)
On 10-1-2011 12:37, Mojca Miklavec wrote: Hans& Taco, A tiny request: is there any chance to make the mptopdf script point to "--script mptopdf" instead of "--script base"? i see, the sh script is wrong And note for Taco: I have no idea how it got there (I think that I use TLContrib), but my TL installation (/usr/texbin/mptopdf) contains: it was wrong in the context zip; for windows one can just copy the stub mtxrun.exe to mptopdf.exe but the same is not true for the shell script that needs to be: #!/bin/sh mtxrun --script mptopdf "$@" I'm not sure, but a generic (copyable) script could be: #!/bin/sh mtxrun --script $0 "$@" (no shell expert) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Replacing a piece of a paper
Hi, > Finally, the PDFs are to be printed to a physical printer (=> physical pieces > of paper) and also to be provided to the third party like digital documents. > The result should not have layers switchable to on/off, but I believe this > can be handled by printing the final (even layered) PDF to another PDF by a > virtual printer (e.g. pdfCreator). > > Layering was only an idea, which - as I believed - should lead to the goal; > although that would probably mean to print the (layered) PDFs manually to the > virtual PDF printer. > > Or is there another (non-layering or layer-merging) way? > if you want to get rid of some part of PDF documents and if they are not too many, you can try to import them in Inkscape editor and really delete what is unwanted. Regards Zdeněk ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Replacing a piece of a paper
Hello, thanks to all for the answers, Peter's solution is closest to that I need. My code now is: --- \setuppapersize[A1,landscape] \setuplayout[page] \setuppositioning [state=overlay, yoffset=-12pt % Why? ] \starttext \startpositioning \position(0,0){\rotate[rotation=90]{\externalfigure[TvNK]}} \position(630mm,297mm){\framed[frame=off,offset=overlay,background=color,backgroundcolor=white] {\externalfigure[_R]}} \stoppositioning \stoptext --- I'd still have two questions: - Is it possible to determine the size of the PDF being inserted (in my case the "TvNK", which is A1)? I'd need to know this because depending on this, I'd need to \setuppapersize[,landscape]. - Is it possible to "move" the origin for \positioning to the right bottom corner? It's not "fatal" to know it, as having the PDF size known, I can evaluate 630mm = width.of.A1 - width.of.A4 and 297 = height.of.A1 - height.of.A4; I'm just curious. Best regards, Lukas On Tue, 11 Jan 2011 21:32:12 +0100, Peter Münster wrote: Not necessary, context can produce such files for you. Example, using positioning macros, that shows also a problem with vertical offset: --8<---cut here---start->8--- % Produce A2-example: \startbuffer[a2] \setuppapersize[A2] \setuplayout[page] \setupbackgrounds[page][background=color, backgroundcolor=blue] \starttext \input tufte \stoptext \stopbuffer \savebuffer[a2][a2-page.tex] \executesystemcommand{context a2-page} % Produce A4-example: \startbuffer[a4] \setuppapersize[A4] \setuplayout[page] \starttext \input tufte \stoptext \stopbuffer \savebuffer[a4][a4-page.tex] \executesystemcommand{context a4-page} % Do the job: \setuppapersize[A2] \setuplayout[page] \setuppositioning[state=overlay, yoffset=-12pt%%% Why is this offset needed??? ] \starttext \startpositioning \position(0,0){\externalfigure[a2-page]} \position(0,0){\framed[frame=off, offset=overlay, background=color, backgroundcolor=white]{\externalfigure[a4-page]}} \stoppositioning \stoptext --8<---cut here---end--->8--- -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___