Re: [NTG-context] problems with XML export

2017-11-12 Thread Henning Hraban Ramm
Am 2017-11-11 um 19:46 schrieb Pablo Rodriguez <oi...@gmx.es>: > On 11/11/2017 06:30 PM, Henning Hraban Ramm wrote: >> Here are a few problems that I encountered in my current ePub projects: >> >> * \color[]{} leaves no trace in export. > > Hi Hraban, > &

Re: [NTG-context] problems with XML export

2017-11-11 Thread Pablo Rodriguez
On 11/11/2017 06:30 PM, Henning Hraban Ramm wrote: > Here are a few problems that I encountered in my current ePub projects: > > * \color[]{} leaves no trace in export. Hi Hraban, this works with PDF, it should work with ePub: \definehighlight[read][color=red, style=\sc] \

[NTG-context] problems with XML export

2017-11-11 Thread Henning Hraban Ramm
Here are a few problems that I encountered in my current ePub projects: * \color[]{} leaves no trace in export. * As soon as I activate export, my PDFs get two pages more, i.e. page breaking changes somehow, I didn’t yet track how. * For quotability, I’d like to set markers in my HTML, where

[NTG-context] three issues with \setuptyping

2017-10-21 Thread Pablo Rodriguez
s standard tags. Using the scite module removes the three issues (XML comment chars are in a different color, both from comment content and from any other element). But the scite module doesn’t allow the options \setuptyping has. Would it be possible that whole comments may be formatted in the

[NTG-context] Problems with setfirstline

