Re: [NTG-context] Gallery of fonts

2014-09-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I (partially) succeeded with creation of the font "showcase"; the script attached generates simple preview of how the font looks. If anyone interested, the result (~2.2 MB) may be downloaded from: http://leteckaposta.cz/309703124 (The link will be valid for about 1 month from now.) Bes

[NTG-context] Gallery of fonts

2014-09-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello ConTeXtists, there are many fonts distributed with Ctx standalone (minimals). I'd like to create a "gallery" (or "preview") of fonts - one font per page (A4) with all its "kinds" (italic, bold, semibold; ss, rm, hw atc.), and a couple of sizes (10, 11, 12, 16, 24 pt). Is there a way how

[NTG-context] XML as source (was: E-books and XML)

2014-08-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Thomas, I'm just curious: - Which editor(s) (including commercial one(s)) do you usually use to create XML source for Ctx? (Under Windows?) - XML input vs. .tex (.cld) source: IMHO, when one needs to program parts of Ctx source, it's better to use TeX source/language combined with Lua

Re: [NTG-context] Class diagram in Ctx?

2014-08-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks both for the tips, I'm going to try. 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 096 751 Fax: +420 244 461 038 ___

[NTG-context] Class diagram in Ctx?

2014-08-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd like to create a "class diagram" (or "hierarchy chart") with ConText, something like: [class A] | \ V V [class B] [class C] Could anyone hint me how to start? Or which module to use? TikZ? - An initial hint would be appreciated, I'll study next... Thanks in advance

Re: [NTG-context] \os

2014-08-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, my case may be a bit more complicated; it uses an environment file which uses \os in it. So let's have: \definefontfeature[default][default][onum=no,lnum=yes] % In fact, in a separate environment file >> \setupbodyfont[palatino,11pt] \os % In fact, in a separate environment file <<

[NTG-context] \os

2014-08-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the command \os turns old-style numbers on. How to turn it off (when being on initially)? TIA. 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 096 751 F

Re: [NTG-context] Typesetting file names with ~

2014-07-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Wed, 30 Jul 2014 14:21:09 +0200, Tomas Hala wrote: \type{d:/xx/~/yyy} that's it; thanks. Lukas Cheers, Tom -- 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 096 751

[NTG-context] Typesetting file names with ~

2014-07-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, which is the best way to typeset text (aka file names) containing tilde so that the tilde be visible? I guess there is a something like (inline) "verbatim" mode which makes ~ (and maybe % $ etc.) visible... I need to typeset e.g. d:/Lukas/~/abc.def and I'd like avoid "translating" ~

Re: [NTG-context] project structure

2014-07-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Sat, 26 Jul 2014 11:01:15 +0200, Hans Hagen wrote: Hi, There is a new experimental feature (one of the side effects of discussions with Alan about bibliographies and using distributed files in a project structure). Say that you have this: test1.tex : uses \component one/test2 one

Re: [NTG-context] Resetting \setupTABLE

2014-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how about to enclose the former TABLE (including its \setupTABLE) into a group - {} or \bgroup ... \egroup? I guess setups are local... Regards, Lukas On Mon, 23 Jun 2014 07:30:52 +0200, Troy Henderson wrote: What is the "proper" way to reset the setups made by \setupTABLE so that

[NTG-context] Latest Ctx Beta - input file coding problem?

2014-06-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I cannot compile the following code: \mainlanguage[cz] \enableregime[cp1250] \starttext \section{Poznámky} \stoptext It worked so far - I guess something is wrong with the input file encoding specification. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex

Re: [NTG-context] Special look of \item

2014-05-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Thu, 29 May 2014 18:05:47 +0200, Aditya Mahajan wrote: BTW: I tried to wikify but the result differs from that I'm getting with the latest beta (attached to this mail); so I wikified nothing. The wiki uses an old context version. You should try the example with ... Yes, this i

Re: [NTG-context] Special look of \item

2014-05-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks a lot, that gave me a hint! Finally I'm using: \define[1]\ItemCommand{\hangindent=1.5in\relax\simplealignedbox{1.5in}{flushleft}{#1\hss--- }\ignorespaces} \setupitemize[command=\ItemCommand] \starttext \startitemize \item{Ward} \input ward \input ward \item{K

[NTG-context] Special look of \item

