Re: [NTG-context] Completecontent has problems with chapter, in table

2018-12-03 Thread Wolfgang Schuster
{\structureuservariable{image}}{\midaligned{\externalfigure[\structureuservariable{image}]}\endgraf} \headsetupspacing \setbox\scratchbox\hbox{\headnumbercontent} \hangindent\dimexpr\wd\scratchbox+\headnumberdistance\relax \noindent \box\scratchbox\hskip\headnumberdistance

Re: [NTG-context] Completecontent has problems with chapter in table

2018-11-24 Thread Wolfgang Schuster
. The original table in my current project looks like this: \setupTABLE[c][each][align={high},frame=off] \bTABLE \bTR \bTD \externalfigure[path/image.jpg][height=2cm] \eTD \bTD \vskip-4\lineheight \chapter{chapter title} \eTD \eTR \eTABLE So I have a chapter with a image on the left. I dont

Re: [NTG-context] Completecontent has problems with chapter, in table

2018-11-23 Thread Huseyin Özoguz
How can I adjust the vertical position of the actual title relative to the image? I have this: \define[2]\uber{% \setuphead[chapter][before={},alternative=middle, numbercommand={\externalfigure[historische_spuren/wappen/#1.jpg][height=2cm]}] \chapter{#2} } But the title is now below

Re: [NTG-context] Completecontent has problems with chapter in table

2018-11-23 Thread Huseyin Özoguz
Hello, something like this? \setupexternalfigures[location=default] \define[1]\MyNumCmd{% \externalfigure[hacker][height=2cm] } \setuphead[chapter][numbercommand=\MyNumCmd] \starttext \chapter{Ch} \input knuth \stoptext Best regards, Lukas Thank you, yes that would

Re: [NTG-context] Completecontent has problems with chapter in table

2018-11-23 Thread Verlag Eslamica
Hello, something like this? \setupexternalfigures[location=default] \define[1]\MyNumCmd{% \externalfigure[hacker][height=2cm] } \setuphead[chapter][numbercommand=\MyNumCmd] \starttext \chapter{Ch} \input knuth \stoptext Best regards, Lukas Thank you, yes that would

Re: [NTG-context] Completecontent has problems with chapter in table

2018-11-23 Thread Procházka Lukáš Ing .
Hello, something like this? \setupexternalfigures[location=default] \define[1]\MyNumCmd{% \externalfigure[hacker][height=2cm] } \setuphead[chapter][numbercommand=\MyNumCmd] \starttext \chapter{Ch} \input knuth \stoptext Best regards, Lukas On Fri, 23 Nov 2018 09:13:39

Re: [NTG-context] Completecontent has problems with chapter in table

2018-11-23 Thread Huseyin Özoguz
, but the design. That was only a min-example to reproduce my problem. The original table in my current project looks like this: \setupTABLE[c][each][align={high},frame=off] \bTABLE \bTR \bTD \externalfigure[path/image.jpg][height=2cm] \eTD \bTD \vskip-4\lineheight \chapter{chapter title} \eTD \eTR

Re: [NTG-context] PDF/A output fails validation

2018-11-22 Thread Rik Kabel
ethod=auto ==> default tags by Adobe \setupbackend[export=yes] \setupstructure[state=start,method=auto] \starttext \chapter[chap:testing]{Testing} \input knuth \input tufte \input knuth \placefigure[middle][fig:foo]   {This is an image}   {\externalfigure[cow.jpg]} \input tufte \input

Re: [NTG-context] PDF/A output fails validation

2018-11-22 Thread luigi scarso
5}, % OK %format={pdf/a-1a:2005}, % OK %format={pdf/a-2a}, % OK format={pdf/a-3a}, % OK profile={srgb.icc,default_gray.icc}, intent=ISO coated v2 300\letterpercent\space (ECI)] %% Tagged PDF %% method=auto ==> default tags by Adobe \setupbackend[export=yes] \setupstructure[state=s

Re: [NTG-context] checking text boundaries

2018-11-08 Thread Andrea Valle
n 8 Nov 2018, at 00:24, Andrea Valle > <mailto:va...@di.unito.it>> wrote: >> >> Dear all, >> >> I’m typesetting a book, and I have many figures on white background. >> I’m scaling figures using something like this >> >> \placefigure[][volumina]{G.

Re: [NTG-context] checking text boundaries

2018-11-07 Thread Otared Kavian
\placefigure[][volumina]{G. Ligeti, {\em Volumina}.}{ > \externalfigure[img/chap02/11][width=\textwidth]} > > > is there a way to plot text boundaries so to check by eye if they’re > contained inside it? > > Thanks > > Best > > -a- > > > &

[NTG-context] checking text boundaries

2018-11-07 Thread Andrea Valle
Dear all, I’m typesetting a book, and I have many figures on white background. I’m scaling figures using something like this \placefigure[][volumina]{G. Ligeti, {\em Volumina}.}{ \externalfigure[img/chap02/11][width=\textwidth]} is there a way to plot text boundaries so to check by eye

Re: [NTG-context] insert natural table at the top left of some png

2018-10-15 Thread Damien Thiriet
tés \eTH > \eTR > \bTR > \bTD > \externalfigure[t:/sources/mill.png][height=12bp] > \eTD > \bTD > zones urbaines > \eTD > \eTR > \bTR > \bTD >

Re: [NTG-context] insert natural table at the top left of some png

2018-10-15 Thread Hans Hagen
) -- (20,0) ; drawarrow p withcolor \MPcolor{canaux} withpen pencircle scaled 2pt; \stopreusableMPgraphic \startbuffer \bTABLE[frame=off] \setupTABLE[column][1,3][align={middle,lohi}] \bTR \bTH 1) \eTH \bTH Le milieu \eTH \bTH 2) \eTH \bTH Les activités \eTH \eTR \bTR \bTD \externalfigure

[NTG-context] insert natural table at the top left of some png

2018-10-15 Thread Damien Thiriet
{canaux} withpen pencircle scaled 2pt; \stopreusableMPgraphic \startbuffer \bTABLE[frame=off] \setupTABLE[column][1,3][align={middle,lohi}] \bTR \bTH 1) \eTH \bTH Le milieu \eTH \bTH 2) \eTH \bTH Les activités \eTH \eTR \bTR \bTD \externalfigure[illustrations/zone_urbaine][height=12bp] \eTD

