Re: [NTG-context] \startmatrix bug in beta
On Tue, 17 May 2011, Taco Hoekwater wrote: Hi Hans/ Aditya, With the latest beta, \startmatrix's final \NR creates a superfluous line, resulting in ugly output: Bugfix: In \dodefinemathmatrix, change \setuvalue{\e!stop #1}{\dostopmathmatrix}% to \setvalue{\e!stop #1}{\dostopmathmatrix}% If someone wants to correct this in a working document, add \let\stopmatrix\dostopmathmatrix somewhere before \starttext \starttext \startformula \startmatrix[left={\left(\,},right={\,\right)}] \NC 0 \NR \NC 0 \NR \NC 0 \NR % removing this fixes the output \stopmatrix \stopformula \stoptext I don't know why \setuvalue gives an extra space. Hopefully, you or Hans will be able to figure that out. 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] [NTG-context] Suppress the citation number counts in the list of figures?
Dear All, I asked the same question in another post, but no replies except Thomas A. Schmitz asked me to make an example. In that post, I asked how to get the abosulute value of the bib entry, it is very confusing. Therefore, I made the example as below: Take the sample.bib in the wiki as the database file. Based on the citation sequence, "hh2010b" is expected to be the third reference, but because it is included in the figure caption, and the figure caption will be listed in the figure list at the beginning of the file, "hh2010b" becomes the first reference. How to make it the third reference? The resulting list of figure should be "The caption of this figure includes the citation, but this citation sequence is expected to be the same as in the paragraph[3]" instead of "The caption of this figure includes the citation, but this citation sequence is expected to be the same as in the paragraph[1]" \usemodule[bib] \setupbibtex[database=sample]%sample.bib in the wiki \setuppublications[sorttype=cite] \setuppublications[alternative=num,criterium=cite] \setuppublications[numbering=yes] % Show reference numbers in the generated list. \starttext \startfrontmatter % List of figures \title{List of Figures} \writetolist[Title] {} {List of Figures} \writebetweenlist [Title] {\blank} \placelist[figure][criterium=all] \stopfrontmatter \startbodymatter This is the first place for citation\cite[hh2010]. This is the second place for citation\cite[hh2010a]. This is the third place for citation\cite[hh2010b]. This is the fourth place for citation\cite[Eijkhout1991]. \placefigure[][fig:sample] {The caption of this figure includes the citation, but this citation sequence is expected to be the same as in the paragraph\cite[hh2010b].} {\framed{\tfd figure caption with citation}} \stopbodymatter \startbackmatter \placepublications[criterium=text] \stopbackmatter \stoptext Many thanks. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] A module for generic external syntax highlighter
Hi all, I have modularized the vim module[1] so that it is easy to reuse components for other external syntax highlight programs. The set up for defining a new external syntax highlighting is done in t-syntax-highlight module, and the set up for defining a new color scheme is done in t-syntax-groups. The vim module simply calls these modules with the relevant setups. These modules also use an experimental coding style for the ConTeXt code. This is based on some discussions that we had on the list earlier. (This style sets the catcode of : to be other; this can break existing ConTeXt code). All modules work with both MkII and MkIV; as a result, some of the things are more complicated than they need to be just for MkIV. I believe that this split will make it easy to add new external programs as syntax highlighters. The external highlighter needs to generate ConTeXt code in a specific format: - Start each new line with \CR{} - Escape all \, {, and }, as \\, \{, and \} - Group each syntax region as follows: \SYN[group-name]{content} The external highlighter should also support a means of specifing the start and stop lines to be highlighted. At the TeX end, a new syntax highlighting module should specify the exact external command to be called, and define color schemes (style and color) for each of the group-name used in the \SYN command in the highlighter. In case anyone is interested in testing a specific external highlighter, let me know. Any other feedback is welcome. Aditya [1]: https://github.com/adityam/filter/tree/dev ___ 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] \startmatrix bug in beta
On Tue, 17 May 2011, Taco Hoekwater wrote: Hi Hans/ Aditya, With the latest beta, \startmatrix's final \NR creates a superfluous line, resulting in ugly output: This has been present for a while now, so not introduced by any recent change. I'll try to figure out what is going wrong (I suspect a \cr instead of a \crcr). 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] externalfigure error in current mkiv beta
On Tue, 17 May 2011, Hans Hagen wrote: In fact, '\externalfigure' in ConTeXt and 'externalfigure' in metafun (without 'draw') can be a bit confusing, as in \starttext \externalfigure "hacker" scaled 5cm ; \stoptext Of course, no-one would ever admit to such foolishness. maybe another name externalimage or so (as images in mp need to be drawn) I usually prefer the more verbose: draw textext("\externalfigure[...]") ... which makes things conceptually clearler. 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] MK IV new install /Mac OS X
Thanks Aditya On May 17, 2011, at 12:36 PM, Aditya Mahajan wrote: >> > > Did you run this for TL ConTeXt or the minimals ConTeXt. From a terminal run > > source /path-to-context/tex/setuptex > mtxrun --generate > > Then try compiling a test file from the terminal. this works. > >> Any suggestions? If all fails I'll try to clone an older installation. > > What does `which context` return? /Applications/ConTeXtMinimals/tex/texmf-osx-64/bin/context Great! Thus the wiki info to create an executable file ConTeXt-MKIV.engine containing #!/bin/bash export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin:$PATH export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache context "$1" in ~/Library/TeXShop/Engines is slightly but catastrophically outdated. The file needs to read #!/bin/bash export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-64/bin:$PATH export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache context "$1" With that, TeXShop works with MKIV. Thanks again ! Matthias___ 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] externalfigure error in current mkiv beta
On 17-5-2011 11:21, Alan Braslau wrote: On Tuesday 17 May 2011 23:09:51 Hans Hagen wrote: On 17-5-2011 10:41, Alan Braslau wrote: "draw externalfigure" I'm still not sure about that one ... compatibility vs clean I rather like the new syntax - indeed much cleaner. (However, for compatibility issues, it might be nice to somehow program a better error message, if possible, so that 'externalfigure "hacker.jpg";' more elegantly fails.) pretty hard in metapost In fact, '\externalfigure' in ConTeXt and 'externalfigure' in metafun (without 'draw') can be a bit confusing, as in \starttext \externalfigure "hacker" scaled 5cm ; \stoptext Of course, no-one would ever admit to such foolishness. maybe another name externalimage or so (as images in mp need to be drawn) 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] externalfigure error in current mkiv beta
On Tuesday 17 May 2011 23:09:51 Hans Hagen wrote: > On 17-5-2011 10:41, Alan Braslau wrote: > > "draw externalfigure" > > I'm still not sure about that one ... compatibility vs clean > I rather like the new syntax - indeed much cleaner. (However, for compatibility issues, it might be nice to somehow program a better error message, if possible, so that 'externalfigure "hacker.jpg";' more elegantly fails.) In fact, '\externalfigure' in ConTeXt and 'externalfigure' in metafun (without 'draw') can be a bit confusing, as in \starttext \externalfigure "hacker" scaled 5cm ; \stoptext Of course, no-one would ever admit to such foolishness. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuplayout fail to \setupinteractionscreen
On 17-5-2011 10:57, Alan Braslau wrote: Still broken, or once again broken. no upload yet - 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] externalfigure error in current mkiv beta
On 17-5-2011 10:41, Alan Braslau wrote: But it already needs to be updated with "draw externalfigure" :) I'm still not sure about that one ... compatibility vs clean 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] \setuplayout fail to \setupinteractionscreen
Still broken, or once again broken. Alan On Tuesday 12 April 2011 23:49:37 Markus Finke wrote: > Hello, > > how can I get a centered paper of A5 on A4 (with crop marks) for the > whole document? A minimal example, only the first page looks correctly: > > > > \setuppapersize [A5][A4] > > \setuplayout [marking=on,location=middle] > \showframe > > \setupinteraction [state=start] > \setupinteractionscreen [option=singlesided] > > \starttext > \dorecurse{5}{\input knuth \page} > \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] externalfigure error in current mkiv beta
But it already needs to be updated with "draw externalfigure" :) Alan P.S. The printed manual on paper is really nice! On Wednesday 20 April 2011 07:09:16 Pontus Lurcock wrote: > On Wed 20 Apr 2011, Lutz Haseloff wrote: > > Is there a recent Metafun manual? > > http://www.pragma-ade.com/general/manuals/metafun-p.pdf (2010-10-08) > > > I would even buy it (like the "Fonts in ConTeXt"). > > http://www.boekplan.nl/node/9 (€49) > > Pont ___ 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] MP spot color in gradient - help!
Am 2011-05-17 um 14:03 schrieb Hans Hagen: On 17-5-2011 1:59, Henning Hraban Ramm wrote: In PDF it’s possible, I don’t know about MP/ConTeXt. Are you sure about gradients? Can you make an example? Here you are. (InDesign CS4) Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) spotcolorgradients.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Javascript PC Emulator - Technical Notes
FWIW, it runs faster of Jaeger Monkey (Firefox 4) than it does on V8 (Chrome). Shouldn't the bogomips be relative to the performance of the processing layer? On Tue, May 17, 2011 at 1:41 PM, Martin Schröder wrote: > 2011/5/17 Patrick Gundlach : > > so it's only a matter of time when TeX runs in the browser. I don't know > how/if it is possible to access local files, but that should be doable > (dropbox,...) > > s/run/crawls/ > > This emulates a "pc" with 20 bogomips and 30MB RAM. > It's probably slower than the machine DEK used for development of TeX78. > :-) > > Best >Martin > > ___ > 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] [OT] Javascript PC Emulator - Technical Notes
2011/5/17 Patrick Gundlach : > so it's only a matter of time when TeX runs in the browser. I don't know > how/if it is possible to access local files, but that should be doable > (dropbox,...) s/run/crawls/ This emulates a "pc" with 20 bogomips and 30MB RAM. It's probably slower than the machine DEK used for development of TeX78. :-) Best Martin ___ 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] [OT] Javascript PC Emulator - Technical Notes
Hi, > This PC emulator is written in Javascript. [...] so it's only a matter of time when TeX runs in the browser. I don't know how/if it is possible to access local files, but that should be doable (dropbox,...) Patrick ___ 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] MK IV new install /Mac OS X
On Tue, 17 May 2011, Matthias Weber wrote: Dear all, I've been trying to install the TeX minimals on a new Mac. While MK II works, not so MK IV. I get the error message MTXrun | unknown script 'context.lua' or 'mtx-context.lua' Here is what I did: Downloaded TeXLive 2010 Then followed the instructions at http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation I did this a few years back without a hitch, so I am wondering what is different now. In any case, in the above instructions, under Configuring ConTeXt, instep 4, the copies file has already the indicated changes in it. I used the same paths as indicated and ran luatools --generate as well as context --make Did you run this for TL ConTeXt or the minimals ConTeXt. From a terminal run source /path-to-context/tex/setuptex mtxrun --generate Then try compiling a test file from the terminal. Any suggestions? If all fails I'll try to clone an older installation. What does `which context` return? 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] MK IV new install /Mac OS X
On Tue, May 17, 2011 at 10:54, Matthias Weber wrote: > I know. I need TeXLive for non-ConTeXt reasons and thought I should mention >it in case there are interferences. Well, yes, there will be. I'm afraid I can't help further as I don't use the rest of TeX Live, as I only use ConTeXt Mk IV and TeXworks. mathew ___ 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] MK IV new install /Mac OS X
I know. I need TeXLive for non-ConTeXt reasons and thought I should mention it in case there are interferences. Matthias On May 17, 2011, at 11:45 AM, mathew wrote: > On Tue, May 17, 2011 at 10:17, Matthias Weber wrote: >> I've been trying to install the TeX minimals on a new Mac. While MK II >> works, not so MK IV. > [...] >> Downloaded TeXLive 2010 > > I don't think you need or want TeXLive if you're installing minimals. > > > mathew > ___ > 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] MK IV new install /Mac OS X
On Tue, May 17, 2011 at 10:17, Matthias Weber wrote: > I've been trying to install the TeX minimals on a new Mac. While MK II > works, not so MK IV. [...] > Downloaded TeXLive 2010 I don't think you need or want TeXLive if you're installing minimals. mathew ___ 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] MK IV new install /Mac OS X
Dear all, I've been trying to install the TeX minimals on a new Mac. While MK II works, not so MK IV. I get the error message MTXrun | unknown script 'context.lua' or 'mtx-context.lua' Here is what I did: Downloaded TeXLive 2010 Then followed the instructions at http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation I did this a few years back without a hitch, so I am wondering what is different now. In any case, in the above instructions, under Configuring ConTeXt, instep 4, the copies file has already the indicated changes in it. I used the same paths as indicated and ran luatools --generate as well as context --make Everything went ok without error messages. I then configured TeXShop as explained. As I said, MKII works fine but MKIV gives the error message. I searched the wiki for it and there seem to be some related reports, but I couldn't find a resolution. Any suggestions? If all fails I'll try to clone an older installation. Matthias ___ 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] [OT] Javascript PC Emulator - Technical Notes
This PC emulator is written in Javascript. The emulated hardware consists in: * a 32 bit x86 compatible CPU * a 8259 Programmble Interrupt Controller * a 8254 Programmble Interrupt Timer * a 16450 UART. http://bellard.org/jslinux/tech.html Wow... He is not unkown for me I started time ago to look at tcc http://bellard.org/tcc/ Also his calculations about Pi was (at that time) quite relevant. -- 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] MP spot color in gradient - help!
On Tue, May 17, 2011 at 2:03 PM, Hans Hagen wrote: > On 17-5-2011 1:59, Henning Hraban Ramm wrote: > >> In PDF it’s possible, I don’t know about MP/ConTeXt. > > Are you sure about gradients? Can you make an example? Perhaps Shading Patterns (4.6.3 of PDF Spec.) ? -- 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] MP spot color in gradient - help!
On 17-5-2011 1:59, Henning Hraban Ramm wrote: In PDF it’s possible, I don’t know about MP/ConTeXt. Are you sure about gradients? Can you make an 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] MP spot color in gradient - help!
Am 2011-05-17 um 12:24 schrieb Duncan Hothersall: but, inevitably, my printer wants it defined as a spot ink, and when I do this: \definecolor[PantoneThreeOneFourFive][c=1,m=0,y=.19,k=.23] \definespotcolor[TAXBgreenthirty][PantoneThreeOneFourFive][p=.3] the gradient turns to black instead of green. (The spot colour definition works fine in the rest of the document, just not in the gradient fill.) Could someone possibly let me know if it is even possible to define a gradient using a spot colour, or if I should instead revert to some alternative solution. In PDF it’s possible, I don’t know about MP/ConTeXt. Did you check (e.g. with Acrobat Pro) if your "Black" is indeed a spot color? You may send me your PDF off-list. Did you try defining your spot color with RGB values? (I remember I needed that for something...) 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] fit to width by negative letterspacing or narrowing
On 17-5-2011 1:25, Henning Hraban Ramm wrote: Hello again, it's been a while... ;-) I need to pack fixed lines into a fixed width box. Some years ago I had something similar in plain PostScript, where I pre-calculated the width of a text box, let the default font if it would fit my max size, otherwise try a narrow font and if that wasn’t enough decreased font size until it would fit. This time I've only one font and must not decrease font size, but must use negative kerning and perhaps some artificial narrowing. How can I do that with ConTeXt? I use MkIV, so any Lua solution is welcome. \starttext \definefontfeature[realugly][default][extend=0.25] \definedfont[Serif*realugly] Only You Can Read This \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] about JS(Walk_Field{})
Am 17.05.2011 um 13:16 schrieb Jeong Dalyoung: > Dear Wolfgang, > > Your animation module works really fine. > It reduces a lot of work to set the fieldstack. It’s now also part of the minimals. > I'd like to ask you a few more small things. > > 1) Is it possible to set the duration time in the case of autoplay? I’ll add a key to change this. > 2) The location of buttons is leftaligned when [menu=yes]. Is it what you > want or I did something wrong? Will be fixed. > 3) What is the meaning of "\start and \stop" in animation-1.tex? I added them to keep the \startMPinitializations settings local but they are useless here because \startMPinitializations stores the content in a global register, I’m going to remove them. > 4) In your animation-2.tex, the size of buttons can be controlled by setting > foregroundstyle. Then, how to apply it to \startanimation? I used animation-2.tex for a draft of the control buttons, they are static images and don’t come from the module itself. Control over the size of the menu etc. is still missing. You can make a list of features you want and i take a look at it. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] fit to width by negative letterspacing or narrowing
Hello again, it's been a while... ;-) I need to pack fixed lines into a fixed width box. Some years ago I had something similar in plain PostScript, where I pre-calculated the width of a text box, let the default font if it would fit my max size, otherwise try a narrow font and if that wasn’t enough decreased font size until it would fit. This time I've only one font and must not decrease font size, but must use negative kerning and perhaps some artificial narrowing. How can I do that with ConTeXt? I use MkIV, so any Lua solution is welcome. 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] MP spot color in gradient - help!
Right, thanks very much for the quick response Hans. I can remap colours with the tools we have here, except in the case of a gradient fill. I think I will try using a repeated graphic as a background instead, while waiting for printer's thoughts. Thanks, Duncan On 17/05/2011 12:16, Hans Hagen wrote: On 17-5-2011 12:24, Duncan Hothersall wrote: Could someone possibly let me know if it is even possible to define a gradient using a spot colour, or if I should instead revert to some alternative solution. I don't think so. Normally, if you use a specific color (recognizable) the printer should be able to remap that to some spot color (at least that is what we have done in the past, cf publisher specs). 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 - -- Duncan Hothersall +44 131 477 8624 Operations Director CAPDM Limited www.capdm.com Registered in Scotland: SC168970 / 22 Forth St, Edinburgh EH1 3LH, UK ___ 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] about JS(Walk_Field{})
Dear Wolfgang, Your animation module works really fine. It reduces a lot of work to set the fieldstack. I'd like to ask you a few more small things. 1) Is it possible to set the duration time in the case of autoplay? 2) The location of buttons is leftaligned when [menu=yes]. Is it what you want or I did something wrong? 3) What is the meaning of "\start and \stop" in animation-1.tex? 4) In your animation-2.tex, the size of buttons can be controlled by setting foregroundstyle. Then, how to apply it to \startanimation? Thank you. 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] MP spot color in gradient - help!
On 17-5-2011 12:24, Duncan Hothersall wrote: Could someone possibly let me know if it is even possible to define a gradient using a spot colour, or if I should instead revert to some alternative solution. I don't think so. Normally, if you use a specific color (recognizable) the printer should be able to remap that to some spot color (at least that is what we have done in the past, cf publisher specs). 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] MP spot color in gradient - help!
Struggling against a deadline here so apologies for no full sample. I have a gradient fill defined using \startuseMPgraphic{mpos:par:mylearnobj} path p; for i = 1 upto nofmultipars : p := multipars[1] topenlarged 8pt bottomenlarged 8pt leftenlarged 3cm ; color ca ; ca := \MPcolor{greenthirty} ; color cb ; cb := \MPcolor{white} ; sh := define_linear_shade(origin, origin shifted (120mm,0), ca, cb) ; fill p withshade sh ; endfor; \stopuseMPgraphic This works if the colour "greenthirty" is defined as a CMYK colour \definecolor[TAXBgreenthirty][c=.3,m=0,y=.057,k=.069] but, inevitably, my printer wants it defined as a spot ink, and when I do this: \definecolor[PantoneThreeOneFourFive][c=1,m=0,y=.19,k=.23] \definespotcolor[TAXBgreenthirty][PantoneThreeOneFourFive][p=.3] the gradient turns to black instead of green. (The spot colour definition works fine in the rest of the document, just not in the gradient fill.) Could someone possibly let me know if it is even possible to define a gradient using a spot colour, or if I should instead revert to some alternative solution. Thanks, Duncan ___ 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] \startmatrix bug in beta
Hi Hans/ Aditya, With the latest beta, \startmatrix's final \NR creates a superfluous line, resulting in ugly output: \starttext \startformula \startmatrix[left={\left(\,},right={\,\right)}] \NC 0 \NR \NC 0 \NR \NC 0 \NR % removing this fixes the output \stopmatrix \stopformula \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___