[NTG-context] Context.exe and --result=...

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I have the following situation. One source file is to be converted by Ctx normally and secondly with a special mode, e.g. "--mode=PageOneOnly". I'd like to get two result with: (1) Context.exe source.mkiv -> should give 'Source.pdf', (2) Context.exe source.mkiv --mode=PageOneOnly --re

[NTG-context] Disable line-break when \typefile

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a way how to disable line breaks of (very) long lines typeset with \typefile, even if this would cause overfull hbox (i.e. typesetting to "out-of-page" area)? The following example: % This a very long line which should be typeset to one line even if there'll be overfull h

Re: [NTG-context] Disable line-break when \typefile

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
OK, thanks. I added some info into wiki. Lukas On Wed, 08 Jun 2011 22:44:41 +0200, Wolfgang Schuster wrote: Am 08.06.2011 um 22:34 schrieb Marco: And what is “lines=no” for? What i get from the source for the “lines” key is: no (default) : no hyphenation yes : no hyphen

[NTG-context] Getting arguments by Lua

2011-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, when I run context by e.g.: context.exe Source.mkiv --result=Result.pdf --mode=Mode is it possible to access the command line arguments from Lua? I'm aware that modes are accessible by 'tex.modes' ('tex.modes.Mode' gives 'true' in this case); but I'd need to get also the source file n

Re: [NTG-context] Getting arguments by Lua

2011-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
OK, thanks both for the answers. Lukas On Thu, 09 Jun 2011 13:57:27 +0200, Taco Hoekwater wrote: On 06/09/11 13:41, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, when I run context by e.g.: context.exe Source.mkiv --result=Result.pdf --mode=Mode is it possible to access the

Re: [NTG-context] Unwanted change of paper size; extra opt for \externalfigure

