Re: [NTG-context] latest beta - Math error
Thomas A. Schmitz wrote: On Mar 2, 2009, at 11:32 PM, Hans Hagen wrote: does this work at your end? \starttext $\approx$ \stoptext Yes, unfortunately it does... strange, since it works ok here; maybe deleting the font cache helps Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta release
Yue Wang wrote: ${\bf y}$ still gives me roman regular y. sure, as i didn't add any bold definitions yet Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] latest beta - Math error
Hans Hagen wrote: Thomas A. Schmitz wrote: On Mar 2, 2009, at 11:32 PM, Hans Hagen wrote: does this work at your end? \starttext $\approx$ \stoptext Yes, unfortunately it does... strange, since it works ok here; maybe deleting the font cache helps If both work, then maybe the xml is using a different math font set? Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta / cjk
Yue Wang wrote: beta is not working. failed when generating the format for mkii It still works for me. You are still using ruby 1.8, I assume? TeXExec | unable to make format due to lack of permissions Also, it seems that sometimes you get that when you are creating the formats from within a wrong starting directory. Can you try from e.g. C:\Temp ? I have had this due to lack of permissions happen to me on various occasions also, but I've never been able to pinpoint the exact cause. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta / cjk
yes, Taco, you are right. it generated plain.mem and log, metafun.men and log on the c:\Temp. On Tue, Mar 3, 2009 at 6:02 PM, Yue Wang yuleo...@gmail.com wrote: On Tue, Mar 3, 2009 at 4:37 PM, Taco Hoekwater t...@elvenkind.com wrote: Yue Wang wrote: beta is not working. failed when generating the format for mkii It still works for me. You are still using ruby 1.8, I assume? Yes. TeXExec | unable to make format due to lack of permissions Also, it seems that sometimes you get that when you are creating the formats from within a wrong starting directory. Can you try from e.g. C:\Temp ? C:\temptexexec --make TeXExec | using search method 'kpsefast' TeXExec | updating file database Cannot open C:/context/tex/texmf-project/ls-R to write. mktexlsr: Updating C:/context/tex/texmf-fonts/ls-R... mktexlsr: Updated C:/context/tex/texmf-fonts/ls-R. Cannot open C:/context/tex/texmf-local/ls-R to write. mktexlsr: Updating C:/context/tex/texmf-mswin/ls-R... mktexlsr: Updated C:/context/tex/texmf-mswin/ls-R. mktexlsr: Updating C:/context/tex/texmf-context/ls-R... mktexlsr: Updated C:/context/tex/texmf-context/ls-R. Cannot open C:/context/tex/texmf-extra/ls-R to write. mktexlsr: Updating C:/context/tex/texmf/ls-R... mktexlsr: Updated C:/context/tex/texmf/ls-R. mktexlsr: Done. TeXExec | using tex engine pdftex TeXExec | using tex format path ./pdftex TeXExec | unable to make format due to lack of permissions TeXExec | using mp engine mpost TeXExec | using mps format path . TeXExec | generating mps format metafun warning: mpost: unimplemented option -translate-file=natural.tcx This is MetaPost, version 1.102 (kpathsea version 3.5.7) (INIMP) (c:/context/tex/texmf-context/metapost/context/base/metafun.mp (c:/context/tex/t exmf-context/metapost/context/base/mp-base.mp Preloading the plain mem file, version 0.63) (c:/context/tex/texmf-context/metap ost/context/base/mp-tool.mp) (c:/context/tex/texmf-context/metapost/context/base /mp-spec.mp) (c:/context/tex/texmf-context/metapost/context/base/mp-core.mp) (c:/context/tex/texmf-context/metapost/context/base/mp-page.mp) (c:/context/tex/ texmf-context/metapost/context/base/mp-text.mp) (c:/context/tex/texmf-context/me tapost/context/base/mp-txts.mp) (c:/context/tex/texmf-context/metapost/context/b ase/mp-shap.mp) (c:/context/tex/texmf-context/metapost/context/base/mp-butt.mp) (c:/context/tex/ texmf-context/metapost/context/base/mp-char.mp) (c:/context/tex/texmf-context/me tapost/context/base/mp-step.mp) (c:/context/tex/texmf-context/metapost/context/b ase/mp-grph.mp) (c:/context/tex/texmf-context/metapost/context/base/mp-figs.mp) (c:/context/tex/ texmf-context/metapost/context/base/mp-mlib.mp) (c:/context/tex/texmf-context/me tapost/context/base/mp-grid.mp (c:/context/tex/texmf-context/metapost/context/ba se/mp-form.mp (c:/context/tex/texmf/metapost/base/string.mp) (c:/context/tex/texmf/metapost/ba se/marith.mp (c:/context/tex/texmf/metapost/base/string.mp (c:/context/tex/t exmf-context/metapost/context/base/mp-func.mp) ) Beginning to dump on file metafun.mem (mem=metafun 2009.03.03) at most 2189 strings of total length 17786 49468 memory locations dumped; current usage is 1283136510 1792 symbolic tokens Transcript written on metafun.log. TeXExec | TeXExec | mps engine path: . TeXExec | TeXExec | mps: 03/03/2009 17:59:21 C:/temp/metafun.mem (483328) TeXExec | mps: 03/03/2009 17:59:21 C:/temp/metafun.mem (483328) TeXExec | TeXExec | runtime: 0.328 C:\tempruby --version ruby 1.8.4 (2005-12-24) [i386-mswin32] C:\temp I have had this due to lack of permissions happen to me on various occasions also, but I've never been able to pinpoint the exact cause. I use Hans's context/install/mswincontext.zip and upgrade context using the first-setup.sh inside that file. It works fine during the last few months. however, today the problem appears. I didn't change anything. so strange. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta again
Hi, Hans: Thanks for the quick fix! I will try the latest beta once it appears on minimals repository. Yue Wang On Tue, Mar 3, 2009 at 5:58 PM, Hans Hagen pra...@wxs.nl wrote: Hi, - the problem with creating formats is related to changes in texexec (and other rb modules) that rely on ruby 1.8 and had to be adapted to 1.9; because incompatibilities in library calls are nicely catched (begin .. rescue ... end) we never see problems unless we explicitly issue an error message or warning which in most cases is more bound to the expected behaviour than to the method missing ... as such, i would not be surprised if more problems show up, but on the other hand, in the end only texexec remains as ruby script - the problem with hz/protruding was due to a typo in one of the lua scripts but even then, the posted example would now show the effects as one has to explicitly turn it on: \setupalign[hz,hanging] i'll upload a new beta Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] modife the style of taspresent
Dear All, anybody can help me on this problem? As most of the ppt file's background are graphics, but I don't know how to do it by modify the sytelefile. for example bellow style: - %D \module %D [ file=t-horizontalblue, %Dversion=2007.07.17, %D title=\CONTEXT\ Style File, %D subtitle=Presentation Module horizontalblue, %D author=Thomas A. Schmitz, %D date=\currentdate, %D copyright={Thomas A. Schmitz}] %C %C Copyright 2007 Thomas A. Schmitz. %C This file may be distributed under the GNU General Public License v. 2.0. %D This file provides the \quotation{horizontalblue} style for the presentation %D module. It is loaded at runtime. The look of this style was inspired by the %D \quotation{Copenhagen} theme of the \LaTeX\ {\tt beamer} package. \writestatus{loading}{module newstyle} \startmodule[newstyle] \unprotect %D The taspresentation module provides a skeleton into which different styles %D can be hooked. It uses a number of variables and macros which have to be set %D beforehand. Some parts are optional. We begin with the necessary definitions: %D We start colors: \setupcolors[state=start] %D These macros are used for placing figures/pictures: \define\NormalHeight{.97\textheight} \define\NormalWidth{.476\textwidth} \define\PictureFrameHeight{.97\textheight} \define\PictureFrameWidth{.476\textwidth} %D The page layout: \setuplayout [width=fit, margin=0cm, height=14.7cm, header=1.75cm, footer=1.2cm, topspace=1cm, backspace=1cm, location=singlesided] %D The macro for typesetting the Slidetitle; this is adapted from a sample %D document that Brooks Moses published on the wiki: \definelayer[slidetitle] [width=\paperwidth, height=\paperheight, x=10mm] \define[1]\Slidetitle{\page\setlayer[slidetitle]% {\framed[frame=off,width=\textwidth,height=2.2cm,offset=0pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[c]{#1 %D The macro \tex{Maketitle} produces a default title page with the author, the %D title of the presentation, and the date. Using it is not mandatory. \define\Maketitle{% \titback \null \vfill \framed[frame=off,width=\textwidth,height=.75\textheight,top=\vss,bottom=\vss,align=middle]{\switchtobodyfont[\Titlesize]\color[c]{\bf \getvariable{taspresent}{title}}\switchtobodyfont[\Normalsize]\blank[line]\getvariable{taspresent}{author}\blank[2*line]\currentdate} \vfill \null} %D The following parts are optional; if you don't use backgrounds and are %D content with CONTEXT's default itemization, you don't have to set these %D macros. %D We define our colors: \definecolor [a][s=.95] \definecolor [b][r=.58,g=.58,b=.82] \definecolor [c][r=.2,g=.2,b=.73] \definecolor [Item] [r=.2,g=.2,b=.73] %D We let Metapost calculate the background: \startuniqueMPgraphic{vertical} StartPage ; pair zd[] ; path pb[] ; fill Page withcolor \MPcolor{a} ; z.d1 = ulcorner Page shifted (0,-5pt) ; z.d2 = urcorner Page shifted (0,-5pt) ; pb[1] = ulcorner Page -- z.d1 -- z.d2 -- urcorner Page -- cycle ; z.d3 = llcorner Page shifted (0,5pt) ; z.d4 = lrcorner Page shifted (0,5pt) ; pb[3] = llcorner Page -- z.d3 -- z.d4 -- lrcorner Page -- cycle ; pb[4] = pb[3] shifted (0,.75cm) ; fill pb[1] withcolor \MPcolor{b} ; fill pb[3] withcolor \MPcolor{b} ; fill pb[4] withcolor \MPcolor{b} ; StopPage ; \stopuniqueMPgraphic \startuniqueMPgraphic{horizontal} StartPage ; pair zd[] ; path pb[] ; z.d1 = ulcorner Page shifted (0,-5pt) ; z.d2 = urcorner Page shifted (0,-5pt) ; pb[1] = ulcorner Page -- z.d1 -- z.d2 -- urcorner Page -- cycle ; pb[2] = pb[1] shifted (0,-2cm) ; fill pb[2] withcolor \MPcolor{b} ; StopPage ; \stopuniqueMPgraphic %D We define these backgrounds as overlays: \defineoverlay [lecbackground] [\useMPgraphic{horizontal}] \defineoverlay [picbackground] [\useMPgraphic{vertical}] %D We define the footer \setupfooter[color=c,style={\switchtobodyfont[10pt]},strut=yes] \setupfootertexts[{\framed[frame=off,height=.45cm,width=\textwidth]{\getvariable{taspresent}{title}\hfill \pagenumber \ of \lastpage}}] %D These are shortcuts to switch backgrounds: \define\lecback{\setuplayout[header=1.75cm]\setupfooter[state=start]\setupbackgrounds[page][background={picbackground,lecbackground,slidetitle}]} \define\titback{\setuplayout[header=1.75cm]\setupfooter[state=stop]\setupbackgrounds[page][background={picbackground,lecbackground}]} \define\picback{\setuplayout[header=0cm]\setupfooter[state=start]\setupbackgrounds[page][background={picbackground}]} \define\noback{\setupbackgrounds[page][background=nobackground]} %D We use combinations for placing vertical pictures and text side by side, and %D we want a distance of 1.1 cm between both. \setupcombinations[distance=1.1cm] %D The symbol for the first level of
Re: [NTG-context] modife the style of taspresent
Am 03.03.2009 um 11:18 schrieb Bill Long: Dear All, anybody can help me on this problem? As most of the ppt file's background are graphics, but I don't know how to do it by modify the sytelefile. for example bellow style: I try to modify \defineoverlay [lecbackground] [\useMPgraphic{horizontal}] to something like \defineoverlay [lecbackground] [\externalfigure[figure]] [{\externalfigure[figure]}] but it doesn't work. any idea? I need for example a.png on right top. and b.png bottom. 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] beta / cjk
On Tue, Mar 3, 2009 at 4:37 PM, Taco Hoekwater t...@elvenkind.com wrote: Yue Wang wrote: beta is not working. failed when generating the format for mkii It still works for me. You are still using ruby 1.8, I assume? Yes. TeXExec | unable to make format due to lack of permissions Also, it seems that sometimes you get that when you are creating the formats from within a wrong starting directory. Can you try from e.g. C:\Temp ? C:\temptexexec --make TeXExec | using search method 'kpsefast' TeXExec | updating file database Cannot open C:/context/tex/texmf-project/ls-R to write. mktexlsr: Updating C:/context/tex/texmf-fonts/ls-R... mktexlsr: Updated C:/context/tex/texmf-fonts/ls-R. Cannot open C:/context/tex/texmf-local/ls-R to write. mktexlsr: Updating C:/context/tex/texmf-mswin/ls-R... mktexlsr: Updated C:/context/tex/texmf-mswin/ls-R. mktexlsr: Updating C:/context/tex/texmf-context/ls-R... mktexlsr: Updated C:/context/tex/texmf-context/ls-R. Cannot open C:/context/tex/texmf-extra/ls-R to write. mktexlsr: Updating C:/context/tex/texmf/ls-R... mktexlsr: Updated C:/context/tex/texmf/ls-R. mktexlsr: Done. TeXExec | using tex engine pdftex TeXExec | using tex format path ./pdftex TeXExec | unable to make format due to lack of permissions TeXExec | using mp engine mpost TeXExec | using mps format path . TeXExec | generating mps format metafun warning: mpost: unimplemented option -translate-file=natural.tcx This is MetaPost, version 1.102 (kpathsea version 3.5.7) (INIMP) (c:/context/tex/texmf-context/metapost/context/base/metafun.mp (c:/context/tex/t exmf-context/metapost/context/base/mp-base.mp Preloading the plain mem file, version 0.63) (c:/context/tex/texmf-context/metap ost/context/base/mp-tool.mp) (c:/context/tex/texmf-context/metapost/context/base /mp-spec.mp) (c:/context/tex/texmf-context/metapost/context/base/mp-core.mp) (c:/context/tex/texmf-context/metapost/context/base/mp-page.mp) (c:/context/tex/ texmf-context/metapost/context/base/mp-text.mp) (c:/context/tex/texmf-context/me tapost/context/base/mp-txts.mp) (c:/context/tex/texmf-context/metapost/context/b ase/mp-shap.mp) (c:/context/tex/texmf-context/metapost/context/base/mp-butt.mp) (c:/context/tex/ texmf-context/metapost/context/base/mp-char.mp) (c:/context/tex/texmf-context/me tapost/context/base/mp-step.mp) (c:/context/tex/texmf-context/metapost/context/b ase/mp-grph.mp) (c:/context/tex/texmf-context/metapost/context/base/mp-figs.mp) (c:/context/tex/ texmf-context/metapost/context/base/mp-mlib.mp) (c:/context/tex/texmf-context/me tapost/context/base/mp-grid.mp (c:/context/tex/texmf-context/metapost/context/ba se/mp-form.mp (c:/context/tex/texmf/metapost/base/string.mp) (c:/context/tex/texmf/metapost/ba se/marith.mp (c:/context/tex/texmf/metapost/base/string.mp (c:/context/tex/t exmf-context/metapost/context/base/mp-func.mp) ) Beginning to dump on file metafun.mem (mem=metafun 2009.03.03) at most 2189 strings of total length 17786 49468 memory locations dumped; current usage is 1283136510 1792 symbolic tokens Transcript written on metafun.log. TeXExec | TeXExec | mps engine path: . TeXExec | TeXExec | mps: 03/03/2009 17:59:21 C:/temp/metafun.mem (483328) TeXExec | mps: 03/03/2009 17:59:21 C:/temp/metafun.mem (483328) TeXExec | TeXExec | runtime: 0.328 C:\tempruby --version ruby 1.8.4 (2005-12-24) [i386-mswin32] C:\temp I have had this due to lack of permissions happen to me on various occasions also, but I've never been able to pinpoint the exact cause. I use Hans's context/install/mswincontext.zip and upgrade context using the first-setup.sh inside that file. It works fine during the last few months. however, today the problem appears. I didn't change anything. so strange. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] latest beta - Math error
On Mar 3, 2009, at 9:09 AM, Hans Hagen wrote: Yes, unfortunately it does... strange, since it works ok here; maybe deleting the font cache helps I meant, unfortunately it does work since this made finding the error much harder... Anyway, I have now found a minimal file that shows one error. I couldn't make the error appear with a buffer, only when I had xml + environment file. Here comes: ?xml version=1.0 encoding=utf-8? auth sectioncontentHello lt;/content/section /auth teststyle.tex Description: Binary data Hope this is reproducible All best Thomas___ 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] beta again
It's working fine now, thanks a lot, Hans! On Tue, Mar 3, 2009 at 6:05 PM, Yue Wang yuleo...@gmail.com wrote: Hi, Hans: Thanks for the quick fix! I will try the latest beta once it appears on minimals repository. Yue Wang On Tue, Mar 3, 2009 at 5:58 PM, Hans Hagen pra...@wxs.nl wrote: Hi, - the problem with creating formats is related to changes in texexec (and other rb modules) that rely on ruby 1.8 and had to be adapted to 1.9; because incompatibilities in library calls are nicely catched (begin .. rescue ... end) we never see problems unless we explicitly issue an error message or warning which in most cases is more bound to the expected behaviour than to the method missing ... as such, i would not be surprised if more problems show up, but on the other hand, in the end only texexec remains as ruby script - the problem with hz/protruding was due to a typo in one of the lua scripts but even then, the posted example would now show the effects as one has to explicitly turn it on: \setupalign[hz,hanging] i'll upload a new beta Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] latest beta - Math error
On Tue, Mar 3, 2009 at 11:44 AM, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: Anyway, I have now found a minimal file that shows one error. I couldn't make the error appear with a buffer, only when I had xml + environment file. A ConTeXt version of the filecontents for LaTeX would be handy in such cases. 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] latest beta - Math error
Wolfgang Schuster wrote: On Tue, Mar 3, 2009 at 11:44 AM, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: Anyway, I have now found a minimal file that shows one error. I couldn't make the error appear with a buffer, only when I had xml + environment file. so ... what is the test file then? A ConTeXt version of the filecontents for LaTeX would be handy in such cases. i have no clue what this means Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] paragraph question
Hi, How do you access the first paragraph of each chapter ? I guess with... \setuphead[chapter][after=\PlayWithFirstParagraph] \def\PlayWithFirstParagraph... How to fill in the dots ? Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] latest beta - Math error
Am 03.03.2009 um 12:23 schrieb Hans Hagen: A ConTeXt version of the filecontents for LaTeX would be handy in such cases. i have no clue what this means Thomas was unable to show his problem with a buffer, the filecontents environment is like a buffer but writes the content to a file with a given name, e.g. test.tex \begin{filecontentents}{example.xml} ?xml version=1.0 encoding=utf-8? auth sectioncontentHello lt;/content/section /auth \end{filecontents} ... \starttext \xmlprocess{main}{example.xml}{} \stoptext /test.tex Everything between \begin/end{filecontents} is written to the file example.xml. This is handy for example given on the list because attatchments are a problem in the mail archive and you have to create only one tex file for the example. Here is a example but it works only on MkII. \unprotect \def\startfilecontents {\bgroup \protectbuffersfalse \dosingleargument\dostartfilecontents} \def\dostartfilecontents[#1]% {\beforesplitstring#1\at.\to\filename \aftersplitstring #1\at.\to\extension \let\f!temporaryextension\extension \dostartbuffer[\filename][startfilecontents][stopfilecontents]} \def\stopfilecontents {\doifdefined{savebuffer}{\savebuffer[\filename]}\egroup} \protect \startfilecontents[a1.txt] 1 5 2 4 3 8 4 9 8 8 \stopfilecontents \starttext \readfile{a1.txt}{}{} \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] problem with defineitemgroup command
Aditya Mahajan adityam at umich.edu writes: Change this to \setupitemgroup[options][1][a,packed] \setupitemgroup[options][1][stopper=)] You cannot mix options (a, packed, etc) with assignments (key=value). Aditya Thanks Aditya. I appreciate it. ___ 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] Two questions - Cross Referencing (Automated label generation + Random items)
As I mentioned earlier, I am trying to use Context to make a multiple choice test. I have two questions. (1) Suppose I want to get a list of answers to the the multiple choice questions. One way I can think of doing this is by assigning a label to the CORRECT answer as done in the following code and then referring to that label. Is there a way these labels can be generated automatically, instead of hardcoding them as I have done below? defineenumeration[problem][text= ,location=inleft] \setupenumerations[problem][stopper=)] \defineitemgroup[choices][levels=1] \setupitemgroup[choices][1][a,packed] \nextrandom \starttext \problem This is the first question. \startchoices \startitem This is incorrect answer 1. \stopitem \startitem This is a wrong answer too. \stopitem \startitem[1] This is the CORRECT answer. \stopitem \startitem Yet another wrong answer. \stopitem \stopchoices \problem This is the second question. \startchoices \startitem[2] This is the CORRECT answer. \stopitem \startitem This is a wrong answer too. \stopitem \startitem This is not a correct choice. \stopitem \startitem Yet another wrong answer. \stopitem \stopchoices Answers to the questions \in[1] \in[2] \stoptext (2) When I add the option random to the itemgroup (\setupitemgroup[choices][1][a,packed,random]) then as expected the choices are listed in a random order. However, the label does not change with the choice listing. I want the reference to be attached to the CORRECT answer, which changes its position with random option. Is there a way to have the reference reflect the letter corresponding to the correct answer. Thanks in advance for your help. I really appreciate it. ___ 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] experimental repository in mtx-update
Vyatcheslav Yatskovsky wrote: In mtx-update, there is --context=beta switch. What about --repository=experimental? And how these two interfere with each other? This is crucial for me to know to update the installer. afaik beta is the real beta and experimental often alpha - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] rulethickness in columns
On Tue, Mar 3, 2009 at 2:25 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 02.03.2009 um 11:41 schrieb Hans Hagen: I would set offset parameters for all four margins before rule values but will us Hans ever grant this wish, it's been on the list from a lot of us for years. indeed, but only because it has a speed penalty; maybe some day in mkiv only Test file with 10.000 simple frames. Unmodified \framed: Output written on rul-test-5.pdf (1250 pages, 730030 bytes). Transcript written on rul-test-5.log. TeXExec | runtime: 10.023787 Modified \framed: Output written on rul-test-5.pdf (1250 pages, 730030 bytes). Transcript written on rul-test-5.log. TeXExec | runtime: 10.524815 If you won't change the MkII version I can live with this but what speaks against a modification of the MkIV version. Don't say performance, MkIV is in many parts slower than MkII (e.g. buffers) but people who use don't care about this. And here are the times for MkIV. Original core-rul: mkiv lua stats : runtime - 20.242 seconds, 1250 processed pages, 1250 shipped pages, 61.753 pages/second Modified core-rul: mkiv lua stats : runtime - 22.108 seconds, 1250 processed pages, 1250 shipped pages, 56.541 pages/second 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] rulethickness in columns
Wolfgang Schuster wrote: If you won't change the MkII version I can live with this but what speaks against a modification of the MkIV version. Don't say performance, MkIV is in many parts slower than MkII (e.g. buffers) but people who use don't care about this. are you sure that it's slower with buffer? after all, we don't use files for buffers in mkiv And here are the times for MkIV. Original core-rul: mkiv lua stats : runtime - 20.242 seconds, 1250 processed pages, 1250 shipped pages, 61.753 pages/second Modified core-rul: mkiv lua stats : runtime - 22.108 seconds, 1250 processed pages, 1250 shipped pages, 56.541 pages/second 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] rulethickness in columns
Wolfgang Schuster wrote: On Tue, Mar 3, 2009 at 2:25 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 02.03.2009 um 11:41 schrieb Hans Hagen: I would set offset parameters for all four margins before rule values but will us Hans ever grant this wish, it's been on the list from a lot of us for years. indeed, but only because it has a speed penalty; maybe some day in mkiv only Test file with 10.000 simple frames. Unmodified \framed: Output written on rul-test-5.pdf (1250 pages, 730030 bytes). Transcript written on rul-test-5.log. TeXExec | runtime: 10.023787 Modified \framed: Output written on rul-test-5.pdf (1250 pages, 730030 bytes). Transcript written on rul-test-5.log. TeXExec | runtime: 10.524815 If you won't change the MkII version I can live with this but what speaks against a modification of the MkIV version. Don't say performance, MkIV is in many parts slower than MkII (e.g. buffers) but people who use don't care about this. And here are the times for MkIV. Original core-rul: mkiv lua stats : runtime - 20.242 seconds, 1250 processed pages, 1250 shipped pages, 61.753 pages/second Modified core-rul: mkiv lua stats : runtime - 22.108 seconds, 1250 processed pages, 1250 shipped pages, 56.541 pages/second how did your test file + core-rul patch look (keep in mind that in official mkiv we use a different core-rul) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] rulethickness in columns
On Tue, Mar 3, 2009 at 7:26 PM, Hans Hagen pra...@wxs.nl wrote: If you won't change the MkII version I can live with this but what speaks against a modification of the MkIV version. Don't say performance, MkIV is in many parts slower than MkII (e.g. buffers) but people who use don't care about this. are you sure that it's slower with buffer? after all, we don't use files for buffers in mkiv Not really, I can't find my old test files and it can be a side effect of my test method. 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] experimental repository in mtx-update
afaik beta is the real beta and experimental often alpha OK, can I download experimental version using mtx-update? The code comment says 'experimental is not implemented'. Is it? Vyatcheslav ___ 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] Update script does not work
Hello, When I use mtxrun.cmd --script mtx-update.lua --update --force --engine=all --platform=windows --context=beta --texroot=C:\contextminimal the rsync ends up with something like destination and source locations are the same. I had many problems with updating this way, but when downloaded cont-tmg.zip directly from pragma and unpacked it into tree they all has gone . Definitely, something wrong with the mtx-update script or garden folders. Who can look into it? Best regards, Vyatcheslav ___ 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] extra offsets
Hi, concerning the offsets in framed .. - we cannot use leftoffset etc as name because these are already used in mechanisms that build on top of framed and it would add quite some extra code (and probably bugs) to those mechanisms - adding additional rulethickness variants is non trivial since the rulethickness is also used elsewhere (rounded corners etc) and the code would become rather messy; also, we can use mp for special frames (after all, extra thickness makes no sense without extra colors) so, as an experiment i added support for extra offsets but these work *on top* of the existing offset; they have names like loffset, roffset, toffset and boffset; the speed penalty is neglectable (only mkiv because it has a more clever inheritance model for derived framed mechanisms) Hans ps. for quite a long time there is a command \offset which takes leftoffset cum suis plus some more - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Switching off Header only on a particular page
Hi, Is there a way to switch off just the header on a particular page? The Context manual gives the command \noheaderandfooterlines to switch off both. However, I want the page number (which is in the footer) on the first page, but no headers on the first page. Thanks. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Switching off Header only on a particular page
Curious Learn wrote: Hi, Is there a way to switch off just the header on a particular page? The Context manual gives the command \noheaderandfooterlines to switch off both. However, I want the page number (which is in the footer) on the first page, but no headers on the first page. just \setupheader[state=empty] or anything else that applies - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bug in mark to ligature handling
Marks don't get positioned correctly unless all marks are supplied, if one mark is omitted, the next mark will be positioned at the first anchor point, not in the second one etc, in some cases it'll even not positioned on the anchor point at all. In the attached sample, the first word in the line is correct, subsequent ones aren't. (The font used: http://raqm.googlecode.com/svn/trunk/fonts/simplenaskhi/SimpleNaskhi.ttf) Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer \pagedir TRT\bodydir TRT\pardir TRT\textdir TRT \definefontfeature[otfnaskhi] [mode=node,language=dflt,script=arab, init=yes,medi=yes,fina=yes,calt=yes, rlig=yes,liga=yes,dlig=yes,curs=yes, mark=yes,mkmk=yes] \font\test=SimpleNaskhi*otfnaskhi at 48pt\test \obeylines لِلَّهِ : للَّهِ : للهِ : للهُ \hbox{} \hbox{} \hbox{} شَيْ : شيْ : شِيْ : شيِ \bye ligatures.pdf Description: Adobe PDF document signature.asc Description: Digital signature ___ 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] Switching off Header only on a particular page
Hans Hagen pragma at wxs.nl writes: just \setupheader[state=empty] or anything else that applies Thanks very much Hans. That works great. ___ 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] extra offsets
Am 03.03.2009 um 22:30 schrieb Hans Hagen: Hi, concerning the offsets in framed .. - we cannot use leftoffset etc as name because these are already used in mechanisms that build on top of framed and it would add quite some extra code (and probably bugs) to those mechanisms - adding additional rulethickness variants is non trivial since the rulethickness is also used elsewhere (rounded corners etc) and the code would become rather messy; also, we can use mp for special frames (after all, extra thickness makes no sense without extra colors) so, as an experiment i added support for extra offsets but these work *on top* of the existing offset; they have names like loffset, roffset, toffset and boffset; the speed penalty is neglectable (only mkiv because it has a more clever inheritance model for derived framed mechanisms) Hans Thank you very much for now finally adding this, it's a big improvement for natural tables and allows us to do some fancy things. 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] Two questions - Cross Referencing (Automated label generation + Random items)
Am 03.03.2009 um 14:17 schrieb Curious Learn: As I mentioned earlier, I am trying to use Context to make a multiple choice test. I have two questions. (1) Suppose I want to get a list of answers to the the multiple choice questions. One way I can think of doing this is by assigning a label to the CORRECT answer as done in the following code and then referring to that label. Is there a way these labels can be generated automatically, instead of hardcoding them as I have done below? defineenumeration[problem][text= ,location=inleft] \setupenumerations[problem][stopper=)] \defineitemgroup[choices][levels=1] \setupitemgroup[choices][1][a,packed] \nextrandom You don't need \nextrandom any longer, it's fixed with the last beta. \newcounter\choicecounter \define[1]\Rightitem {\doglobal\increment\choicecounter \startitem[\choicecounter]#1\stopitem} \define[1]\Wrongitem {\startitem#1\stopitem} \processbetween{rightitem}\Rightitem \processbetween{wrongitem}\Wrongitem \starttext \problem This is the first question. \startchoices \startitem This is incorrect answer 1. \stopitem \startitem This is a wrong answer too. \stopitem \startitem[1] This is the CORRECT answer. \stopitem \startitem Yet another wrong answer. \stopitem \startrightitem This is the CORRECT answer. \stoprightitem \startwrongitem Yet another wrong answer. \stopwrongitem \stopchoices \problem This is the second question. \startchoices \startitem[2] This is the CORRECT answer. \stopitem \startitem This is a wrong answer too. \stopitem \startitem This is not a correct choice. \stopitem \startitem Yet another wrong answer. \stopitem \stopchoices Answers to the questions \in[1] \in[2] \stoptext (2) When I add the option random to the itemgroup (\setupitemgroup[choices][1][a,packed,random]) then as expected the choices are listed in a random order. However, the label does not change with the choice listing. I want the reference to be attached to the CORRECT answer, which changes its position with random option. Is there a way to have the reference reflect the letter corresponding to the correct answer. The labels change but they're always one run behind the current order. You can use a fixed random order for the items (the don't change after each new run) with '\setupsystem[random=3456]', you can change the order when you user another number. 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] Why searching fonts in xetex is so slow?
Hi, When I use XeTeX, font searching through texmf- tree is very slow. search font through fontconfig is very fast. plain TeX or LaTeX does not have that problem. why is that? anyway to improve it? Yue Wang ___ 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 ___