:22 MESZ schrieb "Procházka Lukáš Ing." :
Hello,
what is the way to change caption text for figures to be "Fig." instead
of "Figure"?
\setupcaptions[numberstopper={.},] changes "Figure 1" to "Figure 1.",
but is there a similar key for the text?
Hello,
is there a Lua variable/namespace which is stored automatically between Ctx
"*first" and following runs?
I thought 'userdata' is intended for this, but it seems it's not; I'd like to
achieve something like:
\startluacode
if tex.modes["*first"] then
userdata.LPr = "Something"
Hello,
I encountered a weird thing - words of 1 letter inside btex ... etex within MP
are not shown - check:
\setuplayout[page]
\startluacode
context.setMPtext("Pare", "1")
context.setMPtext("Pare2", "22")
context.setMPtext("Pare3", "333")
\stopluacode
%
\startuseMPgraphic{Pare}
Hello,
I'm not very familiar with using buffers, so a basic question:
Is it possible to use buffers within a \def?
The following sample doesn't compile:
\def\T{
\startbuffer[Buf]
a b ccc
d e f
\stopbuffer
\getbuffer[Buf]
}
\starttext
\T
A
\stoptext
What's wrong?
Hello,
a bit later - I was thinking if to react here, after reading all about synctex
and complicated support for complicatedly assembled source files - but my
personal experience/wish...
On 7/24/2018 11:02 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
Hi Hans, all,
One needed feature th
Hello,
this question extends the "[NTG-context] future versions - synctex" thread.
I'm using TextPad for editing Ctx source files, PdfXChange Viewer to view PDFs,
both on Windows.
After reading some recent posts and after studying some web sources - especially
[a] https://www.sumatrap
Hello,
due to great TextAdept (TA) [1] extendibility, I'd like to try to program a TA add-on
which would provide a ConTeXt source "browser".
The idea is to create an independent window in the TA which will show the
current document structure, or even the project structure, and provide some
cl
Hello,
On Fri, 21 Sep 2018 10:30:34 +0200, Henri Menke wrote:
You could still do it, but it would require two passes. In the first
pass to identify that you want to change the output file and write the
new name to an auxiliary file. In the second file, you use your
automation script to read
Hello,
just a note:
whilst command line option "--result=..." must point to the dir where the processed file is
located, "os.rename()" allows to move files across dirs (at least on Win7), so this might be a way
to evade "--result" limitation.
Best regards,
Lukas
On Fri, 21 Sep 2018 13:01:1
Hello Luigi,
BTW, I have problem converting/compressing a scanned ~.pdf (~77 kB; of course,
I have some bigger PDFs) via:
mutool.exe convert -F pdf -O resolution=150,compress-images -o ~~.pdf
~.pdf
- The mutool.exe crashes (here on Win7 64b). (Is my understanding of mutool
command li
Hello,
this may have been posted here some time before, but - would it be possible to
extend \noheaderandfooterlines command to temporarily suppress bottom frame,
too?
Suppose having the following code:
\setupheadertexts[left][right]
\setupbackgrounds[header][bottomframe=on]
\starttext
Hello,
I need to check whether even or odd page is to be printed. I'm starting with
the following simple code:
\def\T{\ifodd\pagenumber ODD\else EVEN\fi}
\starttext
\dorecurse{2}{\T\page}
\startTEXpage[width=50mm,height=150mm]\stopTEXpage
\dorecurse{2}{\T\page}
\stoptext
Why "
Hello Pablo,
that's it, thank you!
Lukas
On Tue, 16 Oct 2018 17:58:04 +0200, Pablo Rodriguez wrote:
On 10/16/18 4:25 PM, Procházka Lukáš Ing. wrote:
Hello,
I need to check whether even or odd page is to be printed. I'm starting with
the following simple code:
\de
Hello,
I encountered problem updating ConTeXt.
I'm still using 32b built due to some deps on 3rd party libs (32b, too).
Running 'first-setup.bat' doesn't create 'tex\texmf-mswin\' directory as
usually.
I also modified the first-setup.bat to avoid 64b platform testing - see the
first-setup.tx
Hello Pablo,
thank you for testing, it's OK also on another computer with WinX 64b...
Best regards,
Lukas
On Wed, 24 Oct 2018 17:38:17 +0200, Pablo Rodriguez wrote:
On 10/24/18 2:58 PM, Procházka Lukáš Ing. wrote:
Hello,
I encountered problem updating ConTeXt.
I'm still using
Hello,
-- all attachments packed into one .zip --
probably one of the basic questions and skills in ConTeXt, but the first case
for me: how to install a (downloaded third-party) font into ConTeXt:
I downloaded font source files from
https://www.ctan.org/tex-archive/fonts/aurical/ and I unpack
Hello Henning,
I go similar way as Alan does - I'm updating ConTeXt (usually) once a week
while keeping backups of the previous versions.
My experience is that cca once a year I'm forced to get back to a previous Ctx copy as something
stops working (IIRC, there some issues with switching to Lu
Hello,
the following code:
\starttext
\bgroup
\setuptabulate[split=yes,header=repeat]
\starttabulatehead
\FL
\NC {\bf format char} \NC {\bf meaning} \NC \AR
\LL
\stoptabulatehead
\starttabulate[|r|l|]
\NC c \NC centered \NC \AR
\NC l \N
Hello,
the function 'debug.getinfo' was removed?
The following code:
\startluacode
print(debug.getinfo)
\stopluacode
\starttext
A \cldcontext{tostring(debug.getinfo)}
\stoptext
gives/prints 'nil'.
IIRC, the function was non-nil some weeks ago...
Best regards,
Lukas
--
Ing.
Hello,
something like this?
\setupexternalfigures[location=default]
\define[1]\MyNumCmd{%
\externalfigure[hacker][height=2cm]
}
\setuphead[chapter][numbercommand=\MyNumCmd]
\starttext
\chapter{Ch}
\input knuth
\stoptext
Best regards,
Lukas
On Fri, 23 Nov 2018 09:13:39 +01
Hello,
would it be possible to provide some samples finally?
That would be very handy especially for those who are used to create plots via
"several clicks on Excel ribbon".
Personally, I am interested in 2D plots to be created loading (an) external data file(s)
(text files formed into tables
Hello,
I'm using the following code, mentioned here some time ago, to get some info
about PDF:
\startluacode
figures.getinfo = function(name, page)
if type(name) == "string" then
name = { name = name, page = page }
end
if name.name then
local data = figures.push
Hello Luigi,
On Thu, 06 Dec 2018 11:23:25 +0100, luigi scarso wrote:
On Thu, Dec 6, 2018 at 11:17 AM Procházka Lukáš Ing. wrote:
Hello,
I'm using the following code, mentioned here some time ago, to get some
info about PDF:
\startluacode
figures.getinfo = function(name,
Hello,
is there a way to process a file with '#' in the file name by ConTeXt?
E.g. file "T#.mkiv" with
\starttext
A
\stoptext
fails - not so surprisingly; but anyway - is there a way or "trick" to process
it?
Bets regards,
Lukas
_
Hello,
thanks Paul for the nice job! The colorful hexa-shaped logo seems much prettier.
One point/suggestion - if the letters "TEX" shared the same background - be it e.g. light gray - it might be
cleaner how to read ("discover") the word "ConTeXt"; it would also keep the hexagonal shape,
asso
Hello,
a TABLE is split weirdly over two pages:
- on the first page (here: page 8): the (repeated) header of the TABLE and the
first body row followed by void space,
- then (here: on the page 9) the remaining part of the TABLE;
- see the sample attached.
I'm not able to strip my real case mor
Hello,
it seems that xtable setup doesn't recognize the "c" option, which is
recognized successfully by TABLE setup;
tested on mapping provided by "ntb-to-xtb" module:
\usemodule[ntb-to-xtb] \restoreTABLEfromxtable
\starttext
\bTABLE
\setupTABLE[c][1][width=1in] % Set 1st column wid
Hello,
On Tue, 19 Feb 2019 21:35:41 +0100, Wolfgang Schuster
wrote:
Procházka Lukáš Ing. schrieb am 19.02.19 um 21:27:
Hello,
it seems that xtable setup doesn't recognize the "c" option, which is
recognized successfully by TABLE setup;
tested on mapping provided by &quo
Hello Hans,
On Wed, 20 Feb 2019 09:15:40 +0100, Hans Hagen wrote:
as column setup for TABLEs by "\setupTABLE[c][1][width=1in]" is handy
and is used frequently, would it be possible to provide identical
mechanism for xtables?
all is possible but it won't happen ... different approach ... you
Hello,
I'm struggling with using modes to make a part of the text conditional.
Here is my code:
\def\b#1{\startmode[#1]}
\def\e{\stopmode}
% \enablemode[100] % For optional usage
\starttext
A
\b{100} % Should be start of some conditional text from here ...
B
\e % ... to here
\s
Hello Aditya,
thanks for the code, I'll try something like that.
Best regards,
Lukas
On Thu, 28 Feb 2019 12:54:06 +0100, Aditya Mahajan wrote:
On Thu, 28 Feb 2019, Procházka Lukáš Ing. wrote:
Hello,
I'm struggling with using modes to make a part of the text conditional.
Hello,
I encountered the same with the minimal:
\starttext
\nonexisting
\stoptext
Messages displayed on the console are "full-fledged" both with "--ansi" switch
or without it.
But the resulting .log file is incomplete with "--ansi".
Would it be possible to adapt loggers to write t
Hello,
is it possible (namely for debugging) values of MP variables (be it on the
console or in the log)?
I thought there is MP command "show" (mentioned in mpman.pdf) for this; but:
\starttext
A
\startMPcode
newpair pt; pt := (10,20);
show pt; % <-- How to
Hello,
I'm trying to get nested descriptions (using "tab") to form a "cascade". The
result should look like:
AAA ababababababab
ababababababab
BBB ababababab
ababababab
CCC ababab
ababab
<--> indent (margin?) of the first nested description in relation to
\box \IndByTextBox is already defined (\relax it first)
warning > \dimen \IndByTextBoxWd is already defined (\relax it first)
"
How & where to "relax the box"?
Best regards,
Lukas
On Tue, 02 Apr 2019 11:38:18 +0200, Procházka Lukáš Ing. wrote:
Hello,
I'm
Hello,
I'm using a custom .dll in Ctx (my own .dll written in C with some extensions
to Lua).
Whenever Ctx started to use a newer version of Lua, I rebuilt the .dll with the
appropriate version of lua*.dll.
With the latest (non-LMTX) Ctx, I used Lua53.dll from:
http://www.w32tex.org/
Hello,
Czech typo rules prefer not indenting paragraphs after itemization.
How to setup indenting best to achieve this?
The following code gives the desired output:
\setupindenting[yes,big]
\starttext
\section{Sec}
\input knuth
\startitemize[][after={\blank\noindent}]
\item A
... Great, perfect, thank you! Lukas
On Thu, 11 Apr 2019 12:48:25 +0200, Mikael P. Sundqvist
wrote:
On Thu, Apr 11, 2019 at 10:02 AM Procházka Lukáš Ing. wrote:
Hello,
Czech typo rules prefer not indenting paragraphs after itemization.
How to setup indenting best to achieve this?
The
Hello,
On Thu, 11 Apr 2019 14:44:39 +0200, Aditya Mahajan wrote:
On Thu, 11 Apr 2019, Procházka Lukáš Ing. wrote:
... Great, perfect, thank you! Lukas
The wiki page also explains the details of indentation:
https://www.contextgarden.net/Indentation
thank you for pointing the link
Hello,
thanks Aditya for the explaining example!
I added the sample to wiki:
https://wiki.contextgarden.net/Indentation
Best regards,
Lukas
indentnext=auto means that the next paragraph will be indented when there
is a blank space and not indented when there is no blank space.
So
Hello,
I need to have itemize with "joinedup" option inside footnote which comes
within itemize:
\starttext
A%
\startitemize[][]
\item ItemA%
\footnote{%
Some text
\startitemize[joinedup][] % <<< "joinedup" doesn't work here <<<
\item Item1
Hello,
is there a way to tell \section (or other heads) to be "number-converted"
differently in bodypart and appendices?
Something like:
\setuphead[section][] % e.g. "appendices:numberconversion=A"?
\starttext
\starbodyamtter
\section{In body} % To produce "1. In body"
\stopbodyma
ez wrote:
On 5/21/19 3:10 PM, Procházka Lukáš Ing. wrote:
Hello,
is there a way to tell \section (or other heads) to be "number-converted"
differently in bodypart and appendices?
Hi Lukáš,
I think this is what you want to achieve:
\definestructureconversionset
[sectionnumb
Hello,
suppose having "Main.mkiv":
\setupbackend[export=yes]
\starttext
\startsection[title={Sec},MyPar=MyVal]
\input knuth
\stopsection
\stoptext
Some questions concerning XML export:
1. Normally, with \setupbackend[export=yes], Ctx creates "Main-export"
directory containi
Hello Taco,
From now on, when you are editing the wiki (especially the /Command/CMD pages), you can use
CMD to output the formal table of arguments
for that CMD (omit the backslash)
For example,
section
outputs a table with the formal calling convention(s) for the \section command.
Multip
Hello,
I need to get columns like this:
| | 1b |
| 1a ||
+-+|
| 2a | 2b ||
| | ||
I tried the following:
\starttext
\startcolumns[n=2] % How to tell that ratio between columns should be 2:1?
\input knuth % Be 1a
\s
8:47:18 +0200, Henning Hraban Ramm wrote:
Am 2019-09-24 um 15:44 schrieb Procházka Lukáš Ing. :
I need to get columns like this:
| | 1b |
| 1a ||
+-+|
| 2a | 2b ||
| | ||
I tried the following:
\starttext
\startcolumns
Hello Hraban,
On Wed, 25 Sep 2019 13:07:50 +0200, Henning Hraban Ramm wrote:
If your ConTeXt installation is quite recent, you have
texmf-context/doc/context/documents/general/manuals/pagecolumns.pdf
This is quite new and I don’t know how usable.
useful, thanks.
(Hint for everyone: the "m
Hello,
I extended the "Description" section at
https://wiki.contextgarden.net/Command/column#Description by an incomplete list of
options.
Please try it and report back, i.e. document it in the wiki. Someone has to do
it…
The only effect I can see is when I use \column (= go to next column
Hello,
I have the following code:
\definecolumnset[example][n=3,balancing=no]
\definecolumnsetspan[wide][n=2]
\setupexternalfigures[location=default]
%
\starttext
\startcolumnset[example]
\startcolumnsetspan[wide]
%\externalfigure[hacker][width=120mm] % Produces overlapping l
grid.
\setuplayout[grid=yes]
Cheers, Henri
On 10/1/19 7:16 PM, Procházka Lukáš Ing. wrote:
Hello,
I have the following code:
\definecolumnset[example][n=3,balancing=no]
\definecolumnsetspan[wide][n=2]
\setupexternalfigures[location=default]
%
\starttext
\startcolumnset[ex
Hello,
the code bellow produces unwanted vertical gap between the bottom border of the figure and the following
title "A" in the first column (marked by red arrows "<->" in the PDF attached).
Note that in the second column there is no such gap.
I tried to play with "before", "inbetween", "befo
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
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,
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,
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,
\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,
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.
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,
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
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,
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,
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
... 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,
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
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,
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
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,
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, 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,
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
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,
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
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
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,
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
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,
... 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,
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
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 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
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 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,
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?
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,
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 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,
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
\
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
... 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,
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
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,
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,
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 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.
... 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
... 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
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
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
... 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
201 - 300 of 784 matches
Mail list logo