Re: [NTG-context] split TABLE cells

2022-05-19 Thread Wolfgang Schuster via ntg-context

Steffen Wolfrum via ntg-context schrieb am 19.05.2022 um 12:44:

do you have a MWE?
the example from https://wiki.contextgarden.net/Tabulate gives an empty page:

[...]


You need \starttext and \stoptext in your document. The examples in the 
wiki don't need

both commands because they are added when the examples are created.

Below is a simple example.

\setuppapersize[A5]

\starttext

\starttabulate[|l|p|]
\NC Donald Knuth  \NC \input{knuth}  \NC\NR
\NC Hermann Zapf  \NC \input{zapf}   \NC\NR
\NC Edward Tufte  \NC \input{tufte}  \NC\NR
\NC Eugene Linden \NC \input{linden} \NC\NR
\stoptabulate

\stoptext

Wolfgang

___
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] can't accent/fake characters in euler font

2022-05-19 Thread a badin via ntg-context
Hello all,

typesetting accented characters in eulernova font does not seem
possible to me. Is it really impossible? The other math fonts
(stix/xits) do it. I'm using Context LMTX 2022.01.21 20:13

\starttext
\switchtobodyfont[eulernova]
\startlines
euler:
1 - č
2 - \ccaron
3 - \v{c}
\stoplines

\switchtobodyfont[stixtwo]
\startlines
stix:
1 - č
2 - \ccaron
3 - \v{c}
\stoplines

\stoptext

In the end I'd like to be able to make more custom characters, e.g. Ĺ, ô, ä, ...
therefore I wanted to read about how those could be made, but the wiki
points to missing files:
http://source.contextgarden.net/enco-acc.tex
http://source.contextgarden.net/tex/context/base/enco-def.tex

Any help appreciated,
Andrej Badin
___
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] overthinking overprinting

2022-05-19 Thread Henning Hraban Ramm via ntg-context


A question on TeX-D-L reminded me to look into this subject.

At the moment, there is \setupcolors[intent=overprint|knockout] with 
\startoverprint|knockout, as defined in colo-ext.mkxl|mkiv.


I’m not sure what that does as a general setting – usually you need 
overprinting for black text and lines in CMYK documents.


There are special cases where you want other (spot) colors to overprint, 
but that’s quite rare, and I can use transparency features to achieve 
the same (a=multiply) in an even more flexible way – as long as I don’t 
need a format like PDF/X-3 that doesn’t allow transparencies.
If I declare such a format, ConTeXt just switches off transparencies and 
doesn’t try to emulate (“flatten”) them as e.g. InDesign does.


So it would be nice if I could e.g.
\definecolor[OPred][m=1,y=1,intent=overprint]

OTOH there are cases where I want a black area or text to knockout the 
background, these might work with \startknockout etc.



When I try my example:

\useMPlibrary[dum]
\setupcolors[
   rgb=no,cmyk=yes,
   intent=overprint,% or knockout
]
\setupbodyfont[modern,ss,18pt]

\starttext

\definecollector[Test]
\setcollector [Test] {\externalfigure[none][width=8cm,height=6cm,frame=on]}
\setcollector [Test] [corner=middle,location=middle] {{\bf Toast}}
\setcollector [Test]
   [corner={left,top},location={right,bottom}]
   {\framed{LT}}
\setcollector [Test]
   [corner={left,bottom},location={right,top}]
   {\framed{LB}}

\composedcollector{Test}

\stoptext

... then the text is “knocked out” regardless how set the intent.
It also doesn’t help to use \startoverprint for the Text.
The attached screenshot shows the color separation preview from Acrobat 
Pro 9.


Is this broken or intended to be used differently?

Hraban___
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] Numbering in mathalignment not working

2022-05-19 Thread Luis Montgomery via ntg-context
It's true. In the version that comes with TeXlive 2021 (2021.03.05)
this numbering works fine, but not with the 2022.05.11.

L. Montgomery


El jue, 19 may 2022 a las 3:34, śrīrāma via ntg-context ()
escribió:

> Hi,
>
> [I am on version 2022.05.11 11:36]
>
> I think either a bug might have crept into one of the recent uploads or
> there
> is some change in behaviour – numbering of statements inside mathalignment
> blocks is not working: only one statement is numbered even if multiple are
> requested.
>
> The following example does not produce the expected result (sample
> attached):
> both the equations should be numbered when only the first one is –
>
>   \starttext
>
>   \placeformula
>   \startformula
> \startmathalignment
>   \NC a \NC = b \NR[eq:one]
>   \NC c \NC = d \NR[eq:two]
> \stopmathalignment
>   \stopformula
>
>   \stoptext
>
> Also the [+] options and the second optional argument of \NR does not work
> as
> expected. Has its behaviour changed?
>
> I ran into this when I compiled a large maths-heavy document and while
> proof-
> reading noticed numerous missing references to statements inside
> mathalignment. Please advise me on how I might fix/workaround this.
>
> Thank you,
>
> Sreeram___
> 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
>
> ___
>
___
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] How do I turn off indentation inside a \framed with align=?