2017-10-18 Thread Rik Kabel
]  \Setupbodyfont{\setupbodyfont[#1,11pt]} \define[1] \DisplayExample{\switchtobodyfont[#1]\getbuffer} \setupfirstline [alternative=line, style=\setfontfeature{smallcaps}] \setupinitial   [location=text,n=2,color=darkred] \setuphead  [chapter

Re: [NTG-context] issue with external image and PDF/A-3a

2017-10-10 Thread Pablo Rodriguez
ld something get lost in the translation? >> > All unsupported features (like transparency). I found the command for the transparency issues: \setupcolors[pagecolormodel=auto] At least, veraPDF doesn’t complain anymore. Only color profiles for external figures have to be so

Re: [NTG-context] Strange behavior with TikZ

2017-10-10 Thread luigi scarso
\usemodule [graph] \usemodule[pgfplots] \pgfplotsset{compat=newest} \definecolor[Mycolor][c=.6,m=0.8,y=0,k=0] \unexpanded\def\interff#1#2{\math{\left[#1\,;#2\right]}} \setuphead [section] [textcommand=, color=red, %magenta, style=] \loggingall \starttext \startsection[title={Résoudre

Re: [NTG-context] ICC profiles for \externalfigure

2017-10-09 Thread Pablo Rodriguez
image. The user is the one that might mess the final PDF document by selecting the wrong color profile for \externalfigure. But this possibility is already there with the profile key in \setupbackend. Choosing the right profiles is up to the user. Wrong attribution causes unvalid documents, but a

Re: [NTG-context] Question about enumerations/before/after

2017-10-09 Thread Hans Hagen
and after the enumeration. How can I have them with the before/after? Matthias, adding \blank to before and after the color block does the trick: [before={\blank\startcolor[red]}, after={\stopcolor\blank}] It my the first idea that came to mind. just use the color key

Re: [NTG-context] Question about enumerations/before/after

2017-10-09 Thread Weber, Matthias
efore={\startcolor[red]}, >> after={\stopcolor}] >> >> When I comment out the before/after, I get paragraph breaks before >> and after the enumeration. How can I have them with the before/after? > Matthias, > > adding \blank to before and after

Re: [NTG-context] Question about enumerations/before/after

2017-10-09 Thread Pablo Rodriguez
and after the enumeration. How can I have them with the before/after? Matthias, adding \blank to before and after the color block does the trick: [before={\blank\startcolor[red]}, after={\stopcolor\blank}] It my the first idea that came to mind. I hope it helps,

Re: [NTG-context] Strange behavior with TikZ

2017-10-07 Thread Fabrice Couvreur
te: >>> >>> Hi Hans >>>> Sorry to insist, but I need to correct this anomaly for my documents >>>> that >>>> >>> I >>> >>>> give to students. If I compile with Context Standalone, it does not >>>> work,

Re: [NTG-context] Strange behavior with TikZ

2017-10-07 Thread Hans Hagen
, but maybe I do not do what you are suggesting : I can confirm that color leakage. It happens due to pgfplots (and not tikz). I use tikz/pgfplots extensively and started wondering why I don't see this error. Then I realized that I use a modified definition of starttikzpicture in my code

Re: [NTG-context] Strange behavior with TikZ

2017-10-07 Thread Aditya Mahajan
: I can confirm that color leakage. It happens due to pgfplots (and not tikz). I use tikz/pgfplots extensively and started wondering why I don't see this error. Then I realized that I use a modified definition of starttikzpicture in my code: \define\starttikzpicture {\hbox\bgroup

Re: [NTG-context] Strange behavior with TikZ

2017-10-07 Thread Aditya Mahajan
On Sat, 7 Oct 2017, Fabrice Couvreur wrote: Hi Hans Sorry to insist, but I need to correct this anomaly for my documents that I give to students. If I compile with Context Standalone, it does not work, but maybe I do not do what you are suggesting : I can confirm that color leakage

Re: [NTG-context] Strange behavior with TikZ

2017-10-07 Thread Fabrice Couvreur
M, Fabrice Couvreur wrote: >> >> If I put any image, there is no problem : the title of the section is in >>> color and the text in black. >>> With a graphic made with TikZ, the title and the text are in color. >>> >> >> looks ok here >> >&

Re: [NTG-context] Strange behavior with TikZ

2017-10-05 Thread Fabrice Couvreur
HI Hans, like this ? \placefigure[none,right]{}{ \hbox{\switchtobodyfont[8pt]% Fabrice 2017-10-05 22:35 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 10/5/2017 7:26 PM, Fabrice Couvreur wrote: > > If I put any image, there is no problem : the title of the section is in >&g

Re: [NTG-context] Strange behavior with TikZ

2017-10-05 Thread Hans Hagen
On 10/5/2017 7:26 PM, Fabrice Couvreur wrote: If I put any image, there is no problem : the title of the section is in color and the text in black. With a graphic made with TikZ, the title and the text are in color. looks ok here \placefigure[none,right]{}{ \hbox{\switchtobodyfont[8pt

Re: [NTG-context] issue with external image and PDF/A-3a

2017-10-05 Thread luigi scarso
at > http://pdf.ousia.tk/transparent-pdf-a-3a.pdf). > > Using veraPDF (http://verapdf.org/), the output document doesn’t comply > with the validation profile requirements. > > As Luigi wisely predicted, external images may be problematic. > > I get one error, because of th

[NTG-context] issue with external image and PDF/A-3a

2017-10-05 Thread Pablo Rodriguez
wisely predicted, external images may be problematic. I get one error, because of the color of the external figure: https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-6243-2. The PDF object in question is the following: 12 0 obj <<

[NTG-context] Strange behavior with TikZ

2017-10-05 Thread Fabrice Couvreur
Hello, If I put any image, there is no problem : the title of the section is in color and the text in black. With a graphic made with TikZ, the title and the text are in color. Thank you for your help. Fabrice \usemodule[tikz] \usemodule [graph] \usemodule[pgfplots] \pgfplotsset{compat=newest

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

2017-09-23 Thread Henning Hraban Ramm
tpagemakeup[pagestate=start,page=no] >\color[red]{ >\vfill >\dorecurse{3}{ >\samplefile{klein} >\vfill >} >} > \stoppagemakeup Thank you very much: pagestate=start does the trick. Greetlings, Hraban --- http://www.fiee

[NTG-context] Centering an algorithm

2017-09-23 Thread Fabrice Couvreur
Hello, Wolfgang offered me a way to present an algorithm. Can not I center it ? Thank you. Fabrice \definecolor[MyBlue][c=0.06 , m=0.03, y=0.00, k=0.00] \defineframedtext [algorithmframe] [width=fit, background=color, foregroundstyle={\tt}, backgroundcolor=MyBlue

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

2017-09-21 Thread Hans Hagen
would also have such limitations) anyway, i do some extra checking now .. this was my test \starttext \startbuffer[makeup] \startpagemakeup[pagestate=start,page=no] \color[red]{ \vfill \dorecurse{3}{ \samplefile{klein} \vfill

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

2017-09-19 Thread Henning Hraban Ramm
WE. While the footer of the makeup layout goes away, the page number stays. In the example the blue box gets bigger and hides it, but it’s still there - you can see it if you use a transparent color, the same if you place it (or an image) on a layer (as I do in my real project). Greetlings, Hraban --

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

2017-09-19 Thread Pablo Rodriguez
eup[standard] > [page=no, > doublesided=no, > headerstate=empty, > footerstate=empty, > before=\setups{paginaoff}] > > \starttext > \input knuth > > \startpostponing[+2] > \startstandardmakeup > \setuppagenumbering[location=,] % doesn’t work > \f

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

2017-09-19 Thread Henning Hraban Ramm
=\textheight, background=color, backgroundcolor=blue, foregroundcolor=white, foregroundstyle=bold, frame=off, ]{This page should show no page number} \stopstandardmakeup \stoppostponing \dorecurse{5}{ \recurselevel \input tufte \par } \stoptext Greetlings, Hraban --- http

Re: [NTG-context] Background with rounded corners (Metafun)

2017-09-08 Thread Meer, Hans van der
lorB][c=0.00,m=0.27,y=1.00,k=0.00] > > \defineornament >[FrameTitle] >[preset=lefttop] >[ > frame=off, > foregroundstyle=\bfx, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, >] >

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
r[MyColorA][r=0.8784, g=0.8784, b=0.8784] > \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] > > \defineornament > [FrameTitle] > [preset=lefttop] > [ > frame=off, > foregroundstyle=\bfx, > fo

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Pablo Rodriguez
\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] \defineornament [FrameTitle] [preset=lefttop] [ frame=off, foregroundstyle=\bfx, foregroundcolor=white, b

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
Hi Aditya, I tried : \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant, alternative=serried, % text wrapped frame=off, corner=00

Re: [NTG-context] How to put a circle on top of a character

2017-08-29 Thread Otared Kavian
\mathring{A}$ out of the box! >> I see why I love ConTeXt :-) > I checked one of the stacker sub-mechanisms and fixed / extended something: > > \starttext > > \definemathstackers[symbol][voffset=-.30\mathexheight,hoffset=\zeropoint,color=red] > > \definemathover[symbo

Re: [NTG-context] How to put a circle on top of a character

2017-08-29 Thread Hans Hagen
\definemathstackers[symbol][voffset=-.30\mathexheight,hoffset=\zeropoint,color=red] \definemathover[symbol][interiorset]["2217] \startformula \mathover [symbol]{"2217} {A} \mathover [symbol]{"2218} {A} \mathover [symbol]{"2219} {A} \mathunder [

Re: [NTG-context] ICC profiles in the ConTeXt Suite?

2017-08-28 Thread Pablo Rodriguez
On 08/28/2017 02:53 PM, Henning Hraban Ramm wrote: > Am 2017-08-28 um 10:37 schrieb luigi scarso <luigi.sca...@gmail.com>: > >> One of the reason to not include a color profile in the standard distribution >> is that it's an advanced topic, a field for an advanced user. &g

Re: [NTG-context] ICC profiles in the ConTeXt Suite?

2017-08-28 Thread Henning Hraban Ramm
Am 2017-08-28 um 10:37 schrieb luigi scarso <luigi.sca...@gmail.com>: > One of the reason to not include a color profile in the standard distribution > is that it's an advanced topic, a field for an advanced user. > It's quite easy to make pdf that looks ok, but are not ok for pr

Re: [NTG-context] ICC profiles in the ConTeXt Suite?

2017-08-28 Thread luigi scarso
On Mon, Aug 28, 2017 at 10:03 AM, Henning Hraban Ramm <te...@fiee.net> wrote: > Hi, > just wanted to say THANK YOU for finally tackling that issue! > I want PDF/X etc. myself but always postponed it... One of the reason to not include a color profile in the standard distributi

Re: [NTG-context] PDF/X-1a(2001) ourput.

2017-08-26 Thread Peter Rolf
t\mkiv\ -- % PDF/X-1a:2001 \enabletrackers[backend.format,backend.variables] % add logging \setupbackend [format=PDF/X-1a:2001, intent=ISOcoated_v2_eci.icc] \setupinteraction [title=TITLE, subtitle=SUBTITLE, author=AUTHOR, keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}] -- The

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
apost). >> >> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] >> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] >> >> \defineornament >> [FrameTitle] >> [preset=lefttop] >> [ >> frame=off, >> foregroundsty

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
e metapost). >> >> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] >> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] >> >> \defineornament >> [FrameTitle] >> [preset=lefttop] >> [ >> frame=off, >> foregroundsty

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
[preset=lefttop] > [ > frame=off, > foregroundstyle=\bfx, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, > ] > > \defineframedtext > [FramedText] > [ > offset=0.6em, > toffset=\lineheight, >

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Aditya Mahajan
=\bfx, foregroundcolor=white, background=color, backgroundcolor=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant

[NTG-context] (again) issues with typing

2017-08-16 Thread Pablo Rodriguez
nts aren’t display in typing as in any other editor. All comment characters should be displayed the same, since none of them would affect to the final output. How can I get the same color for the whole comment (again, both markers and content)? Many thanks for your help, Pablo -- http://ww

Re: [NTG-context] avoid space after title

2017-08-16 Thread Rik Kabel
={Authors}] \startsection[title={Knuth}] \input knuth \stopsection \startsection[title={Tufte}] \input tufte \stopsection \setuphead[section] [before={\blackrule[width=\textwidth,color=green, height=\lineheight]}, after={\blackrule[width

Re: [NTG-context] avoid space after title

2017-08-16 Thread Pablo Rodriguez
tsection[title={Knuth}] \input knuth \stopsection \startsection[title={Tufte}] \input tufte \stopsection \setuphead[section] [before={\blackrule[width=\textwidth,color=green, height=\lineheight]}, after={\blackrule[width=\textwidth,color=re

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

2017-08-16 Thread Wolfgang Schuster
quot; local d = figures.getinfo(n) ... prints (probably to-string converted) resulting table: " close source > level 3, order 8, name 'd://Lukas/ConTeXt/Styles/PxLetter.sty' table={ ["request"]={ ["arguments"]=false, ["cache"]=false, ["color"]=

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,

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-16 Thread Fabrice Couvreur
hic{triangledone} > > fill lltriangle scaled 4cm withcolor darkred; > > \stopuseMPgraphic > > > > \defineoverlay[triangledone][\useMPgraphic{triangledone}] > > > > \def\Triangledone#1% > > {\framed > > [background=triangledone,frame=o

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Henri
][\uniqueMPgraphic{titled}] > > \startuseMPgraphic{triangledone} > fill lltriangle scaled 4cm withcolor darkred; > \stopuseMPgraphic > > \defineoverlay[triangledone][\useMPgraphic{triangledone}] > > \def\Triangledone#1% >   {\framed >   [background=triangledone,

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Henri
][\uniqueMPgraphic{titled}] > > \startuseMPgraphic{triangledone} > fill lltriangle scaled 4cm withcolor darkred; > \stopuseMPgraphic > > \defineoverlay[triangledone][\useMPgraphic{triangledone}] > > \def\Triangledone#1% >   {\framed >   [background=triangledone,

[NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Fabrice Couvreur
; \stopuseMPgraphic \defineoverlay[triangledone][\useMPgraphic{triangledone}] \def\Triangledone#1% {\framed [background=triangledone,frame=off,offset=overlay] {\tfb\color[white]{\bf#1}}} \startuseMPgraphic{triangledtwo} fill lrtriangle scaled 4cm withcolor darkred; \stopuseMPgraphic

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-10 Thread Fabrice Couvreur
ow to make the last page number interactive ? > > Hi Fabrice, > > I guess this might be what you want: > > \showframe > \setupinteraction > [state=start, > style=, > color=, > contrastcolor=, >

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-10 Thread Pablo Rodriguez
On 08/10/2017 12:35 PM, Fabrice Couvreur wrote: > [...] > How to make the last page number interactive ? Hi Fabrice, I guess this might be what you want: \showframe \setupinteraction [state=start, style=, color=, contrastcolor=, focus=st

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-10 Thread Fabrice Couvreur
lcolor=blue]{hyperref} >>> \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage >>> >>> >>> With Context, I tried this unsuccessfully ; >>> >>> \setupinteraction >>> [state=start, >>> style=, >>>

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-10 Thread Otared Kavian
Hello, >> With Latex, I did this : >> >> \usepackage[colorlinks=true,pdfstartview=FitV,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref} >> \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage >> >> >> With Context, I tried this

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-10 Thread Otared Kavian
or=blue,urlcolor=blue]{hyperref} > \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage > > > With Context, I tried this unsuccessfully ; > > \setupinteraction > [state=start, > style=, > color=\darkred, > contrastcolor=] > &g

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-10 Thread Fabrice Couvreur
t;> >> >> With Context, I tried this unsuccessfully ; >> >> \setupinteraction >> [state=start, >> style=, >> color=\darkred, >> contrastcolor=] >> >> \setuppagenumbering >> [alternative=, >>

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-10 Thread Hans Hagen
; \setupinteraction [state=start, style=, color=\darkred, contrastcolor=] \setuppagenumbering [alternative=, location={footer,right}, command={Page\,\pagenumber\,sur\,\lastpage } ] \setuppagenumbering[alternative=] \setupfootertexts[Page

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-09 Thread Pablo Rodriguez
a ConTeXt list. Personally, I don’t remember what the code above could achieve in LaTeX (I haven’t used it in the last decade). > With Context, I tried this unsuccessfully ; > > \setupinteraction > [state=start, > style=, > color=\darkred, > contrastcol

Re: [NTG-context] \setupcombinations and the after-key

2017-08-09 Thread Pablo Rodriguez
=10mm,after={\blank[10mm]}] Please, update the wiki, but first consider this: \setupexternalfigures[location={local, default}] \setupcombination [distance=5em, inbetween={\blackrule[width=.5\textwidth, color=red, height=1em]}, after={\blackrule[width=.5\textwidth, color=gre

[NTG-context] How can I add “page # of ##” on my document ?

2017-08-09 Thread Fabrice Couvreur
=, color=\darkred, contrastcolor=] \setuppagenumbering [alternative=, location={footer,right}, command={Page\,\pagenumber\,sur\,\lastpage } ] Thank you Fabrice ___ If your question

Re: [NTG-context] BUG: Colour spilling in btxrendering

2017-08-09 Thread Alan Braslau
. What I want are coloured links. > > Usually only the clickable area is coloured but in the bibliography > > it somehow "spills" over to the surrounding text as well. > > You are right, Henri. My guess was wrong. > > Link is in both cases the sa

Re: [NTG-context] BUG: Colour spilling in btxrendering

2017-08-08 Thread Pablo Rodriguez
ickable area is coloured but in the bibliography > it somehow "spills" over to the surrounding text as well. You are right, Henri. My guess was wrong. Link is in both cases the same field (doi). But the color is spilled over the whole refe

Re: [NTG-context] BUG: Colour spilling in btxrendering

2017-08-08 Thread Henri
h coloured links > > right now. > Hi Henri, > > I don’t think there is a problem with the bibliographies. > > It is only how you set up interaction in the document: > >   \setupinteraction[state=start, style=, color=, contrastcolor=] >   \enabledirectives[referen

Re: [NTG-context] BUG: Colour spilling in btxrendering

2017-08-08 Thread Pablo Rodriguez
bliographies. It is only how you set up interaction in the document: \setupinteraction[state=start, style=, color=, contrastcolor=] \enabledirectives[references.border] The directive only creates a gray border (which won’t be printed) to see where you may click. This fixes in my computer

Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد
ection] [alternative=margintext, color=white, style=\tfxx, before=, after=, commandafter={\setupparagraphintro[first] [{{\bf \getmarking[sectionnumber][current] \hspace[big]}}]}] \setuphead[subs

Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-06 Thread Pablo Rodriguez
% section > 3.0.1 % subsubsection > > 4 % section > 4.1% subsection > 4.1.1 % subsubsection > > How can we automate this? Hi Idris, if you only need a printed version, I think the following approach might help: \setupwhitespace[big] \setuphead[section] [alter

Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد
nk[big]}, before={\blank[big,medium]}, color=walayahgreen, alternative=text, insidesection=\hskip-1.2em] % textcommand=\SPACE] \setuphead[subsection] [style=\bf, after={\blank[big]}, before={\blank[big,medium]}, color=walayahgreen, alternativ

Re: [NTG-context] methods for numbered paragraphs

2017-08-06 Thread Wolfgang Schuster
ection][style=\bfa,after={\blank[big]},before={\blank[big,medium]},color=walayahblue] \setuphead[subsection][style=\bf,after={\blank[big]},before={\blank[big,medium]},color=walayahgreen,alternative=text,distance=0.28em] \setuphead[subsubsection][style=\tf,after={\blank[big]},before={\blank[big,

Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-05 Thread Idris Samawi Hamid ادريس سماوي حامد
I use subsections to mimic numbered paragraphs: ===section-intext.tex=== \setuphead[section][style=\bfa,after={\blank[big]},before={\blank[big,medium]},color=walayahblue] \setuphead[subsection][style=\bf,after={\blank[big]},before={\blank[big,medium]},color=walayahgreen,alternative=text,distance=

[NTG-context] methods for numbered paragraphs (ii)

2017-08-05 Thread Idris Samawi Hamid ادريس سماوي حامد
={\blank[big]},before={\blank[big,medium]},color=walayahblue] \setuphead[subsection][style=\bf,after={\blank[big]},before={\blank[big,medium]},color=walayahgreen,alternative=text,distance=0.28em] \setuphead[subsubsection][style=\tf,after={\blank[big]},before={\blank[big,medium]},color=walayahred

[NTG-context] methods for numbered paragraphs

2017-08-03 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear syndicate, Not sure if there is a canonical way to do numbered paragraphs. In the following, I use subsections to mimic numbered paragraphs: ===section-intext.tex=== \setuphead[section][style=\bfa,after={\blank[big]},before={\blank[big,medium]},color=walayahblue] \setuphead

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread r . ermers
Your suggestion with foregroundstyle and foregroundcolor works. Thank you! \setlayer[AddressBg] {\framed[width=55mm,height=30mm, align=right,background=color, backgroundcolor=lightgray, foregroundcolor=red,foregroundstyle=\ss\tfa]{\xmlall{#1}{/address}}} My question (my ’need’) was quite

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread Schmitz Thomas A.
> However, the color and style instructions (\ss\tfa) have no effect. I tried > to solve that, as a first step, by putting \ss before the \xmlall instruction: > > \startxmlsetups xlm:contact > \setlayer[AddressBg] {\framed[width=55mm,height=30mm, > align=righ

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread r . ermers
Hi Thomas, Thanks for your new suggestions. As a matter of fact, I yesterday found the following suggestion (http://wiki.contextgarden.net/Layers): \definelayer[AddressBg] [location={right,top}, y=6cm, x=12cm, color=red, style=\ss\tfa]. I used this in the sample suggested by you

Re: [NTG-context] letters in context mkiv

2017-07-31 Thread r . ermers
\xmlflushtext{#1}\par\stopxmlsetups\setupletterlayer  [address]  [alternative=setups,   y=6cm,   x=12cm,   color=red,   style=\ss\tfa]\startsetups[letter:section:content]    \getbuffer[lettercontent]\stopsetups%\startbuffer[lettercontent]%content of the letter \xmltext{#1}{/city}%\input knuth \relax

[NTG-context] letters in context mkiv

2017-07-30 Thread r . ermers
is used for adding a barcode to the address.\setupletterlayer[address][alternative=example,y=6cm,x=12cm,color=red,style=\tfa\sans]\startletter  [opening={Dear \xmltext{#1}{/prefix} \xmltext{#1}{/formalname},},   closing={Kind regards,},   subject={subject: your life in \xmltext{#1}{/city}},   signature

Re: [NTG-context] width of floats

2017-07-30 Thread Pablo Rodriguez
upfloat[Beispiel][ width=36mm, %~ maxwidth=.6\textwidth, offset=1em, background=color,backgroundcolor=yellow, inner=\hsize.95\textwidth %not very orthodox, anyway ] \setupcaption[Beispiel][ location=none,number=no ] \starttex

[NTG-context] width of floats

2017-07-28 Thread Henning Hraban Ramm
Ahoi, I wonder how I can limit the width of a custom float, neither "width" nor "maxwidth" seems to have any effect: \definefloat[Beispiel][Beispiele] \setupfloat[Beispiel][ %width=36mm, maxwidth=.6\textwidth, offset=1em, background=color,backgroundcolor=yel

[NTG-context] letters in context mkiv

2017-07-28 Thread r . ermers
to the address.\setupletterlayer[address][alternative=example,y=6cm,x=12cm,color=red,style=\tfa\sans]\startletter  [opening={Dear \xmltext{#1}{/prefix} \xmltext{#1}{/formalname},},   closing={Kind regards,},   subject={subject: your life in \xmltext{#1}{/city}},   signature={X}]\stopletter\stopxmlsetups

[NTG-context] letters in context mkiv

2017-07-28 Thread r . ermers
=example,y=6cm,x=12cm,color=red,style=\tfa\sans]\startletter  [opening={Dear \xmltext{#1}{/prefix} \xmltext{#1}{/formalname},},   closing={Kind regards,},   subject={subject: your life in \xmltext{#1}{/city}},   signature={X}]\stopletter\stopxmlsetups\startxmlsetups xml:address\xmlflush{#1

Re: [NTG-context] Couple of questions

2017-07-27 Thread Jan Willem Flamma
> On 28 Jul 2017, at 02:22, Gerion Entrup <gerion.entrup-c...@flump.de> wrote: > > > 1. Color of references and table of content: > How can I define/change the colors of references and the table of content? And > why are some references red and others green? > Th

[NTG-context] Couple of questions

2017-07-27 Thread Gerion Entrup
Hi, this is a rather long mail, but I'll add the answers to the wiki. For the future: Should I write one mail per question or all in one? :) 1. Color of references and table of content: How can I define/change the colors of references and the table of content? And why are some references red

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

2017-07-27 Thread Sebastian L.
is your makeup (I removed unrequired lines). And that's from my env.tex: \setupinteraction[state=start, color=GBlue, contrastcolor=GBlue] % also in mkiv! % color: different page, contrastcolor: same page \setupinteractionscreen[option=bookmark] \setuppagenumbering[state=start, location={footer

Re: [NTG-context] Metafun: setting pen size in properties

2017-07-25 Thread Aditya Mahajan
On Mon, 24 Jul 2017, Alan Braslau wrote: On Mon, 24 Jul 2017 10:26:25 +0200 Hans Hagen <pra...@wxs.nl> wrote: On 7/24/2017 1:40 AM, Aditya Mahajan wrote: Hi, Is it possible to set pen width using properties(...)? The following does not work (the color is set, but not the pen

[NTG-context] letters in context mkiv

2017-07-25 Thread r . ermers
.%kix is used for adding a barcode to the address.\setupletterlayer[address][alternative=example,y=6cm,x=12cm,color=red,style=\tfa\sans]\startletter  [opening={Dear \xmltext{#1}{/prefix} \xmltext{#1}{/formalname},},   closing={Kind regards,},   subject={subject: your life in \xmltext{#1}{/city

Re: [NTG-context] Metafun: setting pen size in properties

2017-07-24 Thread Alan Braslau
On Mon, 24 Jul 2017 10:26:25 +0200 Hans Hagen <pra...@wxs.nl> wrote: > On 7/24/2017 1:40 AM, Aditya Mahajan wrote: > > Hi, > > > > Is it possible to set pen width using properties(...)? The > > following does not work (the color is set, but not th

Re: [NTG-context] Metafun: setting pen size in properties

2017-07-24 Thread Hans Hagen
On 7/24/2017 1:40 AM, Aditya Mahajan wrote: Hi, Is it possible to set pen width using properties(...)? The following does not work (the color is set, but not the pen width): \starttext \startMPcode property p[] ; p[1] := properties(withcolor red withpen pencircle scaled 1bp); p[2

Re: [NTG-context] Metafun: setting pen size in properties

2017-07-23 Thread Alan Braslau
withproperties is an experimental, metafun extension that appears to cover color and pre/postscripts. It could be extended to cover withpen, etc. Look at mp-mplib.mkiv. properties() returns an image object that can hold many things. The graph package does similar tricks. Alan On Sun, 23 Jul

[NTG-context] Metafun: setting pen size in properties

2017-07-23 Thread Aditya Mahajan
Hi, Is it possible to set pen width using properties(...)? The following does not work (the color is set, but not the pen width): \starttext \startMPcode property p[] ; p[1] := properties(withcolor red withpen pencircle scaled 1bp); p[2] := properties(withcolor blue withpen pencircle scaled

Re: [NTG-context] replace characters with bounding boxes

2017-07-20 Thread Idris Samawi Hamid ادريس سماوي حامد
ames instead backgrounds? *\start|stopcolor[white] doesn't work when boundingbox is yes. Well, it's a tracing option so don't expect miracles and integration with other features (like color). I'll add things like \definefontfeature[default][default][boundingbox=yes] \definefontfeature[defa

Re: [NTG-context] replace characters with bounding boxes

2017-07-20 Thread Hans Hagen
. Well, it's a tracing option so don't expect miracles and integration with other features (like color). I'll add things like \definefontfeature[default][default][boundingbox=yes] \definefontfeature[default][default][boundingbox=background] \definefontfeature[default][default][boundingbox

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Aditya Mahajan
m] > \definevimtyping[python][syntax=python, escape=on] > > \starttext > \startpython[highlight=1] > # Returns \m{\sum_{i=1}^{n}i \in F \int_i f} > \stoppython > \stoptext > ``` By default, the highlighting is done using the bars mechanism. It works for simple cases but f

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Aditya Mahajan
s mechanism. It works  for simple cases but fails with math mode (the spaces are not covered).  One option is to highlight using the textbackground mechanism: \definetextbackground[texthighlight]  [    background=color,    backgroundcolor=gray,    frame=off,  ] \define[1]\texthighlig

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Henri Menke
rtpython[highlight=1] > > # Returns \m{\sum_{i=1}^{n}i \in F \int_i f} > > \stoppython > > \stoptext > > ``` > By default, the highlighting is done using the bars mechanism. It works  > for simple cases but fails with math mode (the spaces are not covered).  &

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Gerion Entrup
gt; # Returns \m{\sum_{i=1}^{n}i \in F \int_i f} > > \stoppython > > \stoptext > > ``` > > By default, the highlighting is done using the bars mechanism. It works > for simple cases but fails with math mode (the spaces are not covered). > One option is to highlight using the textbackgr

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Aditya Mahajan
using the textbackground mechanism: \definetextbackground[texthighlight] [ background=color, backgroundcolor=gray, frame=off, ] \define[1]\texthighlight{\starttexthighlight#1\stoptexthighlight} \usemodule[vim] \definevimtyping[python][syntax=python, escape

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-18 Thread Gerion Entrup
with TeX or ConTeXt to get the TeX part to work, so the escapechar '°' is hardcoded at the moment. If you like the patch, this has to be fixed. Another problem, as you see in the above example, is, that vim interprets the second ')' in the startcpp section as color code "Error", so the whol

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-17 Thread Aditya Mahajan
}^{n}i} def sum_upto(\m{n \in \mathbb{N}}) r = range(1, \m{n} + 1) return sum(r) \stoppython \stoptext ``` Another option will be to use the algorithmic module: https://bitbucket.org/wolfs/algorithmic/src/ 2. It would be cool, if I can define some background color for the code. Unfortunately

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-17 Thread Henri Menke
{n} + 1) > return sum(r) > \stoppython > \stoptext > ``` > > 2. It would be cool, if I can define some background color for the code.  > Unfortunately I'm very new to context and haven't seen a direct option. I  > assume this is possible with some kind of extra environment arou

[NTG-context] t-vim module: math in "normal" code and background color

2017-07-17 Thread Gerion Entrup
] \definevimtyping[python][syntax=python, escape=on] \starttext \startpython # Returns \m{\sum_{i=1}^{n}i} def sum_upto(\m{n \in \mathbb{N}}) r = range(1, \m{n} + 1) return sum(r) \stoppython \stoptext ``` 2. It would be cool, if I can define some background color for the code. Unfortunately I'm very new

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