[NTG-context] Including section number in reference broken

2013-03-17 Thread Steffen Wolfrum
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

Re: [NTG-context] Include section number in reference

2013-03-16 Thread Steffen Wolfrum
][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

Re: [NTG-context] new trickery

2013-03-15 Thread Jonathan Barchi
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

Re: [NTG-context] new trickery

2013-03-15 Thread Hans Hagen
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

Re: [NTG-context] Reusing MP graphics

2013-03-12 Thread Hans Hagen
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

Re: [NTG-context] reStructuredText module

2013-03-12 Thread Bill Meahan
/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

Re: [NTG-context] reStructuredText module

2013-03-12 Thread Philipp Gesang
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

Re: [NTG-context] reStructuredText module

2013-03-12 Thread Aditya Mahajan
: · This is a paragraph. .. container:: xyzzy whatever foo **bar** baz This is another paragraph. · This will generate the output

[NTG-context] Reusing MP graphics

2013-03-11 Thread Marco Patzer
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

[NTG-context] vertical position in itemize and math

2013-03-01 Thread Mikael P. Sundqvist
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

Re: [NTG-context] A trouble with setupbodyfontenvironment

2013-02-28 Thread Marco Patzer
[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

Re: [NTG-context] A trouble with setupbodyfontenvironment

2013-02-28 Thread Alasdair McAndrew
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

Re: [NTG-context] footnotes what happened?

2013-02-24 Thread Philipp Gesang
, ] \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

Re: [NTG-context] How to make all heads \ss?

2013-02-22 Thread Philipp Gesang
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

[NTG-context] new tricks in beta

2013-02-20 Thread Hans Hagen
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

Re: [NTG-context] \| should give two || and not one

2013-02-19 Thread Mikael P. Sundqvist
/ 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

Re: [NTG-context] \| should give two || and not one

2013-02-19 Thread Keith J. Schultz
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

Re: [NTG-context] \| should give two || and not one

2013-02-19 Thread luigi scarso
/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

Re: [NTG-context] \| should give two || and not one

2013-02-19 Thread Mojca Miklavec
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

[NTG-context] beta

2013-02-19 Thread Hans Hagen
$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

Re: [NTG-context] beta

2013-02-19 Thread Hans Hagen
] \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

Re: [NTG-context] # sign in footnotes impossible ?

2013-02-16 Thread Philipp Gesang
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

Re: [NTG-context] Vertical alignment in combinations?

2013-02-16 Thread Marco Patzer
\startcaption Foo\stopcaption \startcontent \externalfigure[.][height=2cm] \stopcontent \startcaption Bar\stopcaption \startcontent \externalfigure\stopcontent \startcaption FooBar \stopcaption

Re: [NTG-context] # sign in footnotes impossible ?

2013-02-16 Thread Marco Patzer
. 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

[NTG-context] Processing MP graphics without interference

2013-02-01 Thread Marco Patzer
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

Re: [NTG-context] Processing MP graphics without interference

2013-02-01 Thread Aditya Mahajan
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

[NTG-context] PDF Bookmarks

2013-01-26 Thread Troy Henderson
] 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

Re: [NTG-context] PDF Bookmarks

2013-01-26 Thread Rogers, Michael K
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

[NTG-context] Annotation module fails

2013-01-22 Thread Marco Patzer
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

Re: [NTG-context] Annotation module fails

2013-01-22 Thread Wolfgang Schuster
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

Re: [NTG-context] Simple question: how do I get the filename in the footer

2013-01-20 Thread Philipp Gesang
-\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

Re: [NTG-context] Simple question: how do I get the filename in the footer

2013-01-20 Thread Gerben Wierda
\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

Re: [NTG-context] Simple question: how do I get the filename in the footer

2013-01-20 Thread Wolfgang Schuster
=] %% 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

Re: [NTG-context] Simple question: how do I get the filename in the footer

2013-01-20 Thread Gerben Wierda
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

[NTG-context] Layers, overlays

