Hi,
in October 2011 Marco asked how to get an output like this:
I Foo
A Bar
subsection I.A
The example he posted (see below) came to this result:
I Foo
A Bar
subsection A
Then Wolfgang added this line:
\setupreferencestructureprefix[default][prefixsegments=2:*]
But running this advice
][prefixsegments=2:*]
Wolfgang
If I run Marcos example (as seen below), it gives:
I Foo
A Bar
subsection A
But how do we get
I Foo
A Bar
subsection I.A ??
Steffen
---
\definestructureconversionset [myset]
[
Romannumerals,
Romannumerals,
Romannumerals,
Character,
]
[numbers
generic,
maybe \fontfeature or \fontfeatureset instead?
To keep things more in-line with current ConTeXt syntax, you could do
something like the following:
\feature{add=foo}
\feature{subtract=bar}(or sub, remove, etc.)
\feature{reset,add=baz}
Which would also allow, e.g.,
\feature{add=bar
in the args. If \feature ends up being too generic,
maybe \fontfeature or \fontfeatureset instead?
To keep things more in-line with current ConTeXt syntax, you could do
something like the following:
\feature{add=foo}
\feature{subtract=bar}(or sub, remove, etc.)
\feature{reset,add=baz}
Which would
and if this is expected?
\startreusableMPgraphic{foo}
draw textext(abcdefghi);
picture p; p := currentpicture;
\stopreusableMPgraphic
\startreusableMPgraphic{bar}
addto currentpicture also p; %% not printed
draw textext(A); %% distorted
\stopreusableMPgraphic
\starttext
\reuseMPgraphic{foo
/p
h2 class=classnameblab. blab, blab/h2
or anything else that can take a class name attribute.
.. container:: containername
Foo, bar, baz
bunch of stuff
yields
div class=containername
foo, bar, baz
bunch of stuff
/div
I would think ,, class::
ought to map quite
where it applies would have to be hardcoded ...
Docutils’ latex2 writer -- the reference implementation, mind
you -- btw. doesn’t take the “class” directive seriously at all:
it handles paragraphs but ignores it e.g. for section heads.
.. container:: containername
Foo, bar, baz
bunch
:
·
This is a paragraph.
.. container:: xyzzy
whatever
foo **bar** baz
This is another paragraph.
·
This will generate the output
textext(abcdefghi);
picture p; p := currentpicture;
\stopreusableMPgraphic
\startreusableMPgraphic{bar}
addto currentpicture also p; %% not printed
draw textext(A); %% distorted
\stopreusableMPgraphic
\starttext
\reuseMPgraphic{foo}
\reuseMPgraphic{bar}
\stoptext
Does
Hi,
I have two problems with vertical position, one in itemize and one in
math. The example below show them both.
\starttext
\startitemize[n]
\item
\startitemize[a][left={},right={)},stopper=]
\item Bla bla
$\theta = \arctan\bigl(\frac{\bar{y}^2}{\bar{x}^2}\bigr)$ % comment
this line out to see
[default]
[em=slantedred]
\definehighlight
[slantedred]
[style=slanted,
color=red]
\starttext
foo {\em bar}
\stoptext
You cannot update, you can try this instead of \definehighlight:
\definealternativestyle
[slantedred]
[{\slanted\color[red]}]
Marco
signature.asc
Description: Digital
which was recent added.
\setupbodyfontenvironment
[default]
[em=slantedred]
\definehighlight
[slantedred]
[style=slanted,
color=red]
\starttext
foo {\em bar}
\stoptext
You cannot update, you can try this instead of \definehighlight:
\definealternativestyle
,
]
\setupnotation[footnote][
color=green,
style=italic,
]
\starttext
foo \footnote{bar} baz
\stoptext
[0]
http://wiki.contextgarden.net/Unexpected_behavior#Footnotes:_The_Difference_between_.5Csetupnotation_and_.5Csetupnote
Regards
Philipp
--
() ascii ribbon campaign - against
lists (e.g. toc). To verify
that, execute this snippet:
\definehead[chapter][section]
\starttext
\chapter{foo} \section{bar} \chapter{baz}
\stoptext
Observe that \section and \chapter now share a counter.
Btw. to avoid confusion better create your own set of macros
(\definehead
test $a\fenced[bar]{\frac{1}{b}}c$ test \par
test $a\fenced[doublebar]{\frac{1}{b}}c$ test \par
test $a\fenced[bracket]{\frac{1}{b}}c$ test \par
test $a\fancybracket{\frac{1}{b}}c$ test \par
\stopbuffer
\getbuffer \setupmathfences [color=red] \getbuffer
\stoptext
Hans
/
wiki : http://contextgarden.net
___
Fine. In principal I've nothing against typing || for double bars
(even though people moving from TeX/LaTeX probably will be used to |
for one bar and \| for two bars). Some
bars
(even though people moving from TeX/LaTeX probably will be used to |
for one bar and \| for two bars). Some questions:
* Can one expect to get the right (that is the same as \Vert gives)
spacing by typing || (two bars) in ConTeXt in the future?
I think we need to find a between
/LaTeX probably will be used to |
for one bar and \| for two bars). Some questions:
hm I mean a single ‖ (unicode 2012, DOUBLE VERTICAL LINE) , not two ||, i.e.
a single unicode 0007C VERTICAL LINE inserted two times.
--
luigi
to be escapes for tex characters. In fact, if
one wants || in math then it's more natural to support || directly.
Except that braces actually need an escape, while bars don't. I don't
see any advantage of \| representing a single vertical bar, it only
breaks compatibility and helps confuse those who
$a\fenced[bar]{\frac{1}{b}}c$ test \par
test $a\fenced[doublebar]{\frac{1}{b}}c$ test \par
test $a\fenced[bracket]{\frac{1}{b}}c$ test \par
test $a\fancybracket{\frac{1}{b}}c$ test \par
\stopbuffer
\getbuffer \setupmathfences [color=red] \getbuffer
\stoptext
]
\definemathfence [bar] [\c!left=007C,\c!right=007C]
\definemathfence [doublebar] [\c!left=2016,\c!right=2016]
to which I'll add:
\definemathfence [angle] [\c!left=003C,\c!right=003E]
so, you can define
\definemathfence [bra] [left=007C,right=003E,command=yes]
\definemathfence [ket
Hi Thomas!
···date: 2013-02-15, Friday···from: thomas···
Dear list,
how can i put a normal # sign (as part of a \type{} environment) in
a footnote ? Until now i got or \# or nothing.
Have you tried encapsulation in a buffer?
\starttext
\startbuffer[containshash]\type{#bar
\startcaption Foo\stopcaption
\startcontent \externalfigure[.][height=2cm] \stopcontent
\startcaption Bar\stopcaption
\startcontent \externalfigure\stopcontent
\startcaption FooBar \stopcaption
. Philipps buffer solution seems to work with either
version.
\asciimode
\starttext
%% works
\startfootnote
foo \type{#bar}
\stopfootnote
%% fails
%% \startfootnote
%% foo
%% \starttyping
%%#bar
%% \stoptyping
%% \stopfootnote
\stoptext
Marco
signature.asc
Description: Digital signature
figure's
“end” stops the MetaPost run:
\startMPrun{foo}
beginfig(1);
fill fullcircle scaled 1cm withcolor blue;
endfig;
end; %% prevents the second graph from being processed
\stopMPrun
\startMPrun{bar}
beginfig(1);
fill unitsquare scaled 2cm withcolor red;
endfig;
end;
\stopMPrun
using MPrun fails, since the first figure's
“end” stops the MetaPost run:
\startMPrun{foo}
beginfig(1);
fill fullcircle scaled 1cm withcolor blue;
endfig;
end; %% prevents the second graph from being processed
\stopMPrun
\startMPrun{bar}
beginfig(1);
fill unitsquare scaled 2cm withcolor
]
and then in my document I can do
\chapter{Foo}
In this case, my PDF bookmark appears as 1 Foo. Furthermore, in the
document itself, the chapter heading shows as 1 Foo. I would like the
bookmark to just appear as Foo and I do not want ANY chapter/section
headings when I issue the \chapter{Foo} or \section{Bar
not want ANY chapter/section
headings when I issue the \chapter{Foo} or \section{Bar} commands. That is,
in the document, I would like those commands to basically JUST create the
bookmarks and have the bookmarks omit the chapter/section number.
Troy
Try this:
\setuphead[chapter,section
Hi Wolfgang et al.
The following example fails with
(virtual://annotation.noname.1)
! Undefined control sequence.
\usemodule [annotation]
\defineannotation [foo]
\starttext
\startfoo
Bar
\stopfoo
\stoptext
current version: 2013.01.21 18:18
%D \module
%D [ file=t-annotation,
%D
Am 22.01.2013 um 13:56 schrieb Marco Patzer home...@lavabit.com:
Hi Wolfgang et al.
The following example fails with
(virtual://annotation.noname.1)
! Undefined control sequence.
\usemodule [annotation]
\defineannotation [foo]
\starttext
\startfoo
Bar
\stopfoo
\stoptext
I put
-\currentcomponent}]
\startproduct *
\input ward \page
\component bar
\stopproduct
And bar.tex:
\startcomponent *
\input knuth \page
\stopcomponent
Hth
Philipp
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
\setupfootertexts[pagenumber][{\jobname-\currentcomponent}]
\startproduct *
\input ward \page
\component bar
\stopproduct
And bar.tex:
\startcomponent *
\input knuth \page
\stopcomponent
Hi Philipp,
that runs into the problem that the file name might contain
=]
%% footer:main file-component file
\setupfootertexts[pagenumber][{\jobname-\currentcomponent}]
\startproduct *
\input ward \page
\component bar
\stopproduct
And bar.tex:
\startcomponent *
\input knuth \page
\stopcomponent
Hi Philipp
foo.tex would look like:
\setuppagenumbering[location=]
%% footer:main file-component file
\setupfootertexts[pagenumber][{\jobname-\currentcomponent}]
\startproduct *
\input ward \page
\component bar
\stopproduct
And bar.tex:
\startcomponent *
\input
]
{\framed[width=2in]{foo}}
\stopsetups
bar
\stoptext
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 244 062 238
Fax: +420 244 461 038
section \in[sec:bar]. \par %% prints nothing
See section \about[sec:bar]. %% correct reference
\startsectionlevel [title=Foo]
\stopsectionlevel
\startsectionlevel [title=Bar, reference=sec:bar]
\stopsectionlevel
\stopsectionlevel
\stoptext
The wrong \in[invalid] reference receives
On 2013–01–07 Hans Hagen wrote:
buffers (or blocks)
Buffers apparently can't be used before the content is defined, but
it works for blocks (I never used them). Test:
\defineblock [bar]
\starttext
buf: \getbuffer[foo]
BBB
\startbuffer[foo]
buf: AAA
\stopbuffer
\useblocks
section \in[invalid]. \par %% prints ??
See section \in[sec:bar]. \par %% prints nothing
See section \about[sec:bar]. %% correct reference
\startsectionlevel [title=Foo]
\stopsectionlevel
\startsectionlevel [title=Bar, reference=sec:bar]
\stopsectionlevel
\stopsectionlevel
Am 07.01.2013 um 22:49 schrieb Marco Patzer home...@lavabit.com:
On 2013–01–07 Hans Hagen wrote:
buffers (or blocks)
Buffers apparently can't be used before the content is defined, but
it works for blocks (I never used them). Test:
\defineblock [bar]
\starttext
buf: \getbuffer
On 1/7/2013 10:49 PM, Marco Patzer wrote:
On 2013–01–07 Hans Hagen wrote:
buffers (or blocks)
Buffers apparently can't be used before the content is defined, but
it works for blocks (I never used them). Test:
\defineblock [bar]
\starttext
buf: \getbuffer[foo]
BBB
\startbuffer[foo
:
\defineblock [bar]
\starttext
buf: \getbuffer[foo]
BBB
\startbuffer[foo]
buf: AAA
\stopbuffer
\useblocks [bar]
DDD
\beginbar
block: CCC
\endbar
\stoptext
Is there a reason why the blocks favour begin/end instead of
start/stop? Looks weird somehow.
Blocks use begin
On 1/4/2013 7:51 AM, Otared Kavian wrote:
Dear Michael and Dalyoung,
In order to test again and reproduce the problem you encounter I removed my
texmf-cache and typeset the example: here is what I observe.
--- with \enablemode[lmmath] the \hbar appears and is a math italic « h » with
a bar
Dear Michael and Dalyoung,
In order to test again and reproduce the problem you encounter I removed my
texmf-cache and typeset the example: here is what I observe.
--- with \enablemode[lmmath] the \hbar appears and is a math italic « h » with
a bar in the top third of the vertical part
I would like for my section headers to have the following format:
Section 1 -- First Section
Section 2 -- Second Section
...
and I would also like for enumeration lists, for example
\startitemize[n]
\item Foo
\item Bar
\stopitemize
to look like
1-1 Foo
1-2 Bar
where the 1
\item Bar
\stopitemize
to look like
1-1 Foo
1-2 Bar
where the 1- is the section number in which the itemize resides.
Provide a minimal example next time.
\setuplabeltext[section=Section~]
\setuphead
[section]
[sectionstopper=~–~,
distance=0pt]
\setupitemgroup
[itemize
was empty}. Dear
Juliet was not in her balcony. Romeo contemplated the scene,
though about it a bit and decided he needed a drink. In the bar
he met Larissa, one of the wantons who hung out there. Five vodka
martinis later she looked just like Juliet to Romeo. Of course,
the fat
\bigquote{Foo}
\startbigquote
Bar
\stopbigquote
\stoptext
Marco
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman
:
\usemodule [annotation]
\defineannotation [bigquote] [style=bold]
\starttext
\bigquote{Foo}
\startbigquote
Bar
\stopbigquote
\stoptext
I have no idea, why it did not work, now it works! Sorry, must be a
small mistake by me.
I know you opinion on Minexamples, and in most cases
Test\inleft{marginal} Test Test Test Test Test \par
}
\startbar[underbar]
Test Test Test\footnote{footnote}~Test Test Test\par
Test%
\stopbar%
\inleft{marginal}%
\startbar[underbar]
Test Test Test Test Test \par
\stopbar
%\setupbars[unit=mm,rulethickness=1] bar
\input ward
\stopplacemargintext
\input knuth
\startplacemarginfigure [title=Bar]
\externalfigure [dum] [width=\rightmarginwidth]
\stopplacemarginfigure
\stoptext
You need to put the \placemargintext at the beginning of a
paragraph, otherwise it will cause an unwanted break.
Marco
Hi Wolfgang,
the annotation module broke within the last few betas.
\usemodule [annotation]
\starttext
\startannotation {Foo}
Bar
\stopannotation
\stoptext
Marco
___
If your question
Am 11.11.2012 um 13:18 schrieb Marco Patzer home...@lavabit.com:
Hi Wolfgang,
the annotation module broke within the last few betas.
\usemodule [annotation]
\starttext
\startannotation {Foo}
Bar
\stopannotation
\stoptext
Fixed.
Wolfgang
}}
\setcollector
[mycollector]
[preset=rightbottom]%% not recognized
%% [corner={right, bottom}, %% works
%% location={left, top}]
{\framed{Bar}}
\flushcollector [mycollector]
\starttext\null\stoptext
Marco
settings:
\startchapter
[title={First chapter}]
[foo=bar]
\stopchapter
In the setups this information is accessible as:
\structureuservariable{foo}
It's not documented in even the most recent command reference.
Welcome to ConTeXt :)
Be the first of your friends to add
.
Yep, but that's no TeX! Take a look at math-ini.mkiv, lines 873nn.
And what do you think the example will tell us?
\starttext
\enablemathpunctuation
$(1,2) (1, 2) (1{,}2) \hbox{foo, not bar}$
\stoptext
Wolfgang
it should render differently.
Everything TeX is supposed to ignore white spaces in math, AFAIK.
Yep, but that's no TeX! Take a look at math-ini.mkiv, lines 873nn.
And what do you think the example will tell us?
\starttext
\enablemathpunctuation
$(1,2) (1, 2) (1{,}2) \hbox{foo, not bar
Hello,
in the following example the space before the leading quotation mark (between 'f'
and 'g') is not colored:
\definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes]
\starttext
\MyBar{Abc def \quotation{ghi}.}
\stoptext
How to make the bar
Hi all,
this works in TL but not minimals:
·
\definefontfeature[textfigures] [onum=yes]
\definefontfeature[texligatures] [tlig=yes]
\starttext
\addff{textfigures} 1234567890
\addff{texligatures} foo---bar
\stoptext
{texligatures} foo---bar
\stoptext
·
With Context as of today and Luatex from minimals, I get lining
figures and a triple dash.
Did I miss something?
just a missing comma in a lua file, i'll upload an update
Hans
Hi,
I discovered some issues with the legend mechanism.
1) A newline after \startplacelegend fails:
\starttext
\startplacelegend
\startcontent
Foo
\stopcontent
\startcaption
Bar
\stopcaption
\stopplacelegend
\stoptext
2) location != top | bottom throws “Infinite glue
Am 04.10.2012 um 14:00 schrieb Marco Patzer home...@lavabit.com:
Hi,
I discovered some issues with the legend mechanism.
1) A newline after \startplacelegend fails:
\starttext
\startplacelegend
\startcontent
Foo
\stopcontent
\startcaption
Bar
\stopcaption
is already
defined”.
Can I use \define, or a related command, to define a command that
takes square-bracket arguments, like so:
\mycommand[...][...]
\def\mycommand
{\dodoubleempty\domycommand}
\def\domycommand [#1][#2]
{first: #1, second: #2}
\mycommand [foo] [bar]
\mycommand [foo][bar
[inleftmargin][strut=no]
\inleftmargin{\ifvmode yes\else no\fi}
bar
\stoptext \endinput
···
Best regards
Philipp
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
···date: 2012-09-16, Sunday···from: Hans Hagen···
On 16-9-2012 19:17, Philipp Gesang wrote:
Bug?
no, feature. job variables are just key/values and accessible at the
tex end (you store 'works too' in 'bar')
Ok, I wasn’t aware of this restriction.
if you want arbitrary data to be stores
On 17-9-2012 23:13, Philipp Gesang wrote:
···date: 2012-09-16, Sunday···from: Hans Hagen···
On 16-9-2012 19:17, Philipp Gesang wrote:
Bug?
no, feature. job variables are just key/values and accessible at the
tex end (you store 'works too' in 'bar')
Ok, I wasn’t aware of this restriction
job.variables.tobesaved.foo = { bar = { } }
-- job.variables.tobesaved.foo = { works now, bar = { } }
-- job.variables.tobesaved.foo = { bar = works too }
\stopluacode
\starttext foo \stoptext
···
I get this error
:
···
%% the commented lines work
\startluacode
job.variables.tobesaved.foo = { bar = { } }
-- job.variables.tobesaved.foo = { works now, bar = { } }
-- job.variables.tobesaved.foo = { bar = works too }
\stopluacode
\starttext foo \stoptext
Hi,
how can I refer to multiple elements at the same time?
\starttext
\startplacefigure [title=foo, reference=alpha]
\stopplacefigure
\startplacefigure [title=bar, reference=beta]
\stopplacefigure
\startplacefigure [title=bar, reference=gamma]
\stopplacefigure
\in{figure}[alpha,beta,gamma
Sep 13, 2012 um 12:15 PM schrieb Marco Patzer:
Hi,
how can I refer to multiple elements at the same time?
\starttext
\startplacefigure [title=foo, reference=alpha]
\stopplacefigure
\startplacefigure [title=bar, reference=beta]
\stopplacefigure
\startplacefigure [title=bar, reference
Hi,
how do I include the chapter number in the figure numbering?
The following example used to produce (as of November 2011) “Figure 1.1”.
A current beta yields merely “Figure 1”.
\starttext
\startchapter [title=Foo]
\startplacefigure [title=Bar]
\stopplacefigure
\stopchapter
1.1”.
A current beta yields merely “Figure 1”.
\starttext
\startchapter [title=Foo]
\startplacefigure [title=Bar]
\stopplacefigure
\stopchapter
\stoptext
Marco
___
If your question is of interest
}
\starttext
\setupTABLE [1] [width=2cm]
\bTABLE
\bTR
\bTD [background=DiagonalRule]
\DiagonalLabel{Foo}{Bar}
\eTD
\bTD Second \eTD
\bTD Third \eTD
\eTR
\bTR
\bTD Alpha \eTD
\bTD Beta \eTD
\bTD Gamma \eTD
\eTR
\eTABLE
\stoptext
. In
pseudocode:
\if \inpage.\iseven {
This page is even
}
\else {
This page is odd
}
How can I do that in ConTeXt?
http://www.ntg.nl/pipermail/ntg-context/2012/067632.html
Wolfgang
Will the plain text way still work?
\ifodd\pageno foo \else bar \fi
This works only correct
}
\else {
This page is odd
}
How can I do that in ConTeXt?
http://www.ntg.nl/pipermail/ntg-context/2012/067632.html
Wolfgang
Will the plain text way still work?
\ifodd\pageno foo \else bar \fi
--
John Culleton
)
\defineitemgroup[institm]
\setupinstitm[1][text, random]
\setupinstitm[1][symbol=2, indentnext=no, intro=yes]
\starttext
\startTEXpage[offset=5mm]
\bold{Contributions}
\startinstitm
\startitem Foo Pvt Ltd {\sc nsw} \stopitem
\startitem Bar Pvt Ltd {\sc
]
\setupinstitm[1][text, random]
\setupinstitm[1][symbol=2, indentnext=no, intro=yes]
\starttext
\startTEXpage[offset=5mm]
\bold{Contributions}
\startinstitm
\startitem Foo Pvt Ltd {\sc nsw} \stopitem
\startitem Bar Pvt Ltd {\sc vic} \stopitem
\startitem Baz Pvt Ltd
Hi :-)
I am trying to switch from LaTeX to ConTeXt and I'd like to add licensing
information to the generated PDF, just like what the hyperxmp package would
do for LaTeX.
Something like this:
\setupinteraction[
title={My Title},
author={Tobias Mueller},
keyword={foo bar baz
},
author={Tobias Mueller},
keyword={foo bar baz},
pdfcopyright={This work is licensed to the public under the Creative
Commons Attribution-Non-Commercial-Share Alike 3.0 Germany License.},
pdflicenseurl={http://creativecommons.org/licenses/by-nc-sa/3.0/de/}
]
\starttext
this:
\setupinteraction[
title={My Title},
author={Tobias Mueller},
keyword={foo bar baz},
pdfcopyright={This work is licensed to the public under the Creative
Commons Attribution-Non-Commercial-Share Alike 3.0 Germany License.},
pdflicenseurl={http://creativecommons.org/licenses/by-nc-sa
, the example pointed to using
typescripts. However, from the Aditya's posting I was encouraged that I could
use (my) default method of relying on simplefonts.
One last question stemming from the Jean-Luc Dumont's article on effective
communications: is there a way to turn off the interaction bar
\stopsection
\stopchapter
\startchapter [title=Bar]
\startsection [title=Second A]
\input knuth
\stopsection
\startsection [title=Second B]
\input knuth
\stopsection
\input zapf
\stopchapter
\stoptext
Marco
[...] if a typescript is not already
loaded.
One last question stemming from the Jean-Luc Dumont's article on effective
communications: is there a way to turn off the interaction bar in the
slides. I am using the simple 'Shaded' style where the interaction bars are
displayed as small circles along
... 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
,rulethickness=1]
bar\startbar[underbar]foo\stopbar bar\blank
\setupbars[unit=ex,rulethickness=1]
bar\startbar[underbar]foo\stopbar bar\blank
\setupbars[unit=pt,rulethickness=1]
bar\startbar[underbar]foo\stopbar bar\blank
\setupbars[unit=pt,rulethickness=10pt]
bar\startbar[underbar
:
···
\setuphead [section] [ page=yes, header=sectiontext, ]
\definetext [sectiontext] [header] [foo] [bar]
\starttext
\startsection[title=Foo] \input dawkins \stopsection
\stoptext \endinput
···
But I
example:
···
\setuphead [section] [ page=yes, header=sectiontext, ]
\definetext [sectiontext] [header] [foo] [bar]
\starttext
\startsection[title=Foo] \input dawkins \stopsection
\stoptext \endinput
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[unit=ex,rulethickness=1]
bar\startbar[underbar]foo\stopbar bar\blank
\setupbars[unit=pt
Hi,
You can customize the symbol appearing in your items, and set it to nothing…
\definesymbol[NoSymbol][{}]
\definesymbol[MySymbol][{$\heartsuit$}]
\starttext
\startitemize[Nosymbol]
\item foo
\item bar
\item baz
\stopitemize
\startitemize[MySymbol,packed]
\item foo
\item
. can’t be
used
in \edef, you can also make a expandable command (e.g. \def\foo{FOO})
unexpandable
by adding \unexpanded in front of the \def (e.g. \unexpanded\def\bar{BAR}).
Wolfgang
___
If your question is of interest
,here,none]{}{
\startxtable[header=repeat]
\startxtablehead
\startxrow
\startxcell Col1 \stopxcell
\startxcell Col2 \stopxcell
\startxcell Col3 \stopxcell
\stopxrow
\stopxtablehead
\startxtablebody
\startxrow
\startxcell foo \stopxcell
\startxcell bar \stopxcell
() -- won’t work before \starttext
newnode.lang = tex.language
--- second arg to node.hpack is width int
local hbox= node.hpack(newnode, 2*newnode.width)
node.write(hbox)
\stopluacode
bar
\stoptext
···8···
The first argument
Hi all,
there appears to be something special about how the key-value
list works with \setuplabeltext:
···
\setuplabeltext [
foo=bar, %% - comma not allowed here?
% foo=bar %% - works
]
\starttext
\labeltext{foo
On 11-6-2012 10:01, Philipp Gesang wrote:
Hi all,
there appears to be something special about how the key-value
list works with \setuplabeltext:
···
\setuplabeltext [
foo=bar, %% - comma not allowed here?
% foo=bar
:
···
\setuplabeltext [
foo=bar, %% - comma not allowed here?
% foo=bar %% - works
]
\starttext
\labeltext{foo}
\stoptext
···
Normally the trailing comma causes no trouble, but here it won’t
even compile
:
···
\setuplabeltext [
foo=bar, %% - comma not allowed here?
% foo=bar %% - works
]
\starttext
\labeltext{foo}
\stoptext
···
Normally the trailing comma causes no trouble
how the key-value
list works with \setuplabeltext:
···
\setuplabeltext [
foo=bar, %% - comma not allowed here?
% foo=bar %% - works
]
\starttext
\labeltext{foo}
\stoptext
[foo,bar,baz] ...
%% and the next directive has an empty result:
\rawprocessaction[##1][\currentstates]%
\fi
}%
}
\protect
\starttext
\definestates[mystates][foo,bar,baz]
%% At this point I’d like \mystates_states to contain (literally)
%% “1=foo,2=bar,3=baz,unknown=,default
%% ... here it still contains
%%\nstates 0 \rawprocesscommalist [foo,bar,baz] ...
%% and the next directive has an empty result:
\rawprocessaction[##1][\currentstates]%
\fi
}%
}
\protect
\starttext
\definestates[mystates][foo,bar,baz]
%% At this point I’d like
mapping so
%% we can use it with \processaction. But ...
% \show\currentstates
% \currentstates\par
%% ... here it still contains
%%\nstates 0 \rawprocesscommalist [foo,bar,baz] ...
%% and the next directive has an empty result:
\rawprocessaction[##1
%% we can use it with \processaction. But ...
% \show\currentstates
% \currentstates\par
%% ... here it still contains
%%\nstates 0 \rawprocesscommalist [foo,bar,baz] ...
%% and the next directive has an empty result:
\rawprocessaction[##1][\currentstates
701 - 800 of 1239 matches
Mail list logo