2022-05-19 Thread Wolfgang Schuster via ntg-context

Gerben Wierda via ntg-context schrieb am 19.05.2022 um 17:27:

I have these kinds of statements

\framed[frame=off,align=flushleft,width=\textwidth]{\phrasetext{metamodelexplanation}}

but the text inside the frame is typeset with indentation.

I tried \setupindenting both before and after \starttext, 
(none,no,never) but that doesn’t work.


How do I turn indenting off in all frameds with align=flushleft or 
otherwise *everywhere*?


You have to provide a minimal example, in the following the example the 
text within the frame isn't indented.


 begin example
\setupindenting[yes,medium]

\showframe[text][text]

\starttext

metamodelexplanation

\framed[frame=off,align=flushleft,width=\textwidth]{metamodelexplanation}

metamodelexplanation

\stoptext
 end example

Wolfgang

___
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] Rendering Standalone MetaPost Graphics with ConTeXt

2022-05-19 Thread Vincent Hennebert via ntg-context
On Thu, 2022-05-19 at 14:23 +0530, śrīrāma wrote:
> On 5/19/22 1:53 PM Vincent Hennebert via ntg-context wrote:
> > Looking at the wiki, it seems that \startMPinclusions is not meant
> > to
> > actually render any content, just to include MetaPost code like
> > function definitions. I guess I would have expected \startMPpage
> > instead.
> > 
> > Am I doing something wrong, or is that an error in ConTeXt?
> 
> The MP statements should be inside a beginfig() .. endfig.

Oh, I see. Not super fan of enclosing each and every of my graphics in
a beginfig...endfig statement, but it does the job indeed.

Although in my case I must give a number parameter to beginfig,
otherwise I get an error.

Thanks Sreeram!
Vincent
___
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] ignore not closed tags in XML input

2022-05-19 Thread juh via ntg-context
Dear Pablo,

sorry for answering late as I am on holidays learning Spanish in
Salamanca. :-)

Am Wed, May 18, 2022 at 06:00:20PM +0200 schrieb Pablo Rodriguez via 
ntg-context:
> Sorry for explaining myself so poorly.
> 
> One of the not irrelevant tasks for me is finding examples of XML code.

As I know that you are fluent in German I would recommend

https://deutschestextarchiv.de/

It is a collection of many, many texts in German with expired
copyright in TEI XML and other formats.

I had a hard time to convert even one text to ConTeXt, but I've got it
to work. I had the crazy idea to get a process where I simply can
download the TEI XML source and make a nice book of the text.

Saludos!
juh

-- 
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: . http://www.sudelbuch.de
Privater Blog:  http://www.hasecke.eu
Netzliteratur-Projekt:  http://www.generationenprojekt.de




signature.asc
Description: PGP signature
___
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] How do I turn off indentation inside a \framed with align=?

2022-05-19 Thread Gerben Wierda via ntg-context
I have these kinds of statements

\framed[frame=off,align=flushleft,width=\textwidth]{\phrasetext{metamodelexplanation}}

but the text inside the frame is typeset with indentation.

I tried \setupindenting both before and after \starttext, (none,no,never) but 
that doesn’t work. 

How do I turn indenting off in all frameds with align=flushleft or otherwise 
*everywhere*?

Gerben Wierda (LinkedIn )
R IT Strategy  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 

___
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] split TABLE cells

2022-05-19 Thread Steffen Wolfrum via ntg-context


> Am 19.05.2022 um 08:14 schrieb Hans Hagen via ntg-context 
> :
> 
> On 5/18/2022 8:07 PM, Steffen Wolfrum via ntg-context wrote:
>> Hi,
>> I just found an old mail from 30 May 2008:
>> How do I split not only TABLE but cells? It was not possible then.
>> \starttext
>> \bTABLE[split=yes,option=stretch]
>> \bTR
>> \bTD
>> \input tufte \input knuth Hello world ...
>> \eTD
>> \bTD
>> \input tufte
>> \eTD
>> \bTD
>> \input knuth
>> \eTD
>> \eTR
>> \bTR
>> \bTD
>> Test
>> \eTD
>> \bTD
>> Test
>> \eTD
>> \bTD
>> Test
>> \eTD
>> \eTR
>> \eTABLE
>> \stoptext
> not possible, use tabulate instead


do you have a MWE? 

the example from https://wiki.contextgarden.net/Tabulate gives an empty page:



\setuppapersize[A10, landscape][A8, landscape]
\setuppaper[nx=2,ny=2]
\setuparranging[XY]

\switchtobodyfont[5pt]
\setuppagenumbering[location={header,inright}]
\showframe[edge]

\setuptabulate
 [split=yes,
  header=text,
  title={\color[red] Fenchurch St. Paul},
  frame=on]

\starttabulate[|p(1.2cm)|p(1.2cm)|]
\dorecurse{6}{
\NC  Bells:  \NC  Tin tan din dan bim bam bom bo \NC\NR
\HL
\NC  Name:  \NC  Tailor Paul \NC \NR
  
\HL
}
\stoptabulate
)



