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

2011-09-28 Thread Procházka Lukáš
On Wed, 28 Sep 2011 13:16:19 +0200, luigi scarso luigi.sca...@gmail.com wrote: 2011/9/28 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, which of the following command options are (still) valid? --modules=all --extras=all --goodies=all --third=all Which files (or in which

Re: [NTG-context] Nested itemize

2012-04-07 Thread Procházka Lukáš
... Works nice, thank you! Best regards, Lukas On Fri, 06 Apr 2012 18:13:41 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 06.04.2012 um 17:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, is there an option for \startitemize or \setupitemize

Re: [NTG-context] test for (negative) number

2012-08-21 Thread Procházka Lukáš
On Mon, 20 Aug 2012 20:11:32 +0200, Sietse Brouwer sbbrou...@gmail.com wrote: Hi Peter, I recommend using the following handy little idiom: \ctxlua{commands.doifelse(-45 0)}{big}{small} % small It lets you do all sorts of things that are tricky in TeX: \ctxlua{ commands.doifelse(

Re: [NTG-context] test for (negative) number

2012-08-21 Thread Procházka Lukáš
... I also found another solution reposter before: \ctxlua{commands.testcase(condition)} { If true...} {If false} Note that both blocks (if-true and if-false) are mandatory. Considering Wolfgang's last answer, it would be better to write: \ctxcommand{testcase(condition)}

[NTG-context] Ctx ... Lua

2012-08-22 Thread Procházka Lukáš
Hello, sometimes in this mail discussion I'm encountering a Ctx/Lua command which has been unknown for me or I would use other (known) commands to do the job. So - would it be possible to explain - what's the difference/advantage btw \directlua and \ctxlua - what \ctxcommand{} does - what

[NTG-context] MP TeX capacity exceeded

2012-09-01 Thread Procházka Lukáš
Hello, suppose having the following sample code: \starttext \startluacode context.startMPcode() for i = 1, -- 1000 -- OK 1e6 do context(draw (0,0) -- (5cm,5cm);) end context.stopMPcode() \stopluacode \stoptext

Re: [NTG-context] MP TeX capacity exceeded

2012-09-02 Thread Procházka Lukáš
On Sat, 01 Sep 2012 21:47:21 +0200, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Sat, Sep 1, 2012 at 6:28 PM, Procházka Lukáš wrote: Hello, suppose having the following sample code: \starttext \startluacode context.startMPcode() for i = 1, -- 1000

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-02 Thread Procházka Lukáš
Hello, Lua solution: On Sun, 02 Sep 2012 17:59:55 +0200, Aditya Mahajan adit...@umich.edu wrote: Hi, On Edward Tufte's website, there is a discussion on zebra coloring in tables[1]. One of the suggestion is to add a horizontal rule after every third line or shade three lines with one

Re: [NTG-context] trimwhite utility (was: Current ConTeXt wiki)

2012-10-21 Thread Procházka Lukáš
On Sat, 20 Oct 2012 13:49:05 +0200, Marco Patzer home...@lavabit.com wrote: 2012-10-20 Hans Hagen: Another option is to use pdftrimwhite, which is part of the minimals rather than pdfcrop. if needed I can make a mtx-trimwhite (lua instead of perl) +1 If you decide to rewrite

Re: [NTG-context] using variable for subscript in math+lua

2012-10-25 Thread Procházka Lukáš
On Thu, 25 Oct 2012 20:02:22 +0200, Otared Kavian ota...@gmail.com wrote: Hi Philipp, Thanks to you, Dalyoung and Hans for the nice example using luacode. I was wonedring how would you modify your code in order to be able to change the name of the matrix if necessary. For instance, how to

Re: [NTG-context] \copypages[][n=...] not working

2012-10-28 Thread Procházka Lukáš
Hello Hans, thanks for the patch; I guess it will be added to the next beta - ? Best regards, Lukas On Sun, 28 Oct 2012 11:34:41 +0100, Hans Hagen pra...@wxs.nl wrote: \def\page_selectors_copy[#filename][#settings][#figuresettings]% {\bgroup \getfiguredimensions[#filename]%

[NTG-context] Weird print(\n...) error

2012-11-02 Thread Procházka Lukáš
Hello, I encountered a weird error. The following code prints correctly to the console: \starttext \startluacode print(\n@T) \stopluacode Abc \stoptext Gives correct: ... fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern

Re: [NTG-context] System variable HOME

2012-11-03 Thread Procházka Lukáš
On Sat, 03 Nov 2012 12:43:26 +0100, Sietse Brouwer sbbrou...@gmail.com wrote: it seems that Ctx [re]defines the system variable HOME on its run; This is not an answer, but a guess: Could it be that your interactive shell uses one setting, and the non-interactive shell uses another? I'm

Re: [NTG-context] Weird print(\n...) error

2012-11-03 Thread Procházka Lukáš
On Sat, 03 Nov 2012 08:47:33 +0100, Peter Münster pmli...@free.fr wrote: On Fri, Nov 02 2012, Procházka Lukáš wrote: print(\nT) print(\n .. T) Any explanation? \nT is an unknown command. Thanks for your advice, I learned some more also at http://wiki.contextgarden.net

Re: [NTG-context] Narrower paragraphs

2012-11-25 Thread Procházka Lukáš
On Fri, 23 Nov 2012 20:23:44 +0100, Aditya Mahajan adit...@cim.mcgill.ca wrote: ... I probably found it (how easy!): \definestartstop [Rek] [before={\blank\setupnarrower[left=\parindent,right=\parindent]\startnarrower}, after={\stopnarrower\blank}, style=\em, ] (Untested, as I

Re: [NTG-context] ConTeXt Minimal Installer for Windows

2012-12-01 Thread Procházka Lukáš
On Fri, 30 Nov 2012 17:25:42 +0100, Vyatcheslav Yatskovsky yatskov...@gmail.com wrote: Hi again, is it possible to add an option to NOT add path to Ctx binaries to PATH? This may collide with TeXLive users, and also when one switches among more Ctx versions. There is such an option,

Re: [NTG-context] Layer vs. overlay

2013-01-12 Thread Procházka Lukáš
Hello Wolfgang, thank you for your very detailed answer. I'll - try to understand how it works, try your examples what they'll produce... Best regards, Lukas On Sat, 12 Jan 2013 08:44:21 +0100, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 11.01.2013 um 16:32 schrieb Procházka

Re: [NTG-context] [***Spam/VIR***] Re: Layer vs. overlay

2013-01-12 Thread Procházka Lukáš
: Am 11.01.2013 um 16:32 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, I need to add a text to the FOREGROUND of the page. - Layers can refer to a page (or its size) and elements in a layer are drawn BELLOW the (normal) page content. - Overlays are drawn ABOVE

[NTG-context] MP \letterpercent

2013-01-27 Thread Procházka Lukáš
Hello, why the MP code doesn't draw % and # when it uses TeX's \U - inside MP block?: \def\T{TTT} \def\U{UUU \letterpercent\letterhash} \starttext \letterpercent \letterhash \par \startMPcode draw btex AAA etex; draw textext(\T); % draw btex \T etex; % Err draw

[NTG-context] TEST

2010-09-22 Thread Procházka Lukáš
Please ignore this message - it's just a test due to some problems delivering e-mails to this conference. Lukas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] How to use a true type font?

2010-09-22 Thread Procházka Lukáš
Hello, I'm trying to use the BrickToBrick.ttf font. It can be freely downloaded from http://moorstation.org/typoasis/designers/klein05/pic05/brick2brick.htm. Problems are: 1) What's the best destination where the BrickToBrick.ttf should be placed? (Now, I've copied the file to

Re: [NTG-context] How to use a true type font?

2010-09-22 Thread Procházka Lukáš
Miklavec mojca.miklavec.li...@gmail.com wrote: On Wed, Sep 22, 2010 at 12:06, Mojca Miklavec wrote: 2010/9/22 Procházka Lukáš wrote: 1) What's the best destination where the BrickToBrick.ttf should be placed? (Now, I've copied the file to c:\ConTeXt\tex\texmf-local\BrickToBrick.ttf.) You

[NTG-context] Context to MP

2010-09-23 Thread Procházka Lukáš
Hello, I'd like to ask - - where could I find a list of variables which (Con)TeX(t) defines to MetaPost scope? When I browsed the Hans' presentations, I encountered PaperWidth, PaperHeight, Page etc. (see e.g. s-pre-22.tex). I didn't find them mentioned/explained in any manual (especially:

[NTG-context] Lua:mplib

2010-09-23 Thread Procházka Lukáš
Hello, I'm looking for some stuff about calling MP from ConTeXt Lua. The only thing I found is a short reference at http://www.luatex.org/svn/trunk/manual/luatexref-t.pdf, but even when I read some basics (pages 79-83), I don't even know how to draw a line between two points. So I'd like to

Re: [NTG-context] Lua:mplib

2010-09-23 Thread Procházka Lukáš
Gesang pges...@ix.urz.uni-heidelberg.de wrote: On 2010-09-23 09:53:38, Procházka Lukáš wrote: So I'd like to find a tutorial or examples or a deeper reference about how to call MP via Lua from ConTeXt. - Any idea? Hi Lukáš, this doesn't seem to be implemented yet, cf. this post: http

Re: [NTG-context] Context to MP

2010-09-23 Thread Procházka Lukáš
Thanks Wolfgang, I got it. Cheers, Lukas On Thu, 23 Sep 2010 09:50:20 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 23.09.2010 um 09:40 schrieb Procházka Lukáš: Hello, I'd like to ask - - where could I find a list of variables which (Con)TeX(t) defines to MetaPost

[NTG-context] Calling Lua function from an external package

2010-09-29 Thread Procházka Lukáš
Hello, I have the following problem. Let's have T~.lua file which defines a function: --- function F2() context(draw (0,0)--(5cm,0)) end print(T~OK!) --- Let's have MP-02.ctx ConTeXt source file: --- \starttext AAA \startluacode function F() context(draw (0,0)--(2cm,0))

[NTG-context] Problem processing a non-UTF8 Lua script

2010-10-21 Thread Procházka Lukáš
Hello, I have a problem with processing a Lua file similar to that with \typefile described several days (weeks?) ago. Let's have the following files: - Ctx: --- \mainlanguage[cz] \enableregime[cp1250] \starttext AAA \startluacode local t = dofile(t.lua) context(t)

[NTG-context] Simple document with hyperlinks

2010-10-21 Thread Procházka Lukáš
Hello, I'm not able to create a document with working hyperlinks in ConTeXt. The document attached was created in LaTeX - and I'd like to create a similar one in ConTeXt: --- \documentclass{article} \usepackage{hyperref} \begin{document} This a~label.\label{a-label} \newpage This is

Re: [NTG-context] Simple document with hyperlinks

2010-10-21 Thread Procházka Lukáš
Thank you, Henning, now I'm able to create a working example. Lukas The key command is \setupinteraction[state=start] see also e.g. http://wiki.contextgarden.net/Interaction http://wiki.contextgarden.net/Reference/en/setupinteraction http://wiki.contextgarden.net/Reference/en/goto

Re: [NTG-context] Problem processing a non-UTF8 Lua script

2010-10-21 Thread Procházka Lukáš
:49:43 +0200, Vedran Miletić riva...@gmail.com wrote: 2010/10/21 Procházka Lukáš l...@pontex.cz: Or how to make Ctx work with non-UTF8 Lua files? Notepad supports saving to UTF-8. Can't you rather convert your files

[NTG-context] Thicker row separator in a table

2010-10-22 Thread Procházka Lukáš
Hello, I'm trying to get a thicker [transparent] row separator in a table. I have the following code: --- \definetabulate[TabA][|c|] \def\XROW{\vrule height 2.5ex depth 1.ex} \starttext \startTabA A \NR % Next Row B \NR C \SR % Separate Row D \MR % Mid Row E \AR %

Re: [NTG-context] Scaling with \filterpages not working?

2010-11-20 Thread Procházka Lukáš
. And the width option works - how exactly? (See the previous trials.) Best regards, Lukas On Fri, 19 Nov 2010 21:44:16 +0100, Hans Hagen pra...@wxs.nl wrote: On 18-11-2010 2:12, Peter Rolf wrote: Am 18.11.2010 10:53, schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I'm trying similar

[NTG-context] \todo

2010-11-23 Thread Procházka Lukáš
Hello, is there in Ctx something like \todo command, provided by LaTeX via todo package (http://mirror.ctan.org/macros/latex/contrib/todo/todo.pdf)? Namely: Let's have a Ctx code: --- \starttext Some text \todo{My to do} to be continued... \todos \stoptext --- This would produce e.g.

Re: [NTG-context] \todo

2010-11-23 Thread Procházka Lukáš
... OK, thanks both for the inspiration. Lukas On Tue, 23 Nov 2010 20:37:09 +0100, Glen Callaghan glen.callag...@emsolutions.com.au wrote: \setupinteraction[state=start] \defineenumeration[todo][list=todolist,title=yes, listtext={Todo }, before=\startframedtext, after=\stopframedtext]

[NTG-context] Problem with \nolist

2010-11-28 Thread Procházka Lukáš
Hello, I'm receiving errors when compiling the following code (although a .pdf is created): --- \starttext \placecontent \section{AAA \nolist{aaa}} \stoptext --- Error message: --- structure : section @ level 3 : 0.0.1 - AAA \nolist {aaa} ! Undefined control sequence. l.1 AAA

[NTG-context] Problem \input a file (lastest minimals)

2010-11-28 Thread Procházka Lukáš
Hello, I have a problem to \input a file [in the same directory as the main file is]. This problem started appearing with the latest minimals (updated today evening) and there was no such a problem before. Try this: --- main.mkiv \enableregime[cp1250] \input{_inc.mkiv} \starttext AAA

Re: [NTG-context] Problem with \nolist

2010-11-28 Thread Procházka Lukáš
... Thanks. Lukas On Sun, 28 Nov 2010 19:00:37 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 28.11.2010 um 18:29 schrieb Procházka Lukáš: Hello, I'm receiving errors when compiling the following code (although a .pdf is created): [...] ! Undefined control

Re: [NTG-context] Problem \input a file (lastest minimals)

2010-11-28 Thread Procházka Lukáš
- it is originally placed in c:\ConTeXt\tex\texmf-context\tex\context\base\regi-ini.lua. Lukas On Sun, 28 Nov 2010 19:08:56 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 28.11.2010 um 18:52 schrieb Procházka Lukáš: Hello, I have a problem to \input a file [in the same

[NTG-context] contextref vs. cont-enp; co-fonts

2010-12-05 Thread Procházka Lukáš
Hello, just two notices - 1) When searching for some learning stuff, I found the cont-enp.pdf/12.11.2001 (http://www.pragma-ade.com/show-man-9.htm) which ... is the big reference manual, the one that is supposed to cover the whole of CONTEXT.. Some time ago, I downloaded the

Re: [NTG-context] Math and bold font

2010-12-05 Thread Procházka Lukáš
Hello, thanks for the explanation - On Sat, 04 Dec 2010 09:55:25 +0100, Hans Hagen pra...@wxs.nl wrote: On 3-12-2010 5:00, Procházka Lukáš Ing. - Pontex s. r. o. wrote: to get slanted chars, I have to call \it or \sl or \bi explicitly. OK, I In fact in math these are not font switches

[NTG-context] contextref vs. cont-enp; co-fonts (retry)

2010-12-05 Thread Procházka Lukáš
Hello, just two notices - 1) When searching for some learning stuff, I found the cont-enp.pdf/12.11.2001 (http://www.pragma-ade.com/show-man-9.htm) which ... is the big reference manual, the one that is supposed to cover the whole of CONTEXT.. Some time ago, I downloaded the

Re: [NTG-context] Math and bold font: \definetypeface

2010-12-05 Thread Procházka Lukáš
Hello - On Sun, 05 Dec 2010 18:34:34 +0100, Florian Wobbe florian.wo...@awi.de wrote: \definetypeface [\typescriptone] [mm] [math] [cambria] [default] - I don't know what the meaning of individual parameters is: \definetypeface [\typescriptone] % What actually the \typescriptone does?

Re: [NTG-context] Saveable PDF-Files for Adobe Reader

2010-12-11 Thread Procházka Lukáš
... As highlighting and adding comments/hand drawings are concerned, I can recommend [free] pdfXChange Viewer. http://www.tracker-software.com/product/pdf-xchange-viewer Lukas On Fri, 10 Dec 2010 12:13:20 +0100, Daniel Grycman daniel.gryc...@rub.de wrote: Using Foxit Reader helps a lot...

Re: [NTG-context] Proposal for math mappings

2010-12-12 Thread Procházka Lukáš
Hello, thanks for the deeper explanation - On Sat, 11 Dec 2010 17:28:55 +0100, Aditya Mahajan adit...@umich.edu wrote: I agree that digits, upper and lower case latin and greek does not capture all mathematic characters for which such mappings are needed. Similar mappings might also be needed

[NTG-context] Passing and retrieveing a variable

2011-01-05 Thread Procházka Lukáš
Hello, I'd need to pass a variable to Ctx and to retrieve it inside a compiled document - via Ctx itself and also by Lua. Something like modes; but modes allow just to check whether they are on or off. I'd need something like this: Calling context.exe: --- call context.exe test.mkiv

Re: [NTG-context] Passing and retrieveing a variable

2011-01-08 Thread Procházka Lukáš
Hello, thanks for detailing the observation - On Fri, 07 Jan 2011 22:58:24 +0100, Hans Hagen pra...@wxs.nl wrote: On 7-1-2011 9:32, Procházka Lukáš Ing. - Pontex s. r. o. wrote: - Modes are accessible by tex.modes[a-mode]. indeed - - tex.modes are 'false' by default. I.e

[NTG-context] Forming paragraphs

2011-01-23 Thread Procházka Lukáš
Hello, I would need to form paragraphs to such a shape: Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. -- \textwidth --| I.e.

Re: [NTG-context] Forming paragraphs

2011-01-23 Thread Procházka Lukáš
Hello, thanks for the link, this seems to do the job. Lukas On Sun, 23 Jan 2011 14:35:24 +0100, Stefan Müller warrence@gmx.de wrote: Hi, did you already take a look at this? http://wiki.contextgarden.net/Shaped_paragraphs HTH, Stefan. On 23.01.2011 13:38, Procházka Lukáš wrote

Re: [NTG-context] first-setup for windows

2011-01-26 Thread Procházka Lukáš
Hello Mojca, On Wed, 26 Jan 2011 20:31:47 +0100, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: I would like to ask windows users to test the attached setup file if it works any better (and to make sure that I didn't do any mistakes while typing). I have put the updated version of

[NTG-context] Headers another way

2011-02-08 Thread Procházka Lukáš
Hello, I'm trying to solve an interesting problem. (The document should be generated by Lua actually, but probably this is not of importance.) I'd need create various headers, but it's not known which command to be used a priori; only their relative position is known. The head creating

Re: [NTG-context] Headers another way

2011-02-09 Thread Procházka Lukáš
Hello, thanks Hans and Wolfgang for the answers - I'll study the examples. Best regards, Lukas On Tue, 08 Feb 2011 18:37:43 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: http://www.ntg.nl/pipermail/ntg-context/2010/052754.html

[NTG-context] Vertical space after tabulate

2011-02-13 Thread Procházka Lukáš
Hello, just a brief question - - is it possible to affect the vertical space after [\starttabulate ...] \stoptabulate? In the example attached, the space after each tabulate is too wide. I'd like to achieve space closer to normal spacing, i.e. distance between B and a (and between b and U)

Re: [NTG-context] Vertical space after tabulate

2011-02-13 Thread Procházka Lukáš
... How easy! Thanks a lot. Lukas On Sun, 13 Feb 2011 19:34:16 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: - is it possible to affect the vertical space after [\starttabulate ...] \stoptabulate? \setuptabulate[before=,after=] Wolfgang

[NTG-context] Problems with (features of?) hangaround text

2011-02-14 Thread Procházka Lukáš
Hello, I'd need to place a picture and let it be flowed by some text from the right side. My observation is that only one (= the first) paragraph flows the picture correctly (see the \input tufte only case); see the attached example. It there a way how to: - enable heads (e.g. \subject) in

Re: [NTG-context] Ideas for restructuring the ConTeXt garden?

2011-03-12 Thread Procházka Lukáš
Hello, my personal opinion(s) (some of them very similar to Marco's ones): 1) why users are confused with mkiv/mkii? (Cannot say; I started with MkIV so for me ConTeXt = MkIV.) 2) why they my be reluctant to install the minimals? The word minimals is a bit confusing. It implies that

[NTG-context] Ctx running once?

2011-03-14 Thread Procházka Lukáš
Hello, is there a possibility how to let Ctx run just once, not three times (as usually), keeping in mind that TOC and/or page numbers may be wrong, just to check correctness of the document? - I have a longer document with enough MP code and I'm interested often just whether there is no

Re: [NTG-context] 620 pages limit?

2011-03-14 Thread Procházka Lukáš
\count0=0 \loop\ifnum\count05000 \advance\count0 by 1 \shipout\vbox{} \repeat \end The same error on WinXP 32: ConTeXt ver: 2011.01.26 11:02 MKIV fmt: 2011.1.26 int: english/english ... pagesflushing realpage 3987, userpage 1, subpage 1 PANIC: unprotected error in call to

[NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Procházka Lukáš
Hello, I'm trying to create an overlay - text with a line drawn bellow. The following code: --- \defineoverlay[Label][\useMPgraphic{Label}] \startuniqueMPgraphic{Label} path p; p := (0,0) -- (OverlayWidth,0); draw p yshifted -1cm withpen pencircle scaled 1mm withcolor .667red;

Re: [NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Procházka Lukáš
... Thanks, so a dirty trick must be done anyway? A trick which would cause MP to evaluate a higher bounding box? draw p withpen pencircle scaled 0mm withcolor white; --- draw (0,0); --- instead works as well. draw p yshifted -OverlayHeight withpen pencircle scaled 1mm withcolor .667red;

Re: [NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Procházka Lukáš
On Sat, 19 Mar 2011 23:13:46 +0100, Aditya Mahajan adit...@umich.edu wrote: You do not need yshifted. But you need to set the bounding box of the resulting image correctly. \startuniqueMPgraphic{Label} path p; p := (0,0) -- (OverlayWidth,0); draw p withpen pencircle scaled 1mm withcolor

[NTG-context] Wiki: MkIV vs. MkII

2011-04-08 Thread Procházka Lukáš
Hello, I encountered a problem running an example by MkII (which seems to be default) rather than by MkIV (see related discussion on http://www.ntg.nl/pipermail/ntg-context/2011/058369.html). Although in many examples (I mean context ... /context wiki source code) in doesn't matter which Ctx

Re: [NTG-context] Grammar

2010-07-27 Thread Procházka Lukáš
... When I remove + and /^ from general gender symbols O + and ^ / O I get simply 0, so why not use this for (wo)man in general :) Lukas On Tue, 27 Jul 2010 15:17:51 +0200, Hans Hagen pra...@wxs.nl wrote: On 27-7-2010 3:06, John Haltiwanger wrote: I for one have always thought it

Re: [NTG-context] \os

2014-08-02 Thread Procházka Lukáš
Hello, On Sat, 02 Aug 2014 19:07:43 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Don’t use the \os command this way because the command is only meant to be used on the form {\os 1234} where you put braces around the numbers you want to change. When you use the \os command as

Re: [NTG-context] \os

2014-08-03 Thread Procházka Lukáš
Hello, thanks, Wolfgang, it's clear now completely. On Sun, 03 Aug 2014 20:48:11 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: When you *want* your document to use old style figures for the body font you have to enable the onum feature in the default feature set which can be

Re: [NTG-context] Redirect compilation to another .pdf?

2016-06-06 Thread Procházka Lukáš Ing .
Hello Hans, just to remind - - would it be possible to use "--result=OutputFileName" as the name for the output stream immediately? (See the history bellow.) Best regards, Lukas On Sun, 10 Apr 2016 23:43:30 +0200, Hans Hagen wrote: On 4/10/2016 9:49 PM, Lukáš Procházka

[NTG-context] \usemodule[pgfplots] fails

2016-02-08 Thread Procházka Lukáš Ing .
Hello, the following code: \usemodule[pgfplots] \starttext aaa \stoptext fails with: " close source> 1 > 16 > d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv tex error > tex error on line 0 in file : ! Emergency stop <*> cont-yes.mkiv " When I

Re: [NTG-context] \externalfigure produces blank page

2016-02-04 Thread Procházka Lukáš Ing .
Hello, nice to hear that. So - when I renew Ctx tonight, will it work well tomorrow? Lukas On Thu, 04 Feb 2016 12:54:24 +0100, luigi scarso <luigi.sca...@gmail.com> wrote: On Thu, Feb 4, 2016 at 12:44 PM, Procházka Lukáš Ing. <l...@pontex.cz> wrote: Hello, let's have a

[NTG-context] \externalfigure produces blank page

2016-02-04 Thread Procházka Lukáš Ing .
Hello, let's have a simple code: \starttext \startTEXpage \externalfigure[Tv32.pdf]%[scale=500] \stopTEXpage \stoptext It yields a blank (or empty) page (its size A1 is OK); and the size of the resulting .pdf is very close to that of the inserted image. The inserted Tv32.pdf

Re: [NTG-context] \usemodule[pgfplots] fails

2016-02-08 Thread Procházka Lukáš Ing .
, Hans Hagen <pra...@wxs.nl> wrote: On 2/8/2016 11:02 AM, Procházka Lukáš Ing. wrote: Hello, the following code: \usemodule[pgfplots] \starttext aaa \stoptext fails with: " close source> 1 > 16 > d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.m

[NTG-context] \starthiding inside \doifmode?

2016-02-12 Thread Procházka Lukáš Ing .
Hello, it seems that \starthiding ... \stophiding dislikes \doifmode scope. The following code fails: \enablemode[A] \starttext Hello \starthiding Don't show me %\stophiding \doifmode{A} { Aaa \starthiding Don't show me %\stophiding } World \stoptext

[NTG-context] papersize A1?

2016-02-02 Thread Procházka Lukáš Ing .
Hello, the following code doesn't produce 594 x 841 mm (A1) page; the resulting size is 594 x 758 mm. Also, there is no "Hello" text. \setuppapersize[A1] \starttext Hello \stoptext What's wrong? Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r.

Re: [NTG-context] Job done event

2016-02-15 Thread Procházka Lukáš Ing .
Thanks, working solution! Lukas On Sun, 14 Feb 2016 15:38:28 +0100, Wolfgang Schuster wrote: \appendtoks ... % put your own code here \to \everystoptext Wolfgang -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. |

[NTG-context] Buffer with syntax highlighting

2016-02-17 Thread Procházka Lukáš Ing .
Hello, is it possible to \typebuffer with a syntax highlighting? \typefile allows to specific syntax highlighter, e.g. \typefile[TEX]{file.tex}; \typebuffer does not (AFAIK). It would be useful to have: \startbuffer[demo] \startitemize \item Hello! \stopitemize \stopbuffer which

Re: [NTG-context] Buffer with syntax highlighting

2016-02-17 Thread Procházka Lukáš Ing .
That's it, thank you! Lukas On Wed, 17 Feb 2016 13:39:47 +0100, Marco Patzer <li...@homerow.info> wrote: On Wed, 17 Feb 2016 13:16:03 +0100 Procházka Lukáš Ing. <l...@pontex.cz> wrote: is it possible to \typebuffer with a syntax highlighting? \typebuffer [demo] [option=co

Re: [NTG-context] in next beta

2016-03-10 Thread Procházka Lukáš Ing .
Hello, I'm probably not getting what supposed; my sample files are attached; both were compiled with today's beta. Could the intended product be placed somewhere to download? Best regards, Lukas On Tue, 08 Mar 2016 11:22:50 +0100, Hans Hagen wrote: On 3/7/2016 9:59 PM,

Re: [NTG-context] Are nested sections possible?

2016-03-14 Thread Procházka Lukáš Ing .
Hello, one more thing: It would be nice to allow mixing: - \section like commands (or \startsection ... \stopsection) - AND \startsectionlevel ... \stopsectionlevel. The main problem is that one may NEED to mix: - (ancient) source files which use \section (deprecated) style - with more

Re: [NTG-context] combining itemize and starttabulate

2016-04-07 Thread Procházka Lukáš Ing .
Hello, that's a great feature! I guess it will be involved into Ctx (with the next beta)... Lukas On Thu, 07 Apr 2016 10:49:25 +0200, Hans Hagen wrote: On 4/6/2016 1:04 PM, Jan Willem Flamma wrote: Dear members, The following combination of itemize and starttabulate is

[NTG-context] How to center \framed on a position?

2016-04-06 Thread Procházka Lukáš Ing .
Hello, how to center vertically and horizontally a \framed text at the layer origin? I'm not able to figure it out... Here's my code: \setuplayout[page] \definelayer[mybg] \setlayer[mybg] [x=\dimexpr.5\paperwidth\relax,y=\dimexpr.5\paperheight\relax,] {\framed

Re: [NTG-context] Redirect compilation to another .pdf?

2016-04-11 Thread Procházka Lukáš Ing .
Hello, On Sun, 10 Apr 2016 23:43:30 +0200, Hans Hagen wrote: On 4/10/2016 9:49 PM, Lukáš Procházka wrote: - the option "--jobname" is not listed when you type "context.exe" (= help), so it seems like a "hidden" option; it's not supported as engine flag - Suggestion: would

Re: [NTG-context] How to get the current section level?

2016-04-04 Thread Procházka Lukáš Ing .
... That's it, thank you! Lukas On Mon, 04 Apr 2016 11:30:15 +0200, Wolfgang Schuster wrote: Lukáš Procházka 3. April 2016 um 22:02 Hello, is there a (Lua) way how to get the current section level? \startsetups[headinformation]

[NTG-context] Thick border of one side of TR/TD

2016-05-17 Thread Procházka Lukáš Ing .
Hello, what is the easiest way to border table row along ONE side? In my example - first row bottom and last row top? All being typeset as TABLE (i.e. \bTABLE ... \bTR ... \bTD ...). I played a bit with rulethickness for TD and/or TR but in all attempts the WHOLE border thickness is

[NTG-context] Dotted box in a form

2016-08-10 Thread Procházka Lukáš Ing .
Hello, I need to create a double "sign-here" form, with the space for the signature underlined with dots. The code bellow works fine and does exactly what I need. The potential question is whether there is a simpler way to achieve this, even without MP code, e.g. with only \leaders or what.

[NTG-context] Restoring/switching paper size?

2016-07-18 Thread Procházka Lukáš Ing .
Hello, why this code doesn't restore A4-portrait for page 3? \showframe \starttext Page 1 \page \adaptpapersize[A4,landscape] Page 2 \page Page 3 \stoptext (I need to mix A4 portrait/landscape pages in a document...) When I need to switch to landscape for more pages

Re: [NTG-context] Restoring/switching paper size?

2016-07-18 Thread Procházka Lukáš Ing .
2016 16:00:05 +0200, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Procházka Lukáš Ing. <mailto:l...@pontex.cz> 18. Juli 2016 um 15:09 Hello, why this code doesn't restore A4-portrait for page 3? \showframe \starttext Page 1 \page \adaptpapersize[A4,land

Re: [NTG-context] Restoring/switching paper size?

2016-07-18 Thread Procházka Lukáš Ing .
Hello, one more problem - paper height still 297 mm? \definepapersize[A4L][A4,landscape] \showframe \starttext \setuppapersize[A4L] A4L \stoptext (Ctx already patched by WS' solution.) Best regards, Lukas On Mon, 18 Jul 2016 16:41:06 +0200, Procházka Lukáš Ing. &l

Re: [NTG-context] Go to odd page, use an empty page eventually?

2016-07-20 Thread Procházka Lukáš Ing .
That's it, thank you! Lukas On Wed, 20 Jul 2016 10:37:04 +0200, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Procházka Lukáš Ing. <mailto:l...@pontex.cz> 20. Juli 2016 um 09:37 Hello, is there a way to tell ConTeXt "go to odd page, insert empty page to reach

[NTG-context] Go to odd page, use an empty page eventually?

2016-07-20 Thread Procházka Lukáš Ing .
Hello, is there a way to tell ConTeXt "go to odd page, insert empty page to reach the next odd page" eventually? (IOW: When currently on odd page, break page and insert one empty (blank) (= even) page; continue on the next (= odd) page. When currently on even page, break page

Re: [NTG-context] Restoring/switching paper size?

2016-07-20 Thread Procházka Lukáš Ing .
Great, thank you! Lukas On Mon, 18 Jul 2016 17:12:04 +0200, Wolfgang Schuster wrote: A normal environment should be enough (push and pop are used to save and restore states etc.) which inserts are the necessary page breaks. \unprotect \def\startpapersize

Re: [NTG-context] Product-component structure

2016-07-11 Thread Procházka Lukáš Ing .
Hello, my "how-I-do-it" used for typesetting a large book was: styles.sty % Styles, settings etc.; never compiled individually, thus ".sty"; the file also doesn't use '\startenvironment' ... '\stopenvironment' commands (I even don't know whether such commands exist; anyway, I didn't need

[NTG-context] Detect an empty page of a .pdf?

2016-07-11 Thread Procházka Lukáš Ing .
Hello, is there a ConTeXt-Lua way to detect whether i-th page of a .pdf is empty (meaning "has no text on it")? Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241

[NTG-context] \startsectionlevel broken?

2016-08-08 Thread Procházka Lukáš Ing .
Hello, I'm getting weird output with \startsectionlevel - its parameters are flushed into page. I copied a sample from http://source.contextgarden.net/tex/context/base/strc-lev.mkvi?search=dodo and I compiled it with: " This is LuaTeX, Version 0.98.0 (TeX Live 2016/W32TeX) system

[NTG-context] Header background off with \page?

2016-08-08 Thread Procházka Lukáš Ing .
Hello, the following code: \setupheadertexts[Le][Ri] \setupbackgrounds[header][text][bottomframe=on] \starttext \startTEXpage \externalfigure[dummy] \stopTEXpage \page[yes,header,footer,odd] % Empty page to come here Blabla \stoptext should generate an empty page. The

[NTG-context] Nicer than 'context("\\\\")'?

2016-08-08 Thread Procházka Lukáš Ing .
Hello, is there an alternative code instead of 'context("")'? See the code: \starttext %\startsetups[headertext] % \startframed[width=fit,align=flushleft] %Bla\\ %Uhh % \stopframed %\stopsetups \startluacode context.startsetups{"headertext"}

[NTG-context] Dotted characters

2016-08-16 Thread Procházka Lukáš Ing .
Hello, I'm preparing a child copybook. I'd like to write a uppercased letter "as is" followed by its shape drawn with dots - something like /\ . / \ . . /\ . / \ . . I guess that some MP "trick(s)" might be used; also, a "simple" font should be used to be

Re: [NTG-context] Dotted characters

2016-08-16 Thread Procházka Lukáš Ing .
Hello Taco, On Tue, 16 Aug 2016 09:43:12 +0200, Taco Hoekwater wrote: Hi Lukáš, Most anything can be programmed, but in this case the task is very difficult. Modern fonts always use filled paths instead of stroke lines, so an “A” consists of two paths: the outer shape

Re: [NTG-context] Dotted characters

2016-08-16 Thread Procházka Lukáš Ing .
Hello Hans, On Tue, 16 Aug 2016 09:54:26 +0200, Hans Hagen wrote: the best one can expect without too much work is \startMPpage draw outlinetext.f ("A") () ; currentpicture := currentpicture shifted (-bbwidth currentpicture,0) ; draw

[NTG-context] Dot fills shifted down

2017-01-31 Thread Procházka Lukáš Ing .
Hello, the following code: \definefiller [DotFill] [alternative=symbol, symbol=., width=.5em, style=\txx] Fill here: \filler[DotFill]{} produces filler with dots on the baseline. Is there a way to shift the dots a bit lower, bellow the baseline, e.g. to 0.25em

Re: [NTG-context] Dot fills shifted down

2017-01-31 Thread Procházka Lukáš Ing .
Best regards: OK On 31 Jan 2017, at 12:33, Procházka Lukáš Ing. <l...@pontex.cz> wrote: Hello, the following code: \definefiller [DotFill] [alternative=symbol, symbol=., width=.5em, style=\txx] Fill here: \filler[DotFill]{} produces filler with dots on

[NTG-context] Unicode text conversion

2017-01-27 Thread Procházka Lukáš Ing .
Hello, does ConTeXt contain a built-in Lua conversion routine to convert text in UTF-16 (and others) to UTF-8 string? Something like: \startluacode local str = "A unicode string" -- Or e.g. string loaded from a file str = convert(str, "utf16", "utf8") context(str) \stopuacode

  1   2   3   4   5   6   7   8   >