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
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
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
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
___
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
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 <<
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
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
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" ~
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
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
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
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
... 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
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
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
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
--
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_.
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
... 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
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
... 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
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
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
... 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
... 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
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.
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
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
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
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
... 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
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
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
\
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
[
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"
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
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?
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,
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
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
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
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
... 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?
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,
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
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
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
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
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
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
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
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 '
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
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
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"
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
... 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
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
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
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
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
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'
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.
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,
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
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
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
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
... 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
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] [
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
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
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
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
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
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
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
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
... 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
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
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
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
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.
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):
-
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
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
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
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
... 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|]
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
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
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
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
... 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
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
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
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
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
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
101 - 200 of 532 matches
Mail list logo