Re: [NTG-context] Strange new behaviour of the mailing list

2021-07-31 Thread Henning Hraban Ramm via ntg-context

> Am 31.07.2021 um 21:19 schrieb Bruce Horrocks :
> 
> On 31 Jul 2021, at 14:56, Henning Hraban Ramm via ntg-context 
>  wrote:
>> 
>> Ah, I didn’t recognize you mean this.
>> 
>> Since the mail goes through the mailing list software, the sender must not 
>> be the original sender any more – ntg.nl is not allowed to send emails for a 
>> different domain. Many securely configured mail servers reject “faked” 
>> sender addresses, as they should. Look up DANE etc.
> 
> That's all well and good but it obscures the sender in your mail client. If 
> you look at the screen shot you can see that the older emails all display the 
> sender's name in the list. Under the new system (just the topmost entry, 
> shown selected) every email comes from "ntg-context@ntg.nl" which is 
> completely useless when you want to visually scan down the list for a 
> particular person.

It doesn’t make sense to argue about this, but it’s apparently a setting (or 
unchangeable behavior) of your Email app.

My Apple Mail 12.4 on Mojave shows the same message like attached (dark mode).

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] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Jeroen via ntg-context
I worked around it, instead of simpleslides just use larger fonts to with
regular pages

\startbuffer[slides]
\setuptolerance[
  horizontal,
  tolerant,
  stretch]

\setuppapersize[
  A4,landscape]

\setuplayout[
  width=middle,
  backspace=35mm,
  cutspace=35mm,
  height=middle,
  topspace=5mm,
  bottomspace=20mm]

\setuppagenumbering[
  location={footer,center}]

\setuphead
  [section]
  [page={yes}]

\usetypescript[pagella]
\setupbodyfont[pagella,18pt]
\setupbodyfontenvironment[
  28pt][  % For body
  d=36pt, % For title
  a=12pt, % For author & date
  ]
\setuptype[style=medium]
\setuptyping[typing][bodyfont=16pt]

\setupwhitespace[medium]

\setbreakpoints[compound]

\setuphead[chapter][style=\bfd]
\setuphead[section][style=\bfc]
\setuphead[subsection][style=\bfb]
\setuphead[subsubsection][style=\bf]

\setupitemize[autointro] % prevent orphan list intro
\setupitemize[indentnext=no]

\starttext

\startsection[title={MySlideTitle},ref={myref1}]

Body text

\startitemize
\item Item 1
\item Item 2
\stopitemize

\stopsection

\startsection[title={MySlideTitle},ref={myref2}]

Body text

\stopsection

\stoptext\starttext
text

\stoptext
\stopbuffer

  \savebuffer[list=slides, file=\jobname_slides.tex, prefix=no]

  \starttext
  \startbodymatter
  \dorecurse{25}{\input zapf\par}
  \typesetfile[\jobname_slides.tex][--purgeall][object=no, width=0pt]
  \stopbodymatter
  \startappendices
  \getfiguredimensions[\jobname_slides.pdf]
  \dorecurse{\noffigurepages}
  {\startTEXpage
\externalfigure[\jobname_slides.pdf][page=\recurselevel]
   \stopTEXpage}
  \stopappendices
  \stoptext

Op za 31 jul. 2021 om 16:22 schreef Thomas A. Schmitz via ntg-context <
ntg-context@ntg.nl>:

>
> On 7/31/21 4:06 PM, Pablo Rodriguez via ntg-context wrote:
> > BTW, I cannot get simpleslides working with LMTX.
>
>
> I had to make some slight adjustments but have been to lazy to upload a
> new and improved version. One reason being that I can't remember my
> username and password for the modules section of the garden... I'll have
> to ask Taco to reset it for me.
>
> Thomas
>
> ___
> 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] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Thomas A. Schmitz via ntg-context


On 7/31/21 4:06 PM, Pablo Rodriguez via ntg-context wrote:

BTW, I cannot get simpleslides working with LMTX.



