[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-02-21 Thread Cron Daemon
receiving incremental file list
 ./
 ctan.lsr
 document-2.htm
 download-1.htm
 download-2.htm
 logo-ade.png
 logo-cts.png
 logo-pod.png
 rss.xml
 show-fil.pdf
 context/latest/
 context/latest/cont-lmt.zip
 context/latest/cont-mpd.zip
 context/latest/cont-ppc.zip
 context/latest/cont-sci.zip
 context/latest/cont-tmf.zip
 context/latest/cont-tst.7z
 context/latest/cont-tst.tar.xz
 context/latest/cont-tst.zip
 
 sent 179,766 bytes  received 38,584,550 bytes  3,691,839.62 bytes/sec
 total size is 579,367,319  speedup is 14.95


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-02-22.04
246450093   
/var/www/aanhet.net/context//htdocs/archives/context-2024-02-22.04/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2024-02-22.04/current
373199506   
/var/www/aanhet.net/context//htdocs/archives/context-2024-02-22.04
373199506   total
___
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] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-02-21 Thread Cron Daemon
receiving incremental file list
 ./
 ctan.lsr
 document-2.htm
 download-1.htm
 download-2.htm
 logo-ade.png
 logo-cts.png
 logo-pod.png
 rss.xml
 show-fil.pdf
 context/latest/
 context/latest/cont-lmt.zip
 context/latest/cont-mpd.zip
 context/latest/cont-ppc.zip
 context/latest/cont-sci.zip
 context/latest/cont-tmf.zip
 context/latest/cont-tst.7z
 context/latest/cont-tst.tar.xz
 context/latest/cont-tst.zip
 general/manuals/
 general/manuals/lowlevel-macros.pdf
 general/manuals/luametatex.pdf
 general/manuals/primitives.pdf
 
 sent 192,916 bytes  received 47,717,819 bytes  3,548,943.33 bytes/sec
 total size is 579,364,093  speedup is 12.09


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-02-22.03
246449860   
/var/www/aanhet.net/context//htdocs/archives/context-2024-02-22.03/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2024-02-22.03/current
373199273   
/var/www/aanhet.net/context//htdocs/archives/context-2024-02-22.03
373199273   total
___
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: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm

Am 21.02.24 um 19:43 schrieb Wolfgang Schuster:
… but it would be visible on a colored background. I’m sure you can 
show me a better way…


\startuseMPgraphic{dottedborder}
   draw bottomboundary OverlayBox withpen pencircle scaled 2 dashed 
withdots withcolor "red";

   setbounds currentpicture to OverlayBox;
\stopuseMPgraphic


Thank you!

(I’m sure I already used that somewhere… Must document…)

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] Re: MetaPost lines in tables?

2024-02-21 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 21.02.2024 um 19:04:

Am 19.02.24 um 23:15 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 19.02.2024 um 22:39:

I guess I asked this a while ago, but I can’t find an answer:
Is it possible to replace the lines of a TABLE with my own MetaPost 
graphics?


ATM I’m trying to place my MP lines behind a frame-less TABLE; it 
will probably work, but it’s a crutch…


The example below draws a custom border for the whole cell but you're 
free to draw only certain sides (leftboundary etc. helps) but don't 
forget to set the boundary box for the graphic (OverlayBox is the size 
of the cell).


 begin example
\startuseMPgraphic{dottedborder}
   draw OverlayBox withpen pencircle scaled 2 dashed withdots 
withcolor "red";

\stopuseMPgraphic

\defineoverlay[dottedborder][\useMPgraphic{dottedborder}]

\starttext

\bTABLE[frame=off,background=dottedborder]


Thank you!

Since I needed only horizontal lines, I forced the height with an 
“invisible“ line:


\startuseMPgraphic{dottedborder}
    draw (0,0)--(0,OverlayHeight) withpen pencircle scaled 0.001 
withcolor white;
    draw (0,0)--(OverlayWidth,0) withpen pencircle scaled 2 dashed 
withdots withcolor "red";

