Re: [NTG-context] placefigure shifting up?
I think I can nail the responsible one. As far as I can see the problem is tightly coupled with the following structure: \placefigure[][]{caption}{\startcombination[]{contents}{}{contents}{}\stopcombination} The other figures I have seem to placed well enough, the above structures behaving erratic. I could not completely ascertain whether empty desciptions parts in the combination-members plays a role. I really hope this will point the way to a fast solution from the gurus ;-) Hans van der Meer On 11 jan. 2012, at 20:21, Hans van der Meer wrote: I might add to this report the following observation: In a document with \setuppapersize [S8][S8] the shifts appear now and then, whereas these are typeset normally when the document is place on \setuppapersize [A4][A4]. It seems that the papersize and placefigure sometimes have a problem with each other. Hans van der Meer On 11 jan. 2012, at 20:01, H. van der Meer wrote: In my document I have a number of \placefigures, some pdf's, some jpg's etc. Mostly the figure are placed correct with respect to, the caption but sometimes for no apparent reason I can spot, the picture is shifted up. In the first illustration taken from the document this is clearly seen, picture and caption should be close together. Compare this with the other one. I do not have a minimal example at hand, the document is too big for that and as said, I could not yet force the behaviour. Both \placefigure's are exactly the same apart from their specific contents. Anyone who knows about this problem? For me it is quite a problem, because it ruins the document layout considerably. Hans van der Meer shifted.jpg notshifted.jpg ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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] for luigi's gadget gallery
On 9-1-2012 18:26, Thomas A. Schmitz wrote: On 1/9/12 6:19 PM, Hans Hagen wrote: I would not be surprised if at the next context meeting Thomas will have one ... (and doing a presentation using the upcoming high res macbook, ipad 3, this keyboard, a 3d beamer with greek/latin/german/english in parallel) .. after all, he's set the standard now Hans Nope, I need to keep a low profile. When I was innocently fiddling with my macbook air and my ipad at a conference a month ago, a colleague called out you're such a poser! So next conference I will try to impress by being under-equiped: 8 year old clunky laptop running BSD without graphical desktop, and showing black-and-white printouts instead of using a projector. That'll learn them! Ok, so you can join our pet project and use the 35 euro http://www.raspberrypi.org (Luigi already managed to make a luatex for that arm thing and mojca support it on the garden). (But I really liked your subtle usage of a pad in combination with the regular laptop.) 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] for luigi's gadget gallery
Am 09.01.2012 um 18:58 schrieb Hans Hagen: On 9-1-2012 18:26, Thomas A. Schmitz wrote: On 1/9/12 6:19 PM, Hans Hagen wrote: I would not be surprised if at the next context meeting Thomas will have one ... (and doing a presentation using the upcoming high res macbook, ipad 3, this keyboard, a 3d beamer with greek/latin/german/english in parallel) .. after all, he's set the standard now Hans Nope, I need to keep a low profile. When I was innocently fiddling with my macbook air and my ipad at a conference a month ago, a colleague called out you're such a poser! So next conference I will try to impress by being under-equiped: 8 year old clunky laptop running BSD without graphical desktop, and showing black-and-white printouts instead of using a projector. That'll learn them! Ok, so you can join our pet project and use the 35 euro http://www.raspberrypi.org (Luigi already managed to make a luatex for that arm thing and mojca support it on the garden). (But I really liked your subtle usage of a pad in combination with the regular laptop.) OLPC just managed to create a pad under 100 euro! http://laptop.org/en/laptop/hardware/xo3.shtml Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] spaceskip in \framed bug
On Thu, 29 Dec 2011 07:55:37 -0700, Hans Hagen pra...@wxs.nl wrote: On Sun, 25 Dec 2011 13:07:44 -0700, Idris Samawi Hamid ادريس سماوي حامد The following used to work in mkiv, but no longer (works in mkii): Setups come before setting the alignment and alignments sets the spaceskip too. Are you sure that it worked before? nothing changed in that order. I just now tried it again in mkii, and it works fine there. Also, I've used this paradigm in one of my samples for a long time now in mkiv, and it definitely used to work. Indeed, I only tried mkii on a whim, this sample was a mkiv sample to start with. In any case, I'm not clear on your point: Setups come before setting the alignment and alignments sets the spaceskip too. I have not found a combination that works in mkiv: Please advise. Here is the code again for reference: == \startsetups stretchline \spaceskip=0pt plus 2 fill \relax \stopsetups \setupframed[frame=on,width=\textwidth,setups=stretchline, offset=none,location=depth,align=l2r] \showframe \starttext \framed{This is a test.} \stoptext == Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] fun with markings
Hello again, it’s that time of year again, when I try to print my calendar and address book for next year, and last year’s ConTeXt code doesn’t work any more... (see my mails on imposition and tabulate lines problems). Anyway; I’d like to get the first and last name on one address book page into its header. While that didn’t work last year at all (at least not in combination with imposition), I get rather good results with this code (helpfully donated by someone on this list): \setupbodyfont [ss,18pt] \setuplayout[location=middle,marking=on] \setuppaper [nx = 3 ,ny = 1 ,dx =0mm,dy=0mm,topspace=19mm,backspace=10.5mm,page=A7,paper={A4,landscape}] \setuparranging [XY] \definemarking[MyNam] \setupheadertexts[][{\getmarking[MyNam][first]–\getmarking[MyNam] [last]}] \def\Name#1{#1\expanded{\marking[MyNam]{#1}}} \starttext \startlines \Name{A} \Name{B} \Name{C} \Name{D} \Name{E} \Name{F} \Name{G} \Name{H} \Name{I} \Name{J} \Name{K} \Name{L} \Name{M} \Name{N} \Name{O} \Name{P} \Name{Q} \Name{R} \Name{S} \Name{T} \Name{U} \Name{V} \Name{W} \Name{X} \Name{Y} \Name{Z} \Name{\CONTEXT} \stoplines \stoptext I.e. I put the first letters of every name into the marking register MyNam and fetch its first and last value in the header. Problem is, I get always the second and second-last name, instead the first and last one. E.g. if there’s A-I on the first page, header says B–H. Best Greetlings! 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] fun with markings
On 20-12-2011 13:57, Henning Hraban Ramm wrote: Hello again, it’s that time of year again, when I try to print my calendar and address book for next year, and last year’s ConTeXt code doesn’t work any more... (see my mails on imposition and tabulate lines problems). Anyway; I’d like to get the first and last name on one address book page into its header. While that didn’t work last year at all (at least not in combination with imposition), I get rather good results with this code (helpfully donated by someone on this list): Marks are somewhat special in the sense that they can be loners or part of a chain (chapter-section-...) with special reset requirements. As tex's natural model has some limitations, in mkiv we do things a bit diffrent (but rather well defined). When a set of marks on a page is identified, the following keywords can be used: previous : last before sync next : first after sync top : first in sync bottom : last in sync first: first not top in sync last : last not bottom in sync so, you need to use 'top' and 'bottom'. When the chain is to be ignored, one can append :nocheck to the keyword. There's also a 'current' method. 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] MetaFun: MetaPost example works with `mpost` but not embedded in ConTeXt: `! Redundant equation.`
On 2011-12-11 Paul Menzel paulepan...@users.sourceforge.net wrote: […] I then copied it into `\{start,stop}useMPgraphic`, removed the `end ;` and `{begin,end}fig` and replaced `{e,b}tex` by `textext()` but still get the following error. I didn't check you code (try to make a minimal example next time), but the problem seems to be the combination of equations and labels. When labels are present, the file is processed twice and the equations are also read twice (in MkIV). It hasn't been fixed for ages, that probably means it will stay. One workaround is to substitute the equations with assignments or to “save” the values beforehand. See also: http://archive.contextgarden.net/message/20101205.035356.1b7bfb72.en.html Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Layers + simplefonts: Using different font in layers?
Hi! After a wee bit of struggle I've managed to get as far as to (re)creating front and back covers of a booklet as layers. They worked fine in separate files, but now I have to incorporate the layers into my main file and that turned out to be too complicated for my little brain. Thus I'd appreciate a bit of help... I'm using Windows 7 and SciTe and I just updated my ConTeXt to newest beta (and it works). Problem one: The text on the covers needs to be in Arial, but the contents should be in Candara. I can get this done in totally separate files with \usemodule[simplefonts] \setmainfont[arial] \usemodule[simplefonts] \setmainfont[candara] However, when I put the front cover before the main contents, I don't seem to be able to reset the font. The same goes for \setupinterlinespace, it is 1.8em on the cover and default in the contents. I'm not very familiar with the layers nor the font switching and this together makes it very difficult for me to figure out in what order my commands should be (and what they should be; doing a search on the wiki pages on setmainfont gives *no* results). So, can somebody provide me with a minimal example of a file that has a layer with text in one font (preferably using simplefonts) and a few pages of text in another font and then another layer as backcover in cover font? Problem two: Whatever I do, I can't get the final number of pages to be divisible by for (and in a way that the back cover ends up on the last page). I used to use the hack given at http://wiki.contextgarden.net/Imposition#Getting_to_the_Back_Cover_of_a_Booklet, but it doesn't work any more (hangs on \fi} / line 18); I think it still worked in June 2011, but not any more in August. So, how do I get my back cover to pop up on the last page of my booklet? (Problem three: Having stuff under back matter causes a few extra empty pages that I don't seem to be able to suppress with any combination of \page commands (last one I tried seems to be \page[right,quadruple]). However, this problem may go away if 1 2 get solved.) Thankful for any help, Mari ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Layers + simplefonts: Using different font in layers?
Hi Mari, hm, although the master has given his answer already ... Here is what I interpreted from your mail. May be it answers the first question. Using setups does normally help in these cases. Making the number of pages divisible by four. quadruple works with arranging. So probably you must insert the number of pages needed manually? I hope this helps you going! Willi test-simplefonts.tex Description: Binary data On 9 Dec 2011, at 09:24, Mari Voipio wrote: Hi! After a wee bit of struggle I've managed to get as far as to (re)creating front and back covers of a booklet as layers. They worked fine in separate files, but now I have to incorporate the layers into my main file and that turned out to be too complicated for my little brain. Thus I'd appreciate a bit of help... I'm using Windows 7 and SciTe and I just updated my ConTeXt to newest beta (and it works). Problem one: The text on the covers needs to be in Arial, but the contents should be in Candara. I can get this done in totally separate files with \usemodule[simplefonts] \setmainfont[arial] \usemodule[simplefonts] \setmainfont[candara] However, when I put the front cover before the main contents, I don't seem to be able to reset the font. The same goes for \setupinterlinespace, it is 1.8em on the cover and default in the contents. I'm not very familiar with the layers nor the font switching and this together makes it very difficult for me to figure out in what order my commands should be (and what they should be; doing a search on the wiki pages on setmainfont gives *no* results). So, can somebody provide me with a minimal example of a file that has a layer with text in one font (preferably using simplefonts) and a few pages of text in another font and then another layer as backcover in cover font? Problem two: Whatever I do, I can't get the final number of pages to be divisible by for (and in a way that the back cover ends up on the last page). I used to use the hack given at http://wiki.contextgarden.net/Imposition#Getting_to_the_Back_Cover_of_a_Booklet, but it doesn't work any more (hangs on \fi} / line 18); I think it still worked in June 2011, but not any more in August. So, how do I get my back cover to pop up on the last page of my booklet? (Problem three: Having stuff under back matter causes a few extra empty pages that I don't seem to be able to suppress with any combination of \page commands (last one I tried seems to be \page[right,quadruple]). However, this problem may go away if 1 2 get solved.) Thankful for any help, Mari ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] setupheads
Hello all, I've not been able to find the right combination of commands to change my header style. I'd like to have bold, italic (or slanted), plus change the text size. I currently have the following: \setuphead[section][color=header_dark_blue, aligntitle=float] \definehead[newsection][section] \setuphead[newsection] style=\tfd\boldslanted, before=\page, width=120mm, aligntitle=float, after={\blackrule[color=sectionlineblue,width=125mm,height=1pt]}, ] This gives me bold, slanted text but not the size change. Swapping the tfd and boldslanted will change the size but not the style. Can anyone see where I'm going wrong? Felix ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setupheads
Am 07.12.2011 um 12:17 schrieb Felix Ingram: Hello all, I've not been able to find the right combination of commands to change my header style. I'd like to have bold, italic (or slanted), plus change the text size. I currently have the following: \setuphead[section][color=header_dark_blue, aligntitle=float] \definehead[newsection][section] \setuphead[newsection] style=\tfd\boldslanted, style=\bsd, 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] [SOLVED] mod_php vs context: tight loop
On 27/11/11 16:45, Brendan Jurd wrote: On 25/11/11 19:17, Hans Hagen wrote: On 25-11-2011 06:12, Brendan Jurd wrote: I have a PHP application which generates documentation on the fly with context. This has been working really well, but I am now testing deployment on a new server with a more recent version of context, and it seems to be somehow getting itself into a tight loop. in such cases I always run with --batch to make sure that the job itself cannot block Thanks for the response. I tried running with --batch and it made no difference to the outcome. The mtxrun process still got jammed up in exactly the same manner. Regressing to the ubuntu 'lucid' packages resolved the problem for me, so whatever is wrong has gone wrong somewhere in the combination of packages in ubuntu 'natty'. I did eventually get to the bottom of this. Turns out that mtxrun was failing to find a writable cache path (from mtxrun line 9269). To find a cache path, mtxrun searches through the environment variables TEXMFCACHE, TMPDIR, TEMPDIR, TMP, TEMP, HOME, HOMEPATH. The apache worker process had no such environment variables, so mtxrun failed. Once I added the following line to my PHP script, everything started working just fine: putenv('TEMPDIR=/tmp'); -- Regards, Brendan Jurd Software Engineer Achieve, Corp brendan.j...@achievecorp.com.au ___ 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] mod_php vs context: tight loop
On 25/11/11 19:17, Hans Hagen wrote: On 25-11-2011 06:12, Brendan Jurd wrote: I have a PHP application which generates documentation on the fly with context. This has been working really well, but I am now testing deployment on a new server with a more recent version of context, and it seems to be somehow getting itself into a tight loop. in such cases I always run with --batch to make sure that the job itself cannot block Hi Hans, Thanks for the response. I tried running with --batch and it made no difference to the outcome. The mtxrun process still got jammed up in exactly the same manner. Regressing to the ubuntu 'lucid' packages resolved the problem for me, so whatever is wrong has gone wrong somewhere in the combination of packages in ubuntu 'natty'. -- Regards, Brendan Jurd Software Engineer Achieve, Corp brendan.j...@achievecorp.com.au ___ 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] \unit and Hertz, lux, and degrees/minutes/seconds
On 24-11-2011 13:36, robin.kirk...@csiro.au wrote: On Monday, 21 November 2011 20:52, Hans Hagen wrote: Over the weekend I've discovered a couple more problems with \unit so I'll make up some test cases and desired output and post it in a few days. ok, I'll wait for that then Hans, all, I attach a document (source and PDF) with some \unit test cases that don't currently work (even with the most recent beta). It also has a number of suggestions for improvement. Some of this should be construed as personal opinion, but hopefully it isn't too controversial. I uploaded a new beta. - degrees fixed (special category as it can be standalone or in combination). - per fixed - Hz, dB (actually deci + bel so megabel also works), lx, permille, t, k, Da added - eV, m, \mu m, root added - ad 1: should normally work out ok - ad 2: no looking back (would demand an extra correction pass elsewhere, maybe some day) - ad 3: see remark WS - ad 4: see remark WS (also, the existing module was starting point) - ad 5: depends on what users want - ad 6: see remark WS - ad 7: the old modules had that, maybe this one will have it too; in that case we need a list of descriptions too (for different languages) for units that make sense to be mentioned in such a list - ad 8: manipulating the input this way is somewhat beyond the purpose of a typesetting system - ad 9: much will be configureable; see mkiv file for an example of defining extra units (\registerunit [units] [point=pt, basepoint=bp]); - I myself am not going to look in all kind of other tex stuff that lays around as it's up to users/usage what is added, given that it fits into the model of context; we have the old units modules as starting point - 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] caption none
On 11/24/2011 09:12 PM, Wolfgang Schuster wrote: This was always possible: \placefigure[here,none]{}{…} Wolfgang OK, I see, now it's only the combination of these two keywords that gets rid of the caption. Conscious decision or side effect? Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] caption none
On 24-11-2011 22:03, Thomas A. Schmitz wrote: On 11/24/2011 09:12 PM, Wolfgang Schuster wrote: This was always possible: \placefigure[here,none]{}{…} Wolfgang OK, I see, now it's only the combination of these two keywords that gets rid of the caption. Conscious decision or side effect? the first key is the location 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] images and linenumbering
Hi all, I posted this bug some time ago, but it still seems there. The combination between linenumbering and images isn't working. I use mkiv with the latest beta. Look at this short example: -- \setuplayout[width=120mm] \setuppagenumbering[alternative=doublesided] \setuplinenumbering[location=outer,method=page] \starttext \placefigure[left,4*hang,none]{} {\externalfigure[cow][width=0.2\textwidth]} \startlinenumbering \input tufte \stoplinenumbering \placefigure[right,2*hang,none]{} {\externalfigure[cow][width=0.2\textwidth]} \startlinenumbering[continue] \input tufte \stoplinenumbering \stoptext -- Is there any workaround to this? Best regards, 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 ___
[NTG-context] margin notes
It seems that margin notes when called from inside \startcombination..\stopcombination do not reach the margin of the paper. Instead they use a margin inside the combination. Is that as intended or unavoidable? It was my objective to have them at the edge of the paper. See minimal example below. % Testing margin notes from inside combinations. % Margin notes do not leave the combinations box. \setuppapersize[A6][A6] \starttext \setupcombinations[location=middle] test\crlf \startcombination[2*1] {abcdefg\inright{m1}}{l1} {abcdefg\inright{m2}}{l2} \stopcombination \crlf \stoptext combinations.pdf Description: combinations.pdf ___ 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] margin notes
On 11-10-2011 10:03, Meer, H. van der wrote: It seems that margin notes when called from inside \startcombination..\stopcombination do not reach the margin of the paper. Instead they use a margin inside the combination. Is that as intended or unavoidable? It was my objective to have them at the edge of the paper. See minimal example below. % Testing margin notes from inside combinations. % Margin notes do not leave the combinations box. \setuppapersize[A6][A6] \starttext \setupcombinations[location=middle] test\crlf \startcombination[2*1] {abcdefg\inright{m1}}{l1} {abcdefg\inright{m2}}{l2} \stopcombination \crlf \stoptext quite tricky, such notes in an alignment the next beta will have an experimental fix \startlinecorrection \startcombination[2*2] {abcdefg\inleft[scope=global,stack=yes]{TEST 7}hijklm} {test 7} {abcdefg\inleft[scope=global,stack=yes]{TEST 8}hijklm} {test 8} \stopcombination \stoplinecorrection seems to work 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] margin notes from inside combination
It seems that margin notes when called from inside \startcombination..\stopcombination do not reach the margin of the paper. Instead they use a margin inside the combination. Is that as intended or unavoidable? It was my objective to have them at the edge of the paper. See minimal example below. % Testing margin notes from inside combinations. % Margin notes do not leave the combinations box. \setuppapersize[A6][A6] \starttext \setupcombinations[location=middle] test\crlf \startcombination[2*1] {abcdefg\inright{m1}}{l1} {abcdefg\inright{m2}}{l2} \stopcombination \crlf \stoptext combinations.pdf Description: combinations.pdf ___ 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] Verbatim in framed text
-- Forwarded message -- From: Wolfgang Schuster schuster.wolfg...@googlemail.com To: mailing list for ConTeXt users ntg-context@ntg.nl Date: Wed, 21 Sep 2011 13:09:42 +0200 Subject: Re: [NTG-context] Verbatim in framed text Am 20.09.2011 um 17:50 schrieb Felix Ingram: Some of my verbatim lines are overflowing the framed text box I'm putting them in. I see that I could define a pretty printer to handle this but I came up with the following: \starttext \startframedtext[middle][width=.8\textwidth] \startframedtext[left][frame=off, width=.6\textwidth] \starttyping import x from x import y for z in b: print dfdg Some text Some text Some text Some text Some really long text Some really long text Some really long text Some really long text Some really longtextSomereallylong text Some really long text Some really long text Some really long text Some really long text Some really long text \stoptyping \stopframedtext \stopframedtext \stoptext This works but seems like cheating. Is there a better third way I could try, or could someone point to a mkiv pretty printer example I could study? Change the alignment of the verbatim text with “\setuptyping[align=flushleft]”. This has helped unless I have some particularly long words towards the right of the frame. I will use a combination of flushleft plus some pre-processing. Thanks for the help, Felix ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Verbatim in framed text
Am 22.09.2011 um 12:54 schrieb Felix Ingram: -- Forwarded message -- From: Wolfgang Schuster schuster.wolfg...@googlemail.com To: mailing list for ConTeXt users ntg-context@ntg.nl Date: Wed, 21 Sep 2011 13:09:42 +0200 Subject: Re: [NTG-context] Verbatim in framed text Am 20.09.2011 um 17:50 schrieb Felix Ingram: Some of my verbatim lines are overflowing the framed text box I'm putting them in. I see that I could define a pretty printer to handle this but I came up with the following: \starttext \startframedtext[middle][width=.8\textwidth] \startframedtext[left][frame=off, width=.6\textwidth] \starttyping import x from x import y for z in b: print dfdg Some text Some text Some text Some text Some really long text Some really long text Some really long text Some really long text Some really longtextSomereallylong text Some really long text Some really long text Some really long text Some really long text Some really long text \stoptyping \stopframedtext \stopframedtext \stoptext This works but seems like cheating. Is there a better third way I could try, or could someone point to a mkiv pretty printer example I could study? Change the alignment of the verbatim text with “\setuptyping[align=flushleft]”. This has helped unless I have some particularly long words towards the right of the frame. I will use a combination of flushleft plus some pre-processing. You can use “align={flushleft,broad}” which get sometimes better result with ragged text. 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] Latest betas break tikz matrix
2011/2/23 Mathieu Boespflug 0xbadc...@gmail.com Hi all, just as a followup and for the mailing list archives, the solution is to use both Aditya's suggestion to turn on \donknuthmode, as well replacing the signs with their interpretations, namely \pgfmatrixnextcell. Thank you Aditya for the suggestion. Regards, Mathieu umm, i can’t seem to get it to work. i use the mkiv minimals… no combination of \donknuthmode, \nonknuthmode, \pgfmatrixnextcell and “replace ampersand=foo”, that i tried, seems to work. can anyone give me a minimal example of a working tikz matrix in a context document? (preferrably something that prevents me from littering everything with “\pgfmatrixnextcell”) thanks, philipp ___ 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] Latest betas break tikz matrix
On Sun, 11 Sep 2011, Philipp A. wrote: 2011/2/23 Mathieu Boespflug 0xbadc...@gmail.com Hi all, just as a followup and for the mailing list archives, the solution is to use both Aditya's suggestion to turn on \donknuthmode, as well replacing the signs with their interpretations, namely \pgfmatrixnextcell. Thank you Aditya for the suggestion. Regards, Mathieu umm, i can’t seem to get it to work. i use the mkiv minimals… no combination of \donknuthmode, \nonknuthmode, \pgfmatrixnextcell and “replace ampersand=foo”, that i tried, seems to work. can anyone give me a minimal example of a working tikz matrix in a context document? (preferrably something that prevents me from littering everything with “\pgfmatrixnextcell”) One way around this is to re-read part of tikz module code under the right catcode regime (ideally this should be done by t-tikz). I still cannot get to work, but using \ is a reasonable shortcut. Here is a working example: \usemodule[t-tikz] \usetikzlibrary{matrix} \unprotect \ReadFile{pgfmodulematrix.code.tex} \protect \starttext \tikzstyle{description}=[fill=white,inner sep=2pt] \starttikzpicture \matrix(m)[matrix of math nodes, row sep=3em, column sep=3em, ampersand replacement=\,%% AM: Added this. text height=1.5ex, text depth=0.25ex] {x \ y\\ z \ u\\}; \path[-] (m-1-1) edge node[description] {$*$} (m-1-2) edge node[description] {$*$} (m-2-1) (m-1-2) edge[dashed] node[description] {$*$} (m-2-2) (m-2-1) edge[dashed] node[description] {$*$} (m-2-2); \stoptikzpicture \stoptext 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] Latest betas break tikz matrix
On Sun, 11 Sep 2011, Aditya Mahajan wrote: On Sun, 11 Sep 2011, Philipp A. wrote: 2011/2/23 Mathieu Boespflug 0xbadc...@gmail.com Hi all, just as a followup and for the mailing list archives, the solution is to use both Aditya's suggestion to turn on \donknuthmode, as well replacing the signs with their interpretations, namely \pgfmatrixnextcell. Thank you Aditya for the suggestion. Regards, Mathieu umm, i can’t seem to get it to work. i use the mkiv minimals… no combination of \donknuthmode, \nonknuthmode, \pgfmatrixnextcell and “replace ampersand=foo”, that i tried, seems to work. can anyone give me a minimal example of a working tikz matrix in a context document? (preferrably something that prevents me from littering everything with “\pgfmatrixnextcell”) One way around this is to re-read part of tikz module code under the right catcode regime (ideally this should be done by t-tikz). I still cannot get to work, but using \ is a reasonable shortcut. Here is a working example: \usemodule[t-tikz] \usetikzlibrary{matrix} \unprotect \ReadFile{pgfmodulematrix.code.tex} \protect A slightly more robust solution is to load the attached module instead of t-tikz. (It also patches \usetikzlibrary). However, I cannot figure out what is the expected catcode of inside a tikz \matrix. So, you will still need to use amserand replacement=\. Note that this sets the catcode of ! to other (as expected by tikz). In the past, circuittikz has some troubles with the catcode of !. Aditya t-tikzcontext.tex Description: TeX 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] TikZ: \@flushglue undefined
i don’t know if it’s a TikZ or a ConTeXt bug, but with the newest mkiv beta installed with mtx-update.lua, tikz fails when using the option “text badly centered” in combination with “text width”: \usemodule[tikz] \starttext \tikz\node[text badly centered, text width=1cm]{fail}; \stoptext gives: \tikz@text@action ...p =0pt\rightskip \@flushglue \leftskip \@flushglue \relax ... as it doesn’t occur with LaTeX, i think it might be a ConteXt bug. ___ 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] TikZ: \@flushglue undefined
Am 04.09.2011 um 15:11 schrieb Philipp A.: i don’t know if it’s a TikZ or a ConTeXt bug, but with the newest mkiv beta installed with mtx-update.lua, tikz fails when using the option “text badly centered” in combination with “text width”: \usemodule[tikz] \starttext \tikz\node[text badly centered, text width=1cm]{fail}; \stoptext gives: \tikz@text@action ...p =0pt\rightskip \@flushglue \leftskip \@flushglue \relax ... as it doesn’t occur with LaTeX, i think it might be a ConteXt bug. No, it’s a TikZ bug. The macro \@flushglue which is used by TikZ is defined in the LaTeX kernel but not in ConTeXt and as TikZ is format independent it has to ensure that the command exists. 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] TikZ: \@flushglue undefined
On Sun, Sep 4, 2011 at 15:37, Wolfgang Schuster wrote: Am 04.09.2011 um 15:11 schrieb Philipp A.: i don’t know if it’s a TikZ or a ConTeXt bug, but with the newest mkiv beta installed with mtx-update.lua, tikz fails when using the option “text badly centered” in combination with “text width”: \usemodule[tikz] \starttext \tikz\node[text badly centered, text width=1cm]{fail}; \stoptext gives: \tikz@text@action ...p =0pt\rightskip \@flushglue \leftskip \@flushglue \relax ... as it doesn’t occur with LaTeX, i think it might be a ConteXt bug. No, it’s a TikZ bug. The macro \@flushglue which is used by TikZ is defined in the LaTeX kernel but not in ConTeXt and as TikZ is format independent it has to ensure that the command exists. However ... given the current development status of TikZ, there is a considerably higher chance to get it fixed if somebody from ConTeXt community writes a patch (and then somebody else keeps sending reminders to developers, kindly asking them the patch the version in CVS + kindly asking Karl Berry to permit a fix in TeX Live's SVN). So: I can write to developers, but it won't hurt if somebody here finds a fix. (I can fix minimals if needed.) 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] Embedding of ICC profiles and preflight
Am 01.09.2011 20:42, schrieb Honza Hejzl: Thanks, Just a notice – the style \startoverprint… should be probably in future versions too, or how to overprint two elements and how to knockout the next one? Is it possible? (In one file could be a lot of such cases needed.) You never know and as Wolfgang stated, it's best (and wise) to use the latest official commands. \startcolorintent[overprint] Overprinted text \stopcolorintent \startcolorintent[knockout] Knockout text \stopcolorintent The commands can also be nested. \startcolorintent[overprint] OVERPRINT ONE TWO \startcolorintent[knockout] KNOCKOUT THREE \stopcolorintent OVERPRINT FOUR \stopcolorintent In case of \setupcolors[intent=overprint] is the problem in the fact that preflight says that all text is gray object overprinted and that is against the standards. I have simply one test page with one article of black text. Everything goes fine except the fact of non-embedded profile and the fact that text is considered like a gray scale object. The (stupid) preflight has problems with overprinting in combination with grayscale. You could try to use CMYK (black) then. Something like \definecolor[cmykblack][k=1] \setupcolors[textcolor=cmykblack] In case you could try to generate one pdf with such settings I could test them in Acrobat. Honza Hejzl ___ 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] Side-by-Side tables
On Wed, 24 Aug 2011, Troy Henderson wrote: have you tried the 'inbetween' or 'distance' parameter from \setupcombinations? Well what I would like would be for the following to work \setupcombinations[before={\hfill},inbetween={\hfill},after={\hfill}] but it doesn't do what I would like for it to do. before and after go on the top and the bottom of the combination block, inbetween goes between the figure/table and the caption. One possibility to simplify measurement is to abuse figurecollections (Please wikify). \startbuffer[table:1] \startTABLE \NC A \NC B \NC C \NC D \NC \NR \NC A \NC B \NC C \NC D \NC \NR \NC A \NC B \NC C \NC D \NC \NR \NC A \NC B \NC C \NC D \NC \NR \stopTABLE \stopbuffer \startbuffer[table:2] \startTABLE \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR \stopTABLE \stopbuffer % Ideally, we should be able to place the figure definitions inside the % \startexternalfigurecollection, but that macro starts a group, so the % figure definitions inside are lost. \useexternalfigure[one][table:1][method=buffer] \useexternalfigure[two][table:2][method=buffer] \startexternalfigurecollection[tables] \useexternalfigure[dummy][one] \useexternalfigure[dummy][two] \stopexternalfigurecollection \definemeasure [sidebyside] [\the\dimexpr\hsize/2 - \externalfigurecollectionmaxwidth{tables}/2 - \externalfigurecollectionminwidth{tables}/2] \definecombination[sidebyside] [distance=\measure{sidebyside}, location=middle] \starttext \showframe \placetable [here,nonumber]{Side by side tables} \startcombination[sidebyside][2*1] {\externalfigure[one]}{(a)} {\externalfigure[two]}{(b)} \stopcombination \stoptext @Hans: Can we also have totalheight and totalwidth as parameters of figure combinations (is relatively easy to implement)? 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] Optimal way to defining of macros in Luacode in ConTeXt
Hello all. It is GREAT! Thanx Hans and Wolfgang too. It is very instructive and inspiring for me... I was looking for something similar for a long time, but I have not found anything (not even in the CLD-MKIV and others ...). Finally, after yours reply to this email find something in the ctx-man.pdf from 1997 year :-). But I have a few questions and comments on this subject: 1. Is there any possibility to do anything similar with counters, dimensions etc? I trying but without success. For example: context.newcount(mycounter) or context.newcounter(mycounter) context.mycounter=5 etc. or it must be realized by classical way: context('\\newcount\\mycounter') context('\\mycounter=10') context('\\advance\\mycounter by5') context('\\the\\mycounter') similary with \newdimen, \newif etc... 2. Any person interested in using context.setvalue{Mymacro,somevalue) and context([[\def\MyMacro#1{#1}]]) syntaxes I have pointed out that the second syntax only operates when the command is given in a separate LUA file (ie file.lua) (ie not within an environment \startluacode - \stopluacode in classical TEX file!!!). Hans told me once that it is the individual categories of characters (backslash??) (if I remember correctly). First syntax works perfectly in LUA and TeX files too. Here I have a question. Why not comment out this case in TEX file? \startluacode -- context([[\def\macro#1{#1}]]) \stopluacode I get error: ! Undefined control sequence. -- context([[\def \macro #1{#1}]]) \dodostartluacode ...and \directlua \zerocount {#1 }} l.25 \stopluacode ? That category characters again? Comment character -- works differently in TEX file, and otherwise in the LUA file? Ie. comment on the backslash? 3. Wolfgang write about using context command \convertnumber{R}{1400} and the corresponding syntax: context.convertnumber(R,1400) to roman converting. It is great, but I could not figure out how to use in combination with the above syntax (ie use case context.command) or find the appropriate conversion LUA function (I did not use a custom function). Is there any way to do something like that: context([[\def\Macro%s{Macro%s}]],context.convertnumber(R,1400),1400) ??? ie. TEX command is used as a LuaTeX parameter? Thanx Jaroslav Dne 12.7.2011 17:43, Hans Hagen napsal(a): On 12-7-2011 5:30, Jaroslav Hajtmar wrote: But someone advised me that I use the better syntax: context('\\def\\Mymacro\{arg of mymacro\}') or context(\\def\\test#1{#1}) etc... whatever you like best context.setvalue{Mymacro,somevalue) context([[\def\MyMacro#1{#1}]]) Exist other (best or most optimal) way to do? for i = 1, 10 do tex.sprint(tex.ctxcatcodes,'\\def\\macro'..ar2rom(i)..'\{macro '..i..'\}') context('\\def\\Macro'..ar2rom(i)..'\{Macro '..i..'\}') end for i = 1, 10 do context([[\def\Macro%s{Macro%s}]],ar2rom(i),i) end When more than one argument is given, the context command treats the first argument as format template. By using the context command you can see what happens with \enabletrackers[context.trace] 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] Optimal way to defining of macros in Luacode in ConTeXt
On 13-7-2011 10:05, Jaroslav Hajtmar wrote: Hello all. It is GREAT! Thanx Hans and Wolfgang too. It is very instructive and inspiring for me... I was looking for something similar for a long time, but I have not found anything (not even in the CLD-MKIV and others ...). Finally, after yours reply to this email find something in the ctx-man.pdf from 1997 year :-). But I have a few questions and comments on this subject: 1. Is there any possibility to do anything similar with counters, dimensions etc? I trying but without success. For example: context.newcount(mycounter) or context.newcounter(mycounter) context.mycounter=5 etc. As currently we cannot define a counter at the tex end (using countdef) it would introduce too much complexitity to mimmick that now. When you do: context.newcount(name) you should realize that this command is effectuated after the lua call, so if you want a counter also at the tex level you should define it at that end, \newcount\name or it must be realized by classical way: context('\\newcount\\mycounter') context('\\mycounter=10') context('\\advance\\mycounter by5') context('\\the\\mycounter') tex.count.name = 10 tex.count.name = tex.count.name + 5 if you never need the counter at the tex end, you can of course use a lua number instead. similary with \newdimen, \newif etc... at some point we will have helpers for that 2. Any person interested in using context.setvalue{Mymacro,somevalue) and context([[\def\MyMacro#1{#1}]]) syntaxes I have pointed out that the second syntax only operates when the command is given in a separate LUA file (ie file.lua) (ie not within an environment \startluacode - \stopluacode in classical TEX file!!!). Hans told me once that it is the individual categories of characters (backslash??) (if I remember correctly). First syntax works perfectly in LUA and TeX files too. indeed, but if you already have the command and it's defined as unexpandable then you can use the [[ ]] method too Here I have a question. Why not comment out this case in TEX file? \startluacode -- context([[\def\macro#1{#1}]]) \stopluacode I get error: ! Undefined control sequence. -- context([[\def \macro #1{#1}]]) \dodostartluacode ...and \directlua \zerocount {#1 }} l.25 \stopluacode ? That category characters again? Comment character -- works differently in TEX file, and otherwise in the LUA file? Ie. comment on the backslash? indeed 3. Wolfgang write about using context command \convertnumber{R}{1400} and the corresponding syntax: context.convertnumber(R,1400) to roman converting. It is great, but I could not figure out how to use in combination with the above syntax (ie use case context.command) or find the appropriate conversion LUA function (I did not use a custom function). Is there any way to do something like that: context([[\def\Macro%s{Macro%s}]],context.convertnumber(R,1400),1400) ??? ie. TEX command is used as a LuaTeX parameter? context([[\def\Macro%s{Macro%s}]],converters.romannumeral(1400),1400) 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] Optimal way to defining of macros in Luacode in ConTeXt
Great Hans, thanx very much for complete an exhaustive answer.. It very help me to solve my module Regards Jaroslav Dne 13.7.2011 11:55, Hans Hagen napsal(a): On 13-7-2011 10:05, Jaroslav Hajtmar wrote: Hello all. It is GREAT! Thanx Hans and Wolfgang too. It is very instructive and inspiring for me... I was looking for something similar for a long time, but I have not found anything (not even in the CLD-MKIV and others ...). Finally, after yours reply to this email find something in the ctx-man.pdf from 1997 year :-). But I have a few questions and comments on this subject: 1. Is there any possibility to do anything similar with counters, dimensions etc? I trying but without success. For example: context.newcount(mycounter) or context.newcounter(mycounter) context.mycounter=5 etc. As currently we cannot define a counter at the tex end (using countdef) it would introduce too much complexitity to mimmick that now. When you do: context.newcount(name) you should realize that this command is effectuated after the lua call, so if you want a counter also at the tex level you should define it at that end, \newcount\name or it must be realized by classical way: context('\\newcount\\mycounter') context('\\mycounter=10') context('\\advance\\mycounter by5') context('\\the\\mycounter') tex.count.name = 10 tex.count.name = tex.count.name + 5 if you never need the counter at the tex end, you can of course use a lua number instead. similary with \newdimen, \newif etc... at some point we will have helpers for that 2. Any person interested in using context.setvalue{Mymacro,somevalue) and context([[\def\MyMacro#1{#1}]]) syntaxes I have pointed out that the second syntax only operates when the command is given in a separate LUA file (ie file.lua) (ie not within an environment \startluacode - \stopluacode in classical TEX file!!!). Hans told me once that it is the individual categories of characters (backslash??) (if I remember correctly). First syntax works perfectly in LUA and TeX files too. indeed, but if you already have the command and it's defined as unexpandable then you can use the [[ ]] method too Here I have a question. Why not comment out this case in TEX file? \startluacode -- context([[\def\macro#1{#1}]]) \stopluacode I get error: ! Undefined control sequence. -- context([[\def \macro #1{#1}]]) \dodostartluacode ...and \directlua \zerocount {#1 }} l.25 \stopluacode ? That category characters again? Comment character -- works differently in TEX file, and otherwise in the LUA file? Ie. comment on the backslash? indeed 3. Wolfgang write about using context command \convertnumber{R}{1400} and the corresponding syntax: context.convertnumber(R,1400) to roman converting. It is great, but I could not figure out how to use in combination with the above syntax (ie use case context.command) or find the appropriate conversion LUA function (I did not use a custom function). Is there any way to do something like that: context([[\def\Macro%s{Macro%s}]],context.convertnumber(R,1400),1400) ??? ie. TEX command is used as a LuaTeX parameter? context([[\def\Macro%s{Macro%s}]],converters.romannumeral(1400),1400) 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] Bibliography entries not showing up
On Wed 06 Jul 2011, Christian wrote: Also, if anybody thinks mkiv is not ready for productive work, please scream and stop me. But as far as I've heard it has been used to typeset books and theses already, so... yeah. I've been writing my thesis in MkIV and haven't hit any serious problems so far. I use minimals and only update when I need a new feature, since I don't want to risk any unanticipated changes. (I started out on MkII, but was seduced by LuaTeX's combination of microtypography and OTF support.) 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] changing number of columns
Am 05.07.2011 um 17:26 schrieb Bernd Kosubek: Hraban forces the problem in a wrong way. I wish the eliminination of the pagebreak after \stopcolumnset. It is for me not of interest what contents the columns have. I wish the following: text text text flow text text text text xx xx /startcolumnset xx xx xx xx /stopcolumnset text text text flow text text text text and all of that on the same page by using columnset. Is it possible and if true, how is it possible. You’re trying to solve your problem the wrong. You want according to your example two table side by side at the complete width of the page and the natural way to do is this is to insert a float which spans three columns, inside the float you can then place the two tables with a combination (or a table with two columns). 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] changing number of columns
Unfortunately this will not work with columnsets. Those always use a complete page. So after stating \startcolumnset there is always a page break, as is after \stopcolumnset. If you intend to place text before and after the piece where you use two colums then you should think of another solution as mentioned by placing the columnpart in a float with combination. Willi On 5 Jul 2011, at 17:26, Bernd Kosubek wrote: Am Tue, 5 Jul 2011 16:13:14 +0200 schrieb Willi Egger w.eg...@boede.nl: As Hraban mentions it might be best to place the two tables with \placefigure + startcombination .. \stopcombination. If you want to stick to the columnsets and this is for this single page only, then you could place the spanning text in a \framedtext. The placefigure command must be place right after the \startcolumnset command. This you could place with \placefigure like this: \placefigure [btlr] [] {none} {\offset[y=-7cm]{\framedtext[width=\makeupwidth,offset=0pt,frame=off] {Zwar werden ...}}} With the offset you can move the text-box to the position you want it. Willi Hi Willy, Hraban forces the problem in a wrong way. I wish the eliminination of the pagebreak after \stopcolumnset. It is for me not of interest what contents the columns have. I wish the following: text text text flow text text text text xx xx /startcolumnset xx xx xx xx /stopcolumnset text text text flow text text text text and all of that on the same page by using columnset. Is it possible and if true, how is it possible. Bernd ___ 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] changing number of columns
Am Tue, 5 Jul 2011 17:52:11 +0200 schrieb Willi Egger w.eg...@boede.nl: Unfortunately this will not work with columnsets. Those always use a complete page. So after stating \startcolumnset there is always a page break, as is after \stopcolumnset. If you intend to place text before and after the piece where you use two colums then you should think of another solution as mentioned by placing the columnpart in a float with combination. Thank you Willy, this is a clear statement. So now I can plan my future jobs with columnset a little bit better. Bernd signature.asc Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] dejavu math fallback?
On 16-6-2011 3:47, Reviczky, Adam wrote: Hi Using math with dejavu as the bodyfont produces: ! Math error: parameter \Umathquad\displaystyle is not set. minimal example: --- \setupbodyfont[dejavu] \starttext $e = mc^2$ \stoptext --- Installing the xits-math (https://github.com/khaledhosny/xits-math/) solves the problem. Shouldn't there be a fallback to lmmath or similar? xits is part of the minimals \setupbodyfont[dejavu] will load the predefined dejavu rm/ss/tt/mm combination and one can define another one if needed (just copy the 6 lines and replace the mm one) making a complex fallback mechanism is not worth the trouble 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] /usr/bin/luatools:2329: bad argument #1 to '(for generator)' (directory metatable expected, got nil)
On 14-6-2011 8:57, Aditya Mahajan wrote: On Tue, 14 Jun 2011, Hans Hagen wrote: On 14-6-2011 6:48, Stappers wrote: Hello, While doing context foo I do get LuaTools | merging library /usr/share/texmf/tex/context/base/data-ctx.lua LuaTools | merging library /usr/share/texmf/tex/context/base/luat-fio.lua LuaTools | merging library /usr/share/texmf/tex/context/base/luat-cnf.lua LuaTools | saving merge from cont-en.lua LuaTools | using compiled initialization file: cont-en.luc LuaTools | using lua initialization file: cont-en.luc /usr/bin/luatools:2329: bad argument #1 to '(for generator)' (directory metatable expected, got nil) What should I do to get beyond that error message? I'm using Debian on an AMD64, context package is version 2009.11.26-2 way too old .. luatex as well as context moved on (and luatools in no longer used) FWIW, I get the same error message on my TL2010 installation. $luatex --version This is LuaTeX, Version beta-0.67.0-2011042320 (rev 4192) $context --version MTXrun | main context file: /usr/share/texmf-dist/tex/context/base/context.tex MTXrun | current version: 2010.05.24 13:05 $context --make MTXrun | running command: luatools --make --compile cont-en . LuaTools | using compiled initialization file: cont-en.luc LuaTools | using lua initialization file: cont-en.luc /usr/bin/luatools:2734: bad argument #1 to '(for generator)' (directory metatable expected, got nil) I am pretty sure that ConTeXt in TL2010 was working at some stage and failed after I updated. I normally just use the minimals, so I never bothered to dig into this. There has been a change in the lua lfs functions dealing with dir scanning and although the context lua code has been adapted to this, it might not be the case in all distributions. So, it's an unlucky combination of older / newer code. 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] teletype style in type-win.mkiv
Am 02.06.2011 um 22:56 schrieb Pontus Lurcock: On Thu 02 Jun 2011, Richard Stephens wrote: \setupbodyfont[helvetica, 10pt] which is indistinguishable from Arial for 99% of the population, and it has the advantage that all the styles are already defined, including \tt. Anyone who can distinguish Helvetica from Arial is likely to have sufficient taste to realize that Helvetica is superior ;-). But you can have somebody how takes a look at the font list in Adobe Reader and complains that you don’t use Arial. ConTeXt has predefined typescripts for Times New Roman, Arial and Courier but they don’t work on each system (e.g. the fonts use different filenames on the Mac). The simplefonts module makes things a little bit easier because it tries a few combinations to find the files but it still depends on the filename. \usemodule[simplefonts] \setmainfont[Arial] \setmonofont[Courier New] \starttext This Arial in combination with {\tt Courier New}. \stoptext The spec-system is another system to make font loading easier but the quality of the result depends on the font information which are sometimes a mess. \definetypeface[mainface][ss][specsans][Arial] \definetypeface[mainface][tt][specmono][Courier New] \setupbodyfont[mainface] \starttext This Arial in combination with {\tt Courier New}. \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Parsing CFF DICT failed
It seems to be syntex/luatex related. Here's a minimal example using the sample.bib from the wiki (http://wiki.contextgarden.net/sample_bib): %%% \enabledirectives[system.synctex] \setupbibtex[database={sample},sort=author] \starttext \chapter{Bibliography} \completepublications[criterium=text] \stoptext %%% error: !LuaTeX error (file /usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf): Parsing CFF DICT failed. (error=-1) == Fatal error occurred, no output PDF file produced! note: * criterium=all works, obviously I have cite's in my document, but that shouldn't matter * commenting out the synctex line also makes it work again * somehow the problem is in combination with a title element (part, chapter, etc.), because without it it works again as well More verbose log attached. Adam (test.tex ConTeXt ver: 2011.05.14 16:34 MKIV fmt: 2011.5.14 int: english/english system cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system test.top loaded system options begin of optionfile system options system options % runtime options files (command line driven) system options \unprotect system options % feedback and basic job control system options % handy for special styles system options \startluacode system options document = document or { } system options document.arguments={ system options } system options document.files={ system options test.tex, system options } system options \stopluacode system options % process info system options \setupsystem[inputfile=test.tex] system options \setupsystem[\c!n=1,\c!m=1] system options % modes system options % options (not that important) system options \startsetups *runtime:options system options \stopsetups system options % styles and modules system options \startsetups *runtime:modules system options \stopsetups system options % done system options \protect \endinput system options system options end of optionfile (test.top) fontslatin modern fonts are not preloaded languageslanguage en is active system synctex functionality is enabled! publications wrote a new auxiliary file \jobname.aux {/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded system begin file test.tex at line 4 structuresectioning chapter @ level 2 : 0.1 - Bibliography backend xmp using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 structuresectioning chapter @ level 2 : 0.2 - \headtext {pubs} publications loading database from test.bbl (test.bbl) pagesflushing realpage 2, userpage 2 system end file test.tex at line 7 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf !LuaTeX error (file /usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf): Parsing CFF DICT failed. (error=-1) == Fatal error occurred, no output PDF file produced! ___ 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] Plea for unicode help
On 05/05/2011 01:32 PM, Oliver Buerschaper wrote: Has anyone seen this before? I wanted to ask up front before I really start digging into the issue… I might have missed something obvious. Check the hexdump of the file. Chances are that one of them has í directly, and one a combination of dotlessiacuteaccent. 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] Plea for unicode help
Has anyone seen this before? I wanted to ask up front before I really start digging into the issue… I might have missed something obvious. Check the hexdump of the file. Chances are that one of them has í directly, and one a combination of dotlessiacuteaccent. Awesome hint… hits the nail on the head! The faulty version (i.e. the one not appearing in the PDF with Minion Pro) is dotlessiacuteaccent (where acuteaccent appears to translate to CC81 in hex, correct?). I guess I need to find and replace the accent combination by the direct slot? Can something similar happen for other foreign characters (like ß, umlauts, ae, etc.) or is this sort of error only possible with accents? Oliver ___ 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] Plea for unicode help
On 05/05/2011 03:52 PM, Oliver Buerschaper wrote: Has anyone seen this before? I wanted to ask up front before I really start digging into the issue… I might have missed something obvious. Check the hexdump of the file. Chances are that one of them has í directly, and one a combination ofdotlessiacuteaccent. Awesome hint… hits the nail on the head! The faulty version (i.e. the one not appearing in the PDF with Minion Pro) isdotlessiacuteaccent (whereacuteaccent appears to translate to CC81 in hex, correct?). Yes. Useful site for find out stuff like that without having to do utf-8 calculations yourself: http://www.decodeunicode.org/en/u+0301/properties At the top right, it has numerical values for the current character in various encodings. I guess I need to find and replace the accent combination by the direct slot? That would be wise for now, but I think context should be able to trap this automatically (at least in the mode=node case). Can something similar happen for other foreign characters (like ß, umlauts, ae, etc.) or is this sort of error only possible with accents? IIRC, in principle it can happen with some other characters as well, but I do not think that happens often. It is mostly combining accents. 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] Plea for unicode help
Awesome hint… hits the nail on the head! The faulty version (i.e. the one not appearing in the PDF with Minion Pro) isdotlessiacuteaccent (whereacuteaccent appears to translate to CC81 in hex, correct?). Yes. Useful site for find out stuff like that without having to do utf-8 calculations yourself: http://www.decodeunicode.org/en/u+0301/properties At the top right, it has numerical values for the current character in various encodings. This page looks great. Jotted down for later reading ;-) I guess I need to find and replace the accent combination by the direct slot? That would be wise for now, but I think context should be able to trap this automatically (at least in the mode=node case). Sounds reasonable. By the way, is the direct encoding generally preferred over the combination method (say, by good Unicode practice ;-)? If yes, I certainly wouldn't mind a little warning message if I happen to use the other variant… Can something similar happen for other foreign characters (like ß, umlauts, ae, etc.) or is this sort of error only possible with accents? IIRC, in principle it can happen with some other characters as well, but I do not think that happens often. It is mostly combining accents. I see. So umlauts are good candidates to check, too. Thanks again, Oliver ___ 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] OCProperties (mkiv)
Hi Hans, using the 'Report PDF syntax issues'-preflight in Acrobat9 gives a warning about an 'Unexpected value for this key'. I used 'pdf-x4p.mkiv' from /texmf-context/tex/context/test/ as test file. Probably just a warning about a redundancy (see 'PDF Reference, version 1.7.pdf', p376), setting 'BaseState /ON' in combination with '/ON [ whatever] /OFF [whatever]'. Removing 'BaseState /ON' results in a flawless PDF. Regards, 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 ___
Re: [NTG-context] OCProperties (mkiv)
Am 01.05.2011 13:14, schrieb Peter Rolf: Hi Hans, using the 'Report PDF syntax issues'-preflight in Acrobat9 gives a warning about an 'Unexpected value for this key'. I used 'pdf-x4p.mkiv' from /texmf-context/tex/context/test/ as test file. Probably just a warning about a redundancy (see 'PDF Reference, version 1.7.pdf', p376), setting 'BaseState /ON' in combination with '/ON [ whatever] /OFF [whatever]'. Removing 'BaseState /ON' results in a flawless PDF. ... but results in a 'Optional content configuration dictionary has no BaseState entry' when preflighting PDF/X-4p. Maybe setting 'BaseState' to 'Unchanged' would be an option here, but the note in the reference says: If BaseState is present in the document's default configuration dictionary, its value must be ON. What a mess! I think it's better to ignore the preflight warning about BaseState... Regards, 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 ___ ___ 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] OCProperties (mkiv)
Am 01.05.2011 13:43, schrieb Peter Rolf: Am 01.05.2011 13:14, schrieb Peter Rolf: Hi Hans, using the 'Report PDF syntax issues'-preflight in Acrobat9 gives a warning about an 'Unexpected value for this key'. I used 'pdf-x4p.mkiv' from /texmf-context/tex/context/test/ as test file. Probably just a warning about a redundancy (see 'PDF Reference, version 1.7.pdf', p376), setting 'BaseState /ON' in combination with '/ON [ whatever] /OFF [whatever]'. Removing 'BaseState /ON' results in a flawless PDF. ... but results in a 'Optional content configuration dictionary has no BaseState entry' when preflighting PDF/X-4p. Maybe setting 'BaseState' to 'Unchanged' would be an option here, but the note in the reference says: If BaseState is present in the document's default configuration dictionary, its value must be ON. What a mess! I think it's better to ignore the preflight warning about BaseState... I was stubborn and found the culprit. The value simply has to be '\ON' and not '\On'. That's all. [lpdf-ren.lua] local function flushtextlayers() if viewerlayers.supported then if pagelayers then pdfflushobject(pagelayersreference,pagelayers) end for i=1,#cache do local ci = cache[i] pdfflushobject(ci[1],ci[2]) end if textlayers and #textlayers 0 then -- we can group them if needed, like: layout local d = pdfdictionary { OCGs = textlayers, D= pdfdictionary { Name = Document, Order = (viewerlayers.hasorder and textlayers) or nil, ON= videlayers, OFF = hidelayers, BaseState = pdfconstant(ON), }, } lpdf.addtocatalog(OCProperties,d) textlayers = nil end end end Regards, 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 ___ ___ 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] Pull quotes
On Wed, Apr 27, 2011 at 15:08, Pontus Lurcock p...@talvi.net wrote: Why not just put it in a float? OK, after some fiddling around, a combination of a framed text in a float seems to work. Definitions: \definefloat[pullquote][pullquotes] % Define a new type of float \setupcaption[pullquote][location=none] % Set it to have no captions \defineframedtext[pullquote][frame=off] % Define a new type of framed text with no visible frame Usage: \placepullquote[right]{}{ \startpullquote[width=4cm] \tfc “All work and no play makes Jack a dull boy.” \stoppullquote} The {} in the \placepullquote is the text for the caption, which in this case is set up to be invisible. Obviously you could use the caption feature to cite the source of quotations. Added to the wiki. mathew -- URL:http://www.pobox.com/~meta/ ___ 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] Pull quotes
Am 28.04.2011 um 18:27 schrieb mathew: On Wed, Apr 27, 2011 at 15:08, Pontus Lurcock p...@talvi.net wrote: Why not just put it in a float? OK, after some fiddling around, a combination of a framed text in a float seems to work. Definitions: \definefloat[pullquote][pullquotes] % Define a new type of float \setupcaption[pullquote][location=none] % Set it to have no captions \defineframedtext[pullquote][frame=off] % Define a new type of framed text with no visible frame Usage: \placepullquote[right]{}{ \startpullquote[width=4cm] \tfc “All work and no play makes Jack a dull boy.” \stoppullquote} The {} in the \placepullquote is the text for the caption, which in this case is set up to be invisible. Obviously you could use the caption feature to cite the source of quotations. As do now know what you want here is a solution from me (MkIV only): \usemodule[annotation] \define[2]\PullquoteCommand {\placefigure[\annotationparameter{location},none]{}% {\framedtext [frame=off, width=\annotationparameter{width}, style=\annotationparameter{style}] % {“#2”}}} {\setupinterlinespace“#2”\par}}} \defineannotation [pullquote] [alternative=command, command=\PullquoteCommand, location=right, width=fit, style=\tfc] \starttext \startpullquote[width=4cm] All work and no play makes Jack a dull boy. \stoppullquote \input knuth \blank \startpullquote[width=4cm,location=left] All work and no play makes Jack a dull boy. \stoppullquote \input knuth \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context and metapost: using \frac
On 26-4-2011 5:17, Matthieu Stigler wrote: MTXrun | current version: 2009.11.26 16:2 that's rather old for a luatex/context combination on the wiki you can find how to install minimals (takes a few minutes only, no compilation needed) 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] Margin text in doublesided documents
Aha! It's this combination that makes it work: \setupmargindata[inmargin][location=outer,align=inner] % align=inner has no effect here?! \setupmarginframed[inmargin][align=inner] % but when I add this it works and aligns to the body text Thanks for your help, I'm all set now. -Ursprüngliche Nachricht- Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com] Gesendet: Dienstag, 5. April 2011 19:00 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Margin text in doublesided documents Am 05.04.2011 um 18:56 schrieb C.: What version(s)? mtx-context | current version: 2011.04.03 22:32 and mtx-context | current version: 2011.04.05 16:47 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] Position of MetaPost graphics
Am 01.04.2011 11:39, schrieb Tim Steenvoorden: Dear list, I'm trying to make some fancy chapter headers. With MetaPost I drew a wave, which I'd like to place in the margin. I've read details.pdf and metafun.pdf, but I don't manage to get the positioning right. The wave should begin where the bottomframe ends and move on to the page border. Also, the graphic is placed in the page background layer, but nevertheless the text after the the graphic is shifted down. \startuniqueMPgraphic{wave} numeric periods, width; path wave; periods := 3 + 1/4; width := periods * 2*pi; wave:= origin for x=0 step 0.1 until width: -- (x,x*sin(x)) endfor; pickup pencircle scaled 1pt; draw wave xscaled (OverlayWidth/width) yscaled (OverlayHeight/(2*width)); \stopuniqueMPgraphic \definelayer[decorations][position=yes,option=test,location=r] \setupbackgrounds[page][background=decorations] \defineoverlay[wave][\uniqueMPgraphic{wave}] \starttext {\ss\bfc A chapter title} \blank[small] \framed[frame=off,bottomframe=on,width=broad,rulethickness=1pt] {\ss\bfx \date \hfill Author Name} \setlayer[decorations]{\framed[background=wave,frame=off,width=\cutspace,height=2\lineheight]{}} \input knuth \stoptext What am I doing wrong? Is it a better idea to draw the bottomframe in MetaPost too? How do I take care of positioning in that case? Absolute positioning is not an option, because the length of the chapterheads can be two lines. It should also work on other paper sizes (A5 in particular). Don't ask me. I have no experience with layers in combination with 'position=yes'. Anyhow, IMO it's much easier to draw all in one graphic than try to attach the MP graphic with the frame(d) border. Also: I have no idea how to do it :-) I attached a working example, but it's more a starting point than a final solution. Best wishes, Peter Kind regards, Tim Steenvoorden ___ 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 ___ %\setuppapersize[A5][A5] \startuniqueMPgraphic{wave}{wl} numeric periods, width; path wave; periods := 3 + 1/4; width := periods * 2*pi; wl := \MPvar{wl}; ll := OverlayWidth-wl; wave:= (origin for x=0 step 0.1 until width: .. (x,x*sin(x)) endfor) xscaled -1; % mirror (no shift correction needed) pickup pencircle scaled 1pt; draw reverse(wave xscaled (wl/width) yscaled (OverlayHeight/2width))--(ll,0); \stopuniqueMPgraphic \definelayer[decorations][position=yes,option=test,location=r,dx=-\cutspace] \setupbackgrounds[page][background=decorations] \defineoverlay[wave][\uniqueMPgraphic{wave}{wl=\cutspace}] \starttext \showframe[text] {\ss\bfc A chapter title} \blank[small] \framed[frame=off,width=broad] {\ss\bfx \date \hfill Author Name}% \setlayer[decorations]{\framed[background=wave,frame=off,width=\dimexpr\cutspace+\makeupwidth,height=2\lineheight,offset=overlay]{}} \input knuth \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] ... and emoticons
2011/3/20 Philipp A. flying-sh...@web.de On modern Linux distributions, there is support for the ellipsis (…) on the keyboard layout; The combination is [AltGr+.] Not all. In openSUSE that is not the case. I made it for myself. I have a file /SharedFunctions/Xmodmap.extra which I use with: xmodmap /SharedFunctions/Xmodmap.extra In this I have now: keysym period= period greater ellipsis That does the trick. If you are interested in the complete file: I have it attached. -- Cecil Westerhof Xmodmap.extra Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ... and emoticons
2011/3/21 Cecil Westerhof cldwester...@gmail.com 2011/3/20 Philipp A. flying-sh...@web.de On modern Linux distributions, there is support for the ellipsis (…) on the keyboard layout; The combination is [AltGr+.] Not all. In openSUSE that is not the case. I made it for myself. I have a file /SharedFunctions/Xmodmap.extra which I use with: xmodmap /SharedFunctions/Xmodmap.extra In this I have now: keysym period= period greater ellipsis That does the trick. If you are interested in the complete file: I have it attached. -- Cecil Westerhof oh, i guess you’d like to file a bug request for this. it’s quite useful and has no drawbacks at all. i think one of the greatest reasons why linux isn’t adapted as desktop os is that you can’t just say sth. like i did and assume it it right for everyone. (missing OEM installs are the biggest reason, though) but i don’t want to discuss this here ;) it’s great to have both a reasonable keyboard layout and a text processor which can understand the symbols. i hope one day i’ll get to print my own keyboard with math symbols all over. it would greatly improve the readability of context files when they contain unicode math stuff like \startformula ∫₀³ xⁿφ₁₂(x) \, ⅆx \stopformula ___ 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] ... and emoticons
On Mon 21 Mar 2011, Philipp A. wrote: oh, i guess you’d like to file a bug request for this. it’s quite useful and has no drawbacks at all. Well, the drawback is that it takes up a key combination :-). For example, in the US-international dead-key layout, AltGr+. applies an overdot diacritic to the next character, so remapping it to an ellipsis would remove that capability. You don't mention which keyboard layout you are using. i think one of the greatest reasons why linux isn’t adapted as desktop os is that you can’t just say sth. like i did and assume it it right for everyone. Both Linux and Windows offer a choice of hundreds of keyboard layouts, since different languages have different character sets (a US keymap would not gain much success in Greece). i hope one day i’ll get to print my own keyboard with math symbols all over. I did once turn a UK keyboard into a Swedish keyboard using white enamel paint, black marker pen, clear varnish, and a steady hand. The main problem was that the varnish started degrading after a couple of years' daily use. As an Emacs user, I've found that the easiest way to get rarely used Unicode symbols is to hit ctrl-x, 8, enter and type the name of the symbol (I believe the numbers also work but I have trouble remembering them). Also note that it's possible to switch between different keyboard layouts using a hotkey combination, which is handy e.g. for quickly entering Greek characters in a scientific document. 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] ... and emoticons
On modern Linux distributions, there is support for the ellipsis (…) on the keyboard layout; The combination is [AltGr+.] On Windows, there is at least Microsoft KLChttp://www.microsoft.com/downloads/details.aspx?familyid=fb7b3dcd-d4c1-4943-9c74-d8df57ef19d7. While the possibilities are inferior, simple key combinations like the one above are easily achieved. Is someone interested in a german standard layout with some additional symbols? (×÷…·—–„“”‚‘’ẞ‽‰) ___ 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] ... and emoticons
Am 20.03.2011 um 14:51 schrieb Philipp A.: On modern Linux distributions, there is support for the ellipsis (…) on the keyboard layout; The combination is [AltGr+.] On Windows, there is at least Microsoft KLC. While the possibilities are inferior, simple key combinations like the one above are easily achieved. The is a difference in spacing between … and \unknown. \starttext Once uppon a time … Once uppon a time \unknown \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] +tlig fails sometimes in mkiv
On 5-3-2011 5:24, Ulrike Fischer wrote: On c.t.t. there was a discussion about the TeX-ligatures -- and --- for endash and emdash. It seems that the luaotfload/context code fails for some font/mode combination: For some fonts +tlig works with both modes, some works only with mode=base, and there was also a report of font which doesn't work at all (Frutiger LT 55 Roman). E.g. on my PC +tlig works for Arial (c:/windows/fonts/Arial.ttf) tested with a current context minimals only with mode=base. \font\test=Arial:mode=node;+tlig \font\testb=Arial:mode=base;+tlig \starttext \test -- --- abc %fails \testb -- --- abc %works \stoptext \bye this is a side effect of there being two hyphens, think of: \char 45\char 45 \char173\char173 \char173\char 45 \char 45\char173 \char 45\char 45\char 45 \char173\char173\char173 \char173\char 45\char 45 \char 45\char173\char173 fixed in next beta 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] +tlig fails sometimes in mkiv
On c.t.t. there was a discussion about the TeX-ligatures -- and --- for endash and emdash. It seems that the luaotfload/context code fails for some font/mode combination: For some fonts +tlig works with both modes, some works only with mode=base, and there was also a report of font which doesn't work at all (Frutiger LT 55 Roman). E.g. on my PC +tlig works for Arial (c:/windows/fonts/Arial.ttf) tested with a current context minimals only with mode=base. \font\test=Arial:mode=node;+tlig \font\testb=Arial:mode=base;+tlig \starttext \test -- --- abc %fails \testb -- --- abc %works \stoptext \bye -- Ulrike Fischer ___ 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] Guttenberg's dissertation typeset in ConTeXt
On 2011-02-21 17:43:08, Arthur Reutenauer wrote: Did anyone on this list know (or did anyone notice yet) that the print version of the much-discussed dissertation by Karl-Theodor zu Guttenberg was (allegedly) typeset in ConTeXt? From my German colleague: We should test if he masters ConTeXt. If he doesn't... Arthur P-S: Whether that particular piece of information is true or not, it will bring some attention to ConTeXt! The ConTeXt community should try and take advantage of that :-) Yeah, we should release a module that scrapes online newspaper sites using luasocket and randomly inserts the content via Context xml processing. In combination with [1] this should make future political candidates dependent on Context to a degree [pun not intended] that would allow us to coerce them into generous public funding for the project … Philipp, who had incredible fun following these developments during the last week [1] http://www.ntg.nl/pipermail/ntg-context/2008/030558.html I wonder how the author of the Wikipedia article knows that, though. Presumably, someone got hold of a PDF version of the dissertation? PS: In this matter I wouldn’t even trust the pdf metadata -- could be a fake like the rest. ___ 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 ___ pgp32Di85YpO0.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Compilation problem with latest beta
On Sun, Feb 20, 2011 at 10:08 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 20.02.2011 um 21:44 schrieb Michael Goerz: Hi everyone, I was compiling a document with the version of ConTeXt that comes with TeXLive 2010, and now tried to compile it the latest beta of the Minimals installation. The compilations fails with the following error: The problem should be somewhere here: 18 { % ToC 19 \IJDEvol{Summer 2011}{Volume VII.3} 20 \FMTitle{Contents} 21 \blank[big] I have absolutely no clue what the error message is trying to tell me, or how to go about making the document compile. Does anyone have any suggestions? Can you comment the part where you insert the table of contents in your document, something fails here but it’s not able to tell what from your example. Indeed, it has something to do with the Table of Contents. The \placecontent is already enough to produce the error, but only in combination with the definitions in my env.tex file. If I don't place the TOC, or don't load my env settings, the documents compiles. Can you make a minimal example or send me the files off list. I've attached the files for a minimal example: . |-- env.tex |-- project.tex `-- vol_vii_3 `-- vol_vii_3.tex Thanks, Michael env.tex Description: TeX document project.tex Description: TeX document vol_vii_3.tex Description: TeX 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] Compilation problem with latest beta
Am 20.02.2011 um 22:52 schrieb Michael Goerz: On Sun, Feb 20, 2011 at 10:08 PM, Wolfgang Schuster Can you comment the part where you insert the table of contents in your document, something fails here but it’s not able to tell what from your example. Indeed, it has something to do with the Table of Contents. The \placecontent is already enough to produce the error, but only in combination with the definitions in my env.tex file. If I don't place the TOC, or don't load my env settings, the documents compiles. Change these defintions from \def to \unexpanded\def % Font Features Macros \def\orn{\setfontfeature{ornaments}} \def\itsw{\setfontfeature{swash}\it} \def\sw{\setfontfeature{swash}} \def\smcp{\setfontfeature{smallcaps}} \def\lnfigures{\setfontfeature{lining}} \def\tabfigures{\addfontfeaturetofont{tabular}} \def\lntabfigures{\setfontfeature{tabular}} 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] Compilation problem with latest beta
On Sun, Feb 20, 2011 at 10:59 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 20.02.2011 um 22:52 schrieb Michael Goerz: On Sun, Feb 20, 2011 at 10:08 PM, Wolfgang Schuster Can you comment the part where you insert the table of contents in your document, something fails here but it’s not able to tell what from your example. Indeed, it has something to do with the Table of Contents. The \placecontent is already enough to produce the error, but only in combination with the definitions in my env.tex file. If I don't place the TOC, or don't load my env settings, the documents compiles. Change these defintions from \def to \unexpanded\def % Font Features Macros \def\orn{\setfontfeature{ornaments}} \def\itsw{\setfontfeature{swash}\it} \def\sw{\setfontfeature{swash}} \def\smcp{\setfontfeature{smallcaps}} \def\lnfigures{\setfontfeature{lining}} \def\tabfigures{\addfontfeaturetofont{tabular}} \def\lntabfigures{\setfontfeature{tabular}} Indeed, that works perfectly. However, there's another problem now, going beyond my minimal example. The following macro that I have in env.tex no longer works in the latest beta: \def\TocAuthors#1{\writebetweenlist[chapter]{\Lower(1cm){\bf #1}}{}} It seems that the \Lower macro is no longer available. Is there a suitable replacement? To reproduce this in the minimal example, I've added a file vol_vii_3/articles with the following content: \startcomponent bla \product vol_vii_3/vol_vii_3 \project project \TocAuthors{Me} \chapter{Some Title} bla and added it in vol_vii_3.tex: [...] \startbodymatter \part{bla} \component vol_vii_3/articles/bla [...] Thanks, Michael Goerz ___ 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] Symbola font glyph size
On 12 feb. 2011, at 20:48, Vianney le Clément vleclem...@gmail.com wrote: If I use \definedfont[file:Symbola602.otf sa 2], the glyphs are more or less the good size, but the metrics are way too large. I have no problems with this font in OpenOffice. How old is your luatex and context combination? It sounds like a bug we fixed a while ago (the font is probably a postscript font with an abnormal units per em setting) 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] Symbola font glyph size
On Sat, Feb 12, 2011 at 21:09, Taco Hoekwater t...@elvenkind.com wrote: How old is your luatex and context combination? It sounds like a bug we fixed a while ago (the font is probably a postscript font with an abnormal units per em setting) Thanks for your answer. I'm using the latest context beta minimals (updated today): ConTeXt - 2011.02.11 18:18 and LuaTeX-0.65.0. Is there a newer version fixing the problem? Vianney ___ 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] Symbola font glyph size
On Sat, Feb 12, 2011 at 9:09 PM, Taco Hoekwater t...@elvenkind.com wrote: On 12 feb. 2011, at 20:48, Vianney le Clément vleclem...@gmail.com wrote: If I use \definedfont[file:Symbola602.otf sa 2], the glyphs are more or less the good size, but the metrics are way too large. I have no problems with this font in OpenOffice. How old is your luatex and context combination? It sounds like a bug we fixed a while ago (the font is probably a postscript font with an abnormal units per em setting) No, it's a truetype font with 2048 UnitsPerEm. This font has not kerning at all: it is only usable as .. symbol ! :-) 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 ___ -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Forming paragraphs
Hello, I would need to form paragraphs to such a shape: Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. -- \textwidth --| I.e. paragraphs whose first lines are always \textwidth in width and whose next lines are always somehow indented. I achieved the desired shape by the following combination of \setupnarrower and \setupindenting: --- \starttext \setupnarrower[left=2em] \startnarrower[1*left,0*right] \setupindenting[yes,-2em] \input knuth \stopnarrower \stoptext --- But I would like to ask whether this way is clean enough and/or there is a better way, especially via a kind of \setupsomething command, e.g. something like: \setupparagraph[MySpecialParagraph][first=0pt,next=2em] ... \startparagraph[MySpecialParagraph] Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopparagraph % or: \startMySpecialParagraph Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopMySpecialParagraph Kind regards, Lukas t-Para.mkiv Description: Binary data t-Para.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] Forming paragraphs
Hi, did you already take a look at this? http://wiki.contextgarden.net/Shaped_paragraphs HTH, Stefan. On 23.01.2011 13:38, Procházka Lukáš wrote: Hello, I would need to form paragraphs to such a shape: Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. -- \textwidth --| I.e. paragraphs whose first lines are always \textwidth in width and whose next lines are always somehow indented. I achieved the desired shape by the following combination of \setupnarrower and \setupindenting: --- \starttext \setupnarrower[left=2em] \startnarrower[1*left,0*right] \setupindenting[yes,-2em] \input knuth \stopnarrower \stoptext --- But I would like to ask whether this way is clean enough and/or there is a better way, especially via a kind of \setupsomething command, e.g. something like: \setupparagraph[MySpecialParagraph][first=0pt,next=2em] ... \startparagraph[MySpecialParagraph] Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopparagraph % or: \startMySpecialParagraph Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopMySpecialParagraph Kind regards, Lukas ___ 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] Forming paragraphs
Hello, thanks for the link, this seems to do the job. Lukas On Sun, 23 Jan 2011 14:35:24 +0100, Stefan Müller warrence@gmx.de wrote: Hi, did you already take a look at this? http://wiki.contextgarden.net/Shaped_paragraphs HTH, Stefan. On 23.01.2011 13:38, Procházka Lukáš wrote: Hello, I would need to form paragraphs to such a shape: Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. -- \textwidth --| I.e. paragraphs whose first lines are always \textwidth in width and whose next lines are always somehow indented. I achieved the desired shape by the following combination of \setupnarrower and \setupindenting: --- \starttext \setupnarrower[left=2em] \startnarrower[1*left,0*right] \setupindenting[yes,-2em] \input knuth \stopnarrower \stoptext --- But I would like to ask whether this way is clean enough and/or there is a better way, especially via a kind of \setupsomething command, e.g. something like: \setupparagraph[MySpecialParagraph][first=0pt,next=2em] ... \startparagraph[MySpecialParagraph] Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopparagraph % or: \startMySpecialParagraph Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopMySpecialParagraph Kind regards, Lukas ___ 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] catcode problems (mkiv)
Hi, I have some problems with catcode handling in lua and tex. Source of the problem is (aside from my limited knowledge) a XML based line of text that can contain any printable character. From this source line I create one modified text line for the tex side (named 'textext') and one unmodified text line for the lua side (named 'luatext'). The tex side actually prints the text and the lua side is used to create some bitmap based background graphics. The XSLT output is something like this (saved in a *.tex file) ... \ctxlua{myluacode.foo{ luatext = [[Test |%_^~$#{}±©®¶° 123]], textext = [[Test \textbar \%\_\textcircumflex \texttilde \$\#\textbraceleft \textbraceright \textpm \copyright \registered ¶\textdegree \ 123]], ... }} Two problems still occur. The %-sign in (ctx)lua (text is ignored afterwords) and the significant spaces in the tex part (which are eaten up when printed). I tried it with a modified catcodetable, but no success (ugly sideeffects). So my question is: What is the best way to 1. deal with the % character in ctxlua? 2. print significant spaces? My current 'solution' for 2. is writing to a tex buffer instead and then using \bgroup\obeyspaces\getbuffer[textext]\egroup If I try to use \obeyspaces in combination with the lua variable 'textext' I can no longer access the variable, as the variable is indexed by a tex macro (lets call it \FOO), which then is interpreted as whatever.[\FOO ].textext ). No solution for 1. yet. As always... any help welcome :-) 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 ___
Re: [NTG-context] \lgroup in mkIV
On 9-1-2011 7:59, Aditya Mahajan wrote: I don't know how it was generated. Mojca and I occasionally update the file by adding the names of math symbols. If the latest unicode symbol list is available in text format, it should not be too difficult to check if the table in char-def has any missing entries. In this case, I just added these four missing characters by hand. The first versions of the table were a combination of data present already in context and some unicode tables from the web (using scripts) but much in the math department was added manually as i found out that tables (like stix) were too flawed and had bugs so were useless for our purpose. We could do some occasional update by checking diffs from older to newer unicodes, not that I expect too many changes. 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] kerning info (mkiv)
On 01/07/2011 02:48 PM, Peter Rolf wrote: The character stands in the first column, followed by width, height and depth (in pixel). The *kerning line shows the kerning value (in sp) of the neighbouring character pair. No problem here. But A much longer Test graphic VATo sees no kerning for VATo (although the text is printed with the correct kerning). What am I missing? Example code is attached. Your code only reports a kern if it happens between the first occurrence of a certain glyph and is predecessor. After that first attempt, the if not char[u] then ... condition evaluates to false, so no further reporting is done. In other words, your longer example fails to report anything for the VA, AT, and To combinations because all the second glyphs in the pairs have already been seen before in a non-kerned combination (A, lo, T). You have to rethink the loop logic. 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] kerning info (mkiv)
Am 07.01.2011 15:13, schrieb Taco Hoekwater: On 01/07/2011 02:48 PM, Peter Rolf wrote: The character stands in the first column, followed by width, height and depth (in pixel). The *kerning line shows the kerning value (in sp) of the neighbouring character pair. No problem here. But A much longer Test graphic VATo sees no kerning for VATo (although the text is printed with the correct kerning). What am I missing? Example code is attached. Your code only reports a kern if it happens between the first occurrence of a certain glyph and is predecessor. After that first attempt, the if not char[u] then ... condition evaluates to false, so no further reporting is done. In other words, your longer example fails to report anything for the VA, AT, and To combinations because all the second glyphs in the pairs have already been seen before in a non-kerned combination (A, lo, T). You have to rethink the loop logic. Ah, I see the problem now. Many thanks Taco! :-) Best wishes, 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 ___
Re: [NTG-context] analog of \hdotsfor command
Hi. 2010/11/24 Aditya Mahajan adit...@umich.edu: On Wed, 24 Nov 2010, Vladimir Lomov wrote: Hi. Is there analog of \hdotsfor command in context (mkiv)? The description of \hdotsfor command is in amsldoc.pdf[1] on page 11. [1] http://mirror.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf I don't think there is an equivalent context macro. But hdotsfor should just be a combination of \span\omit + \hdotfill. The command \hdotfill is not defined (in TeX Live 2010 context with updates from tlcontrib.metatex.org and in context minimal). So, just copying the definition from amsmath.sty should work. I looked into this definition and think that it uses some LaTeX commands. I could convert it to context but I'd like to have test files, so not right now. We need to think of a good syntax for matrices in ConTeXt to handle such things. Command \start/stopmatrix is good enough, but you mean matrix as visual representation. --- WBR, Vladimir Lomov ___ 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] Strange behavior of '\setupmathematics' and '\iint'
Hi. I faced with strange (for me) behavior of combination of '\setupmathematics' and '\iint'. Consider the following example: example name=ex1.tex \setupbodyfont[xits] \setupmathematics[integral=displaylimits] \starttext This is a sample. \startformula \exp^{\imath\phi}=\cos\phi+\imath\sin\phi \stopformula \startformula \int_{a}^{b}f(x)\text{d}x=F(x)+C \stopformula \startformula \iint_{D}f(x,y)\text{d}x\text{d}y=\mu(D),\quad\text{here $\mu$ is a measure} \stopformula \stoptext /example If I comment line with '\etupmathematics' then I could compile the example without error. The shown example however gives error when compiled by context (mkiv): error ! Missing } inserted. inserted text } to be read again $ \stopdisplaymath -\stopinnermath $ $\par \afterdisplayspace \par \egroup \dostopformula ...eter \c!alternative \v!formula } \dostoptagged \dostoptagge... l.21 \stopformula ? /error Does this mean that 1) something wrong with font setup? 2) mathematics setup? P.S. I took fonts (symlink) from TL2010 installed in parallel. --- WBR, Vladimir Lomov ___ 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] analog of \hdotsfor command
On Wed, 24 Nov 2010, Vladimir Lomov wrote: Hi. Is there analog of \hdotsfor command in context (mkiv)? The description of \hdotsfor command is in amsldoc.pdf[1] on page 11. [1] http://mirror.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf I don't think there is an equivalent context macro. But hdotsfor should just be a combination of \span\omit + \hdotfill. So, just copying the definition from amsmath.sty should work. We need to think of a good syntax for matrices in ConTeXt to handle such things. 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] Using fourier-GUT as math font
Thank you very much for this info! As a beginner I must first figure out (resp. digest) what you have written:-) My intention was to create a typescript for the combination Baskerville (serif) + GillSans(sans) + Consolas(mono) + FourierGUT(math) The typescript included in my original posting contains the relevant definitions for all of these parts (serif, sans etc.). I have added the output of mtxrun ... on my pc below. Hopefully somebody else on this list can give me some tips! *[...@hilbert ~]$* *mtxrun --script fonts --list --all --pattern=*fourier** fourieralternateblack fourieralternateblack /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt-black.afm fourieralternateblackblack fourieralternateblack /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt-black.afm fourieralternateboldfourieralternatebold /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt-bold.afm fourieralternateboldboldfourieralternatebold /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt-bold.afm fourieralternatebolditalic fourieralternatebolditalic /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt-boldita.afm fourieralternatebolditalicbold fourieralternatebolditalic /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt-boldita.afm fourieralternateitalic fourieralternateitalic /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt-ita.afm fourieralternateitalicnormalfourieralternateitalic /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt-ita.afm fourieralternateroman fourieralternateroman /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt.afm fourieralternateromannormal fourieralternateroman /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt.afm fourieralternatesemiboldfourieralternatesemibold /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt-semi.afm fourieralternatesemiboldsemiboldfourieralternatesemibold /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt-semi.afm fourieralternatesemitalic fourieralternatesemitalic /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt-semiita.afm fourieralternatesemitalicsemibold fourieralternatesemitalic /home/nik/.fonts/MathFonts/FourierGUT/fourier-alt-semiita.afm *fouriermathblackboard fouriermathblackboard /home/nik/.fonts/MathFonts/FourierGUT/fourier-bb.afm fouriermathblackboardblack fouriermathblackboard /home/nik/.fonts/MathFonts/FourierGUT/fourier-bb.afm fouriermathcal fouriermathcal /home/nik/.fonts/MathFonts/FourierGUT/fourier-mcl.afm fouriermathcalnormalfouriermathcal /home/nik/.fonts/MathFonts/FourierGUT/fourier-mcl.afm fouriermathextensionfouriermathextension /home/nik/.fonts/MathFonts/FourierGUT/fourier-mex.afm fouriermathextensionmedium fouriermathextension /home/nik/.fonts/MathFonts/FourierGUT/fourier-mex.afm fouriermathletters fouriermathletters /home/nik/.fonts/MathFonts/FourierGUT/fourier-ml.afm fouriermathlettersbold fouriermathlettersbold /home/nik/.fonts/MathFonts/FourierGUT/fourier-mlb.afm fouriermathlettersbolditalicfouriermathlettersbolditalic /home/nik/.fonts/MathFonts/FourierGUT/fourier-mlitb.afm fouriermathlettersitalicfouriermathlettersitalic /home/nik/.fonts/MathFonts/FourierGUT/fourier-mlit.afm fouriermathlettersnormalfouriermathletters /home/nik/.fonts/MathFonts/FourierGUT/fourier-ml.afm fouriermathsymbols fouriermathsymbols /home/nik/.fonts/MathFonts/FourierGUT/fourier-ms.afm fouriermathsymbolsnormalfouriermathsymbols /home/nik/.fonts/MathFonts/FourierGUT/fourier-ms.afm* fourierorns fourierorns /home/nik/.fonts/MathFonts/FourierGUT/fourier-orns.afm fourierornsnormal fourierorns /home/nik/.fonts/MathFonts/FourierGUT/fourier-orns.afm Kind regards Nik On 10/28/2010 02:57 PM, Hans Hagen wrote: On 27-10-2010 3:49, nitralime wrote: I have made a mistake in my typescript. Here is the corrected version: %% .. \starttypescript [math] [fourier][texnansi] \definefontsynonym [Fourier-Math-Letters] [name:fouriermathletters] \definefontsynonym [Fourier-Math-Letters-Italic] [name:fouriermathlettersitalic] \definefontsynonym [Fourier-Math-Letters-Bold] [name:fouriermathlettersbold] \definefontsynonym [Fourier-Math-Letters-BoldItalic] [name:fouriermathlettersbolditalic] \definefontsynonym [Fourier-Math-Blackboard] [name:fouriermathblackboard] \definefontsynonym [Fourier-Math-Calligraphic] [name:fouriermathcal] \definefontsynonym [Fourier-Math-Symbols
Re: [NTG-context] calling ConTeXt as a background process
Hi Hraban, How's ConTeXt called in ConTeXtgarden Live? Any special means? Please CC me for these kind of questions, for I don't follow the list every day. I've put context live into a repo at github: http://github.com/pgundlach/contextlive and take a look at http://github.com/pgundlach/contextlive/blob/master/runtexexec.c I use fork()/exec() combination in C. 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] calling ConTeXt as a background process
Am 2010-10-07 um 12:27 schrieb Patrick Gundlach: How's ConTeXt called in ConTeXtgarden Live? Any special means? http://github.com/pgundlach/contextlive/blob/master/runtexexec.c I use fork()/exec() combination in C. Ok, I won't use C... I guess it's a problem of my specific combination of Ubuntu/SElinux, Django/fcgi and LuaTeX... :-( I found others running latex from Django in exactly the same matter as ConTeXt fails for me. But I can call other programs that way, so part of the problem is in LuaTeX. Greetlings, Hraban ___ 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] calling ConTeXt as a background process
On Thu, Oct 7, 2010 at 5:44 PM, Henning Hraban Ramm hra...@fiee.net wrote: Am 2010-10-07 um 12:27 schrieb Patrick Gundlach: How's ConTeXt called in ConTeXtgarden Live? Any special means? http://github.com/pgundlach/contextlive/blob/master/runtexexec.c I use fork()/exec() combination in C. Ok, I won't use C... I guess it's a problem of my specific combination of Ubuntu/SElinux, Django/fcgi and LuaTeX... :-( I found others running latex from Django in exactly the same matter as ConTeXt fails for me. But I can call other programs that way, so part of the problem is in LuaTeX. 1) Are you sure to have done source setuptex before run luatex 2) does os.system(...) in python only work ? -- 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] calling ConTeXt as a background process
Am 2010-10-07 um 17:48 schrieb luigi scarso: How's ConTeXt called in ConTeXtgarden Live? Any special means? http://github.com/pgundlach/contextlive/blob/master/runtexexec.c I use fork()/exec() combination in C. Ok, I won't use C... I saw you set TEXMFHOME - I don't need that for MkIV, do I? 1) Are you sure to have done source setuptex before run luatex tried that and tried to set TEXROOT and TEXMFOS manually (and the output of set looks right). 2) does os.system(...) in python only work ? Thank you, I didn't think of the easiest option! With strace I get a return code of 0, so the command seems to run through, nothing hangs, but also nothing happens. Without strace texlua hangs, and after killing it I get a 36608 (don't know what that is, it's not the PID). 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 ___
[NTG-context] Tagged register
Hi, up to now one can use either collapsed registeres ... \placeregister[index][compress=yes] or tagged PDF ... \setupstructure[state=start] Otherwise there is an error (see below). Couldn't we also have both, or is this impossible by the logic of structure? (I have to admit, I never saw the combination of a tagged pdf with collapsed register ...) Steffen === ! Undefined control sequence. system error on line 26 in file Ohnee-Titel.tex: Undefined control sequence ... 16 \starttext 17 \placeregister[index][compress=yes] \blank[2*big] 18 \page 19 \dorecurse{10}{test 1:!\startregister[index]{test} test 20 \stopregister{} 21 \page} 22 \dorecurse{5} {test 2:\recurselevel \page} 23 \dorecurse{10}{test 3:!\startregister[index]{test} test 24 \stopregister{} 25 \page} 26\dorecurse{5} {test 4:\recurselevel \page} 27 \dorecurse{1} {test 5:!\startregister[index]{test} test 28 \stopregister{} 29 \page} 30 \dorecurse{5} {test 6:\recurselevel \page} 31 \dorecurse{10}{test 7:!\startregister[index]{test} test 32 \stopregister{} 33 \page} 34 \stoptext argument \t!registerpagerange \dododostarttagged ...a {structures.tags.start(#1 ,{ label = \dogetupsomet... \registerpagerange ...\t!registerpagerange \empty \dostarttagged \t!register... l.26 } \doplaceregister ...ameter \c!pagesegments , } )} \stoppacked \stopcolumns \... l.17 \placeregister[index][compress=yes] \blank[2*big] ? Process aborted ___ 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] Impostion to make a scroll
I am trying to string 10 pdfs together onto one very wide page so I can print it as a scroll. I've tried using texexec as follows: $texexec --combination=10*1 --pdfcombine infile.pdf but what I get is 10 pdfs at the top of an A4 sheet. How do I make a custom page size 1480mm x 210 mm? I've also tried using a tex file like the following: \definepapersize [scroll][width=1480mm, height=210mm] \setuppapersize[A5][scroll] \setuppaper [topspace=0mm, backspace=0mm, dx=1mm, dy=0mm, nx=1, ny=10, margin=0, width=148mm, height=210mm] \setuplayout [topspace=0mm, backspace=0mm, margin=0mm, width=1480mm, height=210mm, header=0mm, footer=0mm] \setuparranging[XY] \starttext \insertpages [input.pdf] \stoptext I get the right sized pdf sheet, but all the input.pdf pages are stacked on top of one another in a big mess all on the right hand side. Thanks for any help, Arild ___ 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] Impostion to make a scroll
Am 15.09.2010 um 02:26 schrieb Arild Syme: I am trying to string 10 pdfs together onto one very wide page so I can print it as a scroll. I've tried using texexec as follows: $texexec --combination=10*1 --pdfcombine infile.pdf but what I get is 10 pdfs at the top of an A4 sheet. How do I make a custom page size 1480mm x 210 mm? I've also tried using a tex file like the following: \definepapersize [scroll][width=1480mm, height=210mm] \setuppapersize[A5][scroll] \setuppaper [topspace=0mm, backspace=0mm, dx=1mm, dy=0mm, nx=1, ny=10, nx=10, ny=1 margin=0, width=148mm, height=210mm] \setuplayout [topspace=0mm, backspace=0mm, margin=0mm, width=1480mm, height=210mm, header=0mm, footer=0mm] You can just write \setuplayout[page] \setuparranging[XY] \starttext \insertpages [input.pdf] \stoptext I get the right sized pdf sheet, but all the input.pdf pages are stacked on top of one another in a big mess all on the right hand side. This is a alternative solution for your problem: \starttext \startTEXpage \getfiguredimensions[insert.pdf] \dontleavehmode\dorecurse\noffigurepages{\externalfigure[insert.pdf][page=\recurselevel]} \stopTEXpage \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [PATCH] small corrections for the ConTeXt-correspondence manual
to sign the letter also by hand after you have printed the letter. +There is some space between the closing and the signature to give you the possibility to sign the letter after having printed it out. -You're not limited to simple text for the signature, it is also possible to use a graphic if you won't sign the letter by hand after you printed it, such a solution would have been for the author the next code. +You’re not limited to simple text for the signature. It is also possible to use a graphic if you won’t sign the letter by hand after you printed it. This solution is used in the following code. \starttyping \setupletter [signature={\externalfigure[autograph][height=2\lineheight]}] \stoptyping -How to adjust the space between the closing line and the signature for this way will be shown in the letter style section. +How to adjust the space between the closing line and the signature for this way is shown in the letter style section. \start @@ -330,9 +330,9 @@ How to adjust the space between the closing line and the signature for this way \starttyping \startletter -... +… -\ps{...} +\ps{Postscript} \stopletter \stoptyping @@ -376,10 +376,10 @@ How to adjust the space between the closing line and the signature for this way \starttyping \startletter -... +… -\ps{...} -\encl{...} +\ps{Postscript} +\encl{Appendices} \stopletter \stoptyping @@ -425,11 +425,11 @@ How to adjust the space between the closing line and the signature for this way \starttyping \startletter -... +… -\ps{...} -\encl{...} -\cc{...} +\ps{Postscript} +\encl{Appendices} +\cc{List of recipients} \stopletter \stoptyping -- 1.7.1 From 453b79c7f304b07479e0d1d07167dec6a5a18356 Mon Sep 17 00:00:00 2001 From: Paul Menzel paulepan...@users.sourceforge.net Date: Fri, 13 Aug 2010 21:40:59 +0200 Subject: [PATCH 3/6] c-l-interface.tex: Use correct character for ellipse. Signed-off-by: Paul Menzel paulepan...@users.sourceforge.net --- correspondence-letter-interface.tex |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/correspondence-letter-interface.tex b/correspondence-letter-interface.tex index bda80c6..f1755c9 100644 --- a/correspondence-letter-interface.tex +++ b/correspondence-letter-interface.tex @@ -78,7 +78,7 @@ \starttyping \startbuffer[texletter] -... +… \stopbuffer \setups[letter:place] @@ -179,11 +179,11 @@ Professor \starttyping \address -... +… \body -... +… \closing -... +… \endletter \stoptyping -- 1.7.1 From 4ca49bdcd179f139ab2ff1f6ea832ecfe27619e9 Mon Sep 17 00:00:00 2001 From: Paul Menzel paulepan...@users.sourceforge.net Date: Fri, 13 Aug 2010 22:51:22 +0200 Subject: [PATCH 4/6] c-l-layout.tex: Some corrections regarding spelling and grammar. Signed-off-by: Paul Menzel paulepan...@users.sourceforge.net --- correspondence-letter-layout.tex | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/correspondence-letter-layout.tex b/correspondence-letter-layout.tex index e71a1a3..a59efb4 100644 --- a/correspondence-letter-layout.tex +++ b/correspondence-letter-layout.tex @@ -4,11 +4,11 @@ \chapter{Layout} -The components for the letter can be divided in to groups, the first are letter layers, you can position them on the page wherever you want and it is also possible to put one layer bevor or behind another layer. +The components for the layout of a letter can be divided into {\em letter layers} and {\em letter sections}. You can position letter layers on the page wherever you want and it is also possible to put one layer in front of or behind another layer. -The underliying machanism behind letter layers are \CONTEXT's normal layer mechanism in combination with localframed environments, this is a very powerful combination and you could create complicated layouts with them. +The underlying mechanism behind letter layers is \CONTEXT’s normal layer mechanism in combination with local framed environments. This is a very powerful combination and you can create complicated layouts with them. -The second group of components for the layout are letter sections, they are not as powerfule as letter layers and you have only a limited number of elements to control their layout. +Letter sections, the second group of components, are not as powerful as letter layers and you only have a limited number of elements to control their layout. \setup[setupletterstyle:layout] @@ -42,9 +42,9 @@ The second group of components for the layout are letter sections, they are not \section{Letter layers} -Layer are used to position elements one page independant of the page layout. +Layers are used to position elements on a page independent of the page layout. They are used for the header and footer, address block\footnote{The block styles -use a different structure and use a letter section for the address block.} etc. +use a different structure and use a letter section for the address block.}, etc.. The complete
Re: [NTG-context] color shading/conversion (mkiv)
On 3-8-2010 11:12, Peter Rolf wrote: Hi, there is a problem with color shading in combination with color conversion. Short example is attached. MTXrun | current version: 2010.07.30 11:35 This is LuaTeX, Version beta-0.62.0-2010080307 (rev 3794) fixed in next beta - 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] color shading/conversion (mkiv)
Am 06.08.2010 18:28, schrieb Hans Hagen: On 3-8-2010 11:12, Peter Rolf wrote: Hi, there is a problem with color shading in combination with color conversion. Short example is attached. MTXrun | current version: 2010.07.30 11:35 This is LuaTeX, Version beta-0.62.0-2010080307 (rev 3794) fixed in next beta Thanks Hans :) ___ 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] color shading/conversion (mkiv)
Hi, there is a problem with color shading in combination with color conversion. Short example is attached. MTXrun | current version: 2010.07.30 11:35 This is LuaTeX, Version beta-0.62.0-2010080307 (rev 3794) Best wishes, Peter \setupcolors[state=stop] \startMPpage linear_shade(unitsquare xyscaled 5cm,0,red,green); \stopMPpage ___ 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] footnotes again
Hi all, I'm sorry I have to ask again about footnotes setup. I misunderstood the style that our publisher wants. Maybe it's easiest when I do a bit of ASCII art (will only work with a fixed-width font): | texttexttexttexttex | | textexttexttexttext | | | | 9 footnote 9, more | |than one line. | | 10 footnote 10. | So: the footnote numbers in the footnotes are typeset in a box. This box is just big enough to hold a three-digit footnote number. Its left edge is flush with the text area. Within this box, the note number is aligned flushright. The footnote text itself is one block; this block is indented a fixed amount: the publisher wants all indentations (normal paragraphs, blockquotes, footnotes) to be identical; let's say 16pt. I played with the parameters of \setupnotedefinition and \setupfootnotes that Wolfgang taught me yesterday, but I just can't find the right combination. Will wikify! All best Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnotes again
On 3-8-2010 10:07, Thomas Schmitz wrote: Hi all, I'm sorry I have to ask again about footnotes setup. I misunderstood the style that our publisher wants. Maybe it's easiest when I do a bit of ASCII art (will only work with a fixed-width font): | texttexttexttexttex | | textexttexttexttext | | | | 9 footnote 9, more | | than one line. | | 10 footnote 10. | So: the footnote numbers in the footnotes are typeset in a box. This box is just big enough to hold a three-digit footnote number. Its left edge is flush with the text area. Within this box, the note number is aligned flushright. The footnote text itself is one block; this block is indented a fixed amount: the publisher wants all indentations (normal paragraphs, blockquotes, footnotes) to be identical; let's say 16pt. I played with the parameters of \setupnotedefinition and \setupfootnotes that Wolfgang taught me yesterday, but I just can't find the right combination. it's an interaction between parameters (different meaning in notes as description) .. side effect of par notes .. need a bit of thinking but solvable - 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] footnotes again
On 3-8-2010 10:07, Thomas Schmitz wrote: Hi all, I'm sorry I have to ask again about footnotes setup. I misunderstood the style that our publisher wants. Maybe it's easiest when I do a bit of ASCII art (will only work with a fixed-width font): | texttexttexttexttex | | textexttexttexttext | | | | 9 footnote 9, more | | than one line. | | 10 footnote 10. | So: the footnote numbers in the footnotes are typeset in a box. This box is just big enough to hold a three-digit footnote number. Its left edge is flush with the text area. Within this box, the note number is aligned flushright. The footnote text itself is one block; this block is indented a fixed amount: the publisher wants all indentations (normal paragraphs, blockquotes, footnotes) to be identical; let's say 16pt. I played with the parameters of \setupnotedefinition and \setupfootnotes that Wolfgang taught me yesterday, but I just can't find the right combination. Will wikify! this works again: \starttext \showframe \setupnotedefinition[footnote][location=left,width=1cm] \setupnote[footnote][location=page,numbercommand=] test \footnote{test} \stoptext this has changed (display key): \setupnote [footnote][paragraph=yes,numbercommand=,inbetween=\hskip.5em\vl\hskip.5em] \setupdescriptions[footnote][display=no,location=serried,distance=.5em] % before=,after= \starttext \startlocalfootnotes local 1a\footnote{local note 1a} local 1b\footnote{local note 1b} \placelocalfootnotes \stoplocalfootnotes \blank global 1a\footnote{global note 1a} global 1b\footnote{global note 1b} \blank \startlocalfootnotes local 2a\footnote{local note 2a} local 2b\footnote{local note 2b} \placelocalfootnotes \stoplocalfootnotes \blank global 2a\footnote{global note 2a} global 2b\footnote{global note 2b} \blank \startlocalfootnotes local 3a\footnote{local note 3a} local 3b\footnote{local note 3b} \placelocalfootnotes \stoplocalfootnotes \blank global 2a\footnote{\input tufte } global 2b\footnote{global note 2b} \blank \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] Setting up protrusion, side-effects
Fonts are sometimes special and when ypu load a font it's setting (e.g. ligatures, protrusion etc.) are frozen. To change the settings you need \definefontfeature before \setupbodyfont, OK, got it. Makes sense! Could this also be extended to \switchtobodyfont, in case I am using more then one font. Any \definefontfeature statements would have to be done before switching to any new font? In regard to the use of \showbodyfont in combination with protusion (the second mentioned problem) messing up palatino (ie. TexGyre Pagella), does that mean \setupbodyfont is doing some background work causing the layout following it to fail when protrusion is applied? Thanks again, 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] Better support for Croatian in lang-sla.tex (patch included)
On 12-7-2010 6:01, Mojca Miklavec wrote: 2010/7/12 Hans Hagenpra...@wxs.nl: On 11-7-2010 11:46, Vedran Miletić wrote: Here is a better patch, with new strings translated and v!appendix commented as in lang-ger.tex. I could also add support for Serbian latin, but I have no idea how to add new language that will allow both latin and cyrilic. we need to define what that means then ... as i can imagine only combining multiple languages with respect to hyphenation In case of Serbian it's in fact about dealing with two completely different languages in terms of TeX. Latin script and Cyrillic script require different patterns, different font encodings and different labels. The \mainlanguage[serbian][script=latin] and [script=cyrillic] would only be a more elegant/proper way as opposed to \mainlanguage[serbian-latn] and \mainlanguage[serbian-cyrl] (or serbian-latin or serbianl or sr-latn or ...). In reality the two should be two different languages, the second parameter would only be a more elegant way, like for German. Polyglossia has [german][spelling=old/new] (or something similar). so that would eventually expand to \mainlanguage[serbian-\languageparameter{script}-\languageparameter{spelling}-..-\languageparameter{whoknowswhat}] the danger of that approach is that we end up with as many keys as languages because most are only used (ok, they are probably then also misused) for one case (and no one knows what's used for what then) in mkiv i'd like to follow another route also because we might want to bring more typographical issues in the game for instance, although not yet interfaced there is a difference between labellanguage headlanguage mathlabellanguage that takes care of labels but we migth need something country related for dates, maybe conversioncountry and for patterns we can just use patternset when setting up a specific language we then choose a preset i.e. a combination of settings and serbian-latin is quite ok then this all is something i'm working on and is also influenced by discussions in the oriental tex team If you simply choose two names for language (for example sr-latn and sr-cyrl), it should be straightforward to add both languages to MKII as well. in mkii one can mix font encodings and multiple font encodings can be set up per language; so, it should be possible to define a language with two encodings and then when a font switch takes place the right ones will be chosen. But anyhow, mkii will not be extended and certainly not in areas were there was never any demand. 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] TeX Gyre Heros Condensed missing in typescript / letterspacing
On 23 juin 2010, at 19:55, Wolfgang Schuster wrote: […] Is it the the word affligeant or just the ffl ligature which causes the error message the combination affli creates the fatal error, while ffli does not. (can't check it at the moment) but extrakerning is just a workaround in this case and problems are likely to be expected. Don't worry, I wanted just to report a problem I observed: I don't think I am going to use this fancy feature very soon. Best regards: OK ___ 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 Gyre Heros Condensed missing in typescript / letterspacing
On 23-6-2010 8:12, Otared Kavian wrote: On 23 juin 2010, at 19:55, Wolfgang Schuster wrote: […] Is it the the word affligeant or just the ffl ligature which causes the error message the combination affli creates the fatal error, while ffli does not. (can't check it at the moment) but extrakerning is just a workaround in this case and problems are likely to be expected. Don't worry, I wanted just to report a problem I observed: I don't think I am going to use this fancy feature very soon. that one's for taco For node p:=0, 4==0 (l.1342,r.1) ! This can't happen (dotest). (we will look into it off-list, once i know where it comes from) 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] Script to automatically generate typescripts
On 4-6-2010 10:23, luigi scarso wrote: (I hope one day we will end without ruby and perl for mkiv too, if reasonable) . not much perl used in context tools nowadays and not that much ruby either in mkiv related tools Of course perl, ruby. python,put_your_favorite_language_here are all goods programming languages but mixing them together not always make a good pie . italian restaurants in NL have quite some choices in pizza .. any combination possible -) 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] BibLaTeX
I frequently use LaTeX with BibLaTeX and the BibLaTeX-Chicago Style package to typeset scholarly material. For me, BibLaTeX is a great tool. However, I am attracted to ConTeXt because, coming from a desktop-publishing background, ConTeXt gives me more/easier control over document layout and structure. Thus I began to dream of a chocolate + peanut butter combination of the two. I would like to know if anyone has thoughts on the possibility of using BibLaTeX Biber with ConTeXt -- perhaps through a wrapper module of some kind? I don't understand the internals of LaTeX or ConTeXt well enough to know if this is a ridiculous question. I respect the ConTeXt Bib module, but BibLaTeX-Chicago offers exactly what I'm looking for. Both BibLaTeX and ConTeXt use e-TeX, and the internals of BibLaTeX appear not to be LaTeX-specific. So, would it be possible to write a ConTeXt module that bypasses Bib and provides an interface between ConTeXt bibliography commands and BibLaTeX/Biber? Thanks, PPN ___ 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] LuaTeX error ... object in use
In addition, everything involving inferiors, superiors, numerators and denominators is now broken. For example: \definefontfeature[in][body][sinf=yes]%inferior Cs{\setff{in}133} has no effect. This depends on whether the font supports the sinf feature. The default fonts do not. Mine does. It worked in 0.50. Maybe the name of the feature sinf changed? Well, if I literally run \starttext block of text block of text \stoptext It works just fine, so I need a test file to debug your bug report. It appears to depend on having a big enough, complicated enough text, not a specific combination of commands, so it's hard to come up with one, but I'll try. 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 ___
Re: [NTG-context] Accent anomaly.
John Culleton wrote: I created a sample sheet of accent marks using Context. I used Bitstream Charter as the font (bchr8r). The following combination didn't work: \t{uu} You cannot use bitstream charter with tie, because that accent is not in the font (in fact, there are many fonts that do not have it). 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 ___