[NTG-context] newlines after keywords
Hello, I would like to separate multiple keywords with newline-chars. The following doesn't work: \setupinteraction[keyword={first\r\n,second\r\n,third},state=start] How can this be done? Gruß, 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] newlines after keywords
On Tue, 18 Mar 2008 11:55:02 +0100 "Wolfgang Werners-Lucchini" <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to separate multiple keywords with newline-chars. > > The following doesn't work: > > \setupinteraction[keyword={first\r\n,second\r\n,third},state=start] > > How can this be done? \setupinteraction[keyword={first\string\nsecond\string\nthird},state=start] You could ask Hans to define "\\" as shortcut for \string\n inside of the keywords list. Greetings 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] processing xml in mkiv
On Mar 17, 2008, at 2:04 PM, Taco Hoekwater wrote: > It is a bug in luatex, but not an easy one to fix. The simplest > workaround (for now) is to patch core-job.lua. > > Best wishes, > Taco > > > --- core-job.lua~ 2008-02-13 12:01:06.0 +0100 > +++ core-job.lua2008-03-17 14:02:12.0 +0100 > @@ -64,7 +64,7 @@ > function commands.processfile(name,maxreadlevel) >name = find_file(name,maxreadlevel) >if name ~= "" then > -tex.sprint(tex.ctxcatcodes,string.format("\\input %s\ > \relax",name)) > +tex.print(tex.ctxcatcodes,string.format("\\input %s\ > \relax",name)) >end > end > > Thanks Taco! I was away from my computer yesterday, but will try that today. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Numbering in margin
Hi all, I want some numbers to appear in the paragraph. It's for a commentary, so the numbering isn't continuous, but pretty arbitrary. The problem is, I need two sets of numbers (for sections and subsections), and I want both in the margin, like so: 1 1 Some text 3 More text 4 Even more 3 1 And more 2 and so on 5 Sometimes, there are sections without subsections So far, I have succeeded in doing this with some low-level trickery by defining two commands, LEVELONE and LEVELTWO: \def\LEVELONE#1 {\dontleavehmode\llap{#1\kern1.8em \null}} \def\LEVELTWO#1 {\dontleavehmode\llap{\tfx #1\kern1em \null}} (I need to gobble the space after the command, that's why I included it in the \def). However, I'm wondering if there's a more ConTeXt-like way of doing this, since my next project will be to do this for xml files. I had tried with \inmargin[1] and \inmargin[2], but that didn't quite do what I expected. Any thoughts on this? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Overlay caption placement
Hi all, I have a few pdf figures that I'm including in a large report that are essentially full page (portrait) diagrams. However, they each have blank space in the lower right corner and I was thinking that it would be nice to put the caption in this spot. Is there a way to overlay a caption on top of a floating figure? Ideally, I'd like to be able to provide an x,y offset location for these captions in cm. Is there something I'm missing in setupcaption? Cheers, Dave ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Numbering in margin
On Mar 18, 2008, at 5:06 PM, Thomas A. Schmitz wrote: > Hi all, > > I want some numbers to appear in the paragraph. Oh shoot, please make that: "appear in the margin." 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] figure libraries (mkiv)
Hi Hans, Looks like I'm the only one using resource libs. I have tried to solve the problem with figure inclusion, but my lua is still too bad (coroutines). At least I have found the place where things go wrong. function figures.bases.find(basename,askedlabel) [..] if base[2] and base[3] then for e, d, k in xml.elements(base[3],"/(rlx:library|figurelibrary)/*:figure/*:label") do page = page + 1 if xml.content(d[k]) == askedlabel then t = { base = file.replacesuffix(base[2],"pdf"), format = "pdf", name = xml.filters.text(e,"*:file"), -- always empty page = page, -- wrong pagenumber (far too high) } -- tex.sprint(table.serialize(t)) figures.bases.found[askedlabel] = t break end end end [..] And what is the correct namespace for resource libraries? You use rlx for the element, and a joker for . The example in x-res-04.tex should be updated then (uses rl for all). For testing I have changed the prefix to rl (as my test databases use rl). I can send you a small 7z with my test files. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MKIV: context.tex not found
On Fri, Mar 14 2008, Hans Hagen wrote: > > I've put the output of the command > > MTX_INPUT_TRACE=10 luatools --ini --compile cont-en > > on the page http://pmrb.free.fr/tmp/luatools-log/ > > > > One for version 2008.01.28 (no problem). > > And one for version 2008.03.11 (context.tex not found). > > > > luatools.lua and mtxrun.lua have been copied without suffix into .../bin > > > > Could someone take a look please? > > > > What further information should I provide? > > can you send me your > > (1) luatools.lua > (2) luat-inp.lua Hello, After bothering Hans and Taco pretty much, here comes finally the solution of the mystery: don't use the environment variable "TEXINPUTS" with MKIV! There is also a spelling error in mtxrun.lua and luatools.lua: local lf = filelist and filelist[1] -> local fl = filelist and filelist[1] But it wasn't the reason for my problem. Is there a good place in the wiki, where to put this information? Cheers, Peter -- http://pmrb.free.fr/contact/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MKIV: context.tex not found
> After bothering Hans and Taco pretty much, here comes finally the solution > of the mystery: don't use the environment variable "TEXINPUTS" with MKIV! I would even say: don't use it at all. If you really have to, don't put it in a configuration file, at any rate; just set it in the current environment. What do you need it for in Mark II? > Is there a good place in the wiki, where to put this information? Installation instructions? Arthur ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] setupexternalfigures broken ?
setupexternalfigures seems broken on ConTeXt ver: 2008.03.11 23:55 MKIV fmt: 2008.3.18 int: english/english This is LuaTeX, Version snapshot-0.25.0-2008031821 I'm only able to include images from current dir. -- luigi it's new . it's powerful . it's luatex . http://www.luatex.org ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setupexternalfigures broken ?
On Tue, Mar 18, 2008 at 11:24 PM, Thomas A. Schmitz <[EMAIL PROTECTED]> wrote: > > On Mar 18, 2008, at 11:18 PM, luigi scarso wrote: > > > setupexternalfigures seems broken on > > ConTeXt ver: 2008.03.11 23:55 MKIV fmt: 2008.3.18 int: english/ > > english > > This is LuaTeX, Version snapshot-0.25.0-2008031821 > > > > I'm only able to include images from current dir. > > > > Seems to work here with. I have > > \setupexternalfigures[directory={../pictures}] > > and my pictures are found. Not here. To be more precise % engine=luatex \setupexternalfigures[directory={./images}] \starttext OK \externalfigure[/opt/works/2ufficio/2ufficio/CATALOGO_DUEUFFICIO/img/3M81890XX.jpg] OK \externalfigure[./images/3M81890XX.jpg] NO \externalfigure[3M81890XX.jpg] \stoptext -- luigi it's new . it's powerful . it's luatex . http://www.luatex.org ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setupexternalfigures broken ?
On Mar 18, 2008, at 11:18 PM, luigi scarso wrote: > setupexternalfigures seems broken on > ConTeXt ver: 2008.03.11 23:55 MKIV fmt: 2008.3.18 int: english/ > english > This is LuaTeX, Version snapshot-0.25.0-2008031821 > > I'm only able to include images from current dir. > Seems to work here with. I have \setupexternalfigures[directory={../pictures}] and my pictures are found. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___