\stopuseMPgraphic

… but it would be visible on a colored background. I’m sure you can show 
me a better way…


\startuseMPgraphic{dottedborder}
  draw bottomboundary OverlayBox withpen pencircle scaled 2 dashed 
withdots withcolor "red";

  setbounds currentpicture to OverlayBox;
\stopuseMPgraphic

Wolfgang
___
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: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm

Am 19.02.24 um 23:15 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 19.02.2024 um 22:39:

I guess I asked this a while ago, but I can’t find an answer:
Is it possible to replace the lines of a TABLE with my own MetaPost 
graphics?


ATM I’m trying to place my MP lines behind a frame-less TABLE; it will 
probably work, but it’s a crutch…


The example below draws a custom border for the whole cell but you're 
free to draw only certain sides (leftboundary etc. helps) but don't 
forget to set the boundary box for the graphic (OverlayBox is the size 
of the cell).


 begin example
\startuseMPgraphic{dottedborder}
   draw OverlayBox withpen pencircle scaled 2 dashed withdots withcolor 
"red";

\stopuseMPgraphic

\defineoverlay[dottedborder][\useMPgraphic{dottedborder}]

\starttext

\bTABLE[frame=off,background=dottedborder]


Thank you!

Since I needed only horizontal lines, I forced the height with an 
“invisible“ line:


\startuseMPgraphic{dottedborder}
   draw (0,0)--(0,OverlayHeight) withpen pencircle scaled 0.001 
withcolor white;
   draw (0,0)--(OverlayWidth,0) withpen pencircle scaled 2 dashed 
withdots withcolor "red";

\stopuseMPgraphic

… but it would be visible on a colored background. I’m sure you can show 
me a better way…


My real life example (p.2 in https://yemaya.fiee.net/s/DEEHs5m49yftiqW) 
involves sketchy lines, and there it’s a bit annoying that the row is 
not its own frame that could get a continuous background… Well, it’s 
good enough, I’ll settle for it.


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] Re: using an end of line as parameter

2024-02-21 Thread Bruce Horrocks


> On 21 Feb 2024, at 08:17, madiazm.eo...@gmail.com wrote:
> 
> Thanks a lot Bruce, that did the trick! definitely I will have to learn a bit 
> lua in summer.
> I just got an error on \qquad and found searching in internet that it was 
> because escape character conflicts between tex and lua. For the time i 
> removed it and since I will create itemizes I hope I dont get that error if I 
> use \item instead of \qquad.
> Thanks again, I spent hours of trial and error, error, error... on this 
> matter.

Yes, the \'s need to be escaped in Lua. And it's made me realise that the 
process of identifying the four lines of the question is separate from the 
typesetting of the question later. The amended version below uses your 
\tareaABC macro to format the question so you can more easily change the layout 
without having to understand ConTeXT Lua Documents in detail.

\startluacode
  userdata = userdata or {}
  
  function userdata.formatTestQuestions()
local the_buffer = buffers.getlines("TestQuestions")
local tracker = 0
local the_question = {}

-- Go through the buffer of questions one line at a time
for i = 1,#the_buffer do

  -- Skip blank lines but 'collect' non-blank lines until we have four
  -- (which is assumed to be a whole question)
  if  string.strip(the_buffer[i]) == "" then
tracker = 0
the_question = {}
  else
tracker = tracker + 1
the_question[tracker] = the_buffer[i]
  end
  
  -- If tracker has got to 4 then we've read four lines
  if tracker == 4 then
context.tareaAbc(
  the_question[1],
  the_question[2], 
  the_question[3],
  the_question[4])
  
-- Reset for the next question (in case no blank line)
tracker = 0
the_question = {}
  end
  
end
  end
\stopluacode

\def\startTestQuestions
  {\dostartbuffer[TestQuestions][startTestQuestions][stopTestQuestions]}
\def\stopTestQuestions
  {\ctxlua{userdata.formatTestQuestions()}}

\define[4]\tareaAbc{\item #1
   \startitemgroup[itemize][a]
   \item #2
   \item #3
   \item #4
   \stopitemgroup}
   
