Re: [NTG-context] Can MetaPost draw directly datapoints from a data file?

2017-12-28 Thread Hans Hagen
ine in io.lines("molecule.xyz <http://molecule.xyz>") do    local a, b, c, d, e = string.match(line, '(%a+)%s*%s*(%S+)%s*%s*(%S+)%s*%s*(%S+)%s*%s*(%S+)')    Elemento[i]= a    x[i]= tonumber(b)    y[i]= tonumber(c)    z[i]= tonumber(d)    carga[i]= tonumber(e)    context("label(\&qu

[NTG-context] Can MetaPost draw directly datapoints from a data file?

2017-12-28 Thread Jorge Manuel
g.match(line, '(%a+)%s*%s*(%S+)%s*%s*(%S+)%s*%s*(%S+)%s*%s*(%S+)')   Elemento[i]= a   x[i]= tonumber(b)   y[i]= tonumber(c)   z[i]= tonumber(d)   carga[i]= tonumber(e)   context("label(\"%s\", (%0.6f u, %0.6f u));", a, x[i],y[i])   i=i+1 endcontext("\\stopMPcode”)\s

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Wim Neimeijer
> characters > > > > MWE > > > > file cjk.asy > > > > Label L; > > L = Label("\\begin{CJK}{UTF8}{gbsn}{\\CJKfamily{gbsn}여보세요 \\end{CJK}"); > > label(L); > > shipout(); > > > > main file > > === > > \starttext

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread luigi scarso
characters > > MWE > > file cjk.asy > > Label L; > L = Label("\\begin{CJK}{UTF8}{gbsn}{\\CJKfamily{gbsn}여보세요 \\end{CJK}"); > label(L); > shipout(); > > main file > === > \starttext > \typefile[C][]{cjk.asy} > \stoptext Assuming a fo

[NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Wim Neimeijer
I am writing a manual where I include code snippets with typefile. Some of the code snippets contain text in Japanese but don't appear in the PDF document as typefile seems to skip the Japanese characters MWE file cjk.asy Label L; L = Label("\\begin{CJK}{UTF8}{gbsn}{\\CJKfamily

Re: [NTG-context] framed with titles

2017-11-05 Thread Jean-Pierre Delange
ramed text \defineframedtext [MyFrame] [before={\blank[3*big]}, after={\blank[5*big]}, frame=off, background=MyFrame, %width=\textwidth, width=max, height=fit, style={\setupbodyfont[9pt]}] % Defining a label \definelabel [Definition]

Re: [NTG-context] framed with titles

2017-11-05 Thread Jean-Pierre Delange
nd=MyFrame, %width=\textwidth, width=max, height=fit, style={\setupbodyfont[9pt]}] % Defining a label \definelabel [Definition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b; picture p; %p := textext.rt("\white\Definition"); p := textext.rt("\

[NTG-context] Tagging nested itemize with interaction

2017-10-31 Thread Christoph Reller
Dear Hans, Consider the following MWE with nested multi-column itemize and item label: \setuptagging[state=start] \setupinteraction[state=start] \starttext \startitemize[n] \item[label] First \startitemize[a, columns] \item Second \item Third \stopitemize \stopitemize\crlf Bla \in{Item

[NTG-context] Strange behavior with TikZ

2017-10-05 Thread Fabrice Couvreur
= middle, axis y line = middle, axis line style = thick, major grid style=Mycolor, minor grid style=Mycolor, grid=both, xtick={-2,...,2}, ytick={-4,...,3}, extra x ticks={-3,3}, extra x tick label={\null}, extra y ticks={-5,4}, extra y tick label={\null}, extra tick style={tick style={draw

Re: [NTG-context] hiding page number in postponed makeup page

2017-09-21 Thread Hans Hagen
\getbuffer[makeup] \stoptext It is also weird that real page 10 gets a page label. Default pagestate is stop (behavior is correct only on the first page [makeup on last page also fails]). postponed flushing happens inside the output routine and therefore has some limitations (other solutions

Re: [NTG-context] hiding page number in postponed makeup page

2017-09-21 Thread Henning Hraban Ramm
(at > least, with the page number): That’s why I’m asking. > It is also weird that real page 10 gets a page label. Default pagestate > is stop (behavior is correct only on the first page [makeup on last page > also fails]). I struggle with page numbers on/off all the time... Greetlin

Re: [NTG-context] hiding page number in postponed makeup page

2017-09-20 Thread Pablo Rodriguez
t real page 10 gets a page label. Default pagestate is stop (behavior is correct only on the first page [makeup on last page also fails]). Pablo -- http://www.ousia.tk ___ If your question is of interest to others a

Re: [NTG-context] Border matrix

2017-08-28 Thread Fabrice L
e to resolve, to make a border matrix > with brackets. In MKII, I was using a macro, found somewhere, which > works great, but no longer works; here is the macro: > > % Border matrix: first line and column are label > \catcode`\@=11\relax > \newdimen\p@renwd > \font\tenex=cmex10 \setb

Re: [NTG-context] Border matrix

2017-08-28 Thread Hans Hagen
is the macro: % Border matrix: first line and column are label \catcode`\@=11\relax \newdimen\p@renwd \font\tenex=cmex10 \setbox0=\hbox{\tenex B} \p@renwd=\wd0 \def\bbordermatrix#1{\begingroup \m@th \setbox\z@\vbox{\def\cr{\crcr\noalign{\kern2\p@\global\let\cr\endline}}%     \ialign{$##$\hfil\kern2\p

[NTG-context] Border matrix

2017-08-28 Thread Fabrice L
and column are label \catcode`\@=11\relax \newdimen\p@renwd \font\tenex=cmex10 \setbox0=\hbox{\tenex B} \p@renwd=\wd0 \def\bbordermatrix#1{\begingroup \m@th \setbox\z@\vbox{\def\cr{\crcr\noalign{\kern2\p@\global\let\cr\endline}}% \ialign{$##$\hfil\kern2\p@\kern\p@renwd&\thinspace\hfil$##$\

Re: [NTG-context] Pdf info with Lua/Ctx API

2017-08-16 Thread Wolfgang Schuster
false, ["controls"]=false, ["conversion"]=false, ["display"]=false, ["format"]=false, ["height"]=false, ["label"]=false, ["mask"]=false, ["name"]="x:/Users/MMi/Akce/I-6_Krusovice.DSP-ZDS/Admin/Jedn

Re: [NTG-context] Pdf info with Lua/Ctx API

2017-08-16 Thread Procházka Lukáš Ing .
ting table: " close source> level 3, order 8, name 'd://Lukas/ConTeXt/Styles/PxLetter.sty' table={ ["request"]={ ["arguments"]=false, ["cache"]=false, ["color"]=false, ["controls"]=false, ["conversion"]=false,

[NTG-context] Couple of questions

2017-07-27 Thread Gerion Entrup
xt ``` 4. Captions of combinations The wiki shows, how to completely autolabel figures in a combination with mkiv. Is there a way to simply prefix the label with a), b), c),...? Another related question: Is there a way to define the width and align of the labels of a combination? 5. Numbering o

Re: [NTG-context] Odd numbering of pp. in PDF viewer

2017-07-27 Thread Sebastian L.
,right}] \placebookmarks[chapter,title,section,subsection][chapter,section] Add \setupmakeup[pagestate=start] in this document and page labels in the PDF document will be fine (SumatraPDF is buggy here, but other PDF viewers with page label support will be fine). Cheers, Pablo

Re: [NTG-context] Position of standard footnotes that are set-up in floats

2017-06-12 Thread Sebastian L.
f-view that you want a figure caption (or figure label) refer to a footnote? Although there can be different schools of thought on the editorial style of figures and figure captions, I would find it confusing for a floating object to use a non-local footnote. My suggestion (as a sometimes editor)

Re: [NTG-context] Position of standard footnotes that are set-up in floats

2017-06-12 Thread Alan BRASLAU
e (maybe some day) Are you sure from a stylistic point-of-view that you want a figure caption (or figure label) refer to a footnote? Although there can be different schools of thought on the editorial style of figures and figure captions, I would find it confusing for a floating object to us

Re: [NTG-context] High-level command for translated names

2017-04-30 Thread Wolfgang Schuster
cannot be accessed via \labeltext. One can access them through Lua but that doesn't seem so elegant. The problem are the ["hidden"]=true, Perhaps Hans can remove these in beta. I don't see a point in having these hidden. The problem is that \chapter uses the chapter label i

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
rc := fullsquare xyscaled (50mm, 50mm); color col; col := (1.,.1,.1); drawoptions(withcolor \MPcolor{tred}) ; draw rc withpen pencircle scaled (2.5mm) ; label(textext("\setupbodyfont[sans,35mm] \color[tred]{Test}"), (80mm, 50mm)) ; \stopuseMPgraphic \defineoverlay[T][\useMPgrap

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Thomas A. Schmitz
in ConTeXt and use it for both text and drawing? Like this: \definecolor [tred] [r=1,g=0,b=0,t=.2,a=1] \startuseMPgraphic{T} newpath rc; rc := fullsquare xyscaled (50mm, 50mm); color col; col := (1.,.1,.1); drawoptions(withcolor \MPcolor{tred}) ; draw rc withpen pencircle scaled (2.5mm)

Re: [NTG-context] description renders unintended results

2017-03-04 Thread Otared Kavian
=flushright, location=hanging, width=broad, margin=1cm ]\starttext\startdescr{Para} This is a shorter item label, and some text that talks about it. The text is wrapped into a paragraph, with successive lines indented. This is another paragraph under the "Para" item. \startdesc

Re: [NTG-context] labeltext via lua

2017-02-17 Thread Andreas Schneider
Am 2017-02-16 17:13, schrieb Hans Hagen: On 2/16/2017 3:06 PM, Andreas Schneider wrote: `context.labeltext` would immediately print the label, so I cannot use the value within lua. My workaround would be a crossover between lua and tex, but that results in the bookmark having the wrong label

Re: [NTG-context] labeltext via lua

2017-02-16 Thread Hans Hagen
On 2/16/2017 3:06 PM, Andreas Schneider wrote: Am 2017-02-16 14:43, schrieb Hans Hagen: because additional ones live at the tex end why not use context.labeltext etc? Hans `context.labeltext` would immediately print the label, so I cannot use the value within lua. My workaround would

Re: [NTG-context] labeltext via lua

2017-02-16 Thread Andreas Schneider
Am 2017-02-16 14:43, schrieb Hans Hagen: because additional ones live at the tex end why not use context.labeltext etc? Hans `context.labeltext` would immediately print the label, so I cannot use the value within lua. My workaround would be a crossover between lua and tex

Re: [NTG-context] URL styling in btx bibliography

2017-02-04 Thread Alan Braslau
s in > > serif and oldstyle (the document defaults) for urls provided by > > bibtex url entries. > > The bibliography specifications use the command \hyphenatedurl{} to > flush the url (or doi) field. > > Alan Hans, This should probably be replaced by \url[]? Ala

[NTG-context] columnsetspan extra line

2016-12-29 Thread Mikael P. Sundqvist
? %%% Start of example \usemodule[newcolumnsets] \setuplayout[ grid=yes, ] \showgrid \definecolumnset[example][n=2] \definecolumnsetspan[intro][n=2,after=,before=,] \define[1]\mychapnum{% \startuseMPgraphic{chapnum} label(btex {\bf #1} etex scaled 12, (0.5*OverlayWidth,0.5*OverlayHeight)) withcolor

Re: [NTG-context] Bug in \usetikzlibrary{datavisualization}?

2016-10-07 Thread Florian Leupold
ithout \unprotect\protect tex error > tex error on line 682 in file /Users/Florian/context/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.code.tex: ! Missing number, treated as zero ^ l.682 {\catcode`\^^ M=\active%

Re: [NTG-context] page range reference (how to compare references)

2016-09-23 Thread MF
I found a solution, but it's tricky (and there's no check on reference existence in structures.references.collected). \directlua{   function userdata.printrange(singular, plural, label) local coll_ref = structures.references.collected[""] local pagestart = coll_ref[label

Re: [NTG-context] Trace references

2016-09-08 Thread Hans Hagen
age XX undefined on input line YY. LaTeX Warning: Label `foo' multiply defined. LaTeX Warning: There were undefined references. LaTeX Warning: There were multiply-defined labels. Is there something similar in ConTeXt? The wiki is a little outdated in that regard as \tracereferences does not exist a

Re: [NTG-context] Trace references

2016-09-08 Thread Henri Menke
Warning: Reference 'foo' on page XX undefined on input line YY. >> LaTeX Warning: Label `foo' multiply defined. >> LaTeX Warning: There were undefined references. >> LaTeX Warning: There were multiply-defined labels. >> >> Is there something similar in ConTeXt? The wik

Re: [NTG-context] Trace references

2016-09-08 Thread Wolfgang Schuster
Henri Menke <mailto:henrime...@gmail.com> 8. September 2016 um 15:35 Dear list, when using cross referencing in my document, LaTeX has the nice warning messages LaTeX Warning: Reference 'foo' on page XX undefined on input line YY. LaTeX Warning: Label `foo' multiply defined. LaTeX W

[NTG-context] Trace references

2016-09-08 Thread Henri Menke
Dear list, when using cross referencing in my document, LaTeX has the nice warning messages LaTeX Warning: Reference 'foo' on page XX undefined on input line YY. LaTeX Warning: Label `foo' multiply defined. LaTeX Warning: There were undefined references. LaTeX Warning: There were multiply

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Hans Hagen
label={\null}, extra y ticks={-3,3}, extra y tick label={\null}, extra tick style={tick style={draw=none}}, xlabel=$x$,ylabel=$y$, every axis x label/.style={ at={(ticklabel* cs:1.01)}, anchor=west, }, every axis y label/.style={ at={(ticklabel* cs:1.01

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Fabrice Couvreur
={-3,5}, extra x tick label={\null}, extra y ticks={-3,3}, extra y tick label={\null}, extra tick style={tick style={draw=none}}, xlabel=$x$,ylabel=$y$, every axis x label/.style={ at={(ticklabel* cs:1.01)}, anchor=west, }, every axis y label/.style

Re: [NTG-context] ntg-context Digest, Vol 145, Issue 61

2016-07-21 Thread Hans Hagen
ocessed file starts with: ++ \definehead [intro] [chapter] \setuphead [intro] [number=no,alternative=middle,style=\tfa \bf] \startcomponent TD_Ch0-Intro.tex \intro[bookmark=,label=,list={Introduction},marking=,reference=ch:Intro,title={Introduction}] shouldn't that be

Re: [NTG-context] ntg-context Digest, Vol 145, Issue 61

2016-07-21 Thread Robert Blackstone
gt;> l.191 \stopintro >> + >> >> The processed file starts with: >> ++ >> \definehead [intro] [chapter] >> \setuphead [intro] [number=no,alternative=middle,style=\tfa \bf] >> >> \startcomponent TD

[NTG-context] What is wrong with \stopintro?

2016-07-21 Thread Robert Blackstone
processed file starts with: ++ \definehead [intro] [chapter] \setuphead [intro] [number=no,alternative=middle,style=\tfa \bf] \startcomponent TD_Ch0-Intro.tex \intro[bookmark=,label=,list={Introduction},marking=,reference=ch:Intro,title={Introduction}] +++

Re: [NTG-context] What is wrong with \stopintro?

2016-07-21 Thread Hans Hagen
... l.191 \stopintro + The processed file starts with: ++ \definehead [intro] [chapter] \setuphead [intro] [number=no,alternative=middle,style=\tfa \bf] \startcomponent TD_Ch0-Intro.tex \intro[bookmark=,label=,list={Introduction},marking=,reference=ch:In

Re: [NTG-context] How to extend btx rendering?

2016-07-18 Thread Henri Menke
ment level? >> >> Hi Henri, >> >> eprint and archivePrefix are in no ways standard to bibtex. >> >> But really, an eprint is NOT an *article* until it gets published, and >> then it should be cited as an article and not as a preprint. >> >> >&

Re: [NTG-context] How to extend btx rendering?

2016-07-18 Thread Henri Menke
ategories.article.optional` from the document level? > > Hi Henri, > > eprint and archivePrefix are in no ways standard to bibtex. > > But really, an eprint is NOT an *article* until it gets published, and > then it should be cited as an article and not as a preprint. >

Re: [NTG-context] How to extend btx rendering?

2016-07-18 Thread Alan BRASLAU
s a preprint. What you are looking for is a way to attach a label "arXiv:1607.04624" to the url = {http://arxiv.org/abs/1607.04624}, similarly to how a doi is handled. I can easily add the field arxiv to the "aps" rendering as it is well-defined. I can also add the fie

[NTG-context] \defineparagraphs

2016-07-08 Thread kitz
attached. Thanks! John \defineparagraphs[Mypar][n=2] \setupparagraphs[Mypar][1][width=0.5\textwidth] % label subquestions (a, b, c, etc) with answerblanks \defineconversionset[myitemize][n,a][n] % define the answerblank in right margin \define\ansblank {\inright{\simplealignedbox{2em

Re: [NTG-context] Buffered metapost function freezes random numbers

2016-05-27 Thread Hans Hagen
in -- r*dir(90-minute*6) cutends (0, 1.5len); fill fullcircle scaled .75len; draw unitsquare xscaled 3.2r yscaled 1.5r shifted B; label("\tfb I (A)", 1.2r*up+1.6r*right) withcolor red; draw fullcircle scaled 2len shifted A; draw fullcircle scaled 2len shifted C; \stopMPcode \stopbuffer

[NTG-context] Buffered metapost function freezes random numbers

2016-05-25 Thread DesdeChaves
1.5len); fill fullcircle scaled .75len; draw unitsquare xscaled 3.2r yscaled 1.5r shifted B; label("\tfb I (A)", 1.2r*up+1.6r*right) withcolor red; draw fullcircle scaled 2len shifted A; draw fullcircle scaled 2len shifted C; \stopMPcode \stopbuffer \startbuffer[programa] \pla

Re: [NTG-context] issue with # in url

2016-05-09 Thread Hans Hagen
http://a.b/c#d;>http://a.b/c \stopbuffer \starttext \startxmlsetups xml:initialize \xmlsetsetup{#1}{p|doc|a}{xml:*} \xmlsetsetup{\xmldocument}{span[@label]}{xml:logo} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetup

[NTG-context] issue with # in url

2016-05-08 Thread Pablo Rodriguez
topbuffer \starttext \startxmlsetups xml:initialize \xmlsetsetup{#1}{p|doc|a}{xml:*} \xmlsetsetup{\xmldocument}{span[@label]}{xml:logo} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \start

Re: [NTG-context] Struggling with new version of ConTeXt

2016-03-04 Thread Willi Egger
t;> >> \stoptext >> >> With ConTeXt ver: 2016.03.03 23:31 MKIV beta I get a fatal error: >> >> ...test.tex: ! Extra }, or forgotten \endgroup >> >> \strc_counters_register_component_list ...focus >> }}titledata{label{\detokeniz... >>

Re: [NTG-context] Struggling with new version of ConTeXt

2016-03-04 Thread Hans Hagen
] \stopplacefigure} \starttext \Illustration{cow}{A Frisian cow} \stoptext With ConTeXt ver: 2016.03.03 23:31 MKIV beta I get a fatal error: ...test.tex: ! Extra }, or forgotten \endgroup \strc_counters_register_component_list ...focus }}titledata{label{\detokeniz

[NTG-context] Struggling with new version of ConTeXt

2016-03-03 Thread Willi Egger
\Illustration{cow}{A Frisian cow} \stoptext With ConTeXt ver: 2016.03.03 23:31 MKIV beta I get a fatal error: ...test.tex: ! Extra }, or forgotten \endgroup \strc_counters_register_component_list ...focus }}titledata{label{\detokeniz... \strc_counters_register_component ...}{#3}{#4}{#9}\else \ifx

Re: [NTG-context] Vim snippets

2016-02-22 Thread Aditya Mahajan
.et."\\stopindented\\stophead" " Solution exec "Snippet soln \\startsolution".st. et."\\stopsolution" " For specific project exec "Snippet FL \\FIELD ".bt exec "Snippet AL \\ALPHABET ".bt exec "Snippet FS \\FSPACE ".bt exec

Re: [NTG-context] new error in Context-Metapost

2016-02-17 Thread Hans Hagen
,0)(0,B)&\cr} $ \stopsetups \startMPpage label("\setup[dif-1]",origin); \stopMPpage \stoptext tex error > tex error on line 9 in file /Users/hansm/Documents/TeX/Test-tex/cases/cases.tex: ! Missing $ inserted $ \endgroup \math_fenced_fenced_

[NTG-context] new error in Context-Metapost

2016-02-17 Thread Meer, Hans van der
r} $ \stopsetups \startMPpage label("\setup[dif-1]",origin); \stopMPpage \stoptext tex error > tex error on line 9 in file /Users/hansm/Documents/TeX/Test-tex/cases/cases.tex: ! Missing $ inserted $ \endgroup \math_fenced_fenced_

[NTG-context] wrong xml char handling

2016-02-09 Thread Pablo Rodriguez
doc|a}{xml:*} \xmlsetsetup{\xmldocument}{span[@label]}{xml:logo} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\par \stopxmlsetups \startxmlsetups xm

Re: [NTG-context] wrong xml char handling

2016-02-09 Thread Hans Hagen
ext \startxmlsetups xml:initialize \xmlsetsetup{#1}{p|doc|a}{xml:*} \xmlsetsetup{\xmldocument}{span[@label]}{xml:logo} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xm

Re: [NTG-context] Usage of label in startsection etc.

2016-01-26 Thread Wolfgang Schuster
Jan U. Hasecke <mailto:juh+ntg-cont...@mailbox.org> 22. Januar 2016 um 16:54 Hi list, on this page http://wiki.contextgarden.net/Command/startsection the argument "label" is not explained. Since the argument "reference" is used for the text references \in, \at and \

[NTG-context] Numbering and module visualcounter

2016-01-25 Thread Fabrice Couvreur
20); pickup pencircle scaled \visualcounterparameter\c!rulethickness ; fill randomcircle withcolor green; % Can be made configurable label (countertext, origin); fi; endgroup; \stopuseMPgraphic \protect \definevisualcounter [fuzzyitem] [randomcircle] [counter=\getvalue

Re: [NTG-context] Numbering and module visualcounter

2016-01-25 Thread Wolfgang Schuster
newpath randomcircle; randomcircle := fullcircle xyscaled(diameter, diameter) randomized (diameter/20); pickup pencircle scaled \visualcounterparameter\c!rulethickness ; fill randomcircle withcolor green; % Can be made configurable label (countertext, origin);

Re: [NTG-context] Numbering and module visualcounter

2016-01-25 Thread Fabrice Couvreur
extext("\white\visualcounterparameter{\c!max\c!text}"); > > newnumeric diameter; > diameter := 1.9 * max(bbwidth(max_countertext), > bbheight(max_countertext)); > > newpath randomcircle; > randomcircle := fullcircle xyscaled(diameter, diameter) r

[NTG-context] Usage of label in startsection etc.

2016-01-22 Thread Jan U. Hasecke
Hi list, on this page http://wiki.contextgarden.net/Command/startsection the argument "label" is not explained. Since the argument "reference" is used for the text references \in, \at and \about I wonder what "lab

[NTG-context] is there a bug in the startappendices commend?

2016-01-21 Thread Matthias Wende
[section] [appendixlabel=appendix] \setuplist [section] [label=yes] \starttext \title{Contents} \placelist[title,chapter,section][criterium=all,alternative=c] \chapter{First Chapter} \section{First Section} \chapter{Second Chapter} \startappendices \chapter

Re: [NTG-context] is there a bug in the startappendices commend?

2016-01-21 Thread Wolfgang Schuster
simple example. - \setuplabeltext [appendix=Appendix~] \setuphead [chapter] [page=no] \setuphead [section] [appendixlabel=appendix] \setuplist [section] [label=yes] \starttext \startfrontmatter \title{Contents} \placelist[title,chapter,section][criterium=all,alterna

[NTG-context] MetaPost and externalfigure() REQUEST FOR COMMENTS

2016-01-10 Thread Alan BRASLAU
ot;\input knuth") ; \stopMPcode that can be substituted for the traditional MP \startMPcode label("Some text to be typeset", origin) ; \stopMPcode or its alternate form: \startMPcode label(btex $5\times10^4$ etex, origin) ; \stopMPcode In MetaFun, these all go through the te

Re: [NTG-context] Problem to place a label in an environment \startMPcode \stopMPcode

2016-01-02 Thread Wolfgang Schuster
Alan BRASLAU 31. Dezember 2015 um 20:09 Works fine here. Alan P.S. I simplified your code slightly: \definefloat [recipe] [figure] [default={right,none}] You can’t do this because the second argument is used the names of the \placelistof… and \completelistof…

Re: [NTG-context] Problem to place a label in an environment \startMPcode \stopMPcode

2015-12-31 Thread Alan BRASLAU
; The code below works perfectly without the placement of the label, > but if I want to place the label, it no longer works. > Thank you > > \definefloat >[recipe] >[figure] > > \setupfloat >[recipe] >[default={right,none}] > > \starttext > &g

[NTG-context] Problem to place a label in an environment \startMPcode \stopMPcode

2015-12-31 Thread Fabrice Couvreur
Hello, The code below works perfectly without the placement of the label, but if I want to place the label, it no longer works. Thank you \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \starttext \switchtobodyfont [pagella, 9pt] \placerecipe

Re: [NTG-context] MetaPost Question

2015-12-07 Thread Context NTG
;($in^2$)",(1.28cm,-2.4cm)); %arrows and label ID drawarrow (0,-4.1cm) -- (2.5cm,-4.1cm); drawarrow (2.5cm,-4.1cm) -- (0,-4.1cm); label.top("ID ($in$)",(1.26cm,-4.15cm)); %arrows and label tubular length draw (3.25cm,-5cm) -- (3.25cm,0); drawarrow (3.25cm,-5) -- (3.25cm,0

Re: [NTG-context] missing reference of items

2015-12-04 Thread Henning Hraban Ramm
or ConTeXt bug? > You can use the \in command only for numbered items (e.g. \startitemize[n]). The same seems to be true for \at and \about. Then how must I setup my "cite" to get the reference label of an item? In my "manual bibliography" (as in http://wiki.contextgarden.net/Manual_Bib

Re: [NTG-context] missing reference of items

2015-12-04 Thread Wolfgang Schuster
Henning Hraban Ramm <mailto:te...@fiee.net> 4. Dezember 2015 um 16:34 The same seems to be true for \at and \about. Then how must I setup my "cite" to get the reference label of an item? In my "manual bibliography" (as in http://wiki.contextgarden.net/Ma

Re: [NTG-context] missing reference of items

2015-12-04 Thread Alan BRASLAU
nd \about. > > Then how must I setup my "cite" to get the reference label of an > > item? > > > > In my "manual bibliography" (as in > > http://wiki.contextgarden.net/Manual_Bibliography), I have > > > > \definereferenceformat[cite][le

Re: [NTG-context] Regression with label inright placement

2015-10-26 Thread Wolfgang Schuster
fails with the labels shifted to reflect the temporarily narrowed text. Oeps indeed! It’s unrelated to the label mechanism. \showframe \starttext \startnarrower \inright[scope=local]{Right}\input ward \stopnarrower \blank \startnarrower \inright{Right}\input ward \stopnarrower \stoptext Wo

Re: [NTG-context] Regression with label inright placement

2015-10-26 Thread Rik Kabel
On 2015-10-26 07:03, Wolfgang Schuster wrote: \showframe \starttext \startnarrower \inright[scope=local]{Right}\input ward \stopnarrower \blank \startnarrower \inright{Right}\input ward \stopnarrower \stoptext Okay, unrelated to the label mechanism. However, for explicitly placed margin

[NTG-context] Regression with label inright placement

2015-10-25 Thread Rik Kabel
The following code, a slight addition to test suite descriptions/labels-003.tex, when using ConTeXt from 20150904 and earlier works properly. Between that release and 20151004 something changed, and it fails with the labels shifted to reflect the temporarily narrowed text.

[NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread josephcanedo
, which I can do fine and have these divided in sections (or subsections) whose title is just for example: Chapitre 1, Chapitre 2, … ie a simple label + a counter after it. How can I do this please ? I tried using \setupheads[number=no] to not print the number at left side of title

[NTG-context] Fwd: \bTABLEheader used to work?

2015-10-18 Thread Henman
TD\dorecurse{\COLCNT} { \bTH #1 \eTH } \eTR % col label cells% ... data cells ... \eTABLEheader \bTABLEbody \dorecurse{\ROWCNT} { \bTR \bTD #1 \eTD % row label cells \dorecurse{\COLCNT} { \bTD \eTD } % da

[NTG-context] \bTABLEheader used to work?

2015-10-18 Thread Henman
nge? I'd appreciate hellp of this. Thanks -- % start here \define\ROWCNT{5} \define\COLCNT{5} \starttext % \bTABLE[align={middle,lohi},width=20mm,height=10mm] \bTABLEheader \bTR \bTD \eTD\dorecurse{\COLCNT} { \bTH #1 \eTH } \eTR % col lab

Re: [NTG-context] Refering to parent in XML

2015-08-27 Thread Hans Hagen
gives me nothing in the label of startitem: \startitem[] contents \stopexercici when I run \Presentacio{foo}{bar} and it *should* give me \startitem[foo] \xmlflushcontext{#1} \stopexercici It seems like when I descend to activitat/presentacio then I can't go up

Re: [NTG-context] Refering to parent in XML

2015-08-27 Thread Xan
[@tipus=='#2']/command(xml:display)} } % Si la presentació és de tipus tradicional, aleshores és un 'exercici'. Altrament és una activitat. \startxmlsetups xml:display \startitem[\xmlatt{..}{id}] \xmlflushcontext{#1} \stopexercici \stopxmlsetups gives me nothing in the label of startitem

Re: [NTG-context] Issues of export (structure bug)

2015-08-24 Thread Hans Hagen
/metadata section detail=chapter chain=chapter implicit=1 level=2 sectioncontent image label=3.054cm height=3.054cm id=image-1 width=4.072cm name=koe/image We thrive in information ... from the goats. /sectioncontent sectionnumber1/sectionnumber sectiontitleChapter Two

Re: [NTG-context] Issues of export (structure bug)

2015-08-23 Thread Henning Hraban Ramm
/metadata section detail=chapter chain=chapter implicit=1 level=2 sectioncontent image label=3.054cm height=3.054cm id=image-1 width=4.072cm name=koe/image We thrive in information ... from the goats. /sectioncontent sectionnumber1/sectionnumber sectiontitleChapter Two/sectiontitle

[NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2015-08-11 Thread Rik Kabel
The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Wolfgang Schuster
aren't displayed in the output but the counter is still increased. I guess \startsubformulas[+] is just there for completeness sake because there are other functions with - and + options as well. One difference between \startsubformulas[+] and \startsubformulas[label] is that the second

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, great, thanks for explanation! Best regards, Lukas On Thu, 06 Aug 2015 12:07:18 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: One difference between \startsubformulas[+] and \startsubformulas[label] is that the second method creates a label which can be used to refer

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Otared Kavian
-formulas by invoking (\in[mylabel]), but if one wishes to refer to any individual sub-formula one has to give a label inside the structure \start—\stop—subformulas, at the level of \placeformula for that sub-formula. Below is your example, with these remarks. Thanks for your attention and help: OK

[NTG-context] Label at start of paragraph suppresses indentation

2015-08-03 Thread Rik Kabel
A label at the start of a paragraph suppresses indentation. Should it? \setupindenting[yes,small] \definelabel[xx][text=,alternative=inright] Paragraph one. \xx{}Paragraph two. Paragraph\xx{} three. \stoptext -- Rik

Re: [NTG-context] Beta problem with arranging XY

2015-07-09 Thread Taco Hoekwater
On 09 Jul 2015, at 13:23, Hans Hagen pra...@wxs.nl wrote: \setuplayout[location=middle] That fixes the global placement indeed, great. But it does not solve the problem that address number 1 appears in label number 4 (and 13 to 15 are off the bottom of the page). Best wishes, Taco

Re: [NTG-context] Beta problem with arranging XY

2015-07-09 Thread Hans Hagen
On 7/9/2015 2:21 PM, Taco Hoekwater wrote: On 09 Jul 2015, at 13:23, Hans Hagen pra...@wxs.nl wrote: \setuplayout[location=middle] That fixes the global placement indeed, great. But it does not solve the problem that address number 1 appears in label number 4 (and 13 to 15 are off

Re: [NTG-context] Accessibility and Tagged PDFs: Bugs and Feature Requests

2015-07-03 Thread Hans Hagen
alternate text: / i'll pass the label to the tag as alt text \externalfigure[t:/sources/cow.pdf][label=whatever] Again, thanks! / 3.) Tag names of the resulting tag structure: // Section 14.8.4 of [1] defines standard structure types, // /The set of those standard tags is rather limited

Re: [NTG-context] Accessibility and Tagged PDFs: Bugs and Feature Requests

2015-07-03 Thread Dominik Klein
On Wed Jul 1, 18:47:57 CEST 2015, Hans Hagen wrote: /Artifact BMC .. EMC i'll add the simple variant (i see no need to add properties to something that is supposed to be ignored anyway) thanks! 2.) Images without alternate text: i'll pass the label to the tag as alt text

Re: [NTG-context] Accessibility and Tagged PDFs: Bugs and Feature Requests

2015-07-01 Thread Hans Hagen
added when creating the object in the structure tree. I.e. it would be nice to have something like: i'll pass the label to the tag as alt text \externalfigure[t:/sources/cow.pdf][label=whatever] (a relative simple extension as we already have label as well as alt in images

Re: [NTG-context] \setuphead[part] - special look

2015-06-29 Thread Wolfgang Schuster
, ...). You have to change the default conversion for the appendix. What is the most systemic to \setuphead[part] to give Díl... in body matter and Dodatek... in appendices, and also to get letter numbering (A, B...) in appendices (so Dodatek A, Doadatek B, ...)? You have to set a label for the appendix

Re: [NTG-context] \setuphead[part] - special look

2015-06-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
matter and Dodatek... in appendices, and also to get letter numbering (A, B...) in appendices (so Dodatek A, Doadatek B, ...)? You have to set a label for the appendix with the appendixlabel key. A sample source code with body matter and appendices is attached... % Method 1: change the values

Re: [NTG-context] Prefix for figure number lost in unnumbered subsection

2015-05-13 Thread Mojca Miklavec
understand why implementing the second thing properly might be a bit more challenging, I don't understand why a reference would ever be allowed to change the original label. I'm experiencing a similar problem with figures in appendices (I already reported it, but I need to find that mail

[NTG-context] Changing font for math function

2015-05-13 Thread Maggyero
Hans Hagen: mfunction will stay as it is also needed for tagged pdf and exporting (basically it's an apply math function thing) so if something else is needed another name/mechanism have to be made (with appropriate tagging) the label itself is a special case as it's optional (and is just

Re: [NTG-context] Prefix for figure number lost in unnumbered subsection

2015-05-13 Thread Hans Hagen
implementing the second thing properly might be a bit more challenging, I don't understand why a reference would ever be allowed to change the original label. well, you think so, but all you can't imagine get requested ... the same for the way prefixes are dealt with; we have documents with several

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

2015-05-12 Thread Hans Hagen
(with appropriate tagging) the label itself is a special case as it's optional (and is just there for cultural differences as not all countries use the english names) so, \rho_{\mathlabel{air}} is something different then, some kind of multi-character variable? Thus the function definitions

[NTG-context] Changing font for math function

2015-05-12 Thread Maggyero
{}} With this new \mathlabel command, the user now have a convenient and consistent way to label its math objets (functions and variables with subscripts): \definemathcommand[arsinh][nolop]{\mathlabel{arsinh}} \starttext $\arsinh z = \ln\bigl(z + \sqrt{z^2 + 1}\bigr)$\par $\rho_{\mathlabel{air

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