Re: [NTG-context] Using context.setupexternalfigures

2018-10-09 Thread Hans Hagen
env('IMG_PATH'):gsub('\\', '/')}}} context.setupexternalfigures({'images', os.getenv('TEX_PATH'):gsub('\\', '/')}) } \starttext \externalfigure[cow] \stoptext Called with $env:IMG_PATH = 'D:\Applications\Context\tex\texmf-context\tex\context\sample\common'; context test.tex Additionally, using a

[NTG-context] Using context.setupexternalfigures

2018-10-09 Thread moi
rnalfigures({'images', os.getenv('TEX_PATH'):gsub('\\', '/')}) } \starttext \externalfigure[cow] \stoptext Called with $env:IMG_PATH = 'D:\Applications\Context\tex\texmf-context\tex\context\sample\common'; context test.tex Additionally, using a path with non-ascii symbols in environment variables d

Re: [NTG-context] Can anyone connect context to R or python?

2018-10-06 Thread Aditya Mahajan
$ \startplacefigure [title={Step response of the LTI system described in \eqref[eq:sys]}] \externalfigure[step-response.pdf] \stopplacefigure \stoptext What I want to do is to be able to change the transfer function (given in the formula) and regenerate the plot. Something

Re: [NTG-context] handling an external sag file as a text character

2018-10-02 Thread Wolfgang Schuster
\setupexternalfigure[location=default] \definefiguresymbol [textmill] [mill] [height=1.7ex] \starttext A \externalfigure[mill][height=1.7ex] B \figuresymbol[mill] C \figuresymbol[mill][height=1.7ex] D \symbol[textmill] E \stoptext Wolfgang Floris van Manen schrieb am 02.10.18 um 20:07

Re: [NTG-context] Metafun scaling problem

2018-10-02 Thread Lutz Haseloff
scaling included pdf >files. >> My minimal file: >> >> \startMPpage >> draw externalfigure "cow.pdf" ; >> \stopMPpage >> >> The resulting pdf is, as the original, 97x70.6 mm, all ok. >> >> If I try to scale to the original siz

Re: [NTG-context] Metafun scaling problem

2018-10-02 Thread luigi scarso
text \startTEXpage \startMPcode{doublefun} draw externalfigure "cow.pdf" xscaled 97mm yscaled 70.6mm ; \stopMPcode \stopTEXpage \stoptext Page size: 13999.8 x 7410.6 pts -- luigi ___ If your quest

Re: [NTG-context] Metafun scaling problem

2018-10-02 Thread Hans Hagen
On 10/2/2018 7:03 AM, Lutz Haseloff wrote: Hi Hans, hi all, I think, that recent context has a problem with scaling included pdf files. My minimal file: \startMPpage draw externalfigure "cow.pdf" ; \stopMPpage The resulting pdf is, as the original, 97x70.6 mm, all ok. If I tr

Re: [NTG-context] Metafun scaling problem

2018-10-02 Thread Lutz Haseloff
Hans, hi all, >> >> I think, that recent context has a problem with scaling included pdf >files. >> My minimal file: >> >> \startMPpage >> draw externalfigure "cow.pdf" ; >> \stopMPpage >> >> The resulting pdf is, as the origin