2014-05-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a way how to achieve the following look of items inside \staritemize ... \stopitemize: |<-- textwidth -->| * Item - abc def ghi jlk mn op qrst uw xyz Some other text that belongs to the item. * Longer item - abc def ghi jlk mn op

[NTG-context] Ctx & Lua 5.3 (was: Ctx goes into infinite loop?)

2014-05-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Sun, 25 May 2014 18:33:59 +0200, Hans Hagen wrote: On 5/25/2014 1:33 PM, Lukáš Procházka wrote: - Question: when is Ctx supposed to adopt Lua 5.3? It will take a while as - 5.3 it's not yet official - then 5.3 needs to become stable - we need to test implications of the new numb

Re: [NTG-context] Ctx goes into infinite loop?

2014-05-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, \input \HOME/Common/_Defs_.ctx at least put { } around the input name -- \startluacode local home = (os.getenv("HOME.ORG") or os.getenv("HOME") or "?"):gsub("\\", "/") context.setvalue("HOME", home) \stopluacode \input{\HOME/Common/_Defs_.ctx} \starttext Test \stoptext --

[NTG-context] Ctx goes into infinite loop?

2014-05-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I have problem running the latest Ctx beta. Suppose having: -- C:\Lukas\Jobs\D3-Sk\SO_237-20.RDS\Drawings\t2.mkiv \startluacode local home = (os.getenv("HOME.ORG") or os.getenv("HOME") or "?"):gsub("\\", "/") context.setvalue("HOME", home) \stopluacode \input \HOME/Common/_Defs_.

Re: [NTG-context] Interactive U3D in .pdf via ConTeXt?

2014-05-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks both for the solution. Interactive 3D graphics works well with the latest Ctx Beta; even the "preview" member is not necessary. My last attempt with Laurana which gives the desired result can be downloaded here (30 days from now): http://leteckaposta.cz/809373502 On Sun, 18 May

Re: [NTG-context] Centering tabulate env. using \setuptabulate

2014-05-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Wikified: http://wiki.contextgarden.net/Tabulate#Horizontal_centering_table_on_the_page Lukas On Tue, 13 May 2014 07:03:58 +0200, Mikael P. Sundqvist wrote: I'd do such things with \starttext \input knuth\par \placetable[force,none]{none}{% \starttabulate[|r|l|] \HL \NC I want this ta

Re: [NTG-context] joinedup in itemize changed?

2014-05-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I've never used "joinedup" option so I cannot confirm its behavior has changed. Anyway, I'm getting the same result with the last Ctx beta and Ctx "ver: 2012.11.26"; see attachs. It seems "joindeup" implies "packed", too; I don't know if it is an intention/feature. Best regards, Luka

Re: [NTG-context] tabulate: header not repeated

2014-04-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... OK, it seems repeated headers with 'tabulate' are not used frequently by Ctx users. Probably 'b/e-TABLE' would do the job; so are repeated headers with 'tabulate' buggy and/or deprecated? Best regards, Lukas On Thu, 24 Apr 2014 08:41:51 +0200, Procház

[NTG-context] tabulate: header not repeated

2014-04-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, 'tabulate' header is not repeated across pages, the header appears only at the begin of the 'tabulate'. The code is based on http://wiki.contextgarden.net/Tabulate#Headers \starttext \setuptabulate[split=yes,header=repeat] \starttabulatehead \HL \NC A \NC B \NC\NR

Re: [NTG-context] Attach (embed) a file info a .pdf

