Re: [NTG-context] installing ConTeXt on ARM linux

2017-10-05 Thread Hans Hagen

On 10/5/2017 10:52 PM, Floris van Manen wrote:
trying to install ConTeXt on an ARM (ubuntu) linux hos, then get this 
message with the request to report is on the mailing list:


$ sh ./first-setup.sh --engine=luatex
Error: your system "Linux aarch64" is not supported yet.
Please report to the ConTeXt mailing-list (ntg-context@ntg.nl 
)


is there a (beta) working version somewhere?
these are some arm bins on the context garden but mojca can tell more 
about that


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] installing ConTeXt on ARM linux

2017-10-05 Thread Floris van Manen
trying to install ConTeXt on an ARM (ubuntu) linux hos, then get this message 
with the request to report is on the mailing list:

$ sh ./first-setup.sh --engine=luatex
Error: your system "Linux aarch64" is not supported yet.
Please report to the ConTeXt mailing-list (ntg-context@ntg.nl)

is there a (beta) working version somewhere?

Thanks
.F


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 :

> 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]
>>
>
> add a % after the above line (otherwise you get a space)
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The N
> 
> etherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> 
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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

2017-10-05 Thread Pablo Rodriguez
On 10/05/2017 09:05 PM, luigi scarso wrote:
> On Thu, Oct 5, 2017 at 8:18 PM, Pablo Rodriguez wrote:
>> [...]
>> Well, this is a minimal sample, but my real document is much bigger. Is
>> there any way to convert the stream to something that ConTeXt can handle
>> directly?
> 
> hm, the only reliable way that I know w is to convert it to a flattened png

Many thanks for your reply, Luigi.

The real graphic is a vector logo and I need to keep it as a vector
image. I converted it from a SVG source into a PDF document (years ago).

I cannot remember if the vector image contains transparency. If needed,
I would remove it from the image.

The way to convert it may be using Inkscape into a PostScript document
and then to MetaPost using pstoedit (as I have just discovered).

Is that right or could something get lost in the translation?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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]


add a % after the above line (otherwise you get a space)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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

2017-10-05 Thread luigi scarso
On Thu, Oct 5, 2017 at 8:18 PM, Pablo Rodriguez  wrote:
> Dear list,
>
> I have this minimal sample:
>
> \setupbackend
>   [format=PDF/A-3a,
>intent=sRGB IEC61966-2.1,
>profile={sRGB.icc,default_gray.icc},
>level=0]
>
> \setuptagging[state=start]
>
> \setupcolors[cmyk=no]
>
> \startTEXpage[offset=1em]
> \externalfigure[transparent]
> \stopTEXpage
> \stoptext
>
> The external figure is available from
> http://pdf.ousia.tk/transparent.pdf (and output file 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 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
> <<
>   /Type /XObject
>   /Subtype /Form
>   /FormType 1
>   /BBox [ 0 0 316.896 215.5669 ]
>   /Group <<
> /Type /Group
> /S /Transparency
> /I true
> /CS /DeviceRGB
>   >>
>   /Resources 21 0 R
>   /Length 71
> >>
> stream
> q
> 0.188235 0.392157 0 rg /a0 gs
> 28.348 187.219 260.203 -158.871 re f
> Q
> endstream
> endobj
>
> Well, this is a minimal sample, but my real document is much bigger. Is
> there any way to convert the stream to something that ConTeXt can handle
> directly?


hm, the only reliable way that I know w is to convert it to a flattened png
$> convert transparent.pdf -density 300 -colorspace RGB -flatten transparent.png

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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

2017-10-05 Thread Pablo Rodriguez
Dear list,

I have this minimal sample:

\setupbackend
  [format=PDF/A-3a,
   intent=sRGB IEC61966-2.1,
   profile={sRGB.icc,default_gray.icc},
   level=0]

\setuptagging[state=start]

\setupcolors[cmyk=no]

\startTEXpage[offset=1em]
\externalfigure[transparent]
\stopTEXpage
\stoptext

The external figure is available from
http://pdf.ousia.tk/transparent.pdf (and output file 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 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
<<
  /Type /XObject
  /Subtype /Form
  /FormType 1
  /BBox [ 0 0 316.896 215.5669 ]
  /Group <<
/Type /Group
/S /Transparency
/I true
/CS /DeviceRGB
  >>
  /Resources 21 0 R
  /Length 71