Re: [NTG-context] Metafun scaling problem

2018-10-01 Thread luigi scarso
On Tue, Oct 2, 2018 at 7:03 AM Lutz Haseloff wrote: > Hi Hans, hi all, > > I think, that recent context has a problem with scaling included pdf files. > My minimal file: > > \startMPpage > draw externalfigure "cow.pdf" ; > \stopMPpage > > The resulting pdf

[NTG-context] Metafun scaling problem

2018-10-01 Thread Lutz Haseloff
Hi Hans, hi all, I think, that recent context has a problem with scaling included pdf files. My minimal file: \startMPpage draw externalfigure "cow.pdf" ; \stopMPpage The resulting pdf is, as the original, 97x70.6 mm, all ok. If I try to scale to the original size, i get arithmeti

Re: [NTG-context] Position of image in tabulate

2018-09-25 Thread Floris van Manen
> On 22 Sep 2018, at 18:29, Hans Hagen wrote: > > On 9/22/2018 4:36 PM, Jan U. Hasecke wrote: >> Hi, >> with the following code >> \starttext >> \starttabulate[|w(.4\textwidth)|p|] >> \NC\externalfigure[cow.pdf][width=.3\textwidth] >> \NC \i

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-25 Thread Marco Patzer
I use layers on page 2-4 to have bleeding > images on the top of the page. This works more or less. > > But as you can see there are blank white spaces between the images of > page 2-4. Maybe I can adjust this by using absolut measures like 100mm > or 97mm in the layers. Your dimensions

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-24 Thread Jan U. Hasecke
tupbodyfont [mainface,10pt] \setuptolerance [verytolerant] \mainlanguage [de] \setbreakpoints[compound] \definelayer[Hintergrund] [x=0, y=0, width=\paperwidth, height=\paperwidth] \setlayer[Hintergrund] [x=1.2cm, y=1cm] {\externalfigure[../bilder/logo.pdf][width=7cm]} \definelayer[topic1] [x=-3mm,

Re: [NTG-context] Position of image in tabulate

2018-09-22 Thread Hans Hagen
On 9/22/2018 4:36 PM, Jan U. Hasecke wrote: Hi, with the following code \starttext \starttabulate[|w(.4\textwidth)|p|] \NC\externalfigure[cow.pdf][width=.3\textwidth] \NC \input ward\NC\NR \stoptabulate \stoptext the text input starts at the bottom edge of the image going further down. I

[NTG-context] Position of image in tabulate

2018-09-22 Thread Jan U. Hasecke
Hi, with the following code \starttext \starttabulate[|w(.4\textwidth)|p|] \NC\externalfigure[cow.pdf][width=.3\textwidth] \NC \input ward\NC\NR \stoptabulate \stoptext the text input starts at the bottom edge of the image going further down. I want the text to start at the top edge

Re: [NTG-context] list of figures

2018-09-14 Thread cryo shock
, a lotta ins, a lotta > outs, a lotta what-have-yous." > (Jeffrey 'The Dude' Lebowski) > >> On 14 Sep 2018, at 10:58, Henri Menke wrote: >> >> On 14/09/18 20:50, Andrea Valle wrote: >>> Dear all, >>> >>> I have a very simple question. &

Re: [NTG-context] list of figures

2018-09-14 Thread Andrea Valle
The Dude' Lebowski) > On 14 Sep 2018, at 10:58, Henri Menke wrote: > > On 14/09/18 20:50, Andrea Valle wrote: >> Dear all, >> >> I have a very simple question. >> >> How do I get a list of figures? > > \starttext > > \completelist[figure] >

Re: [NTG-context] list of figures

2018-09-14 Thread Henri Menke
On 14/09/18 20:50, Andrea Valle wrote: > Dear all, > > I have a very simple question. > > How do I get a list of figures? \starttext \completelist[figure] \startplacefigure[title={S. Reich, {\em Piano Phase}.}] \externalfigure[img/chap01/2][width=\textwidth] \stopplacefi

[NTG-context] list of figures

2018-09-14 Thread Andrea Valle
Dear all, I have a very simple question. How do I get a list of figures? I have figures placed with e.g. \placefigure{S. Reich, {\em Piano Phase}.}{ \externalfigure[img/chap01/2][width=\textwidth]} I tried \showexternalfigures[alternative=a] it gives me back no list and this on the body

Re: [NTG-context] ConTeXt ignores crop in some pdf graphics

2018-09-05 Thread Mari Voipio
/GS6 6 0 R > > >> > > >> > > /Type /Page > > >> > > endobj > > > I would say, that in the following sample: > > \starttext > > \externalfigure[ex.pdf][size=crop] > > \stoptext > > >

Re: [NTG-context] ConTeXt ignores crop in some pdf graphics

2018-09-05 Thread luigi scarso
5 445.535 ] > > /MediaBox [ -9 -9 604.276 850.89 ] > > /TrimBox [ 265.961 392.102 329.315 445.535 ] > > /Resources << > > /ProcSet [ /PDF ] > > /ExtGState << > > /GS6 6 0 R > > >> > > >

