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,
>
&
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]
\
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
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
] \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
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
\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
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
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
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
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,
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,
,
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
:
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
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
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
>>
>&
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
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
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
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
<<
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
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
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
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
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
--
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
=\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
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,
>]
>
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
\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
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
\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
\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 [
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
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
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
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
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
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
[preset=lefttop]
> [
> frame=off,
> foregroundstyle=\bfx,
> foregroundcolor=white,
> background=color,
> backgroundcolor=MyColorB,
> ]
>
> \defineframedtext
> [FramedText]
> [
> offset=0.6em,
> toffset=\lineheight,
>
=\bfx,
foregroundcolor=white,
background=color,
backgroundcolor=MyColorB,
]
\defineframedtext
[FramedText]
[
offset=0.6em,
toffset=\lineheight,
background=color,
backgroundcolor=MyColorA,
foregroundstyle={\switchtobodyfont[10pt]},
align=verytolerant
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
={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
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
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"]=
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,
hic{triangledone}
> > fill lltriangle scaled 4cm withcolor darkred;
> > \stopuseMPgraphic
> >
> > \defineoverlay[triangledone][\useMPgraphic{triangledone}]
> >
> > \def\Triangledone#1%
> > {\framed
> > [background=triangledone,frame=o
][\uniqueMPgraphic{titled}]
>
> \startuseMPgraphic{triangledone}
> fill lltriangle scaled 4cm withcolor darkred;
> \stopuseMPgraphic
>
> \defineoverlay[triangledone][\useMPgraphic{triangledone}]
>
> \def\Triangledone#1%
> {\framed
> [background=triangledone,
][\uniqueMPgraphic{titled}]
>
> \startuseMPgraphic{triangledone}
> fill lltriangle scaled 4cm withcolor darkred;
> \stopuseMPgraphic
>
> \defineoverlay[triangledone][\useMPgraphic{triangledone}]
>
> \def\Triangledone#1%
> {\framed
> [background=triangledone,
;
\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
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=,
>
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
lcolor=blue]{hyperref}
>>> \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage
>>>
>>>
>>> With Context, I tried this unsuccessfully ;
>>>
>>> \setupinteraction
>>> [state=start,
>>> style=,
>>>
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
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
t;>
>>
>> With Context, I tried this unsuccessfully ;
>>
>> \setupinteraction
>> [state=start,
>> style=,
>> color=\darkred,
>> contrastcolor=]
>>
>> \setuppagenumbering
>> [alternative=,
>>
;
\setupinteraction
[state=start,
style=,
color=\darkred,
contrastcolor=]
\setuppagenumbering
[alternative=,
location={footer,right},
command={Page\,\pagenumber\,sur\,\lastpage } ]
\setuppagenumbering[alternative=]
\setupfootertexts[Page
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
=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
=,
color=\darkred,
contrastcolor=]
\setuppagenumbering
[alternative=,
location={footer,right},
command={Page\,\pagenumber\,sur\,\lastpage } ]
Thank you
Fabrice
___
If your question
. 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
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
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
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
ection]
[alternative=margintext,
color=white,
style=\tfxx,
before=,
after=,
commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[sectionnumber][current]
\hspace[big]}}]}]
\setuphead[subs
% 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
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
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,
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=
={\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
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
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
> 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
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
\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
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
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
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
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
=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
> 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
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
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
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
.%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
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
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
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
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
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
.
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
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
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
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).
&
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
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
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
}^{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
{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
]
\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
1301 - 1400 of 5306 matches
Mail list logo