[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Taco Hoekwater


> On 6 Nov 2023, at 00:35, Bruce Horrocks  wrote:
> 
> 
> [1] Now there's an irony: the Wiki software creates different-sized previews 
> of a vector image so that it can show the image at different sizes on 
> different clients.

I bet it started doing this back 'in the day’ to support Internet Explorer 6.



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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Bruce Horrocks


> On 5 Nov 2023, at 20:24, peter.hopcroft--- via ntg-context 
>  wrote:
> 
> I see this problem on my iPad: Safari and Orion browsers. 
> 
> I do not see this problem on my mac: Safari and Orion browsers. 
> 

Thank-you both for checking.

Looking more closely it seems that the web page is actually showing a PNG 
preview of the SVG file

https://wiki.contextgarden.net/images/thumb/5/54/layout.svg/525px-layout.svg.png

(NB: there are alternate size variants so the px value may vary for you.[1])

But the issue is still the same - the text labels won't display when the .png 
is viewed via the main page but do display correctly when opened directly.

I'll keep delving.


[1] Now there's an irony: the Wiki software creates different-sized previews of 
a vector image so that it can show the image at different sizes on different 
clients.

—
Bruce Horrocks
Hampshire, UK

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread peter.hopcroft--- via ntg-context
I see this problem on my iPad: Safari and Orion browsers. 

I do not see this problem on my mac: Safari and Orion browsers. 

Peter

> On 6/11/2023, at 8:19 AM, Henning Hraban Ramm  wrote:
> 
> Am 05.11.23 um 19:11 schrieb Bruce Horrocks:
>> When I go to the page layout page on the Contextgarden wiki
>>   
>> the "typesetting areas" diagram is missing its text labels. If I click on 
>> the diagram the Wiki takes me to the underlying layout.svg file and then I 
>> /do/ see the labels.
>> This happens in both Safari and Firefox.
>> Any suggestions as to what needs to be changed to get the diagram to display 
>> correctly?
> 
> Probably a problem on your side – works for me with Firefox and Chrome based 
> browsers. And I’ve no clue which setting would influence that.
> 
> Web developer tools as well as Inkscape show that there’s no real text in the 
> SVG, just paths.
> 
> Hraban
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Henning Hraban Ramm

Am 05.11.23 um 19:11 schrieb Bruce Horrocks:

When I go to the page layout page on the Contextgarden wiki

   

the "typesetting areas" diagram is missing its text labels. If I click on the 
diagram the Wiki takes me to the underlying layout.svg file and then I /do/ see the 
labels.

This happens in both Safari and Firefox.

Any suggestions as to what needs to be changed to get the diagram to display 
correctly?


Probably a problem on your side – works for me with Firefox and Chrome 
based browsers. And I’ve no clue which setting would influence that.


Web developer tools as well as Inkscape show that there’s no real text 
in the SVG, just paths.


Hraban

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Bruce Horrocks
When I go to the page layout page on the Contextgarden wiki

  

the "typesetting areas" diagram is missing its text labels. If I click on the 
diagram the Wiki takes me to the underlying layout.svg file and then I /do/ see 
the labels.

This happens in both Safari and Firefox.

Any suggestions as to what needs to be changed to get the diagram to display 
correctly?

—
Bruce Horrocks
Hampshire, UK

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: command to process CSV file (database module)

2023-11-05 Thread Pablo Rodriguez via ntg-context
On 11/5/23 13:56, Pablo Rodriguez via ntg-context wrote:
> [...]
> I get an error about an unexpected symbol near "\" in the line of
> "\processdatabasefile".
>
> Could anyone enlighten me about what I am missing here?

Replying to myself, thanks to the wiki
(https://wiki.contextgarden.net/Commands_with_optional_arguments).

It seems that the command has to be defined as unexpanded, such as in:

  \setupinteraction[state=start]
  \setupattachments[method=hidden]
  \usemodule[database]

  \starttext

  \unexpanded\def\ItemContents#1#2#3{\doiftext{#2}
{\item {\em #1}\attachment[file=#2, name=\currentitemnumber-#2]%
  \doiftext{#3}{ (also available at #3)}}}

  \defineseparatedlist
 [test]
 [separator={,},
  quotechar={"},
  before={\startitemize[n]},after={\stopitemize},
  first={\ItemContents},last={.},
  left={\{},right={\}}]

  \processdatabasefile[test][context-documents.csv]

  \stoptext

It is not clear for me why is this needed, but it might be one of the
many aspects of expansion that average users cannot understand from TeX.

Many thanks for your help,

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] [ metapost -> svg ]

2023-11-05 Thread vm via ntg-context



With the latest lmtx installed, what would be the correct cli command to 
generate a svg outputfile from a metapost source?


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: regular online meet-up

2023-11-05 Thread Henning Hraban Ramm

Am 05.11.23 um 17:39 schrieb Henning Hraban Ramm:

You’re invited to join on Wednesday, November 8th, 19:00 CET (UTC+1)

at https://lecture.senfcall.de/hen-rbr-rku-oke
(same, but shorter: https://u.mtxrun.eu/ctxmtg)

ConTeXt users of all levels are welcome!

There will be no online meeting in September, since we’ll meet in 
Sibřina in person. And let’s discuss there (or here) if we should move 
the date.


CU soon!


Oh my, I should pay attention which messages I copy. 臘‍♂️
But the date next week is right.

Hraban

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] regular online mett-up

2023-11-05 Thread Henning Hraban Ramm

You’re invited to join on Wednesday, November 8th, 19:00 CET (UTC+1)

at https://lecture.senfcall.de/hen-rbr-rku-oke
(same, but shorter: https://u.mtxrun.eu/ctxmtg)

ConTeXt users of all levels are welcome!

There will be no online meeting in September, since we’ll meet in 
Sibřina in person. And let’s discuss there (or here) if we should move 
the date.


CU soon!


(Same blurb as every time:)

[Howto]
* No special software installation required; most modern browsers should 
work (WebRTC required).

* Open the above URL, accept the privacy statement,
* enter your name,
* click "join" (or "start" if you’re the first),
* click "with microphone", allow your browser to access it, check the audio.
* Your microphone is muted if you join. Activate microphone and/or 
camera with the buttons at the bottom.

* Minimize the default presentation with the "screen" button, bottom right.

* If you’d like to share your screen or upload a file, you can make 
yourself the presenter: Click on your user name, change the setting, 
then you’ll see the "screen sharing" button beside the camera button; 
also there’s now "manage presentations" behind the "plus" button.
Beware there is only one presenter at a time, so don’t kill someone 
else’s presentation.


[Technical hints]
* Sound is usually better if you use a headset (less noise for everyone).
* Connection problems are mostly due to low bandwidth or high latency on 
your side, e.g. with mobile connections.

* If audio/video doesn’t work for you, you can still use the text chat.
* Screen sharing needs a lot of bandwidth.
* BigBlueButton documentation applies: 
https://bigbluebutton.org/teachers/tutorials/


[Netiquette]
* Please use a name that we recognize from here. Some feel uncomfortable 
with anonymous lurkers.

* Mute your microphone while you’re not talking.
* It’s nice to show your face at least when you join.
* If there are connection problems, stop camera sharing.
* The room is set to “everyone’s a moderator“, I trust you...

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] command to process CSV file (database module)

2023-11-05 Thread Pablo Rodriguez via ntg-context
Dear list,

These are the following first four lines of a CSV file:

,,
"About \LuaTeX\ and
\ConTeXt","about.pdf","https://www.pragma-ade.com/general/manuals/about.pdf;
"l2r, r2l: A Few
Tips","bidi.pdf","https://www.pragma-ade.com/general/manuals/bidi.pdf;
"Flowcharts","charts-mkiv.pdf",

Faking a command such as \cA, \cB and \cC (for contents of columns A, B
or C) I would like to create a source document with an enumeration that
contains:

  \doiftext{\cB}
{\item {\em\cA}\attachment[file=\cB]%
  \doiftext{\cC}{ (also available at \cC)}.}

I would like to do that with the "database" module.

So far I have adapted the itemize environment, but I don't get the
contents for items right:

  \usemodule[database]

  \starttext

  \def\ItemContents#1#2#3{\doiftext{#2}
{\item {\em #1}\attachment[file=#2]%
  \doiftext{#3}{ (also available at #3)}.}}

  \defineseparatedlist
 [test]
 [separator={,}, % tab
  quotechar={"}, % tab
  before={\startitemize[n]},after={\stopitemize},
  first={\ItemContents},last={.},
  left={\{},right={\}}]

  \processdatabasefile[test][context-documents.csv]

  \stoptext

I get an error about an unexpected symbol near "\" in the line of
"\processdatabasefile".

Could anyone enlighten me about what I am missing here?

Many thanks for your help,

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: How to encircle text?

2023-11-05 Thread Pablo Rodriguez via ntg-context
On 11/5/23 12:59, anton.chig...@mail.com wrote:
> Wow!
> This certainly is not the noobie version!
> All I wanted was to put a circle around a letter
> for emphasis.

Anton,

it works as you intend:

  \starttext
  \startusableMPgraphic{MetaCirc}
   draw fullcircle
   xyscaled
  (OverlayWidth-OverlayLineWidth,OverlayHeight-OverlayLineWidth)
   withpen pencircle scaled OverlayLineWidth
   withcolor OverlayColor ;
  \stopusableMPgraphic

  \defineoverlay[MetaCirc][\useMPgraphic{MetaCirc}]

  a\dontleavehmode\framed
 [background=MetaCirc,
  backgroundcolor=red,
  frame=off,
  location=bottom,
  rulethickness=1pt]
 {b}c
  \stoptext

Just in case it helps,

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: How to encircle text?

2023-11-05 Thread anton . chigurh
Wow!
This certainly is not the noobie version!
All I wanted was to put a circle around a letter
for emphasis.
Thanks though
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: How to encircle text?

2023-11-05 Thread Hans Hagen via ntg-context

On 11/5/2023 7:23 AM, anton.chig...@mail.com wrote:

I want to use \bigcirc to encircle text.
Is there a way to do it.

if you're wiling to compensate for its depth:

\defineoverlay
  [BigCirc]
  [{\scale
  [width=\overlaywidth]
  {\setbox0\hpack{\bigcirc}\raise\dp0\box0}}]

\framed
  [background=BigCirc,
 % frame=off,
   width=3cm,
   height=3cm]
  {test}

but bigcirc isn't meant for that

\startusableMPgraphic{MetaCirc}
draw fullcircle
xyscaled 
(OverlayWidth-OverlayLineWidth,OverlayHeight-OverlayLineWidth)

withpen pencircle scaled OverlayLineWidth
withcolor OverlayColor ;
\stopusableMPgraphic

\defineoverlay[MetaCirc][\useMPgraphic{MetaCirc}]

\framed
  [background=MetaCirc,
   backgroundcolor=red,
   frame=off,
   rulethickness=1pt]
  {test}

\framed
  [background=MetaCirc,
   backgroundcolor=blue,
   rulethickness=.5pt]
  {test}

is more flexibel in the end

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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] How to encircle text?

2023-11-05 Thread anton . chigurh
I want to use \bigcirc to encircle text.
Is there a way to do it.
Tia
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___