- 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
Hello,
how to determine the current language being used in Ctx source via Lua? I mean
soumething like:
---
\mainlanguage[cz]
\starttext
AAA
\startluacode
if context.mainlanguage == cz then -- Do something specific
context(Ahoj!)
elseif context.mainlanguage == en then --
... Thanks to both. So -
On Thu, 25 Nov 2010 13:31:36 +0100, Taco Hoekwater t...@elvenkind.com wrote:
On 11/25/2010 01:13 PM, Wolfgang Schuster wrote:
Am 25.11.2010 um 12:49 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
how to determine the current language being used in Ctx
On Thu, 25 Nov 2010 14:22:18 +0100, Taco Hoekwater t...@elvenkind.com wrote:
On 11/25/2010 02:16 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
No, nothing as complicated as that: \currentmainlanguage is an
expandable macro, so it simply expands to its actual content: cs
This also means
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.
... 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]
. 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
Hello,
I'm trying similar code as described on
http://wiki.contextgarden.net/Including_pages_from_PDF_document:
---
\starttext
\filterpages[1.pdf][2][width=15cm]
\page
\filterpages[1.pdf][2][width=5cm]
\stoptext
---
But I'm still getting the same picture - scaled to (probably)
Thank you, this works nicely.
Lukas
On Thu, 18 Nov 2010 14:12:36 +0100, Peter Rolf indi...@gmx.net wrote:
Am 18.11.2010 10:53, schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
I'm trying similar code as described on
http://wiki.contextgarden.net/Including_pages_from_PDF_document
Hello,
just a brief question.
How to avoid the horizontal and vertical shift which appears when inserting another PDF,
both PDFs created with the same options?
You can see page numbers and also the left edge shifted.
(I'd need this to insert multipage scanned documents into the main PDF.)
Hello,
I'd need to start numbering chapters from number 3.
(The previous chapters 1 and 2 were prepared otherwise, I'm to continue.)
Is any parameter mentioned on
http://wiki.contextgarden.net/Reference/en/setuphead supposed for this?
Or how?
Cheers,
Lukas
--
Ing. Lukáš Procházka
an internal counter... The question remains.
Lukas
On Tue, 16 Nov 2010 11:14:39 +0100, Procházka Lukáš Ing. - Pontex s. r. o.
l...@pontex.cz wrote:
Hello,
I'd need to start numbering chapters from number 3.
(The previous chapters 1 and 2 were prepared otherwise, I'm to continue.)
Is any
... How easy!
Thanks.
Lukas
\setupheadnumber[chapter][2]
\chapter{foo}
bar
\chapter{bar}
baz
\stoptext
Herbert
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist
Hello,
is it possible to \setuptyping in the manner that long lines won't be broken?
So to get:
-\textwidth -
a
instead of:
aAA
AA
Thank you in advance.
Regards,
Lukas
--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s.
... Thanks!
Lukas
On Mon, 15 Nov 2010 14:40:16 +0100, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
Am 15.11.2010 um 10:59 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello all,
what is the simplest way how to change the horizontal space between the number
and the name
... Thanks, I wouldn't figure this out.
Lukas
On Thu, 04 Nov 2010 18:55:12 +0100, Andreas Harder ahar...@uni-koblenz.de
wrote:
\setuppagenumbering[alternative=doublesided]
\starttext \showframe
\dorecurse{10}{\input knuth\par}
\stoptext
Greeting
Andreas
Hello,
how to add the hairline (or a kind of the horizontal rule) under the header
area?
I'd like to achieve something like in the 1.pdf (attached; created by LaTeX).
My code till now:
---
\setuppagenumbering[location=footer,middle]
\setupheader[][style=small]
\setupheadertexts[LLL][RRR]
Thanks, that's it.
Cheers,
Lukas
On Thu, 04 Nov 2010 10:01:18 +0100, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
\setupheader[text][after=\thinrule]
\setuplayout[header=1cm,headerdistance=1cm]
\starttext
\dorecurse{12}{\input knuth\par}
\stoptext
Hello,
although I guess this is one of the really basic tasks, I'm not able to setup
successfully page layout for double-sided printing.
My idea is to have different free space leftwards and rightwards from the
text area.
I just want to get different width of the left/right area: 2.5 cm left
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 = Rejstřík
I
Thanks... L.
On Wed, 03 Nov 2010 11:12:12 +0100, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
The labels are set with \setuplabeltext and \setupheadtext, you can find the
czech labels in lang-sla.tex
Wolfgang
Hello,
just to confirm -
- is it possible to span several columns (rows) in tables created by
\starttable ... \stoptable?
I cannot find such an example, so I guess it's not possible.
- I mean something like what is done by \bTD[nc = 3] ... \eTD in \bTABLE ...
\eTABLE.
Best regards,
Lukas
, or when dealing with XML.
Hope I'll be more lucky finding answers myself before posting them to the
mailing list.
Best regards,
Lukas
On Wed, 03 Nov 2010 17:09:35 +0100, Henning Hraban Ramm hra...@fiee.net wrote:
Am 2010-11-03 um 16:54 schrieb Procházka Lukáš Ing. - Pontex s. r. o
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 %
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)
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
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
: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
... Thanks, Wolfgang. Lukas
On Thu, 14 Oct 2010 22:43:44 +0200, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
context.typefile( { default }, MyFile.txt )
Wolfgang
___
If your question is of
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
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
... 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 pmli...@free.fr wrote:
On Fri, Oct 15 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
I'd need
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
Great, thanks.
Lukas
On Thu, 14 Oct 2010 10:00:29 +0200, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
\dontleavehmode
___
If your question is of interest to others as well, please add an entry to
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]
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
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
AAA
\stoptext
You
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:
On Tue, 12 Oct 2010 08:45:25 +0200, Peter Münster pmli...@free.fr 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
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}
Thanks, it works perfectly.
On Tue, 12 Oct 2010 10:18:54 +0200, Wolfgang Schuster
schuster.wolfg...@googlemail.com 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
On Tue, 12 Oct 2010 10:40:19 +0200, luigi scarso luigi.sca...@gmail.com 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
On Tue, 12 Oct 2010 13:24:24 +0200, Hans Hagen pra...@wxs.nl 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
(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:
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
(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
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
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
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
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).
On Thu, 30 Sep 2010 10:47:42 +0200, Patrick Gundlach patr...@gundla.ch 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
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
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))
:27:14 +0200, Taco Hoekwater t...@elvenkind.com wrote:
On 09/29/10 15:10, Hans Hagen wrote:
On 29-9-2010 3:02, Procházka Lukáš wrote:
Hello,
I have the following problem.
Let's have T~.lua file which defines a function:
hm, what is this ~ doing there ... avoid such characters! ~ is HOME
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
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:
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
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
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
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 :
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
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
... 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
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
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
... OK, thanks to all for the answers.
I'll keep on trying.
Lukas
On Mon, 29 Mar 2010 18:45:38 +0200, Mojca Miklavec
mojca.miklavec.li...@gmail.com 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
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
701 - 767 of 767 matches
Mail list logo