[NTG-context] Multiline descriptions do not line up

2017-07-08 Thread Rik Kabel
[vLine] \setlayer [vLine] [x=3.385cm]{\blackrule[color=red,width=0.2pt,height=\textheight]} \setupbackgrounds [text] [background=vLine] \starttext \startDesc{one} Description of item one. Description of item one.% Description of item

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-08 Thread Mathias Schickel
. Here I provide a minimal example that shows the problem: \setupbackground[ width=\textwidth, frame=on, framecolor=black, rulethickness=1pt, background=color, backgroundcolor=white, corner=0, offset=12pt

Re: [NTG-context] \startcomment...\stopcomment with XML processing

2017-06-25 Thread Pablo Rodriguez
gt;> >> Which is the right way to do it? > > \startxmlsetups xml:copy:code > \xmltobufferverbose{#1}{.}{whereever} > \comment[location=inmargin,color=yellow,buffer=whereever]{} > \stopxmlsetups Many thanks for your reply, Hans. I’m using this for a class.

Re: [NTG-context] \startcomment...\stopcomment with XML processing

2017-06-25 Thread Hans Hagen
=inmargin, color=yellow] %~ \xmlpure{#1} %~ \stopcomment \comment[location=inmargin, color=yellow]{\xmlpure{#1}} \stopxmlsetups \setupinteraction[state=start] \starttext \xmlprocessbuffer{main}{demo}{} \startcomment 1

[NTG-context] \startcomment...\stopcomment with XML processing

2017-06-24 Thread Pablo Rodriguez
} {xml:copy:code} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:copy:code %~ \startcomment[location=inmargin, color=yellow] %~ \xmlpure{#1

Re: [NTG-context] Initials and short paragraph

2017-06-24 Thread Martin Oppegaard
s: > > \placeinitial \starteffect[hidden]K\stopeffect\input knuth > \setupinitial[color=transparentblue] > > \placeinitial K\input knuth > \stoptext > > The sample cont

Re: [NTG-context] TikZ module not found (TeX Live problem?)

2017-06-21 Thread Gerion Entrup
; english/english > > > > > > > > system > 'cont-new.mkiv' loaded > > > > open source > 2 > 2 > > > > > /usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv > > > > close source> 2 > 2

Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Pablo Rodriguez
finecolor[transparentblue][t=0, a=1] \setupwhitespace[medium] \starttext \placeinitial Knuth writes: \placeinitial \starteffect[hidden]K\stopeffect\input knuth \setupinitial[color=transparentblue] \placeinitial K\input knuth \stoptext The sample contains two methods. Jus

Re: [NTG-context] TikZ module not found (TeX Live problem?)

2017-06-20 Thread Hans Hagen
t; language 'en' is active open source > 2 > 3 > /home/gerion/sourcecode/grisu/test-document/test-document.tex colors > 'rgb' color space is supported colors > 'cmyk' color space is supported resolvers > modules > 'tikz' is not found tex error

Re: [NTG-context] TikZ module not found (TeX Live problem?)

2017-06-20 Thread Gerion Entrup
: 2017.6.11 int: > > > english/english > > > > > > system > 'cont-new.mkiv' loaded > > > open source > 2 > 2 > > > > /usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv > > > close source> 2 > 2 >

Re: [NTG-context] TikZ module not found (TeX Live problem?)

2017-06-20 Thread Gerion Entrup
; close source> 2 > 2 > > > /usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv > > system > files > jobname 'test-document', input './test-document', > > result 'test-document' > > fonts > latin modern fonts are not preloaded &g

Re: [NTG-context] TikZ module not found (TeX Live problem?)

2017-06-20 Thread Henri Menke
x/context/base/mkiv/cont-new.mkiv > close source> 2 > 2 > > /usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv > system  > files > jobname 'test-document', input './test-document', > result 'test-document' > fonts   > latin moder

[NTG-context] TikZ module not found (TeX Live problem?)

2017-06-20 Thread Gerion Entrup
> latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/gerion/sourcecode/grisu/test-document/test-document.tex colors > 'rgb' color space is supported colors > 'cmyk' color space is supported re

Re: [NTG-context] typesetting serial letters in Context

2017-06-15 Thread r . ermers
setups xml:contacts:contact \setlayer[module][][]{\externalfigure[\xmltext{#1}{/courselevel}][factor=550]} \startalignment [middle] \color[red]{{\tfd \xmltext{#1}{/initials}} {\tfd \xmltext{#1}{/formalname}}\par \blank[10mm] {\ss \xmltext{#1}{/city}, \x

Re: [NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-07 Thread Mikael P. Sundqvist
are rather special and have some hard coded properties > (like always scriptscript in the degree) > > -- \over (and friends) that are used in \frac (which by the way can be > configured in many ways) has the danger of getting the wrong style as side > effect of parsing (mat

Re: [NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-07 Thread Hans Hagen
rsing (math list construction) and processing -- in context we want to support color etc for noth in a consistent way as well as style control (important in educational math) Normally it works out ok with the 'normal' setting but there is some catch here. The size of the radical symb

Re: [NTG-context] Package esvect and Context

2017-05-27 Thread Fabrice Couvreur
rrow_shape = >> math_stacker_arrow_shape rotated 180 >> enddef ; >> \stopMPextensions >> >> \startuniqueMPgraphic{math:stacker:\number"2190} >> math_stacker_draw(math_stacker_leftarrow_shape) ; >> \stopuniqueMPgraphic >> >> \

Re: [NTG-context] Package esvect and Context

2017-05-26 Thread Hans Hagen
% so far \setupmathstackers [both] % vfenced] [color=darkred, alternative=mp] \setupmathstackers [top] [color=darkred, alternative=mp] \setupmathstackers [bottom] [color=darkred, alternative=mp] \starttext $\overrightarrow {i}$

[NTG-context] Package esvect and Context

2017-05-26 Thread Fabrice Couvreur
_draw(math_stacker_leftarrow_shape) ; \stopuniqueMPgraphic \startuniqueMPgraphic{math:stacker:\number"2192} math_stacker_draw(math_stacker_rightarrow_shape) ; \stopuniqueMPgraphic % so far \setupmathstackers [both] % vfenced] [color=darkred, alternative=mp] \setupmathstacke

[NTG-context] issue with annotation flags

2017-05-25 Thread Pablo Rodriguez
Dear list, I have the following code: \setupinteraction[state=start, color=] \enabledirectives[references.border] \starttext \startTEXpage[offset=1em] \useURL[url1][http://some-url.com]\from[url1] \stopTEXpage \stoptext The annotation code in the PDF file reads

[NTG-context] Bug with Enumeration and \dfrac{}{} with Standalone ?

2017-05-14 Thread Fabrice Couvreur
# \starttext \startitemize[n][stopper={.},style=bold,color=darkred] \item Soit \math{f} la fonction définie pour tout réel \m{x} différent de \m{-1} par \math{f(x)=\dfrac{x+2}{x+1}} et \math{\cal C} sa courbe représentative dans un repère du plan

Re: [NTG-context] Table of content in presentation example

2017-05-12 Thread cryo shock
ut still one thing > is missing... That's what my code looks like now: > > %D I copied the head settings to "title", so that it has the same style as > the rest > %D "title" will not be counted for TOC: > > \setuphead[title][style=\ssbfc, colo

Re: [NTG-context] Table of content in presentation example

2017-05-12 Thread cryo shock
looks like now: %D I copied the head settings to "title", so that it has the same style as the rest %D "title" will not be counted for TOC: \setuphead[title][style=\ssbfc, color=foreground:contrast, alternative=middle] \starttext \setvariables ... *\startstandardmakeup*

Re: [NTG-context] Table of content in presentation example

2017-05-12 Thread cryo shock
edited the component a little in display style, yet I don't know > why I can't get a simple table of content on the second slide. > > In the component I found the following code: > > \definehead > [slide] > [subject] > [ > style=\ssbfc, > co

[NTG-context] Table of content in presentation example

2017-05-12 Thread cryo shock
on the second slide. In the component I found the following code: \definehead [slide] [subject] [ style=\ssbfc, color=foreground:contrast, alternative=middle, page=yes ] So I understand that the head called slide comes from the head subject, which by default

Re: [NTG-context] Strange behavior with Enumerations

2017-05-10 Thread Fabrice Couvreur
correct, why ? > > ## > \starttext > > \startitemize[n][stopper={.},style=bold,color=darkred] > >\item Soit \math{f} la fonction définie pour tout réel \m{x} différent > de \m{-1} par \math{f(x)=\dfrac{x+2}{x+1}} et \math{\cal C} sa courbe >

[NTG-context] Strange behavior with Enumerations

2017-05-08 Thread Fabrice Couvreur
Hello, The alignment of the third level is incorrect, why ? ## \starttext \startitemize[n][stopper={.},style=bold,color=darkred] \item Soit \math{f} la fonction définie pour tout réel \m{x} différent de \m{-1} par \math{f(x)=\dfrac{x+2

Re: [NTG-context] Index with distinguishable entries -- again

2017-04-27 Thread Rik Kabel
or create a new command to wrap it, as \defineprocessor[Footnote][style=bold,color=blue] \define[1]\fnindex{\index[Footnote->]{#1}} of course, if you use the optional indexunder component already ( \index[as if it were spelled this way]{displayed as} ) then you will have to create a more c

Re: [NTG-context] Index with distinguishable entries -- again

2017-04-27 Thread Florian Grammel
following can help. It has separate user page numbers for the > main matter and back matter, with a suffixed ‘n’ for the items indexed from > backmatter pages, but no suffix on the backmatter page numbers. The index > entries for figures are rubricated and have a leading ‘f’. > > \

Re: [NTG-context] Index with distinguishable entries -- again

2017-04-26 Thread Rik Kabel
rt] [style=slanted,right=n] \defineprocessor [Figure] [style=\tf,color=red,left=f] \defineconversionset [backpart:pagenumber][][backpart->o] \setupuserpagenumber[way=byblock] \setuppagenumbering [location=none] \setupheadertexts[{\convertedcounter[userpage][numberconvers

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)

[NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
Hello, suppose having the following code: \startuseMPgraphic{T} newpath rc; rc := fullsquare xyscaled (50mm, 50mm); color col; col := (1.,.1,.1); draw rc withpen pencircle scaled (2.5mm) withcolor %col; transparent(1, .4, col

Re: [NTG-context] processing very big tables

2017-04-11 Thread Henning Hraban Ramm
Am 2017-04-09 um 16:53 schrieb Thomas A. Schmitz <thomas.schm...@uni-bonn.de>: > On 04/09/2017 03:57 PM, Hans Hagen wrote: >> \starttext >> >> \setuplinetable[n=2,lines=25] >> \setuplinetable[c][1][width=6cm] % >> ,background=color,backgroundcolor=red,colo

Re: [NTG-context] processing very big tables

2017-04-10 Thread Hans Hagen
On 4/10/2017 4:25 PM, Thomas A. Schmitz wrote: On 09.04.2017 15:57, Hans Hagen wrote: \starttext \setuplinetable[n=2,lines=25] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color

Re: [NTG-context] processing very big tables

2017-04-10 Thread Thomas A. Schmitz
On 09.04.2017 15:57, Hans Hagen wrote: \starttext \setuplinetable[n=2,lines=25] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinetable[1][all][background=color

Re: [NTG-context] processing very big tables

2017-04-09 Thread Thomas A. Schmitz
On 04/09/2017 03:57 PM, Hans Hagen wrote: \starttext \setuplinetable[n=2,lines=25] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinetable[1][all][background=color

Re: [NTG-context] processing very big tables

2017-04-09 Thread Hans Hagen
h one (would xtables be better?)? Or low-level vboxes within hboxes etc.? Or just \framed within \framed? What would you suggest for this sort of material? \starttext \setuplinetable[n=2,lines=25] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinet

Re: [NTG-context] Line numbering broken somehow?

2017-03-30 Thread Procházka Lukáš Ing .
ge you need global setups. begin example \setuplinenumbering [TEX] [location=inmargin, style=\tt\tfx, color=darkgreen] \setuptyping [TEX] [numbering=line] Does 'numbering=line' here mean that the \setuptyping[TEX] will search for a line-numbering style of

Re: [NTG-context] Line numbering broken somehow?

2017-03-30 Thread Wolfgang Schuster
yle assigned by \setuplinenumbering (but works OK on other pages)? It’s a side effect of the way how line numbering works. To get the correct style for the last page you need global setups. begin example \setuplinenumbering [TEX] [location=inmargin, style=\tt\tfx, color=darkgreen] \setupt

Re: [NTG-context] Line numbering broken somehow?

2017-03-30 Thread Procházka Lukáš Ing .
size[z] \definebodyfontenvironment[default][z=.75] \setuplinenumbering[location=inmargin,style={\tfz\tt},color=darkgreen,] \setuptyping[TEX][style=\tfz,numbering=line,] \typefile[TEX]{t3.mkiv} \stop \if+- Some dummy text Some dummy text Some dummy text Some dummy text Some dumm

[NTG-context] Designing text floats

2017-03-29 Thread Henning Hraban Ramm
And me again. I’m trying to get some info box on my page that - has a defined width - sits in the margin but protrudes into the text area - while the body text runs around it Additionally the caption (title) should sit on (in front of) the background color. Here is what I tried: \definefloat

Re: [NTG-context] Pretty printer

2017-03-28 Thread Hans Hagen
On 3/28/2017 10:33 AM, Procházka Lukáš Ing. wrote: Hello, I'd like to write my own pretty-printer (it should just highlight words/members of a set-of-keywords with a color), preferably as a Lua handler. Following wiki: http://wiki.contextgarden.net/Verbatim_text I searched for verb

[NTG-context] Pretty printer

2017-03-28 Thread Procházka Lukáš Ing .
Hello, I'd like to write my own pretty-printer (it should just highlight words/members of a set-of-keywords with a color), preferably as a Lua handler. Following wiki: http://wiki.contextgarden.net/Verbatim_text I searched for verb*.* or pret*.* in the Ctx distribution (on my local

[NTG-context] Line numbering broken somehow?

2017-03-28 Thread Procházka Lukáš Ing .
] \definebodyfontenvironment[default][z=.75] \setuplinenumbering[location=inmargin,style={\tfz\tt},color=darkgreen,] \setuptyping[TEX][style=\tfz,numbering=line,] \typefile[TEX]{t3.mkiv} \stop \if+- Some dummy text Some dummy text Some dummy text Some dummy text Some dummy text

Re: [NTG-context] Manually scaling math fences

2017-03-24 Thread Hans Hagen
|1|2|3|4) is also ok (and would be directly mapped to choosemathbig). actually we will hook into a new feature of luatex for specifying the size of delimiters (so no vbox hack) .. factors are multipliers of bodyfontsize \definemathfence [MEAN] [angle] [command=yes, color=blue, factor=2.5

Re: [NTG-context] Manually scaling math fences

2017-03-24 Thread Aditya Mahajan
mapped to choosemathbig). actually we will hook into a new feature of luatex for specifying the size of delimiters (so no vbox hack) .. factors are multipliers of bodyfontsize \definemathfence [MEAN] [angle] [command=yes, color=blue, factor=2.5] \starttext \startTEXpage \startformula

Re: [NTG-context] Manually scaling math fences

2017-03-23 Thread Hans Hagen
will hook into a new feature of luatex for specifying the size of delimiters (so no vbox hack) .. factors are multipliers of bodyfontsize \definemathfence [MEAN] [angle] [command=yes, color=blue, factor=2.5] \starttext \startTEXpage \startformula \MEAN[factor=1]{\sum_{i = 1}^n A_i x_i

Re: [NTG-context] bug in filling fields and Acrobat Reader XI?

2017-03-14 Thread Henning Hraban Ramm
illinfield] > [n=1024, > height=\strutht, > depth=\strutdp, > align=middle, > color=red, > fieldframecolor=blue, > fieldbackgroundcolor=white, > validate=] >\setupinteraction[state=start] >\starttext >This is a \fil

Re: [NTG-context] bug in filling fields and Acrobat Reader XI?

2017-03-14 Thread Pablo Rodriguez
my knowledge. \usemodule[fields] \definefieldcategory [fillinfield] [n=1024, height=\strutht, depth=\strutdp, align=middle, color=red, fieldframecolor=blue, fieldbackgroundcolor=white, validate=] \setupinteraction[state=start] \star

Re: [NTG-context] display current section number in \writestatus

2017-03-09 Thread Rik Kabel
{section}}:p.\pagenumber} #NOTETEXT} \stoptexdefinition \LogNote{See http://www.thelatinlibrary.com/ter.eunuchus.html for the original.} and the note is in a section, I get: Note> {\oldstylenumerals {1}\color [red]{A·}\oldstylenumerals {8}:p.19} See h

Re: [NTG-context] Manually scaling math fences

2017-03-07 Thread Hans Hagen
\left and \right, which can lead to undesirable results. For example: \definemathfence [MEAN] [angle] [command=yes, color=blue] \starttext \startTEXpage \startformula \MEAN{ \sum_{i = 1}^n A_i x_i } \hbox{ vs. } \bigg\langle \sum_{i=1}^n A_i x_i \bigg\rangle \stopformula \stopTEXpage \st

Re: [NTG-context] Manually scaling math fences

2017-03-06 Thread Otared Kavian
} > \bigg\langle \sum_{i=1}^n A_i x_i \bigg\rangle > \stopformula \stopTEXpage > \stoptext > > Currently, math fences always default to using \left and \right, which can > lead to undesirable results. For example: > > \definemathfence [MEAN] [angle] [command=yes, color=blue]

[NTG-context] Manually scaling math fences

2017-03-06 Thread Aditya Mahajan
\rangle \stopformula \stopTEXpage \stoptext Currently, math fences always default to using \left and \right, which can lead to undesirable results. For example: \definemathfence [MEAN] [angle] [command=yes, color=blue] \starttext \startTEXpage \startformula \MEAN{ \sum_{i = 1}^n A_i x_i

[NTG-context] list items not broken in lines

2017-03-06 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupinteraction[state=start, color=, style=, contrastcolor=] \enabledirectives[references.border] \startsetups[placelist:section] \startalign[center] \setupinterlinespace[line=2.8ex] \placelist[section

Re: [NTG-context] tabulate as header

2017-03-05 Thread kaddour kardio
, background=color, backgroundcolor= , height=3cm]{ \starttabulate[|p|lrw(2cm)|pr|] \NC \ss Clinique médico chirurgicale El Abrar\NC \externalfigure[logo.png][width=1cm, location=inline]\NC \ss Service de cardiologie\NC \NR \NC \ss\tfx Dr Yahyaoui .M.K \NC \NC \ss\tfx kaddourkardio

[NTG-context] Vertical spacing in enumerations

2017-02-14 Thread Fabrice Couvreur
={\switchtobodyfont[7pt]}, background=color, location=middle, backgroundcolor=MyBlue, framecolor=darkblue, corner=round] \definelines [algorithm] [space=on, before={\startframed[algorithmframe]}, after=\stopframed] \starttext \startalgorithm \startitemize[1,joinedup,nowhite] \item

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

2017-02-04 Thread Alan Braslau
n \unexpanded\def\url[#label]% move \hyphenatedurl to lua end (is already lua) {\dontleavehmode \begingroup \useurlstyleandcolor\c!style\c!color \hyphenatedurl{\clf_geturl{#label}}% \endgroup} ___ If your question is

Re: [NTG-context] Title without the parentheses

2017-01-31 Thread Fabrice Couvreur
N, >>alternative=top, >>number=yes] >> >> In order to put the word « Exercice » in the frame you should define a >> special command, for instance \MyTextCommand and the say text = >> \MyTextCommand >> >> Best regrads: OK >> >&g

Re: [NTG-context] Title without the parentheses

2017-01-30 Thread Otared Kavian
; Best regrads: OK > >> On 29 Jan 2017, at 09:07, Fabrice Couvreur <fabrice1.couvr...@gmail.com >> <mailto:fabrice1.couvr...@gmail.com>> wrote: >> >> Hello, >> I would like a title without the parentheses and the text "Exercice" in the >> fram

Re: [NTG-context] Title without the parentheses

2017-01-30 Thread Otared Kavian
ses and the text "Exercice" in the >> frame with the number. >> Thank you. >> Fabrice >> >> \defineframed >> [EXFRAME] >> [frame=off, >>offset=0pt, >>location=low, >>width=\struttotal, >>background=color, >&

Re: [NTG-context] Title without the parentheses

2017-01-29 Thread Fabrice Couvreur
ot;Exercice" in > the frame with the number. > Thank you. > Fabrice > > \defineframed > [EXFRAME] > [frame=off, >offset=0pt, >location=low, >width=\struttotal, >background=color, >backgroundcolor=darkred, >foregroundco

Re: [NTG-context] Title without the parentheses

2017-01-29 Thread Otared Kavian
like a title without the parentheses and the text "Exercice" in the > frame with the number. > Thank you. > Fabrice > > \defineframed > [EXFRAME] > [frame=off, >offset=0pt, >location=low, >width=\struttotal, >background

[NTG-context] Title without the parentheses

2017-01-29 Thread Fabrice Couvreur
Hello, I would like a title without the parentheses and the text "Exercice" in the frame with the number. Thank you. Fabrice \defineframed [EXFRAME] [frame=off, offset=0pt, location=low, width=\struttotal, background=color, backgroundcolor=darkred, foregroundc

Re: [NTG-context] A better \definesymbol sought

2017-01-25 Thread Hans Hagen
] [background=color,backgroundcolor=yellow] \startuseMPgraphic{CircleTest} path p,q ; p := fullcircle scaled 2cm ; q := fullcircle scaled 1cm ; fill p -- reverse q -- cycle withcolor blue; \stopuseMPgraphic \starttext \useMPgraphic{CircleTest

Re: [NTG-context] A better \definesymbol sought

2017-01-24 Thread Rik Kabel
On 2017-01-24 03:34, Hans Hagen wrote: On 1/24/2017 4:04 AM, Rik wrote: What I want is that the background of the page (yellow in this case) should show through. That is what is done with fill / reverse / cycle, as in: \setupbackgrounds [page] [background=color,backgroundcolor

Re: [NTG-context] A better \definesymbol sought

2017-01-24 Thread Hans Hagen
w) >> transparent, so that the background shows through along with >> anything else that lives on a lower layer? I’ve seen a method for >> constructed shapes, but nothing that I can apply to text glyphs. >> Undraw doesn’t do it. > > Undraw is simply draw using the backgr

Re: [NTG-context] A better \definesymbol sought

2017-01-23 Thread Rik
kground shows through along with >> anything else that lives on a lower layer? I’ve seen a method for >> constructed shapes, but nothing that I can apply to text glyphs. >> Undraw doesn’t do it. > > Undraw is simply draw using the background color. > > Transparency

Re: [NTG-context] A better \definesymbol sought

2017-01-23 Thread Rik Kabel
;> anything else that lives on a lower layer? I’ve seen a method for >> constructed shapes, but nothing that I can apply to text glyphs. >> Undraw doesn’t do it. > > Undraw is simply draw using the background color. > > Transparency is a MetaFun extension to MetaPost (so p

Re: [NTG-context] A better \definesymbol sought

2017-01-22 Thread Alan Braslau
ructed > shapes, but nothing that I can apply to text glyphs. Undraw doesn’t > do it. Undraw is simply draw using the background color. Transparency is a MetaFun extension to MetaPost (so part of ConTeXt). draw q withtransparency (1,0.5) ; % (metho

Re: [NTG-context] A better \definesymbol sought

2017-01-22 Thread Rik Kabel
shapes, but nothing that I can apply to text glyphs. Undraw doesn’t do it. \setupbackgrounds [page] [background=color,backgroundcolor=yellow] \definefont [DVSrB] [file:DejaVuSerif-Bold.ttf] \startuseMPgraphic{HeartTest} picture h; h := &quo

Re: [NTG-context] Bug: \textext inside \*MPinclusions causes error

2017-01-22 Thread Hans Hagen
e the code inside vardef is only executed when macro is called (while image(...) is processed immediately). It would help if the macro could be called within *MPdefinitions, like this: \starttext \startMPdefinitions picture tmp; vardef p = image( draw fullcircle scaled 5cm; draw textext("test");

Re: [NTG-context] Bug: \textext inside \*MPinclusions causes error

2017-01-22 Thread Sergey Slyusarev
quot;); > ); > \stopMPcode > > \stoptext > > > > ----- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 03

Re: [NTG-context] nested colors problem

2017-01-21 Thread Peter Rolf
Am 21.01.2017 um 11:11 schrieb Hans Hagen: > On 1/20/2017 9:42 PM, Peter Rolf wrote: >> Hi, >> >> the nested color inherits the transparency from it's surrounding color. >> >> \definecolor[colA] [r=0,g=0,b=0.01,t=0.2,a=1] % transparent >> \definecolor[colB] [

Re: [NTG-context] nested colors problem

2017-01-21 Thread Hans Hagen
On 1/20/2017 9:42 PM, Peter Rolf wrote: Hi, the nested color inherits the transparency from it's surrounding color. \definecolor[colA] [r=0,g=0,b=0.01,t=0.2,a=1] % transparent \definecolor[colB] [r=.278431,g=.235294,b=.545098] % opaque \starttext \startcolor[colA] \definedfont[SansBold

Re: [NTG-context] nested colors problem

2017-01-20 Thread Peter Rolf
; >>>> Maybe intended behaviour, maybe a bug. Donno. >>> >>> Not a bug: color and transparency are not the same thing. >>> >> >> True, but you define and use them at once. How to separate them then? > > Did you look at http://wiki.co

Re: [NTG-context] nested colors problem

2017-01-20 Thread Henning Hraban Ramm
Am 2017-01-20 um 22:26 schrieb Peter Rolf <indi...@gmx.net>: > Am 20.01.2017 um 21:54 schrieb Alan Braslau: >> On Fri, 20 Jan 2017 21:42:16 +0100 >> Peter Rolf <indi...@gmx.net> wrote: >> >>> Maybe intended behaviour, maybe a bug. Donno. >> >&

Re: [NTG-context] nested colors problem

2017-01-20 Thread Peter Rolf
Am 20.01.2017 um 21:54 schrieb Alan Braslau: > On Fri, 20 Jan 2017 21:42:16 +0100 > Peter Rolf <indi...@gmx.net> wrote: > >> Maybe intended behaviour, maybe a bug. Donno. > > Not a bug: color and transparency are not the same thing. > True, but you define and use

Re: [NTG-context] nested colors problem

2017-01-20 Thread Alan Braslau
On Fri, 20 Jan 2017 21:42:16 +0100 Peter Rolf <indi...@gmx.net> wrote: > Maybe intended behaviour, maybe a bug. Donno. Not a bug: color and transparency are not the same thing. Alan ___ If your

[NTG-context] nested colors problem

2017-01-20 Thread Peter Rolf
Hi, the nested color inherits the transparency from it's surrounding color. \definecolor[colA] [r=0,g=0,b=0.01,t=0.2,a=1] % transparent \definecolor[colB] [r=.278431,g=.235294,b=.545098] % opaque \starttext \startcolor[colA] \definedfont[SansBold at 96bp]Titanfall\, \startcolor[colB]2

Re: [NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Otared Kavian
ckfamily[slidesfont][mono][Xits][range={"0222A,"02229,"02205}] % > ∪, ∩, ∅ > \definefontfamily[slidesfont][mono][Latin Modern Mono Light][features=none] > \definefallbackfamily[slidesfont][math][Xits][range={"025C7,"27D5}] % WHITE > DIAMOND, left-join, WHI

[NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Nicola
WHITE DIAMOND, left-join, WHITE RIGHT-POINTING TRIANGLE \definefontfamily[slidesfont][math][TeX Gyre Pagella Math] \setupbodyfont[slidesfont] % Foreground/background color \setupcolors[textcolor=colorone] \setupbackgrounds[page][background=color, backgroundcolor=nearlywhite] % Heade

Re: [NTG-context] Bug: \textext inside \*MPinclusions causes error

2017-01-12 Thread Hans Hagen
be performed (color=vacuous). Minimal example would be: \startMPinclusions picture p; p := image( draw textext("Foo"); ); \stopMPinclusions \startMPcode \stopMPcode tested on http://live.contextgarden.net/ you can use \startMPinitializations \stopMPinitializations as these are expanded ea

[NTG-context] Bug: \textext inside \*MPinclusions causes error

2017-01-11 Thread Sergey Slyusarev
Hi, i found the following bug (likely) some time ago: When \textext (or any other text generating thing like btex etex etc.) is present inside \*MPinclusions and \*MPinclusions are followed by \*MPcode ConTeXt returns error: Equation cannot be performed (color=vacuous). Minimal example would

Re: [NTG-context] "\" in text from "\comment"

2016-12-22 Thread Pablo Rodriguez
is this a real bug? > > \startxmlsetups xml:pre:code > solution one \begingroup > \expandUx > \comment[symbol=Key, location=inmargin,color=yellow]{\xmlflush{#1}} > \endgroup > \par > solution two > \comment[symbol=Key, location

Re: [NTG-context] header text style and dimension

2016-12-22 Thread Andrea Valle
and have it italic. >> Sorry, should be easy, but I tested a bit and can’t have it working by >> setting \setupheader. > \starttext > > \setupheader > [style=\bfb, > color=darkblue, > leftstyle=bold, > rightstyle=bolditalic, > leftcolor=darkgreen, >

Re: [NTG-context] header text style and dimension

2016-12-22 Thread Hans Hagen
On 12/22/2016 1:22 AM, Andrea Valle wrote: Dear, I want to reduce the dimension of only the header text and have it italic. Sorry, should be easy, but I tested a bit and can’t have it working by setting \setupheader. \starttext \setupheader [style=\bfb, color=darkblue, leftstyle=bold

Re: [NTG-context] "\" in text from "\comment"

2016-12-21 Thread Hans Hagen
=inmargin, color=yellow]{\xmlflush{#1}}\xmlprettyprint{#1}{tex} \stopxmlsetups \setuppapersize[A6] \setupinteraction[state=start] \starttext \xmlprocessbuffer{main}{demo}{} \stoptext Text from comment reads "\Ux {5C}ConTeXt\Ux {5C} is great".

[NTG-context] "\" in text from "\comment"

2016-12-21 Thread Pablo Rodriguez
:*} \xmlsetsetup{#1}{pre/code}{xml:pre:code} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:pre:code \comment[symbol=Key, location=inmargin, color=yellow

[NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-19 Thread Benjamin Buchmuller
Hi Hans, the patch solves the issue. Thank you for the fast reply. With regard to Pablo’s question: When I would not use crop in the MWE, apparently I would get the desired output indeed. However, in the situation I was using the command to produce a document, I would need to crop some parts

Re: [NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-19 Thread Hans Hagen
On 12/18/2016 11:00 PM, Benjamin Buchmuller wrote: Hi Hans, I finally managed to make a MWE. The issue is related to me using \clip{…} onto external figures I would like to crop in conjunction with a colored footer set-up: \starttext \setupfooter[color=red] \setupfootertexts

Re: [NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-18 Thread Pablo Rodriguez
ut what happens if you don’t use \clip? Pablo > \starttext > > \setupfooter[color=red] > > \setupfootertexts > [] > [] > [any text] % issue related to put something in footer ... > [] > >

[NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-18 Thread Benjamin Buchmuller
Hi Hans, I finally managed to make a MWE. The issue is related to me using \clip{…} onto external figures I would like to crop in conjunction with a colored footer set-up: \starttext \setupfooter[color=red] \setupfootertexts [] [] [any

[NTG-context] bug with backslash in comment (xml)?

2016-12-08 Thread Pablo Rodriguez
}{xml:pre:code} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:pre:code \comment[symbol=Key, location=inmargin, color=yellow]{\xmlflush{#1}}\xmlprettyprint{#1}{tex

Re: [NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-04 Thread Benjamin Buchmuller
Hi Hans, thank you for your help. I tried exactly as you suggested, which worked fine, but adopting for the case being with \setupfootertexts[\strut{\color[MyColor]{footers}}\strut][][][…same…] (further, footer texts change in the course of the document and call markings, page numbers etc

Re: [NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-04 Thread Hans Hagen
On 12/4/2016 4:05 AM, Benjamin Buchmuller wrote: When I have \setupfooter[color=red, style=bold] (same goes with \setupfooter[style=red]) and a tex text text % <<<< page breaks here after typesetting >>>> \startplacefigure[ %location=force, % no matter what

[NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-03 Thread Benjamin Buchmuller
When I have \setupfooter[color=red, style=bold] (same goes with \setupfooter[style=red]) and a tex text text % <<<< page breaks here after typesetting >>>> \startplacefigure[ %location=force, % no matter what I do here title={Caption.} ] … something …

Re: [NTG-context] question about \startitemize...\stopitemize (again)

2016-11-29 Thread Wolfgang Schuster
group [itemize] [ before={\blackrule[width=\textwidth,color=red]}, after={\blackrule[width=\textwidth,color=green]}, inbetween={\blackrule[width=\textwidth,color=blue]}] \starttext \startitemize \startitem First item \stopitem \startitem Second item \stopitem \startitem Thir

Re: [NTG-context] copyfont and font features

2016-11-17 Thread Hans Hagen
On 11/17/2016 11:02 AM, Ulrike Fischer wrote: Am Thu, 17 Nov 2016 09:46:26 +0100 schrieb Hans Hagen: On 11/16/2016 6:17 PM, Ulrike Fischer wrote: This comes from a tex.sx question https://tex.stackexchange.com/questions/338942/cancellation-of-color-fontspec-font-settings-while-defining

Re: [NTG-context] copyfont and font features

2016-11-17 Thread Ulrike Fischer
Am Thu, 17 Nov 2016 09:46:26 +0100 schrieb Hans Hagen: > On 11/16/2016 6:17 PM, Ulrike Fischer wrote: >> This comes from a tex.sx question >> https://tex.stackexchange.com/questions/338942/cancellation-of-color-fontspec-font-settings-while-defining-microtype-context/ >> >&

<    10   11   12   13   14   15   16   17   18   19   >