I had to make some slight adjustments but have been to lazy to upload a 
new and improved version. One reason being that I can't remember my 
username and password for the modules section of the garden... I'll have 
to ask Taco to reset it for me.


Thomas
___
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] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Thomas A. Schmitz via ntg-context


On 7/31/21 3:27 PM, Jeroen via ntg-context wrote:

Is there an easy way to write a Context document and also code simpleslides
in the same document so that the simpleslides are automatically added to
the document as for example an appendix? Ie one tex document with Context
code, perhaps with some \input and something like a two-pass job. I was
thinking if the simpleslides could be saved as a number of png images and
then with the recurse add them to the document with placefigure.


"Easy" is an ambiguous term... I can tell you how I do this (I use xml, 
but with a bit of code, this can be adapted to TeX documents): I have 
the code for the slides and my own comments in the same documents; I 
pass a --mode to the compilation to filter and select content. When I 
have my presentation as a file "presentation.pdf," I save it and then 
have the slides included automatically via a counter, like this:


function xml.functions.combined_slide(t)
i = i + 1
local textwidth = tex.dimen.textwidth
context.page()
	context.framed( { width=number.todimen(textwidth), frame="off", 
align="middle", height="10cm" },
		function() context.externalfigure( { "presentation.pdf" }, { page=i, 
width="13cm" } ) end )

context.blank { "line" }
end

So, as others have said: no need to convert to png. Setting up a 
workflow takes some time and thought, but once it's in place, it works 
very well; I have now used my xml-based workflow for 12 years or so, for 
all my university lectures and talks.


Thomas
___
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] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Pablo Rodriguez via ntg-context
On 7/31/21 3:27 PM, Jeroen via ntg-context wrote:
> Is there an easy way to write a Context document and also code
> simpleslides in the same document so that the simpleslides are
> automatically added to the document as for example an appendix? Ie
> one tex document with Context code, perhaps with some \input and
> something like a two-pass job.
Hi Jeroen,

not sure this might help you (I’m not sure you intend a single source
file, in addition to a single PDF document), but here you have:

  \startbuffer[slides]
  \setuppapersize[CD]
  \setupbodyfont[60pt]
  \starttext
  \dorecurse{25}
  {\startmakeup[standard][pagestate=start, style={\ss\bf}, align=center]
  Slide \pagenumber
  \stopmakeup}
  \stoptext
  \stopbuffer

  \savebuffer[list=slides, file=\jobname_slides.tex, prefix=no]

  \starttext
  \startbodymatter
  \dorecurse{25}{\input zapf\par}
  \typesetfile[\jobname_slides.tex][--purgeall][object=no, width=0pt]
  \stopbodymatter
  \startappendices
  \getfiguredimensions[\jobname_slides.pdf]
  \dorecurse{\noffigurepages}
  {\startTEXpage
\externalfigure[\jobname_slides.pdf][page=\recurselevel]
   \stopTEXpage}
  \stopappendices
  \stoptext

BTW, I cannot get simpleslides working with LMTX.

> I was thinking if the simpleslides could be saved as a number of png
> images and then with the recurse add them to the document with
> placefigure.
\externalfigure is your friend here and there is no need to convert the
slides to PNG (see above).

Just in case it may 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] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Henning Hraban Ramm via ntg-context

> Am 31.07.2021 um 15:27 schrieb Jeroen via ntg-context :
> 
> Is there an easy way to write a Context document and also code simpleslides 
> in the same document so that the simpleslides are automatically added to the 
> document as for example an appendix? Ie one tex document with Context code, 
> perhaps with some \input and something like a two-pass job. I was thinking if 
> the simpleslides could be saved as a number of png images and then with the 
> recurse add them to the document with placefigure.

Why via PNG? And why recurse? You can include PDFs.

Try \copypages or \filterpages.

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] Strange new behaviour of the mailing list

2021-07-31 Thread Henning Hraban Ramm via ntg-context


