Re: [NTG-context] font cache
On 6-3-2011 6:15, Steffen Wolfrum wrote: with current version using the command mtxrun --script cache --erase lets my context-minimal get unusable: mtxrun | unknown script 'context.lua' or 'mtx-context.lua' sure, as you erased all so, what is the recommended way to clean the cache (when playing with fontfeatures)? mtxrun --script cache will give you the options ... just try --purge - 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] Gradient in table header
On 5 March 2011 21:36, Hans Hagen pra...@wxs.nl wrote: On 5-3-2011 6:27, luigi scarso wrote: On Sat, Mar 5, 2011 at 6:12 PM, Felix Ingramf.ingram.li...@gmail.com wrote: Is such a thing possible? I'd like to have a gradient changing from blue to white across my table header, spanning all columns. I'll probably be using the TABLE environment. you can also see columns set (search in wiki.contextgarden.net or http://www.pragma-ade.com/general/manuals/columns.pdf ) each table cell can have a background and one can put a gradient in it using an mp graphic Okay. I've heard of this Metapost thing. After further investigation it doesn't look as scary as I first thought. I can't seem to find anything saying that gradient fills are supported directly but I've found a few examples of drawing multiple shapes with changing colours which will recreate the effect, so I'll start with those. Many thanks, Felix ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] font cache
Am 07.03.2011 um 09:50 schrieb Hans Hagen: On 6-3-2011 6:15, Steffen Wolfrum wrote: with current version using the command mtxrun --script cache --erase lets my context-minimal get unusable: mtxrun | unknown script 'context.lua' or 'mtx-context.lua' sure, as you erased all Erasing the cache can mean erase all? This I didn't expect, sorry. I was quite surprised that I can't run context.lua (eg. for making formats) anymore, after I cleaned the cache. When I did it (mtxrun --script cache --erase), Is there something I can do to get my context install running again? 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] slide steps again
Thanks for pointing me to this, Dalyoung. On Sun, Mar 6, 2011 at 7:17 PM, Jeong Dalyoung hak...@me.com wrote: Hi, If you want to reveal parts of a drawing sequentially, you may try MetaFun and AdobeReader. There is a sample in 13.6 Growing graphics, metafun manual(metafun-p). It needs your time but the result is very nice. I hope you enjoy it. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] font cache
On Mon, Mar 7, 2011 at 10:39 AM, Steffen Wolfrum cont...@st.estfiles.de wrote: Am 07.03.2011 um 09:50 schrieb Hans Hagen: On 6-3-2011 6:15, Steffen Wolfrum wrote: with current version using the command mtxrun --script cache --erase lets my context-minimal get unusable: mtxrun | unknown script 'context.lua' or 'mtx-context.lua' sure, as you erased all Erasing the cache can mean erase all? This I didn't expect, sorry. I was quite surprised that I can't run context.lua (eg. for making formats) anymore, after I cleaned the cache. When I did it (mtxrun --script cache --erase), Is there something I can do to get my context install running again? Steffen try # cd tex/texmf-context/scripts/context/lua # context --make all -- 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 ___
[NTG-context] cals tables
Dear All, I am struggling with the processing of cals tables in mkiv. I used the module x-cals, in different styles ([x][cals], etc.) but there is no effect, the table is not typeset. \usemodule x-cals.mkiv \xmlloaddirectives x-cals-test.cdx By way of experiment I also used the directives, but no avail either. Should I write an xmlsetup for each element, e.g. \xmlsetsetup{#1}{//thead}{xml:thead} \xmlsetsetup{#1}{//entry}{xml:entry} Can anyone help me out? Thanks in advance. Robert ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] cals tables
On 7-3-2011 12:26, R. Ermers wrote: Dear All, I am struggling with the processing of cals tables in mkiv. I used the module x-cals, in different styles ([x][cals], etc.) but there is no effect, the table is not typeset. \usemodule x-cals.mkiv funny syntax \usemodule[cals] - 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] font name has a space.
Dear Taco, Thank you for your comment. I renamed the font to ~.ttf, luatools --generate first. And try the same file. At this time, there is no Fatal error messages, but still it doesn't locate the font file. So, I tested a few more things. Test 1: luatools locates all the fonts which has no space from the same font maker. And, LuaTeX runs well to yield fine output. Math-iMac:~ graph$ luatools 산돌돌CB.otf /Users/graph/Library/Fonts/산돌돌CB.otf Math-iMac:~ graph$ luatools 산돌명조B.otf /Users/graph/Library/Fonts/산돌명조B.otf ### Test 2: luatools cannot locate the fonts which has space from the same font maker. Math-iMac:~ graph$ luatools 산돌명조M.otf Math-iMac:~ graph$ luatools 산돌명조 M.otf Math-iMac:~ graph$ luatools 산돌명조\space M.otf But it locates the same file if I enclose font name. Math-iMac:~ graph$ luatools 산돌명조 M.otf /Users/graph/Library/Fonts/산돌명조 M.otf So I tired \definefont[testfont][file:산돌명조 M.otf], but LuaTeX issue an error system begin file testmp.tex at line 29 ! LuaTeX error main ctx instance:1: ')' expected near '?'. system tex error on line 30 in file testmp.tex: LuaTeX error ... 25 26 \definefont[testfont][file:산돌명조 M.otf] 27 28 29 \starttext 30 \testfont 31 \chapter{X} 32 \section{One} 33 \dorecurse{10}{test fone file. } 34 \dorecurse{10}{산 돌 명조 폰트 file입니다. } 35 36 \stoptext \lowleveldefinefont ...ies , \@@fontgoodies )} \edef \somefontspec {at \n... \dododefinefont ...inefont {#2}\rawfontidentifier \csname \rawfontidentifier... l.30 \testfont ? I tested english font which has a space in its name and got the same results. For example, Geogia Bold.ttf font. luatools cannot locate it and LuaTeX said unknown font. and used default font. I renamed it GeogiaBold.ttf in /Library/fonts and tried again, but not succeed. Hence, I think that the font whose name contains no space has no problem. The fonts whose name contains a space make a trouble eventhough I removed the space from it. Am I doing right? I am using Mac OSX. And, This is LuaTeX, Version beta-0.65.0-2010121316 \write18 enabled. (testmp.tex ConTeXt ver: 2011.02.25 22:03 MKIV fmt: 2011.3.1 int: english/english Thank you again. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] cals tables
Thanks, Hans. But yes, I tried that too (and again) before I tried x-cals ([x][cals], x-cals, x-cals.mkiv, etc.). But \usemodule[cals] does not work - the table is not typeset that is. luatex: beta-065.0-2010121316. Robert Op 7 mrt 2011, om 12:41 heeft Hans Hagen het volgende geschreven: On 7-3-2011 12:26, R. Ermers wrote: Dear All, I am struggling with the processing of cals tables in mkiv. I used the module x-cals, in different styles ([x][cals], etc.) but there is no effect, the table is not typeset. \usemodule x-cals.mkiv funny syntax \usemodule[cals] - 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] problem with tikz remember picture and overlay.
Hello, I am trying to use tikz's remember picture and overlay for absolute positioning. With the code below, the content in the tikz picture appears on a new page after the slide title. I want it to appear on the same page. Please see the minimal example below. I have explained with comments where the problem occurs. Thanks for your help. \setuppapersize[S6][S6] \setuplayout[backspace=0.5in, width=middle, header=0.25in, topspace=0.25in, height=middle] \setupbackgrounds[page][background=color, backgroundcolor=linen] \setupwhitespace[medium] \setuppagenumbering[location=] \setupcolors[state=start] \setupinteraction[state=start,color=blue] \setupcolor[xwi] \definehead[slidetitle][subject] \setuphead[slidetitle][style=\tfb, color=lightsteelblue] \def\SlideTitle#1{\page\framed[frame=off, background=color, % backgroundcolor=gray:9]{\slidetitle{#1}}} \usemodule[simplefonts] \setmainfont[Helvetica] \switchtobodyfont[20pt] \definehead[slidetitle][subject] \setuphead[slidetitle][style=\tfb, color=lightsteelblue] \def\SlideTitle#1{\page\framed[frame=off, background=color, % backgroundcolor=gray:9]{\slidetitle{#1}}} \starttext \SlideTitle{Product Characteristics and Quality} % This tikz content should appear on the same page as the title, but it appears % on a new page. If I use \subject{Product Characteristics and Quality} then % the tikz content appears on the same page. \starttikzpicture[remember picture, overlay] \node[xshift=2in, yshift=2in] at (current page.north west) [text width = 2in]{Weight?} \stoptikzpicture % The following content appears on another page after the tikz content. This is independent % of whether I use \SlideTitle or \subject. How can I make all of these appear on the same page? MORE CONTENT HERE \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 ___
Re: [NTG-context] problem with tikz remember picture and overlay.
Hi All, I realized one error in my tikz code. I forgot the semi-colon. But with the semi-colon, the tikz part is completely ignored. Anyhow, in a previous post here I found a good example of absolute positioning of text using Context's positioning macro. That is awesome for my current purpose. Thanks Peter for that (and of course, Hans for everything). But would still like to learn if Tikz's absolute positioning is incompatible with Context. Bharat On Mon, Mar 7, 2011 at 8:02 AM, Curiouslearn curiousle...@gmail.com wrote: Hello, I am trying to use tikz's remember picture and overlay for absolute positioning. With the code below, the content in the tikz picture appears on a new page after the slide title. I want it to appear on the same page. Please see the minimal example below. I have explained with comments where the problem occurs. Thanks for your help. \setuppapersize[S6][S6] \setuplayout[backspace=0.5in, width=middle, header=0.25in, topspace=0.25in, height=middle] \setupbackgrounds[page][background=color, backgroundcolor=linen] \setupwhitespace[medium] \setuppagenumbering[location=] \setupcolors[state=start] \setupinteraction[state=start,color=blue] \setupcolor[xwi] \definehead[slidetitle][subject] \setuphead[slidetitle][style=\tfb, color=lightsteelblue] \def\SlideTitle#1{\page\framed[frame=off, background=color, % backgroundcolor=gray:9]{\slidetitle{#1}}} \usemodule[simplefonts] \setmainfont[Helvetica] \switchtobodyfont[20pt] \definehead[slidetitle][subject] \setuphead[slidetitle][style=\tfb, color=lightsteelblue] \def\SlideTitle#1{\page\framed[frame=off, background=color, % backgroundcolor=gray:9]{\slidetitle{#1}}} \starttext \SlideTitle{Product Characteristics and Quality} % This tikz content should appear on the same page as the title, but it appears % on a new page. If I use \subject{Product Characteristics and Quality} then % the tikz content appears on the same page. \starttikzpicture[remember picture, overlay] \node[xshift=2in, yshift=2in] at (current page.north west) [text width = 2in]{Weight?} \stoptikzpicture % The following content appears on another page after the tikz content. This is independent % of whether I use \SlideTitle or \subject. How can I make all of these appear on the same page? MORE CONTENT HERE \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] Acrobat JavaScript in ConTeXt
Hi, how can one make a button that does app.alert() in ConTeXt? I tried something like this without much luck: \setupinteraction[state=start] \starttext \goto{Button}[JS(app.alert{Hello World})] \stoptext Can anyone help? Regards, Vedran Miletić ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] MnSymbol in ConText
sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ... Since I don't even know how to check the encoding of a font - let alone creating/changing it - I must pass on this one. Can someone with more background on the subject have a look? I'd love to use MnSymbol with Context. ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] MnSymbol in ConText
Am 07.03.2011 um 17:31 schrieb C.: sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ... Since I don't even know how to check the encoding of a font - let alone creating/changing it - I must pass on this one. Can someone with more background on the subject have a look? Same for me ... but it would be nice to learn these things! Can someone explain what is needed and how to start? 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] MnSymbol in ConText
On Wed, Feb 23, 2011 at 12:37, Wolfgang Schuster wrote: As a side note: Is mathdesign available for context? I remember reading about it somewhere, but the third-party module site has nothing listed. I made a package [1] with all necessary font files a while ago but it’s Mojcas job to include them in the minimals. The typescripts are already part of context. I still have complete rewrite of minimals in my as-soon-as-i-can-take-some-time todo list. The idea back then was to use the same switch for mathdesign as for modules. The fonts are already here: http://minimals.contextgarden.net/current/fonts/extra/ but I sent (and probably also already lost) a patch to Hans to allow adding extra fonts. Three lines have to be added to mtx-update.lua to fetch fonts from the extra tree. (And something else to fetch testing files inside context directory.) (An alternative is simply to take all the fonts into default distribution, but that might start growing to infinity.) 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] font name has a space.
Am 07.03.2011 um 13:03 schrieb Jeong Dalyoung: I tested english font which has a space in its name and got the same results. For example, Geogia Bold.ttf font. luatools cannot locate it and LuaTeX said unknown font. and used default font. I renamed it GeogiaBold.ttf in /Library/fonts and tried again, but not succeed. Do you have another version of Georgia in your tex directory, e.g. I had the core fonts from microsoft under texmf-fonts and context used them instead of the system version. I deleted now the font from the tex directory and context use now the system font. You can check if context can font the font with mtxrun --script font --list --all --pattern=georgia* 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] MnSymbol in ConText
Am 05.03.2011 um 22:41 schrieb Hans Hagen: On 5-3-2011 2:58, Steffen Wolfrum wrote: Hi C., hi Taco, But I am wondering, too: how can MnSymbol be made available as a true context-math- font, eg. to produce an example like C. posted it (with latex and minion-package)? sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ... the symbols aren’t the problem, what’s difficult is greek because the greek letters are taken from minion pro (the text font) and not from a special math font and this is where it gets tricky 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] MnSymbol in ConText
On Mon, 7 Mar 2011, Steffen Wolfrum wrote: Am 07.03.2011 um 17:31 schrieb C.: sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ... Since I don't even know how to check the encoding of a font - let alone creating/changing it - I must pass on this one. Can someone with more background on the subject have a look? Same for me ... but it would be nice to learn these things! Can someone explain what is needed and how to start? I must confess that I no longer understand how the math virtual fonts work are implemented. I understood how things worked a year ago (see the tugboat article for details), but I have not been able to keep up with all the internal rearrangements. 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 ___
Re: [NTG-context] MnSymbol in ConText
sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ... the symbols aren’t the problem, what’s difficult is greek because the greek letters are taken from minion pro (the text font) and not from a special math font and this is where it gets tricky Why not just merge Minion with MnSymbol and create a new font if virtualisation is tricky? Of cause you cannot redistribute the new font but you could distribute a fontforge script which does the merge. This way you could create an OpenType Math font with greek already in the right slots. Maybe also merge with Cronos to get sans math into the font. Florian ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Layers for absolute positioning
Hi, I have been trying to learn the best way to position text on a page. From the messages it appears that a good way to do so, is to use layers. But it seems that to activate them I need to set them as background of the page. However, that removes the background color. How can I get both layers and a background color? I have given a minimal example below. Thanks, Bharat This is the minimal example I am working with: \setupcolors[state=start] \setupcolor[xwi] \setupbackgrounds[page][background=color, backgroundcolor=linen] \starttext \definelayer [windows] [x=3in, y=3in, width=3in, height=4in] \setlayer [windows] [hoffset=1cm, voffset=1cm] {Windows 7} \setupbackgrounds[page][background=windows] \page[empty] \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 ___
Re: [NTG-context] Gradient in table header
Am 2011-03-07 um 10:24 schrieb Felix Ingram: Okay. I've heard of this Metapost thing. After further investigation it doesn't look as scary as I first thought. I can't seem to find anything saying that gradient fills are supported directly but I've found a few examples of drawing multiple shapes with changing colours which will recreate the effect, so I'll start with those. Here’s a sample with a gradient: http://www.ntg.nl/pipermail/ntg-context/2010/052370.html Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Layers for absolute positioning
Am 07.03.2011 um 20:51 schrieb Curiouslearn: Hi, I have been trying to learn the best way to position text on a page. From the messages it appears that a good way to do so, is to use layers. But it seems that to activate them I need to set them as background of the page. However, that removes the background color. How can I get both layers and a background color? \setupbackgrounds[page][background={color,windows}] 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] cals tables
Dear all, I see in the log file that the cals module is loaded. system : module cals loaded (/prog2/context/tex/texmf-local/tex/context/base/x-cals.mkiv loading : ConTeXt XML Macros / Cals Tables + /prog2/context/tex/texmf-local/tex/context/base/x-cals.lua) But the table is not typeset, which I had expected. I do not know what I need to do now. Do I need to map all elements to those of a Context table? (\bTABLE ...)? (such as in: http://www.mail-archive.com/ntg-context@ntg.nl/msg50536.html) Any advice is welcome. Regards, Robert Op 7 mrt 2011, om 13:41 heeft R. Ermers het volgende geschreven: Thanks, Hans. But yes, I tried that too (and again) before I tried x-cals ([x][cals], x-cals, x-cals.mkiv, etc.). But \usemodule[cals] does not work - the table is not typeset that is. luatex: beta-065.0-2010121316. Robert Op 7 mrt 2011, om 12:41 heeft Hans Hagen het volgende geschreven: On 7-3-2011 12:26, R. Ermers wrote: Dear All, I am struggling with the processing of cals tables in mkiv. I used the module x-cals, in different styles ([x][cals], etc.) but there is no effect, the table is not typeset. \usemodule x-cals.mkiv funny syntax \usemodule[cals] - 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 ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] MnSymbol in ConText
Seems like a good idea, but it's harder than it sounds. Here is what I tried: -Load MnSymbol12 in FontForge -Run the script (by Florian, see email from 20. Feb 2011) -Merge in Minion Pro (all of it :D ) -Generate OTF ...but the font (I also renamed it to be sure) does not show up in the output. Instead LM-Math is used. If someone succeeds, please let me know how you did it. -Ursprüngliche Nachricht- Von: Florian Wobbe [mailto:florian.wo...@awi.de] Gesendet: Montag, 7. März 2011 19:41 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] MnSymbol in ConText sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ... the symbols arent the problem, whats difficult is greek because the greek letters are taken from minion pro (the text font) and not from a special math font and this is where it gets tricky Why not just merge Minion with MnSymbol and create a new font if virtualisation is tricky? Of cause you cannot redistribute the new font but you could distribute a fontforge script which does the merge. This way you could create an OpenType Math font with greek already in the right slots. Maybe also merge with Cronos to get sans math into the font. Florian ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Layers for absolute positioning
Thanks, Wolfgang! That works great. Another related question...can I add a different background color to the layer (a color different than rest of the page). Thanks. On Mon, Mar 7, 2011 at 3:34 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 07.03.2011 um 20:51 schrieb Curiouslearn: Hi, I have been trying to learn the best way to position text on a page. From the messages it appears that a good way to do so, is to use layers. But it seems that to activate them I need to set them as background of the page. However, that removes the background color. How can I get both layers and a background color? \setupbackgrounds[page][background={color,windows}] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header text for each page of a chapter
I'm still working on my issue without success :-(. I've posted my pdf document [1]...if somebody could help me it will great for me =D. The principal idea is to customize the name of the chapter (the header text), Tarjeta de Crédito, to show the header text like the light blue text Tarjeta de Crédito (position, color, size). In a nutshell, I want that the light blue text become my header text. As you can see, the second page doesn't have the light blue text but It still has the name of the chapter (it is the desired behavior) [1] http://tinyurl.com/4vuwug5 -- Milton ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Can Layers be combined with \startitemize
The following does not work as expected. All the items are on the same line and they overlap each other. Can someone please let me know if Layers can be combined with \startitemize...\stopitemize and if so, how to do it. Thanks, Bharat \setupcolors[state=start] \setupcolor[xwi] \setupbackgrounds[page][background=color, backgroundcolor=linen] \starttext \definelayer [windows] [x=3in, y=3in, width=3in, height=4in] \definelayer [apple] [x=0.5in, y=0.5in, width=2in, height=2in] \setlayer [windows] [hoffset=1cm, voffset=1cm] {Windows 7 \startitemize[n] \item Starter \item Home Premium \item Professional \item Ultimate \stopitemize } \setlayer [apple][background=color, backgroundcolor=gray]{Apple} \setupbackgrounds[page][background=windows] \page[empty] \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 ___
Re: [NTG-context] Can Layers be combined with \startitemize
Am 07.03.2011 um 23:09 schrieb Curiouslearn: The following does not work as expected. All the items are on the same line and they overlap each other. Can someone please let me know if Layers can be combined with \startitemize...\stopitemize and if so, how to do it. \setlayer [windows] [hoffset=1cm, voffset=1cm] {Windows 7 \startitemize[n] \item Starter \item Home Premium \item Professional \item Ultimate \stopitemize } \setlayer [apple][background=color, backgroundcolor=gray]{Apple} \setlayerframed [name] [background=color, backgroundcolor=color, align=right, ...] {\startitemize ... \stopitemize} 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] MnSymbol in ConText
On 7-3-2011 7:32, Aditya Mahajan wrote: On Mon, 7 Mar 2011, Steffen Wolfrum wrote: Am 07.03.2011 um 17:31 schrieb C.: sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ... Since I don't even know how to check the encoding of a font - let alone creating/changing it - I must pass on this one. Can someone with more background on the subject have a look? Same for me ... but it would be nice to learn these things! Can someone explain what is needed and how to start? I must confess that I no longer understand how the math virtual fonts work are implemented. I understood how things worked a year ago (see the tugboat article for details), but I have not been able to keep up with all the internal rearrangements. Don't worry, it didn't really change that much. The most important change is that font specific definitions moved to the lfg files (only the default vectors are preloaded). For a non standard font lucida can be taken as example. 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] Acrobat JavaScript in ConTeXt
On 7-3-2011 5:11, Vedran Miletić wrote: Hi, how can one make a button that does app.alert() in ConTeXt? I tried something like this without much luck: \setupinteraction[state=start] \starttext \goto{Button}[JS(app.alert{Hello World})] \stoptext Can anyone help? \startJSpreamble MyStuff used later function MyAlert(str) { app.alert(str) } \stopJSpreamble \goto{Button}[JS(MyAlert{Hello World})] so, we have a separation between definitions and usage. 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] font name has a space.
Dear Wolfgang, Yes, as you said, it is working. The current result of mtxrun is as following: Math-iMac:~ graph$ mtxrun --script font --list --all --pattern=georgia* georgia georgia /Library/Fonts/Georgia.ttf georgiabold georgiabold /Library/Fonts/Georgia Bold.ttf georgiabolditalic georgiabolditalic /Library/Fonts/Georgia Bold Italic.ttf georgiaitalic georgiaitalic /Library/Fonts/Georgia Italic.ttf georgianormal georgiaitalic /Library/Fonts/Georgia Italic.ttf I tested another english fonts whose name containing space by removing the space in the name when I call it. English fonts are working well. But the same file with the korean font is not working. As in the following log file, it loaded the fonts, but issue an error message. ### ConTeXt ver: 2011.02.25 22:03 MKIV fmt: 2011.3.1 int: english/english system cont-new.mkiv loaded (/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system testmp.top loaded (testmp.top) fontslatin modern fonts are not preloaded languageslanguage en is active fontsbeware: no fonts are loaded yet, using 'lm mono' in box (/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/page-run.mkiv loading ConTeXt Page Macros / Runtime Macros ){/Users/graph/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv){/Users/graph/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/graph/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsfallback modern rm 12pt is loaded system begin file testmp.tex at line 29 fontsotf loading loading: /Users/graph/Library/Fonts/smHeadT Medium.otf (hash: smheadt-medium) fontsotf loading font loaded okay fontsotf loading loading method: table fontsotf loading file size: 1968816 fontsotf loading start enhancing: /Users/graph/Library/Fonts/smHeadT Medium.otf fontsotf loading warning: non unicode map '', only using glyph unicode data fontsencoding loading (extended) adobe glyph list fontsotf loading stop enhancing fontsotf loading saving in cache: /Users/graph/Library/Fonts/smHeadT Medium.otf system logs lua: compiling /Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/smheadt-medium.tma into /Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/smheadt-medium.tmc fontsotf loading preprocessing and caching took 0.578 seconds structuresectioning chapter @ level 2 : 0.1 - X structuresectioning section @ level 3 : 0.1.1 - One backend xmp using file '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 pagesflushing realpage 2, userpage 2 system end file testmp.tex at line 36 )/Users/graph/Library/Fonts/smHeadT Medium.otf !LuaTeX error (file /Users/graph/Library/Fonts/smHeadT Medium.otf): Invalid character. == Fatal error occurred, no output PDF file produced! ### I think that it is the only problem in Korean fonts whose name contaings a space. Thank you for your concern. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] MnSymbol in ConText
On Tue, 8 Mar 2011, Hans Hagen wrote: On 7-3-2011 7:32, Aditya Mahajan wrote: On Mon, 7 Mar 2011, Steffen Wolfrum wrote: Am 07.03.2011 um 17:31 schrieb C.: sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ... Since I don't even know how to check the encoding of a font - let alone creating/changing it - I must pass on this one. Can someone with more background on the subject have a look? Same for me ... but it would be nice to learn these things! Can someone explain what is needed and how to start? I must confess that I no longer understand how the math virtual fonts work are implemented. I understood how things worked a year ago (see the tugboat article for details), but I have not been able to keep up with all the internal rearrangements. Don't worry, it didn't really change that much. The most important change is that font specific definitions moved to the lfg files Ah... that is why I could not search for them :) 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 ___
Re: [NTG-context] Can Layers be combined with \startitemize
Thanks very much Wolfgang. This is very helpful. Regards, Bharat On Mon, Mar 7, 2011 at 5:14 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 07.03.2011 um 23:09 schrieb Curiouslearn: The following does not work as expected. All the items are on the same line and they overlap each other. Can someone please let me know if Layers can be combined with \startitemize...\stopitemize and if so, how to do it. \setlayer [windows] [hoffset=1cm, voffset=1cm] {Windows 7 \startitemize[n] \item Starter \item Home Premium \item Professional \item Ultimate \stopitemize } \setlayer [apple][background=color, backgroundcolor=gray]{Apple} \setlayerframed [name] [background=color, backgroundcolor=color, align=right, ...] {\startitemize ... \stopitemize} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___