Re: [NTG-context] ConTeXt ignores crop in some pdf graphics

2018-09-05 Thread Pablo Rodriguez
/ExtGState << /GS6 6 0 R >> >> /Type /Page >> endobj I would say, that in the following sample: \starttext \externalfigure[ex.pdf][size=crop] \stoptext the option "size" doesn’t seem to wor

Re: [NTG-context] ConTeXt ignores crop in some pdf graphics

2018-09-04 Thread Henning Hraban Ramm
l if necessary. However, it would be > preferable if ConTeXt can be forced to take the cropping into account. > I tried looking for a solution on the wiki, but it wasn't very helpful > (or I don't know what I'm looking for). I thought adding something to > \externalfigure might do the tric

[NTG-context] ConTeXt ignores crop in some pdf graphics

2018-09-03 Thread Mari Voipio
thought adding something to \externalfigure might do the trick, but there doesn't seem to be a suitable key. Thanks, Mari cropping_problem.pdf Description: Adobe PDF document cropping_problem.tex Description: Binary data ex.pdf Description: Adobe PDF document

Re: [NTG-context] Some questions about an extreme table

2018-08-26 Thread Fabrice Couvreur
; > \defineexternalfigure[dummy][width=4cm,height=3cm] > > > > \setuplayout[grid=yes] > > > > \showgrid > > > > \starttext > > > > Default: \externalfigure[dummy] > > > > %1: \bottomrightbox{\externalfigure[dummy]}\quad > > 1: \ali

Re: [NTG-context] Some questions about an extreme table

