Re: [NTG-context] ntg-context Digest, Vol 100, Issue 63
![](https://secure.gravatar.com/avatar/19b106c5877a79aaf7350b8a15a3b062.jpg?s=120&d=mm&r=g)
Hi Wolfgang,
Thanks for the quick and helpful reply. Is there also a way to change just
the number colour and style in the example you provided?
-Shane Peelar
On Tue, Oct 23, 2012 at 12:21 PM,
Send ntg-context mailing list submissions to ntg-context@ntg.nl
To subscribe or unsubscribe via the World Wide Web, visit http://www.ntg.nl/mailman/listinfo/ntg-context or, via email, send a message with subject or body 'help' to ntg-context-request@ntg.nl
You can reach the person managing the list at ntg-context-owner@ntg.nl
When replying, please edit your Subject line so it is more specific than "Re: Contents of ntg-context digest..."
Today's Topics:
1. Re: Lua in Ctx: "require()" fails? (Hans Hagen) 2. Re: using two columns on a poster (\setlayerframed) (Hans Hagen) 3. Re: Lua in Ctx: "require()" fails? (Proch?zka Luk?? Ing. - Pontex s. r. o.) 4. Re: TABLE: header with a thick bottom line (Rogers, Michael K) 5. Re: Lua in Ctx: "require()" fails? (Hans Hagen) 6. Some odd behaviour I noticed in MkIV with respect to enumerations (Shane Peelar) 7. Re: Some odd behaviour I noticed in MkIV with respect to enumerations (Wolfgang Schuster)
----------------------------------------------------------------------
Message: 1 Date: Tue, 23 Oct 2012 16:53:01 +0200 From: Hans Hagen
To: "Proch?zka Luk?? Ing. - Pontex s. r. o." Cc: mailing list for ConTeXt users Subject: Re: [NTG-context] Lua in Ctx: "require()" fails? Message-ID: <5086AF4D.4000708@wxs.nl> Content-Type: text/plain; charset=ISO-8859-2; format=flowed On 23-10-2012 16:37, Proch?zka Luk?? Ing. - Pontex s. r. o. wrote:
resolvers > libraries > ! checking for "Test.lua" using "lua" path "d:/Lukas/Lua/?.lua" "
in the output log but "d:\Lukas\Lua\Test.lua" is not found here (?!).
So - ?
no clue ... maybe an error in test.lua
---------------------------------------------------------------- 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 -----------------------------------------------------------------
------------------------------
Message: 2 Date: Tue, 23 Oct 2012 16:54:13 +0200 From: Hans Hagen
To: mailing list for ConTeXt users Cc: Mojca Miklavec Subject: Re: [NTG-context] using two columns on a poster (\setlayerframed) Message-ID: <5086AF95.2080904@wxs.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 23-10-2012 16:21, Mojca Miklavec wrote:
On Tue, Oct 23, 2012 at 4:05 PM, Aditya Mahajan wrote:
Perhaps, \startsimplecolumns
Ouch. It seems like I'm asking the same question over and over again, and always get the same answer - to simplify things ;) This works in MKIV, but I have some problems with math in MKIV. In MKII this fails with
! Incomplete \iffalse; all text was ignored after line 49. <inserted text> \fi <*> poster.tex
?
so how does your code look
----------------------------------------------------------------- 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 -----------------------------------------------------------------
------------------------------
Message: 3 Date: Tue, 23 Oct 2012 16:58:57 +0200 From: Proch?zka Luk?? Ing. - Pontex s. r. o.
To: "Hans Hagen" , ConTeXt Subject: Re: [NTG-context] Lua in Ctx: "require()" fails? Message-ID: Content-Type: text/plain; charset=iso-8859-2; format=flowed; delsp=yes On Tue, 23 Oct 2012 16:53:01 +0200, Hans Hagen
wrote: On 23-10-2012 16:37, Proch?zka Luk?? Ing. - Pontex s. r. o. wrote:
resolvers > libraries > ! checking for "Test.lua" using "lua" path "d:/Lukas/Lua/?.lua" "
in the output log but "d:\Lukas\Lua\Test.lua" is not found here (?!).
So - ?
no clue ... maybe an error in test.lua
... Have you seen the content of "Test.lua"? It just prints some text...
When I downgraded Ctx to the previous installed version, it works...
Lukas
-- Ing. Luk?? Proch?zka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezov? 1658 147 14 Praha 4
Tel: +420 244 062 238 Fax: +420 244 461 038
------------------------------
Message: 4 Date: Tue, 23 Oct 2012 15:13:10 +0000 From: "Rogers, Michael K"
To: mailing list for ConTeXt users Subject: Re: [NTG-context] TABLE: header with a thick bottom line Message-ID: < 1E5A50C784A8AD44B420EF5A1E9B2806AFC33F0C@e14mbx20n.Enterprise.emory.net> Content-Type: text/plain; charset="iso-8859-2"
One issue is that the overlay overlaps the text space (reduces whitespace or potentially overlaps letters). One could use a blank row with a black background, but a row seems to have a minimum height of about 2mm. I discovered the "boffset" key, which can be used with the overlay, but it's kludgy.
Perhaps there is a better way...
Michael
\startuseMPgraphic{MP:thickBtm} draw bottomboundary OverlayBox withpen pensquare scaled \frameddimension{bottomrulethickness}; clip currentpicture to OverlayBox; setbounds currentpicture to OverlayBox; \stopuseMPgraphic
\defineoverlay[OL:thickBtm][\useMPgraphic{MP:thickBtm}]
\starttext \bTABLE % Overlay method \setupTABLE[align=middle] % By eye, by trial: boffset = bottomrulethickness/2 - 0.2mm
\setupTABLE[header][background={OL:thickBtm},bottomrulethickness=3mm,boffset=1.3mm] \setupTABLE[row][4][background={OL:thickBtm},bottomrulethickness=1.5mm, boffset=.55mm] % \bTABLEhead\bTR\dorecurse{3}{\bTH#1\eTH}\eTR\eTABLEhead
\bTABLEbody\dorecurse{6}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR}\eTABLEbody \eTABLE \stoptext
________________________________
This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited.
If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments).
------------------------------
Message: 5 Date: Tue, 23 Oct 2012 17:28:58 +0200 From: Hans Hagen
To: "Proch?zka Luk?? Ing. - Pontex s. r. o." Cc: ConTeXt Subject: Re: [NTG-context] Lua in Ctx: "require()" fails? Message-ID: <5086B7BA.1090007@wxs.nl> Content-Type: text/plain; charset=ISO-8859-2; format=flowed On Tue, 23 Oct 2012 16:53:01 +0200, Hans Hagen
wrote: On 23-10-2012 16:37, Proch?zka Luk?? Ing. - Pontex s. r. o. wrote:
resolvers > libraries > ! checking for "Test.lua" using "lua"
On 23-10-2012 16:58, Proch?zka Luk?? Ing. - Pontex s. r. o. wrote: path
"d:/Lukas/Lua/?.lua" "
in the output log but "d:\Lukas\Lua\Test.lua" is not found here (?!).
So - ?
no clue ... maybe an error in test.lua
.... Have you seen the content of "Test.lua"? It just prints some text...
When I downgraded Ctx to the previous installed version, it works...
When I make
e:\tmp\whatever.lua (current path) e:\tmp\whatever\something.lua
And run
\starttext
\enabletrackers[resolvers.libraries]
\startluacode print("LUAINPUTS",os.getenv("LUAINPUTS"))
require("whatever") ; require("something") ; \stopluacode
\stoptext
i get
LUAINPUTS e:/tmp/whatever resolvers > libraries > ! locating "whatever" as "whatever.lua" using formats "texlua" resolvers > libraries > ! checking for "whatever.lua"' using format "tex" resolvers > libraries > ! lib "whatever.lua" located on "whatever.lua" whatever resolvers > libraries > ! locating "something" as "something.lua" using formats "texlua" resolvers > libraries > ! checking for "something.lua"' using format "tex" resolvers > libraries > ! checking for "something.lua"' using format "lua" resolvers > libraries > ! lib "something.lua" located on "e:/tmp/whatever/something.lua" something
so it must be something with your path spec
----------------------------------------------------------------- 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 -----------------------------------------------------------------
------------------------------
Message: 6 Date: Tue, 23 Oct 2012 11:58:05 -0400 From: Shane Peelar
To: ntg-context@ntg.nl Subject: [NTG-context] Some odd behaviour I noticed in MkIV with respect to enumerations Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hello everyone,
I was going through a tutorial to learn how to set up theorem-like environments in ConTeXt: http://www.ntg.nl/maps/36/09.pdf
and I noticed a few strange behaviours. I recognize that this tutorial was written for MkII ConTeXt, but after consulting the documentation in the latest ConTeXt manual and the wiki, I have determined that these features should still work. I'm looking at the "list" functionality of enumerations and descriptions. In MkII, you can do the following:
\defineenumeration[blah][ ... list=listname, listtext={Text goes here}]
and every time the enumeration is used, it'll be placed in the list you specify. The tutorial referenced above uses this to place a list of theorems with proper naming and numbering, as well as lemmas and other math things. In MkIV, I noticed that this functionality doesn't work, or at least not in the same way. I was not able to do:
\placelist[enumeration:listname]
for example. I was able to do \placelist[blah], however. After scouring this mailing list and consulting the source code, I haven't been able to find anything that would give me this functionality in MkIV. Was this intentional, or is there another way to get this functionality back?
The other strangeness I noticed was the "separator" option in defineenumeration. Normally one could do: \defineenumeration[blah2][ ... separator=--]
and things would work as they should, however this doesn't seem to work in MkIV. The last piece of functionality I noticed was not being able to set the number style in defineenumeration (which again works in MkII, tested this morning), like so:
\defineenumeration[blah3][ numberstyle=bold]
The wiki shows that these options should all be there, and they appear to be at least referenced in the source code, but I'm not familiar enough with the codebase to really give a good judgment of that. I noticed in one file "strc-des.mkiv" it says in a comment "lists and titles are experimental". Could anyone please help me out with these features?
Thanks, Shane Peelar
![](https://secure.gravatar.com/avatar/27c34cb91f1e92bd850fe60b3d9ef336.jpg?s=120&d=mm&r=g)
Am 23.10.2012 um 19:36 schrieb Shane Peelar
Hi Wolfgang,
Thanks for the quick and helpful reply. Is there also a way to change just the number colour and style in the example you provided?
\defineseparatorset [testseparator] [][–] \defineprocessor[teststyle][style=bolditalic] \defineconversionset[testconversion][][teststyle->number] %\defineprocessor[one][style=italic,color=red] %\defineprocessor[two][style=normal,color=blue] %\defineconversionset[testconversion][one->number,two->number][teststyle->number] \defineenumeration [test] [text=Test, headstyle=bold, numberconversionset=testconversion, numberseparatorset=testseparator] \starttext \placelist[test] \starttest[title={Knuth}] \input knuth \stoptest \startsubtest[title={Zapf}] \input zapf \stopsubtest \stoptext Wolfgang
participants (2)
-
Shane Peelar
-
Wolfgang Schuster