2014-04-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Wed, 23 Apr 2014 11:37:02 +0200, Wolfgang Schuster wrote: \setupinteraction[state=start] It work now, thanks. And - hopefully the last question: Is it possible to affect the icon shown (now: "pin") (to be eg. "paperclip")? And is it possible to hide the icon completely? (I tried "metho

Re: [NTG-context] Attach (embed) a file info a .pdf

2014-04-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... One more question: the following example seems not to contain any attachment: t4.mkiv \attachment[t4.mkiv] \starttext AAA \stoptext What's wrong? Lukas Comments from scrn-wid.mkvi: % old but stil valid method: % % \useattachment[test.tex] % \useattachment[whatever][test.te

Re: [NTG-context] Attach (embed) a file info a .pdf

2014-04-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Great, thank you! Lukas Comments from scrn-wid.mkvi: % old but stil valid method: % % \useattachment[test.tex] % \useattachment[whatever][test.tex] % \useattachment[whatever][newname][test.tex] % \useattachment[whatever][title][newname][test.tex] % % new method: % % \registerattachment[som

[NTG-context] Attach (embed) a file info a .pdf

2014-04-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm not able to recall the way how to attach a file into a .pdf being generated. I need the attached files to be "openable" or "savable" from the .pdf - see the image. How to achieve this with ConTeXt? Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r.

Re: [NTG-context] Tabulate: how to center "tabulate" horizontally?

2014-04-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, it works, thanks! Lukas On Wed, 02 Apr 2014 11:26:39 +0200, H. Özoguz wrote: I'm trying to center horizontally a "tabulate", but the "tabulate" is still placed on the left side of the page. How to center it? You could use the tabularframe and align in the middle: \defineframedco

[NTG-context] Tabulate: how to center "tabulate" horizontally?

2014-04-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to center horizontally a "tabulate", but the "tabulate" is still placed on the left side of the page. How to center it? Here is my code: \starttext \startalignment[center] \dontleavehmode \externalfigure[cow] \stopalignment \startalignment[center] \do

Re: [NTG-context] How to test the emptyness of a variable?

2013-11-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, Lua way: \setuplabeltext[chapter=] \define[1]\MyCommand{\ctxcommand{doifelse(1==\currentsectioncountervalue)}{ONE}{#1}} \setuphead[chapter][deepnumbercommand=\MyCommand] \starttext \chapter{Cool} \chapter{Cat} \chapter{Mouse} \stoptext I'm sure there is also a "cleaner

Re: [NTG-context] Aligning Part-Title in TOC

2013-11-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, a bit ugly but working somehow \setuphead[part][number=no] %\showboxes \starttext \completecontent \part{\inframed[frame=off]{Part 2:} \inframed [frame=off,width=fit,align=flushleft,location=high] {This is the title of the first part, it is very ver

Re: [NTG-context] Sectioning from 0?

2013-11-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... It works perfectly, thanks! Lukas On Tue, 05 Nov 2013 23:31:25 +0100, Wolfgang Schuster wrote: Am 05.11.2013 um 13:22 schrieb Procházka Lukáš Ing. - Pontex s. r. o. : Hello, I noticed now that: \starttext \startsection[ownnumber=0,title=A] bla \stopsection

Re: [NTG-context] Sectioning from 0?

2013-11-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I noticed now that: \starttext \startsection[ownnumber=0,title=A] bla \stopsection \startsection[title=B] bla \stopsection \stoptext gives: " 0 A bla 2 B <- 1 should be here instead of 2; automatically bla " instead of: " 0 A bla 1 B bla " So my o

[NTG-context] \startstructurelevel

2013-10-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a default structure (if so, what is its name?) which would yield \subsection when used inside \section, so: \starttext \section{Sec} \startstructurelevel[title={SSec}] % This should give \subsection, but gives \section (or higher) aaa \stopstructurelevel \

Re: [NTG-context] Hooking stoptext

2013-10-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 08 Oct 2013 13:40:26 +0200, Marco Patzer wrote: On 2013–10–08 Procházka Lukáš Ing. - Pontex s. r. o. wrote: I'm trying to hook commands.stoptext()... There is already a hook for that. No need to tinker with Lua. \setupexternalfigures [location=default] \setupdocument [

[NTG-context] Hooking stoptext

2013-10-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to hook commands.stoptext()... Here's a minimal example: why only the first image appears? \startluacode local cmd_p local tab = {} f = function(a) if not cmd_p then cmd_p = commands.stoptext commands.stoptext = function(...) context("Hook"

Re: [NTG-context] Sectioning from 0?

2013-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Fri, 04 Oct 2013 16:11:10 +0200, Peter Münster wrote: On Fri, Oct 04 2013, Procházka Lukáš Ing. - Pontex s. r. o. wrote: \subsection[ownnumber=0]{C} Maybe \start/stop-subsection would be better for this case... But how? Did you try this: \starttext \startsection[ownnumber=123, title=A

[NTG-context] Sectioning from 0?

2013-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to force a section command to have its own number, e.g. 0? E.g.: \section{A} \subsection{B} \subsection[ownnumber=0]{C} \subsection[ownnumber=XX]{D} to produce: " 1 A 1.1 B 1.0 C 1.XX D " Maybe \start/stop-subsection would be better for this case... But how?

Re: [NTG-context] \setupTABLE strangeness

2013-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Peter, two more ways which work OK (my preferred ways): \section{Alt 1} \bTABLE \setupTABLE[width=3cm, height=3cm, align={middle, lohi}] % Place setup just after \bTABLE... \bTR \bTD bla \eTD \eTR \eTABLE \section{Alt 2} \bTABLE[width=3cm, height=3cm, align={middle,

Re: [NTG-context] Lua & \let

2013-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Fri, 04 Oct 2013 10:54:37 +0200, Hans Hagen wrote: On 10/4/2013 10:47 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello all, how to call \let from within Lua? I'd need to "\let\T=4" using Lua. The following code doesn't work (not so surprisingly): \s

[NTG-context] Lua & \let

2013-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello all, how to call \let from within Lua? I'd need to "\let\T=4" using Lua. The following code doesn't work (not so surprisingly): \startluacode a = 4 \stopluacode \expandafter\let\expandafter\T=\cldcontext{a} \starttext Test \T. \stoptext What's the correct way? TIA. Luk

[NTG-context] How to typeset two columns with longer text

2013-09-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, suppose we need to typeset text into two (generally: several) columns. Depending on the length of the text in the first (generally: i-th) column we need to choose an alternative: 1) Short-text Some-text-in-the-second-column Another-text Some-other-text or: 2) Very-long-text-in-the

Re: [NTG-context] [***SPAM***] YATM (Yet Another Table Method)

2013-09-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, just one user's point of view: There are many table-creating commands. Some of them are deprecated and only supported for backward compatibility. It seemed to me till now that natural tables (provided by \...TABLE... commands) were best choice as they are versatile, they have friendly

Re: [NTG-context] Section in golden ratio?

2013-07-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Great, thanks again! Cheers, Lukas On Thu, 04 Jul 2013 08:49:49 +0200, Wolfgang Schuster wrote: Am 04.07.2013 um 08:29 schrieb Procházka Lukáš Ing. - Pontex s. r. o. : @Wolfgang: What does option "[text]" in your original "\definemakeup[section][text]" mean?

Re: [NTG-context] Section in golden ratio?

2013-07-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks Peter and Wolfgang for their answers. Both following codes work: P. \setuplayout[page] \define\bef{\page\vbox to\textheight\bgroup\vfill\vfill} \define\aft{\vfill\vfill\vfill\egroup} \setuphead[section] [before=\bef,after=\aft, %commandbefore=\cbef,commandafter=\caft,

[NTG-context] Section in golden ratio?

2013-07-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to setup section to be placed vertically in the golden ratio of the page, i.e. cca 2 "units" above the section and 3 "units" bellow. How to achieve this? My code so far is: \setuplayout[page] \define\bef{\page\hbox to\textheight\bgroup\vfill\vfill\fi} \define\aft{\vfil

Re: [NTG-context] PdfXChange Viewer (slightly related to "Overriding pdfview")

2013-07-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Mon, 01 Jul 2013 10:54:11 +0200, Hans Hagen wrote: you can add this to l-pdfview.lua (opencalls windows section): ['pdfxcview'] = [[start "test" pdfxcview.exe /A "nolock=yes=OpenParameters" "%filename%"]], if you have a texmfcnf.lua file in your local tree you can add a directi

[NTG-context] PdfXChange Viewer (slightly related to "Overriding pdfview")

2013-06-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, as I saw many pdf viewers being supported by "--autopdf=...", there is one more (my favourite; Windows) - basic version is free but powerful, fast, keeps last view for each document; allows auto-reopen lately opened docs; enables copy-to-clipboard (text/image); annotations; allows simpl

Re: [NTG-context] \centerline vs. \midaligned vs. \startalignment[middle]

2013-06-26 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Wed, 26 Jun 2013 15:10:43 +0200, Wolfgang Schuster wrote: Use the solution in the following mail which deals with the same problem: http://www.ntg.nl/pipermail/ntg-context/2013/073795.html Wolfgang the following code seems to work: ... context.startplacetable({location

Re: [NTG-context] \centerline vs. \midaligned vs. \startalignment[middle]

2013-06-26 Thread Procházka Lukáš Ing . - Pontex s . r . o .
xt.dontleavehmode() f() -- Wrong, too, table is still not midaligned (?!) context.stopalignment() -- context.midaligned(f) -- This breaks Ctx! \stopluacode \stoptext Best regards, Lukas On Wed, 26 Jun 2013 14:46:32 +0200, Wolfgang Schuster wrote: Am 26.06.2013 um 14:07 schrieb P

[NTG-context] \centerline vs. \midaligned vs. \startalignment[middle]

2013-06-26 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, there are several similar commands to produce text (or another object) to be centered on the line. What are differences (or intended usage) among \centerline, \midaligned, \startalignment[middle]? (NB: \centerline has no its-own page on wiki, but it is used at several places in wiki s

Re: [NTG-context] Learning ConTeXt from the Ground Up

2013-06-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Fri, 14 Jun 2013 07:19:44 +0200, Malte Stien wrote: Hello Everyone, I have been using ConTeXt for over a year now and worked out how to do most things I need to do. Every now and then, though, I need to do something that I cannot find any information about and in most cases I post

Re: [NTG-context] Layers: corner, location

2013-06-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks Peter for the explanation. On Fri, 07 Jun 2013 14:41:45 +0200, Peter Rolf wrote: The layer is divided into a 2x2 matrix of squares, where 'x' is the center. This gets you a total of 3x3=9 different corners. o---o---o | | | o---x---o | | | o---o---o Now you choose one '

Re: [NTG-context] Layers: corner, location

2013-06-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Fri, 07 Jun 2013 09:27:14 +0200, Hans Hagen wrote: On 6/7/2013 9:07 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: The working code is: \definelayer [Logo] [location={left,bottom}, x=\paperwidth, y=0mm, hoffset=-5mm, voffset=5mm, ] \setlayer

[NTG-context] Layers: corner, location

2013-06-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to understand meaning of "location" and "corner" keywords of layer definition (http://wiki.contextgarden.net/Layers#My_first_Layer). The goal is to place a logo (here: a \framed) to the top right corner of the page, with vertical and horizontal shift 5 mm into the centre of t

Re: [NTG-context] \page[blank], \page[header]

2013-06-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Thu, 06 Jun 2013 16:16:42 +0200, Aditya Mahajan wrote: Perhaps, \page[nobackground] which will suppress all background elements. +1 I also think that `noheader`and `nofooter` are better keywords than `header` and `footer` to indicate that header and footer are suppressed. +1 "header"

[NTG-context] \page[blank], \page[header]

2013-06-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, just an idea: \page[header] and \page[blank] suppresses temporarily header defined by \setupheadertexts. But, when header is underlined by \setupbackgrounds[header][text][bottomframe=on], this frame (rule) is not cancelled - it still appears on the (blank) page. Wouldn't be good that

Re: [NTG-context] Tabulate: vertical distance between rows

2013-05-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Great, thank you! I added some info to wiki (http://wiki.contextgarden.net/Tabulate). Best regards, Lukas You can use the \TB which accepts the same keywords as \blank. \starttext \starttabulate \NC one \NC two \NC\NR \NC two \NC three \NC\NR \TB[line] \NC four \NC five \NC\NR \TB

[NTG-context] Tabulate: vertical distance between rows

2013-05-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, are there more ways how to affect vertical distance between rows within \start/stop-tabulate? 1) There is one, described on wiki (http://wiki.contextgarden.net/Tabulate): \unprotect \appendtoks \blank[halfline] \to \t_tabl_tabulate_every_after_row \protect ... Its problem

[NTG-context] Alternative rendering of some TOC levels

2013-05-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to change the way ("alternative") how a particular level - e.g. sections - are rendered in TOC? I tried: \setupcombinedlist [content] [alternative=c] \setuplist [section] [alternative=b] %\setupcombinedlist % [content] % [section] % [alternative=b] \starttext \p

Re: [NTG-context] [wiki] fake account spam

2013-04-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Thu, 25 Apr 2013 20:19:41 +0200, Thomas A. Schmitz wrote: On 04/25/2013 07:31 PM, Sietse Brouwer wrote: Hi Taco, I think it's a good idea to update the security questions --- it's easy to do, it'll probably work, and we can always move on to stronger measures that require more w

[NTG-context] Number of pages by Lua of a figure to be inserted?

2013-04-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I need to identify number of pages by Lua of an image which is to be inserted. The image can be of all various types supported by Ctx - e.g. .png, .pdf. I've been using the following code so far (based on a mailing thread in the past): function nOfPages(fn) local fig = figures.p

Re: [NTG-context] \startpagefigure[]\stoppagefigure enlarges page by 1 mm

2013-03-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
it seems \placefigure adds some extra space around, too. Should this be corrected, too? See my example… I can’t reproduce this, do you use the current beta on your system? Wolfgang Unfortunately no, I'm using: ConTeXt ver: 2012.11.26 13:31 MKIV fmt: 2012.11.27 int: english/english - I'

Re: [NTG-context] \startpagefigure[]\stoppagefigure enlarges page by 1 mm

2013-03-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, BTW: You can use \pagefigure[] instead of \startpagefigure[]\stoppagefigure. Wolfgang it seems \placefigure adds some extra space around, too. Should this be corrected, too? See my example... Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o.

[NTG-context] \startpagefigure[]\stoppagefigure enlarges page by 1 mm

2013-03-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, \startpagefigure[...] ... \stoppagefigure enlarges page by 1 mm in both directions. This is an undesired effect as when the printer has auto-select-page mode on (which is useful when printing a document with mixed A4 and A3 pages) and an A4 page (210 x 297 mm) is enlarged to 211 x 298,

Re: [NTG-context] Hiding text

2013-03-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks H&W - both solutions are useful. Lukas On Fri, 22 Mar 2013 18:18:00 +0100, Hans Hagen wrote: \def\starthidden#1\stophidden{} \usemodule[annotation] \defineannotation[Hidden][alternative=none] \starttext A \Hidden{B} C A \startHidden B\stopHidden C \stoptext -- Ing. Lu

Re: [NTG-context] Hiding text

2013-03-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, interesting trick; however, it doesn't work when used inside a macro: \definebuffer[Hidden] \def\WWW{ \startHidden DDD \stopHidden } \starttext AAA \startHidden BBB \stopHidden \WWW \stoptext Any idea? TIA. Best regards, Lukas On Fri, 22 Mar 2013 16

[NTG-context] Hiding text

2013-03-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to define a start-stop command to hide text within? Something like: \definestartstop[Hidden][before=\starthiding,after=\stophiding] TIA. Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1

Re: [NTG-context] command reference (was: upto current)

2013-03-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Fri, 22 Mar 2013 09:26:20 +0100, Peter Münster wrote: Hi Keith, What about one lua table per command? See also: - http://meeting.contextgarden.net/2010/talks/2010-09-14-peter-referencelua/ this looks nice. Some connection to wiki would be useful, too - once a command definition i

Re: [NTG-context] [***Spam/VIR***] Re: \simplealignedbox (was: itemize)

2013-03-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... OK, thanks to Marco and Wolfgang. Best regads, Lukas On Thu, 07 Mar 2013 15:09:01 +0100, Marco Patzer wrote: On 2013–03–07 Procházka Lukáš Ing. - Pontex s. r. o. wrote: kind request - \simplealignedbox is not known to me - could anyone familar add some info to wiki? It's a s

Re: [NTG-context] \simplealignedbox (was: itemize)

2013-03-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, kind request - \simplealignedbox is not known to me - could anyone familar add some info to wiki? Best regards, Lukas \setupitemgroup [itemize] [left=\simplealignedbox{1em}{flushright}] -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [

[NTG-context] XML Lua engine in ConTeXt

2013-03-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, which XML processing Lua engine is used by ConTeXt? There are more XML processors developed for Lua - LuaXML, LuaExpat etc. Does ConTeXt use one of these or another, or its own - a built-in one? As I'm processing XML tables with pure Lua, too, I'd like to use only one engine in pure Lu

[NTG-context] How to make all heads \ss?

2013-02-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a way how to change all heads style, e.g. to sans? This doesn't work for me: \setupheads[style=\ss] \starttext \section{Abc} Def \stoptext TIA. Best regards, Lukas (ConTeXt ver: 2012.11.26 13:31 MKIV fmt: 2012.11.27 int: english/english) -- Ing. Lukáš Pr

Re: [NTG-context] Locating a figure

2013-02-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
With “location=local” you limit context to search only in the local directory. The location key accepts three arguments: - local (search in the current directory) - global (search path specified with the directory key) - default (search in the tex directory) The default setup for the search i

[NTG-context] Locating a figure

2013-02-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, Ctx is not able to find a figure: \starttext \setupexternalfigures[location=local,directory={4Essel}] \externalfigure[Dum-Poh.jpg] % Fails to find - Ctx uses a "dummy figure" \externalfigure[4Essel/Dum-Poh.jpg] % OK \stoptext I'm running Ctx from c:\Lukas\Personal

Re: [NTG-context] Rotating \copypages

2013-02-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Thu, 31 Jan 2013 19:36:08 +0100, Wolfgang Schuster wrote: \copypages[…][][orientation=90] Wolfgang Hello, kind request: could some info about three parameter alternative (or other changes/extensions) of \copypages be added to wiki? TIA. Lukas -- Ing. Lukáš Procházka [mailto:l...@po

[NTG-context] Layers, overlays

2013-01-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd like to ask two questions which appeared on topic "Layer vs. overlay". Q1: What does \tightlayer[...] exactly do? (No item on wiki.) Q2: Why some layer properties are specified on \definelayer (beforetext: width=\overlaywidth,height=\overlayheight) and some during overlay setups (b

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

2013-01-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Wed, 16 Jan 2013 12:47:21 +0100, Philipp Gesang wrote: Lookup the correct string from a table? thanks for the idea - - in other words, we have to keep running results somewhere; the algorithm fills a table with texts for each page, and each \setlayer takes one value back, so we

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

2013-01-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
via userdata, but it doesn't work. So how to do it? Lukas On Tue, 15 Jan 2013 13:25:04 +0100, Aditya Mahajan wrote: On Tue, 15 Jan 2013, Procházka Lukáš Ing. - Pontex s. r. o. wrote: (Finally: I'd like to achieve a Lua function which will copy all pages of a .pdf file, keeping

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

2013-01-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks again. On Tue, 15 Jan 2013 11:09:48 +0100, Wolfgang Schuster wrote: \setupbodyfont[30pt] \starttext A \definelayer [beforetext][width=\overlaywidth,height=\overlayheight] \defineoverlay[beforetext][{\setups[beforetext]\tightlayer[beforetext]}] \startsetups[beforetext] \setla

Re: [NTG-context] Layer vs. overlay

2013-01-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Sat, 12 Jan 2013 19:11:47 +0100, Wolfgang Schuster wrote: Move \definelayer and \setupbackgrounds *before* \startTEXpage because the environment creates a local group and you background setup is lost. ... Thanks for the hint - here's my next trial. It should write "BEFORE" to tho top ri

[NTG-context] Layer vs. overlay

2013-01-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .
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 the (normal) page content and their size is given by an element (often \framed) which uses the o

Re: [NTG-context] Lua & inmargin & inframed

2013-01-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Fri, 04 Jan 2013 16:48:45 +0100, Wolfgang Schuster wrote: \starttext \inmargin{\inframed{A}} \input knuth \blank \ctxlua{context.inmargin(context.nested.inframed("B"))} \input knuth \stoptext Wolfgang Great, thanks! Any info about usage of ".nested" or ".nested" vs. "delayed"? (I'v

[NTG-context] Lua & inmargin & inframed

2013-01-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the inframed "B" in margin created by Lua doesn't appear, although corresponding Ctx code works: \starttext \inmargin{\inframed{A}} \input knuth \blank \directlua{context.inmargin(context.delayed.inframed("B")); context("Test.")} \stoptext What am I doing wrong? TIA.

Re: [NTG-context] Loading lua file.

2012-12-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm using this if loading failure is not fatal: DoFile = function(fn) return pcall(function() return dofile(fn) end) end DoFile("MyFile.lua") -- instead of 'dofile("MyFile.lua")' You can play with handling error code (http://www.lua.org/manual/5.1/manual.html#pdf-pcall): -

[NTG-context] Copy pages with keeping original page sizes

2012-12-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, this is just an announcement and maybe a proposal. I needed to copy all pages from a .pdf file into the document. The pages to be copied were a mix of A4 and A3 pages, with portrait and landscape orientation. Also, I needed to suppress current header & footer and to use the whole page

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

2012-11-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Fri, 30 Nov 2012 16:05:08 +0100, Vyatcheslav Yatskovsky wrote: New version of ConTeXt Installer for Windows is available (v1.4). good news; It is a GUI wizard of small size (< 2MB), which downloads latest context distribution, sets PATH for binaries, is it possible to add an

Re: [NTG-context] \cldcommand

2012-11-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Thu, 29 Nov 2012 10:27:36 +0100, Hans Hagen wrote: On 11/29/2012 9:32 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: indeed as it's \ctxcommand the \cldcommand does a context.doif an that one takes three arguments so you've something to wikify: : \starttext A

[NTG-context] \cldcommand

2012-11-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the following shortening "\ctxlua{commands.doif" to "\cldcommand{doif" doesn't work as I'd expect, although it should be equal: \starttext A \ctxlua{commands.doif(true)}{T} % Gives "T" - that's OK \cldcommand{doif(true)}{t} % Gives nothing; why? B \stoptext Probably

Re: [NTG-context] tabulate & \midaligned

2012-11-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, it works! Best regards, Lukas On Thu, 29 Nov 2012 09:05:38 +0100, luigi scarso wrote: On Thu, Nov 29, 2012 at 8:11 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, the \start/stop-tabulate doesn't work inside \midaligned: \def\T{% \starttabulate[|r|l|]

[NTG-context] tabulate & \midaligned

2012-11-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the \start/stop-tabulate doesn't work inside \midaligned: \def\T{% \starttabulate[|r|l|] \NC c \NC centered \NC \AR \NC l \NC left aligned \NC \AR \NC r \NC right aligned \NC \AR \stoptabulate } \starttext \T % This is OK \midaligned{\T} % This fails \stoptext

Re: [NTG-context] toppath

2012-11-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 27 Nov 2012 08:43:25 +0100, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Is 'toppath:' prefix working? ... My observation so far: 'toppath' works with \component, so if one needs to include a file, it's better to include it via: \component file.tex

Re: [NTG-context] toppath

2012-11-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
27/2012 8:43 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, there was a discussion about 'toppath' or 'pathrelativetome'. Is 'toppath:' prefix working? Or what other way is to refer to the path of the current file (i.e. the file I'm referring from)? T

[NTG-context] toppath

2012-11-26 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, there was a discussion about 'toppath' or 'pathrelativetome'. Is 'toppath:' prefix working? Or what other way is to refer to the path of the current file (i.e. the file I'm referring from)? The following code doesn't work - "t-Hello.mkiv" is not found although it's located in the same

Re: [NTG-context] Narrower paragraphs

2012-11-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... I probably found it (how easy!): \definestartstop [Rek] [before={\blank\setupnarrower[left=\parindent,right=\parindent]\startnarrower}, after={\stopnarrower\blank}, style=\em, ] Best regards, Lukas On Fri, 23 Nov 2012 16:00:54 +0100, Procházka Lukáš Ing. - Pontex s

[NTG-context] Narrower paragraphs

2012-11-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I need to temporary narrow the width in which text is typeset, to get something like: Sdflsdf sjldfg sjfdg sjdfg sjdfg <- Normal (first) paragraph (no-indent). sf sjlfg sjdgfjsgfjsdf sgdf jsdgf sdfg gjh. Lsdf sjldfg sjfdg sjdfg sjdfg <- Normal (other) paragraph (normal inde

Re: [NTG-context] Spaces in commands

2012-11-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 20 Nov 2012 15:21:08 +0100, H. Özoguz wrote: Hi there, how to define commands, which are simply short-cuts for some terms? For short-cuts, \let might be better: \let\shortcmd=\theverylongcommand Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:po

Re: [NTG-context] System variable HOME

2012-11-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Mon, 05 Nov 2012 18:46:18 +0100, Hans Hagen wrote: On 11/5/2012 12:15 AM, Sietse Brouwer wrote: (2) why would mtxrun set the variables and risk overwriting something? The comments suggest it is for the benefit of the cnf files, but still --- why overwrite? ossetenv("HOME", homed

Re: [NTG-context] Latex to ConTeXt

2012-11-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Thu, 15 Nov 2012 09:07:55 +0100, MANUEL GONZALEZ SUAREZ wrote: Hello. I wish someone would help me "translate" this code LaTeX to ConTeXt. It is a command to do word by word translations, so that a word appears under another. Here's the code: \newcommand\dos[2]{\begin{tabular}{@{}c}{\te

Re: [NTG-context] XML and Lua/Ctx

2012-11-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Wed, 14 Nov 2012 16:50:50 +0100, luigi scarso wrote: However, this solution cannot be used with Ctx as it causes Ctx to crash. Windows , Linux or MacOS ? WinXP 32b -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezo

<    1   2   3   4   5   6   >