Hello,
I've just updated Ctx:
"
ConTeXt ver: 2012.10.22 23:51 MKIV fmt: 2012.10.23 int: english/english
"
- it seems \copypages ignores the 'n' specification:
\starttext
\copypages[t2.pdf][n=1]
\stoptext
- both t2.pdf pages are inserted.
Any command option changed? Fix needed?
On Mon, 22 Oct 2012 17:45:21 +0200, Marco Patzer wrote:
http://wiki.contextgarden.net/TABLE#Rules_with_different_thickness
... I knew this snippet; unfortunately, there were some bindings or
relationships that I didn't understand fully.
Marco
Anyway, after some experiments, based on Wolf
On Mon, 22 Oct 2012 16:41:46 +0200, Aditya Mahajan wrote:
If you want only the bottom border (and no other border),
... No, I want all borders with default thickness but head bottom border
thicker;
this is most common look of my tables:
+---+---+
| a | b | -> header
+===+===+
| 1 | 2 | \
On Mon, 22 Oct 2012 13:53:31 +0200, Philipp Gesang
wrote:
You don’t have to, these colors were upgraded to a superior way
of being defined (colo-imp-dem.mkiv):
·
\setupcolor[dem]
\starttext
\colored[red:3]{some text}
\showcolor
Hello,
how to achieve the table header to have a thick bottom line?
Here are my two attempts:
\starttext
\bTABLE
\setupTABLE[width=broad]
\setupTABLE[header][align=middle]
\bTABLEhead
\bTR[bottomframe=on,rulethickness=2mm]\bTH a\eTH\bTH b\eTH\eTR
\eTABLEhead
\bT
On Mon, 22 Oct 2012 11:54:14 +0200, Mojca Miklavec
wrote:
On Sun, Oct 21, 2012 at 10:14 PM, Procházka Lukáš wrote:
Btw: I didn't use/test the utility so far, but I believe it really removes
the content out of the trimming area;
Do you mean that it removes *white space* around the trimming
Ah ok , it was an image. The text says
"You find lists of predefined colors in the files colo-xxx.tex,.."
but colo*tex it's an old file -- it should be colo-rgb.mkii , ie pdftex
So
%%test.mkii
\setupcolors[state=start]
\starttext
\showcolor[rgb]
\color[red]{AAA}
\color[red:3]{AAA}
\stoptex
On Mon, 22 Oct 2012 11:11:08 +0200, luigi scarso wrote:
On Mon, Oct 22, 2012 at 11:10 AM, Procházka Lukáš Ing. - Pontex s. r. o. <
l...@pontex.cz> wrote:
Hello,
there is a color "red:3" noticed at
http://wiki.contextgarden.net/**Colors<http://wiki.contextgarden.net/Colo
Hello,
there is a color "red:3" noticed at http://wiki.contextgarden.net/Colors.
However, the following code doesn't work with color "red:3" specification:
\starttext
\showcolor[rgb]
\color[red]{AAA}
\color[red:3]{AAA}
\stoptext
So, how it the matter with using "red:3" correct
On Wed, 17 Oct 2012 10:34:22 +0200, Jeong Dal wrote:
Dear Proch?zka Luk?? Ing and Hans,
Thank you for the reply.
It works fine.
I modify your code to write a matrix and it also works too.
\startformula
\startluacode
local NC, NR = context.NC, context.NR
local t = {{1,0,3,4},{0,2,-2,5},{0,0,
Hello,
my experience is that the best way is to create the table first, then to call
Lua function to typeset the table.
You may choose whether the table will be typeset with 'tabulate' family
functions or 'TABLE' family; I may recommend you the latter as it gives you
much more control of the
Hello,
thanks for the job.
Would you kindly add a Czech alternative:
\setupparareftext[cz][braketOpen={(}] % Should be "bracketOpen"
\setupparareftext[cz][braketClose={)}] % Should be "bracketClose"
\setupparareftext[cz][atpageLeft={ na stran\ecaron\ }]
\setupparareftext[cz][atpageRight={}
On Fri, 05 Oct 2012 10:57:15 +0200, Hans Hagen wrote:
On 5-10-2012 08:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
On Thu, 04 Oct 2012 13:32:42 +0200, Hans Hagen wrote:
btw, you should adapt LUAINPUTS and not some other environment variable
.. after all, luatex is not native lua so
On Thu, 04 Oct 2012 13:32:42 +0200, Hans Hagen wrote:
btw, you should adapt LUAINPUTS and not some other environment variable
.. after all, luatex is not native lua so you need to avoid conflicts in
case you hav einstalled both
... I just added
SET LUAINPUTS=%LUA_PATH%
to the batch I'm usin
On Thu, 04 Oct 2012 13:27:40 +0200, Hans Hagen wrote:
On 4-10-2012 12:09, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Personally - I've been using "require " so far at many places
and there was no problem with it.
try with
\enabletrackers[resolvers.li
On Thu, 04 Oct 2012 12:04:14 +0200, Alan BRASLAU wrote:
\startformula
a = 21407 g
\stopformula
:)
The units code should certainly know how to deal with "N"...
Alan
- But "g" is shown like a variable (here: like 'a') - unwanted...
I must substitute "N" -> "Newton"...
Lukas
--
Ing. Luk
Hello,
I just renewed ConTeXt and new error when using "require" appears (it worked OK
until the update):
t-Req.mkiv
\startluacode
require "Test-U"
\stopluacode
\starttext
A
\stoptext
"
mtx-context | run 1: luatex --fmt="c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e
On Thu, 04 Oct 2012 11:32:20 +0200, Wolfgang Schuster
wrote:
The units code doesn’t know how to deal with “N” but you can use the full name
of the unit (can also be lowercase) or “n” which is also accepted.
\starttext
\startformula
a = \unit{210 kilo Newton}
\stopformula
\startformula
Hello,
which is the most correct way to display units (here: kN) in math formula?
\starttext
\startformula
a = 210 kN % "kN" is shown like a variable (here: like 'a'), which is
unwanted
\stopformula
\startformula
a = 210 \unit{kN} % No unit is displayed (?!)
\stopformula
The \setupTABLE calls do only store the settings but the values are used later
when each cell is formatted
and at this step row settings are processed before column settings
BTW: Wouldn't be more flexible if the (stored) settings were processed in the
order they have been defined?
but when y
03 Oct 2012 10:53:39 +0200, Wolfgang Schuster
wrote:
Am 03.10.2012 um 10:16 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
:
Hello,
I have a complicated TABLE, but I simplified it to the following example:
\def\DoTable#1{%
\bTABLE
\setup
Hello,
I have a complicated TABLE, but I simplified it to the following example:
\def\DoTable#1{%
\bTABLE
\setupTABLE[width=2cm]
\setupTABLE[column][#1][align=flushright] %
... [1]
\setupTABLE[row][1][align=middle] % Setting
Hello,
I'm just curious:
I tried to apply align specification to \b/e-TABLE, inframed,
\start/stop-alignment and \start/stop-tabulate:
\setupbodyfont[11pt]
\starttext
\bTABLE
\setupTABLE[width=4cm,align=middle]
\setupTABLE[column][1][align=left]
\setupTABLE[column][4][align
I recently encountered a similar problem with a table of contents [1].
I believe you need \placelistoffigures[criterium=text] for the second LOF since
the default list criterium is local.
Best regards,
Matt
[1] http://archive.contextgarden.net/message/20120919.215602.9a0f1f84.en.html
... Great,
On Tue, 25 Sep 2012 10:42:30 +0200, Marco Patzer wrote:
2012-09-25 Procházka Lukáš Ing. - Pontex s. r. o. :
Hi Lukáš,
is there a built-in parameter for \setupcaptions which would affect the space
after the caption?
\setupcaptions
[figure]
[spaceafter=1cm,align=middle]
... That
Hello,
is there a built-in parameter for \setupcaptions which would affect the space
after the caption? Or any other way?
- Images here seem to me too close to each other; and I'm not able to add some
extra space after the caption to get a bit bigger gap to the next object
(image, text, whate
Hello,
suppose the following example:
\starttext
\startappendices
\placelistoffigures % OK
\placefigure[place]{Caption}{\externalfigure[cow][width=.25\textwidth]}
\chapter{Foto} % Try to comment this!
\placelistoffigures % No entry
\placefigure[place]{Captio
... Maybe you should resize the page layout to full page with
\setuplayout[page].
Lukas
On Tue, 25 Sep 2012 08:37:05 +0200, Mikoláš Štrajt wrote:
Hello everybody in list.
I have drawn title page for my book on paper, later scanned it. And now I want
to add it to my book as a first page. B
Hello,
the following code goes into an infinite loop:
\starttext
\placefigure[place]{}{\externalfigure[cow]}
\showexternalfigures[alternative=a]
\stoptext
I'm getting:
mtx-context | run 1: luatex
--fmt="c:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dd
You need also the “split” keyword for the float.
\starttext
\startplacetable[location={force,split,none}]
\bTABLE[split=repeat]
\bTABLEhead
\bTR
\bTH head1 \eTH
\eTR
\eTABLEhead
%
\bTABLEbody
\dorecurse{40}{%
\bTR
\bTD body \eTD
\eTR
Hello,
On Thu, 20 Sep 2012 15:51:23 +0200, Wolfgang Schuster
wrote:
Use \placetable[force]{}{…} and omit the caption with the “none” keyword when
you don’t want it.
WOlfgang
did you mean this?
\def\TAB{%
\bTABLE[split=repeat]
\bTABLEhead
\bTR
\bTH head1 \eTH
Hello
how to center a table over several pages?
Suppose the following code:
\def\TAB{%
\bTABLE[split=repeat]
\bTABLEhead
\bTR
\bTH head1 \eTH
\eTR
\eTABLEhead
%
\bTABLEbody
\dorecurse{40}{%
\bTR
\bTD body \eTD
\eTR
Hello,
I have problem using CP 1250 and component/environment.
Suppose having a simple example:
t-M.mkiv - File of macro definitions
%\enableregime[cp1250]
\def\ccc{č} % A Czech letter with diacritics
t-Env.mkiv - Environment file - just load macros
%\enableregime[cp1250]
\inp
http://pragma-ade.com/general/qrcs/setup-en.pdf
… tex/texmf-context/tex/context/interface/cont-en.xml
Thanks for the idea.
Maybe both sources would be useful somehow but - they don't look up-to-date as e.g. the
command "\startluacode" is not involved in any of both.
Persisting question:
c:\
On Tue, 18 Sep 2012 09:36:54 +0200, Peter Münster wrote:
- the command/macro "\startluacode" is missing (why?) and
Are you sure? I can see it...
... You're right, I see it, too...
Lukas
___
If your question is
Hello,
@Philipp:
1) is there a Ctx command/switch which would generate list of all current
ConTeXt commands? E.g.
Hi Lukáš, if you interpret “current Context commands” as “macros
known to TeX”, you may try dumping the hashtable with these lines:
·
Hello,
http://www.nongnu.org/gsl-shell/doc/
it looks useful...
So far, I can't see any binding between GSL's 'graph.plot*()' and any output
that would be accepted by ConTeXt; e.g. no .png nor MP code can be produced
from GSL.
It would be nice to have them as it seems many computations coul
... Maybe I found something useful (initially I could not remember where and
what to look for, but - )
c:\ConTeXt\tex\texmf-context\scripts\context\lua\mtx-interface.lua
There is:
...
local helpinfo = [[
...
--textpad generate textpad interface files
--textcrea
Hello,
1) is there a Ctx command/switch which would generate list of all current
ConTeXt commands? E.g.
"
context --list-of-commands > Cmds.txt
"
to produce
Cmds.txt
\startCAP
\stopCAP
\startCap
\stopCap
...
\writetoregister
2) The directory "c:\Ctx-Beta\tex\texmf-context\context\
... Thanks Hans for implementation and Sietse for wikifying.
BTW: Wouldn't be better to enclose ConText source on wiki into rather than even if the source doesn't compile due to
wiki-ConTeXt oldness?
I believe one day the wiki-ConTeXt engine will be updated and so all examples with the
curre
... Thanks for explanation, it's much clearer now.
Best regards,
Lukas
On Tue, 04 Sep 2012 13:57:50 +0200, Sietse Brouwer wrote:
Hello Lukáš,
Usually, projects (collections of environment files) are applied at the
product level. Sometimes, however, you want to apply one at the component
le
Hello,
On Tue, 04 Sep 2012 05:02:01 +0200, Rogers, Michael K wrote:
That's what I was afraid. It's just I had the same problem last week, and a
deadline made me settle for the ad hoc approach.
I was trying to solve the same situation several week ago.
Finally, I measured what the "fit" op
Hello,
when looking at http://wiki.contextgarden.net/Project_structure -
- why \product and/or \project specification is used in the COMPONENT in the
example, or why is it supposed or even required to use in components?
I imagined that component doesn't need to know in which project/product is
On Mon, 03 Sep 2012 14:18:14 +0200, Sietse Brouwer wrote:
or
?
Both work. Because both work, we have no way to force future edits to
be XHTML compliant, so I don't think it is productive to try to
enforce XHTML compliance in this. Instead, if we ever do need
compliant XHTML, we can have a b
On Mon, 03 Sep 2012 10:01:25 +0200, Sietse Brouwer wrote:
http://wiki.contextgarden.net/Help:Context
BTW: Which of the following specifications is correct [for wiki]:
or
?
The former is used in the "prelast" example on
http://wiki.contextgarden.net/Help:Context and - AFAIK (see e.g.
http
Hello,
maybe the known problem with the wiki and the "current" Ctx versions.
The following code:
\setuppapersize[A5]
\starttext
\definedelimitedtext[mydt]
\setupdelimitedtext[mydt][left=\leftguillemot,right=\rightguillemot]
\quotation{Clancy of the Overflow}, by Banjo Paterson
\startmyd
Natural tables have “odd” and “even” keywords for \setupTABLE but none in the
way you like it. What I would do is to use a overlay in combination with
metapost to create the background but there is no global register to access the
current column/row of a cell, e.g. \currenttablecolumn (this nam
On Fri, 17 Aug 2012 12:18:53 +0200, Peter Münster wrote:
On Fri, Aug 17 2012, Tobias Mueller wrote:
And I wouldn't want to embarras myself by having a document missing
images. So a failure in the build process would help me a lot.
Instead of calling context directly, you can make a script,
On Thu, 16 Aug 2012 10:07:27 +0200, Hans Hagen wrote:
On 16-8-2012 09:53, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
I'm struggling a bit with setting font style for page footer:
\setuppagenumbering
[location={footer,middle},
]
\setupfooter[text][style=\bfc]
\star
Hello,
I'm struggling a bit with setting font style for page footer:
\setuppagenumbering
[location={footer,middle},
]
\setupfooter[text][style=\bfc]
\starttext
\dorecurse{3}{\input knuth\page}
\stoptext
Why the footer is not bold and big ('\bfc')? - How to make it '\bfc'?
TIA.
Hello,
I have a product file which includes an environment file placed two directories
up.
What is the default lookup of \environment? I thought it were at least one
level up, but I'm not sure.
My code so far is:
\usepath[{.,..,../..}]
\environment _e-Geom.mkiv % In fact in '../../_e-G
Great, thank you.
Lukas
On Thu, 09 Aug 2012 11:27:08 +0200, Hans Hagen wrote:
in the current beta you can say
\startcomponent *
Hans
--
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: +42
Hello Willi,
is there a template for an article on "My Favorite Text Editor"? E.g. section
names, setups for heads, paragraphs, page layouts...
How large the article is supposed to be (e.g. in words of the text; and/or in
pages, i.e. including images/screenshots)?
What is the deadline for dra
Hello,
just a brief question -
- is there a way how to obtain the current file name; to be possible to write
e.g.
C1.tex
\startcomponent \thisfilename % Instead of \startcomponent C1
and
P1.tex
\startproduct \thisfilename % Instead of \startproduct P1
so that \thisfilena
... OK -
On Tue, 10 Jul 2012 00:16:08 +0200, Hans Hagen wrote:
actually it does accept more units but they were pretty small (needed an
1/u)
anyhow, in the next beta we can do
\starttext
\setupbars[unit=mm,rulethickness=1] bar\startbar[underbar]foo\stopbar
bar\blank
\setupbars[un
On Mon, 09 Jul 2012 09:26:51 +0200, Wolfgang Schuster
wrote:
to allow “rulethickness=…pt”.
+1
Lukas
Wolfgang
--
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 244 062 238
Fax: +42
... Thanks Philipp and Hans for hints, I'll keep on trying.
BTW: I'd never guess how Czech will become popular ;)
Best regards,
Lukas
Na to budeš potřebovat node.hpack() (luatexref-t.pdf, s. 95).
\starttext
\startluacode
context(typesetters.hpack("Na to budeš potřebovat 'typesetters
Hello,
sorry for impoliteness - last two messages should't have been addressed to the
forum, but only to me and Jaroslav - thus in Czech.
The question still lasts...
Best regards,
Lukas
how to call "\box0" and "\hbox to3cm{abc}" by Lua?
\startluacode
context[[\box0]] % OK but a "n
On Mon, 18 Jun 2012 16:56:56 +0200, Jaroslav Hajtmar wrote:
Ahoj...
To bych ti rekl ... :-)
tex.box[0].height
... To ale získáš jen výšku boxu, ne?
Co když ten hbox chceš vysázet Luou na nějakou šířku?
L.
J.
Dne 18.6.2012 16:53, Procházka Lukáš Ing. - Pontex s. r. o. napsal(a
Hello,
how to call "\box0" and "\hbox to3cm{abc}" by Lua?
\startluacode
context[[\box0]] % OK but a "nicer" way preferred, so keep on trying -
context.box(0) % Error
context.box{0} % Error
context.box"0" % Error
context.hbox({to = "cm"}, "abc") % Error
\stopluacode
TIA.
Be
Hello,
(my apologies if this message is duplicated - our mail server was out-of-order
some time)
how to call "\box0" and "\hbox to3cm{abc}" by Lua?
\startluacode
context[[\box0]] % OK but a "nicer" way preferred, so keep on trying -
context.box(0) % Error
context.box{0} % Error
... OK, this seems good.
Actually, I need multi-line header, so two more questions:
1) Is there a way how to address rows (first, last) of the header part?
Something like:
\setupTABLE[header][r][1][topframe=on]
\setupTABLE[header][r][last][bottomframe=on]
- When I'd like to draw a line
Hello,
I'd need to create table with a head and a body, and with horizontal lines
between rows disabled, excluding the head.
Something like (ASCII art trial):
+--+--+
| Head | Head |
+--+--+ <- Line here bellow the head is wanted (and can be thicker
than the outer lines)...
Hello,
IMHO - ConTeXt topics, questions and answers are usually to long to be shrunk
to 140 characters.
I think that the "ConTeXt Point" already exists - it's this forum and wiki
(you'll see in the future that two sources are enough sometimes).
The more sources (including twits), the more sea
... OK, much clearer now.
Thanks for explanation.
Best regards,
Lukas
On Tue, 05 Jun 2012 18:06:28 +0200, Wolfgang Schuster
wrote:
Am 05.06.2012 um 17:13 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Thank you, Wolfgang.
Two more questions, hope there'll be no more about this
Thank you, Wolfgang.
Two more questions, hope there'll be no more about this stuff.
On Tue, 05 Jun 2012 17:01:28 +0200, Wolfgang Schuster
wrote:
\usesymbols[mvs]
\starttext
\symbol[martinvogel 2][ShortForty]
\stoptext
or
\usesymbols[mvs]
\setupsymbolset[martinvogel 2]
\starttext
\symbol
... Thanks both for your answers.
My code so far is:
\usesymbols[mvs]
\starttext
\startcolumns[n=2,rule=on]
\showsymbolset[martinvogel 2]
\stopcolumns
\page
\startcolumns[n=4,rule=on]
\dorecurse{1024}{\recurselevel
--\getglyph{marvosym}{\char\recurselevel\par}}
\stopcol
Hello ConTeXters,
is there a way how to get laundry symbols into ConTeXt?
- The image is copied from "The Comprehensive LATEX Symbol List", Scott Pakin.
TIA.
Best regards,
Lukas
--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex
... Thanks Aditya,
here is also a sample attached.
Best regards,
Lukas
On Thu, 31 May 2012 15:20:35 +0200, Aditya Mahajan wrote:
On Thu, 31 May 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
... Thanks Marco, this works much better.
I found one fault - the code "-4.0 % na
... Thanks Marco, this works much better.
I found one fault - the code "-4.0 % na +4.0 %." in the source is translated to "-4.0 %na +4.0
%.", so the space after the first " " is gobbled.
But it is not so serious.
Thanks anyway.
Best regards,
Lukas
On Thu, 31 May 2012 14:14:11 +0200, Marco
... OK, thanks for the patch.
Lukas
On Thu, 31 May 2012 10:24:52 +0200, Hans Hagen wrote:
you can remove line 484 in mtx-context.lua
-- jobname = file.removesuffix(jobname)
--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.ponte
Hello,
please see the example:
\usemodule[markdown]
\starttext
\startmarkdown
AAA -4 % BBB
aaa \% bbb
\stopmarkdown
\processmarkdownfile{t-MD.mkiv} % = This file
\stoptext
When the t-MD.mkiv is processed by \processmarkdownfile, only "AAA -4" appears from the line
"A
Hello,
please see the following calling cases:
1) context.exe t6.mkiv --address=6
2) context.exe t6.2.mkiv --address=6
Content ot both .mkiv is identical - just to print the passed address value:
\starttext
A \directlua{print("@@@", document.arguments.address)}
\stoptext
The forme
... Finally, I use the following to avoid ' in arguments and to keep " to
os.execute():
\bgroup
\catcode`\%=11
\ctxlua{os.execute(([[echo lua -e "print 'EXECUTE'"]]):gsub("'(.-)'",
"[[%1]]"))}
\egroup
% Or:
\startluacode
os.execute(([[echo lua -e "print 'EXECUTE'"]]):gsub("'(.-)'",
... I also tried:
\write18{echo 'AAA'}
\starttext
A
\stoptext
Which gives:
"
...
backend > xmp > using file
'c:/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
"AAA"
pages > flushing realpage 1, userpage 1
...
"
So it can be seen that ' changes to " ev
probably some os.execute parsing ...
Do you mean Lua itself does the parsing and substitution? I guessed [lua]tex
core...
When I try to call on the command line:
"
C:\Lukas\ConTeXt\TestDDv>lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
os.execute([[lua -e "print 'WWW'"]])
WWW
os.e
Hello,
I slightly modified the example - my code now is:
\ctxlua{os.execute([[echo lua -e "print 'WWW'"]])}
\starttext
A
\stoptext
So now I'm able to diagnose what exactly is passed to the command line.
I'm getting:
"
...
languages > language en is active
lua -e "print "WWW
\ctxlua{os.execute(lua -e "require 'lfs'")}
... Gives:
"
...
fonts > latin modern fonts are not preloaded
languages > language en is active
! LuaTeX error :1: attempt to call global 'e' (a nil value)
stack traceback:
:1: in main chunk.
system > tex > error on l
Hello,
I'd need to call the OS, namely lua in it.
I have the following code:
\write18{lua -e "require 'lfs'"}
\write18{lua -e require'lfs'}
\starttext
A
\stoptext
When calling directly from the command line
lua -e "require 'lfs'"
- there is no error.
From within the Context cod
Hello,
many thanks Marco for wikifying.
On Tue, 08 May 2012 21:57:04 +0200, Marco wrote:
Thanks a lot Hans for implementing this.
Wikified:
http://wiki.contextgarden.net/Command/defineMPinstance
http://wiki.contextgarden.net/Command/setupMPinstance
Best wishes
Marco
With the permissio
Hello,
- seems OK with my not-so-recent MkIV - see the attachment.
Lukas
On Thu, 10 May 2012 10:08:57 +0200, Hans Hagen wrote:
It looks ok in mkii and mkiv ... can someone confirm the problem?
Hans
--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o. [mailto:pon...@ponte
Hello,
Wiki and a file processed on a local computer give different results -
- please compare "http://wiki.contextgarden.net/Command/doif...";
and the example attached:
\starttext
\ctxlua{test = true}
Test is \ctxlua{commands.testcase(test)}{True}{False}.
\ctxlua{test = false}
... Great, thank you.
Lukas
On Thu, 03 May 2012 17:41:18 +0200, Aditya Mahajan wrote:
On Thu, 3 May 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
just a quick question - is there a command like "\inputif(file)exist(s)",
which will \input a file if it exists, i.
Hello,
just a quick question - is there a command like "\inputif(file)exist(s)", which
will \input a file if it exists, i.e. with no error if it doesn't?
TIA.
Lukas
--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 16
... OK, thanks for the explanation.
Best regards,
Lukas
1) What exactly does \noheaderandfooterlines do?
It disables the header/footer on the page where \noheaderandfooterlines was
inserted.
2) Why testing the #1 argument in the case 2 doesn't work?
When you use “\pagenumber” you check
Alan BRASLAU wrote:
On Wed, 2 May 2012 14:24:24 +0200
Wolfgang Schuster wrote:
Am 02.05.2012 um 09:45 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
> how to specify the page background for the first page only and how
> to start page numbering from the second page?
\def
... One more question. Let's have three cases - some of them hide the page
number on the first page, some of them don't.
The question is - why:
1 - OK, no page number on page 1
\def\MyPageNumber#1{\doifelse{\pagenumber}{1}{}{\pagenumber}} % Testing
\pagenumber
\setuppagenumbering[locatio
Hello,
how to specify the page background for the first page only and how to start
page numbering from the second page?
Here's my trial:
\defineoverlay[Bkg][{\externalfigure[cow]}]
\setupbackgrounds[paper][background=Bkg]
%\setuppagenumbering[state=2]
\starttext
\dorecurse{5}{\input k
Hello,
your code seems hopefully, but it doesn't compile (?!)...
Missing "[" and "]" somewhere?
See the test and log.
Best regards,
Lukas
On Fri, 20 Apr 2012 17:52:35 +0200, Marco wrote:
On 2012-04-20 Procházka Lukáš Ing. - Pontex s. r. o. wrote:
is it po
Hello,
is it possible to specify \(start)tabulate or \setuptabulate to fit \textwidth?
- I mean all columns to have the same width so in total to occupy the whole
\textwidth...
Best regards,
Lukas
--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o. [mailto:pon...@pontex.cz]
Hello,
a question - I'm just curious:
What is advantage (or maybe intension) of using buffers over \def?
Compare:
\def\BufA{This is buffer A.}
\startbuffer[BufB]
This is buffer B.
\stopbuffer
\starttext
\BufA
\getbuffer[BufB]
\ifx\BufC\undefined No buffer C.\else\BufC\fi
\stopt
Hello Hans,
thanks for the idea.
Unfortunately, I'm getting error:
\starttext
\section{A}
\subsection{Aa}
\subsubsection{Aaa}
\startluacode
print("@@@", structures.sections.getnumber(2))
\stopluacode
\stoptext
"
! LuaTeX error ...TeXt/tex/texm
Hello,
values of number and title of the current (sub...)section can be received by
\structurenumber and \structuretitle commands.
Is there a way how to get these values by Lua?
Suppose:
\starttext
\section{Sec 1}
% Now "\structurenumber" yields "1" and "\structuretitle" gives "Sec 1
Hello,
one more question - is there a way how to get values of \structurenumber and
\structuretitle in the Lua scope?
TIA.
Best regards,
Lukas
On Mon, 16 Apr 2012 12:26:52 +0200, Wolfgang Schuster
wrote:
\defineconversionset[default][n,n,a,r,n][n]
\starttext
\section{A}
\starttabulat
... Perfect, thank you!
Best regards,
Lukas
On Mon, 16 Apr 2012 12:26:52 +0200, Wolfgang Schuster
wrote:
\defineconversionset[default][n,n,a,r,n][n]
\starttext
\section{A}
\starttabulate
\NC Number \EQ \structurenumber \NC\NR
\NC Title \EQ \structuretitle \NC\NR
\stoptabulate
\subsec
Hello,
suppose having the following code:
\starttext
\section{A}
\subsection{Aa}
\subsubsection{Aaa}
Here, in -- % How to get info about current [sub-...]section - texts "1.1.1" and
"Aaa"?
\stoptext
Is there a way how to get info about the current [sub-...]sectio
... OK, thank you.
I also found your piece of code at
http://www.mail-archive.com/ntg-context@ntg.nl/msg62816.html where usage is
shown.
But I still have a question:
Is it possible to create a "point" (or anchor) which would know about the
current section, so to retrieve this information lat
Hello,
the wiki example doesn't work on my computer, although the wiki result seems OK:
\starttext
See page \ref[p][myref 1] and \ref[p][myref 2].
\page
\reference[myref 1]{MyRef1} This is the first reference.
\page
\reference[myref 2]{MyRef2} This is the second one.
\stoptext
---
... OK, thanks for explanation.
Best regards,
Lukas
On Tue, 10 Apr 2012 17:42:46 +0200, Wolfgang Schuster
wrote:
small = 1em
medium = 1.5em
big = 2em
Are these values accessible anyhow? Via Lua?
They are stored in \parindent but descriptions have the setting
“indenting=never” which se
On Tue, 10 Apr 2012 11:49:56 +0200, Wolfgang Schuster
wrote:
When you want a certain value in various places I would use \definemeasure to
set it and \measure to access it.
\definemeasure[parindent][1em]
\define[1]\TestHeadCommand
{\offset[x=-\measure{parindent}]{#1}}
\definedescription
401 - 500 of 719 matches
Mail list logo