Re: [NTG-context] How well do ConTeXt (lua)module for other users?

2011-07-20 Thread Jaroslav Hajtmar
Thanx Wolfgang. Is there a solid practice of naming modules? I noticed that the names appear modules including introductory letters p or t ... You also used the name p-test.lua. What does it mean? How to correctly name the module, or what other elements should it include? Best regards

Re: [NTG-context] How well do ConTeXt (lua)module for other users?

2011-07-20 Thread Hans Hagen
On 20-7-2011 9:40, Jaroslav Hajtmar wrote: Thanx Wolfgang. Is there a solid practice of naming modules? I noticed that the names appear modules including introductory letters p or t ... You also used the name p-test.lua. What does it mean? How to correctly name the module, or what other

[NTG-context] OT: Pdf info

2011-07-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, this question in not straightly related to Context, but Context users may have solved it and Ctx may be used to solve it. I would need to get the following information from .pdf file(s): - number of pages, - common width and height of pages (provided that they are the same; otherwise

Re: [NTG-context] OT: Pdf info

2011-07-20 Thread Taco Hoekwater
On 07/20/11 13:21, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, this question in not straightly related to Context, but Context users may have solved it and Ctx may be used to solve it. I would need to get the following information from .pdf file(s): - number of pages, -

Re: [NTG-context] OT: Pdf info

2011-07-20 Thread luigi scarso
2011/7/20 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, this question in not straightly related to Context, but Context users may have solved it and Ctx may be used to solve it. I would need to get the following information from .pdf file(s): - number of pages, - common

Re: [NTG-context] OT: Pdf info

2011-07-20 Thread Hartmut Henkel
2011/7/20 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, this question in not straightly related to Context, but Context users may have solved it and Ctx may be used to solve it. I would need to get the following information from .pdf file(s): - number of pages,

Re: [NTG-context] OT: Pdf info

2011-07-20 Thread luigi scarso
On Wed, Jul 20, 2011 at 2:02 PM, Hartmut Henkel hartmut_hen...@gmx.de wrote: luatex's epdf library (= poppler Lua bindings, maybe that's what Luigi meant) allows to extract all this info from a pdf file, with a bit of Lua programming. Yes, I meant the epdf library. -- luigi

Re: [NTG-context] vertical alignment in TOC

2011-07-20 Thread Thomas A. Schmitz
On 07/20/2011 12:43 AM, Andreas Harder wrote: \define[3]\ChapterList% {\bTABLE[offset=none,rulethickness=0pt,width=broad] \bTR % \bTD #1 \eTD \bTD #2 \eTD

Re: [NTG-context] markdown

2011-07-20 Thread Hans Hagen
On 19-7-2011 7:25, Wolfgang Schuster wrote: Can you then also add a few features: - Headings use \startstructurelevel - Paragraphs are enclosed in startparagraph/stopparagraph - emphasis and bold styles use \definehiglight command to make it possible to change the layout of markdown documents

Re: [NTG-context] OT: Pdf info

2011-07-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Wed, 20 Jul 2011 14:02:00 +0200, Hartmut Henkel hartmut_hen...@gmx.de wrote: The lua pdf library with mkiv should be also useful, but I've still to play with it. luatex's epdf library (= poppler Lua bindings, maybe that's what Luigi meant) allows to extract all this info from a pdf file,

[NTG-context] highlighting aligned formulas

2011-07-20 Thread Andreas Richter
Hello, Is it possible (using ConTeXt MKII) to put a frame (and/or other highlighters) around an aligned multiline formula, and also around a single line of this equation array? (The equation number should align correctly outside the frame.) \mframed within an alignment seems to refuse the job.

Re: [NTG-context] OT: Pdf info

2011-07-20 Thread Hans Hagen
On 20-7-2011 2:02, Hartmut Henkel wrote: 2011/7/20 Procházka Lukáš Ing. - Pontex s. r. o.l...@pontex.cz: Hello, this question in not straightly related to Context, but Context users may have solved it and Ctx may be used to solve it. I would need to get the following information from .pdf

Re: [NTG-context] OT: Pdf info (solved)

2011-07-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Wed, 20 Jul 2011 13:29:35 +0200, luigi scarso luigi.sca...@gmail.com wrote: You can use some macros (see Taco), and for external programs google for mupdf and xpdf I installed Xpdf for Windows - http://gnuwin32.sourceforge.net/packages/xpdf.htm - and pdfinfo.exe does the job:

Re: [NTG-context] OT: Pdf info

2011-07-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
local MyDocument = lpdf.epdf.load(sometext.pdf) context.starttext() local pages= MyDocument.pages local dummy= MyDocument.pages[1] -- we need lua 5.2 in order to avoid this local nofpages = #MyDocument.pages context.starttabulate { |c|c|c| } context.NC() context(page) context.NC()

Re: [NTG-context] markdown

2011-07-20 Thread John Haltiwanger
On Wed, Jul 20, 2011 at 5:24 AM, Hans Hagen pra...@wxs.nl wrote: On 19-7-2011 7:25, Wolfgang Schuster wrote: The code is derived from luamark (but a few 100% faster so I might have messed up). And of course, being the markdown evangelist, John will answer all questions. With pleasure :)

Re: [NTG-context] highlighting aligned formulas

2011-07-20 Thread Wolfgang Schuster
Am 20.07.2011 um 14:52 schrieb Andreas Richter: ps Asking as a new user it may be naive, but I still didn't figure out how to uncomment multiple lines (for debugging). You can comment whole paragraphs etc. with \starthiding … \stophiding Wolfgang

Re: [NTG-context] vertical alignment in TOC

2011-07-20 Thread Hans Hagen
On 20-7-2011 2:13, Thomas A. Schmitz wrote: On 07/20/2011 12:43 AM, Andreas Harder wrote: \bTD[width=1.5em,align={left,high}]\strut #3 \eTD best use endstruts as well \define[3]\ChapterList {\bTABLE[offset=none,rulethickness=0pt,width=broad] \bTR % \bTD

Re: [NTG-context] A cases type environment using a right brace?

2011-07-20 Thread Aditya Mahajan
On Thu, 21 Jul 2011, Alasdair McAndrew wrote: I'm trying to typeset a small column of numbers with a right brace on the right, and nothing on the left. (Sort of like the opposite to the right hand side of a cases environment). I've tried: (untested)

Re: [NTG-context] A cases type environment using a right brace?

2011-07-20 Thread Alasdair McAndrew
Thanks so much, Aditya- works perfectly! -Alasdair On Thu, Jul 21, 2011 at 1:50 PM, Aditya Mahajan adit...@umich.edu wrote: On Thu, 21 Jul 2011, Alasdair McAndrew wrote: I'm trying to typeset a small column of numbers with a right brace on the right, and nothing on the left. (Sort of like