> Am 31.07.2021 um 12:00 schrieb Pablo Rodriguez via ntg-context 
> :
> 
> message headers read now:
> 
>  From: Otared Kavian via ntg-context 
>  To: mailing list for ConTeXt users 
>  Reply-To: mailing list for ConTeXt users 
>  Cc: Otared Kavian 
>  Errors-To: ntg-context-boun...@ntg.nl
>  Sender: "ntg-context" 
> 
> Before they read:
> 
>  From: Otared Kavian 
>  To: mailing list for ConTeXt users 
>  Reply-To: mailing list for ConTeXt users 
>  Errors-To: ntg-context-boun...@ntg.nl
>  Sender: "ntg-context" 

Ah, I didn’t recognize you mean this.

Since the mail goes through the mailing list software, the sender must not be 
the original sender any more – ntg.nl is not allowed to send emails for a 
different domain. Many securely configured mail servers reject “faked” sender 
addresses, as they should. Look up DANE etc.

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
___


[NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Jeroen via ntg-context
Is there an easy way to write a Context document and also code simpleslides
in the same document so that the simpleslides are automatically added to
the document as for example an appendix? Ie one tex document with Context
code, perhaps with some \input and something like a two-pass job. I was
thinking if the simpleslides could be saved as a number of png images and
then with the recurse add them to the document with placefigure.

Jeroen
___
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 new behaviour of the mailing list

2021-07-31 Thread Denis Maier via ntg-context
I read some lists (not this one) through game's nntp interface. So it's nice 
being notified if someone responds to your message. Also, I do t think I've 
ever received duplicate mails so I guess they are filtered out somehow. I think 
some lists do that automatically...




Von: ntg-context  im Auftrag von Thomas A. Schmitz 
via ntg-context 
Gesendet: Samstag, 31. Juli 2021 12:20:01
An: mailing list for ConTeXt users
Cc: Thomas A. Schmitz
Betreff: Re: [NTG-context] Strange new behaviour of the mailing list

On 7/31/21 11:41 AM, Denis Maier via ntg-context wrote:
> I think so too. Especially since the original sender's address isn't included 
> in "reply to all" messages.
I think it's an improvement. I have never understood why the original
sender needs an additional mail, on top of the one (s)he receives from
the list.

Thomas
___
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] Strange new behaviour of the mailing list

2021-07-31 Thread Thomas A. Schmitz via ntg-context


On 7/31/21 11:41 AM, Denis Maier via ntg-context wrote:

I think so too. Especially since the original sender's address isn't included in 
"reply to all" messages.
I think it's an improvement. I have never understood why the original 
sender needs an additional mail, on top of the one (s)he receives from 
the list.


Thomas
___
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 new behaviour of the mailing list

2021-07-31 Thread Hans Hagen via ntg-context

On 7/31/2021 11:31 AM, Otared Kavian via ntg-context wrote:
On 31 Jul 2021, at 00:47, Henning Hraban Ramm via ntg-context 
mailto:ntg-context@ntg.nl>> wrote:

[…]


If you click on that name, you can see the actual address.

Hraban


Sure, but I don’t understand why the behaviour has changed. It seems to 
me a regression…
probably some experiment or update ... nothing that Taco can't fix if 
needed (next week) ... btw, here 'reply all' just works fine


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
___


Re: [NTG-context] Strange new behaviour of the mailing list

2021-07-31 Thread Pablo Rodriguez via ntg-context
On 7/30/21 11:24 PM, Otared Kavian via ntg-context wrote:
> Hi all,
>
> I noticed that beginning July 27th, the messages distributed by the
> ConTeXt mailing list appear to be from
>
>   Mailing list for ConTeXt users
>
> without the actual name of the sender appearing. It may be dependent
> on the mail client I am using (Mail.app on MacOS 11.4), but I wonder
> whether something has changed on mailing list server, and whether if
> there is something I can do to have the old behaviour (which was
> convenient when one wanted to follow up mails from some specific
> contributors).
>
> Also has anybody else noticed this change?