2011-06-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks, - On Fri, 10 Jun 2011 09:00:32 +0200, Wolfgang Schuster wrote: \externalfigure[...][orientation=-90] Wolfgang - "orientation" looks useful - I'll try it later. Anyway, I've added the option to wiki; it was not mentioned there. Best regards, Lukas -- Ing. Lukáš Procházka [mailt

[NTG-context] Latest beta: Problems with \startstructurelevel (bug?)

2011-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm not able to compile the following code with the "ConTeXt ver: 2011.06.15 11:49 MKIV fmt: 2011.6.15 int: english/english": \definestructurelevels [Test] [subsection, subsubsection, subsubsubsection, ] \starttext \startstructurelevel[Test][title=Title] a

Re: [NTG-context] Latest beta: Problems with \startstructurelevel (bug?)

2011-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Wed, 22 Jun 2011 14:19:13 +0200, Wolfgang Schuster wrote: Am 22.06.2011 um 09:56 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I'm not able to compile the following code with the "ConTeXt ver: 2011.06.15 11:49 MKIV fmt: 2011.6.15 int: english/english": --

Re: [NTG-context] Latest beta: Problems with \startstructurelevel (bug?)

2011-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... I run "mtxrun --generate" (again) but still the same errors. Lukas On Wed, 22 Jun 2011 14:59:49 +0200, Wolfgang Schuster wrote: Am 22.06.2011 um 14:51 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Regenerate the format!

Re: [NTG-context] Latest beta: Problems with \startstructurelevel (bug?)

2011-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
2011/6/22 Procházka Lukáš Ing. - Pontex s. r. o. : ... I run "mtxrun --generate" (again) but still the same errors. context --make It doesn't help, either. Lukas ? -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http:

Re: [NTG-context] Latest beta: Problems with \startstructurelevel (bug?)

2011-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, success finally! I had to delete *manually* the cache directory - (in my case, WinXP): c:\ConTeXt\tex\texmf-cache\luatex-cache\context\2448223e6631addb83df348d74153606\ and than to call "mtxrun --generate". Best regards, Lukas _

[NTG-context] Problem with \definehead

2011-06-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, please look at the following minimal example: \definehead[chapterMiddle][chapter] \setuphead[chapterMiddle][align=middle] \definehead[sectionMiddle][section] % Try to comment this line! \definecombinedlist[content][part,chapter,chapterMiddle] \setupcombinedlist[content][alternative

Re: [NTG-context] Problem with \definehead

2011-06-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... A simplified piece of code - the result still depends on presence of "\definehead[sectionMiddle][section]": \definehead[chapterMiddle][chapter] \setuphead[chapterMiddle][align=middle] \definehead[sectionMiddle][section] % Try to comment this line! \definecombinedlist[content][chapter,

Re: [NTG-context] Problem with \definehead

2011-06-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Don’t misuse headings for your titlepage. As a titlepage is something special you can use \midaligned, \definedfont etc. to format it, e.g. Thanks for the answer, but - - to describe better my situation: I'm not creating a typical book, but a special kind of report, with many code generated b

[NTG-context] TOC look broken by \definehead

2011-06-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello all, the TOC look depends on whether or not another head was defined: \definehead[CHAPTER][chapter] \definehead[SECTION][section] % TRY TO COMMENT THIS LINE! \definecombinedlist[content][chapter,CHAPTER] \starttext \placecontent \page \chapter{Cha1} \CHAPTER{Cha2} \chapte

Re: [NTG-context] TOC look broken by \definehead

2011-06-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
on, 27 Jun 2011 10:17:09 +0200, Wolfgang Schuster wrote: Am 27.06.2011 um 09:25 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello all, the TOC look depends on whether or not another head was defined: I sent a fix to the dev list. Wolfgang -- Ing. Lukáš Procházka [mailto:

Re: [NTG-context] Links

2011-07-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the link http://www.ntg.nl/maps/42/maps.pdf (= all MAPS together) seems to be broken; also other links to http://www.ntg.nl/maps/42/*.pdf; could they be recovered? TIA. Best regards, Lukas On Tue, 12 Jul 2011 15:35:40 +0200, Cecil Westerhof wrote: De links naar de PDF bestanden o

[NTG-context] BTW: Context Standalone

2011-07-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, there was a discussion about "Ideas for restructuring the ConTeXt garden?" some months ago (http://www.ntg.nl/pipermail/ntg-context/2011/057640.html). In answers in this forum, "Context Minimals" are still referred - so just a polite question: Is there any progress calling Context Mini

[NTG-context] File.export to File.html

2011-07-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the following question may relate to XML processing rather to Context. But someone may have needed to solve the problem. Lets have a File.export which was generated by Context with "\setupbackend[export=yes,xhtml=yes,css=yes]". Such a XML output file uses tags like: ... Has any

Re: [NTG-context] File.export to File.html

2011-07-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Perfect, thanks! (c:\ConTeXt\tex\texmf-context\tex\context\base\export-example.*) I didn't know this example; creating .(x)htm(l) in such way is really easy! Best regards, Lukas On Fri, 15 Jul 2011 10:36:32 +0200, luigi scarso wrote: 2011/7/15 Procházka Lukáš Ing. - Pontex s.

[NTG-context] Characters instead numbers in headings

2011-07-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to get numbering style like this: A. Chapter A.1 Section I compiled a couple-of-months-old file and I got another result than before (?!). So I created a minimal example - hope this is a valid code for numbering (or rather "charactering") chapters as described before:

Re: [NTG-context] Characters instead numbers in headings

2011-07-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, have you tried it? On Tue, 19 Jul 2011 14:19:52 +0200, Wolfgang Schuster wrote: or \setuphead[chapter,section][sectionconversionset=Num2Char] Wolfgang \definestructureconversionset[Num2Char][numbers,Characters][numbers] \setuphead[chapter,section][sectionconversionset=Num2Ch

Re: [NTG-context] Characters instead numbers in headings

2011-07-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Tue, 19 Jul 2011 14:33:05 +0200, Wolfgang Schuster wrote: mtx-context | current version: 2011.07.17 23:08 Wolfgang OK, thanks for hints and testing. I've just downloaded the latest beta - ConTeXt ver: 2011.07.19 11:22 MKIV fmt: 2011.7.19 int: english/english (OK) - so p

[NTG-context] \copypages[file#.pdf]

2011-07-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, this kind of question was discussed once - how to include '#' character to the file name so that \copypages take it? Something like: \copypages[TZ#001.pdf] e.g. by \copypages[\MAKETEXT{TZ#001.pdf}] There was discussion about other "not-so-frequent" chars as well - ! # $ % @ ^ & _ -

Re: [NTG-context] \copypages[file#.pdf]

2011-07-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Perfect, thank you! Lukas On Tue, 19 Jul 2011 17:04:35 +0200, Wolfgang Schuster wrote: Am 19.07.2011 um 16:58 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, this kind of question was discussed once - how to include '#' character to the file name so that \copypag

[NTG-context] \start/stopTEXpage resets page layout?

2011-07-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, let's have the following code: \setuplayout[page] \starttext AAA \page \copypages[cow.pdf] BBB \startTEXpage \externalfigure[cow] \stopTEXpage \page CCC \stoptext Texts "AAA" and "BBB" are written from the strict left top corner of the page - page has no he

[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 t

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 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, with a bit of Lua pro

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 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: C:\Programs.Con

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] Can ConTeXt generate QR-codes

2011-07-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I tried to compile the example: Zint.mkiv \usemodule[zint] with context.exe Zint.mkiv --mode=demo But it seem that something doesn't work correctly under Windows - see the result attached and the log. Pictures to be involved to the document are not generated and (

Re: [NTG-context] Can ConTeXt generate QR-codes

2011-07-26 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 26 Jul 2011 12:05:03 +0200, Hans Hagen wrote: oops...of course you need zint So you need zint and ghostscript Why ghostscript? OK, I installed zint. (I haven't installed it before.) Now, I'm running: C:\Lukas\ConTeXt\Samples>set path=%path%;c:\Program Files\Zint C:\Lukas\Co

Re: [NTG-context] BTW: Context Standalone

2011-07-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Thu, 28 Jul 2011 10:28:30 +0200, Taco Hoekwater wrote: So, I just went through and changed a few dozen wiki pages. What is not yet fixed: * the actual URL is of course still http://minimals.contextgarden.net/, and this is also what is used internally. That part is work for Mojca, eventuall

[NTG-context] MP and multiline text

2011-07-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to create multiline text only with \crlf, \par etc. inside a MP block? The following example treats \par (or \crlf resp.) as a space (or skips it completely), so is there another trick? \setMPtext{Text}{TEXT\par UUU} \startuseMPgraphic{Test} fill fullsquare xysca

Re: [NTG-context] METAFUN's randomized operator's seed

2011-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, \setuprandomize[\normaltime] I guess a call after \starttext will do. Peter I tried it as I was just about to solve the same problem; it seems to work in condition that *at least one minute elapses between two runs*. BTW, what exactly does \normaltime expand to? Does it contain seco

Re: [NTG-context] METAFUN's randomized operator's seed

2011-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
http://www.tug.org/utilities/plain/cseq.html#time-rp this would also explain, why the seconds do not count :-) Best regards, OK, so it could be better e.g.: \starttext \directlua{context.setuprandomize{os.time()}} ... Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l.

Re: [NTG-context] Centering text on the width of the page when using \startfiguretext

2011-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, \setupbackgrounds[text][text][background=picture] \setupbackgrounds[state=repeat] It has to be two separate statements? yes: \definelayer[picture][preset=righttop,width=\textwidth] \setlayer[picture]{\externalfigure[mill][width=4cm]} \setupbackgrounds[text][text][background=pic

[NTG-context] texmf-local

2011-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to "redirect" the Ctx "local" directory "c:\ConTeXt\tex\texmf-local" somewere else, e.g. to "c:\Lukas\ConTeXt"? I'm looking for a way which would "survive" any occasion I update Ctx (even when I delete the whole Ctx installation directory, = "installation from scratch"), so e.g. e

Re: [NTG-context] texmf-local

2011-08-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
OK, thanks - On Thu, 04 Aug 2011 11:19:55 +0200, Mojca Miklavec wrote: 2011/8/4 Procházka Lukáš Ing. - Pontex s. r. o.: Hello, how to "redirect" the Ctx "local" directory "c:\ConTeXt\tex\texmf-local" somewhere else, e.g. to "c:\Lukas\ConTeXt"? I&

Re: [NTG-context] texmf-local

2011-08-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Thu, 04 Aug 2011 11:19:55 +0200, Mojca Miklavec wrote: 3.) You can define environmental variable that points to your desired directory. Mojca How exactly do you mean this? So let's define an environmental variable, e.g. "set MYCTX=c:\Lukas\ConTeXt". What next step(s) should fol

[NTG-context] Sharing color between MP and TeX

2011-08-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd need to use the same color for text and drawing inside a MP code. The typical situation looks the following way: \definecolor[COL][.7red] \starttext \startMPcode label(btex \color[COL]{Some text} etex, (0, 0)); color col; col := .7red; draw unitsquare scaled .5c

[NTG-context] first-setup.sh & modules/goodies/extras

2011-09-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, which of the following command options are (still) valid? --modules=all --extras=all --goodies=all --third=all Which files (or in which directories) are affected by these options? Is the asterisks '*' valid instead of 'all', i.e. e.g. --modules=* instead --modules=all? Is there a docu

Re: [NTG-context] Alphabetical sort

2011-10-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, nice example - I put it to the wiki - http://wiki.contextgarden.net/Reference/en/definesorting. But the result doesn't appear with error message "internal error: pdfcrop failed", although the compilation on a computer is OK. Any idea what causes wiki compilation failure? Best regards,

[NTG-context] Xtreme tables and borders

2011-11-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, do xtables have (or is it intended to have in the future) support of various borders of row or cells? - Personally, most often I'd would use double line, thick or dashed border bellow table head or a row, often also a thick border on the right side of the leftmost column: ASCII art:

[NTG-context] UTF conversion via Lua

2012-02-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I have many files with ASCII encoding; this encoding must be kept as these files are processed also by another program. When I work with them in ConTeXt, I need to convert them to UTF. Does Lua (in ConTeXt scope) offer a transformation function or a table of chars [ASCII-code] -> [UTF-

Re: [NTG-context] UTF conversion via Lua

2012-02-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
hem into ConTeXt somehow. Best regards, Lukas On Fri, 10 Feb 2012 11:57:32 +0100, Philipp Gesang wrote: On 2012-02-10 11:22, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I have many files with ASCII encoding; this encoding must be kept as these files are processed also by another pro

Re: [NTG-context] UTF conversion via Lua (now with attachment)

2012-02-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
hem into ConTeXt somehow. Best regards, Lukas On Fri, 10 Feb 2012 11:57:32 +0100, Philipp Gesang wrote: On 2012-02-10 11:22, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I have many files with ASCII encoding; this encoding must be kept as these files are processed also by another pro

Re: [NTG-context] UTF conversion via Lua

2012-02-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
close() return str end context.startregime{"cp1250"} context(loadFile("a.txt")) context.stopregime() \stopluacode \stoptext Where's the problem? Lukas On Fri, 10 Feb 2012 12:15:29 +0100, Wolfgang Schuster wrote: Am 10.02.2012 um 1

Re: [NTG-context] UTF conversion via Lua

2012-02-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
One more note - On Fri, 10 Feb 2012 12:15:29 +0100, Wolfgang Schuster wrote: Why don’t you let do context the conversion: \starttext this is something in utf8 \startregime[cp1250] \input filewithcp1250encoding \stopregime more text encoded in utf8 \stoptext I cannot \input the file as

Re: [NTG-context] UTF conversion via Lua

2012-02-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Dunno but it works when you use “regimes.translate” in your code but it’s better to ask Hans for a function in the commands namespace which you can use. \starttext \startluacode function loadFile(fn) local fh = assert(io.open(fn, "r")) local str = fh:read("*all") fh:close() str

Re: [NTG-context] UTF conversion via Lua

2012-02-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, one more question - - does "regimes.translate" allow to translate between arbitrary encodings or only from the specified to the current one? str = regimes.translate(str, "cp1250") -- = Translate from "cp1250" to the current encoding (UTF) (or always to UTF?) I'm looking fo

Re: [NTG-context] UTF conversion via Lua (renaming attachments to .scr_)

2012-02-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Thu, 16 Feb 2012 13:08:09 +0100, Hans Hagen wrote: no, although it's no big deal to provide that (of course there is then the matter of utf being more complete than the target) src_enc = "utf8" tgt_enc = "cp1250" str = regimes.translate(str, src_enc, tgt_enc) is there a reason

Re: [NTG-context] UTF conversion via Lua

2012-02-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Hans, thank you for the extension; I've tested and it works perfectly. On Thu, 16 Feb 2012 23:56:44 +0100, Hans Hagen wrote: regimes.toregime('8859-1',"abcde Ä","?") but you'll have to test and wikify it. I'll going to wikify it - - I supppose: regimes.toregime(, , ) so qu

Re: [NTG-context] UTF conversion via Lua

2012-02-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Fri, 17 Feb 2012 09:19:16 +0100, Hans Hagen wrote: On Thu, 16 Feb 2012 23:56:44 +0100, Hans Hagen wrote: regimes.toregime('8859-1',"abcde Ä","?") but you'll have to test and wikify it. Wikified - http://wiki.contextgarden.net/Encodings_and_Regimes#Conversion_between_encodings. Lukas

Re: [NTG-context] \definestructureconversionset

2012-02-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
hu, 16 Feb 2012 21:39:04 +0100, Wolfgang Schuster wrote: Am 16.02.2012 um 10:57 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I cannot find any valid info (reference) about use of the command \definestructureconversionset. I just have some examples. Could anyon

Re: [NTG-context] Page count of PDF file from lua

2012-02-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Some solutions can be found here, too: http://www.mail-archive.com/ntg-context@ntg.nl/msg57502.html http://www.mail-archive.com/ntg-context@ntg.nl/msg57503.html Lukas On Tue, 21 Feb 2012 13:40:26 +0100, Hans Hagen wrote: On 19-2-2012 14:50, Marco wrote: I can't figure out how to determ

[NTG-context] Project, product, component...

2012-02-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to use advantages of project/product/component structure. Suppose having a very simple example (both files in the same directory): Prod.mkiv \startproduct PPP \component Comp.mkiv Product \stopproduct And: Comp.mkiv \startcomponent CCC Component \stopco

Re: [NTG-context] Project, product, component...

2012-03-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, as no new answer so far, I started to experiment. It seems that [at least] component id(s) cannot be omitted: Prod.mkiv \startproduct % PPP \component Comp.mkiv Product \stopproduct And: Comp.mkiv \startcomponent % CCC %\product Prod %\project Proj Component

Re: [NTG-context] Project, product, component...

2012-03-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Thu, 01 Mar 2012 09:53:23 +0100, Hans Hagen wrote: the tags are (an always will be) mandate they are also used in - cross document referencing (component processing) - logging and reporting - keeping track of loading environments once - internal pusp/pop states and hashes - whatever we nee

[NTG-context] TOC: alternative=c not working?

2012-03-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the following sample doesn't give the dotted style (#.# Name page) of the TOC - dots are missing: t-TOC.mkiv \setupcombinedlist[content][alternative=c] \starttext \completecontent \page \section{Sec} \subsection{SSec} \subsubsection{SSSec} \input

Re: [NTG-context] TOC: alternative=c not working?

2012-03-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... That is! Thank you. Lukas On Mon, 05 Mar 2012 21:30:57 +0100, Wolfgang Schuster wrote: Am 05.03.2012 um 08:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, the following sample doesn't give the dotted style (#.# Name page) of the TOC - dots are missing: -

[NTG-context] Hooking \stoptext

2012-03-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd need to to hook \stoptext by Lua - I'd need to write something right before the end of the text. See the simple example: t-Hook.mkiv \startluacode local stoptext_p = context.stoptext context.stoptext = function(...) context("END") stoptext_p(...) end \stopluacode

Re: [NTG-context] Hooking \stoptext

2012-03-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
#x27;my-Lua-toolbox-with-foo' foo()". So user is not forced to know how the function works; once he uses it, the text "END" will appear at the end of the document. - And this doesn't happen to me; and my goal is to make it work. Lukas On Wed, 07 Mar 2012 15:39:2

Re: [NTG-context] Hooking \stoptext

2012-03-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Yes, that's it! Thanks a lot! Best regards, Lukas On Wed, 07 Mar 2012 16:50:01 +0100, Philipp Gesang wrote: On 2012-03-07 15:28, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I'd need to to hook \stoptext by Lua - I'd need to write something right before the

[NTG-context] Combination: no gap between cells?

2012-03-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd like to print several frames of a precise size, one after other, e.g. 2 per row, 2 rows. I'm trying to use combination for this purpose - but I'd need to suppress any horizontal and vertical gap between cells. Is there any option which would cause this? My code so far: t-Prn

Re: [NTG-context] Combination: no gap between cells?

2012-03-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
hould work: \setupcombinations[distance=0mm] Pavel Dohnal 2012/3/8 Procházka Lukáš Ing. - Pontex s. r. o. Hello, I'd like to print several frames of a precise size, one after other, e.g. 2 per row, 2 rows. I'm trying to use combination for this purpose - but I'd need to suppress any ho

[NTG-context] Problem with \definetabletemplate

2012-03-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I have problem using \definetabletemplate (http://wiki.contextgarden.net/Command/definetabletemplate, http://www.mail-archive.com/search?l=ntg-context%40ntg.nl&q=definetabletemplate). The following code doesn't work: \definetabletemplate[Test][|c|] \starttext \starttable[|c|] %

[NTG-context] Footnotes in formulas

2012-03-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, what is the good way how to use footnotes in formulas? This code lowers the "Bbb" text: \starttext \startformula Aaa\footnote{Some footnote text} \qquad Bbb \stopformula \stoptext Example 2: \starttext \startformula Ccc{\footnote{Footnote C}} \q

Re: [NTG-context] Problem with \definetabletemplate

2012-03-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... OK, thanks for the patch. It works now. Best regards, Lukas On Thu, 15 Mar 2012 13:24:18 +0100, Wolfgang Schuster wrote: Am 15.03.2012 um 08:36 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I have problem using \definetabletemplate (http://wiki.contextgarden.net/Command

Re: [NTG-context] Footnotes in formulas

2012-03-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
ation doesn't work with non-floats. Lukas On Thu, 15 Mar 2012 13:48:53 +0100, Vladimir Lomov wrote: Hello, ** Procházka Lukáš Ing. - Pontex s. r. o. [2012-03-15 09:34:03 +0100]: Hello, what is the good way how to use footnotes in formulas? This code lowers the "Bbb" text

Re: [NTG-context] Footnotes in formulas

2012-03-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... OK, it works! On Thu, 15 Mar 2012 15:34:43 +0100, Wolfgang Schuster wrote: What’s a “non-float” and why can’t you use combinations? I missed the other command for each "tile" of the combination - its caption; that's why my example didn't work. \startcombination[3*1] {a} {b}

Re: [NTG-context] Footnotes in formulas

2012-03-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Anyway, footnote doesn't appear even when using \st-combination: \starttext \startcombination[1*1] {A \unit{50 t}\footnote{A footnote}}{} \stopcombination \stoptext - There is no footnote #1 ("A footnote") at the bottom of the page. So what is the problem? Best regards,

[NTG-context] Footnotes in combinations don't work?

2012-03-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, slightly discussed several days ago... Footnote in a combination is not shown anywhere: \starttext \startcombination[1*1] {Aaa\footnote{Footnote}}{} \stopcombination \stoptext Bug, feature (= footnotes are not supposed to be in a combination) or another approach must

[NTG-context] \description - indenting lines from the 2nd

2012-04-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, what option(s) to use with \definedescription if I'd like to get the following shape (attempt to ACSII art): XX blablabla blablabla bla blabla. | | |-| A constant of indenting - to be specified by the user. | | |<>| Text width. I inspired by wiki (th

Re: [NTG-context] \description - indenting lines from the 2nd

2012-04-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
.. Best regards, Lukas On Wed, 04 Apr 2012 14:28:31 +0200, Wolfgang Schuster wrote: Am 04.04.2012 um 10:14 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, what option(s) to use with \definedescription if I'd like to get the following shape (attempt to ACSII art): X

[NTG-context] Wiki: examples

2012-04-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, suggestion: As ConTeXt-generated examples (automatically generated by ... ) on wiki are often: - too long and - their font is often too big compared to the other font used on the wiki page. (E.g. http://wiki.contextgarden.net/Command/definedescription.) (WinXP, normally using Opera b

[NTG-context] Nested itemize

2012-04-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there an option for \startitemize or \setupitemize or \setupitemgroup: \startitemize \item A \startitemize \item B \stopitemize \stopitemize to get: 1. A 1.1 B (= nested item has its parent numbers, too) or rather 1. A 1.1 B (= nested item has its parent

[NTG-context] \...structurelevel - probably a bug in the last version

2012-04-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I've just updated ConTeXt. The following code used to work so far, now I'm getting error: \definestructurelevels[A][section,] \starttext \startstructurelevel[A][title=Title] \input knuth \stopstructurelevel \stoptext " This is LuaTeX, Version beta-0.70.1-2012032923 (T

[NTG-context] \description - indenting lines, "alternative=top"

2012-04-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, another case of description (following http://www.mail-archive.com/ntg-context@ntg.nl/msg62775.html), now with "alternative=top" - I'm trying to get: XX blablabla bla bla blablabla blabla. | | |-| A constant of indenting - to be specified by the user. | | |<---

Re: [NTG-context] \description - indenting lines, "alternative=top"

2012-04-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Wolfgang, thanks for the solution. Two more questions: - How to specify indenting to be equal to the normal paragraph indenting? Here's my trial: \setupindenting[yes,first,medium] \define[1]\TestHeadCommand{\offset[x=-\parindent]{#1}} % This doesn't work \starttext \definedescr

Re: [NTG-context] \description - indenting lines, "alternative=top"

2012-04-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thank you, Aditya, that's it! Lukas On Tue, 10 Apr 2012 11:27:05 +0200, Aditya Mahajan wrote: On Tue, 10 Apr 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote: XXX _ ^ V - this distance to be specified. blablabla b

Re: [NTG-context] \description - indenting lines, "alternative=top"

2012-04-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 10 Apr 2012 11:49:56 +0200, Wolfgang Schuster wrote: When you want a certain value in various places I would use \definemeasure to set it and \measure to access it. \definemeasure[parindent][1em] \define[1]\TestHeadCommand {\offset[x=-\measure{parindent}]{#1}} \definedescription

Re: [NTG-context] \description - indenting lines, "alternative=top"

2012-04-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... OK, thanks for explanation. Best regards, Lukas On Tue, 10 Apr 2012 17:42:46 +0200, Wolfgang Schuster wrote: small = 1em medium = 1.5em big = 2em Are these values accessible anyhow? Via Lua? They are stored in \parindent but descriptions have the setting “indenting=never” which se

[NTG-context] \ref not working in current Ctx?

2012-04-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the wiki example doesn't work on my computer, although the wiki result seems OK: \starttext See page \ref[p][myref 1] and \ref[p][myref 2]. \page \reference[myref 1]{MyRef1} This is the first reference. \page \reference[myref 2]{MyRef2} This is the second one. \stoptext ---

Re: [NTG-context] \ref not working in current Ctx?

2012-04-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... OK, thank you. I also found your piece of code at http://www.mail-archive.com/ntg-context@ntg.nl/msg62816.html where usage is shown. But I still have a question: Is it possible to create a "point" (or anchor) which would know about the current section, so to retrieve this information lat

[NTG-context] How to get info about current [sub-...]section?

2012-04-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, suppose having the following code: \starttext \section{A} \subsection{Aa} \subsubsection{Aaa} Here, in -- % How to get info about current [sub-...]section - texts "1.1.1" and "Aaa"? \stoptext Is there a way how to get info about the current [sub-...]sectio

Re: [NTG-context] How to get info about current [sub-...]section?

2012-04-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Perfect, thank you! Best regards, Lukas On Mon, 16 Apr 2012 12:26:52 +0200, Wolfgang Schuster wrote: \defineconversionset[default][n,n,a,r,n][n] \starttext \section{A} \starttabulate \NC Number \EQ \structurenumber \NC\NR \NC Title \EQ \structuretitle \NC\NR \stoptabulate \subsec

Re: [NTG-context] How to get info about current [sub-...]section?

2012-04-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, one more question - is there a way how to get values of \structurenumber and \structuretitle in the Lua scope? TIA. Best regards, Lukas On Mon, 16 Apr 2012 12:26:52 +0200, Wolfgang Schuster wrote: \defineconversionset[default][n,n,a,r,n][n] \starttext \section{A} \starttabulat

[NTG-context] How to get \structurenumber and \structuretitle by Lua?

2012-04-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, values of number and title of the current (sub...)section can be received by \structurenumber and \structuretitle commands. Is there a way how to get these values by Lua? Suppose: \starttext \section{Sec 1} % Now "\structurenumber" yields "1" and "\structuretitle" gives "Sec 1

Re: [NTG-context] How to get \structurenumber and \structuretitle by Lua?

2012-04-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Hans, thanks for the idea. Unfortunately, I'm getting error: \starttext \section{A} \subsection{Aa} \subsubsection{Aaa} \startluacode print("@@@", structures.sections.getnumber(2)) \stopluacode \stoptext " ! LuaTeX error ...TeXt/tex/texm

[NTG-context] Buffers vs. \def

2012-04-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, a question - I'm just curious: What is advantage (or maybe intension) of using buffers over \def? Compare: \def\BufA{This is buffer A.} \startbuffer[BufB] This is buffer B. \stopbuffer \starttext \BufA \getbuffer[BufB] \ifx\BufC\undefined No buffer C.\else\BufC\fi \stopt

[NTG-context] "tabulate" to full text width?

2012-04-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to specify \(start)tabulate or \setuptabulate to fit \textwidth? - I mean all columns to have the same width so in total to occupy the whole \textwidth... Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz]

Re: [NTG-context] "tabulate" to full text width?

2012-04-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, your code seems hopefully, but it doesn't compile (?!)... Missing "[" and "]" somewhere? See the test and log. Best regards, Lukas On Fri, 20 Apr 2012 17:52:35 +0200, Marco wrote: On 2012-04-20 Procházka Lukáš Ing. - Pontex s. r. o. wrote: is it po

[NTG-context] Background on the 1st page only, page numbering from the 2nd page

2012-05-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to specify the page background for the first page only and how to start page numbering from the second page? Here's my trial: \defineoverlay[Bkg][{\externalfigure[cow]}] \setupbackgrounds[paper][background=Bkg] %\setuppagenumbering[state=2] \starttext \dorecurse{5}{\input k

Re: [NTG-context] Background on the 1st page only, page numbering from the 2nd page

2012-05-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... One more question. Let's have three cases - some of them hide the page number on the first page, some of them don't. The question is - why: 1 - OK, no page number on page 1 \def\MyPageNumber#1{\doifelse{\pagenumber}{1}{}{\pagenumber}} % Testing \pagenumber \setuppagenumbering[locatio

Re: [NTG-context] Background on the 1st page only, page numbering from the 2nd page

2012-05-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Alan BRASLAU wrote: On Wed, 2 May 2012 14:24:24 +0200 Wolfgang Schuster wrote: Am 02.05.2012 um 09:45 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > how to specify the page background for the first page only and how > to start page numbering from the second page? \def

Re: [NTG-context] Background on the 1st page only, page numbering from the 2nd page

2012-05-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... OK, thanks for the explanation. Best regards, Lukas 1) What exactly does \noheaderandfooterlines do? It disables the header/footer on the page where \noheaderandfooterlines was inserted. 2) Why testing the #1 argument in the case 2 doesn't work? When you use “\pagenumber” you check

[NTG-context] \inputif(file)exist(s)

2012-05-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, just a quick question - is there a command like "\inputif(file)exist(s)", which will \input a file if it exists, i.e. with no error if it doesn't? TIA. Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 16

Re: [NTG-context] \inputif(file)exist(s)

2012-05-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Great, thank you. Lukas On Thu, 03 May 2012 17:41:18 +0200, Aditya Mahajan wrote: On Thu, 3 May 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, just a quick question - is there a command like "\inputif(file)exist(s)", which will \input a file if it exists, i.

[NTG-context] Wiki - results differ?

2012-05-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, Wiki and a file processed on a local computer give different results - - please compare "http://wiki.contextgarden.net/Command/doif..."; and the example attached: \starttext \ctxlua{test = true} Test is \ctxlua{commands.testcase(test)}{True}{False}. \ctxlua{test = false}

<    1   2   3   4   5   6   >