Re: [NTG-context] latest beta
On 22-11-2011 22:38, Thomas A. Schmitz wrote: Hi Hans, the files typo-itc.lua and typo-itc.mkvi are missing in today's beta; I assume that's just an oversight? this is probably one of those rare cases of unzipping the archive at the garden interfering with an update .. i'll re-uploade later today 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] What is the prescribed way to add attachments to a list posting?
>> Thanks, Mojca. I was looking at the web-interface of the archives. It seems >> that the attachments *were* including in the mailing list message, but were >> converted/stripped in the archives. > > They are not really removed, but it might be that they are not shown > in lurker (archive.contextgarden.net) for whatever reason. they are archived but not displayed. For some reason I've turned that off (IIRC). But the archive is moving anyway, so I don't think it is really necessary to change things for just a short period of time. 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] Natural Tables---Including a bit of cell style in a \define
On 22-11-2011 13:08, Pavneet Arora wrote: I am creating documentation labeling the circuits of electrical and network panels for a project of mine. Enclosed is a minimal example. What I would like is to define two macros: \unused and \spare (\unused referring to a circuit with no breaker installed, while \spare referring to a circuit with a breaker, but no load). I wish these definitions to not only include the represented text and font directives, i.e., {\tt [Unused]}, but also shade the cell in a background color. However, I cannot seem to figure out how to do that. Including the `[background=color,backgroundcolor=gray]' in the \define seems to be expanded back simply as text. Any suggestions? \define\unused {\inframed [foregroundstyle=type, background=color, backgroundcolor=gray, frame=off] {[Unused]}} - 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] Text in a box now broken
On 23-11-2011 02:41, Kip Warner wrote: Hey Wolfgang. I just retested your minimal and realized that while it does work, only for the first box. Try this and you'll see what I mean: 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] Text in a box now broken
On Wed, 2011-11-23 at 09:57 +0100, Hans Hagen wrote: > fixed in next beta Thanks Hans. I thought something was amiss and figured it was a bug, since it was working fine until a recent new version of ConTeXt. Hopefully the PPA I am drawing ConTeXt from pulls the fixed version some time soon. Was the fix committed to mainline? -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Use ConTeXt standalone (was: current version?)
Dear Jon, Am Dienstag, den 22.11.2011, 15:37 -0800 schrieb Jon Crump: > Can someone help? By some incantation that I cannot now seem to > reproduce, I was able to obtain and install: > mtx-context | current version: 2011.11.14 16:17 > > In an attempt to update this version, I ran first-setup.sh found at > http://minimals.contextgarden.net/setup/first-setup.sh and what got > installed was: > mtx-context | current version: 2011.05.18 18:04 This looks like the ConTeXt version in Debian. > Can anyone tell me how to get back to 2011.11.14 or to the latest version? At the end of `first-setup.sh` a command is shown you need to executed to update your environment variables so that the manually installed version is found. . /your/installed/context/tex/setuptex Thanks, Paul signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Text in a box now broken
On 23-11-2011 10:01, Kip Warner wrote: On Wed, 2011-11-23 at 09:57 +0100, Hans Hagen wrote: fixed in next beta Thanks Hans. I thought something was amiss and figured it was a bug, since it was working fine until a recent new version of ConTeXt. Hopefully the PPA I am drawing ConTeXt from pulls the fixed version some time soon. Was the fix committed to mainline? if you consider beta to be mainline, yes (but not yet uploaded) (it was a side effect of mkiv-ing the code .. keep in mind that these backgrounds are somewhat old .. textbackgrounds are an alternative) - 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] latest beta
On 11/23/2011 09:21 AM, Hans Hagen wrote: this is probably one of those rare cases of unzipping the archive at the garden interfering with an update .. i'll re-uploade later today Hans Great, thanks for the quick fix! 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] Text in a box now broken
On Wed, 2011-11-23 at 10:16 +0100, Hans Hagen wrote: > if you consider beta to be mainline, yes (but not yet uploaded) > > (it was a side effect of mkiv-ing the code .. keep in mind that these > backgrounds are somewhat old .. textbackgrounds are an alternative) Understood. Do you have a more appropriate version of what I was trying to do using textbackgounds instead? -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Placing text in the margin of a header or the top right corner of a page
On 23.11.2011, at 06:11, Christian wrote: > I think I see what you mean. It disappeared after I tossed the box 1mm to the > right with adjusting the x position: > change > x=180mm > to > x=181mm > > Is that it? Hi, there are already presets and \setlayerframed. See my attached example. layerpresets.tex Description: Binary data Best wishes Andreas___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Use ConTeXt standalone (was: current version?)
>> Can someone help? By some incantation that I cannot now seem to >> reproduce, I was able to obtain and install: >>mtx-context | current version: 2011.11.14 16:17 >> >> In an attempt to update this version, I ran first-setup.sh found at >> http://minimals.contextgarden.net/setup/first-setup.sh and what got >> installed was: >>mtx-context | current version: 2011.05.18 18:04 > > This looks like the ConTeXt version in Debian. That is the current stable version [1]. >> Can anyone tell me how to get back to 2011.11.14 or to the latest version? You'll either have to wait until Mojca or Hans fix the rsync archive, or you pull the minimals from gitorious [2]. Florian [1] http://www.pragma-ade.nl/download-1.htm [2] http://www.gitorious.org/context PGP.sig Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Text in a box now broken
On 23-11-2011 10:25, Kip Warner wrote: On Wed, 2011-11-23 at 10:16 +0100, Hans Hagen wrote: if you consider beta to be mainline, yes (but not yet uploaded) (it was a side effect of mkiv-ing the code .. keep in mind that these backgrounds are somewhat old .. textbackgrounds are an alternative) Understood. Do you have a more appropriate version of what I was trying to do using textbackgounds instead? it depends .. if you have small boxes, you as well use a regular framedtext (with background) or when you span pages you can use textbackgrounds ... the backgrounds you use is some compromise 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] latest beta
On Wed, Nov 23, 2011 at 09:21, Hans Hagen wrote: > On 22-11-2011 22:38, Thomas A. Schmitz wrote: >> >> Hi Hans, >> >> the files typo-itc.lua and typo-itc.mkvi are missing in today's beta; I >> assume that's just an oversight? > > > this is probably one of those rare cases of unzipping the archive at the > garden interfering with an update .. i'll re-uploade later today The problem was a failure of rsync server on pragma. I was fetching from rsync -a rsync://ctx.pragma-ade.nl/beta/ and that one seems to be down at the moment. I changed to http mode now. 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] latest beta
On 23-11-2011 15:00, Mojca Miklavec wrote: On Wed, Nov 23, 2011 at 09:21, Hans Hagen wrote: On 22-11-2011 22:38, Thomas A. Schmitz wrote: Hi Hans, the files typo-itc.lua and typo-itc.mkvi are missing in today's beta; I assume that's just an oversight? this is probably one of those rare cases of unzipping the archive at the garden interfering with an update .. i'll re-uploade later today The problem was a failure of rsync server on pragma. I was fetching from rsync -a rsync://ctx.pragma-ade.nl/beta/ and that one seems to be down at the moment. I changed to http mode now. Ah, sorry ... we have been cleaning up the routers and as I couldn't remember why rsync was enabled I disabled the rule. It should work again. 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] Avoiding widows and orphans (again?)
Good day to you, I saw the related messages in the archive, but I don't really get it. I'm looking for a (global) setting, that prevents the last line of a paragraph to slip on the next page. If it really must, it shall also drag another one with it for company. Please enlighten me. ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Avoiding widows and orphans (again?)
On 23-11-2011 15:45, Christian wrote: Good day to you, I saw the related messages in the archive, but I don't really get it. I'm looking for a (global) setting, that prevents the last line of a paragraph to slip on the next page. If it really must, it shall also drag another one with it for company. \setuplayout[preset=strict] - 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] inactive hyperlink?
On 21-11-2011 20:36, Hans van der Meer wrote: There is something with creating hyperlinks I do not understand. Did \setupinteraction[state=start] Situation-1: \placefigure[][reftofigure].. gives me with \in.. a clickable link. Situation-2: \pagereference[reftoplace] (or \textreference, \reference} do give me a link-colored text with \in{txt}[reftoplace] but nothing happens. What in my definition of the link is wrong? Adding \setupreferencing[interaction=all] didn't help. works ok here: \setupinteraction[state=start] \starttext reference: one\pagereference[reftoplace:1] link: \at{page}[reftoplace:1] link: \at{page}[reftoplace:2] \page reference: two\pagereference[reftoplace:2] \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] current version?
On Wed, Nov 23, 2011 at 00:37, Jon Crump wrote: > Dear all, > > Can someone help? By some incantation that I cannot now seem to > reproduce, I was able to obtain and install: > mtx-context | current version: 2011.11.14 16:17 > > In an attempt to update this version, I ran first-setup.sh found at > http://minimals.contextgarden.net/setup/first-setup.sh and what got > installed was: > mtx-context | current version: 2011.05.18 18:04 > > Can anyone tell me how to get back to 2011.11.14 or to the latest version? Just try to fetch again. I need to fix a few scripts to make them more bullet proof against failures (Hans switched off rsync server and my scripts thought that beta has been removed from server). 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] Use ConTeXt standalone (was: current version?)
All, Thanks for responding, and for the link to gitorious. Hans and Mojca appear to have fixed the rsync repo and I'm back to what appears to be the current beta: 2011.11.22 16:49 Jon On Wed, Nov 23, 2011 at 1:41 AM, Florian Wobbe wrote: >>> Can anyone tell me how to get back to 2011.11.14 or to the latest version? > > You'll either have to wait until Mojca or Hans fix the rsync archive, or you > pull the minimals from gitorious [2]. > > Florian > > [1] http://www.pragma-ade.nl/download-1.htm > [2] http://www.gitorious.org/context > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Avoiding widows and orphans (again?)
Am 23.11.2011 um 16:29 schrieb Hans Hagen: > On 23-11-2011 15:45, Christian wrote: >> Good day to you, >> >> I saw the related messages in the archive, but I don't really get it. >> >> I'm looking for a (global) setting, that prevents the last line of a >> paragraph to slip on the next page. If it really must, it shall also drag >> another one with it for company. > > \setuplayout[preset=strict] It’s also possible to set a certain number of lines with the following: \starttext \setpenalties\widowpenalties{3}{1} \dorecurse{740}{text } \stoptext The number of lines is always “n+1” (3+1) because the penalty is added before the last three lines. 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] current version?
Mojca, Thanks very much. Tried again this morning with success. Jon On Wed, Nov 23, 2011 at 7:46 AM, Mojca Miklavec wrote: > On Wed, Nov 23, 2011 at 00:37, Jon Crump wrote: >> Can anyone tell me how to get back to 2011.11.14 or to the latest version? > > Just try to fetch again. > > I need to fix a few scripts to make them more bullet proof against > failures (Hans switched off rsync server and my scripts thought that > beta has been removed from server). > > 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] Floating picture in margin with no interference with text/sections
On Wed, Nov 16, 2011 at 3:18 PM, Mikael P. Sundqvist wrote: > Dear list, > > I use mkiv which was installed today. Two questions. > > 1) Is it possible to put floating pictures in the margin without > locking them in the current section? See the following example: > > %%% Start example > \setuplayout[ > rightmargin=5cm, > width=fit, > ] > > %\setuphead[section][ > %aligntitle=float, > %] > > \starttext > \showframe > \section{This is a short section} > It contains one figure. > \placefigure[inright,top][none]{A caption.}{\externalfigure[cow][width=4cm]} > \section{This is another short section} > It contains the same figure. > \placefigure[inright,top][none]{A > caption.}{\externalfigure[cow][width=4cm,height=6cm]} > > \section{This is a third section} > \input knuth > \stoptext > %%% Stop example > > The result is given by > http://tmp.oblandat.se/fig1.pdf > If I uncomment (what I thought was the solution) the \setuphead part I get > http://tmp.oblandat.se/fig2.pdf > which looks better, but not as I want it. I want the sections and the > text to look just as if there were no figures at all, and I want the > figures to be stacked in the margin, the first one at the top of the > margin, and the second one just below the first one. Is this possible? > > 2) If I really must not want a new page right after a section head > (this happens in my long document, but no minimal example is given), > is there any penalty or something i can set? This happens fairly often > with the standard setup, it seems. > > Best regards, Mikael > Dear list, I hate to reply to myself, but one week and no reply, so I do it. Anyone knows if 1) is possible? As for 2) maybe the \setuplayout[preset=strict] just suggested in another thread does what I want? Best regards, Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Integral limits on wrong place
On Tue, Nov 15, 2011 at 7:38 PM, Mikael P. Sundqvist wrote: > Dear list, > > in the latest minimals (downloaded today 15 nov 2011) I get the > integral limits placed below and above the integral sign, per default. > > %%% Example > %\setupmathematics[integral=nolimits] > \starttext > $\int_a^b f(x)\, dx$ > \startformula > \int_a^b f(x)\, dx. > \stopformula > \stoptext > %%% End of example > > The result is http://tmp.oblandat.se/integraltest.pdf > > I'd expect the limits to be placed more to the right. Even if the line > \setupmathematics[integral=nolimits] is uncommented (as suggested on > the wiki) nothing is improved. > > Is this something that has changed recently? I can add a \nolimits at > every integral but that is not a nice option. > > It would be nice to have the integrals back as they used to be. > > With best regards (and thanks in advance), Mikael > Dear list, also here no reply in a week, so I bump it. Is it only me having this issue? Is there a fix? Best regards, Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Bug report: --result switch fails in larger documents
All, Now that I've recovered my latest beta: context.mkiv 2011.11.14 16:17 (thanks Mojca, Hans) I can confirm that the bug still exists as described: On a short test file: context --environment=arabtestI.tex --result=tmp arab-testII.xml success: mtx-context | result renamed to: tmp system | total runtime: 2.839 On a larger file of 54 pages context --environment=svo-tei.tex --result=tmp svoboda_diary.xml failure: mtx-context | fatal error: return code: 1 tmp.pdf not created, but svoboda_diary.pdf is updated instead. Regression error? List correspondence from March with subject '620 pages limit?' seems related. Correspondence ends with "Taco found the bug (thanks!): There is a fix luatex rev. 4093." Thoughts? Jon ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Bug report: --result switch fails in larger documents
On 23-11-2011 17:25, Jon Crump wrote: All, Now that I've recovered my latest beta: context.mkiv 2011.11.14 16:17 (thanks Mojca, Hans) I can confirm that the bug still exists as described: On a short test file: context --environment=arabtestI.tex --result=tmp arab-testII.xml success: mtx-context | result renamed to: tmp system | total runtime: 2.839 On a larger file of 54 pages context --environment=svo-tei.tex --result=tmp svoboda_diary.xml failure: mtx-context | fatal error: return code: 1 tmp.pdf not created, but svoboda_diary.pdf is updated instead. Regression error? List correspondence from March with subject '620 pages limit?' seems related. Correspondence ends with "Taco found the bug (thanks!): There is a fix luatex rev. 4093." Thoughts? the current version of luatex in the garden is probably somewhat older 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] Integral limits on wrong place
On 23-11-2011 17:21, Mikael P. Sundqvist wrote: On Tue, Nov 15, 2011 at 7:38 PM, Mikael P. Sundqvist wrote: Dear list, in the latest minimals (downloaded today 15 nov 2011) I get the integral limits placed below and above the integral sign, per default. %%% Example %\setupmathematics[integral=nolimits] \starttext $\int_a^b f(x)\, dx$ \startformula \int_a^b f(x)\, dx. \stopformula \stoptext %%% End of example The result is http://tmp.oblandat.se/integraltest.pdf I'd expect the limits to be placed more to the right. Even if the line \setupmathematics[integral=nolimits] is uncommented (as suggested on the wiki) nothing is improved. Is this something that has changed recently? I can add a \nolimits at every integral but that is not a nice option. It would be nice to have the integrals back as they used to be. With best regards (and thanks in advance), Mikael Dear list, also here no reply in a week, so I bump it. it just ends op my (large) stack of to-be-looked into so reminding helps Is it only me having this issue? Is there a fix? patch this in in math-int.mkiv: \appendtoks \mathintlimitmode\executeifdefined{\??mo::\v!integral::\@@mointegral}\zerocount \to \everysetupmathematics - 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] Floating picture in margin with no interference with text/sections
On 23-11-2011 17:20, Mikael P. Sundqvist wrote: Anyone knows if 1) is possible? \placefigure[margin][none]{A caption.}{\externalfigure[cow][width=4cm,height=6cm]} but it has to be improved (pretty old mechanism) 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] beta
Hi, Todays beta ... - some improvements/more options to xtables (see manual) -- experimental degrees in units: \starttext \startlines \unit{10° celsius} \unit{10 deg celsius} \unit{10 degree celsius} \unit{10 degrees celsius} \stoplines \stoptext -- speedup of alignment settings (nice for bTABLE etc) -- a few fixes 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] Metapost graphics in separate file, help needed
Dear List, I am experiencing a strange problem. I have a project, essentially with the following structure (desperate attempt to keep track of my stuff): mainfile.mkiv: % BOF ...lots of setups and settings... \starttext \input metapostgraphics.mkiv \input chapter1.mkiv \input chapter2.mkiv \input chapter3.mkiv \stoptext % EOF I generate the PDF with 'context mainfile.mkiv' So far for the structure. Now my problem: metapostgraphics.mkiv contains several (4) metapost graphics with \startuseMPgraphics{nameX} ... \stopuseMPgraphics. In chapter2.mkiv I want to use them with \useMPgraphics{nameX}. It worked well until today, when I added a fifth graphic. Then I suddenly get a frame with 'undefined' inside instead of the picture. I tried everything, checked for typos, tried different names, double checked the MP-code etc. but to no avail. It only works if I put the exact same MP-code between \startMPcode \stopMPcode directly in the chapter2.mkiv What is wrong here? Am I missing something? Did I get the input mechanism all wrong? ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Text in a box now broken
On Wed, 2011-11-23 at 11:03 +0100, Hans Hagen wrote: > it depends .. if you have small boxes, you as well use a regular > framedtext (with background) or when you span pages you can use > textbackgrounds ... the backgrounds you use is some compromise Hmm, I am using boxes that sometimes span multiple pages. This is what I was using originally. How would it look if it used textbackgrounds? \definestartstop [TimelineDocument] [before={ \crlf \setupbackground[frame=on, before=\blank, after=\blank, corner=round, topoffset=0.5cm, leftoffset=0.5cm, rightoffset=0.5cm, bottomoffset=0.5cm] \startbackground }, after={ \stopbackground \crlf }, commands={\setupalign[yes]}, style=italic] \starttext \startTimelineDocument Some stuff in a box. \stopTimelineDocument \stoptext -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Metapost graphics in separate file, help needed
On 23-11-2011 19:23, Christian wrote: Dear List, I am experiencing a strange problem. I have a project, essentially with the following structure (desperate attempt to keep track of my stuff): mainfile.mkiv: % BOF lots of setups and settings... \starttext \input metapostgraphics.mkiv \input chapter1.mkiv \input chapter2.mkiv \input chapter3.mkiv \stoptext % EOF I generate the PDF with 'context mainfile.mkiv' So far for the structure. Now my problem: metapostgraphics.mkiv contains several (4) metapost graphics with \startuseMPgraphics{nameX} ... \stopuseMPgraphics. In chapter2.mkiv I want to use them with \useMPgraphics{nameX}. It worked well until today, when I added a fifth graphic. Then I suddenly get a frame with 'undefined' inside instead of the picture. I tried everything, checked for typos, tried different names, double checked the MP-code etc. but to no avail. It only works if I put the exact same MP-code between \startMPcode \stopMPcode directly in the chapter2.mkiv What is wrong here? Am I missing something? Did I get the input mechanism all wrong? What happens if you make a simple file with the 4 \useMPgraphics in it .. does that one process? Maybe there is a problem with the graphics in the sense that you cannto run them all in a row. 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] Text in a box now broken
On 23-11-2011 20:02, Kip Warner wrote: On Wed, 2011-11-23 at 11:03 +0100, Hans Hagen wrote: it depends .. if you have small boxes, you as well use a regular framedtext (with background) or when you span pages you can use textbackgrounds ... the backgrounds you use is some compromise Hmm, I am using boxes that sometimes span multiple pages. This is what I was using originally. How would it look if it used textbackgrounds? \definestartstop [TimelineDocument] [before={ \crlf \setupbackground[frame=on, before=\blank, after=\blank, corner=round, topoffset=0.5cm, leftoffset=0.5cm, rightoffset=0.5cm, bottomoffset=0.5cm] \startbackground }, after={ \stopbackground \crlf }, commands={\setupalign[yes]}, style=italic] \starttext \startTimelineDocument Some stuff in a box. \stopTimelineDocument \stoptext google: context wiki textbackground -- - 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] Streams
Hi, I was looking for a possibility to typeset an article left in the original language and right in the translation.I found then the mail of Thomas, when he announced the availability of streams (2006). - Great, that is what I am looking for! However when issuing \usemodule[streams] I get immediately a fatal error: undefined controlsequence. I believe is \defineoutputstream. So it looks like the module is broken. - Is there another approach to get two texts in different languages next to each other? Kind regards Willi ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Metapost graphics in separate file, help needed
It only works if I put the exact same MP-code between \startMPcode \stopMPcode directly in the chapter2.mkiv What is wrong here? Am I missing something? Did I get the input mechanism all wrong? What happens if you make a simple file with the 4 \useMPgraphics in it .. does that one process? Maybe there is a problem with the graphics in the sense that you cannto run them all in a row. You can also try adding begingroup; endgroup; inside each MP figure. I always wished that this was the default behaviour. 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] Streams
Am 23.11.2011 um 20:31 schrieb Willi Egger: > Hi, > > I was looking for a possibility to typeset an article left in the original > language and right in the translation.I found then the mail of Thomas, when > he announced the availability of streams (2006). - Great, that is what I am > looking for! > > However when issuing \usemodule[streams] I get immediately a fatal error: > undefined controlsequence. I believe is \defineoutputstream. > > So it looks like the module is broken. - Is there another approach to get two > texts in different languages next to each other? You don’t need the mode for MkIV. Below is a example copied from the source: % \enabletrackers[streams.flushing] % % \setuplayout[grid=yes] \showgrid % % \starttext % % \input tufte % % \startoutputstream[nl] % % Wat doen we hier? % % \enableoutputstream[en] % % Are you sleeping, brother John?\footnote{xxx} % % \dorecurse{4}{x \footnote{note \recurselevel}\input tufte \par \pushoutputstream} % % \enableoutputstream[de] % % Bruder Jakob, schläfst du noch?\footnote{yyy} % % \dorecurse{4}{x \footnote{note \recurselevel}\input ward \par \pushoutputstream} % % \disableoutputstream % % \stopoutputstream % % Vader Jacob, slaap je nog?\footnote{zzz} % % \input tufte % % \synchronizestreams[en,de,nl] % % \page \flushoutputstream[en] \input knuth % \page \flushoutputstream[de] \input knuth % \page \flushoutputstream[nl] \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] Metapost graphics in separate file, help needed
Thanks for the suggestions so far. I' currently testing Hans' idea and it seems to be a problem with caching. The simple file I made where I just use each graphic runs into an error, but the corresponding code (undefined control sequence '\sb') is definitely not in the current source file of the graphics. How do I clear the cache to force recalculation of the MP-graphics? > -Ursprüngliche Nachricht- > Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im > Auftrag von Aditya Mahajan > Gesendet: Mittwoch, 23. November 2011 20:33 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Metapost graphics in separate file, help needed > > >> It only works if I put the exact same MP-code between \startMPcode > >> \stopMPcode directly in the chapter2.mkiv > >> > >> What is wrong here? Am I missing something? Did I get the input > >> mechanism all wrong? > > > > What happens if you make a simple file with the 4 \useMPgraphics in it .. > > does that one process? Maybe there is a problem with the graphics in > > the sense that you cannto run them all in a row. > > You can also try adding > > begingroup; > > endgroup; > > inside each MP figure. I always wished that this was the default behaviour. > > 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 > __ > _ ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Metapost graphics in separate file, help needed
On 23-11-2011 20:32, Aditya Mahajan wrote: It only works if I put the exact same MP-code between \startMPcode \stopMPcode directly in the chapter2.mkiv What is wrong here? Am I missing something? Did I get the input mechanism all wrong? What happens if you make a simple file with the 4 \useMPgraphics in it .. does that one process? Maybe there is a problem with the graphics in the sense that you cannto run them all in a row. You can also try adding begingroup; . endgroup; inside each MP figure. I always wished that this was the default behaviour. Actually, last week I was tempted to do that but I cannot oversee the consequences. It is probably harmless. The interesting thing is that beginfig/endfig have grouping but somehow it does not work out well. 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] equation numbering
Hi Hans, Could you please give an example in which you see the behaviour you are reporting? I tried with mkii and mkiv but could not reproduce what you describe. Best regards: OK On 21 nov. 2011, at 21:39, Meer, H. van der wrote: > ConTeXt still has some mysteries for me ;-) > This time it is the equationnumbering. > Doing \placeformula\startformula..\stopformula gives the equation a certain > number, lets say (1.5). > Now I change the call to > \placeformula[equ:thisfml]\startformula..\stopformula and the number changes > to (1.6). > > Why is this? What I have in mind is to number all formula consecutively with > (chapternumber.1), chapternumber.2) etc. Regardless whether I want to > reference some of the equations later on and some can stay without a > reference because that is not needed. Nevertheless, the ascending numbering > pleases me. > > Hans van der Meer > > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > 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] Metapost graphics in separate file, help needed
Oh boy. This is embarrassing! Turns out the file that was open in notepad++ was not the one in the path of my project, but had the exact same name. And I was editing this sucker instead of the real file. I guess I should reload my files during sessions. Problem solved, it's sitting right in front of the screen and is banging his head hard against the wall now. I'm truly sorry that I have wasted your time. > -Ursprüngliche Nachricht- > Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im > Auftrag von Hans Hagen > Gesendet: Mittwoch, 23. November 2011 20:59 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Metapost graphics in separate file, help needed > > On 23-11-2011 20:32, Aditya Mahajan wrote: > >>> It only works if I put the exact same MP-code between \startMPcode > >>> \stopMPcode directly in the chapter2.mkiv > >>> > >>> What is wrong here? Am I missing something? Did I get the input > >>> mechanism all wrong? > >> > >> What happens if you make a simple file with the 4 \useMPgraphics in > >> it .. does that one process? Maybe there is a problem with the > >> graphics in the sense that you cannto run them all in a row. > > > > You can also try adding > > > > begingroup; > > . > > endgroup; > > > > inside each MP figure. I always wished that this was the default behaviour. > > Actually, last week I was tempted to do that but I cannot oversee the > consequences. It is probably harmless. The interesting thing is that > beginfig/endfig have grouping but somehow it does not work out well. > > 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 > __ > _ ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Streams
Hi Wolfgang, thank you for your answer! Aha, mkiv does not need the module. So I tried first the example en then used my actual document. - It runs through indeed! Now there is still the question whether it is possible to place e.g. on the left page German text and in parallel on the right page Dutch text? Have a nice evening! Willi On 23 Nov 2011, at 20:43, Wolfgang Schuster wrote: > > Am 23.11.2011 um 20:31 schrieb Willi Egger: > >> Hi, >> >> I was looking for a possibility to typeset an article left in the original >> language and right in the translation.I found then the mail of Thomas, when >> he announced the availability of streams (2006). - Great, that is what I am >> looking for! >> >> However when issuing \usemodule[streams] I get immediately a fatal error: >> undefined controlsequence. I believe is \defineoutputstream. >> >> So it looks like the module is broken. - Is there another approach to get >> two texts in different languages next to each other? > > You don’t need the mode for MkIV. Below is a example copied from the source: > > % \enabletrackers[streams.flushing] > % > % \setuplayout[grid=yes] \showgrid > % > % \starttext > % > % \input tufte > % > % \startoutputstream[nl] > % > % Wat doen we hier? > % > % \enableoutputstream[en] > % > % Are you sleeping, brother John?\footnote{xxx} > % > % \dorecurse{4}{x \footnote{note \recurselevel}\input tufte \par > \pushoutputstream} > % > % \enableoutputstream[de] > % > % Bruder Jakob, schläfst du noch?\footnote{yyy} > % > % \dorecurse{4}{x \footnote{note \recurselevel}\input ward \par > \pushoutputstream} > % > % \disableoutputstream > % > % \stopoutputstream > % > % Vader Jacob, slaap je nog?\footnote{zzz} > % > % \input tufte > % > % \synchronizestreams[en,de,nl] > % > % \page \flushoutputstream[en] \input knuth > % \page \flushoutputstream[de] \input knuth > % \page \flushoutputstream[nl] \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 > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Metapost graphics in separate file, help needed
On 23-11-2011 20:50, Christian wrote: How do I clear the cache to force recalculation of the MP-graphics? fyi: There is no cache in mkiv as mp is run internally, which is why it is so fast (and in mkii caching is clever enough to determine a change). 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] Combinations without any vertical space
How do I create combinations without any vertical space? The following test file \definecombination [overviewpage] [distance=\zeropoint, inbetween=, ] \starttext \startcombination[overviewpage][2*2] {\framed{Hello}}{}% {\framed{Hello}}{}% {\framed{Hello}}{}% {\framed{Hello}}{}% \stopcombination \stoptext gives the attached result. Note that there is still vertical space between the two rows. How can I get rid of this space? Aditya test.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] Bug with location=nonumber
On Mon, 21 Nov 2011, Hans Hagen wrote: On 21-11-2011 09:38, Aditya Mahajan wrote: Hi, Consider the following test file \starttext \startplacefigure[location={here,nonumber}, title=none] test \stopplacefigure \startplacefigure[location={here,nonumber}, title={test}] test \stopplacefigure \stoptext The title of the second figure is displayed. The "bug" is because I have used location=nonumber in the first figure. If I remove `nonumber` from the first figure and use \startplacefigure[location=here, title=none] then the title of the second figure is displayed. I'm not sure if I understand the problem ... can you check with the upcoming beta? Everythin works fine in the latest beta. 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] Text in a box now broken
On Wed, 2011-11-23 at 20:08 +0100, Hans Hagen wrote: > google: context wiki textbackground Thanks, but I still don't know what was wrong with the old method. In any case, I am experimenting now with textbackground. Thanks again for your help. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Natural Tables---Including a bit of cell
Hans, This didn't quite achieve what I was looking for. I was hoping for the formatting of circuit 4 in the output file test.pdf, rather than what was produced for circuit 8. I modified the definition of \spare so that by default a 15A breaker is assumed unless otherwise specified. However, a more pressing problem is this: If I remove the comments from the row previous, i.e., I have two rows for which I want nr=2, I get the strange artifact in test+.pdf where the second row gets wrapped up a row. Even with the comments in place, the last row is single height. What I really want are two double height rows similar to circuits 2 and 4 but for the entire row. advTHANKSance Message: 1 Date: Wed, 23 Nov 2011 09:38:51 +0100 From: Hans Hagen To: pavneet_ar...@waroc.com,mailing list for ConTeXt users Subject: Re: [NTG-context] Natural Tables---Including a bit of cell style in a \define Message-ID:<4eccb11b.2010...@wxs.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 22-11-2011 13:08, Pavneet Arora wrote: I am creating documentation labeling the circuits of electrical and network panels for a project of mine. Enclosed is a minimal example. What I would like is to define two macros: \unused and \spare (\unused referring to a circuit with no breaker installed, while \spare referring to a circuit with a breaker, but no load). I wish these definitions to not only include the represented text and font directives, i.e., {\tt [Unused]}, but also shade the cell in a background color. However, I cannot seem to figure out how to do that. Including the `[background=color,backgroundcolor=gray]' in the \define seems to be expanded back simply as text. Any suggestions? \define\unused {\inframed [foregroundstyle=type, background=color, backgroundcolor=gray, frame=off] {[Unused]}} - 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 - -- - - Pavneet Arora \setuppapersize[legal] \setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in] \setuppagenumbering[location=] \setupbodyfont[11pt] \starttext %\showlayout[pt,in] %\showbodyfont \define\unused{ {\inframed [foregroundstyle=type, background=color, backgroundcolor=gray, frame=off] {\tt [Unused]}} } \def\spare{\dosingleempty\doSpare} \def\doSpare[#1]{% \iffirstargument {\tt [#1]} \else {\tt [15A]} \fi {\tt [Spare]} } \startalignment[center] {\tfb Electrical Room Electrical Panel} \blank {\tfa\sc Electrical Panel} \blank {\tfa Panel Model: Siemens} \blank {\tfb \tt [DRAFT---To Be Verified]} \blank[2*big] \stopalignment \setupTABLE[frame=off] \setupTABLE[r][each][height=0.35in] \setupTABLE[c][1,3][align={center,lohi},width=0.75in] \setupTABLE[c][2,4][align={flushleft,lohi},width=2.25in,loffset=0.1in] \setupTABLE[r][4,6][topframe=on] \setupTABLE[r][1][topframe=on,bottomframe=on] \setupTABLE[r][last][bottomframe=on] \midaligned{ \bTABLE \bTABLEbody \bTR \bTD Circuit \eTD \bTD Description \eTD \bTD Circuit \eTD \bTD Description \eTD \eTR \bTR \bTD 1A \eTD \bTD Roof Heating Control Panel \eTD \bTD [nr=2] 2 \eTD \bTD [nr=2] F1 Master Ensuite Steam Unit \eTD \eTR \bTR \bTD 1B \eTD \bTD Recreation Room Plugs \eTD \eTR \bTR \bTD 3A \eTD \bTD Attic Roof Drain Heating Cables \eTD \bTD [nr=2] 4 \eTD \bTD [background=color,backgroundcolor=gray,nr=2] \spare \eTD \eTR \bTR \bTD 3B \eTD \bTD \spare \eTD \eTR % \bTR % \bTD [nr=2] 5 \eTD \bTD [nr=2] Bedrooms 2+3 Arc Fault Plugs \eTD % \bTD [nr=2] 6 \eTD \bTD [nr=2] Roof Heating Cable \eTD % \eTR \bTR \bTD [nr=2] 7 \eTD \bTD [nr=2] Bedroom 4 Arc Fault Plug \eTD \bTD [nr=2] 8 \eTD \bTD [nr=2] \unused \eTD \eTR \eTABLEbody \eTABLE } \stoptext test.pdf Description: Adobe PDF document test+.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] TextBackground text area
Hey folks, I've been pulling my hair out for hours, as I can't seem to figure out how to set the margin with and height for a textbackground area so the text doesn't start immediately at the left frame line and go to the right frame line. I am using this: \definetextbackground[FramedText][ location=paragraph, color=color_text, background=color, backgroundcolor=colour_page, framecolor=colour_text, leftoffset=1.0\bodyfontsize, rightoffset=1.0\bodyfontsize, before={ \blank \startnarrower }, after={ \blank \stopnarrower }, style=italic, corner=round, frame=on] -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] TextBackground text area
On Wed, 23 Nov 2011, Kip Warner wrote: I've been pulling my hair out for hours, as I can't seem to figure out how to set the margin with and height for a textbackground area so the text doesn't start immediately at the left frame line and go to the right frame line. I am using this: \definetextbackground[FramedText][ location=paragraph, color=color_text, background=color, backgroundcolor=colour_page, framecolor=colour_text, leftoffset=1.0\bodyfontsize, rightoffset=1.0\bodyfontsize, before={ \blank \startnarrower }, after={ \blank \stopnarrower }, style=italic, corner=round, frame=on] Why not just increase the value of leftoffset and rightoffset? \definetextbackground[FramedText][ location=paragraph, color=black, background=color, backgroundcolor=blue:2, framecolor=green:2, leftoffset=1cm, rightoffset=1cm, style=italic, corner=round, frame=on] \starttext \startFramedText \input knuth \endgraf \stopFramedText \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] Natural Tables---Including a bit of cell
On Wed, 23 Nov 2011, Pavneet Arora wrote: Hans, This didn't quite achieve what I was looking for. I was hoping for the formatting of circuit 4 in the output file test.pdf, rather than what was produced for circuit 8. I modified the definition of \spare so that by default a 15A breaker is assumed unless otherwise specified. A slightly ugly solution. \def\unusedbTD {\dosingleempty\dounusedbTD} \def\dounusedbTD[#1]% {\bTD[foregroundstyle=type,background=color, backgroundcolor=gray,frame=off] [Unused] } and then use \bTD [nr=2] 8 \eTD \unusedbTD[nr=2] \eTD You can also look at xtables for an easier way to change settings of cell. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Layout: partial width blocks
Hello again, I'm working on a 2-column layout for a journal, and I want to keep the title and abstract of each article from running across the full width of the page (a small graphic will appear in the upper right corner of the first article page). For the article title, this works: \def\ArticleTitle#1#2% {\hbox to \hsize\bgroup \setupframed[frame=off]% \tbox{\framed[offset=0pt,width=.8\makeupwidth,align=right]{#2}}% \hfill \egroup} \setuphead[title][% header=high, before={\hbox{}\blank[5mm]\vfill{}}, after={\hbox{}\blank[5mm]\vfill{}}, command=\ArticleTitle, style=\tfb\se, textstyle=\ss] And for the abstract, I have come up with this: \definebodyfontenvironment[10pt][text=10pt,interlinespace=12pt] \defineframedtext[topwidth][% style={\switchtobodyfont[10pt]}, width=.8\makeupwidth, offset=0pt, frame=off] \definedescription[abstract][% location=serried, width=broad, headstyle={\ss\se}, text={Abstract}, before=\starttopwidth, after=\stoptopwidth] However I can't control the lineheight within the abstract; I'm stuck with the default lineheight but I would ilke it to be larger. 1. Can someone tell me why I can change the font size inside the abstract block but not control the line height? 2. Is there a more efficient way of defining an area that is narrower than the full page width to hold these items, instead of using defineframedtext/definedescription for each one? Thanks, PPN -- Peter Park Nelson peter.park.nel...@gmail.com ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Combinations without any vertical space
Am 24.11.2011 um 00:29 schrieb Aditya Mahajan: > How do I create combinations without any vertical space? > > The following test file > > \definecombination >[overviewpage] >[distance=\zeropoint, > inbetween=, >] > > \starttext > \startcombination[overviewpage][2*2] > {\framed{Hello}}{}% > {\framed{Hello}}{}% > {\framed{Hello}}{}% > {\framed{Hello}}{}% > \stopcombination \startcombination[overviewpage][2*1] {\framed{Hello}}{\framed{Hello}} {\framed{Hello}}{\framed{Hello}} \stopcombination or use a natural table. 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] Combinations without any vertical space
On Thu, 24 Nov 2011, Wolfgang Schuster wrote: Am 24.11.2011 um 00:29 schrieb Aditya Mahajan: How do I create combinations without any vertical space? The following test file \definecombination [overviewpage] [distance=\zeropoint, inbetween=, ] \starttext \startcombination[overviewpage][2*2] {\framed{Hello}}{}% {\framed{Hello}}{}% {\framed{Hello}}{}% {\framed{Hello}}{}% \stopcombination \startcombination[overviewpage][2*1] {\framed{Hello}}{\framed{Hello}} {\framed{Hello}}{\framed{Hello}} \stopcombination Well, the example was too simplistic. After a bit of trial and error, the following gives the desired effect. \setupcombinations[...][before=,after=] Thanks, 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] Combinations without any vertical space
Hello ConTeXist. The thing I'm interested. It is possible to achieve that arose at the bottom of an emptyspace and was fully utilized the entire page? Here is an minimal example: \definecombination [overviewpage] [distance=\zeropoint, inbetween=, ] \setuplayout[page] \startTEXpage \startcombination[overviewpage][2*1] {\framed{Hello}}{\framed{Hello}} {\framed{Hello}}{\framed{Hello}} \stopcombination \stopTEXpage Thanx Jaroslav Dne 24.11.2011 7:25, Aditya Mahajan napsal(a): On Thu, 24 Nov 2011, Wolfgang Schuster wrote: Am 24.11.2011 um 00:29 schrieb Aditya Mahajan: How do I create combinations without any vertical space? The following test file \definecombination [overviewpage] [distance=\zeropoint, inbetween=, ] \starttext \startcombination[overviewpage][2*2] {\framed{Hello}}{}% {\framed{Hello}}{}% {\framed{Hello}}{}% {\framed{Hello}}{}% \stopcombination \startcombination[overviewpage][2*1] {\framed{Hello}}{\framed{Hello}} {\framed{Hello}}{\framed{Hello}} \stopcombination Well, the example was too simplistic. After a bit of trial and error, the following gives the desired effect. \setupcombinations[...][before=,after=] Thanks, 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 ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] TextBackground text area
On Wed, 2011-11-23 at 21:52 -0500, Aditya Mahajan wrote: > Why not just increase the value of leftoffset and rightoffset? Because then the text is fine on the left side, but then goes past the right frame border. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___