[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 (the

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

2012-04-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
, Wolfgang Schuster schuster.wolfg...@googlemail.com 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): XX blablabla blablabla bla blabla

[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] 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.nlq=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}}

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 schuster.wolfg...@googlemail.com wrote: Am 15.03.2012 um 08:36 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I have problem using \definetabletemplate (http

Re: [NTG-context] Footnotes in formulas

2012-03-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
doesn't work with non-floats. Lukas On Thu, 15 Mar 2012 13:48:53 +0100, Vladimir Lomov lomov...@gmail.com 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 schuster.wolfg...@googlemail.com 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.

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] 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:

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

2012-03-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
: This should work: \setupcombinations[distance=0mm] Pavel Dohnal 2012/3/8 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz 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

[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 .
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:23 +0100, luigi scarso luigi.sca...@gmail.com wrote: 2012/3/7 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz Hello, I'd need

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 ges...@stud.uni-heidelberg.de 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

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 schuster.wolfg...@googlemail.com 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

[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] 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 pra...@wxs.nl 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 -

[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

Re: [NTG-context] \definestructureconversionset

2012-02-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
schuster.wolfg...@googlemail.com 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 anyone explain how these commands should

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 pra...@wxs.nl wrote: On 19-2-2012 14:50, Marco wrote: I can't figure out

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 pra...@wxs.nl wrote: regimes.toregime('8859-1',abcde Ä,?) but you'll have to test and wikify it. I'll going to wikify it - - I supppose:

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 pra...@wxs.nl wrote: On Thu, 16 Feb 2012 23:56:44 +0100, Hans Hagen pra...@wxs.nl wrote: regimes.toregime('8859-1',abcde Ä,?) but you'll have to test and wikify it. Wikified -

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 for

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 pra...@wxs.nl 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

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

Re: [NTG-context] UTF conversion via Lua

2012-02-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
, Lukas On Fri, 10 Feb 2012 11:57:32 +0100, Philipp Gesang ges...@stud.uni-heidelberg.de 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 program. When

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

2012-02-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
, Lukas On Fri, 10 Feb 2012 11:57:32 +0100, Philipp Gesang ges...@stud.uni-heidelberg.de 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 program. When

Re: [NTG-context] UTF conversion via Lua

2012-02-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
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 schuster.wolfg...@googlemail.com wrote: Am 10.02.2012 um 12:11 schrieb Procházka Lukáš Ing

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 schuster.wolfg...@googlemail.com 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

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 =

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

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] 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

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 t...@elvenkind.com 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

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

2011-07-26 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 pra...@wxs.nl 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\Samplesset path=%path%;c:\Program Files\Zint

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

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()

[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 schuster.wolfg...@googlemail.com wrote: or \setuphead[chapter,section][sectionconversionset=Num2Char] Wolfgang \definestructureconversionset[Num2Char][numbers,Characters][numbers]

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 schuster.wolfg...@googlemail.com 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

[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 schuster.wolfg...@googlemail.com 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

[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

[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: section

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 luigi.sca...@gmail.com wrote: 2011/7/15 Procházka Lukáš

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 cldwester...@gmail.com wrote: De links

[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

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

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

2011-06-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
, Wolfgang Schuster schuster.wolfg...@googlemail.com 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:l...@pontex.cz

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

2011-06-23 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]

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!

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

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

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

2011-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Jun 2011 14:19:13 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com 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 schuster.wolfg...@googlemail.com wrote: Am 22.06.2011 um 14:51 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Regenerate the format! Wolfgang

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. l...@pontex.cz: ... 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] 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 schuster.wolfg...@googlemail.com 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

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

2011-06-09 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 schuster.wolfg...@googlemail.com 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

[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

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 t...@elvenkind.com 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

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

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, see the following example: \starttext AAA \startTEXpage \rotate[rotation=-90]{\externalfigure[Model.pdf]} \stopTEXpage % Paper size is 297 * 297 mm from now?! BBB \stoptext Why the last paper size becomes 297 x 297 mm? Suggestion: Wouldn't be good to have an

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

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Wed, 08 Jun 2011 11:39:50 +0200, luigi scarso luigi.sca...@gmail.com wrote: what are the dimensions of Model.pdf ? 210 x 297 mm. Lukas ___ If your question is of interest to others as well, please add an

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

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Wed, 08 Jun 2011 12:01:04 +0200, luigi scarso luigi.sca...@gmail.com wrote: Not sure if it's a bug, but this fixes the situation (assuming A4 on A4) \starttext AAA \startTEXpage \rotate[rotation=-90]{\externalfigure[Model.pdf]} \stopTEXpage \setuppapersize[A4][A4] % Paper size is 297

[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

[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

Re: [NTG-context] checking mainlanguage setup

2011-05-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Sat, 28 May 2011 14:26:47 +0200, Jeong Dalyoung hak...@me.com wrote: context([[\\def\\lang{English}]]) It is not working. It just prints def langEnglish. BTW, are not there too many backslashes? Shouldn't it be (untested): context(\\def\\lang{English}) or

Re: [NTG-context] checking mainlanguage setup

2011-05-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 31 May 2011 12:45:00 +0200, Jeong Dalyoung hak...@me.com wrote: Dear Lucas, Shouldn't it be (untested): context(\\def\\lang{English}) It is working. context([[\def\lang{English}]]) It is not working. It prints def lang English. Thank you. Best regards, Dalyoung OK. I

[NTG-context] Problem centernig a table by Lua

2011-05-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm typesetting a centered (middaligned) 1-cell table by Ctx - no problem. When I rewrite the same code to Lua, the table is always moved to the right; see or try the attached files. --- \starttext % By TeX \centerline{ \starttable[|c|] \HL \VL 5 \VL\AR \HL

Re: [NTG-context] Description

2011-04-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
OK, thanks. On Wed, 20 Apr 2011 18:20:18 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: You can use “titleright” only in enumerations. I thought titleright was valid for descriptions [as well], see contextref.pdf, sec. Descriptions, table on the pg. 237:

[NTG-context] Centerd table?

2011-04-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, why this code doesn't give a centered table? --- \starttext \startalignment[middle] \dontleavehmode \starttable[|c|c|c|] \HL \VL a \VL b \VL c \VL\AR \HL \VL a \VL b \VL c \VL\AR \HL \stoptable \stopalignment \stoptext --- How to achieve

[NTG-context] Tabulate

2011-04-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, several questions about tabulate. Let's have: --- \starttext \setuptabulate[header=repeat] \starttabulatehead \HL \NC T \NC U \NC\AR % [1] \SR? \NR?... \HL \stoptabulatehead \starttabulate[|c|c|] \NC a \NC b \NC\NR \NC A \NC B \NC\NR \stoptabulate

Re: [NTG-context] dashed underbar: wiki

2011-04-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I tried to add the Wolfgang's solution to wiki, the last example on http://wiki.contextgarden.net/TextBackground But the rendered example doesn't show any (dashed) background, although the standalone test file does. Why? If the example was rendered otherwise than in reality, it

[NTG-context] TeX: Macro definition

2011-04-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to define a macro to take the new-line character as end-of-parameter? The following macro: \def\T#1\par{#1} takes everything until \par (or empty line as it equals \par primitive) as #1, so the following is valid: \T abc def\par \T abc \T def (#1 becomes: abc def, abc and def.)

Re: [NTG-context] TeX: Macro definition

2011-04-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
). Lukas On Thu, 07 Apr 2011 11:45:06 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 07.04.2011 um 11:27 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, how to define a macro to take the new-line character as end-of-parameter? The following macro: \def\T#1\par{#1

Re: [NTG-context] (Ctx)Lua, diacritics string.upper()

2011-04-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks WH, both solutions work perfectly. Lukas ... Well, the situation is that the .cld creates an extra file where the converted (uppercased) string should be written. \starttext \ctxsprint{Přehledná} \ctxsprint{utf.upper(Přehledná)} \stoptext Wolfgang characters.upper(str) --

[NTG-context] Sectionmark

2011-04-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, what is the name of the command to typeset the symbol SectionMark, Paragraph, SectionSign or how is is called correctly? The symbol which looks like: _ / \ \__ / \ || \__/ \ \_/ (Typeset by \textsection in LaTeX.) Kind regards, Lukas -- Ing. Lukáš Procházka

Re: [NTG-context] Sectionmark

2011-04-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Yes, \sectionmark is it. Thank you. Lukas _ / \ \__ / \ || \__/ \ \_/ \sectionmark ? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] (Ctx)Lua, diacritics string.upper()

2011-04-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a possibility to use Ctx Lua to convert strings containing diacritics to upper/lower case? I have a .cld file, UTF-8, and (Přehledná):upper() gives PřEHLEDNá whilst the desired result is PŘEHLEDNÁ. Is there a way how to solve this? (Maybe another function than Lua's

Re: [NTG-context] (Ctx)Lua, diacritics string.upper()

2011-04-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.04.2011 um 18:28 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, is there a possibility to use Ctx Lua to convert strings containing diacritics to upper/lower case? I have a .cld file, UTF-8, and (Přehledná):upper

[NTG-context] Wiki discussion: Fwd: Ctx wiki

2011-04-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I passed first trials contributing wiki - http://wiki.contextgarden.net/Special:Contributions/LuP. Several questions: - http://wiki.contextgarden.net/%5Cdoif... The item about \doif... was intended to appear in the reference/en, but it doesn't. How to provide it? -

[NTG-context] Wiki discussion: Fwd: Re: Ctx wiki

2011-04-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hi Lukáš, Several questions: - http://wiki.contextgarden.net/%5Cdoif... The item about \doif... was intended to appear in the reference/en, but it doesn't. How to provide it? just insert [[Category:Reference/en|doif]] at the bottom of the page. The page should not be

Re: [NTG-context] Page break between \title and \itemize

2011-03-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Perfect, thanks! If anyone is interested, there is a sample attached which demonstrates the problem and the solution by autointro. Lukas Add: into to \startitemize \startitemize[intro] \item ... \item ... \item ... \stopitemize Or you can use \setupitemize[autointro] Aditya

Re: [NTG-context] Page break between \title and \itemize

2011-03-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .
BTW, is there a difference between \startitemize[intro] and \startitemize[autointro]? - I tried both and both do the desired effect. - autointro was your suggestion for \setupitemize whilst intro was option for \startitemize... Kind regards, Lukas \startitemize[intro] \item ...

[NTG-context] Page break between \title and \itemize

2011-03-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I used the following setup for title: \setuphead[title][style=\bfb,align=middle,after=\blank] Then, in the middle of the source code, I used: \title{A title} % Unwanted page break here! \startitemize \item ... \item ... \item ... \stopitemize But it happened

[NTG-context] \doif... and Lua

2011-03-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to use a block of context code depending on a value of a Lua variable? I tried something like: --- \starttext \directlua{test = true} %\directlua{test = 5} %\directlua{test = a} \doifempty{\directlua{return test}} %\doifempty{\directlua{test}} {Yes}

Re: [NTG-context] \doif... and Lua

2011-03-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Perfect, thanks. Lukas On Fri, 25 Mar 2011 13:25:52 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 25.03.2011 um 13:04 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, is it possible to use a block of context code depending on a value of a Lua variable? I

[NTG-context] Floating picture and footnotes

2011-03-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I encountered a bit strange effects when using footnotes in the area which is formed by a floating object. Consider the following example: --- \setupinteraction[state=start] % Heads \setupheads[aligntitle=float] % Graphics \startreusableMPgraphic{Dgm} draw

[NTG-context] Boekplan books

2011-03-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I just received the Fonts in ConTeXt; thanks that such publication exists. One suggestion: - Wouldn't be good to offer both grey scale and coloured version of the book? The coloured version would be more expensive, indeed. But one would have a choice; and Hans and Taco's documents are

Re: [NTG-context] + in file names

2011-03-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello - 2011/3/14 Peter Münster pmli...@free.fr Vedran Miletić riva...@gmail.com writes: Should + not be used? It seems to work ok without modes, but I haven't tested deeply. There is now an entry in the FAQ:

[NTG-context] \startsetups amd \startJSpreamble

2011-03-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, just to confirm - the role of the text after \start*: \startsetups thumbs - on http://wiki.contextgarden.net/Thumb_index and \startJSpreamble MyStuff used later - in the last mails between Vedran and Hans. Do I understand well that thumbs and MyStuff used later in both cases are

Re: [NTG-context] \startsetups amd \startJSpreamble

2011-03-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks for the explanation. You can write \startsetups[long name with spaces] ... \stopsetups or \startsetups shortname ... \stopsetups Wolfgang I guess the same approach in general, so also: \startJSpreamble[MyStuff used later] Best regards, Lukas -- Ing. Lukáš Procházka

[NTG-context] \setuphead[ownnumber=yes]; disabling parental numbers

2011-03-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, what exactly should the ownnumber=yes|no option do in \setuphead? The following code crashes Ctx: --- %\setuphead[subsection][number=no] % OK \setuphead[subsection][ownnumber=yes] % ERROR \starttext \chapter{Ch1} \section{Sec1} \subsection{SSec1} \stoptext --- Is it

Re: [NTG-context] \setuphead[ownnumber=yes]; disabling parental numbers

2011-03-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Works perfectly, thanks a lot! Lukas what exactly should the ownnumber=yes|no option do in \setuphead? It disables the automatic numbering to allow you set your own number. \definehead[topic][section] \setuphead [topic][ownnumber=yes] \starttext \section{Section} \topic{3}{Topic}

Re: [NTG-context] Letters in head; disabling parental numbers

2011-02-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thank you for the piece of code. \definestructureconversionset[myconversion][numbers,Characters][numbers] \setupheads[sectionconversionset=myconversion] Could you describe the meaning of the second and the third parameter? I found only this on wiki

Re: [NTG-context] \placefigure and \em (again)

2011-02-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks for the answers. I'm familiar with using \dontleavehmode when needing to keep a figure midaligned; I had no idea that this would be a similar situation (and solution). Best regards, Lukas On Fri, 25 Feb 2011 09:37:40 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com

<    1   2   3   4   5   6   7   8   >