Best wishes, Steffen
___
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] Rendering Standalone MetaPost Graphics with ConTeXt

2022-05-19 Thread śrīrāma via ntg-context
On 5/19/22 1:53 PM Vincent Hennebert via ntg-context wrote:
> Looking at the wiki, it seems that \startMPinclusions is not meant to
> actually render any content, just to include MetaPost code like
> function definitions. I guess I would have expected \startMPpage
> instead.
> 
> Am I doing something wrong, or is that an error in ConTeXt?

The MP statements should be inside a beginfig() .. endfig.
With metapost.mp containing – 

  beginfig();
  draw fullcircle scaled 10cm;
  endfig;

the temporary file from mptopdf will have (\start...\stop)MPpage as required.

  Sreeram


___
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] Numbering in mathalignment not working

2022-05-19 Thread śrīrāma via ntg-context
Hi,

[I am on version 2022.05.11 11:36]

I think either a bug might have crept into one of the recent uploads or there 
is some change in behaviour – numbering of statements inside mathalignment 
blocks is not working: only one statement is numbered even if multiple are 
requested.

The following example does not produce the expected result (sample attached): 
both the equations should be numbered when only the first one is – 

  \starttext

  \placeformula
  \startformula
\startmathalignment
  \NC a \NC = b \NR[eq:one]
  \NC c \NC = d \NR[eq:two]
\stopmathalignment
  \stopformula

  \stoptext

Also the [+] options and the second optional argument of \NR does not work as 
expected. Has its behaviour changed?

I ran into this when I compiled a large maths-heavy document and while proof-
reading noticed numerous missing references to statements inside 
mathalignment. Please advise me on how I might fix/workaround this.

Thank you,
  Sreeram

align-numbering.pdf
Description: Adobe PDF document
___
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] Rendering Standalone MetaPost Graphics with ConTeXt

2022-05-19 Thread Vincent Hennebert via ntg-context
I’d like to use MetaPost to generate all sorts of standalone graphics
(ultimately converted to SVG). For various reasons (among others,
MetaFun and advanced text processing) I want to use MetaPost as
embedded in ConTeXt rather than a standalone installation.

 metapost.mp 
fill fullcircle scaled 10cm;


Whether I run
  context metapost.mp
or
  mtxrun --script metapost metapost.mp
I get a PDF document that contains no page.

The mtxrun version generates the following temp file:
 mptopdf-temp.tex 
\starttext
\startMPinclusions
fill fullcircle scaled 10cm;
\stopMPinclusions
\stoptext


Looking at the wiki, it seems that \startMPinclusions is not meant to
actually render any content, just to include MetaPost code like
function definitions. I guess I would have expected \startMPpage
instead.

Am I doing something wrong, or is that an error in ConTeXt?

Thanks,
Vincent
___
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] ConTeXt meeting 2023(!)

2022-05-19 Thread Henning Hraban Ramm via ntg-context

Am 19.05.22 um 00:22 schrieb br...@scorecrow.com:




On 17 May 2022, at 07:49, Henning Hraban Ramm via ntg-context 
 wrote:

Would that make a difference for you?


Seven days is a big time commitment, unless you are a major user of ConTeXt. Is there a possibility 
to split it up into "professional" during the week and "hobbyist" over the 
weekend so people could come for just the weekend, or the whole week?


For most of us it *is* a hobby and the meeting kind of holidays.

IMO meeting over the whole week is a big part of the appeal, otherwise 
we couldn’t fit all the interesting stuff into the schedule and the 
personal interaction also would fall short.


I remember we had a similar split when we combined with EuroTeX. I was 
new to the community at that time, and I found the sudden influx of 
people over the weekend very confusing. YMMV


It was always possible to register and come for just some days.
We discourage it, since it disturbs the community experience, pickup is 
additional effort, and we often must pay the venue for the whole week 
(it depends).


In 2022 the weekend would mean: maybe a talk or two on Friday, CG 
members meeting on Saturday morning, excursion for the rest of the day 
and nothing but departure on Sunday. In other years we met e.g. from 
Sunday to Saturday, and on the first day we are busy arriving and 
setting up.



BTW it looks like Jano will host us in Sibřina again in September of 
2023. And we’re discussing “uncharted territory” for 2024.



Hraban
___
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] split TABLE cells

2022-05-19 Thread Hans Hagen via ntg-context

On 5/18/2022 8:07 PM, Steffen Wolfrum via ntg-context wrote:

Hi,

I just found an old mail from 30 May 2008:

How do I split not only TABLE but cells? It was not possible then.

\starttext
\bTABLE[split=yes,option=stretch]
\bTR
\bTD
\input tufte \input knuth Hello world ...
\eTD
\bTD
\input tufte
\eTD
\bTD
\input knuth
\eTD
\eTR
\bTR
\bTD
Test
\eTD
\bTD
Test
\eTD
\bTD
Test
\eTD
\eTR
\eTABLE
\stoptext

not possible, use tabulate instead

-
  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
___