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
On Mon, 22 Oct 2012 13:53:31 +0200, Philipp Gesang
philipp.ges...@alumni.uni-heidelberg.de wrote:
You don’t have to, these colors were upgraded to a superior way
of being defined (colo-imp-dem.mkiv):
·
\setupcolor[dem]
On Mon, 22 Oct 2012 16:41:46 +0200, Aditya Mahajan adit...@umich.edu 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
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
On Wed, 17 Oct 2012 10:34:22 +0200, Jeong Dal hak...@me.com 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 =
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 pra...@wxs.nl 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 pra...@wxs.nl wrote:
btw, you should adapt LUAINPUTS and not some other environment variable
.. after all
On Thu, 04 Oct 2012 13:32:42 +0200, Hans Hagen pra...@wxs.nl 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
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
On Thu, 04 Oct 2012 11:32:20 +0200, Wolfgang Schuster
wolfgang.schus...@gmail.com 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}
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
On Thu, 04 Oct 2012 12:04:14 +0200, Alan BRASLAU alan.bras...@cea.fr 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
On Thu, 04 Oct 2012 13:27:40 +0200, Hans Hagen pra...@wxs.nl wrote:
On 4-10-2012 12:09, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Personally - I've been using require file-name so far at many places
and there was no problem with it.
try with
\enabletrackers[resolvers.libraries]
- OK
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] %
...@gmail.com wrote:
Am 03.10.2012 um 10:16 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
l...@pontex.cz:
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
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
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]
... 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 stra...@seznam.cz 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
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
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,
On Tue, 25 Sep 2012 10:42:30 +0200, Marco Patzer home...@lavabit.com wrote:
2012-09-25 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz:
Hi Lukáš,
is there a built-in parameter for \setupcaptions which would affect the space
after the caption?
\setupcaptions
[figure]
[spaceafter
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
...
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
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,
On Thu, 20 Sep 2012 15:51:23 +0200, Wolfgang Schuster
wolfgang.schus...@gmail.com 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
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,
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]
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
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:
On Tue, 18 Sep 2012 09:36:54 +0200, Peter Münster pmli...@free.fr 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
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:
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
... 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
--text
... Thanks Hans for implementation and Sietse for wikifying.
BTW: Wouldn't be better to enclose ConText source on wiki into context mode=mkiv
source=yes rather than texcode even if the source doesn't compile due to
wiki-ConTeXt oldness?
I believe one day the wiki-ConTeXt engine will be
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
Hello,
On Tue, 04 Sep 2012 05:02:01 +0200, Rogers, Michael K mrog...@emory.edu 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
... Thanks for explanation, it's much clearer now.
Best regards,
Lukas
On Tue, 04 Sep 2012 13:57:50 +0200, Sietse Brouwer sbbrou...@gmail.com wrote:
Hello Lukáš,
Usually, projects (collections of environment files) are applied at the
product level. Sometimes, however, you want to apply one
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
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
\startmydt
On Mon, 03 Sep 2012 10:01:25 +0200, Sietse Brouwer sbbrou...@gmail.com wrote:
http://wiki.contextgarden.net/Help:Context
BTW: Which of the following specifications is correct [for wiki]:
context mode=mkiv source=yes
or
context mode=mkiv source=yes?
The former is used in the prelast example
On Mon, 03 Sep 2012 14:18:14 +0200, Sietse Brouwer sbbrou...@gmail.com wrote:
context mode=mkiv source=yes
or
context mode=mkiv source=yes?
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
On Fri, 17 Aug 2012 12:18:53 +0200, Peter Münster pmli...@free.fr 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
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'?
On Thu, 16 Aug 2012 10:07:27 +0200, Hans Hagen pra...@wxs.nl 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
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
Great, thank you.
Lukas
On Thu, 09 Aug 2012 11:27:08 +0200, Hans Hagen pra...@wxs.nl 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
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
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
... OK -
On Tue, 10 Jul 2012 00:16:08 +0200, Hans Hagen pra...@wxs.nl 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
On Mon, 09 Jul 2012 09:26:51 +0200, Wolfgang Schuster
schuster.wolfg...@gmail.com 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
... 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
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
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.box0 % Error
context.hbox({to = cm}, abc) % Error
\stopluacode
TIA.
Best regards,
On Mon, 18 Jun 2012 16:56:56 +0200, Jaroslav Hajtmar hajt...@gyza.cz 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
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 nicer
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)...
... 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,
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
... OK, much clearer now.
Thanks for explanation.
Best regards,
Lukas
On Tue, 05 Jun 2012 18:06:28 +0200, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
Am 05.06.2012 um 17:13 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Thank you, Wolfgang.
Two more questions, hope
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]
... 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}}
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
schuster.wolfg...@googlemail.com wrote:
\usesymbols[mvs]
\starttext
\symbol[martinvogel 2][ShortForty]
\stoptext
or
\usesymbols[mvs]
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
AAA
... OK, thanks for the patch.
Lukas
On Thu, 31 May 2012 10:24:52 +0200, Hans Hagen pra...@wxs.nl 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]
... 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
... Thanks Aditya,
here is also a sample attached.
Best regards,
Lukas
On Thu, 31 May 2012 15:20:35 +0200, Aditya Mahajan adit...@umich.edu 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
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 former
... 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('(.-)', [[%1]]))
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:
...
languageslanguage en is active
lua -e print WWW
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\TestDDvlua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
os.execute([[lua -e print 'WWW']])
WWW
... 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
pagesflushing realpage 1, userpage 1
...
So it can be seen that ' changes to even in
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 code,
\ctxlua{os.execute(lua -e require 'lfs')}
... Gives:
...
fontslatin modern fonts are not preloaded
languageslanguage en is active
! LuaTeX error main ctx instance:1: attempt to call global 'e' (a nil value)
stack traceback:
main ctx instance:1: in main chunk.
Hello,
- seems OK with my not-so-recent MkIV - see the attachment.
Lukas
On Thu, 10 May 2012 10:08:57 +0200, Hans Hagen pra...@wxs.nl 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.
Hello,
many thanks Marco for wikifying.
On Tue, 08 May 2012 21:57:04 +0200, Marco net...@lavabit.com wrote:
Thanks a lot Hans for implementing this.
Wikified:
http://wiki.contextgarden.net/Command/defineMPinstance
http://wiki.contextgarden.net/Command/setupMPinstance
Best wishes
Marco
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}
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á
... Great, thank you.
Lukas
On Thu, 03 May 2012 17:41:18 +0200, Aditya Mahajan adit...@umich.edu 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
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
... 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
wrote:
On Wed, 2 May 2012 14:24:24 +0200
Wolfgang Schuster schuster.wolfg...@googlemail.com 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
... 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
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.
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 net...@lavabit.com wrote:
On 2012-04-20 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote
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
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
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
schuster.wolfg...@googlemail.com wrote:
\defineconversionset[default][n,n,a,r,n][n]
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,
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-...]section,
... Perfect, thank you!
Best regards,
Lukas
On Mon, 16 Apr 2012 12:26:52 +0200, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
\defineconversionset[default][n,n,a,r,n][n]
\starttext
\section{A}
\starttabulate
\NC Number \EQ \structurenumber \NC\NR
\NC Title \EQ
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, 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
... OK, thanks for explanation.
Best regards,
Lukas
On Tue, 10 Apr 2012 17:42:46 +0200, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
small = 1em
medium = 1.5em
big = 2em
Are these values accessible anyhow? Via Lua?
They are stored in \parindent but descriptions have the
Hello Wolfgang,
thanks for the solution.
Two more questions:
- How to specify indenting to be equal to the normal paragraph indenting?
Here's my trial:
\setupindenting[yes,first,medium]
\define[1]\TestHeadCommand{\offset[x=-\parindent]{#1}} % This doesn't work
\starttext
... Thank you, Aditya, that's it!
Lukas
On Tue, 10 Apr 2012 11:27:05 +0200, Aditya Mahajan adit...@umich.edu wrote:
On Tue, 10 Apr 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
XXX _
^
V - this distance to be specified
On Tue, 10 Apr 2012 11:49:56 +0200, Wolfgang Schuster
schuster.wolfg...@googlemail.com 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
Hello,
I've just updated ConTeXt.
The following code used to work so far, now I'm getting error:
\definestructurelevels[A][section,]
\starttext
\startstructurelevel[A][title=Title]
\input knuth
\stopstructurelevel
\stoptext
This is LuaTeX, Version beta-0.70.1-2012032923
Hello,
another case of description (following
http://www.mail-archive.com/ntg-context@ntg.nl/msg62775.html), now with
alternative=top - I'm trying to get:
XX
blablabla bla
bla blablabla
blabla.
| |
|-| A constant of indenting - to be specified by the user.
| |
Hello,
suggestion:
As ConTeXt-generated examples (automatically generated by context ...
/context) on wiki are often:
- too long and
- their font is often too big compared to the other font used on the wiki page.
(E.g. http://wiki.contextgarden.net/Command/definedescription.)
(WinXP,
Hello,
is there an option for \startitemize or \setupitemize or \setupitemgroup:
\startitemize
\item A
\startitemize
\item B
\stopitemize
\stopitemize
to get:
1. A
1.1 B (= nested item has its parent numbers, too)
or rather
1. A
1.1 B (= nested item has its
401 - 500 of 702 matches
Mail list logo