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

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

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

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

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'

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

[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

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

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

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

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

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

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

[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

[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

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

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,

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

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

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

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

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

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

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

[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

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

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

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

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

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

[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

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] Win fonts lookup: ** (was: Animation captions (was: error in animation))

2014-10-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, when trying Jeong's example, Ctx prints: " fonts > names > globbing path 'c:/windows/fonts/**.otf' fonts > names > identifying system font files with suffix 'OTF' fonts > names > globbing path 'c:/windows/fonts/**.OTF' fonts > names > 0 system files

Re: [NTG-context] backgrounds

2014-10-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Source & result attached. On Wed, 15 Oct 2014 10:33:28 +0200, Hans Hagen wrote: Hi, new in next beta %D Sometimes you have a document wide (page) background but need to overload it %D locally. In such case (at least in my experience) the only values that get set %D are the background

Re: [NTG-context] sidefloats

2014-10-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Source & result attached. On Wed, 15 Oct 2014 10:35:04 +0200, Hans Hagen wrote: new in next beta: \starttext \placefigure [left] {} {\framed[height=1cm,width=2cm]{}} \input tufte \doifelsesidefloat {\dontleavehmode{\bf OKAY}: HERE} {\inmargin

Re: [NTG-context] backgrounds

2014-10-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Mon, 20 Oct 2014 03:46:39 +0200, Hongwen Qiu wrote: 在 2014年10月17日 19:32, Procházka Lukáš Ing. - Pontex s. r. o. 写道: Source & result attached. I didn't expect your source even to compile since you missed out the \starttext thing. - I succeeded to compile... Of course, the

Re: [NTG-context] MP/Lua binding (was: Pass a lua table to metapost)

2014-12-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Hans, it's possible to ask values from within mp: \starttext \startluacode document.variables = { labels = { "one", "two", "three", } } \stopluacode \startMPpage numeric dx, dy; dx = 4.4cm; dy = 0.53cm; path b[]; for i=1 upto

Re: [NTG-context] MP/Lua binding

2014-12-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Mon, 08 Dec 2014 14:32:16 +0100, Hans Hagen wrote: article in bachotek proceedings and upcoming ctx group proceedings ... i might consider a manual indeed Hans Personally, any printable/buyable manual on this topic would be appreciated... Lukas -- Ing. Lukáš Procházka | mailto:l...@pon

[NTG-context] pagefigure & cow

2014-12-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the following code doesn't find "cow" image with the latest beta; what am I doing wrong? local C = context C.starttext() C("a") C.pagefigure{"cow"} C.stoptext() Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pon

Re: [NTG-context] Ctx & XML

2014-12-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Thu, 11 Dec 2014 02:24:24 +0100, Hans Hagen wrote: On 12/10/2014 11:08 PM, Lukáš Procházka wrote: I assume that you also want the content of elements, not just the attributes. Yes... Or how to achieve this in a best way under Ctx: XML file -> Lua table/tree? It all depends on

Re: [NTG-context] Ctx & XML

2014-12-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Hans, On Thu, 11 Dec 2014 10:10:16 +0100, Hans Hagen wrote: that already makes assumptions that it's just data ... the context xml parser is a roundtrip one so a bit more control is provided: local str = [[ c > d ]] I've added some flags: inspect(xml.totable

[NTG-context] Latest beta: bug with 'convert()'?

2014-12-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm getting the following failure: c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-xmp.lua:109: attempt to call field 'convert' (a nil value) stack traceback: c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-xmp.lua:109: in function 'valid_xmp' c:/Ctx-Beta/te

Re: [NTG-context] Latest beta: bug with 'convert()'?

2014-12-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Hans, hard to imagine ... did you patch one of the lxml-*.lua files? I renewed Ctx now and it seems to work (the reported problem related to the yesterday's beta)... Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz |

[NTG-context] Attachment marks to be aligned horizontally

2015-01-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, marks of attachments in the attached MWE are aligned in the following way: - after A and C - horizontally, - after B - vertically. The only difference is that \blank precedes in the B case. So - how to force horizontal alignment for attachment marks in the B case, supposing that

[NTG-context] XML - some troubles

2015-02-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, suppose having: t.xml AA AB and the Ctx source: t.mkiv \startxmlsetups xml:T \xmlsetsetup{\xmldocument}{*}{+} % \xmlsetsetup{\xmldocument}{*}{-} % Empties output?! \xmlsetsetup{\xmldocument}{a/ab}{xml:*} \stopxmlsetups \startxmlsetups xml:ab \section{New

Re: [NTG-context] XML - accessing parental children attribute (was: some troubles)

2015-02-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, a slightly modified example: t.xml AA AB and the Ctx source: t.mkiv \startxmlsetups xml:T \xmlfunction{#1}{test} \xmlsetsetup{\xmldocument}{*}{+} % \xmlsetsetup{\xmldocument}{*}{-} % Empties output?! \xmlsetsetup{\xmldocument}{a/aa}{xml:*} \xmlsetsetup{

Re: [NTG-context] XML - accessing parental children attribute (was: some troubles)

2015-02-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks Hans, this works perfectly... Lukas \startbuffer[demo] -- A1 X1 B1 -- A2 X2 B2 -- A3 X3 B3 \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{*}{xml:*} \stopxmlsetups \startxmlsetups xml:a \xmlflush{#1} \stopxmlsetups \

[NTG-context] Placing a box with left-aligned lines on the right border

2015-02-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to more easily achieve this?: Some text on line Text in box Longer text in the box Shorter text in box |<-->| Width of the box is tha

Re: [NTG-context] Placing a box with left-aligned lines on the right border

2015-02-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thank you - method 1 is exactly what I'm looking for. Best regards, Lukas On Wed, 18 Feb 2015 14:58:49 +0100, Wolfgang Schuster wrote: Am 18.02.2015 um 11:45 schrieb Procházka Lukáš Ing. - Pontex s. r. o. : Hello, how to more easily achieve this?: Some text on

[NTG-context] Blank space between \subsection & columns (related to: XML processing & columns & (almost) empty pages)

2015-02-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I found a "more minimal" example which produces unwanted blank space between \subsection and columns: % nofruns=1 \starttext \dorecurse{5}{ \subsection{T} \startcolumns[n=4,balance=yes] \input knuth \stopcolumns } \stoptext The blank space appears on p

Re: [NTG-context] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, when you want to use your personal (additional) path (but apparently not a tree), e.g. for styles (environments), you can use --path switch: " context.exe --path=c:\MyDirectory\MyContextStyles MyFile.tex " (Source: "context.exe --help") (Once I tried also: " set TeXMFLocal=c:\MyName\M

Re: [NTG-context] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks for explanation, I didn't know about that... Lukas On Fri, 06 Mar 2015 10:52:47 +0100, Hans Hagen wrote: On 3/6/2015 9:22 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, when you want to use your personal (additional) path (but apparently not a tree), e.g. for s

Re: [NTG-context] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Fri, 06 Mar 2015 14:45:44 +0100, Hans Hagen wrote: On 3/6/2015 1:08 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Thanks for explanation, I didn't know about that... i guess that there is a lot of stuff deep down only a few people know about (this is typical needed for

[NTG-context] Multiline header

2015-03-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to create multiline header? This code ignores all attempts to force a new line: \setupheadertexts[{abc\par def\\ ghi\crlf jkl}] \starttext aaa \stoptext Thank you in advance. Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. |

Re: [NTG-context] Multiline header

2015-03-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Mon, 16 Mar 2015 14:00:54 +0100, luigi scarso wrote: On Mon, Mar 16, 2015 at 1:54 PM, Procházka Lukáš Ing. - Pontex s. r. o. < l...@pontex.cz> wrote: Hello, how to create multiline header? This code ignores all attempts to force a new line: \setupheadertexts[{abc\p

Re: [NTG-context] Multiline header

2015-03-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Mon, 16 Mar 2015 18:34:00 +0100, Wolfgang Schuster wrote: Am 16.03.2015 um 13:54 schrieb Procházka Lukáš Ing. - Pontex s. r. o. : Hello, how to create multiline header? This code ignores all attempts to force a new line: \setupheadertexts[{abc\par def\\ ghi\crlf jkl

Re: [NTG-context] Multiline header

2015-03-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... And wikified: http://wiki.contextgarden.net/Command/setupheadertexts 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 _

Re: [NTG-context] Now that I have something working on mkiv, I'd like to try ePUB

2015-03-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, there are some ePUB and XML conversion/processing questions time to time here in the forum. Try to search or to ask directly someone who asked for ePUB conversion. (I have no experience with ePUB.) Lukas On Sun, 15 Mar 2015 22:12:33 +0100, Gerben Wierda wrote: Now that I have my b

[NTG-context] File name to print to include %

2015-03-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd like to get: "%Home%" with \hyphenatedfilename to the Ctx output. But, these two methods don't work: \hyphenatedfilename{\%Home\%} -- gives "\%Home\%" and \hyphenatedfilename{%Home%} -- (obviously) produces error. So what to write into \hyphenatedfilename to get "%Home%"? Best re

[NTG-context] # in file name

2015-03-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I need to insert a figure "PrehlSit#A2.pdf" - a file whose name contains # - by Lua. How to "code" the name? I tried: \startluacode context.pagefigure({PrehlSit#A2.pdf"}, {scale=500}) context.pagefigure({PrehlSit\#A2.pdf"}, {scale=500}) context.pagefigure({Pr

Re: [NTG-context] # in file name

2015-03-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Fri, 20 Mar 2015 15:05:25 +0100, Hans Hagen wrote: On 3/20/2015 2:25 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I need to insert a figure "PrehlSit#A2.pdf" - a file whose name contains # - by Lua. How to "code" the name? one can flush with v

Re: [NTG-context] Is there a way to completely remove all auxiliary and resulting files?

2015-03-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, typing "context.exe" with no argument yields: C:\Lukas\Jobs\R6-011.ZDS\1-PDPS\B-StavCast\SO_201\Details>context.exe " mtx-context | ConTeXt Process Management 0.61 mtx-context | mtx-context | basic options: mtx-context | mtx-context | --run process (o

[NTG-context] Vertical space after \head

2015-03-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to affect simply vertical space being generated after \head? Here: \starttext \startitemize[][headstyle=bold] \head Something\par \input knuth \stopitemize \stoptext I'd like to have space of size \blank[medium] between the head and

  1   2   3   4   5   6   >