Re: [NTG-context] "Key" words translations

2010-11-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks... L. On Wed, 03 Nov 2010 11:12:12 +0100, Wolfgang Schuster wrote: The labels are set with \setuplabeltext and \setupheadtext, you can find the czech labels in lang-sla.tex Wolfgang ___ If your questio

[NTG-context] "Key" words translations

2010-11-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a file which defines translation of some words? E.g. when I use \mainlanguage[cz], ConTeXts gets to know to write "Kapitola" instead of "Chapter" etc. It would be nice if ctx knew also: "Table of Contents" = "Obsah" "Reference"= "Literatura" "Index" = "

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Yes, thanks, that's it: \typefile[default][range={3,5}]{t-TypeF2.mkiv} % If also the upper limit is to be specified Regards, Lukas On Fri, 15 Oct 2010 10:09:13 +0200, Peter Münster wrote: On Fri, Oct 15 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: I'd need to \

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, it doesn't seem to work. Let's have "t-TypeF2.mkiv" with the following content: --- \setuptyping[default][bodyfont=small,style={\ttx\setupinterlinespace}] % 1 % 2 \starttext % 3 \typefile[default][start=4]{t-TypeF2.mkiv} % = This file; 4 \typefile[default][start=4,stop=99]{t-TypeF2.mk

[NTG-context] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd need to \typefile a file from n-th line (= ignoring first n-1 lines). Is there such an option for \typefile macro? (http://wiki.contextgarden.net/Reference/en/typefile is silent.) I tried: \typefile[default][lines={10}]{a_file.txt} % Start at line 10 \typefile[default][lines={10,+

Re: [NTG-context] How to call a ctx command with parameters from Lua

2010-10-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, Wolfgang. Lukas On Thu, 14 Oct 2010 22:43:44 +0200, Wolfgang Schuster wrote: context.typefile( { "default" }, "MyFile.txt" ) Wolfgang ___ If your question is of interest to others as well, please a

[NTG-context] How to call a ctx command with parameters from Lua

2010-10-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, this thing was probably shown during last Ctx meeting, but I can't remember the answer. Let's ave the Ctx code: \typefile[default]{Myfile.txt} and I'd need to call this command by Lua, like: \startluacode context.typefile("MyFile.txt") \stoluacode But how to pass the "[default]" op

Re: [NTG-context] How to center a MP graphics generated by Lua?

2010-10-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Great, thanks. Lukas On Thu, 14 Oct 2010 10:00:29 +0200, Wolfgang Schuster wrote: \dontleavehmode ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

[NTG-context] How to center a MP graphics generated by Lua?

2010-10-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to center a MP graphics generated by Lua. Although the inline Ctx code is (or seems to be) the same as generated by Lua, I cannot understand why the red line is drawn on the left and not centered. So how to make the Lua->MP graphics centered? My code: --- \showframe \startt

Re: [NTG-context] Temporary landscape

2010-10-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
, 13 Oct 2010, Hans Hagen wrote: On 13-10-2010 3:22, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I need to typeset contents of a wide file. This works: --- \starttext \setuppapersize[A4,landscape][A4,landscape] \typefile[Dim]{Cha-MMax-iDL.txt} \page % RESTORE ORIGINAL PAGE SETTINGS

[NTG-context] Temporary landscape

2010-10-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I need to typeset contents of a wide file. This works: --- \starttext \setuppapersize[A4,landscape][A4,landscape] \typefile[Dim]{Cha-MMax-iDL.txt} \page % RESTORE ORIGINAL PAGE SETTINGS AAA \stoptext --- And I'd like to find out how to restore previous page settings. I gu

Re: [NTG-context] Problem typing file with diacritics by \typefile

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 12 Oct 2010 13:24:24 +0200, Hans Hagen wrote: On 12-10-2010 9:39, Peter Münster wrote: On Tue, Oct 12 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: All runs programs run under Windows and all [mentioned] are using CP 1250. Perhaps with a filter: windows-program | recode

Re: [NTG-context] "Page-breakable" \subsubsubject?

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 12 Oct 2010 10:40:19 +0200, luigi scarso wrote: • the ctx file extension has a special meaning for context (file for proprocessing in xml format). - OK, I'm planning to use .tex for Ctx files in the future. Now I'm using LaTeX and ConTeXt both, so I use .ctx extension for Ctx sources.

Re: [NTG-context] "Page-breakable" \subsubsubject?

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks, it works perfectly. On Tue, 12 Oct 2010 10:18:54 +0200, Wolfgang Schuster wrote: Am 12.10.2010 um 09:13 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I'd have one more question. I need to have many \subsubject behind each other (again: actually processing an ext

[NTG-context] "Page-breakable" \subsubsubject?

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd have one more question. I need to have many \subsubject behind each other (again: actually processing an external file, but a small example is attached): --- \setupbodyfont[11pt] \starttext \subsubsubject{001} \subsubsubject{002} \subsubsubject{003} \subsubsubject{004} \s

Re: [NTG-context] Problem typing file with diacritics by \typefile

2010-10-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 12 Oct 2010 08:45:25 +0200, Peter Münster wrote: I would suggest to configure your environment (editor and so on) to use only utf8. It's a problem as the file which is \typefiled is generated by another program and I have no control of which characters or which encoding it uses. All

[NTG-context] Problem typing file with diacritics by \typefile

2010-10-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I have problem. Suppose having t-TypeF.ctx which is to print itself: --- \enableregime[cp1250] \starttext ABC ŽŠČ \typefile[]{t-TypeF.ctx} \stoptext --- The letters "ŽŠČ" to be printed during \typefile are the problem. I get a long error message, where the key message is: l

[NTG-context] Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page

2010-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, let's have the following example: --- \starttext \tt \input tufte \hairline \tfx \input tufte \hairline \tfxx \input tufte \stoptext --- When I look at the result, I see the smaller font the bigger "gap" between lines (or this may be taken as "line height"

Re: [NTG-context] Verbatim text loaded from a file? (reduced attachments)

2010-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
(I doubled this message to reduce size of attachments. Although the t.pdf.png is not very good, I believe it's enough to imagine proportions of letter height vs. line height and line number vs. letter [used for typing] height.) ... I keep on trying. I applied all your previous advice. But I sti

Re: [NTG-context] Stange behavior of \startluacode

2010-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, my observation: --- \starttext AAA \startluacode a = 10 context(a) -- a = 20 context(a) \stopluacode \stoptext --- - works OK, 'AAA', '10' and '20' is printed. If I modify the code: --- \starttext AAA \startluacode a = 10 context(a) -- a

Re: [NTG-context] Stange behavior of \startluacode

2010-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
(Sorry, I've written bad information, now correcting (*)...) Hello, my observation: --- \starttext AAA \startluacode a = 10 context(a) -- a = 20 context(a) \stopluacode \stoptext --- - works OK, 'AAA', '10' and '10' (*) is printed. If I modify the code: ---

Re: [NTG-context] Verbatim text loaded from a file?

2010-10-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, Sorry, I guess I misunderstood you: You mean the font of the numbers? I mean font (or or its size) used for printing for line numbers - see http://ftp.cstug.cz/pub/CTAN/macros/latex/contrib/fancyvrb/fancyvrb.pdf, pg. 11: line numbers which are turned on by "numbers=left" are printed w

[NTG-context] Verbatim text loaded from a file?

2010-10-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd need to show contents of a (text) file like verbatim text (with a monospace font). So to do something being described at http://wiki.contextgarden.net/Verbatim_text using \startcode SOME TEXT \stop code, but the difference is that I don't need to write SOME TEXT manually but I nee

Re: [NTG-context] Lua programming conventions..

2010-09-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Thu, 30 Sep 2010 10:47:42 +0200, Patrick Gundlach wrote: Hi, besides that what Luigi wrote, I'd recommend the Lua users wiki. Don't take everything there as "perfect" or "the official way", as it is just a users wiki, like our wiki. http://lua-users.org/wiki/ Hello, I'd say there is no

[NTG-context] Lua & MP

2010-09-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible that Lua gets value of a MetaPost variable? Let's have MetaPost code: z11=(0,0) z12=(1,1) z21=(0,1) z22=(1,0) aa[z11,z12]=bb[21,z22] So now aa = bb = 0.5. And I'd need to access MetaPost values 'aa' and 'bb' from Lua (e.g. in Lua: "local a = mpost.aa, b = mpost.bb").

Re: [NTG-context] # in type in tabulate

2010-09-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I found no records to \asciimode or \mono at http://wiki.contextgarden.net/Category:Reference/en. Could they be added? - Even with no description, just to get to know they are valid ConTeXt commands. Lukas On Wed, 29 Sep 2010 16:58:51 +0200, Wolfgang Schuster wrote: Am 29.09.201

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

2010-09-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, it works now! It had to be fixed both in F() and in F2(). (I forgot ";" in MP statement as Lua doesn't require ";".) (Still it's a bit strange to me that calling F() worked even when the MP statement in F() was not finished by ";" and F2() was not called.) Lukas On Wed, 29 Sep 20

Re: [NTG-context] Custom lua script (updating and debugging)

2010-09-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I have also the experience that when the Lua file is placed where the LUA_PATH system variable points (or: see the documentation how exactly LUA_PATH works), than I can use the 'require' command and the Lua file will be found. E.g.: LUA_PATH = (...);C:\MyDir\?.lua C:\MyDir\MyFile.lua:

Re: [NTG-context] Drawing a diagram

2010-06-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, sorry for probably a silly question, but - how to get to e.g. "http://wiki.contextgarden.net/Flow_Charts"; from the "http://wiki.contextgarden.net";? I really cannot find the link which leads to "http://wiki.contextgarden.net/Flow_Charts";, even if I listed all hyperlinks from "http://

Re: [NTG-context] ConTeXt name/branding

2010-04-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, my opinion is that ConTeXt including capitalization of some preselected letters is OK. Imagine - how new mode of work brings ConTeXt (and other TeX family) to someone who knows only or has been working with Word before! If it's to much to someone to remember correct "ConTeXt" writing (

Re: [NTG-context] Which packages?

2010-03-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... OK, thanks to all for the answers. I'll keep on trying. Lukas On Mon, 29 Mar 2010 18:45:38 +0200, Mojca Miklavec wrote: 2010/3/29 Procházka Lukáš Ing. - Pontex s. r. o. wrote: - is there a manual, web site or something where comparison of LaTeX/ConTeXt packages/modules would be

[NTG-context] Which packages?

2010-03-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm new to ConTeXt; I've been working with LaTeX but I'd like to try ConTeXt due to some reasons. The question is - - is there a manual, web site or something where comparison of LaTeX/ConTeXt packages/modules would be done? I'm interested how to include a part of a text file and how

<    1   2   3   4   5   6