Re: [NTG-context] optional lpaths to merge \xmlsetsetup?

2015-05-11 Thread Hans Hagen
On 5/10/2015 9:40 PM, Pablo Rodriguez wrote: Hans, many thanks for the explanation with \xmlsetup. I have one more question for today concerning lpaths. I have the following commands: \xmlsetsetup{\xmldocument} {span[@label]} {xml:logo} \xmlsetsetup{\xmldocument

Re: [NTG-context] Changing font for math function

2015-05-11 Thread Otared Kavian
(n|x|)$, then $\weaklim_{n\to\infty}\phi_{n} = 0$. \stoptext % end weaklim.tex it helps to define the label \setupmathlabeltext[en][weaklim=wlim] - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Changing font for math function

2015-05-11 Thread Hans Hagen
% end weaklim.tex it helps to define the label \setupmathlabeltext[en][weaklim=wlim] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel

Re: [NTG-context] optional lpaths to merge \xmlsetsetup?

2015-05-11 Thread Pablo Rodriguez
{\xmldocument} {span[@label or contains(@class,'tex\letterpercent-logo')]} {xml:logo} Many thanks for your reply, Hans. This is what I intended and everything is clear now. Many thanks for your help, Pablo -- http://www.ousia.tk

[NTG-context] optional lpaths to merge \xmlsetsetup?

2015-05-10 Thread Pablo Rodriguez
Hans, many thanks for the explanation with \xmlsetup. I have one more question for today concerning lpaths. I have the following commands: \xmlsetsetup{\xmldocument} {span[@label]} {xml:logo} \xmlsetsetup{\xmldocument} {span[contains(@class,'tex\letterpercent

[NTG-context] right align (flushright) bibliography list labels

2015-04-29 Thread Csikos Bela
[database={bibfile}] \setuppublications[alternative=apa,refcommand=num,sorttype=cite,numbering=yes,autohang=no,numbercommand=\numcom] \starttext \completepublications[criterium=all] \stoptext % end code But this has no effect on label alignment. I also tried, based on this post, http://www.ntg.nl

Re: [NTG-context] how to set figure label ?

2015-04-17 Thread Harald Koenig
On Apr 16, Alan BRASLAU wrote: I much prefer the syntax \startplacefigure [reference=fig:,location={here,force},title={}] \externalfigure[]... \stopplacefigure Depending on the strange macros that you want to use, this should generally work. I find that this gives one many more

[NTG-context] how to set figure label ?

2015-04-16 Thread Harald Koenig
Hi, how can I set a label for a figure without \placefigure[][fig:...]{} for some figures I use strange macros -- and at those places I get errors when calling \placefigure BUT I'd like to check the page numbers of those places using \doifreferencefoundelse{fig:bild\the\bildnr

Re: [NTG-context] how to set figure label ?

2015-04-16 Thread Alan BRASLAU
On Thu, 16 Apr 2015 17:27:17 +0200 Harald Koenig koe...@tat.physik.uni-tuebingen.de wrote: how can I set a label for a figure without \placefigure[][fig:...]{} for some figures I use strange macros -- and at those places I get errors when calling \placefigure BUT I'd like to check

Re: [NTG-context] Request: Numbercommand key for \setupcaption

2015-04-11 Thread Wolfgang Schuster
anymore to put a symbol after the float counter without misusing the label texts. For example the following example should print LEFT 1 RIGHT: Dummy figure as figure caption but it shows only LEFT 1 RIGHT Dummy figure without the color after “RIGHT”. begin example

Re: [NTG-context] Request: Numbercommand key for \setupcaption

2015-04-11 Thread Hans Hagen
labels for the number the numberstopper key can’t be used anymore to put a symbol after the float counter without misusing the label texts. For example the following example should print LEFT 1 RIGHT: Dummy figure as figure caption but it shows only LEFT 1 RIGHT Dummy figure without

Re: [NTG-context] caption setup

2015-04-09 Thread Wolfgang Schuster
correct. When I use Wolfgang's example, I get the following: attachment file caption-example-2.pdf. I also tried different settings for caption label, here is the code: \starttext \setupcaption[figure][numberstopper={. ábra

Re: [NTG-context] caption setup

2015-04-09 Thread Csikos Bela
. I also tried different settings for caption label, here is the code: \starttext \setupcaption[figure][numberstopper={. ábra.}] \setuplabeltext[figure={}] Code: \verbatim{\setupcaption[figure][numberstopper={. ábra.}]} \par \verbatim

Re: [NTG-context] caption setup

2015-04-09 Thread Wolfgang Schuster
correct. When I use Wolfgang's example, I get the following: attachment file caption-example-2.pdf. I also tried different settings for caption label, here is the code: \starttext \setupcaption[figure][numberstopper={. ábra

Re: [NTG-context] Customising referencing failures (\in, etc)

2015-03-27 Thread Wolfgang Schuster
Am 27.03.2015 um 14:22 schrieb robin.kirk...@csiro.au: Folks, Is there a way to customise the ?? that is substituted in the output when a reference does not work out (nonexistent reference label, etc)? I’d like to make it more obvious for proofreading (like making it red, putting

Re: [NTG-context] Customising referencing failures (\in, etc)

2015-03-27 Thread Robin.Kirkham
Am 27.03.2015 um 14:22 schrieb robin.kirk...@csiro.au: Is there a way to customise the ?? that is substituted in the output when a reference does not work out (nonexistent reference label, etc)? I’d like to make it more obvious for proofreading (like making it red, putting a marker

Re: [NTG-context] Help with \setuplist number width (for appendices)

2015-03-25 Thread Robin.Kirkham
either a width with some stretch so the list layout will adapt, or somehow be able to specify a different width for the appendix entries. Any help appreciated, Robin \setuplist[chapter][ width=12mm, % but want 30mm for appendices label=yes, alternative=c] \define[1

Re: [NTG-context] Help with \setuplist number width (for appendices)

2015-03-23 Thread Wolfgang Schuster
layout will adapt, or somehow be able to specify a different width for the appendix entries. Any help appreciated, Robin \setuplist[chapter][ width=12mm, % but want 30mm for appendices label=yes, alternative=c] \define[1]\ChapterlistNumber {\dowithnextbox {\ifdim

[NTG-context] Help with \setuplist number width (for appendices)

2015-03-23 Thread Robin.Kirkham
. Any help appreciated, Robin \setuplist[chapter][ width=12mm, % but want 30mm for appendices label=yes, alternative=c] \setuplabeltext[appendix=Appendix\space] \starttext \completecontent \chapter{One} \chapter{Two} \startappendices \chapter{First} \chapter{Second

Re: [NTG-context] problem with interaction and TOC

2015-03-22 Thread Pablo Rodriguez
On 03/22/2015 12:46 PM, Wolfgang Schuster wrote: Am 22.03.2015 um 11:53 schrieb Pablo Rodriguez: [...] \startbuffer[demo] doc h1span label=contextConTeXt/a/h1 span label=contextConTeXt/a span label=texTeX/a span label=latexLaTeX/a /doc \stopbuffer

Re: [NTG-context] problem with interaction and TOC

2015-03-22 Thread Wolfgang Schuster
was this: \startbuffer[demo] doc h1span label=contextConTeXt/a/h1 span label=contextConTeXt/a span label=texTeX/a span label=latexLaTeX/a /doc \stopbuffer You’re mixing tags, each span ends with /a. \setupinteraction[state=start] \startxmlsetups

Re: [NTG-context] problem with interaction and TOC

2015-03-22 Thread Pablo Rodriguez
} % \getvalue{\ascii}} \chapter{\WORD{ConTeXt}} so, \ascii is made undefined at some time Many thanks for your reply, Hans. I’m afraid that my ignorance prevents me for understanding your reply. What I was trying to solve was this: \startbuffer[demo] doc h1span label=contextConTeXt/a/h1

[NTG-context] Exporting highlights

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد
{ display : inline } delimitedblock { display : block } subsentence:before, subsentence:after { content : \2014 ; } subsentence { display : inline } /* label : mixed */ /* number : mixed */ /* float: display */ /* floatcaption : mixed */ /* floatlabel : inline

Re: [NTG-context] \setupcaptions question

2015-03-10 Thread Wolfgang Schuster
is used for the internal counter of split floats, e.g. when a numbered table is split over several tables and you get numbers label „Table 3.a” etc. I see. I think workaround will suffice for the present document, thank you. I will do that (and hope for a timely fix so that I can revert

[NTG-context] Update text variables inside metapost

2015-03-07 Thread DesdeChaves
q; draw vertical; label(textext( \MPstring{labelcima} ), center cima); label(textext( \MPstring{labelesquerda} ), center esquerda); label(textext( \MPstring{labeldireita} ), center direita); \stopuniqueMPgraphic \starttext \placefigure[center, nonumber]{}{ \Bolha[size=6cm]{$C_m$ (g/dm\high

[NTG-context] Error when using TikZ with the library datavisualization

2015-02-26 Thread Alias 1
          \tikzdatavisualizationset{\tikz@dv@axis/label/.expanded=$\noexpand\mathit{\pgfkeysvalueof{\tikz@dv@axis/attribute}}$}% 675         \else 676           \tikzdatavisualizationset{\tikz@dv@axis/label={#1}}% 677         \fi 678       }, 679       label/.default=\tikz@lib@dv@auto@attribute, 680       % 681

Re: [NTG-context] Error when using TikZ with the library datavisualization

2015-02-26 Thread Hans Hagen
/tikzlibrarydatavisualization.code.tex: ! Missing number, treated as zero to be read again ^ l.682 {\catcode`\^^ M=\active% 672 \def\pgf@temp{#1}% 673 \ifx\pgf@temp\tikz@lib@dv@auto@attribute% 674 \tikzdatavisualizationset{\tikz@dv@axis/label/.expanded=$\noexpand\mathit

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-17 Thread John Kitzmiller
) ; draw thetextext.lft (M, z) ; \stopMPpage Hello Fabrice, labeloffset does not work with Hans’ code above using ‘draw thetextext’ for labels. It works with the label macro: \startMPpage[offset=2mm] path p, q, r ; pair z ; p := unitsquare scaled 4cm ; z := point 3.6 of p ; q := z--urcorner p ; r

[NTG-context] \setupcaptions question

2015-02-13 Thread joerg van den hoff
I want to use `numberstopper' for figure caption customization like so: \setupcaptions[numberstopper={:}] this works fine for the caption itself (i.e. I get, e.g. Figure 1: caption text) _but_ references to the figure via a defined label such as [fig:example] in the body text do include

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread Otared Kavian
customization like so: \setupcaptions[numberstopper={:}] this works fine for the caption itself (i.e. I get, e.g. Figure 1: caption text) _but_ references to the figure via a defined label such as [fig:example] in the body text do include the numberstopper, too, which is highly undesirable

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread Otared Kavian
: \setupcaptions[numberstopper={:}] this works fine for the caption itself (i.e. I get, e.g. Figure 1: caption text) _but_ references to the figure via a defined label such as [fig:example] in the body text do include the numberstopper, too, which is highly undesirable in my view, since, e.g

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread Wolfgang Schuster
to the figure via a defined label such as [fig:example] in the body text do include the numberstopper, too, which is highly undesirable in my view, since, e.g., ... see Figure 1: for an example. ... should rather read ... see Figure 1 for an example. ... i.e. the numberstopper should

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread j. van den hoff
={:}] this works fine for the caption itself (i.e. I get, e.g. Figure 1: caption text) _but_ references to the figure via a defined label such as [fig:example] in the body text do include the numberstopper, too, which is highly undesirable in my view, since, e.g., ... see Figure 1: for an example

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread j. van den hoff
...@googlemail.com: I want to use `numberstopper' for figure caption customization like so: \setupcaptions[numberstopper={:}] this works fine for the caption itself (i.e. I get, e.g. Figure 1: caption text) _but_ references to the figure via a defined label such as [fig:example] in the body text

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread Wolfgang Schuster
customization like so: \setupcaptions[numberstopper={:}] this works fine for the caption itself (i.e. I get, e.g. Figure 1: caption text) _but_ references to the figure via a defined label such as [fig:example] in the body text do include the numberstopper, too, which is highly undesirable

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread j. van den hoff
several tables and you get numbers label „Table 3.a” etc. I see. I think workaround will suffice for the present document, thank you. I will do that (and hope for a timely fix so that I can revert to numberstopper soon...) regards, joerg Wolfgang -- Using Opera's revolutionary email

[NTG-context] \setupcaptions question

2015-02-12 Thread j. van den hoff
I want to use `numberstopper' for figure caption customization like so: \setupcaptions[numberstopper={:}] this works fine for the caption itself (i.e. I get, e.g. Figure 1: caption text) _but_ references to the figure via a defined label such as [fig:example] in the body text do include

Re: [NTG-context] Setup for appendices: a bunch of questions

2015-02-06 Thread Mojca Miklavec
of it. 2.) How can I define a different width for appendices in TOC (to reserve enough space for the word Appendix)? I use \setuplist [section] [width=10mm,numberstyle=\os\bf,pagestyle=\os,label=yes] but I would like to use width=27mm for sections inside \startappendices

Re: [NTG-context] Setup for appendices: a bunch of questions

2015-02-05 Thread Wolfgang Schuster
to indent the title entries but unnumbered chapter are still wrong aligned. 2.) How can I define a different width for appendices in TOC (to reserve enough space for the word Appendix)? I use \setuplist [section] [width=10mm,numberstyle=\os\bf,pagestyle=\os,label=yes] but I would

[NTG-context] Setup for appendices: a bunch of questions

2015-02-04 Thread Mojca Miklavec
\setuplist [section] [width=10mm,numberstyle=\os\bf,pagestyle=\os,label=yes] but I would like to use width=27mm for sections inside \startappendices ... \stopappendices than for regular sections. Is there any workaround? 3.) For appendices I want to set \setuphead [chapter] [number

[NTG-context] Citing a PhD dissertation

2015-02-01 Thread Idris Samawi Hamid ادريس سماوي حامد
' for doctoral degrees [See the Merriam-Webster Style Manual or even google 'phd thesis or dissertation' for lots of confirmation of this]. As development of a new mkiv module continues, I would suggest changing this to the standard usage. In the meantime: How can I change the label in the current

Re: [NTG-context] Citing a PhD dissertation

2015-02-01 Thread Idris Samawi Hamid ادريس سماوي حامد
changing this to the standard usage. In the meantime: How can I change the label in the current bibliography system? I tried the following (also attached): \starttext \setuppublications[alternative=apa] \setupbtxlabeltext [en] [apa:phdthesis={Doctoral dissertation}] \startsetups

Re: [NTG-context] Where is error in my code?

2015-01-29 Thread Aditya Mahajan
On Wed, 28 Jan 2015, Keith Schultz wrote: label(\sometxt{Cn},origin) withcolor white; Note that in MkIV, this can be shortened to label(Cn, origin) withcolor white; No need to wrap the strings around \sometxt{...} or btex ... etex. Aditya

Re: [NTG-context] Where is error in my code?

2015-01-28 Thread Mojca Miklavec
On Wed, Jan 28, 2015 at 5:49 AM, Van Dung Tang nguyen...@gmail.com wrote: I edit 1 file metafun with follow: \startMPenvironment \usetypescript[times][texnansi] \switchtobodyfont[times,10pt] \stopMPenvironment \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn

[NTG-context] Where is error in my code?

2015-01-28 Thread Van Dung Tang
I edit 1 file metafun with follow: \startMPenvironment \usetypescript[times][texnansi] \switchtobodyfont[times,10pt] \stopMPenvironment \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn},origin) withcolor white; \stopMPpage After run context and recieve 1 picture

[NTG-context] Where is error in my code?

2015-01-28 Thread Van Dung Tang
I edit 1 file metafun follow: \startMPenvironment \usetypescript[times][texnansi] \switchtobodyfont[times,10pt] \stopMPenvironment \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn},origin) withcolor white; \stopMPpage Ngu-Hanh.pdf Description: Adobe PDF document

Re: [NTG-context] Where is error in my code?

2015-01-28 Thread Hans Hagen
On 1/28/2015 5:49 AM, Van Dung Tang wrote: I edit 1 file metafun with follow: \startMPenvironment \usetypescript[times][texnansi] \switchtobodyfont[times,10pt] \stopMPenvironment \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn},origin) withcolor white; \stopMPpage

Re: [NTG-context] Where is error in my code?

2015-01-28 Thread Keith Schultz
Hi, From the looks of it you are using legacy code! For one ConTeXt uses UTF you no need texansi encoding. In Mkiv all you need is \startext \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn},origin) withcolor white; \stopMPpage \stoptext If you want

Re: [NTG-context] ConTeXt logo in XML

2015-01-26 Thread Wolfgang Schuster
for your help, Hans uses for the documentation of the Lua code logo label=context/ to print the ConTeXt logo, to do so the following setup is used (copied from x-ldx.mkiv): \startxmlsetups ldx:logo \uppercasestring\xmlatt{#1}{label}\xmlatt{#1}{name}\to\ascii \ifx\ascii\empty\else

Re: [NTG-context] ConTeXt logo in XML

2015-01-26 Thread Wolfgang Schuster
Am 26.01.2015 um 16:19 schrieb Pablo Rodriguez oi...@gmx.es: On 01/26/2015 02:40 PM, Wolfgang Schuster wrote: [...] Hans uses for the documentation of the Lua code logo label=context/ to print the ConTeXt logo, to do so the following setup is used (copied from x-ldx.mkiv

Re: [NTG-context] ConTeXt logo in XML

2015-01-26 Thread Pablo Rodriguez
On 01/26/2015 02:40 PM, Wolfgang Schuster wrote: [...] Hans uses for the documentation of the Lua code logo label=context/ to print the ConTeXt logo, to do so the following setup is used (copied from x-ldx.mkiv): \startxmlsetups ldx:logo \uppercasestring\xmlatt{#1}{label}\xmlatt{#1

Re: [NTG-context] Positioning an arrow between two values (Metapost)

2015-01-20 Thread Troy Henderson
\starttext \startMPcode u:=1cm ; path p, q ; p=fullsquare scaled u ; q=fullsquare scaled u shifted (4u,-2u) ; draw p ; draw q ; drawarrow center p--center q ; label(btex $5$ etex,center p) ; label(btex $-2 $ etex,center q) ; \stopMPcode \stoptext How about something like below

[NTG-context] Positioning an arrow between two values (Metapost)

2015-01-17 Thread Fabrice Couvreur
like in the code below. \starttext \startMPcode u:=1cm ; path p, q ; p=fullsquare scaled u ; q=fullsquare scaled u shifted (4u,-2u) ; draw p ; draw q ; drawarrow center p--center q ; label(btex $5$ etex,center p) ; label(btex $-2 $ etex,center q) ; \stopMPcode \stoptext Best regards, Fabrice

[NTG-context] figure caption question

2015-01-12 Thread j. van den hoff
references than include the numberstopper `:' in the reference (see Figure 1:) which is really awkward. so how can this be solved (adjust the numberstopper in the caption without affecting how the figure label/number appears in cross-references)? regarding the caption width it seems

[NTG-context] misalignment of equation numbers

2014-12-27 Thread j. van den hoff
the label `(2)' of the second equation is not aligning properly with the right margin of the body text (and the previous equation label). what am I doing wrong here? joerg -- Using Opera's revolutionary email client: http://www.opera.com/mail

Re: [NTG-context] useattachment

2014-12-23 Thread Andrea Valle
Replying to myself the problem seems related to the use of the ex label. this works \define[1]\Ex{\externalfigure[code/#1] \useattachment[#1][code/#1.scd] \attachment[#1] } (so this does not work anymore http://wiki.contextgarden.net/Verbatim_text#Embedding_the_source_code http

Re: [NTG-context] Paragraph numbering

2014-12-12 Thread MANUEL GONZALEZ SUAREZ
\subsubject, etc. What I like to do is number one paragraph in middle of the text, with the possibility of making a reference to it, with no spaces before or after. Something like this: [1] Text of the first paragraph. [2] Text of the second paragraph ... Should I use the \label or another

[NTG-context] Paragraph numbering

2014-12-11 Thread MANUEL GONZALEZ SUAREZ
a reference to it, with no spaces before or after. Something like this: [1] Text of the first paragraph. [2] Text of the second paragraph ... Should I use the \label or another command? Thanks. ___ If your question

Re: [NTG-context] Paragraph numbering

2014-12-11 Thread Wolfgang Schuster
to do is number one paragraph in middle of the text, with the possibility of making a reference to it, with no spaces before or after. Something like this: [1] Text of the first paragraph. [2] Text of the second paragraph ... Should I use the \label or another command? \starttext

Re: [NTG-context] Pass a lua table to metapost

2014-12-08 Thread Hans Hagen
On 12/7/2014 8:25 PM, DesdeChaves wrote: I would like to pass the lua table keys and values to metapost. In the keys i have information about the paths names and in the values i have information about the label that should be draw in the center of each path (unitsquare). In my code (see attach

Re: [NTG-context] Pass a lua table to metapost

2014-12-08 Thread DesdeChaves
GMT+00:00 Hans Hagen pra...@wxs.nl: On 12/7/2014 8:25 PM, DesdeChaves wrote: I would like to pass the lua table keys and values to metapost. In the keys i have information about the paths names and in the values i have information about the label that should be draw in the center of each

Re: [NTG-context] MP/Lua binding (was: Pass a lua table to metapost)

2014-12-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
(mp.print(\#document.variables.labels)) : b[i] = unitsquare xscaled dx yscaled dy shifted (0, (i-1)*dy); draw b[i]; label(lua(mp.quoted(document.variables.labels[ decimal i ])), center b[i]); endfor \stopMPpage \stoptext is there a doc where to study MP/Lua

Re: [NTG-context] MP/Lua binding

2014-12-08 Thread Hans Hagen
; dx = 4.4cm; dy = 0.53cm; path b[]; for i=1 upto lua(mp.print(\#document.variables.labels)) : b[i] = unitsquare xscaled dx yscaled dy shifted (0, (i-1)*dy); draw b[i]; label(lua(mp.quoted(document.variables.labels[ decimal i ])), center b[i]); endfor

[NTG-context] Pass a lua table to metapost

2014-12-07 Thread DesdeChaves
I would like to pass the lua table keys and values to metapost. In the keys i have information about the paths names and in the values i have information about the label that should be draw in the center of each path (unitsquare). In my code (see attach) the table in question

[NTG-context] Tikz calendar translation

2014-12-03 Thread DesdeChaves
test code \usemodule[tikz] \usetikzlibrary[calendar] \language[pt] \starttext \tikz \calendar [dates=2014-09-01 to 2015-04-31, month list,month label left,month yshift=1.25em] if (Sunday) [black!50] % GROUP 1 if (between=2012-08-09 and 2012-08-12)[orange] if (between=2012-06-01 and 2012-06

Re: [NTG-context] Create an item marker with a counter with Metapost

2014-11-10 Thread Aditya Mahajan
); pickup pencircle scaled \visualcounterparameter\c!rulethickness ; fill randomcircle withcolor green; % Can be made configurable draw randomcircle withcolor blue; % Can be made configurable label (countertext, origin); fi; endgroup; \stopuseMPgraphic \protect \definevisualcounter

Re: [NTG-context] Strange behavior with the command \color[]{}

2014-11-06 Thread Hans Hagen
, label={[name=-label]below:#2}] (-front) {#1}; \node [cube face] (-top) at (-front.north west) [anchor=south west, xslant=1, yscale=1/3] {}; \node [cube face] (-side) at (-front.south east) [anchor=south west, yslant=1, xscale=1/3] {}; }} } \starttext \startsetups[table:initialize

Re: [NTG-context] Strange behavior with the command \color[]{}

2014-11-06 Thread Fabrice
}}, pics/cube/.style args={#1 with #2}{ code={ \node [cube face, label={[name=-label]below:#2}] (-front) {#1}; \node [cube face] (-top) at (-front.north west) [anchor=south west, xslant=1, yscale=1/3] {}; \node [cube face] (-side) at (-front.south east) [anchor=south west, yslant=1, xscale

Re: [NTG-context] Strange behavior with the command \color[]{}

2014-11-06 Thread luigi scarso
=white, }, face color/.style={cube face/.append style={ball color=#1}}, pics/cube/.style args={#1 with #2}{ code={ \node [cube face, label={[name=-label]below:#2}] (-front) {#1}; \node [cube face] (-top) at (-front.north west) [anchor=south west, xslant=1, yscale=1/3] {}; \node [cube

Re: [NTG-context] Strange behavior with the command \color[]{}

2014-11-06 Thread luigi scarso
}{ code={ \node [cube face, label={[name=-label]below:#2}] (-front) {#1}; \node [cube face] (-top) at (-front.north west) [anchor=south west, xslant=1, yscale=1/3] {}; \node [cube face] (-side) at (-front.south east) [anchor=south west, yslant=1, xscale=1/3] {}; }} } \starttext

Re: [NTG-context] Strange behavior with the command \color[]{}

2014-11-06 Thread Hans Hagen
size=1cm, outer sep=0pt, draw=white, thick, line join=round, shading=ball, text=white, }, face color/.style={cube face/.append style={ball color=#1}}, pics/cube/.style args={#1 with #2}{ code={ \node [cube face, label={[name=-label]below:#2}] (-front) {#1}; \node

Re: [NTG-context] Strange behavior with the command \color[]{}

2014-11-05 Thread Fabrice
/.style={cube face/.append style={ball color=#1}}, pics/cube/.style args={#1 with #2}{ code={ \node [cube face, label={[name=-label]below:#2}] (-front) {#1}; \node [cube face] (-top) at (-front.north west) [anchor=south west, xslant=1, yscale=1/3] {}; \node [cube face] (-side

Re: [NTG-context] clipping in metafun has weird side effects

2014-11-02 Thread Hans Hagen
the problem, or I am just too stupid to implement your solution. Note also that in the modified example the context output coincides with the mptopdf output if one draws the label before calling test the second time. (I marked the position in the metapost file.) Sorry for probably getting on your nerves

[NTG-context] Strange behavior with the command \color[]{}

2014-11-02 Thread Fabrice Couvreur
={ \node [cube face, label={[name=-label]below:#2}] (-front) {#1}; \node [cube face] (-top) at (-front.north west) [anchor=south west, xslant=1, yscale=1/3] {}; \node [cube face] (-side) at (-front.south east) [anchor=south west, yslant=1, xscale=1/3] {}; }} } \starttikzpicture \pic

Re: [NTG-context] clipping in metafun has weird side effects

2014-11-02 Thread Tobias Columbus
the problem indeed. But using only the modified clip either does not solve the problem, or I am just too stupid to implement your solution. Note also that in the modified example the context output coincides with the mptopdf output if one draws the label before calling test the second time. (I

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Tobias Columbus
to implement your solution. Note also that in the modified example the context output coincides with the mptopdf output if one draws the label before calling test the second time. (I marked the position in the metapost file.) Sorry for probably getting on your nerves

[NTG-context] \writetolist in mkiv

2014-10-12 Thread Jano Kula
} \ManualSubsection{\recurselevel-2} \stopsection \stopchapter} \stoptext % stop minimal example Longer Story Predefined \startchapter|section inserts titledata in TUC file: [titledata]={ [label]=chapter, [title]=Chapter, }, ... [titledata]={ [label]=section, [title

Re: [NTG-context] Permissible characters in ConTeXt reference labels

2014-09-18 Thread Mark Szepieniec
...@gmail.com mailto:mszep...@gmail.com wrote: I'm trying to fix a problem in pandoc (see https://github.com/jgm/pandoc/pull/1589) where it doesn't properly sanitize the reference labels in ConTeXt output, causing errors during compilation when a label contains '#' for example. Note

Re: [NTG-context] Permissible characters in ConTeXt reference labels

2014-09-17 Thread Mark Szepieniec
...@gmail.com wrote: I'm trying to fix a problem in pandoc (see https://github.com/jgm/pandoc/pull/1589) where it doesn't properly sanitize the reference labels in ConTeXt output, causing errors during compilation when a label contains '#' for example. Note that this sanitizing is needed in addition

Re: [NTG-context] Permissible characters in ConTeXt reference labels

2014-09-17 Thread Hans Hagen
when a label contains '#' for example. Note that this sanitizing is needed in addition to the regular backslash escaping used for control characters: '\#' is still illegal in a label for example. In the sanitizer function I'm writing, I'd like to properly escape all illegal

Re: [NTG-context] Permissible characters in ConTeXt reference labels

2014-09-17 Thread Aditya Mahajan
, causing errors during compilation when a label contains '#' for example. Note that this sanitizing is needed in addition to the regular backslash escaping used for control characters: '\#' is still illegal in a label for example. (LaTeX label) = (ConTeXt reference). What Mark

[NTG-context] Permissible characters in ConTeXt reference labels

2014-09-08 Thread Mark Szepieniec
I'm trying to fix a problem in pandoc (see https://github.com/jgm/pandoc/pull/1589) where it doesn't properly sanitize the reference labels in ConTeXt output, causing errors during compilation when a label contains '#' for example. Note that this sanitizing is needed in addition to the regular

Re: [NTG-context] Bussproofs or derivation trees

2014-09-05 Thread Trond Thorbjørnsen
Hello again, Temporary I am using a combination of framed and align, see code under. Not a good solution, but solves my current need. Is there an easy way to make an inline baseline shift? I want to make a label for each line, shifted down half a line. -Trond \startlinecorrection \def\borderdt

Re: [NTG-context] Problem with embedding code TikZ code

2014-08-30 Thread Joshua Krämer
On 2014-08-29, 20:22, Fabrice Couvreur wrote: In the code below, I do not understand why the label Arbre 2 does not have the color you want, that is to say the same as the label Arbre 1. Thank you. I do not know why it does not work, but this is how it works: \draw [text=H1prime, font=\bf

[NTG-context] Problem with embedding code TikZ code

2014-08-29 Thread Fabrice Couvreur
In the code below, I do not understand why the label Arbre 2 does not have the color you want, that is to say the same as the label Arbre 1. Thank you. \usemodule[tikz] \usetikzlibrary[calc] \definecolor[A2][c=0.60, m=0.00, y=0.00, k=0.10] \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00

Re: [NTG-context] Leave out reference to page if on the same page?

2014-08-01 Thread Gerben Wierda
documented feature ... in beta: % tests/mkiv/pagestate-001.tex \useMPlibrary[dum] \setuppagenumbering [alternative=doublesided] % new: \setupreferencing[doublesided=no] % old: \somewhere{backward}{foreward}[label] % new: \someplace{preceding}{backward}{current}{foreward}{following

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-26 Thread Hans Hagen
[doublesided=no] % old: \somewhere{backward}{foreward}[label] % new: \someplace{preceding}{backward}{current}{foreward}{following}[label] % old: \atpage[#label] % new: \doifcheckedpagestate{label}{preceding}{backward}{current}{foreward}{following}{otherwise} \starttext \dorecurse {20} { \placefigure

Re: [NTG-context] \textreference

2014-07-26 Thread Hans Hagen
but they still can have different rendering (currently the rendering is aliased). Maybe we should just alias \reference to \textreference by now as I don't see that part change (the distinction was kept when mkiv was still new). So in fact we have just two commands now. (\setreference[label

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-25 Thread Hans Hagen
/pagestate-001.tex \useMPlibrary[dum] \setuppagenumbering [alternative=doublesided] % new: \setupreferencing[doublesided=no] % old: \somewhere{backward}{foreward}[label] % new: \someplace{preceding}{backward}{current}{foreward}{following}[label] % old: \atpage[#label] % new

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-25 Thread Gerben Wierda
documented feature ... in beta: % tests/mkiv/pagestate-001.tex \useMPlibrary[dum] \setuppagenumbering [alternative=doublesided] % new: \setupreferencing[doublesided=no] % old: \somewhere{backward}{foreward}[label] % new: \someplace{preceding}{backward}{current}{foreward}{following

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-25 Thread Rik Kabel
feature ... in beta: % tests/mkiv/pagestate-001.tex \useMPlibrary[dum] \setuppagenumbering [alternative=doublesided] % new: \setupreferencing[doublesided=no] % old: \somewhere{backward}{foreward}[label] % new: \someplace{preceding}{backward}{current}{foreward}{following}[label] % old

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-25 Thread Hans Hagen
. yet another sparsely documented feature ... in beta: % tests/mkiv/pagestate-001.tex \useMPlibrary[dum] \setuppagenumbering [alternative=doublesided] % new: \setupreferencing[doublesided=no] % old: \somewhere{backward}{foreward}[label] % new: \someplace{preceding}{backward}{current

[NTG-context] Three questions about descriptions

2014-07-25 Thread Matthias Weber
[Introduction] Tufte or Knuth? \outline[Snack] Chocolate Cake \outline[Discussion] Knuth or Tufte? \outline[Open End] Bear and wine \stoptext However, instead of the above I would like to — have the result “packed”, i.e. without lines between the descriptions — have a stopper (“:”) after the label — have

Re: [NTG-context] Three questions about descriptions

2014-07-25 Thread Rik Kabel
— have a stopper (“:”) after the label — have the text of the description begin after the stopper and not at a fixed indentation (distance=…) How do I do that? Thanks, Matthias The following works, but I suspect that there may be a better way to get the packing. \define[1]\outlinehead{#1

Re: [NTG-context] Three questions about descriptions

2014-07-25 Thread Matthias Weber
End] Bear and wine \stoptext However, instead of the above I would like to — have the result “packed”, i.e. without lines between the descriptions — have a stopper (“:”) after the label — have the text of the description begin after the stopper and not at a fixed indentation (distance

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-24 Thread Otared Kavian
/msg71889.html for more on smartref. (The primary limitation in my use is that it assumes that a following argument, as in \smartref{preceding}{following}[label], should follow the at page number text, thus disabling the use of the following text to provide a subfigure label. Thus, one ends up

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-23 Thread Rik
quite well. See the list message at http://www.mail-archive.com/ntg-context%40ntg.nl/msg71889.html for more on smartref. (The primary limitation in my use is that it assumes that a following argument, as in \smartref{preceding}{following}[label], should follow the /at page number/ text, thus

Re: [NTG-context] State of documentation of ConTeXt?

2014-07-15 Thread Yuri Teixeira
with collaboration/feedback, core people should do it. It is important that reviewing and check marking the new edits be done by some authoritative group, so that the community knows what to trust, what should work as documented so that we can report real issues. It is important to label the information

Re: [NTG-context] State of documentation of ConTeXt?

2014-07-15 Thread Hans Hagen
issues. It is important to label the information as reviwed and up to date, and to which version it applies, mkii/mkiv If this structure is put on top of the context garden, some labeling is needed to distinguish the extra pages from the structural docs pages. the problem there is that it needs some

[NTG-context] sections without numbering

2014-07-13 Thread Philipp Gesang
are predefined. \setuphead [subject] [before=Kapitel~] \starttext \startsubject [title=foo] \input knuth \stopsubject \stoptext If you wish for the styles of the label and the title to match, you’ll have to assign them manually: \definealternativestyle [subjectstyle] [\italic \tfd

<    1   2   3   4   5   6   7   8   9   10   >