Re: [NTG-context] beta
On Fri, Sep 10, 2010 at 11:59 PM, Hans Hagen wrote: > On 10-9-2010 10:43, Zhichu Chen wrote: > >> My apology. I attach the test file here and hope that's gonna help. >> I extract everything from the font package to >> $texmf-fonts/fonts/data/bh/lucida >> and that's it. >> > > works ok here > > did you run mtxrun --generate etc? Yes, I did. But weird thing happened when I run the command manually again. I got the following message: === systems : begin file untitled-2.tex at line 3 {d:/ConTeXt/tex/texmf-fonts/fonts/map/dvips/bh/lucida/lucida.map} fontnames > font database does not match configuration and file hashes fontnames > warnings are disabled (tracker 'fonts.warnings') fontnames > identifying tree font files with suffix otf === > > > 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 > - > -- Best Regards Chen ___ 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] tex placeholder for use in metapost/metafun
Am 10.09.2010 um 22:45 schrieb Martin 'golodhrim' Scholz: > Hi everybody, > > as I like to desing a CI for an publishing Cover for an Organisation, I > have a question about usage: > > What I wanna do is, having placeholders in the metapost coverpage, it > should work like > > \author{} > \title{} > \swlogo{} > > in the preamble > > and should be automatically placed in the metapost graphic at runtime > > what would be the best way to do that? > > I thought about > > \def\author{content} > > > and then in metapost \btex\author\etex > > but not sure if it will work, or is there a more ConTeXtian way to do > so... You can set the values with \setvariables [document] [author=..., title=..., logo=...] and access them with \getvariable{document}{author} You can also test for a content of the variable: \doifvariable{document}{logo}{\externalfigure[\getvariable{document}{logo}]} 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] ConTeXt meeting luggage
On Fri, Sep 10, 2010 at 11:37 PM, Jano Kula wrote: > The river is only 2 meters away, so there will be more swimming this time. This is why I still have not bought new glasses -- 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] Fonts
I have to agree to Andreas... i just updated to the actual beta (for the math examples). Now mtxrun answers with following statement: ...text/tex/texmf-context/tex/context/base/font-otp.lua:512: attempt to call field 'register' (a nil value) ___ 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] Units fonts and spacing
To add a bit to this thread: just checked the siunits module, it's awesome. Spacing is right, sans font units work out of the box, no need for \ after the units and syntax for adding new units is very simple. I have a couple of questions: 1. How to change decimal separator and thousand separator? 2. Should'nt \siunit[thousandgroup=4]{1} produce 1 instead of 1. to be consistent with default thousandgroup=3? 3. \ss $\siunit{\square\kilo\meter}$ will produce all roman, but square will be sans. Why? -- 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] Units fonts and spacing
2010/9/10 Hans Hagen : >> Is the new module with the old syntax (10 \Meter etc.) or a new one. > > first I'm redoing digits > > with regards to the units themselves, we can do both: \Meter \Per \Second > and m/s) .. i'm still considering doing it at the node end .. typical dark > winternight work with a movie/talkshow on tv in the background > > Hans Will siunits module be used as a base for this or will this be something completely new? -- 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] ConTeXt meeting luggage
On 09/10/2010 10:12 PM, Mojca Miklavec wrote: On Thu, Sep 9, 2010 at 21:56, Henning Hraban Ramm wrote: Should I bring my guitar, or do we spend the nights hacking anyway? (I'd like to learn a Czech folk song or two, even if I'll have a hard time pronouncing it ;-)) Guitar is very welcome even if the rest is going to spend as much time hacking as they did in Bohinj (when the sun was shining and a nice lake was only 100m away ...) The river is only 2 meters away, so there will be more swimming this time. Anyway, if you like guitar playing, it looks like you should plan a trip to BachoTeX next year. Jano, should we bring some more wood for bonfire for Nino as well? No, we will give him a job in the restaurant, so he can make BBQs there. Jano ___ 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] ConTeXt meeting luggage
On 10-9-2010 9:52, Henning Hraban Ramm wrote: Am 2010-09-09 um 23:35 schrieb Hans Hagen: On 9-9-2010 9:56, Henning Hraban Ramm wrote: Is any participant interested in CAcert assurance? (Otherwise I leave my forms at home.) I have no clue what it is -) see cacert.org: CAcert issues free digital certificates (for email, servers etc.), based on a "web of trust": You get "trust points" for meeting in person with CAcert assurers that checks your identity (passport etc.). You need to meet normally 3 assurers to get enough points for an email certificate and some more for a server certificate. interesting, anyhow, forms don't weight too much so you can take a few with you - 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] Fonts
On 10-9-2010 10:57, Andreas Harder wrote: mtxrun --script fonts --list –all what if you add --pattern=* - 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] Fonts
Am 10.09.2010 um 21:54 schrieb Peter Schorsch: > You can list all local availble fonts with: > > mtxrun --script fonts --list –all But this is broken with the latest beta. At least for me (OS X 10.6.4). Greeting Andreas ___ 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] tex placeholder for use in metapost/metafun
Hi everybody, as I like to desing a CI for an publishing Cover for an Organisation, I have a question about usage: What I wanna do is, having placeholders in the metapost coverpage, it should work like \author{} \title{} \swlogo{} in the preamble and should be automatically placed in the metapost graphic at runtime what would be the best way to do that? I thought about \def\author{content} and then in metapost \btex\author\etex but not sure if it will work, or is there a more ConTeXtian way to do so... Thanks for your help -- Martin 'golodhrim' Scholz Auf dem Sattler 4 34516 Ederbringhausen Germany Phone: +49 6454 799623 mobile: +49 176 63301749 Fax: +49 6454 7990138 e-Mail: scholz@googlemail.com To downgrade the human mind is bad theology. - C. K. Chesterton ___ 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] ConTeXt meeting luggage
On Thu, Sep 9, 2010 at 21:56, Henning Hraban Ramm wrote: > > Should I bring my guitar, or do we spend the nights hacking anyway? > (I'd like to learn a Czech folk song or two, even if I'll have a hard time > pronouncing it ;-)) Guitar is very welcome even if the rest is going to spend as much time hacking as they did in Bohinj (when the sun was shining and a nice lake was only 100m away ...) Anyway, if you like guitar playing, it looks like you should plan a trip to BachoTeX next year. Jano, should we bring some more wood for bonfire for Nino as well? Mojca PS: Have you ever heard for Pimsleur for learning a language? If you want to learn some basics during the boring & long way to the meeting ... ___ 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] Fonts
You can list all local availble fonts with: mtxrun --script fonts --list --all More details under: http://wiki.contextgarden.net/Fonts_in_LuaTeX Cecil Westerhof wrote: > Is there a list of the standard fonts to use? I found: > serif > regular > roman > sans > support > sansserif > mono > type > teletype > handwritten > cmr > mm > rm > > But none of them I find very pleasing. (And handwritten looks > different as the name suggest.) How can I find out which fonts I can > use? > ___ 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] ConTeXt meeting luggage
Am 2010-09-09 um 23:35 schrieb Hans Hagen: On 9-9-2010 9:56, Henning Hraban Ramm wrote: Is any participant interested in CAcert assurance? (Otherwise I leave my forms at home.) I have no clue what it is -) see cacert.org: CAcert issues free digital certificates (for email, servers etc.), based on a "web of trust": You get "trust points" for meeting in person with CAcert assurers that checks your identity (passport etc.). You need to meet normally 3 assurers to get enough points for an email certificate and some more for a server certificate. Should I bring my guitar, or do we spend the nights hacking anyway? (I'd like to learn a Czech folk song or two, even if I'll have a hard time pronouncing it ;-)) always a good idea to bring it along ... if you ever go to a bachotek conference you'll become a hero among the other guitar players ... they even will give you a song book Oh, I even know one Polish song (but I guess my pronounciation is horrible) ;-) 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] formula: listing and subnumbering
On 10-9-2010 9:38, Peter Schorsch wrote: Hans Hagen wrote: i'll have a look at it Did you found anything? I tried to figure out which command in the examples of the wiki work/dont work (I used mkiv stable). So far: \formulanumber -> works in mkii and mkiv \subformulanumber -> works only in mkii \placenamedsubformula -> works only in mkii \placesubformula& \NR[+] -> mkii& mkiv, but (1.name) as number \placeformula& \NR[+] -> works in mkii and mkiv, but (1.name) as number - can you post your examples (so that they can be added to the test suite) - can you also test this with the current beta I have a real problem to transform my formula from mkii to mkiv. In mkii I had following: \placesubformulawithnumber[gleichung1] \startformula \startalign[n=3, align={right,middle,left}] \NC PM \xrightarrow{aaa} \NC R_{PM} \NC \xrightarrow{bbb} PM \NR[gleichung1a][.1] \NC R_{PM} \NC = \NC \{ K, F \} \NR[gleichung1b][.2] \stopalign \stopformula Can anyone help me to transform this to mkiv, please? Thanks P. ___ 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 ___ -- - 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] formula: listing and subnumbering
> Hans Hagen wrote: > i'll have a look at it Did you found anything? I tried to figure out which command in the examples of the wiki work/dont work (I used mkiv stable). So far: \formulanumber -> works in mkii and mkiv \subformulanumber -> works only in mkii \placenamedsubformula -> works only in mkii \placesubformula & \NR[+] -> mkii & mkiv, but (1.name) as number \placeformula & \NR[+] -> works in mkii and mkiv, but (1.name) as number I have a real problem to transform my formula from mkii to mkiv. In mkii I had following: \placesubformulawithnumber[gleichung1] \startformula \startalign[n=3, align={right,middle,left}] \NC PM \xrightarrow{aaa} \NC R_{PM} \NC \xrightarrow{bbb} PM \NR[gleichung1a][.1] \NC R_{PM} \NC = \NC \{ K, F \} \NR[gleichung1b][.2] \stopalign \stopformula Can anyone help me to transform this to mkiv, please? Thanks P. ___ 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] pdf file not found
On Fri, Sep 10, 2010 at 21:27, Peter Münster wrote: > On Fri, Sep 10 2010, Hans Hagen wrote: > >> i get empty pages in the case of a * but that can be simply because >> a * might not be in a filename on windows > > Ok, I can rename the file. > > But I think, the behaviour is so strange, that there is somewhere a hidden > bug. > > Strange, because 2*8 is the only file in > http://foundry.supelec.fr/svn/contextman/context-reference/en/arranging > with that problem. > > 3*8, 5*8, 2*6, 2*7, 2*9 -> ok > 1*8, 2*8, 4*8 -> not ok Don't like this kind of filename :) Sorry, can't help. ___ 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] pdf file not found
On Fri, 10 Sep 2010, Peter Münster wrote: On Fri, Sep 10 2010, Hans Hagen wrote: i get empty pages in the case of a * but that can be simply because a * might not be in a filename on windows Ok, I can rename the file. But I think, the behaviour is so strange, that there is somewhere a hidden bug. Strange, because 2*8 is the only file in http://foundry.supelec.fr/svn/contextman/context-reference/en/arranging with that problem. 3*8, 5*8, 2*6, 2*7, 2*9 -> ok 1*8, 2*8, 4*8-> not ok page=1 -> ok page=2 -> not ok file in current directory -> ok file in ./testdir -> not ok linux-32bit -> ok (reported by Hongwen) linux-64bit -> not ok context run by Taco -> ok context run by Peter -> not ok :( Strange indeed. You original test file runs perfectly fine here: $uname -a Linux 2.6.34-ARCH #1 SMP PREEMPT Sat Jun 19 00:07:49 CEST 2010 x86_64 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux $context --version MTXrun | main context file: /opt/context-minimals/texmf-context/tex/context/base/context.tex MTXrun | current version: 2010.09.05 13:23 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] pdf file not found
On Fri, Sep 10 2010, Hans Hagen wrote: > i get empty pages in the case of a * but that can be simply because > a * might not be in a filename on windows Ok, I can rename the file. But I think, the behaviour is so strange, that there is somewhere a hidden bug. Strange, because 2*8 is the only file in http://foundry.supelec.fr/svn/contextman/context-reference/en/arranging with that problem. 3*8, 5*8, 2*6, 2*7, 2*9 -> ok 1*8, 2*8, 4*8-> not ok page=1 -> ok page=2 -> not ok file in current directory -> ok file in ./testdir -> not ok linux-32bit -> ok (reported by Hongwen) linux-64bit -> not ok context run by Taco -> ok context run by Peter -> not ok :( Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] (Xe)ConTeXt and CJK support
On Fri, Sep 10, 2010 at 21:10, Hans Hagen wrote: > On 10-9-2010 9:03, Mojca Miklavec wrote: > >>> P.S.: If you think I'm crazy for trying to mix XeTeX, ConTeXt and tikZ, >>> please tell me now... =) >> >> No, nothing is crazy about that. It's just that Hans likes MKIV much >> more than ConTeXt. > mkiv *is* context (some day you can say: mkii *was* context) Sorry, of course I wanted to say "much more than XeTeX". 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] (Xe)ConTeXt and CJK support
On 10-9-2010 9:03, Mojca Miklavec wrote: P.S.: If you think I'm crazy for trying to mix XeTeX, ConTeXt and tikZ, please tell me now... =) No, nothing is crazy about that. It's just that Hans likes MKIV much more than ConTeXt. mkiv *is* context (some day you can say: mkii *was* context) 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] (Xe)ConTeXt and CJK support
On Thu, Sep 9, 2010 at 10:21, S Barmeier wrote: > Dear ConTeXt users, > > I am trying to write a document (grammar notes) in English and Japanese > and so far have used XeTeX (for Unicode support) with tikZ (for > graphics) quite successfully. However, I wish to convert to (Xe)ConTeXt > in order to have more control over the page design. > > At the moment I am stuck at trying to define English and Japanese fonts. > In XeTeX I used > > \usepackage[BoldFont]{xeCJK} > \setCJKmainfont{IPAMincho} > \setCJKsansfont{IPAGothic} > \setCJKmonofont{KanjiStrokeOrders} > > in order to set the three different Japanese fonts I am using. > > I haven't found any documentation on how to implement something > equivalent in ConTeXt and would be most grateful if someone could > outline how I would best go about converting my XeTeX document to ConTeXt. The package xeCJK has over 1000 lines of code. To implement exactly the same behaviour in XeConTeXt (or at least a subset of that with some basic plain XeTeX trickery) one would need to adapt its functionality for ConTeXt. If you would be willing to switch fonts manually, you could probably translate the document without any major problem. I didn't check the details, but I suspect that the package uses automatic switching mechanism for fonts between any latin character followed by a japanese one and vice versa. > P.S.: If you think I'm crazy for trying to mix XeTeX, ConTeXt and tikZ, > please tell me now... =) No, nothing is crazy about that. It's just that Hans likes MKIV much more than ConTeXt. > Also, it feels like ConTeXt MkIV with LuaTeX > would be the best choice (if the project were just already beyond the > beta stage), but I don't really know an awful lot about that either. Any > thoughts on how successfully I might be able to implement the above in > LuaTeX would also be much appreciated. You might get more support if you decide to use MKIV. > I have attached a page illustrating how I have been using XeTeX and tikZ. Very nice ... 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] pdf file not found
On 10-9-2010 6:12, Peter Münster wrote: On Fri, Sep 10 2010, Hans Hagen wrote: \starttext \setupexternalfigures[directory={./testdir}] \externalfigure[28][page=3] \stoptext so, no * in the filename Does this mean, that you can reproduce the problem, or not? i get empty pages in the case of a * but that can be simply because a * might not be in a filename on windows I just want to know, how to compile the context manual, see also here: http://www.ntg.nl/pipermail/ntg-context/2010/051965.html Cheers, Peter -- - 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] pdf file not found
On Fri, Sep 10 2010, Hans Hagen wrote: > \starttext > \setupexternalfigures[directory={./testdir}] > \externalfigure[28][page=3] > \stoptext > > so, no * in the filename Does this mean, that you can reproduce the problem, or not? I just want to know, how to compile the context manual, see also here: http://www.ntg.nl/pipermail/ntg-context/2010/051965.html Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] Perfecting my checkbox functionalities
Am 10.09.2010 um 10:05 schrieb Cecil Westerhof: > I am learning to work with ConTeXt. At the moment I have the following > defined: I guess we need a context programmers guide. >\newdimen\CheckBoxMargin >\CheckBoxMargin=2em >\newdimen\CheckBoxWidth >\CheckBoxWidth=2.5em >\newdimen\CheckBoxDistance >\CheckBoxDistance=.5em Get rid of this stuff and use a setup command: \def\setupCheckBox {\dodoubleargument\getrawparameters[CheckBox]} \setupCheckBox [Margin=2em, Width=2.5em, Distance=.5em] >\definesymbol[CheckBox][{[~~~]}] >\def\startcheckbox[#1]{ > \blank > \leftaligned{#1} > \startitemize[packed, intro, joinedup][margin=\CheckBoxMargin, >symbol=CheckBox, width=\CheckBoxWidth, >distance=\CheckBoxDistance] >} > >\def\stopcheckbox{ > \stopitemize > \blank > \crlf >} Brr, latex style. Why \crlf at the end of \stopcheckbox, to get a bigger space use \blank[...]. >\def\GetNiveauOfService[#1]{ > \blank > #1 {\switchtobodyfont[0.5em](1 = low, 9 = high)} > \startitemize[packed, intro, joinedup, columns][n=9, >symbol=CheckBox, width=\CheckBoxWidth, >distance=\CheckBoxDistance] > \dorecurse{9}{ >\item \recurselevel > } > \stopcheckbox >} \def\GetNiveauOfService {\dodoubleempty\doGetNiveauOfService} \def\doGetNiveauOfService[#1][#2]% {\blank #1 {\switchtobodyfont[0.5em]\doifsomethingelse{#2}{#2}{(1 = \translate[en=low,nl=weinig], 9 = \translate[en=high,nl=veel])}} \startitemize[packed,intro,joinedup,columns][n=9,symbol=CheckBox, width=\CheckBoxWidth,distance=\CheckBoxDistance] \dorecurse{9}{\item \recurselevel} \stopitemize} > I have a few questions about this. > > In GetNiveauOfService 9 is used three times. I like DRY, so I was > wondering if there would be a better way to do this? ??? (Note: I switched your following two questions) > Lastly, in GetNiveauOfService there is text. How can I make this > language dependent. For example in English I want: >(1 = low, 9 = high) > but in Dutch: >(1 = weinig, 9 = veel) > and properly it would be a good idea to have two optional parameters > when you want other descriptions. > How would I do this? See my version of the command, there is a second optional argument which can be used to set a alternative text. > Next step would be that the number of checkboxes could be a parameter. > The default would be nine and if given, the given value would be used. > How would I do this? > > Then the 'normal' checkboxes. The default is one column. But I would > like to have the possibility to use a parameter to for example make > checkboxes in three columns. How would I do this? For the last question i showed you how you can use a optional parameter to set alternative text but as you want more and more parameter you should first think about the interface for you commands (e.g. key-value makes more sense than lots of text arguments because you can’t make all of them optional in this case. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta
On 10-9-2010 10:43, Zhichu Chen wrote: My apology. I attach the test file here and hope that's gonna help. I extract everything from the font package to $texmf-fonts/fonts/data/bh/lucida and that's it. works ok here did you run mtxrun --generate etc? 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] pdf file not found
On 10-9-2010 2:25, Peter Münster wrote: \startbuffer[pdf-pages] \starttext page 1 \page page 2 \stoptext \stopbuffer \savebuffer[pdf-pages][pdf-pages.tex] \executesystemcommand{context pdf-pages; mkdir testdir; mv pdf-pages.pdf testdir/2*8.pdf} \starttext \setupexternalfigures[directory={./testdir}] \externalfigure[2*8][page=2] \stoptext this works ok here: \startbuffer[pdf-pages] \starttext page 1 \page page 2 \page page 3 \page \stoptext \stopbuffer \savebuffer[pdf-pages][pdf-pages.tex] \executesystemcommand{context pdf-pages} \executesystemcommand{mkdir testdir} \executesystemcommand{move /Y pdf-pages.pdf testdir/28.pdf} \starttext \setupexternalfigures[directory={./testdir}] \externalfigure[28][page=3] \stoptext so, no * in the filename however, you can do this \starttext \startbuffer[pdf-pages] \starttext page 1 \page page 2 \stoptext \stopbuffer \typesetbuffer[pdf-pages][page=2,frame=on] \stoptext this has the advantage that when the buffer does not change, you get no new run either 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] Units fonts and spacing
On 10-9-2010 5:06, Wolfgang Schuster wrote: Am 10.09.2010 um 17:01 schrieb Hans Hagen: With MkIV we have a powerful tool to do this because Lua make it so easy to parse and format numbers and units, see here: http://bitbucket.org/wolfs/units/src/tip/files/ I actually have a mkiv variant somewhere and will pick up that thread soon. Is the new module with the old syntax (10 \Meter etc.) or a new one. first I'm redoing digits with regards to the units themselves, we can do both: \Meter \Per \Second and m/s) .. i'm still considering doing it at the node end .. typical dark winternight work with a movie/talkshow on tv in the background 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] background, mkii vs. mkiv
Am 10.09.2010 um 16:52 schrieb Jörg Hagmann: > Thank you, Wolfgang. I added the line > "\setnewconstant\backgroundsplit\zerocount" to pack-rul.mkiv, AND IT WORKED! > This leaves the (not vital for me) question why minimal example 2 (using > "setuptextbackground") produces that funny background with the same commands > as in "setupbackground". Add “location=paragraph” to \setuptextbackground, to remove the empty line after the itemize environment add “nowhite” to \startitemize. 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] Units fonts and spacing
Am 10.09.2010 um 17:01 schrieb Hans Hagen: >> With MkIV we have a powerful tool to do this because Lua make it so easy >> to parse and format numbers and units, see here: >> http://bitbucket.org/wolfs/units/src/tip/files/ > > I actually have a mkiv variant somewhere and will pick up that thread soon. Is the new module with the old syntax (10 \Meter etc.) or a new one. 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] Units fonts and spacing
On 10-9-2010 4:58, Wolfgang Schuster wrote: Am 10.09.2010 um 10:03 schrieb Vedran Miletić: 2010/9/9 Wolfgang Schuster: \textdimensionstrue Awesome. Are there any other useful switches? Beside \textdimension(true|false) there is \spaceddimensions(true|false) to add a small space between dimension. The units module has unlike many other commands and environments in context not many parameters to change the layout and it will make more sense to write another module for units which has these options than modifying the existing one. With MkIV we have a powerful tool to do this because Lua make it so easy to parse and format numbers and units, see here: http://bitbucket.org/wolfs/units/src/tip/files/ I actually have a mkiv variant somewhere and will pick up that thread soon. 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] Units fonts and spacing
Am 10.09.2010 um 10:03 schrieb Vedran Miletić: > 2010/9/9 Wolfgang Schuster : >> \textdimensionstrue > > Awesome. Are there any other useful switches? Beside \textdimension(true|false) there is \spaceddimensions(true|false) to add a small space between dimension. The units module has unlike many other commands and environments in context not many parameters to change the layout and it will make more sense to write another module for units which has these options than modifying the existing one. With MkIV we have a powerful tool to do this because Lua make it so easy to parse and format numbers and units, see here: http://bitbucket.org/wolfs/units/src/tip/files/ 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] background, mkii vs. mkiv
Thank you, Wolfgang. I added the line "\setnewconstant\backgroundsplit\zerocount" to pack-rul.mkiv, AND IT WORKED! This leaves the (not vital for me) question why minimal example 2 (using "setuptextbackground") produces that funny background with the same commands as in "setupbackground". Thanks again, Jörg On 9/10/10 4:06 PM, Wolfgang Schuster wrote: Am 10.09.2010 um 16:01 schrieb Jörg Hagmann: Ok, I narrowed it down: ---First minimal example--- \setupcolors[state=start] \starttext \setupbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}] \startbackground \startitemize[packed] \item First question \item Second question \item Third question \stopitemize \stopbackground \stoptext -end of first minimal example This works in mk II, but not in mk IV. It seems that start/stopbackground has been deprecated (?). And replaced with \definetextbackground ? The reason is simpler, Hans replaced in MkIV many \newcounter and \chardef definitions with real counters and forgot for the background macros to add \setnewconstant\backgroundsplit\zerocount to pack-rul.mkiv. 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 ___ -- Prof. Jörg Hagmann-Zanolari MD University of Basel Department of Biomedicine Institute of Biochemistry and Genetics Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 267 3565 ___ 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] background, mkii vs. mkiv
On 10-9-2010 4:06, Wolfgang Schuster wrote: The reason is simpler, Hans replaced in MkIV many \newcounter and \chardef definitions with real counters and forgot for the background macros to add \setnewconstant\backgroundsplit\zerocount actually i forgot to change a couple of them into \backgroundsplitmode - 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] Fonts
Am 10.09.2010 um 10:11 schrieb Cecil Westerhof: > Is there a list of the standard fonts to use? I found: > > [...] > > But none of them I find very pleasing. (And handwritten looks > different as the name suggest.) How can I find out which fonts I can > use? With your list you can only switch to a different style of a typeface but to get a different font you need e.g. \setupbodyfont[palatino]. This is a (uncomplete) list of the predefined typefaces in context, to switch to one of them you have to take the name after the bullet and load it with \setupbodyfont: Note: all names in the same line are synonyms for the same typeface Latin Modern • modern • modern-base • modernvariable, modern-variable • modernvariablelight, modern-variable-light • modern-mono • modern-base-mono TeX Gyre • times, termes • palatino, pagella • schoolbook, schola • bookman, bonum • chancery, chorus • helvetica, heros • avantgarde, adventor • courier, cursor Antykwa Torunska • antykwa-torunska • antykwa-torunska-light • antykwa-torunska-cond • antykwa-torunska-lightcond Antykwa Poltawskiego • antykwa-poltawskiego • antykwa-poltawskiego-light Iwona - • iwona • iwona-light • iwona-heavy • iwona-medium Mathtimes (commercial) - • mathtimes Lucida (commercial) -- • lucida Asana Math -- • asana Cambria (commercial) --- • cambria • cambria-m • cambria-a • cambria-x,cambria-y Microsoft core fonts (Times + Arial + Courier) • mscore Libaration -- • liberation Linux Libertine --- • libertine Postscript fonts (like mscore but with texgyre fonts) • postscript Euler - • pagella-euler • euler Stix • stix Xits (stix with opentype math) • xits Punk • punknova Helvetica Math (commercial) -- • hvmath DejaVu • dejavu Kind regards, 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] background, mkii vs. mkiv
Am 10.09.2010 um 16:01 schrieb Jörg Hagmann: > Ok, I narrowed it down: > > ---First minimal example--- > \setupcolors[state=start] > > \starttext > > \setupbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}] > \startbackground > > \startitemize[packed] > \item First question > \item Second question > \item Third question > \stopitemize > > \stopbackground > > \stoptext > -end of first minimal example > > This works in mk II, but not in mk IV. It seems that start/stopbackground > has been deprecated (?). And replaced with \definetextbackground ? The reason is simpler, Hans replaced in MkIV many \newcounter and \chardef definitions with real counters and forgot for the background macros to add \setnewconstant\backgroundsplit\zerocount to pack-rul.mkiv. 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] background, mkii vs. mkiv
Ok, I narrowed it down: ---First minimal example--- \setupcolors[state=start] \starttext \setupbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}] \startbackground \startitemize[packed] \item First question \item Second question \item Third question \stopitemize \stopbackground \stoptext -end of first minimal example This works in mk II, but not in mk IV. It seems that start/stopbackground has been deprecated (?). And replaced with \definetextbackground ? ---Second minimal example- \setupcolors[state=start] \starttext \setuptextbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}] \starttextbackground \startitemize[packed] \item First question \item Second question \item Third question \stopitemize \stoptextbackground \stoptext -end of second minimal example--- This "works" in both mk II and mk IV, but compare the background with the one in the first example. Help appreciated, thanks Jörg On 9/10/10 9:28 AM, Jörg Hagmann wrote: Could somebody please tell me why this minimal example works in mk II but not in mk IV -- and what I have to change? Thanks very much, Jörg -minimal example \definestartstop[Questions][before={\setupbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}]\startbackground},after=\stopbackground] \starttext \startQuestions \startitemize[packed] \item First question \item Second question \item Third question \stopitemize \stopQuestions \stoptext end minimal example-- PS: On 9/8/10 10:51 AM, luigi scarso wrote: Did I misunderstand something? $> context --purge or $>context --purgeal I'm embarrassed ... ___ 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] Indent after \placefigure
Hello, see here http://tracker.luatex.org/view.php?id=403 On 10 September 2010 16:15, Andreas Harder wrote: > Hello, > > if one uses the right-option in \placefigure the paragraph indent is omitted. > Example: > > \setupindenting[small,yes,next] > \setupfloats[indentnext=yes] % no effect > \starttext > \input tufte \par > \placefigure > [right]{caption} > {\framed[width=5cm,height=3cm]{some figure}} > \input tufte \par \input tufte > \stoptext > > Best regards > > Andreas > ___ > 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] pdf file not found
于 2010年09月10日 20:25, Peter Münster 写道: Hello, Can anybody reproduce the following problem (Taco can't ...): No problem here. \startbuffer[pdf-pages] \starttext page 1 \page page 2 \stoptext \stopbuffer \savebuffer[pdf-pages][pdf-pages.tex] \executesystemcommand{context pdf-pages; mkdir testdir; mv pdf-pages.pdf testdir/2*8.pdf} \starttext \setupexternalfigures[directory={./testdir}] \externalfigure[2*8][page=2] \stoptext -> !LuaTeX error: PDF inclusion: required page<2> does not exist No problem with page=1. No problem with other name for pdf-file (for example "pdftest.pdf" instead of "2*8.pdf"). No problem, if pdf-file is in current directory instead of "testdir". My system is latest minimals on linux-amd64. Latest minimals on linux i386. Cheers, Peter ___ 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] Indent after \placefigure
Hello, if one uses the right-option in \placefigure the paragraph indent is omitted. Example: \setupindenting[small,yes,next] \setupfloats[indentnext=yes] % no effect \starttext \input tufte \par \placefigure [right]{caption} {\framed[width=5cm,height=3cm]{some figure}} \input tufte \par \input tufte \stoptext Best regards Andreas ___ 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] cjk texts in the pdf file which MkIV output sometimes can not be copy rightly
On 09/10/2010 02:32 PM, Li Yanrui (李延瑞) wrote: 2010/9/10 Li Yanrui (李延瑞): Hi all, For the pdf file which is generated frome the following example, two Chinese characters can not be copied rightly when I use simsun.ttc font and use *Adobe Reader* to view it. The copy text is displayed as the wrong unicode text such as "". It looks like the reader is ignoring the ToUnicode entry in the bad case. No idea why, though. 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 ___
Re: [NTG-context] cjk texts in the pdf file which MkIV output sometimes can not be copy rightly
2010/9/10 Li Yanrui (李延瑞) : > Hi all, > > For the pdf file which is generated frome the following example, two > Chinese characters can not be copied rightly when I use simsun.ttc > font and use *Adobe Reader* to view it. The copy text is displayed as > the wrong unicode text such as "". However these glyphs can be > copied rightly if I use AdobeSongStd.otf font or I use other pdf > reader such as evince. > > \definefont[song][file:simsun] > \starttext > \song 描 $\overline{q}$ 提 > \stoptext > > The attachment for this mail is that pdf file with simsun.ttc font > which can be downloaded from > http://code.google.com/p/way2ctx/downloads/list > > This situation is not general. For example, if I change one Chinese > character the text can be copied normally even using simsun.ttc font. > > -- > Best regards, > > Li Yanrui (李延瑞) > My test enviorment is the beta 2010.09.09 23:45 in linux x86. -- Best regards, Li Yanrui (李延瑞) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] cjk texts in the pdf file which MkIV output sometimes can not be copy rightly
Hi all, For the pdf file which is generated frome the following example, two Chinese characters can not be copied rightly when I use simsun.ttc font and use *Adobe Reader* to view it. The copy text is displayed as the wrong unicode text such as "". However these glyphs can be copied rightly if I use AdobeSongStd.otf font or I use other pdf reader such as evince. \definefont[song][file:simsun] \starttext \song 描 $\overline{q}$ 提 \stoptext The attachment for this mail is that pdf file with simsun.ttc font which can be downloaded from http://code.google.com/p/way2ctx/downloads/list This situation is not general. For example, if I change one Chinese character the text can be copied normally even using simsun.ttc font. -- Best regards, Li Yanrui (李延瑞) a.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 ___
[NTG-context] pdf file not found
Hello, Can anybody reproduce the following problem (Taco can't ...): \startbuffer[pdf-pages] \starttext page 1 \page page 2 \stoptext \stopbuffer \savebuffer[pdf-pages][pdf-pages.tex] \executesystemcommand{context pdf-pages; mkdir testdir; mv pdf-pages.pdf testdir/2*8.pdf} \starttext \setupexternalfigures[directory={./testdir}] \externalfigure[2*8][page=2] \stoptext -> !LuaTeX error: PDF inclusion: required page <2> does not exist No problem with page=1. No problem with other name for pdf-file (for example "pdftest.pdf" instead of "2*8.pdf"). No problem, if pdf-file is in current directory instead of "testdir". My system is latest minimals on linux-amd64. Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] Prevent Ligatures
Am 10.09.2010 um 13:42 schrieb Taco Hoekwater: > On 09/10/2010 01:01 PM, Andreas Harder wrote: >> Hi all, >> >> I've two questions. >> 1. Is f|*|f still the right way to prevent a ligature? >> 2. \setff{noligs} don't seem to have effect, while the defined font is >> working. What is wrong? > > Have you tried \addff ? Yes, I have. Greeting Andreas ___ 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] Prevent Ligatures
On 09/10/2010 01:01 PM, Andreas Harder wrote: Hi all, I've two questions. 1. Is f|*|f still the right way to prevent a ligature? 2. \setff{noligs} don't seem to have effect, while the defined font is working. What is wrong? Have you tried \addff ? 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 ___
[NTG-context] Prevent Ligatures
Hi all, I've two questions. 1. Is f|*|f still the right way to prevent a ligature? 2. \setff{noligs} don't seem to have effect, while the defined font is working. What is wrong? \definefontfeature[noligs] [default][liga=no] \definefont[test][Serif*noligs] \startTEXpage[offset=1ex] ff fi fl fh fk \crlf {\setff{noligs} ff fi fl fh fk } \crlf {\test ff fi fl fh fk } \crlf f|*|f f|*|i f|*|l f|*|h f|*|k \stopTEXpage Best regards Andreas ___ 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] Fonts
Is there a list of the standard fonts to use? I found: serif regular roman sans support sansserif mono type teletype handwritten cmr mm rm But none of them I find very pleasing. (And handwritten looks different as the name suggest.) How can I find out which fonts I can use? -- Cecil Westerhof M cldwester...@gmail.com O< ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___ 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] Perfecting my checkbox functionalities
I am learning to work with ConTeXt. At the moment I have the following defined: \newdimen\CheckBoxMargin \CheckBoxMargin=2em \newdimen\CheckBoxWidth \CheckBoxWidth=2.5em \newdimen\CheckBoxDistance \CheckBoxDistance=.5em \definesymbol[CheckBox][{[~~~]}] \def\startcheckbox[#1]{ \blank \leftaligned{#1} \startitemize[packed, intro, joinedup][margin=\CheckBoxMargin, symbol=CheckBox, width=\CheckBoxWidth, distance=\CheckBoxDistance] } \def\stopcheckbox{ \stopitemize \blank \crlf } \def\GetNiveauOfService[#1]{ \blank #1 {\switchtobodyfont[0.5em](1 = low, 9 = high)} \startitemize[packed, intro, joinedup, columns][n=9, symbol=CheckBox, width=\CheckBoxWidth, distance=\CheckBoxDistance] \dorecurse{9}{ \item \recurselevel } \stopcheckbox } I have a few questions about this. In GetNiveauOfService 9 is used three times. I like DRY, so I was wondering if there would be a better way to do this? Next step would be that the number of checkboxes could be a parameter. The default would be nine and if given, the given value would be used. How would I do this? Then the 'normal' checkboxes. The default is one column. But I would like to have the possibility to use a parameter to for example make checkboxes in three columns. How would I do this? Lastly, in GetNiveauOfService there is text. How can I make this language dependent. For example in English I want: (1 = low, 9 = high) but in Dutch: (1 = weinig, 9 = veel) and properly it would be a good idea to have two optional parameters when you want other descriptions. How would I do this? -- Cecil Westerhof M cldwester...@gmail.com O< ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___ 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] Units fonts and spacing
2010/9/9 Wolfgang Schuster : > \textdimensionstrue Awesome. Are there any other useful switches? -- 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] beta
On 10-9-2010 5:58, Zhichu Chen wrote: Works funny on my Lucida fonts, something about = structure : section @ level 3 : 0.0.9 -> References define fonts> font with name LucidaBright is not found define fonts> unknown font LucidaBright, loading aborted define fonts> unable to define LucidaBright as \*lucida8ptrmtfa* = the funny part is, I can get the math symbols and the lucida bright fonts in the pdf file, but there're no bold, italic and small caps, and the whole document is using the same font size, the titles aren't enlarged. That's type one fonts isn't it? I didn't touch that afaik. Anyhow, no test file .. no real answer. There are too many lucida variants around to make a guess what happens. 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] (Xe)ConTeXt and CJK support
On 9-9-2010 10:21, S Barmeier wrote: Dear ConTeXt users, I am trying to write a document (grammar notes) in English and Japanese and so far have used XeTeX (for Unicode support) with tikZ (for graphics) quite successfully. However, I wish to convert to (Xe)ConTeXt in order to have more control over the page design. At the moment I am stuck at trying to define English and Japanese fonts. In XeTeX I used \usepackage[BoldFont]{xeCJK} \setCJKmainfont{IPAMincho} \setCJKsansfont{IPAGothic} \setCJKmonofont{KanjiStrokeOrders} in order to set the three different Japanese fonts I am using. I haven't found any documentation on how to implement something equivalent in ConTeXt and would be most grateful if someone could outline how I would best go about converting my XeTeX document to ConTeXt. Many thanks. Kind regards, Severin P.S.: If you think I'm crazy for trying to mix XeTeX, ConTeXt and tikZ, please tell me now... =) Also, it feels like ConTeXt MkIV with LuaTeX would be the best choice (if the project were just already beyond the beta stage), but I don't really know an awful lot about that either. Any thoughts on how successfully I might be able to implement the above in LuaTeX would also be much appreciated. There will be no further efforts to support fonts, languages or scripts in context mkii/xetex (apart from bug fixes) so using mkiv is a better option I use mkiv myself and it's quite useable. Actually, I've not been using mkii for years apart from format generation and an occasional test run. Mkiv will be beta for a while simply because successively code is been rewritten / upgraded and because it goes in sync with luatex development. 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] background, mkii vs. mkiv
Could somebody please tell me why this minimal example works in mk II but not in mk IV -- and what I have to change? Thanks very much, Jörg -minimal example \definestartstop[Questions][before={\setupbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}]\startbackground},after=\stopbackground] \starttext \startQuestions \startitemize[packed] \item First question \item Second question \item Third question \stopitemize \stopQuestions \stoptext end minimal example-- PS: On 9/8/10 10:51 AM, luigi scarso wrote: Did I misunderstand something? $> context --purge or $>context --purgeal I'm embarrassed ... ___ 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 ___