2013-01-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
] {\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

[NTG-context] Error markers for invalid section references

2013-01-07 Thread Marco Patzer
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

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Marco Patzer
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

Re: [NTG-context] Error markers for invalid section references

2013-01-07 Thread Hans Hagen
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

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Wolfgang Schuster
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

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Hans Hagen
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

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Jaroslav Hajtmar
: \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

Re: [NTG-context] hbar (and probably some other symbols) doesn't work in latest beta

2013-01-04 Thread Hans Hagen
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

Re: [NTG-context] hbar (and probably some other symbols) doesn't work in latest beta

2013-01-03 Thread Otared Kavian
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

[NTG-context] Section Header and Enumerations

2012-12-10 Thread Troy Henderson
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

Re: [NTG-context] Section Header and Enumerations

2012-12-10 Thread Wolfgang Schuster
\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

[NTG-context] Lettrines MKIV

2012-12-10 Thread Bill Meahan
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

Re: [NTG-context] Start\Stop with Wolfgangs Annotation Module

2012-11-30 Thread Marco Patzer
\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

[NTG-context] Start\Stop with Wolfgangs Annotation Module

2012-11-30 Thread H. Özoguz
: \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

Re: [NTG-context] underbar/margin text

2012-11-20 Thread luigi scarso
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

Re: [NTG-context] images and text stacked in the margin

2012-11-12 Thread Marco Patzer
\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

[NTG-context] Annotation module broken

2012-11-11 Thread Marco Patzer
Hi Wolfgang, the annotation module broke within the last few betas. \usemodule [annotation] \starttext \startannotation {Foo} Bar \stopannotation \stoptext Marco ___ If your question

Re: [NTG-context] Annotation module broken

2012-11-11 Thread Wolfgang Schuster
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

[NTG-context] Presets in collectors

2012-11-09 Thread Marco Patzer
}} \setcollector [mycollector] [preset=rightbottom]%% not recognized %% [corner={right, bottom}, %% works %% location={left, top}] {\framed{Bar}} \flushcollector [mycollector] \starttext\null\stoptext Marco

Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-08 Thread Marco Patzer
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

Re: [NTG-context] A problem with autopunctuation

2012-11-04 Thread Wolfgang Schuster
. 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

Re: [NTG-context] A problem with autopunctuation

2012-11-04 Thread Marcin Borkowski
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

[NTG-context] Underbar quotation

2012-10-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
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

[NTG-context] font features in beta

2012-10-17 Thread Philipp Gesang
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

Re: [NTG-context] font features in beta

2012-10-17 Thread Hans Hagen
{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

[NTG-context] Issues with the legend mechanism

2012-10-04 Thread Marco Patzer
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

Re: [NTG-context] Issues with the legend mechanism

2012-10-04 Thread Wolfgang Schuster
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

Re: [NTG-context] \define a command with square-bracket arguments

2012-09-27 Thread Marco Patzer
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

[NTG-context] [typo-mar.mkiv] \dosetupstrut - \setupstrut

2012-09-22 Thread Philipp Gesang
[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

Re: [NTG-context] [.tuc] oddity when storing a table

2012-09-17 Thread Philipp Gesang
···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

Re: [NTG-context] [.tuc] oddity when storing a table

2012-09-17 Thread Hans Hagen
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

[NTG-context] [.tuc] oddity when storing a table

2012-09-16 Thread Philipp Gesang
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

Re: [NTG-context] [.tuc] oddity when storing a table

2012-09-16 Thread Hans Hagen
: ··· %% 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

[NTG-context] Referring to multiple elements

2012-09-13 Thread 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=gamma] \stopplacefigure \in{figure}[alpha,beta,gamma

Re: [NTG-context] Referring to multiple elements

2012-09-13 Thread Andreas Mang
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

[NTG-context] Include chapter number in figure numbering

2012-09-03 Thread Marco Patzer
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

Re: [NTG-context] Include chapter number in figure numbering

2012-09-03 Thread Sietse Brouwer
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

Re: [NTG-context] Diagonal rule in table (was: Divided cells and bullet points in tables)

2012-08-31 Thread Marco Patzer
} \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

Re: [NTG-context] How to know in which page I'm?

2012-08-21 Thread Wolfgang Schuster
. 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

Re: [NTG-context] How to know in which page I'm?

2012-08-20 Thread john Culleton
} \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