>>
stream
q
0.188235 0.392157 0 rg /a0 gs
28.348 187.219 260.203 -158.871 re f
Q
endstream
endobj

Well, this is a minimal sample, but my real document is much bigger. Is
there any way to convert the stream to something that ConTeXt can handle
directly?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[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}

\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=magenta,
style=]


\starttext
\startsection[title={Résoudre graphiquement une équation
\math{f(x)=g(x)}},sectionsegments=section,color=magenta]

\placefigure[none,right]{}{
\hbox{\switchtobodyfont[8pt]
\starttikzpicture[/pgf/declare function={f(\x)=\x^2-3;},/pgf/declare
function={g(\x)=-\x^2+2*\x+1;}]
\startaxis[
 restrict x to domain=-3:3, xmax=3, xmin=-3,
 restrict y to domain=-5:4, ymax=4, ymin=-5,
 x=1cm,
 y=0.5cm,
 axis x line = middle,
 axis y line = middle,
 axis line style = thick,
 major grid style=Mycolor,
 minor grid style=Mycolor,
 grid=both,
 xtick={-2,...,2},
 ytick={-4,...,3},
 extra x ticks={-3,3},
 extra x tick label={\null},
 extra y ticks={-5,4},
 extra y tick label={\null},
 extra tick style={tick style={draw=none}},
 every tick/.style={
black,
thick,
  },
 y tick label style={
   /pgf/number format/1000 sep={}
   },
 xlabel=$x$,ylabel=$y$,
 every axis x label/.style={
at={(ticklabel* cs:1.01)},
anchor=west,
},
every axis y label/.style={
at={(ticklabel* cs:1.01)},
anchor=south,
},
 samples=2000,
 >=stealth,
  ]
\addplot[only marks,mark=x,color=black,mark options={scale=1.5},
thick] table[x=Nombre,y=Valeur]{
   Nombre   Valeur
-1   -2
 2   1
} ;
\addplot [smooth,domain=-1.5:2.5, thick,magenta] {f(x)} ;
\addplot [smooth,domain=-1.5:2.5, thick,green] {g(x)} ;

\node[above left,green] at (2,2) {\math{{\cal C}_g}} ;
\node[below right,magenta] at (1.5,-1) {\math{{\cal C}_f}} ;
\node[below left ] at (-0.1,-0.1) {\math{0}} ;

\node[fill=black,circle,scale=0.4,magenta] at (-1.5,{f(-1.5)}){} ;
\node[fill=black,circle,scale=0.4,magenta] at (2.5,{f(2.5)}){} ;

\node[fill=black,circle,scale=0.4,green] at (-1.5,{g(-1.5)}){} ;
\node[fill=black,circle,scale=0.4,green] at (2.5,{g(2.5)}){} ;

\stopaxis
\stoptikzpicture}}

\input knuth

\stopsection

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Troubleshooting pdf bookmarks

2017-10-05 Thread Pablo Rodriguez
On 10/04/2017 11:12 PM, Alan Braslau wrote:
>> On 29 Sep 2017, at 00:24, Pablo Rodriguez wrote:
>> MuPDF-1.11 displays bookmarks (see attached image).
>>
>> This is the GL version, I don’t know how to do that in the X11 version
>> (I don’t even know if the feature is available in the X11 version).
> 
> Unfortunately, the GL version is broken on ALL of my platforms.

I have glfw-3.2.1 in my Fedora 25 machine and it works fine.

Just in case it might help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Tabulate and \VL

2017-10-05 Thread Hans Hagen

On 10/5/2017 8:57 AM, Procházka Lukáš Ing. wrote:

Hello,

maybe a very basic question -
- but in the sample bellow the VL of the first row is drawn only to 
height of the first line of the 2line paragraph;

how to make the VL "full-height"?

it needs an extension so you have to be patient


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Another question to structured trees for linguistics

2017-10-05 Thread Ursula Hermann
Hi everybody!

 

I have another question to this thread: if I need a structured tree  for
lingustics, i mean a structured tree with senteces, can I use also mp-trees?

 

I ask, because at Ctan I found a package called "qtrees". So in this package
ist called \Tree and then there comes the following: [.S This [.VP [.V is
]\roof{a simple tree}.NP ] ] for example . Or how would I write it in
metapost?

 

Can somebody help me? 

 

Uschi 

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___