Hi Otared,

message headers read now:

  From: Otared Kavian via ntg-context 
  To: mailing list for ConTeXt users 
  Reply-To: mailing list for ConTeXt users 
  Cc: Otared Kavian 
  Errors-To: ntg-context-boun...@ntg.nl
  Sender: "ntg-context" 

Before they read:

  From: Otared Kavian 
  To: mailing list for ConTeXt users 
  Reply-To: mailing list for ConTeXt users 
  Errors-To: ntg-context-boun...@ntg.nl
  Sender: "ntg-context" 

I experience the same problem as yours.

Before, replying in Thunderbird (Ctrl+r) generated a private reply. I
needed to generate a reply to the list (Ctrl+Shif+l).

Right now, Ctrl+r generates a reply to the list.

It seems that there is no perfect solution to this. I mean, having both
messages sent from original sender and replied by default to the list.

I guess that this might be achieved finetuning Mailman (but I don’t know
how).

I hope it helps,

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] multimedia PDF in ConTeXt

2021-07-31 Thread Pablo Rodriguez via ntg-context
On 7/31/21 1:08 AM, Michal Vlasák via ntg-context wrote:
> [...]
> By the way, Pablo, your issue
> https://www.mail-archive.com/ntg-context@ntg.nl/msg88204.html was also
> solved in the last upload. Unfortunately it will probably not help you,
> because Acrobat no longer supports this.
> [...]
> But, you can use renderings instead:
>
> \useexternalrendering[myaudiorendering]
>   [audio/mp3][audio.mp3][embed=yes]
>
> \definerenderingwindow[audiowindow]
>   [width=0sp, height=0sp]
>
> \definelayer[resources]
> \setupbackgrounds[page][background=resources]
> \setlayer[resources]{\placerenderingwindow[audiowindow][myaudiorendering]}
>
> \goto{PLAY SOUND}[StartRendering{myaudiorendering}]
>
> This is basically the example from "/back-swf.mkiv". Works in Acrobat.
> And one can use either of the three possible file methods (embedded,
> external, URL), not just external files. The layer is so that the empty
> frame doesn't interfere with normal page content. No frame is drawn when
> both dimensions are 0, not sure if that is a behaviour one can take as
> granted. But currenntly the dimensions can't be zero.

Many thanks for your code update, Michal.

I’m extremely interested in investigating the possibilities this opens.

But I’m afraid that I will have other things to do first. It will take
me months to come back to this again.

> Hans, I would omit the check for 0 dimensions of rendering window (as
> already noted in the source, it is useful for sound). See patch below.

Many thanks for the patch and 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 new behaviour of the mailing list

2021-07-31 Thread Denis Maier via ntg-context
I think so too. Especially since the original sender's address isn't included 
in "reply to all" messages.


Von: ntg-context  im Auftrag von Otared Kavian via 
ntg-context 
Gesendet: Samstag, 31. Juli 2021 11:31:40
An: mailing list for ConTeXt users
Cc: Otared Kavian
Betreff: Re: [NTG-context] Strange new behaviour of the mailing list

On 31 Jul 2021, at 00:47, Henning Hraban Ramm via ntg-context 
mailto:ntg-context@ntg.nl>> wrote:
[…]

If you click on that name, you can see the actual address.

Hraban

Sure, but I don’t understand why the behaviour has changed. It seems to me a 
regression…

Best regards: Otared


___
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] multimedia PDF in ConTeXt

2021-07-31 Thread Pablo Rodriguez via ntg-context
On 7/30/21 11:57 PM, Michal Vlasák via ntg-context wrote:
> On Fri Jul 30, 2021 at 8:53 PM CEST, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Although I don’t read Czech, just out of curiosity, is your bachelor
>> thesis available on the net, Michal? Thanks to theses.cz, I found
>> https://is.muni.cz/th/t8qpp/DP_Vlasak_Michal_2015.pdf (only a name
>> coincidence, I guess).
>
> Sorry, should have shared the link at the first place.
>
> https://dspace.cvut.cz/handle/10467/95065