Re: [NTG-context] Bug in \startitemize[randomize]

2012-08-05 Thread Hans Hagen
) \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

[NTG-context] Bug in \startitemize[randomize]

2012-08-04 Thread Aditya Mahajan
] \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

[NTG-context] Added licensing information to PDF

2012-08-01 Thread Tobias Mueller
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

Re: [NTG-context] Added licensing information to PDF

2012-08-01 Thread Philipp Gesang
}, 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

Re: [NTG-context] Added licensing information to PDF

2012-08-01 Thread Peter Rolf
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

Re: [NTG-context] simpleslides help needed

2012-07-18 Thread Pavneet Arora
, 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

[NTG-context] Local TOC after each chapter title (was: Re: Need help)

2012-07-18 Thread Marco
\stopsection \stopchapter \startchapter [title=Bar] \startsection [title=Second A] \input knuth \stopsection \startsection [title=Second B] \input knuth \stopsection \input zapf \stopchapter \stoptext Marco

Re: [NTG-context] simpleslides help needed

2012-07-18 Thread Aditya Mahajan
[...] 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

Re: [NTG-context] setupbars

2012-07-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... 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

Re: [NTG-context] setupbars

2012-07-10 Thread Hans Hagen
,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

Re: [NTG-context] beta

2012-07-09 Thread Philipp Gesang
: ··· \setuphead [section] [ page=yes, header=sectiontext, ] \definetext [sectiontext] [header] [foo] [bar] \starttext \startsection[title=Foo] \input dawkins \stopsection \stoptext \endinput ··· But I

Re: [NTG-context] beta

2012-07-09 Thread Hans Hagen
example: ··· \setuphead [section] [ page=yes, header=sectiontext, ] \definetext [sectiontext] [header] [foo] [bar] \starttext \startsection[title=Foo] \input dawkins \stopsection \stoptext \endinput

Re: [NTG-context] setupbars

2012-07-09 Thread Hans Hagen
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

Re: [NTG-context] List without bullets

2012-06-29 Thread Otared Kavian
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

Re: [NTG-context] setupinteraction and macroexpansion

2012-06-19 Thread Wolfgang Schuster
. 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

[NTG-context] Strange page breaks

2012-06-18 Thread Andreas Schneider
,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

Re: [NTG-context] \box0 to Lua

2012-06-18 Thread Philipp Gesang
() -- 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

[NTG-context] labeltext assignment

2012-06-11 Thread Philipp Gesang
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

Re: [NTG-context] labeltext assignment

2012-06-11 Thread Hans Hagen
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

Re: [NTG-context] labeltext assignment

2012-06-11 Thread Philipp Gesang
: ··· \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

Re: [NTG-context] labeltext assignment

2012-06-11 Thread Wolfgang Schuster
: ··· \setuplabeltext [ foo=bar, %% - comma not allowed here? % foo=bar %% - works ] \starttext \labeltext{foo} \stoptext ··· Normally the trailing comma causes no trouble

[NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]

2012-06-11 Thread Philipp Gesang
how the key-value list works with \setuplabeltext: ··· \setuplabeltext [ foo=bar, %% - comma not allowed here? % foo=bar %% - works ] \starttext \labeltext{foo} \stoptext

[NTG-context] expansion and \processaction

2012-06-07 Thread Philipp Gesang
[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

Re: [NTG-context] expansion and \processaction

2012-06-07 Thread Wolfgang Schuster
%% ... 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

Re: [NTG-context] expansion and \processaction

2012-06-07 Thread Philipp Gesang
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

Re: [NTG-context] expansion and \processaction

2012-06-07 Thread Wolfgang Schuster
%% 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

<    3   4   5   6   7   8   9   10   11   12   >