\starttext
Here are some questions:

\startTestQuestions
In den Büchereien gibt es auch … 
… Kuchen.
… Theater.
… Workshops.

In den Büchereien gibt es auch … 
… Kuchen.
… Theater.
… Workshops.
In den Büchereien gibt es auch … 
… Kuchen.
… Theater.
… Workshops.
\stopTestQuestions

\stoptext

—
Bruce Horrocks
Hampshire, UK


tt2.tex
Description: Binary data
___
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] LuaTeX 1.18.0

2024-02-21 Thread luigi scarso
The upcoming version 1.18.0 has some changes that are not compatible with
previous versions but should only apply in kpse mode:

1) the debug library is disabled; can be enabled with --luadebug

2) os.rename os.remove and lfs library functions are checked
from kpse to see if the path is legal

I'm sure some packages that use debug won't work without --luadebug at
least.

LuaLaTeX should be ok, and also ConTeXt mkiv should be ok.


--
luigi
___
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: Sorry for once more asking, i am at Work

2024-02-21 Thread Ursula Hermann
Dear Pablo and Gavin, 

Many many many Thanks. Ok so I took pdflatex away now, and could compile 
selected. 

Uschi 

-Ursprüngliche Nachricht-
Von: Pablo Rodriguez via ntg-context  
Gesendet: Mittwoch, 21. Februar 2024 10:24
An: Gavin via ntg-context 
Cc: Pablo Rodriguez 
Betreff: [NTG-context] Re: Sorry for once more asking, i am at Work

On 2/20/24 19:03, Gavin via ntg-context wrote:
> […]
> I don’t know how you are calling PdfLaTeX to typeset your document, 
> context-test.tex, but that is what you are doing.

Hi Uschi and Gavin,

I will try to go the same way you propose, Gavin. Otherwise, Uschi may find it 
hard to follow totally independent suggestions.

Uschi, if you are compiling your ConTeXt sources using WinEdt, your issue might 
be the wrong button (or the wrong keystroke combination).

You might be invoking pdflatex directly, or maybe a button or keystroke 
combination is labelled ConTeXt and it may really be invoking pdflatex.

In that case, you have to check WinEdt to see which command is run when you 
start the compilation process (which command you really invoke).

Another way to see which ConTeXt binary you invoke would be to type in the 
command prompt "context --version" (with no path specified) and "where context".

But this is independent from the issue that you get pdflatex when you intend 
context.

I hope it helps now,

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
___
___
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: Sorry for once more asking, i am at Work

2024-02-21 Thread Pablo Rodriguez via ntg-context
On 2/20/24 19:03, Gavin via ntg-context wrote:
> […]
> I don’t know how you are calling PdfLaTeX to typeset your document,
> context-test.tex, but that is what you are doing.

Hi Uschi and Gavin,

I will try to go the same way you propose, Gavin. Otherwise, Uschi may
find it hard to follow totally independent suggestions.

Uschi, if you are compiling your ConTeXt sources using WinEdt, your
issue might be the wrong button (or the wrong keystroke combination).

You might be invoking pdflatex directly, or maybe a button or keystroke
combination is labelled ConTeXt and it may really be invoking pdflatex.

In that case, you have to check WinEdt to see which command is run when
you start the compilation process (which command you really invoke).

Another way to see which ConTeXt binary you invoke would be to type in
the command prompt "context --version" (with no path specified) and
"where context".

But this is independent from the issue that you get pdflatex when you
intend context.

I hope it helps now,

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: using an end of line as parameter

2024-02-21 Thread madiazm . eoicc
Thanks a lot Bruce, that did the trick! definitely I will have to learn a bit 
lua in summer.
I just got an error on \qquad and found searching in internet that it was 
because escape character conflicts between tex and lua. For the time i removed 
it and since I will create itemizes I hope I dont get that error if I use \item 
instead of \qquad.
Thanks again, I spent hours of trial and error, error, error... on this matter.
___
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
___