2018-08-26 Thread Aditya Mahajan
be better. Which alignment you’re using is your choice. \useMPlibrary[dum] \defineexternalfigure[dummy][width=4cm,height=3cm] \setuplayout[grid=yes] \showgrid \starttext Default: \externalfigure[dummy] %1: \bottomrightbox{\externalfigure[dummy]}\quad 1: \aligned[bottom,right

Re: [NTG-context] Some questions about an extreme table

2018-08-26 Thread Wolfgang Schuster
choice. \useMPlibrary[dum] \defineexternalfigure[dummy][width=4cm,height=3cm] \setuplayout[grid=yes] \showgrid \starttext Default: \externalfigure[dummy] %1: \bottomrightbox{\externalfigure[dummy]}\quad 1: \aligned[bottom,right]{\externalfigure[dummy]}\quad 2: \tbox{\externalfigure[dummy

Re: [NTG-context] Some questions about an extreme table

2018-08-26 Thread Wolfgang Schuster
\startxcell Tableau de \\ signes de \\ \m{B'(x)} \stopxcell \startxcell \startItem{d.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell \startxcell \startItem{e.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell

Re: [NTG-context] Some questions about an extreme table

2018-08-25 Thread Mikael P. Sundqvist
\stopxrow > \startxrow > \startxcell > Tableau de \\ signes de \\ \m{B'(x)} > \stopxcell > \startxcell > \startitemize[packed,a] > \startitem > \Item{{\externalfigure[dummy]}} >

[NTG-context] Some questions about an extreme table

2018-08-25 Thread Fabrice Couvreur
\startxcell Tableau de \\ signes de \\ \m{B'(x)} \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{{\externalfigure[dummy]}} \stopitem \stopitemize \stopxcell

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-16 Thread Wolfgang Schuster
}} \ruledhbox to \hsize{\hbox{Q}\hss\hbox{B}} \ruledhbox to \hsize{\hbox{\smash[d]{Q}}\hss\hbox{B}} \stoptext \setupfootertexts [margin] [] [{\externalfigure[logo.png][height=]}] [] [{\externalfigure[logo.png][height=]}] \setupfootertexts[{Page \pagenumber\ of \goto{\lastpagenumber}[lastpage

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-16 Thread Fabrice Couvreur
}[lastpage]}] \setupfootertexts [margin] [] [{\externalfigure[logo.png][height=]}] [] [{\externalfigure[logo.png][height=]}] \starttext \dorecurse{20}{\input knuth} \stoptext [image: logo.png] Le mer. 15 août 2018 à 06:10, Henri Menke a écrit : > You have to

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-14 Thread Henri Menke
{rightmargin}+\layoutparameter{rightmargindistance}\relax] \setupfooter[margin][strut=no] \setupfootertexts [margin] [] [{\externalfigure[dummy][width=\rightmarginwidth,height=\footerheight]}] [] [{\externalfigure[dummy][width=\leftmarginwidth,height=\footerheight]}] \starttext \dorecurse{10

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-14 Thread Fabrice Couvreur
=10mm, header=10mm, footer=10mm, footerdistance=10mm, headerdistance=10mm] \setupfooter[margin][strut=no] \setupfootertexts [margin] [] [{\externalfigure[dummy][width=,height=\footerheight]}] [] [{\externalfigure[dummy][width=\marginwidth,height=\footerheight

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-14 Thread Henri Menke
,    topspace=10mm,    bottomspace=10mm,    header=10mm,    footer=10mm,    footerdistance=10mm,    headerdistance=10mm] \setupfooter[margin][strut=no] \setupfootertexts     [margin]     []     [{\externalfigure[dummy][width=\marginwidth,height=\footerheight

[NTG-context] Logo in the margin at the bottom of the page

2018-08-14 Thread Fabrice Couvreur
=10mm, footer=10mm, footerdistance=10mm, headerdistance=10mm] \setupfootertexts [margin] [] [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}] [] [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}] \starttext \dorecurse{10}{\page

Re: [NTG-context] column-spanning floats

2018-08-01 Thread Dr. Thomas Möbius
On Tue, 31 Jul 2018 14:06:43 +0200 Taco Hoekwater wrote: > > > > On 31 Jul 2018, at 13:57, Taco Hoekwater wrote: > > > > Hi all, > > > > It used to be that in an example like the one attached where you > > were using \startcolumns and used

Re: [NTG-context] column-spanning floats

2018-07-31 Thread Taco Hoekwater
> On 31 Jul 2018, at 13:57, Taco Hoekwater wrote: > > Hi all, > > It used to be that in an example like the one attached where you were using > \startcolumns and used an \externalfigure that was wider than the column > width, > the figure would automatically be mo

[NTG-context] column-spanning floats

2018-07-31 Thread Taco Hoekwater
Hi all, It used to be that in an example like the one attached where you were using \startcolumns and used an \externalfigure that was wider than the column width, the figure would automatically be moved to the top of _both_ columns on the next page. That was a bit tricky sometimes

Re: [NTG-context] Placement of a figure made with TiKz

2018-07-29 Thread Hans Hagen
} \setuplayout   [height=middle,    width=middle,    backspace=2cm,    topspace=10mm,    bottomspace=10mm,    header=10mm,    footer=10mm,    footerdistance=10mm,    headerdistance=10mm] \showframe \starttext \placefigure[right]{first}{\externalfigure[dummy]} \placefigure[right]{second

[NTG-context] Placement of a figure made with TiKz

2018-07-29 Thread Fabrice Couvreur
, backspace=2cm, topspace=10mm, bottomspace=10mm, header=10mm, footer=10mm, footerdistance=10mm, headerdistance=10mm] \showframe \starttext \placefigure[right]{first}{\externalfigure[dummy]} \placefigure[right]{second}{ \hbox{ \starttikzpicture[thick] \switchtobodyfont[9pt

Re: [NTG-context] Question to covers

2018-07-21 Thread Hans Hagen
On 7/21/2018 7:12 PM, Henning Hraban Ramm wrote: Hi Wolfgang, thank you so much! If we put the externalfigure setup in front, we can also calculate the spine width: \getfiguredimensions[MAG] \definemeasure [SpineWidth] [\dimexpr0.01mm * (\noffigurepages/2) + 0.5mm\relax] Where 0.01mm

Re: [NTG-context] Question to covers

2018-07-21 Thread Henning Hraban Ramm
Hi Wolfgang, thank you so much! If we put the externalfigure setup in front, we can also calculate the spine width: \getfiguredimensions[MAG] \definemeasure [SpineWidth] [\dimexpr0.01mm * (\noffigurepages/2) + 0.5mm\relax] Where 0.01mm is the paper thickness (100 g/m2) and 0.5mm

Re: [NTG-context] Question to covers

2018-07-21 Thread Wolfgang Schuster
nd use that as externalfigure, just creating the spine anew. Hi Henning, below is a modified version of your example where I changed a few things. 1. I used the "measure" commands to set the spine values, the advantage of the \measure is that it falls back to 0pt when you try to use a undefin

Re: [NTG-context] Question to covers

2018-07-20 Thread Henning Hraban Ramm
kbinders (eg cutting lines, > protection zones, bends, pasting parts etc.) Hi Tomáš, I don’t know of anything existing. Find attached what I use for a magazine – I include title and back pages in the main PDF (to get a complete issue for corrections and online distribution) and use that as exter

Re: [NTG-context] page ranges in \markpage

2018-07-19 Thread Hans Hagen
] \setupinteraction[state=start] \setupinteractionscreen[option={portrait, paper}, print=pages] \starttext \getfiguredimensions[i-context.pdf] \dostepwiserecurse{1}{99}{1}{\externalfigure[i-context.pdf][height=\textheight,page=\recurselevel]} \startmarkpages[page] \dostepwiserecurse{100}{300}{1

Re: [NTG-context] page ranges in \markpage

2018-07-19 Thread Pablo Rodriguez
pinteraction[state=start] > \setupinteractionscreen[option={portrait, paper}, print=pages] > \starttext > \getfiguredimensions[i-context.pdf] > \dostepwiserecurse{1}{99}{1}{\externalfigure[i-context.pdf][height=\textheight,page=\recurselevel]} > \startmarkpages[page] > \dostep

Re: [NTG-context] page ranges in \markpage

2018-07-18 Thread Wolfgang Schuster
pdf] \dostepwiserecurse{1}{99}{1}{\externalfigure[i-context.pdf][height=\textheight,page=\recurselevel]} \startmarkpages[page] \dostepwiserecurse{100}{300}{1}{\externalfigure[i-context.pdf][height=\textheight,page=\recurselevel]} \stopmarkpages \dostepwiserecurse{301}{\noffigurepages}{1}{\exte

[NTG-context] Shading and transparency

2018-07-11 Thread Marco Patzer
file gradient-t.pdf \defineoverlay [gradient-img] [{\externalfigure[gradient-t][width=\overlaywidth,height=\overlayheight]}] \starttext using external image: \startframedtext [background={foreground, gradient-img}] \input knuth \stopframedtext metapost: \startframedtext [background={for

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Alan Braslau
On Sun, 8 Jul 2018 11:21:55 +0200 Hans Hagen wrote: > the "externalfigure" variant is an old one that had to deal with > dimensions in a way that avoids overflows > > in a future context (read luatex 1.09+) we go one-pass-mp so we can > have a different approach (i

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Hans Hagen
On 7/8/2018 11:02 AM, Marco Patzer wrote: On Sun, 8 Jul 2018 10:39:52 +0200 Hans Hagen wrote: On 7/8/2018 1:45 AM, Marco Patzer wrote: On Sat, 7 Jul 2018 14:27:38 -0600 Alan Braslau wrote: For "historic" reasons, draw externalfigure "cow" scaled 5cm ; n

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Marco Patzer
On Sun, 8 Jul 2018 10:39:52 +0200 Hans Hagen wrote: > On 7/8/2018 1:45 AM, Marco Patzer wrote: > > On Sat, 7 Jul 2018 14:27:38 -0600 > > Alan Braslau wrote: > > > >> For "historic" reasons, > >> draw externalfigure "co

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Hans Hagen
On 7/8/2018 1:45 AM, Marco Patzer wrote: On Sat, 7 Jul 2018 14:27:38 -0600 Alan Braslau wrote: For "historic" reasons, draw externalfigure "cow" scaled 5cm ; normalizes the figure to a square. This will not be changed as it is a very old feature of MetaFun. The s

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Marco Patzer
On Sat, 7 Jul 2018 14:27:38 -0600 Alan Braslau wrote: > For "historic" reasons, > draw externalfigure "cow" scaled 5cm ; > normalizes the figure to a square. This will not be changed as it is a > very old feature of MetaFun. > > The solution is >

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Marco Patzer
> > \setupexternalfigures [location=default] > > \starttext > >\externalfigure [cow][width=5cm] > > > >\startMPcode > > draw externalfigure "cow" scaled 5cm; > >\stopMPcode > > \stoptext > it's all in the metafun manual No d

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Hans Hagen
On 7/7/2018 8:58 PM, Marco Patzer wrote: Hi! How to scale an image in MetaPost, maintaining the aspect ratio (without specifying the height explicitly)? Example: \setupexternalfigures [location=default] \starttext \externalfigure [cow][width=5cm] \startMPcode draw externalfigure

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Alan Braslau
On Sat, 7 Jul 2018 20:58:40 +0200 Marco Patzer wrote: > Hi! > > How to scale an image in MetaPost, maintaining the aspect ratio > (without specifying the height explicitly)? > > Example: > > \setupexternalfigures [location=default] > \starttext > \

[NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Marco Patzer
Hi! How to scale an image in MetaPost, maintaining the aspect ratio (without specifying the height explicitly)? Example: \setupexternalfigures [location=default] \starttext \externalfigure [cow][width=5cm] \startMPcode draw externalfigure "cow" scaled 5cm; \stopMPcode

Re: [NTG-context] Position of layer in foreground

2018-06-28 Thread Marcus Vinicius Mesquita
nt > [Title] > [SerifBold at 42pt] > > \starttext > > \placefigure[][]{Cow} > {\externalfigure[cow][width=.5\textwidth]} > > \definelayer[myfigure][x=6cm,y=6cm,preset=middle] > > \setlayer[myfigure]{\framed[frame=off]{\Title > \color[middlecyan]{123456789}}

Re: [NTG-context] Position of layer in foreground

2018-06-28 Thread Wolfgang Schuster
Marcus Vinicius Mesquita <mailto:marcusvinicius.mesqu...@gmail.com> 28. Juni 2018 um 01:23 Dear List, In the MWE below, I expected the numbers to appear above the cow figure. What am I missing? \definefont [Title] [SerifBold at 42pt] \starttext \placefigure[][]{Cow} {\externalfigu

[NTG-context] Position of layer in foreground

2018-06-27 Thread Marcus Vinicius Mesquita
Dear List, In the MWE below, I expected the numbers to appear above the cow figure. What am I missing? \definefont [Title] [SerifBold at 42pt] \starttext \placefigure[][]{Cow} {\externalfigure[cow][width=.5\textwidth]} \definelayer[myfigure][x=6cm,y=6cm,preset=middle] \setlayer[myfigure

Re: [NTG-context] Problem with luatex experimental on linux armhf

2018-06-27 Thread Lutz Haseloff
mtx-context | fatal error: no return code, message: luatex: >execution >>> interrupted >>> >>> I think, pplib isn't enabled. >>> >>> In the build.sh, there is a line: (336) >>> >>> (cd libs/poppler; $MAKE all ) >>> &

Re: [NTG-context] Problem with luatex experimental on linux armhf

2018-06-27 Thread luigi scarso
think, pplib isn't enabled. >> >> In the build.sh, there is a line: (336) >> >> (cd libs/poppler; $MAKE all ) >> >> but /libs/poppler doesn't exist. >> >> My testfiles are: >> \starttext >> \externalfigure[a.pdf] >> \stoptext >&

Re: [NTG-context] Problem with luatex experimental on linux armhf

2018-06-27 Thread luigi scarso
k modern-designsize rm 12pt' is loaded > mtx-context | fatal error: no return code, message: luatex: execution > interrupted > > I think, pplib isn't enabled. > > In the build.sh, there is a line: (336) > > (cd libs/poppler; $MAKE all ) > > but /libs/poppler doesn'

[NTG-context] Problem with luatex experimental on linux armhf

2018-06-27 Thread Lutz Haseloff
nabled. In the build.sh, there is a line: (336) (cd libs/poppler; $MAKE all ) but /libs/poppler doesn't exist. My testfiles are: \starttext \externalfigure[a.pdf] \stoptext a.tex \startMPpage fill fullcircle scaled 5cm withcolor blue; \stopMPpage Is there anything I can do or is it a p

[NTG-context] setmemstream to use pdfe.new instead of epdf.openMemStream

2018-06-23 Thread Adam Reviczky
t;}) \stopluacode \stoptext or as in grph-mem.lua: -- \startluacode -- figures.setmemstream("whatever",io.loaddata("t:/sources/cow.pdf")) -- \stopluacode -- -- \externalfigure[memstream:///t:/sources/cow.pdf] -- \externalfigure[memstream:///whatever] The error message is: /usr/share/texm

Re: [NTG-context] beta

2018-06-23 Thread Hans Hagen
The error is triggered by this line: context( "\\setlayer[layername]{\\externalfigure[figure.pdf][scale=900]}" ) Since it's a pdf figure, it should be linked to the new pdf library. no, more to a bit strick checking in image settings in the old bin (less strct in lat

Re: [NTG-context] beta

2018-06-23 Thread Lutz Haseloff
' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded mtx-context | fatal error: no return code, message: luatex: execution interrupted No logfile is written. a.tex \starttext \startMPpage fill fullcircl

[NTG-context] beta

2018-06-22 Thread Akira Kakuto
I get the same error after the update with \starttext \externalfigure[A] \stoptext where A.pdf is in the current folder. I'm on windows 10. Here it works OK: LuaTeX, Version 1.09.0 Development id: 6822 Thanks, Akira

Re: [NTG-context] beta

2018-06-22 Thread Ulrike Fischer
the same error after the update with \starttext \externalfigure[A] \stoptext where A.pdf is in the current folder. I'm on windows 10. -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ If your question is

Re: [NTG-context] beta

2018-06-22 Thread Wolfgang Schuster
s file be loaded? \stopbuffer \typesetbuffer[scale=500] \stoptext end example or when I try to insert cow.pdf begin example \setupexternalfigure[location=default] \starttext \externalfigure[cow] \stoptext end example Wo

Re: [NTG-context] beta

2018-06-22 Thread MF
> > > Do you get the same error message with the following minimal example: > > \starttext > \externalfigure[figure] > \stoptext > Yes, of course, same error; BTW, the pdf i'm using i

Re: [NTG-context] beta

2018-06-22 Thread Wolfgang Schuster
..) The error is triggered by this line: context( "\\setlayer[layername]{\\externalfigure[figure.pdf][scale=900]}" ) Since it's a pdf figure, it should be linked to the new pdf library. Do you get the same error message with the following minimal example: \starttext \externalfigure[fi

Re: [NTG-context] beta

2018-06-22 Thread MF
context( "\\setlayer[layername]{\\externalfigure[figure.pdf][scale=900]}" ) Since it's a pdf figure, it should be linked to the new pdf library. Best wishes, Massi ___ If your question is of interest to oth

Re: [NTG-context] Bug with \setuptagging and layers

2018-06-10 Thread Hans Hagen
om,hoffset=.25in,voffset=.25in,     background=color,backgroundcolor=yellow]       {\externalfigure[cow.pdf]}     \stopsetups     \setupbackgrounds [page]     [setups=testpage,background={testpage}]     \starttext     \startmakeup  [testpage]     \framed[backgr

Re: [NTG-context] Bug with \setuptagging and layers

2018-06-10 Thread Hans Hagen
ound=color,backgroundcolor=yellow]       {\externalfigure[cow.pdf]} \stopsetups \setupbackgrounds [page] [setups=testpage,background={testpage}] \starttext \startmakeup  [testpage] \framed[background=color,backgroundco

[NTG-context] Bug with \setuptagging and layers

2018-06-09 Thread Rik Kabel
lor=yellow]       {\externalfigure[cow.pdf]} \stopsetups \setupbackgrounds [page] [setups=testpage,background={testpage}] \starttext \startmakeup  [testpage] \framed[background=color,backgroundcolor=yellow]      {\externalfigure[cow.pdf]} \

Re: [NTG-context] location of converted images

2018-06-06 Thread Jano Kula
e an option to change cache folder? Original > > files are stored in the read-only location. > > > > Script convert offers --outputpath option, but I would like to make the > > switch with script context, using mtxrun --script context . > > \starttext > \ex

Re: [NTG-context] location of converted images

2018-06-06 Thread Hans Hagen
like to make the switch with script context, using mtxrun --script context . \starttext \externalfigure[hacker.png][conversion=cmyk.pdf,cache=mkivcache] \stoptext Taco's talk 'mtxrun scripts' at the meeting <http://meeting.contextgarden.net/2018/abstracts.shtml> will hopefully show u

[NTG-context] referenceprefix=+ not working

2018-05-22 Thread Henri Menke
=+] % when I put "test" it works \starttext \startsection[reference=test,title={Test}] \startplacefigure[reference=cow] \externalfigure[cow] \stopplacefigure \stopsection \in[test:cow] % ?? \stoptext _

Re: [NTG-context] Horizontal line after text in an environment

2018-04-26 Thread Fabrice Couvreur
headstyle={bold}, >> style=italic, >> headcommand=\ProprieteHeadcommand, >> numbercommand=\groupedcommand{}{\nbsp}, >> after=\textrule] >> >> \starttext >> >> \startpropriete >> \placefigure[right,none]{}{\externalfigure[dummy]

Re: [NTG-context] Horizontal line after text in an environment

2018-04-25 Thread Hans Hagen
,    numbercommand=\groupedcommand{}{\nbsp},    after=\textrule] \starttext \startpropriete \placefigure[right,none]{}{\externalfigure[dummy]} \startitemize \item \input ward \item \input ward \stopitemize \stoppropriete \startpropriete \placefigure[right,none]{}{\externalfigure[dummy

[NTG-context] Horizontal line after text in an environment

2018-04-25 Thread Fabrice Couvreur
\startpropriete \placefigure[right,none]{}{\externalfigure[dummy]} \startitemize \item \input ward \item \input ward \stopitemize \stoppropriete \startpropriete \placefigure[right,none]{}{\externalfigure[dummy]} \startitemize \item First item \item Second item \stopitemize \stoppropriete \stoptext

[NTG-context] Asymptote and Context

2018-04-19 Thread Context NTG
-outname \externalfilteroutputfile}, output=\externalfilterbasefile.pdf, cache=yes, readcommand=\ReadImage,] \define[1]\ReadImage{\externalfigure[#1]} \starttext Testing if we can include an asymptote image \startplacefigure[location={here}, title={An Asymptote figure}] \startASY unitsize(1cm); d

Re: [NTG-context] columnset + floats = bad

2018-04-17 Thread Henri Menke
[threecolumn]   \input lorem \column   \input zapf\par   \startplacefigure[title={\input zapf\par}] \externalfigure[dummy][width=\columnwidth]   \stopplacefigure   \input hawking\par \column   \input Douglas\par   \input bryson\par   \startplacefigure[title={\input bryson\par

<    4   5   6   7   8   9   10   11   12   13   >