Many thanks for your fast reply and the link to your thesis, Michal.

>> [...]
>> Is there no way to have the video as an embedded file in the PDF
>> document? (I mean, that the file is listed when the attachment panel is
>> displayed.)
>
> Currently, only attachments are added as "embedded files" (either as
> "hidden", ending up in /EmbeddedFiles, or as "annotation" ending up as
> /FileAttachment annotation).
>
> Maybe "codeinjections.embedfile" can have the option to force the
> reference, so that the file also ends up in /EmbeddedFiles? Should it be
> default for all \externalrenderings?
> [...]
> --- a/tex/context/base/mkxl/lpdf-wid.lmt
> +++ b/tex/context/base/mkxl/lpdf-wid.lmt
> [...]

Many thanks for the patch.

It would be also great to have an option not to list some files as
embedded (adding a option "list" to "\useexternalrendering" such as in
"\useexternalrendering[myvideo][video/mp4][video.mp4][embed=yes, list=no]").

Being the default to yes, I’m thinking of cases where there is a risk
distributing the multimedia file without the embedding document, because
of the lack of context (no pun indented)

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 new behaviour of the mailing list

2021-07-31 Thread Otared Kavian via ntg-context
> On 31 Jul 2021, at 00:05, Bruce Horrocks  wrote:
> […]
> I see the same thing, also on Macos. Looking at an older message, I see that 
> the Reply-To: header has changed from
> 
> Reply to: Bruce Horrocks ,
>  mailing list for ConTeXt users 
> 
> to
> 
> Reply to: mailing list for ConTeXt users 
> 
> 
> So I suggest that there is little you can do as it appears to be a 
> configuration change on the mailing list server; and Apple Mail doesn't have 
> the facilities to easily allow you to re-write that header

Hi Bruce,

Thanks for your reply. 
I don’t know what has triggered this change, which seems to me strange and 
inconvenient.

Best regards: Otared
___
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 new behaviour of the mailing list

2021-07-31 Thread Otared Kavian via ntg-context
> On 31 Jul 2021, at 00:47, Henning Hraban Ramm via ntg-context 
>  wrote:
>> […]
> 
> If you click on that name, you can see the actual address.
> 
> Hraban

Sure, but I don’t understand why the behaviour has changed. It seems to me a 
regression…

Best regards: Otared


___
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] Verbatim text in a frame

2021-07-31 Thread Wolfgang Schuster via ntg-context

Hans Hagen via ntg-context schrieb am 31.07.2021 um 00:18:

On 7/30/2021 9:12 PM, Jeroen via ntg-context wrote:
I am using the following preamble to put a frame around 
verbatim text. How can I have all the text start some 5pt from the 
frame and how can I get rounded corners, corner=0 does not seem to work


\setupcolors[state=start]

\setupcolor[xwi]

\definetextbackground
   [Code]
   [frame=on,
    framecolor=black,
    %corner=0,
    %offset=10pt,
    background=color,
    backgroundcolor=gray,
    location=paragraph]

\setuptyping
   [before={\blank\starttextbackground[Code]},
    after={\stoptextbackground\blank}]

\starttext

\starttyping
example
\stoptyping

\stoptext

\definetextbackground
  [Code]
  [frame=on,
   framecolor=black,
   corner=round,
   radius=10pt,
   topoffset=10pt,
   leftoffset=5pt,
   background=color,
   backgroundcolor=gray,
   location=paragraph]


Both \blank settings can also be moved from \setuptyping to 
\setuptextbackground.


\definetextbackground
  [Code]
  [frame=on,
   framecolor=black,
   corner=round,
   background=color,
   backgroundcolor=gray,
   location=paragraph,
   leftoffset=5mm,
   topoffset=5mm,
   before=\blank,
   after=\blank]

\setuptyping
  [typing]
  [before={\starttextbackground[Code]},
   after={\stoptextbackground}]

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
___