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

2024-09-17 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-conditionals.pdf
 general/qrcs/
 general/qrcs/setup-mapping-en.pdf
 general/qrcs/setup-mapping-it.pdf
 
 sent 194,584 bytes  received 43,865,210 bytes  3,524,783.52 bytes/sec
 total size is 617,692,472  speedup is 14.02


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-09-17.14
272069597   
/var/www/aanhet.net/context//htdocs/archives/context-2024-09-17.14/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2024-09-17.14/current
398819010   
/var/www/aanhet.net/context//htdocs/archives/context-2024-09-17.14
398819010   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: Calling C code from ConTeXt LMTX

2024-09-15 Thread Florent Michel
Thanks Bruce for your very helpful reply!

The reason for my question was indeed consistency, e.g. ensuring figure
captions stay up to date with what the figures show when changing
parameters. Thinking more about it, the second solution you mention seems
to be a better option, though - I can simply define the parameters in an
external file and read it from both the PDF solver and ConTeXt to ensure
consistency. Thanks for mentioning it!

Thank you also for mentioning \executesystemcommand, which I was not aware
of!

Best regards,
Florent

Le dim. 15 sept. 2024 à 21:31, Bruce Horrocks  a écrit :

>
>
> > On 14 Sep 2024, at 21:46, Florent Michel  wrote:
> >
> > TL;DR: Could building LuaMetaTeX with the `-fPIC` flag for the Lua
> library have negative consequences? Is there a better way to be able to
> call external C functions from ConTeXt?
>
> This seems a bit drastic. Why can’t you achieve what you want to achieve
> by using other methods?
>
> For example you could setup a workflow whereby you pre-calculate your DE’s
> and format the results to include as input files. Or you could
> pre-calculate your DEs and plot them using one of any number of plotting
> programs and include the plots as TIFFs or PNGs.
>
> If you’re familiar with compiling C code using tools like `make` then why
> not use a makefile to control the production of your DE plots and your
> ConTeXt document to ensure that everything is consistent?
>
> If you absolutely must run the DE calculations as the ConTeXt document is
> processed then there is \executesystemcommand.
>
> —
> 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
>
> ___
>
___
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: Calling C code from ConTeXt LMTX

2024-09-15 Thread Bruce Horrocks


> On 14 Sep 2024, at 21:46, Florent Michel  wrote:
> 
> TL;DR: Could building LuaMetaTeX with the `-fPIC` flag for the Lua library 
> have negative consequences? Is there a better way to be able to call external 
> C functions from ConTeXt?

This seems a bit drastic. Why can’t you achieve what you want to achieve by 
using other methods?

For example you could setup a workflow whereby you pre-calculate your DE’s and 
format the results to include as input files. Or you could pre-calculate your 
DEs and plot them using one of any number of plotting programs and include the 
plots as TIFFs or PNGs.

If you’re familiar with compiling C code using tools like `make` then why not 
use a makefile to control the production of your DE plots and your ConTeXt 
document to ensure that everything is consistent?

If you absolutely must run the DE calculations as the ConTeXt document is 
processed then there is \executesystemcommand.

—
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: ConTeXt beginner, What should I enable within font features? And how do I see all the options possible?

2024-09-12 Thread Felix
Hans, hello. I have a question regarding a new version of my font setup in 
context:

\definefontfeature[generalfeatures][default][
kern=yes, % enables kerning
extrakerns=yes, % enables extra kerning
trep=yes, % Enables single and double quotes to show up correctly in text, 
perhaps does more
liga=yes, % Enables ligatures.
itlc=yes, % Activates italic correction.
mark=yes, % Used for positioning diacritical marks (accents, dots, etc.) 
relative to base characters.
mkmk=yes, % positions diacritical marks relative to other marks
locl=yes,
ccmp=yes, % Composes multiple characters into a single glyph or breaks down 
ligatures.
mode=node,
protrusion=yes,
expansion=yes,
language=dflt,
]

\definefontfamily [myfonts] [rm][Times New Roman] 
[features=generalfeatures,dlig=yes,cpsp=yes,] % dlig enables times new roman 
ligatures, and cpsp is used by tnr, not aptos
\definefontfamily [myfonts] [ss][Aptos]   
[features=generalfeatures,]
\definetypeface   [myfonts] [mm] [math] [stixtwo] 
[features=generalfeatures,]

\setupbodyfont[myfonts,12pt]

1. is extrakerns setup correctly? how can I tell if extrakerns will work? Since 
only kerns shows up in the OpenType features for TNR and Aptos. I wonder if it 
is like trep, which seems to be a context option for fonts.

2. What exactly does locl do if in tnr and aptos the option supports the latin 
script? (aptos also supports cyrl, and tnr also supports arab)

3. mode=node. I see that base is also an option in the settings sig page in 
context wiki, and ChatGPT told me node is the more 'complete', accurate, glyph 
based option that is typographically better, but takes more time to produce 
when used in a doc. Is this the case?
___
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 do I get the correct page numbers and do the calculations with it?

2024-09-11 Thread Wolfgang Schuster

ai2472206...@yeah.net schrieb am 11.09.2024 um 04:22:

Thank you for your careful and patient explanation.
I'll check my code again.
Because it's still very simple,
and some situations haven't been taken into account.
In particular, the condition judgment to split the part of the box.


I run your code and already found a few example where it fails, e.g.

- when you have a very short text it is spread over the while line and 
you get a line break at the end
- when you use it in the narrower environment you don't compensate the 
left/right indentations



Regarding the part about referencing commands,
I inadvertently forgot to delete it.

I have a question about the command "\warichuparameter\c!XXX" :
Why can we use "\warichuparameter\c!XXX" instead of "\warichuparameter{XXX}" in 
most cases,
but in some cases, it says that the command is not defined?
For example, \warichuparameter\c!pointstyle -->   Control sequence expected 
instead of undefined

I've used "\warichuparameter\c!XXX" before, but it causes the error
because there are some keys that are specifically named.
For the sake of stylistic consistency, I used "\warichuparameter{XXX}" for all 
command.

Maybe it's because I didn't define it? Should I define the following in advance?

%%%
\def\c!pointstyle{pointstyle}
%%%


Yes, these constants are predefined to have language dependent keys in 
the setup command, e.g.


    \setupitemize[width=1cm]

is written as

    \stelleaufzaehlungein[breite=1cm]

with the german interface.


To ensure you use the correct name for the key you use \c!width as 
argument for the \xxxparameter command.



While you can use \def\c!...{...}  to create a new constant the proper 
method is to use \setinterfaceconstant.



You can run the following example to get a list with a predefined 
constant. When you uncomment the first three lines you see the new entry 
also appears in the list.


 begin example
% \startinterface all
% \setinterfaceconstant {pointstyle} {pointstyle}
% \stopinterface

\setuplayout[tight]

\starttext

\startluacode
context.startcolumns({n=3})
for constant, _ in table.sortedpairs(interfaces.constants) do
  context.mono(constant)
  context.par()
end
context.stopcolumns()
\stopluacode

\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 / 
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 use Adobe Acrobat Reader (free) as the pdf viewer when compiling file in Windows Terminal (Windows)

2024-09-10 Thread Hans Hagen

On 9/10/2024 9:22 PM, Jim wrote:

On Tue, Sep 10, 2024 at 05:52 (-), Felix  wrote:


I want to use Adobe Acrobat Reader (free) and I always get this message when I 
have my Windows Terminal, vs code and acrobat setup



backend > quitting because file 'Chapter 4 Assignment.pdf' cannot be 
opened for writing



I run into no problems with using sumatra or okular, but Adobe Acrobat free 
seems to have this problem. Is there a way to fix this? The way I run context 
on windows is by making the doc in vscode (no extension, just plain vscode), 
compiling in Windows Terminal and using a pdf viewer to then view stuff.


As part of TeXlive there is a program called pdfopen (and a companion
program called pdfclose) which may (or may not) help you out if you wish to
continue using acroread.

I am the last maintainer (as far as I know!) of the Linux version of this
program for TeXlive.  I never use windows, but my understanding is there is
(or was) a version for windows.  You might want to look to see if you can
find this.
irr it originates in fptex for windows (by fabrice) so there should be 
some binary but the problem is that the api to acrobat changed over time 
so it had to be adapted occasionally


acrobat : pdfopen --rxi --file filename
fullacrobat : pdfopen --axi --file filename

pdfclose -- file filename

was the interface but as i never use acrobat in an edit-view flow it 
looks that i didn't bother to keep it on my machine


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] Re: How to use Adobe Acrobat Reader (free) as the pdf viewer when compiling file in Windows Terminal (Windows)

2024-09-10 Thread Jim
On Tue, Sep 10, 2024 at 05:52 (-), Felix  wrote:

> I want to use Adobe Acrobat Reader (free) and I always get this message when 
> I have my Windows Terminal, vs code and acrobat setup

> backend > quitting because file 'Chapter 4 Assignment.pdf' cannot be 
> opened for writing

> I run into no problems with using sumatra or okular, but Adobe Acrobat free 
> seems to have this problem. Is there a way to fix this? The way I run context 
> on windows is by making the doc in vscode (no extension, just plain vscode), 
> compiling in Windows Terminal and using a pdf viewer to then view stuff.

As part of TeXlive there is a program called pdfopen (and a companion
program called pdfclose) which may (or may not) help you out if you wish to
continue using acroread.

I am the last maintainer (as far as I know!) of the Linux version of this
program for TeXlive.  I never use windows, but my understanding is there is
(or was) a version for windows.  You might want to look to see if you can
find this.

Cheers.
Jim
___
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 use Adobe Acrobat Reader (free) as the pdf viewer when compiling file in Windows Terminal (Windows)

2024-09-09 Thread Joseph Wright

On 10/09/2024 06:52, Felix wrote:

I want to use Adobe Acrobat Reader (free) and I always get this message when I 
have my Windows Terminal, vs code and acrobat setup

backend > quitting because file 'Chapter 4 Assignment.pdf' cannot be 
opened for writing

I run into no problems with using sumatra or okular, but Adobe Acrobat free 
seems to have this problem. Is there a way to fix this? The way I run context 
on windows is by making the doc in vscode (no extension, just plain vscode), 
compiling in Windows Terminal and using a pdf viewer to then view stuff.


Acrobat locks files when open - as such, you have to close your PDF
before you run any process that modifies it (so true for all *TeX). It's
one reason there is a tendency not to use Acrobat as the main previewer
in TeX workflows. That said, some editors (WinEdt at least) will
auto-close the PDF when starting a run for exactly this reason.

Joseph
___
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 use Adobe Acrobat Reader (free) as the pdf viewer when compiling file in Windows Terminal (Windows)

2024-09-09 Thread Felix
I want to use Adobe Acrobat Reader (free) and I always get this message when I 
have my Windows Terminal, vs code and acrobat setup

backend > quitting because file 'Chapter 4 Assignment.pdf' cannot be 
opened for writing

I run into no problems with using sumatra or okular, but Adobe Acrobat free 
seems to have this problem. Is there a way to fix this? The way I run context 
on windows is by making the doc in vscode (no extension, just plain vscode), 
compiling in Windows Terminal and using a pdf viewer to then view stuff.
___
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: ConTeXt beginner, What should I enable within font features? And how do I see all the options possible?

2024-09-07 Thread Wolfgang Schuster

Felix  schrieb am 05.09.2024 um 22:58:

https://pastebin.com/245uwYj4

I have this setup for my fonts, called myfonts.

I assume that `\definefontfeature [default] [default] 
[trep=yes,dlig=yes,itlc=yes]` will affect every single font that goes into my 
preamble (Forgive me if I seem incompetent, I am a beginner at ConTeXt)


It is applied to all fonts which use the "default" feature set and which 
enabled after you made the changes.


In the following example only pagella uses the "trep" feature because 
modern was loaded before the settings was added to the default feature set.


 begin example
\starttext

\setupbodyfont[modern]

a'b

\definefontfeature [default] [default] [trep=yes]

\setupbodyfont[pagella]

a'b

\stoptext
 end example

To be on the save side create custom feature set where you add 
additional settings and apply these to your fonts.


 begin example
\definefontfeature [MyFeatures] [default] [trep=yes]

\definefontfamily [OldTimes] [rm] [Times New Roman]
\definefontfamily [NewTimes] [rm] [Times New Roman] [features=MyFeatures]

\starttext

\setupbodyfont[OldTimes]

a'b

\setupbodyfont[NewTimes]

a'b

\stoptext
 end example


I have dlig and trep on so that works with single quotations like don't have a 
directional quote, and so that I get the Times New Roman ligatures via dlig and 
not just liga. itlc is enabled since I read some documentation and they 
sometimes mention enabling it


It shouldn't be necessary to add "itlc" anymore to get italic correction 
for \em etc.



is there some stuff like the extrafeatures option or anything that you would 
recommend i enable? might there be options for extrakerns that would be seen as 
something that one should enable?

also, how can I see all the options available? dlig is something I discovered 
by accident that was not in the options list in the documentation.


Unless you know the effect of a feature you shouldn't add or enable it.

You even have to know what is supported by the fonts in your document 
which can differ between certain versions of a font, take Times New 
Roman which is included with Windows as an example.


1. For a long time ligatures weren't supported by the font at all and 
the first mention of the support it is from 2022.


2. The font uses the "dlig" feature to enable the f ligatures even 
though the normal tag for it is "liga". My guess why they made this 
decision is backwards compatibility with existing document to avoid them 
from using these ligatures.


3. You shouldn't enable "dlig" by default for all fonts because the 
results of the feature can vastly for the fonts which provide it, take 
the following two fonts as example.


 begin example
\definefontfeature [discretionary-ligatures] [dlig=yes]

\starttext

\startbuffer[pagella]
\starttabulate[|||]
\NC \type{} \EQ  \NC\NR
\NC \type{--}   \EQ --   \NC\NR
\NC \type{!`}   \EQ !`   \NC\NR
\NC \type{!‘}   \EQ !‘   \NC\NR
\NC \type{?`}   \EQ ?`   \NC\NR
\NC \type{?‘}   \EQ ?‘   \NC\NR
\NC \type{,,}   \EQ ,,   \NC\NR
\NC \type{‘‘}   \EQ ‘‘   \NC\NR
\NC \type{’’}   \EQ ’’   \NC\NR
\NC \type{---}  \EQ ---  \NC\NR
\stoptabulate
\stopbuffer

\setupbodyfont[pagella]

\start \nohyphencollapsing
\getbuffer[pagella]
\stop

\start \nohyphencollapsing \feature[+][discretionary-ligatures]
\getbuffer[pagella]
\stop

\startbuffer[dejavuserif]
\starttabulate[|||]
\NC \type{ſt} \EQ ſt \NC\NR
\NC \type{st} \EQ st \NC\NR
\stoptabulate
\stopbuffer

\setupbodyfont[dejavu]

\start
\getbuffer[dejavuserif]
\stop

\start \feature[+][discretionary-ligatures]
\getbuffer[dejavuserif]
\stop

\stoptext
 end example

The only additional features which can be added without problems are 
"expansion" and "protrusion" because until you enable them with 
\setupalign nothing changes in your document.


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: ConTeXt beginner, What should I enable within font features? And how do I see all the options possible?

2024-09-05 Thread Marcus Vinicius Mesquita
Hi, Felix


In linux, to find the GSUB/GPOS features of a opentype face you can
use the command

otfinfo -f fontname.ttf

otfinfo is part of the lcdf-typetools package

Regards

Marcus Vinicius

Marcus Vinicius

On Thu, Sep 5, 2024 at 6:02 PM Felix  wrote:
>
> https://pastebin.com/245uwYj4
>
> I have this setup for my fonts, called myfonts.
>
> I assume that `\definefontfeature [default] [default] 
> [trep=yes,dlig=yes,itlc=yes]` will affect every single font that goes into my 
> preamble (Forgive me if I seem incompetent, I am a beginner at ConTeXt)
>
> I have dlig and trep on so that works with single quotations like don't have 
> a directional quote, and so that I get the Times New Roman ligatures via dlig 
> and not just liga. itlc is enabled since I read some documentation and they 
> sometimes mention enabling it
>
> is there some stuff like the extrafeatures option or anything that you would 
> recommend i enable? might there be options for extrakerns that would be seen 
> as something that one should enable?
>
> also, how can I see all the options available? dlig is something I discovered 
> by accident that was not in the options list in the documentation.
>
> i use the latest version of ConTeXt LMTX on Windows
> ___
> 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
> ___



-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
corpo nem seus membros, por ser descanso da alma, primavera do
coração, distração do aflito, entretenimento do solitário, e viático
do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] ConTeXt beginner, What should I enable within font features? And how do I see all the options possible?

2024-09-05 Thread Felix
https://pastebin.com/245uwYj4

I have this setup for my fonts, called myfonts.

I assume that `\definefontfeature [default] [default] 
[trep=yes,dlig=yes,itlc=yes]` will affect every single font that goes into my 
preamble (Forgive me if I seem incompetent, I am a beginner at ConTeXt)

I have dlig and trep on so that works with single quotations like don't have a 
directional quote, and so that I get the Times New Roman ligatures via dlig and 
not just liga. itlc is enabled since I read some documentation and they 
sometimes mention enabling it

is there some stuff like the extrafeatures option or anything that you would 
recommend i enable? might there be options for extrakerns that would be seen as 
something that one should enable? 

also, how can I see all the options available? dlig is something I discovered 
by accident that was not in the options list in the documentation. 

i use the latest version of ConTeXt LMTX on Windows
___
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: (ConTeXt LMTX) How do I fix the centering and setting up width in xtables?

2024-09-01 Thread Wolfgang Schuster

Felix schrieb am 01.09.2024 um 20:54:

https://pastebin.com/TQdzmxeP

I am trying to make a resume in ConTeXt (to see how well my skills have gotten, 
I am still quite a beginner) and Iw as able to produce what is in Pastebin.
Your next lesson is to learn how to create a minimal example which 
contains only the necessary information needed to show the problem.

Though, I am having trouble with the table that goes over the big sized text 
that would be my name. It has  an email, a phone number, and an address but 
they are all aligned very weirdly. I want them to be centered. Though, the 
phone number has some sort of problem with alignment, and I don;t know fi the 
other ones are causing it or are also aligned wrong.

I also wanted to make this code:

\startxcell[topframe=on,bottomframe=on,align=flushright]
 Ability to communicate strongly and effectively, being a reliable team 
member, supporting a team whenever needed, and the desire to help everyone
\stopxcell

has it so that it doesn't take up so much horizontal space (Ideally it is 
taking up 1/3 of the width I am allowing for since there are three rows in 
total) , but when I add width={some value} into the square brackets, it will 
add a blank line after all the text, and this is not what I want.

is there a way to fix what I am experiencing? I would also not mind if I could 
be told how to improve my code, whether it be by adding startxrowgroup, 
startxcellgroup, or head and footer sections., or other options. Thank you for 
reading.


Your problem the usage of "option=stretch" to add filler space in the 
table cells.


To calculate the space which is added in each cell context takes the 
widest text in each column
to calculate the current width of the table and when table is narrower 
then the page it distributes
the reaming spaces equally to all rows. This results in a different 
width for each row but another
problem in your case is that context takes the long text in the first 
row (even though it spans

three column) as value to compute the reaming space in the table.

The fix for your case is to set a fixed width for all three column which 
ensures the text
in the second column is centered. You can also simplify your setup by 
moving all settings
at the start of the table and the only local change is needed for the 
merged cells.


 begin example
\starttext

% width=.33tw

\startxtable[frame=off,topframe=on,bottomframe=on,width=.33tw,align=middle]
  \startxrow
    \startxcell[nx=3]
  contact information
    \stopxcell
  \stopxrow
  \startxrow
    \startxcell
  email
    \stopxcell
    \startxcell
  phone
    \stopxcell
    \startxcell
  address
    \stopxcell
  \stopxrow
\stopxtable

% option=stretch

\startxtable[frame=off,topframe=on,bottomframe=on,option=stretch,align=middle]
  \startxrow
    \startxcell[nx=3]
  contact information
    \stopxcell
  \stopxrow
  \startxrow
    \startxcell
  email
    \stopxcell
    \startxcell
  phone
    \stopxcell
    \startxcell
  address
    \stopxcell
  \stopxrow
\stopxtable

\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 / 
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: chapter counter?

2024-08-26 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 26.08.2024 um 20:14:

Am 26.08.24 um 17:57 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 26.08.2024 um 17:41:

Hi,
I’d like to check the chapter number like

\ifodd\rawcountervalue[chapter]
What an odd chapter!
\fi

but apparently the counter isn’t called "chapter", or I’m doing it 
wrong otherwise.

Could you enlighten me?


\namedheadnumber{chapter}


Thank you, but it doesn’t work in my setup where I’m trying to change a 
background image depending on the chapter number:


\defineoverlay[BG][\start
\ifodd\namedheadnumber{chapter}\relax
\externalfigure[bgimage][height=\overlayheight]
\else
\mirror{\externalfigure[bgimage][height=\overlayheight]}
\fi
\stop]

This is then used with

\setlayerframed[papier][background=BG]

I guess it’s expanded only once.

But it was a bad idea anyway, I wanted more than two variants and now 
just set them as a uservariable.


Without more information there is no way to provide a solution but for 
the archive there is below a solution to get mirrored images for even 
chapters. The background has also a check an image before the start of 
the first chapter.


\setupexternalfigure[location=default]

\defineoverlay
  [BackGround]
  [\ifzeronum\namedheadnumber{chapter}\relax
 %
   \orelse\ifodd\namedheadnumber{chapter}\relax
 \externalfigure[mill][factor=min]%
   \else
 \mirror{\externalfigure[mill][factor=min]}%
   \fi]

\setupbackgrounds[page][background=BackGround]

\starttext

FooBar

\chapter{Foo}

\chapter{Bar}

\stoptext

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: chapter counter?

2024-08-26 Thread Henning Hraban Ramm

Am 26.08.24 um 17:57 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 26.08.2024 um 17:41:

Hi,
I’d like to check the chapter number like

\ifodd\rawcountervalue[chapter]
What an odd chapter!
\fi

but apparently the counter isn’t called "chapter", or I’m doing it 
wrong otherwise.

Could you enlighten me?


\namedheadnumber{chapter}


Thank you, but it doesn’t work in my setup where I’m trying to change a 
background image depending on the chapter number:


\defineoverlay[BG][\start
\ifodd\namedheadnumber{chapter}\relax
\externalfigure[bgimage][height=\overlayheight]
\else
\mirror{\externalfigure[bgimage][height=\overlayheight]}
\fi
\stop]

This is then used with

\setlayerframed[papier][background=BG]

I guess it’s expanded only once.

But it was a bad idea anyway, I wanted more than two variants and now 
just set them as a uservariable.


Sorry for the effort.

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] index entry with sorting and processor

2024-08-25 Thread Henning Hraban Ramm

Hi again,

the page number of register entries from a glossary should have a 
different color:


\defineprocessor[glossar][color=green]
\define[1]\GlIndex{\index[glossar->]{#1}}

This works, but I’d like to apply a macro to the text, and then I need 
to set the sort order:


\define[1]\GlIndex{\index[glossar->#1]{\Word{#1}}}

This also works, but I get separate index entries from
\index{Something}
and
\GlIndex{something}

Glossary entries may be lowercase, but in the index I’d like to 
normalize to uppercase initials. (The index command is part of a lemma 
setup.)


How can I combine the entries?

I also tried \setregisterentry but didn’t find out how to use a 
processor for the page number. In the wiki, the (generally working) 
processor option is undocumented, so if there’s another option, it’s 
also missing.
In the source, I found processors for entry & page, but not how to 
address the latter.


MWE:
"""
\defineprocessor[glossar][color=green]
\define[1]\GlIndex{\index[glossar->#1]{\Word{#1}}}

\starttext

\samplefile{ward}
\index{something}
\index{anything}
\page

\samplefile{tufte}
\GlIndex{something}
\GlIndex{anything}

\page
\placeindex
\stoptext

"""

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: digits / units setup

2024-08-25 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 24.08.2024 um 20:59:

Am 24.08.24 um 20:38 schrieb Henning Hraban Ramm:

According to docs,

\setupunit[method=3]

should change the rendering of numbers in

\unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”,

but it doesn’t.

\setdigitmode{3} works, though.


Seems to be a problem of my environment.

In a minimal example, \setupunit changes \unit, \setdigitmode changes 
\digits.


The \digits mechanism was never extended to provide a basic setup mechanism
which means you have to use the \set... commands to change the output.

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: understanding units / dimensions

2024-08-25 Thread Henning Hraban Ramm

Am 25.08.24 um 14:15 schrieb Wolfgang Schuster:

Are there even more?


Yes, there are more of them.

Look into the lowlevel-registers document which describes how they are
created and also how you can define your own identifiers with \newuserunit.


Thank you! There must have been a manual, but I didn’t guess “registers” 
was relevant.



Questions:

How differs "1" from "2"?
* em fs



\NC em \EQ \the\dimexpr1em\relax \NC\NR % \emwidth
\NC fs \EQ \the\dimexpr1fs\relax \NC\NR % \globalbodyfontsize


Ok, so they can differ minimally; in my 10pt setup I get the same value.


* lw hs


lw stands for \linewidth which is the default value for rulethickness in 
\framed etc.


I mixed up \linewidth with \textwidth, thought the one was LaTeX and the 
other \ConTeXt, since we’re talking about rulewidth otherwise.



hs is just \hsize.


Then it makes sense.


* ph vh

ph is \paperheight.
vh doesn't exist.


Ok, I had mis-noted vh from some older talk, meeting, or whatever, and 
forgot vs.


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: digits / units setup

2024-08-24 Thread Henning Hraban Ramm

Next try:

Apparently, \setupunit affects only \unit,
for \digits you still need \setdigitmode (and \setdigitorder).
Is this intentional?

Also, \spaceddigits works only with decimal point input and doesn’t 
react to any of the above settings, while \unit and \digits expect me to 
insert a thousands comma manually.

Does this make sense?

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: digits / units setup

2024-08-24 Thread Henning Hraban Ramm

Am 24.08.24 um 20:38 schrieb Henning Hraban Ramm:

According to docs,

\setupunit[method=3]

should change the rendering of numbers in

\unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”,

but it doesn’t.

\setdigitmode{3} works, though.


Seems to be a problem of my environment.

In a minimal example, \setupunit changes \unit, \setdigitmode changes 
\digits.


Sorry for the noise.

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] digits / units setup

2024-08-24 Thread Henning Hraban Ramm

According to docs,

\setupunit[method=3]

should change the rendering of numbers in

\unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”,

but it doesn’t.

\setdigitmode{3} works, though.


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: Complete novice, why does it seem that LuaLaTeX (Compiled via LaTeX Workshop with MikTeX and added packages on Windows) will generate a more compact result than ConTeXt?

2024-08-13 Thread Hans Hagen

On 8/13/2024 8:30 PM, Wolfgang Schuster wrote:

Hans Hagen via ntg-context schrieb am 13.08.2024 um 17:40:

On 8/13/2024 4:49 PM, fm117...@students.panola.edu wrote:
Hello, ConTeXt mailing list! I have a question regarding a difference 
in the code that I have which uses the same paper size and margin 
settings, and also the same indentation rules and font size and font. 
It seems that ConTeXt (which I compiled via Windows Terminal, this 
*is* the proper way to compile ConTeXt docs, right?) seems to make 
text that is less... compact, and I am not sure if this is due to me 
not adding features that I **should** have turned on in ConTeXt when 
using Times New Roman that is installed by default on Windows. I also 
was not able to get a "proper (?)" single quote like when Word or 
LaTeX compiles "Don't", that ' is a straight quote in the compiled text.


I also heard that ConTeXT would be much better for typography since 
it does have a more advanced typographical engine as the base (and 
this is a big reason as to why I want to switch to ConTeXt, pretty 
much everything is built in, I just can't understand documentation 
that well), and this may be because my code is very basic and I do 
not know how do properly do ConTeXt. Is it possible that ConTeXt also 
has a more "correct" way of formatting? Anyways, thank you for 
reading and taking the time to read this post.


LuaLaTeX code: https://pastebin.com/p5aWxAyK

ConTeXt code: https://pastebin.com/DsMnxMvY

Can you explain what you mean with less compact?


The default baseline distance of LaTeX is AFAIK 1.2 times the font size, 
adding


     \setupinterlinespace [line=1.2\bodyfontsize]

to the document setup should produce similar results with ConTeXt.
that interlinespace is kind of bad as it can lead to inconsistent line 
spacing


[dp \the\strutdp] \dorecurse{"}{%
\ifdim\fontchardp\font#1>\strutdp
   \char#1 \space
\fi
}

[ht \the\strutht] \dorecurse{"}{%
\ifdim\fontcharht\font#1>\strutht
   \char#1 \space
\fi
}

So, if oen really wants to go that cramped, maybe try

\setupinterlinespace [line=1.2\bodyfontsize,height=.75,depth=.25]

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] Re: Complete novice, why does it seem that LuaLaTeX (Compiled via LaTeX Workshop with MikTeX and added packages on Windows) will generate a more compact result than ConTeXt?

2024-08-13 Thread Wolfgang Schuster

Hans Hagen via ntg-context schrieb am 13.08.2024 um 17:40:

On 8/13/2024 4:49 PM, fm117...@students.panola.edu wrote:
Hello, ConTeXt mailing list! I have a question regarding a difference 
in the code that I have which uses the same paper size and margin 
settings, and also the same indentation rules and font size and font. 
It seems that ConTeXt (which I compiled via Windows Terminal, this 
*is* the proper way to compile ConTeXt docs, right?) seems to make 
text that is less... compact, and I am not sure if this is due to me 
not adding features that I **should** have turned on in ConTeXt when 
using Times New Roman that is installed by default on Windows. I also 
was not able to get a "proper (?)" single quote like when Word or 
LaTeX compiles "Don't", that ' is a straight quote in the compiled text.


I also heard that ConTeXT would be much better for typography since 
it does have a more advanced typographical engine as the base (and 
this is a big reason as to why I want to switch to ConTeXt, pretty 
much everything is built in, I just can't understand documentation 
that well), and this may be because my code is very basic and I do 
not know how do properly do ConTeXt. Is it possible that ConTeXt also 
has a more "correct" way of formatting? Anyways, thank you for 
reading and taking the time to read this post.


LuaLaTeX code: https://pastebin.com/p5aWxAyK

ConTeXt code: https://pastebin.com/DsMnxMvY

Can you explain what you mean with less compact?


The default baseline distance of LaTeX is AFAIK 1.2 times the font size, 
adding


    \setupinterlinespace [line=1.2\bodyfontsize]

to the document setup should produce similar results with ConTeXt.

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] no escaping with scite highlighting any more?

2024-08-11 Thread Henning Hraban Ramm

Hi, this used to work:

"""
\usemodule[scite]

% the setup doesn’t change the behavior, I think it used to.
\setuptyping[TEX][
  option=tex, % scite sets "cld"
]

\starttext

\startTEX[escape=yes]
\definemeasure[PageWidth][165mm]  /BTEX\hfill{\ss Dimensions}/ETEX
\definemeasure[PageHeight][239mm]

\definepapersize[DANTE][  /BTEX\hfill{\ss Paper size}/ETEX
  width=\measure{PageWidth},
  height=\measure{PageHeight},]
\setuppapersize[DANTE]
\stopTEX

\stoptext
"""

Without the scite module, escaping in \startTEX works, but I need the 
module for some other highlighters.


Is there a solution?

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: Alignments of margin notes

2024-08-02 Thread Wolfgang Schuster

Gerion Entrup schrieb am 02.08.2024 um 14:10:

Am Freitag, 2. August 2024, 07:42:29 MESZ schrieb Pablo Rodriguez via ntg-
context:

On 8/2/24 01:13, Gerion Entrup wrote:

Ok, I think I understand that in principal. Thanks for the explanation.
Can I somehow know in advance that a margin note makes use of \framed?

Hi Gerion,

there is an \ifinframed conditional, such as in:
...
This may help to achieve what you want.

Just in case it helps,

Thanks for the answer, but we misunderstood. I'll try to formulate it clearer:
If I get it right, to set margin notes, you need to specify \setupmargindata
in any case.
However, on the one hand, there might be notes that follow the style of the
"style" argument within \setupmargindata.
And on the other hand, there might be notes that internally uses \framed and
follow the "style" argument within a separately specified \setupmarginframed.

My question is, whether I have any chance to get in advance (when writing down
the document styling) which style argument my future (not yet written) margin
notes will follow to know if I need to specify a \setupmarginframed at all.

Is it the style argument of \setupmargindata or \setupmarginframed or is it a
good practice to _always_ specify \setupmarginframed with the same style
argument as given to \setupmargindata?


I have no idea what your question is but you should use 
\setupmarginframed only when the setup
requires it, e.g. to change the alignment for blocks which use the 
framed mechanism.


The example below shows which predefined margin blocks rely only on 
margindata where
you can change the alignment with \etupmargindata and also the ones 
which require \setupmarginframed.


 begin example
\setuppapersize[A4][A3]

\setuplayout[location=middle]

\starttext

\doloopoverlist{
    inleftmargin,
    inrightmargin,
    inoutermargin,
    ininnermargin,
    inleftedge,
    inrightedge,
    inouteredge,
    ininneredge,
    atleftmargin,
    atrightmargin,
}
{
    \setupmargindata[\recursestring][align=middle]
    \title{\tex{\recursestring}}
    \samplefile{lorem}
    \margindata[\recursestring]{Text in the margin!}
    \samplefile{lorem}
}

\doloopoverlist{
    inleft,
    inright,
    inouter,
    ininner,
    inmargin,
    inother,
}
{
    %\setupmargindata[\recursestring][align=middle]
    \setupmarginframed[\recursestring][align=middle]
    \title{\tex{\recursestring}}
    \samplefile{lorem}
    \margindata[\recursestring]{Text in the margin!}
    \samplefile{lorem}
}

\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 / 
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: Customizing chapter and page no. styles

2024-08-02 Thread Duncan Hothersall
In the Metafun manual source the setup for page numbering is:

\startuseMPgraphic{circled}
  pickup pencircle scaled 1mm ;
  drawoptions(withcolor (.6+uniformdeviate.35)*white) ;
  fill fullcircle xscaled 1.5cm yscaled 1cm ;
  drawoptions(withcolor .625yellow) ;
  draw fullcircle xscaled 1.5cm yscaled 1cm ;
\stopuseMPgraphic

\defineoverlay[circled][\useMPgraphic{circled}]

\def\Circled#1%
  {\framed
 [background=circled,frame=off,offset=overlay]
 {\color[darkred]{#1}}}

\setuppagenumbering[location=]
\setupheadertexts[margin][][\hbox to \hsize{\hss\Circled\pagenumber\hss}]

and for chapter titles:

\startuniqueMPgraphic{titled}
  path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
  pickup pencircle scaled 1mm ;
  drawoptions(withcolor .625yellow) ;
  draw llcorner p -- lrcorner p ;
  setbounds currentpicture to p ;
\stopuniqueMPgraphic

\defineoverlay[titled][\uniqueMPgraphic{titled}]

\def\ChapterCommand#1#2%
  {\setbox0=\hbox to \leftmarginwidth{#1\hss}%
   \hskip-\leftmarginwidth
   \hskip-\leftmargindistance
   \framed
 [background=titled,frame=off,offset=0pt]
 {\box0
  \hskip\leftmargindistance
  #2}}

Hope that helps!

Duncan

On Fri, 2 Aug 2024 at 13:33, Shiv Shankar Dayal 
wrote:

> Hi,
>
> I was going through the Metafun manual, the print version, which comes
> with distribution. I see how page no. and chapters are styles. How can I
> customize for that kind of output in the current version of ConTeXt?
>
> --
> Respect,
> Shiv Shankar Dayal
>
> ___
> 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: Alignments of margin notes

2024-08-01 Thread Gerion Entrup
Am Donnerstag, 1. August 2024, 17:37:21 MESZ schrieb Wolfgang Schuster:
> Gerion Entrup schrieb am 01.08.2024 um 17:19:
> > Am Donnerstag, 1. August 2024, 16:36:06 MESZ schrieb Wolfgang Schuster:
> >> Gerion Entrup schrieb am 01.08.2024 um 16:20:
> >>> Am Donnerstag, 1. August 2024, 16:13:23 MESZ schrieb Wolfgang Schuster:
> >>>> Gerion Entrup schrieb am 01.08.2024 um 14:28:
> >>>>> Hi,
> >>>>>
> >>>>> I want to make a two sided document with margin notes.
> >>>>> The notes should not be hyphenated and always aligned to the inner text 
> >>>>> body.
> >>>>> However, I did not get this to work.
> >>>>> It hyphenates and the alignment is only correct at even pages.
> >>>>>
> >>>>> Do you know the correct way?
> >>>>>
> >>>>> Here is a MWE:
> >>>>> ```
> >>>>> \setuppagenumbering[location={footer, right}, alternative=doublesided]
> >>>>>
> >>>>> \definealign[myalign][inner, nothyphenated]
> >>>>> \setupmargindata[inmargin][
> >>>>> location=outer,
> >>>>> style=italic,
> >>>>>  % nothing of that seems to have any effect
> >>>>> % align=myalign,
> >>>>> % align=inner,
> >>>>> % align=nothyphentated,
> >>>>> align={inner, nothyphentated},
> >>>>> ]
> >>>> Use \setupmarginframed for the alignment.
> >>>>
> >>>> \setupmarginframed
> >>>>  [inmargin]
> >>>>  [align={inner,nothyphenated}]
> >>> Does the align parameter of \setupmargindata has any function, then?
> >>> Also, using setupmarginframed leads to other problems:
> >>> - The margin text is bold now(?)
> >>> - All margin nodes are on the left of the page now (this should be only 
> >>> the case for even pages)
> >> The location of the margin block and the style are still controlled by
> >> \setupmargindata and only the alignment has to be changed with
> >> \setupmarginframed.
> >>
> >> \setupmargindata
> >> [inmargin]
> >> [location=outer,
> >>  style=italic]
> >>
> >> \setupmarginframed
> >> [inmargin]
> >> [align={inner,nothyphenated}]
> > Thanks, that works for the alignment. It does not change the hyphenation.
> > I would have expected this line breaks in the margin note:
> >
> > significant
> > incredible
> > components
> >
> > Instead, ConTeXt generates:
> >
> > significant in­
> > credible com­
> > ponents
> >
> > In general:
> > Does the "align" argument in setupmargindata has a meaning at all?
> 
> The align key works and the output is correct but the problem in this 
> case is a user error.
> 
> When you compare mine and your example you should notice a difference in 
> the spelling of nothyphenated which has an extra "t" in your case.

Oh, you are right, I made a typo here (I appreciate your diplomatic words ;)).



> > Why is the action to setup margin notes splitted in setupmargindata and 
> > setupmarginframed? I find it kind of unintuitive.
> 
> There are two different mechanism at work here:
> 
> 1. The placement of the texts is controlled with the margindata 
> mechanism has style and align options.
> 
> 2. In addition to the placement mechanism some of the margin texts make 
> use of \framed for the content. Because not all margin texts should make 
> use \framed this is optional and controlled with an extra setup-command. 
> The separate setup mechanism avoid also problems with keys which have a 
> different meaning for the placement of the margin texts, e.g. location 
> is an already existing framed-key but it is also used to set the 
> horizontal position of the block.

Ok, I think I understand that in principal. Thanks for the explanation.
Can I somehow know in advance that a margin note makes use of \framed?


Gerion



signature.asc
Description: This is a digitally signed message part.
___
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: placement of float captions in margin

2024-08-01 Thread Henning Hraban Ramm

Am 01.08.24 um 16:48 schrieb Henning Hraban Ramm:
Hi, I think this related to Gerion’s problem, but I don’t want to occupy 
the thread.


I’m trying to get captions in the (inner) margin.

With the setup below it works for left (even) pages; on right pages, the 
caption is placed beside the image, but over the text and not in the 
margin. (Yes, the big distance of image and caption is suboptimal, but 
leftfloats are worse, and the layout in question doesn’t have much space 
in the outer margin.)


If I uncomment %command to use \margincaption, and comment location 
instead, the caption is correctly inside the inner margin, but the width 
is always that of the left margin, i.e. too small on left pages.

I didn’t find a combination of options that completely works.


I solved it with an explicit width value.

Sometimes the caption just disappears.

You will see it at the meeting or in the journal…

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: Alignments of margin notes

2024-08-01 Thread Wolfgang Schuster

Gerion Entrup schrieb am 01.08.2024 um 17:19:

Am Donnerstag, 1. August 2024, 16:36:06 MESZ schrieb Wolfgang Schuster:

Gerion Entrup schrieb am 01.08.2024 um 16:20:

Am Donnerstag, 1. August 2024, 16:13:23 MESZ schrieb Wolfgang Schuster:

Gerion Entrup schrieb am 01.08.2024 um 14:28:

Hi,

I want to make a two sided document with margin notes.
The notes should not be hyphenated and always aligned to the inner text body.
However, I did not get this to work.
It hyphenates and the alignment is only correct at even pages.

Do you know the correct way?

Here is a MWE:
```
\setuppagenumbering[location={footer, right}, alternative=doublesided]

\definealign[myalign][inner, nothyphenated]
\setupmargindata[inmargin][
location=outer,
style=italic,
 % nothing of that seems to have any effect
% align=myalign,
% align=inner,
% align=nothyphentated,
align={inner, nothyphentated},
]

Use \setupmarginframed for the alignment.

\setupmarginframed
 [inmargin]
 [align={inner,nothyphenated}]

Does the align parameter of \setupmargindata has any function, then?
Also, using setupmarginframed leads to other problems:
- The margin text is bold now(?)
- All margin nodes are on the left of the page now (this should be only the 
case for even pages)

The location of the margin block and the style are still controlled by
\setupmargindata and only the alignment has to be changed with
\setupmarginframed.

\setupmargindata
[inmargin]
[location=outer,
 style=italic]

\setupmarginframed
[inmargin]
[align={inner,nothyphenated}]

Thanks, that works for the alignment. It does not change the hyphenation.
I would have expected this line breaks in the margin note:

significant
incredible
components

Instead, ConTeXt generates:

significant in­
credible com­
ponents

In general:
Does the "align" argument in setupmargindata has a meaning at all?


The align key works and the output is correct but the problem in this 
case is a user error.


When you compare mine and your example you should notice a difference in 
the spelling of nothyphenated which has an extra "t" in your case.



Why is the action to setup margin notes splitted in setupmargindata and 
setupmarginframed? I find it kind of unintuitive.


There are two different mechanism at work here:

1. The placement of the texts is controlled with the margindata 
mechanism has style and align options.


2. In addition to the placement mechanism some of the margin texts make 
use of \framed for the content. Because not all margin texts should make 
use \framed this is optional and controlled with an extra setup-command. 
The separate setup mechanism avoid also problems with keys which have a 
different meaning for the placement of the margin texts, e.g. location 
is an already existing framed-key but it is also used to set the 
horizontal position of the block.


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: Alignments of margin notes

2024-08-01 Thread Gerion Entrup
Am Donnerstag, 1. August 2024, 16:36:06 MESZ schrieb Wolfgang Schuster:
> Gerion Entrup schrieb am 01.08.2024 um 16:20:
> > Am Donnerstag, 1. August 2024, 16:13:23 MESZ schrieb Wolfgang Schuster:
> >> Gerion Entrup schrieb am 01.08.2024 um 14:28:
> >>> Hi,
> >>>
> >>> I want to make a two sided document with margin notes.
> >>> The notes should not be hyphenated and always aligned to the inner text 
> >>> body.
> >>> However, I did not get this to work.
> >>> It hyphenates and the alignment is only correct at even pages.
> >>>
> >>> Do you know the correct way?
> >>>
> >>> Here is a MWE:
> >>> ```
> >>> \setuppagenumbering[location={footer, right}, alternative=doublesided]
> >>>
> >>> \definealign[myalign][inner, nothyphenated]
> >>> \setupmargindata[inmargin][
> >>>   location=outer,
> >>>   style=italic,
> >>> % nothing of that seems to have any effect
> >>>   % align=myalign,
> >>>   % align=inner,
> >>>   % align=nothyphentated,
> >>>   align={inner, nothyphentated},
> >>> ]
> >> Use \setupmarginframed for the alignment.
> >>
> >> \setupmarginframed
> >> [inmargin]
> >> [align={inner,nothyphenated}]
> > Does the align parameter of \setupmargindata has any function, then?
> > Also, using setupmarginframed leads to other problems:
> > - The margin text is bold now(?)
> > - All margin nodes are on the left of the page now (this should be only the 
> > case for even pages)
> 
> The location of the margin block and the style are still controlled by 
> \setupmargindata and only the alignment has to be changed with 
> \setupmarginframed.
> 
> \setupmargindata
>[inmargin]
>[location=outer,
> style=italic]
> 
> \setupmarginframed
>[inmargin]
>[align={inner,nothyphenated}]

Thanks, that works for the alignment. It does not change the hyphenation.
I would have expected this line breaks in the margin note:

significant
incredible
components

Instead, ConTeXt generates:

significant in­
credible com­
ponents

In general:
Does the "align" argument in setupmargindata has a meaning at all?
Why is the action to setup margin notes splitted in setupmargindata and 
setupmarginframed? I find it kind of unintuitive.


Gerion

signature.asc
Description: This is a digitally signed message part.
___
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] placement of float captions in margin

2024-08-01 Thread Henning Hraban Ramm
Hi, I think this related to Gerion’s problem, but I don’t want to occupy 
the thread.


I’m trying to get captions in the (inner) margin.

With the setup below it works for left (even) pages; on right pages, the 
caption is placed beside the image, but over the text and not in the 
margin. (Yes, the big distance of image and caption is suboptimal, but 
leftfloats are worse, and the layout in question doesn’t have much space 
in the outer margin.)


If I uncomment %command to use \margincaption, and comment location 
instead, the caption is correctly inside the inner margin, but the width 
is always that of the left margin, i.e. too small on left pages.

I didn’t find a combination of options that completely works.

Hraban


\showframe
\usemodule[visual]
\useMPlibrary[dum]

\setuplayout[
  backspace=40mm,
  rightmargin=20mm,
  leftmargin=30mm,
  width=fit,
  height=fit,
]
\setuppagenumbering[alternative=doublesided]

\definemargindata[margincaption][inner][
  margin=margin,
  %width=\innermarginwidth,
  align=flushleft,
  stack=yes,
  voffset=-.5em,
]
\setupmarginframed[inmargin][
  align={flushleft,low},
]

\definefloat[rightfigure][figure]
\setupfloat[rightfigure][
  default=right,
  width=.33\textwidth,
]

\setupcaption[rightfigure][
  align={flushleft},
  width=\innermarginwidth,
  location=innermargin, % comment this
%command={\margincaption[inner]}, % uncomment this
  frame=on,
  framecolor=red,
  style={\ss\tfx},
]

\starttext

\dorecurse{20}{

\section{\fakewords{1}{5}}

\fakewords{10}{100}

\startplacerightfigure[title={\fakewords{2}{10}}]
\externalfigure[dummy][width=.33\textwidth,lines=5]
\stopplacerightfigure

\fakewords{10}{100}

}

\stoptext
___
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: combining float counters

2024-07-31 Thread Hans Hagen

On 7/31/2024 8:43 PM, Henning Hraban Ramm wrote:
Hi, I defined new float types for special figure/caption placement, but 
would like to use the general figure counter. I didn’t find a setup for 
that. How can I do this?


pseudocode:


I assume you did:

\definefloat[myfigure][figure]

and then use \startmyfigure etc


\setupfloat[myfigure][
   counter=figure,
]

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
___


--

-
  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] Re: combining float counters

2024-07-31 Thread Henning Hraban Ramm

Am 31.07.24 um 20:49 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 31.07.2024 um 20:43:
Hi, I defined new float types for special figure/caption placement, 
but would like to use the general figure counter. I didn’t find a 
setup for that. How can I do this?



\definefloat[myfigure][figure]


Uh, of course! Thank you, I was “standing on the hose” ;)

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: combining float counters

2024-07-31 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 31.07.2024 um 20:43:
Hi, I defined new float types for special figure/caption placement, 
but would like to use the general figure counter. I didn’t find a 
setup for that. How can I do this?


pseudocode:

\setupfloat[myfigure][
  counter=figure,
]


\useMPlibrary[dum]

\definefloat[myfigure][figure]

\starttext

\startplacefigure[title=Figure]
  \externalfigure[dummy-a]
\stopplacefigure

\startplacemyfigure[title=Myfigure]
  \externalfigure[dummy-a]
\stopplacemyfigure

\stoptext

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] combining float counters

2024-07-31 Thread Henning Hraban Ramm
Hi, I defined new float types for special figure/caption placement, but 
would like to use the general figure counter. I didn’t find a setup for 
that. How can I do this?


pseudocode:

\setupfloat[myfigure][
  counter=figure,
]

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] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-07-31 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
 overview.htm
 rss.xml
 show-fil.pdf
 show-man-1.htm
 show-man-10.htm
 show-man-11.htm
 show-man-12.htm
 show-man-13.htm
 show-man-14.htm
 show-man-15.htm
 show-man-16.htm
 show-man-17.htm
 show-man-18.htm
 show-man-19.htm
 show-man-2.htm
 show-man-20.htm
 show-man-21.htm
 show-man-22.htm
 show-man-23.htm
 show-man-24.htm
 show-man-25.htm
 show-man-26.htm
 show-man-27.htm
 show-man-28.htm
 show-man-29.htm
 show-man-3.htm
 show-man-30.htm
 show-man-31.htm
 show-man-32.htm
 show-man-33.htm
 show-man-34.htm
 show-man-35.htm
 show-man-36.htm
 show-man-37.htm
 show-man-38.htm
 show-man-39.htm
 show-man-4.htm
 show-man-40.htm
 show-man-41.htm
 show-man-42.htm
 show-man-43.htm
 show-man-44.htm
 show-man-45.htm
 show-man-46.htm
 show-man-47.htm
 show-man-48.htm
 show-man-49.htm
 show-man-5.htm
 show-man-50.htm
 show-man-51.htm
 show-man-52.htm
 show-man-53.htm
 show-man-54.htm
 show-man-55.htm
 show-man-56.htm
 show-man-57.htm
 show-man-58.htm
 show-man-59.htm
 show-man-6.htm
 show-man-60.htm
 show-man-61.htm
 show-man-62.htm
 show-man-63.htm
 show-man-7.htm
 show-man-79.htm
 show-man-8.htm
 show-man-80.htm
 show-man-81.htm
 show-man-84.htm
 show-man-9.htm
 wget.txt
 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/mathincontext-paper.pdf
 general/manuals/mathincontext-screen.pdf
 general/manuals/tagging.pdf
 general/qrcs/
 general/qrcs/setup-mapping-en.pdf
 general/qrcs/setup-mapping-it.pdf
 
 sent 231,957 bytes  received 70,626,055 bytes  4,294,424.97 bytes/sec
 total size is 618,054,322  speedup is 8.72


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-07-31.20
272043318   
/var/www/aanhet.net/context//htdocs/archives/context-2024-07-31.20/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2024-07-31.20/current
398792731   
/var/www/aanhet.net/context//htdocs/archives/context-2024-07-31.20
398792731   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] spreadsheet module

2024-07-20 Thread Henning Hraban Ramm
Hi, I checked the spreadsheet module for the first time (in my own 
invoices I do everything in Lua and don’t need it).


In the attached example, I setup a decimal comma, as usual in German:
\setupspreadsheet[rechnung][
period={,}, comma={\,}, split=yes]

Unfortunately, this also replaces all dots in the text strings.

Is there a workaround (beside using \getspr in a “real” table)?

Apparently, \startrow or \startcell don’t understand the period setting.

Hraban

spreadsheet.tex
Description: TeX document
___
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] request for talk/article on writing modules

2024-07-19 Thread Henning Hraban Ramm

Hi wizards,
I’d really appreciate an introduction “how to write a ConTeXt module” at 
the meeting and in the next journal.


* How does this namespace and setup stuff work?
* When does it make sense to use variables, macros or parameters?
* Should I use the namespace for internally used MP graphics, 
environments, buffers etc.?


I guess I can figure out most of it on my own, but I think we should 
have some easily understandable documentation.


Or do we already have something and I didn’t find it?

I can contribute the part about distribution.

Best, 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: roman numerals frontpart

2024-06-25 Thread jbf

I have found the problem, but am still seeking a little help:

I had created a setup to raise the page number in the footer. Calling 
this setup resulted in the frontpart pages reverting to arabic instead 
of roman:


\startsetups pnfooter

\setuppagenumbering[alternative=doublesided,location=]

\setupfooter

  [style=normal]

  \setupfootertexts

  [{\framed[width=max,frame=off,boffset=2mm]{\pagenumber}}]

\stopsetups

How can I continue to use the setup but still get my roman numerals in 
the frontpart?

Julian

On 26/6/24 10:52, jbf wrote:


Something that has worked for me in the past is not working for me at 
the moment, and I cannot figure out why:


\startsectionblockenvironment [frontpart]
\setupuserpagenumber [numberconversion=romannumerals]
\setcounter [userpage] [5]
\stopsectionblockenvironment
\startsectionblockenvironment [bodypart]
\setcounter [userpage] [1]
\stopsectionblockenvironment

gives me roman numerals in the TOC but not on the frontmatter pages, 
which are arabic. Bodymatter is okay. What could I possibly be doing 
wrong?


Even with a different setup I get the same result:

\definestructureconversionset [frontpart:pagenumber] [] [romannumerals]
\setupheads[title][sectionconversionset=section]
\startsectionblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals]
\setuppagenumber[number=1]
\stopsectionblockenvironment

Puzzling (for me at least).

Julian
___
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] roman numerals frontpart

2024-06-25 Thread jbf
Something that has worked for me in the past is not working for me at 
the moment, and I cannot figure out why:


\startsectionblockenvironment [frontpart]

\setupuserpagenumber [numberconversion=romannumerals]

\setcounter [userpage] [5]

\stopsectionblockenvironment

\startsectionblockenvironment [bodypart]

\setcounter [userpage] [1]

\stopsectionblockenvironment

gives me roman numerals in the TOC but not on the frontmatter pages, 
which are arabic. Bodymatter is okay. What could I possibly be doing wrong?


Even with a different setup I get the same result:

\definestructureconversionset [frontpart:pagenumber] [] [romannumerals]
\setupheads[title][sectionconversionset=section]
\startsectionblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals]
\setuppagenumber[number=1]
\stopsectionblockenvironment

Puzzling (for me at least).

Julian
___
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: Specify separator within setupbtx for custom bibliography rendering

2024-06-21 Thread Gerion Entrup
Am Samstag, 1. Juni 2024, 16:16:38 MESZ schrieb Gerion Entrup:
> Hi,
> 
> according to the section "Custom citation renderings" in the bibliography 
> manual, I have specified an own setup for citation rendering.
> However, this seems only to work for single citations (of one source). I want 
> to also specify the separator but did not get it to run.
> 
> Here is a minimal example:
> ```
> \setupinteraction[state=start]
> 
> \startbuffer[testdata]
> @Book{knuth1,
>   author = {Donald E. Knuth},
>   title = {TEX and METAFONT. New directions in typesetting},
>   year = {1979},
>   publisher = {Addison-Wesley},
> }
> @Article{someother,
>   author = {Some Person and Some Otherperson},
>   title = {Another title},
>   year = {1900},
> }
> \stopbuffer
> 
> % enable tracing
> \enabletrackers[publications, publications.crossref, publications.details, 
> publications.cite, publications.strings]
> 
> \usebtxdataset[main][testdata.buffer]
> \usebtxdefinitions[aps]
> \setupbtx[dataset=main]
> \definebtxrendering[bibrendering][aps][dataset=main, numbering=short]
> \setupbtxlist[aps][
>   alternative=b,
>   distance=.5em,
> ]
> 
> \definebtx[aps:cite:special][aps:cite][
>   left={((},
>   right={))},
>   separator:2={sfd},
>   separator:3={sfd},
>   separator:4={sfd},
> ]
> 
> \startsetups btx:aps:cite:special
>   % just a dummy
>   \btxcitereference
>   \currentbtxtag
> \stopsetups
> 
> \setupbtx[aps:cite][
>   alternative=special,
> ]
> 
> \starttext
> 
> Both said something~\cite[knuth1, someother].
> 
> \placelistofpublications[bibrendering]
> 
> \stoptext
> ```
> 
> The output of this is:
> 
> > Both said something ((knuth1someother)).
> 
> How can I get the separator to work? My expectation would be:
> 
> > Both said something ((knuth1sfdsomeother)).
> 
> or
> 
> > Both said something ((knuth1sfd someother)).

I got some understanding of the underlying code now.
This setup solves the above issue:

```
\startsetups btx:aps:cite:special
% just a dummy
\fastsetup{btx:cite:concat}
\btxcitereference
\currentbtxtag
\stopsetups
```

Gerion


signature.asc
Description: This is a digitally signed message part.
___
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: URL in footnote citation

2024-06-20 Thread Alan Braslau via ntg-context
Putting the URL as a hyperlink on the cite title is possible. Note that 
is is not what APA specifies.


To do this, you need to modify the rendering definitions.

Alan


On 20/06/24 20/06/24, 00:03, Kip Warner wrote:

Hello list,

I am trying to get my references that have URLs to automatically set
the entry title to the URL and not print the URL after it.

Here is a minimal:

\startbuffer[testdata]
@Article{wikipedia2024_depeche_mode_sounds_of_the_universe,
  author= {{Wikipedia contributors}},
  title = {Sounds of the Universe},
  year  = {2024},
  url   = 
{https://en.wikipedia.org/w/index.php?title=Sounds_of_the_Universe&oldid=1224785220},
  note  = "[Online; accessed 20-May-2024]"
}
\stopbuffer
    
% Setup bibliography...

   % Select References.bib and name it the main database...

   \usebtxdataset[main][testdata.buffer]

   % Citation style...

   \usebtxdefinitions[apa]

   % Use our main dataset for citations...

   \setupbtx[dataset=main]

   \definebtxrendering[main][apa][dataset=main]

   \setupbtxrendering[main][

   pagestate=start,
   continue=yes,
   numbering=yes]

   % Macro to put the citations as footnotes...

   \unexpanded\def\footnotecite{\dodoubleempty\domycite}
   \def\domycite[#1][#2]%
   {\ifsecondargument
   \footnote{\alwayscite[alternative=entry,#1][main::#2]}%
   \else
   \footnote{\alwayscite[alternative=entry][main::#1]}%
   \fi}

\starttext

Some 
footnote.\footnotecite[wikipedia2024_depeche_mode_sounds_of_the_universe]
\stoptext

The footnote renders like so:

Wikipedia contributors (2024). Sounds of the Universe. Retrieved from
https://en.wikipedia.org/w/index.php?title=Sounds_of_the_Universe&oldid
=1224785220 ([Online; accessed 20-May-2024])

It would look much better if it looked like so:

Wikipedia contributors (2024). Sounds of the Universe. ([Online;
accessed 20-May-2024])

...where "Sounds of the Universe" is linked to the URL in the BibTeX
database. Is this possible to do?


___
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] URL in footnote citation

2024-06-19 Thread Kip Warner
Hello list,

I am trying to get my references that have URLs to automatically set
the entry title to the URL and not print the URL after it.

Here is a minimal:

   \startbuffer[testdata]
   @Article{wikipedia2024_depeche_mode_sounds_of_the_universe,
 author= {{Wikipedia contributors}},
 title = {Sounds of the Universe},
 year  = {2024},
 url   = 
{https://en.wikipedia.org/w/index.php?title=Sounds_of_the_Universe&oldid=1224785220},
 note  = "[Online; accessed 20-May-2024]"
   }
   \stopbuffer
   
   % Setup bibliography...
   
  % Select References.bib and name it the main database...
  \usebtxdataset[main][testdata.buffer]
   
  % Citation style...
  \usebtxdefinitions[apa]
   
  % Use our main dataset for citations...
  \setupbtx[dataset=main]
   
  \definebtxrendering[main][apa][dataset=main]
   
  \setupbtxrendering[main][
  pagestate=start,
  continue=yes,
  numbering=yes]
   
  % Macro to put the citations as footnotes...
  \unexpanded\def\footnotecite{\dodoubleempty\domycite}
  \def\domycite[#1][#2]%
  {\ifsecondargument
  \footnote{\alwayscite[alternative=entry,#1][main::#2]}%
  \else
  \footnote{\alwayscite[alternative=entry][main::#1]}%
  \fi}
   
   \starttext
   Some 
footnote.\footnotecite[wikipedia2024_depeche_mode_sounds_of_the_universe]
   \stoptext

The footnote renders like so:

   Wikipedia contributors (2024). Sounds of the Universe. Retrieved from
   https://en.wikipedia.org/w/index.php?title=Sounds_of_the_Universe&oldid
   =1224785220 ([Online; accessed 20-May-2024])

It would look much better if it looked like so:

   Wikipedia contributors (2024). Sounds of the Universe. ([Online;
   accessed 20-May-2024])

...where "Sounds of the Universe" is linked to the URL in the BibTeX
database. Is this possible to do?

-- 
Kip Warner
OpenPGP signed/encrypted mail preferred
https://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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: Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-18 Thread Kip Warner
On Tue, 2024-06-18 at 18:48 +0200, Hans Hagen wrote:
> then use \alwayscite

Hey Hans. I note that command is not documented (yet) so thank you for
providing that. That works in getting the reference typeset without
having to list all of them.

That at least gets the reference to typeset, but back to the original
issue, it still doesn't typeset correctly. I've managed to come up with
a minimal that displays the garbled reference:

   \startbuffer[testdata]
   @Book{cicero-tuscu2011,
   author = {Cicéron, Marcus Tullius},
   editor = {Fohlen, G.},
   publisher  = {Les Belles Lettres},
   title  = {Tusculanes},
   year   = {2011},
   address= {Paris},
   edition= {7e tirage},
   isbn   = {9782251010830},
   series = {œuvres philosophiques},
   volume = {1},
   ppn_gvk= {1823774121},
   translator = {Jules Humbert},
   }
   \stopbuffer
   
   % Setup bibliography...
   
   % Select References.bib and name it the main database...
   \usebtxdataset[main][testdata.buffer]
   
   % Citation style...
   \usebtxdefinitions[apa]
   
   % Use our main dataset for citations...
   \setupbtx[dataset=main]
   
   \definebtxrendering[main][apa][dataset=main]
   
   \setupbtxrendering[main][
   pagestate=start,
   continue=yes,
   numbering=yes]
   
   % Macro to put the citations as footnotes...
   \unexpanded\def\footnotecite{\dodoubleempty\domycite}
   \def\domycite[#1][#2]%
   {\ifsecondargument
   \footnote{\alwayscite[alternative=entry,#1][main::#2]}%
   \else
   \footnote{\alwayscite[alternative=entry][main::#1]}%
   \fi}
   
   \starttext
   Some footnote.\footnotecite[cicero-tuscu2011]
   \stoptext

If I use ConTeXt via https://context-on-web.eu/, which appears to be 
ConTeXt ver: 2022.12.22 22:17 LMTX fmt: 2022.12.23, it works fine and I
see the following in the footnote, as expected:

   1 Cicéron, M. T. (2011). Tusculanes (G. Fohlen, Ed.) (J. Humbert,
   Trans.). (Vol. 1, 7e tirage ed.). Paris: Les Belles Lettres.

But on my machine which has ConTeXt 2023.05.05, I see the following:

   1 internal()Cicéron, M. T. (2011). Tusculanes (G. Fohlen, Ed.) (J.
   Humbert, Trans.). (Vol. 1, 7e tirage ed.). Paris: Les Belles Lettres.
   isbn∶9782251010830

-- 
Kip Warner
OpenPGP signed/encrypted mail preferred
https://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-18 Thread Gerion Entrup
Am Montag, 17. Juni 2024, 21:20:19 MESZ schrieb Wolfgang Schuster:
> Gerion Entrup schrieb am 17.06.2024 um 13:04:
> > Am Donnerstag, 6. Juni 2024, 16:34:03 MESZ schrieb Wolfgang Schuster:
> >> [...]
> >>
> >> Wolfgang
> >>
> > 
> > I tried to combine this with the code of the mail thread: "setuphead in 
> > connection with the command argument" but had not luck.
> > ConTeXt always stops with:
> > ```
> > close source> level 1, order 2, name './mwe.tex'
> > tex error   > runaway error: end of file encountered
> > mtx-context | fatal error: return code: 1
> > ```
> > 
> > Here is the MWE:
> > ```
> > [...]
> > 
> > \startsetups[my_chapter]
> > \startlocalheadsetup
> > \startframed[chapter_frame]
> > \blank[2cm]
> > \startfont[Serif sa 8]
> > \color[darkgray]{\headnumbercontent}
> > \stopfont
> > \blank[5mm]
> > \startfont[SerifBold sa 2]
> > \color[m-indigo-800]{\headtextcontent}
> > \stopfont
> > \blank[1cm]
> > \startfont[SerifBold sa 1.5]
> > 
> > \color[m-indigo-800]{\structureuservariable{subtitle}}
> > \stopfont
> > \blank[3cm]
> > 
> > \startextract[author={\structureuservariable{quoteauthor}}]
> > \structureuservariable{quote}
> > \stopextract
> > \stopframed
> > \stoplocalheadsetup
> > \stopsetups
> 
> The userdata environment uses the buffer mechanism of Context which has 
> a few limitations where you can use it, e.g. putting the environment in 
> the arguments of other commands (like the setup-environment above) 
> fails. One way to avoid this is to replace the \startextract ... 
> \stopextract in this case with the code for the quoted text, another way 
> is to put all content in a buffer and just load the buffer in the 
> setups-environment.
> 
> \startbuffer[my_chapter]
>   \startlocalheadsetup
>   \startframed[chapter_frame]
>   ...
>   \stopframed
>   \stoplocalheadsetup
> \stopbuffer
> 
> \startsetups[my_chapter]
>\getbuffer[my_chapter]
> \stopsetups
> 
> Wolfgang
> 

Thanks, I solved it by embedding the extract code directly (more less).

Gerion


signature.asc
Description: This is a digitally signed message part.
___
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: Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-17 Thread Kip Warner
On Tue, 2024-06-18 at 00:54 +0200, Hans Hagen wrote:
> complete example needed
> 
> - tex file
> - bib file

Hello Hans,

While trying to prepare a minimal for you I noticed that now all of my
footnotes disappear. Here is a minimal using the buffer method so there
is only one file:

   \startbuffer[testdata]
   @Book{cicero-tuscu2011,
author = {Cicéron, Marcus Tullius},
editor = {Fohlen, G.},
publisher  = {Les Belles Lettres},
title  = {Tusculanes},
year   = {2011},
address= {Paris},
edition= {7e tirage},
isbn   = {9782251010830},
series = {œuvres philosophiques},
volume = {1},
ppn_gvk= {1823774121},
translator = {Jules Humbert},
   }
   \stopbuffer
   
   % Setup bibliography...
   
   % Select References.bib and name it the main database...
   \usebtxdataset[main][testdata.buffer]
   
   % Citation style...
   \usebtxdefinitions[apa]
   
   % Use our main dataset for citations...
   \setupbtx[dataset=main]
   
   \definebtxrendering[main][apa][dataset=main]
   
   \setupbtxrendering[main][
   pagestate=start,
   continue=yes,
   numbering=yes]
   
   % Macro to put the citations as footnotes...
   \unexpanded\def\footnotecite{\dodoubleempty\domycite}
   \def\domycite[#1][#2]%
   {\ifsecondargument
   \footnote{\cite[alternative=entry,#1][main::#2]}%
   \else
   \footnote{\cite[alternative=entry][main::#1]}%
   \fi}
   
   \starttext
   Some footnote here.\footnotecite[cicero-tuscu2011]
   \stoptext

-- 
Kip Warner
OpenPGP signed/encrypted mail preferred
https://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-17 Thread Wolfgang Schuster

Gerion Entrup schrieb am 17.06.2024 um 13:04:

Am Donnerstag, 6. Juni 2024, 16:34:03 MESZ schrieb Wolfgang Schuster:

[...]

Wolfgang



I tried to combine this with the code of the mail thread: "setuphead in connection 
with the command argument" but had not luck.
ConTeXt always stops with:
```
close source> level 1, order 2, name './mwe.tex'
tex error   > runaway error: end of file encountered
mtx-context | fatal error: return code: 1
```

Here is the MWE:
```
[...]

\startsetups[my_chapter]
\startlocalheadsetup
\startframed[chapter_frame]
\blank[2cm]
\startfont[Serif sa 8]
\color[darkgray]{\headnumbercontent}
\stopfont
\blank[5mm]
\startfont[SerifBold sa 2]
\color[m-indigo-800]{\headtextcontent}
\stopfont
\blank[1cm]
\startfont[SerifBold sa 1.5]

\color[m-indigo-800]{\structureuservariable{subtitle}}
\stopfont
\blank[3cm]

\startextract[author={\structureuservariable{quoteauthor}}]
\structureuservariable{quote}
\stopextract
\stopframed
\stoplocalheadsetup
\stopsetups


The userdata environment uses the buffer mechanism of Context which has 
a few limitations where you can use it, e.g. putting the environment in 
the arguments of other commands (like the setup-environment above) 
fails. One way to avoid this is to replace the \startextract ... 
\stopextract in this case with the code for the quoted text, another way 
is to put all content in a buffer and just load the buffer in the 
setups-environment.


\startbuffer[my_chapter]
\startlocalheadsetup
\startframed[chapter_frame]
...
\stopframed
\stoplocalheadsetup
\stopbuffer

\startsetups[my_chapter]
  \getbuffer[my_chapter]
\stopsetups

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: context / auctex problem?

2024-06-17 Thread Joaquín Ataz López
Thank you very much for sharing the configuration needed to compile with 
ConTeXt from Emacs. The standard AucTeX configuration does not allow to 
compile with the latest version of LMTX. And the information in AucTeX 
on how to change that is frankly deficient. To the point that I, who am 
an Emacs user for almost everything, when I write in ConTeXt I prefer to 
use Vim.


Maybe on the Wiki, someone who knows how to configure AucTeX to work 
with ConTeX, could share the information. And I also think it would be a 
good idea to include there the definition and key bindings that Seyal 
Zavira has shared.


El 17/6/24 a las 19:41, seyal zavira escribió:


In Emacs, I prefer use pure ConTeXt.
I have attached my Emacs init file. This setup is so satisfying.
You can compile your documents with just C-c c and view them with C-c v.
Also, you don't need to close the PDF after every compile (Evince will 
restart the contents after compilation).

In GNOME, you can simply switch between windows using Alt+Tab.
I hope this is helpful!

On Mon, Jun 17, 2024 at 1:36 PM Henning Hraban Ramm  
wrote:


Am 17.06.24 um 14:15 schrieb Jürgen Hanneder via ntg-context:
>
> Apologies for this question, which is probably an auctex
problem. I have
> a new install of everything
> (LinuX, emacs, texlive) and the latest (?) context (ConTeXt ver:
> 2024.05.27 18:16 LMTX)

Latest ist today’s, but that’s not the problem.

> installed in
> a separate directory.
>
> Running context from the commandline works fine, so I guess I
did not
> misspell the path,
> but when running "Context All" from emacs, the error is:
>
> -
> Running `ConTeXt' on `context-test' with ``context --once 
--nonstop
> context-test.tex''
> /bin/sh: Zeile 1: context: Kommando nicht gefunden.
>
> TeX Output exited abnormally with code 127 at Mon Jun 17 14:03:03
> --

Apparently, your Emacs doesn’t use the same PATH as your terminal.

The error message is from /bin/sh, I guess you usually run bash,
zsh or
the like, and that gets its PATH from .bashrc or something like that.

Check how Emacs calls that script, and if you can define a PATH.

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

<https://urldefense.com/v3/__https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaLIywNcD$>
webpage  : https://www.pragma-ade.nl

<https://urldefense.com/v3/__https://www.pragma-ade.nl__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaIICi8OX$>
/ https://context.aanhet.net

<https://urldefense.com/v3/__https://context.aanhet.net__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaD7Vsslq$>
(mirror)
archive  : https://github.com/contextgarden/context

<https://urldefense.com/v3/__https://github.com/contextgarden/context__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaBElf__0$>
wiki     : https://wiki.contextgarden.net

<https://urldefense.com/v3/__https://wiki.contextgarden.net__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaD0w4BJv$>

___


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

maillist :ntg-context@ntg.nl  /https://urldefense.com/v3/__https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaLIywNcD$  
webpage  :https://urldefense.com/v3/__https://www.pragma-ade.nl__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaIICi8OX$   /https://urldefense.com/v3/__https://context.aanhet.net__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaD7Vsslq$   (mirror)
archive  :https://urldefense.com/v3/__https://github.com/contextgarden/context__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaBElf__0$  
wiki :https://urldefense.com/v3/__https://wiki.contextgarden.net__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaD0w4BJv$  
___


--
Joaquín Ataz López
Departamento de Derecho civil
Universidad de Mur

[NTG-context] Re: context / auctex problem?

2024-06-17 Thread seyal zavira
In Emacs, I prefer use pure ConTeXt.
I have attached my Emacs init file. This setup is so satisfying.
You can compile your documents with just C-c c and view them with C-c v.
Also, you don't need to close the PDF after every compile (Evince will
restart the contents after compilation).
In GNOME, you can simply switch between windows using Alt+Tab.
I hope this is helpful!

On Mon, Jun 17, 2024 at 1:36 PM Henning Hraban Ramm  wrote:

> Am 17.06.24 um 14:15 schrieb Jürgen Hanneder via ntg-context:
> >
> > Apologies for this question, which is probably an auctex problem. I have
> > a new install of everything
> > (LinuX, emacs, texlive) and the latest (?) context (ConTeXt ver:
> > 2024.05.27 18:16 LMTX)
>
> Latest ist today’s, but that’s not the problem.
>
> > installed in
> > a separate directory.
> >
> > Running context from the commandline works fine, so I guess I did not
> > misspell the path,
> > but when running "Context All" from emacs, the error is:
> >
> > -
> > Running `ConTeXt' on `context-test' with ``context --once  --nonstop
> > context-test.tex''
> > /bin/sh: Zeile 1: context: Kommando nicht gefunden.
> >
> > TeX Output exited abnormally with code 127 at Mon Jun 17 14:03:03
> > --
>
> Apparently, your Emacs doesn’t use the same PATH as your terminal.
>
> The error message is from /bin/sh, I guess you usually run bash, zsh or
> the like, and that gets its PATH from .bashrc or something like that.
>
> Check how Emacs calls that script, and if you can define a PATH.
>
> 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
>
> ___
>


.emacs
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] Pocket Diary Photo Calendar: how to specify on which day the week begins?

2024-06-15 Thread Michael Guravage
Hi,

I am trying to use the Pocket Diary
<https://ctan.org/pkg/context-pocketdiary> module to create a photo
calendar as described in the Calendar Examples
<https://ctan.org/pkg/context-calendar-examples>. The examples work fine.
By default weeks begin on Monday. Does anyone know how to specify that
weeks begin on Sunday? I have searched through all the setvariable
assignments, but nothing seems applicable.

I have attached an example file so you needn't retrieve all the examples.
Any help would be appreciated.

-- 
With kind regards,

Michael


<http://literatesolutions.com>
\usemodule[pocketdiary]

%D Choose and setup the font to be used
\setupbodyfont[ibmplex,ss,12pt]

% Supported languages: EN,DE,NL,FR,IT,ES
\mainlanguage[nl]

% Switch off the page numbering
\setuppagenumbering[location=]

% Setup the paper size
\setuppapersize[A4,portrait][A4,portrait]

% Adjust the layout of the page
\setuplayout
  [topspace=20mm,
  backspace=8.6mm,
  header=0pt,
  footer=0pt,
  height=middle,
  width=middle]

% Setup the path where to find the calendar pictures
\setupexternalfigures [directory={., ./graphics, ../graphics, ./MyPhotoDirectory}]
\setupexternalfigures [location={local,global,default}]

\def\testimage {cow} % dolly.png
% Give pictures symbolic names for using in a loop
\useexternalfigure [1] [\testimage]
\useexternalfigure [2] [\testimage]
\useexternalfigure [3] [\testimage]
\useexternalfigure [4] [\testimage]
\useexternalfigure [5] [\testimage]
\useexternalfigure [6] [\testimage]
\useexternalfigure [7] [\testimage]
\useexternalfigure [8] [\testimage]
\useexternalfigure [9] [\testimage]
\useexternalfigure [10] [\testimage]
\useexternalfigure [11] [\testimage]
\useexternalfigure [12] [\testimage]
\useexternalfigure [13] [\testimage]

% Setup the variables for the Pocket diary, only year is used for the calculations.
\setvariables
  [PocketDiary]
  [Year=2025]

% Let the header and the footer be empty:
\setupheadertexts[][]
\setupfootertexts[][]

% Add some label texts for the international interfaces:
\setuplabeltext[en][fotocal={Photo Calendar}]
\setuplabeltext[nl][fotocal=Fotokalender]
\setuplabeltext[de][fotocal=Fotokalender]
\setuplabeltext[fr][fotocal={Calendrier photo}]
\setuplabeltext[it][fotocal={Calendario fotografico}]
\setuplabeltext[es][fotocal={Calendario fotográfico}]

%D Let lua is perform the magic:
\startluacode
  local report = logs.reporter("Photo calendar")

  function thirddata.calendar.Photo_calendar_page(y)

report("Working in function: calendar.Foto_calendar_page")

local year = y
--local path = file.dirname("./Fotokalender-fotos/")
for i = 1,12 do

  local monthname = string.lower(os.date("%B",
os.time{year=year,month=i,day=1}))

  context.startplacefigure({number="",title=""})
 context.externalfigure({i}, {width = "0.8\\textwidth"})
  context.stopplacefigure()
  context.strut()
  context("\\vfill")
  context.startalign({"middle"})
context("\\bfa")
context.labeltext(monthname)
context("~")
context(year)
  context.stopalign()
  context.blank()

  thirddata.diary.monthtableH(i,year)

  context.page()
end
  end
\stopluacode


% Setup of the month table
\startsetups table:month
   \setupTABLE[c]
  [each]
  [width=\dimexpr\textwidth/7,
   frame=on,
   style=\tfa]
   \setupTABLE[r][each][height=1.8\lineheight,align={center,lohi}]
   \setupTABLE[c][7][foregroundcolor=red]
\stopsetups

% Define the macro for calling lua
\define[1]\Photocalendarpages
  {\ctxlua{thirddata.calendar.Photo_calendar_page(#1)}}

% Setup the \TEX\ side of the document
\starttext

  % Add a title page
  \startstandardmakeup[page=yes,doublesided=yes]
\startplacefigure
  [location=middle,
   title=,
   number=]
  {\externalfigure[13][width=\paperwidth]}
\stopplacefigure
\midaligned{\bfc \labeltext{fotocal}~\getvariable{PocketDiary}{Year}}
  \stopstandardmakeup

  % Call the defined macro
  \Photocalendarpages{\getvariable{PocketDiary}{Year}}

\stoptext
___
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: Prefix the text in an enumeration.

2024-06-14 Thread Gerion Entrup
Am Freitag, 14. Juni 2024, 11:51:28 MESZ schrieb Wolfgang Schuster:
> Gerion Entrup schrieb am 14.06.2024 um 11:01:
> > Am Donnerstag, 13. Juni 2024, 16:31:58 MESZ schrieb Wolfgang Schuster:
> >> \startsetups[question:intro]
> >> \setupparagraphintro[first][\bold{Answer:} ]
> >> \blank
> >> \stopsetups
> >>
> >> \defineenumeration[question][
> >>  alternative=top,
> >>  text=Question,
> >>  title=yes,
> >>  titleleft=,
> >>  titleright=,
> >>  right={:},
> >>  headstyle=bold,
> >> inbetween=\setup{question:intro},
> >> ]
> >>
> >> \starttext
> >>
> >> Some text:
> >>
> >> \startquestion[title={How long does a loop last?}]
> >> For a while.
> >> \stopquestion
> >>
> >> \stoptext
> > 
> > Thank you. That works well for this case.
> > 
> > I have a follow up question. I tried to additionally set a titledistance 
> > and reproduce that for the "Answer:"-part.
> > ConTeXt then introduces a mysterious newline.
> > 
> > See this example:
> > 
> > \definehspace[dist][1em]
> > \startsetups[question:intro]
> > \setupparagraphintro[first][\bold{Answer:}\hspace[1em]]
> > \blank
> > \stopsetups
> 
> You need 2 changes for \setupparagraphintro:
> 
> 1. Change the argument of \hspace to "dist" because the commands accepts 
> only keywords and everything else (even a valid length) is ignored and 
> results in a horizontal skip of 0pt.

Hrmm, this was a typo.

> 
> 2. You have to add curly braces around the content when the content 
> includes square brackets because nesting of optional arguments isn't 
> supported yet.

Thanks for the help, that was the missing part.

> 
> The correct version of the one above is:
> 
> \startsetups[question:intro]
> \setupparagraphintro[first][{\bold{Answer:}\hspace[dist]}]
> \blank
> \stopsetups
> 
> Wolfgang
> 

Gerion



signature.asc
Description: This is a digitally signed message part.
___
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] WG: Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-06-14 Thread Denis Maier via ntg-context
Hi,
the current update should contain a file general/manuals/xml-mkiv-tricks.pdf
I couldn't find it.
The math manuals are there though (thanks for all the hard work on this
one!), and they date shows they have been just added.

Any hints?

Best,
Denis


-Ursprüngliche Nachricht-
Von: Cron Daemon  
Gesendet: Freitag, 14. Juni 2024 10:01
An: ntg-context@ntg.nl
Betreff: [NTG-context] Cron 
/var/www/aanhet.net/context/bin/cron/context-mirror

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/examples-mathmeanings.pdf
 general/manuals/mathincontext-paper.pdf
 general/manuals/mathincontext-screen.pdf
 general/manuals/primitives.pdf
 general/manuals/xml-mkiv-tricks.pdf
 general/qrcs/
 general/qrcs/setup-mapping-en.pdf
 general/qrcs/setup-mapping-it.pdf
 
 sent 194,450 bytes  received 81,011,052 bytes  4,389,486.59 bytes/sec
total size is 616,947,162  speedup is 7.60


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-06-14.10
271291681
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-14.10/latest
126745317
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-14.10/current
398041094
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-14.10
398041094   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

___

___
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: Prefix the text in an enumeration.

2024-06-14 Thread Wolfgang Schuster

Gerion Entrup schrieb am 14.06.2024 um 11:01:

Am Donnerstag, 13. Juni 2024, 16:31:58 MESZ schrieb Wolfgang Schuster:

\startsetups[question:intro]
\setupparagraphintro[first][\bold{Answer:} ]
\blank
\stopsetups

\defineenumeration[question][
 alternative=top,
 text=Question,
 title=yes,
 titleleft=,
 titleright=,
 right={:},
 headstyle=bold,
inbetween=\setup{question:intro},
]

\starttext

Some text:

\startquestion[title={How long does a loop last?}]
For a while.
\stopquestion

\stoptext


Thank you. That works well for this case.

I have a follow up question. I tried to additionally set a titledistance and reproduce 
that for the "Answer:"-part.
ConTeXt then introduces a mysterious newline.

See this example:

\definehspace[dist][1em]
\startsetups[question:intro]
\setupparagraphintro[first][\bold{Answer:}\hspace[1em]]
\blank
\stopsetups


You need 2 changes for \setupparagraphintro:

1. Change the argument of \hspace to "dist" because the commands accepts 
only keywords and everything else (even a valid length) is ignored and 
results in a horizontal skip of 0pt.


2. You have to add curly braces around the content when the content 
includes square brackets because nesting of optional arguments isn't 
supported yet.


The correct version of the one above is:

\startsetups[question:intro]
   \setupparagraphintro[first][{\bold{Answer:}\hspace[dist]}]
   \blank
\stopsetups

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: Prefix the text in an enumeration.

2024-06-14 Thread Gerion Entrup
Am Donnerstag, 13. Juni 2024, 16:31:58 MESZ schrieb Wolfgang Schuster:
> \startsetups[question:intro]
>\setupparagraphintro[first][\bold{Answer:} ]
>\blank
> \stopsetups
> 
> \defineenumeration[question][
> alternative=top,
> text=Question,
> title=yes,
> titleleft=,
> titleright=,
> right={:},
>     headstyle=bold,
>inbetween=\setup{question:intro},
> ]
> 
> \starttext
> 
> Some text:
> 
> \startquestion[title={How long does a loop last?}]
> For a while.
> \stopquestion
> 
> \stoptext

Thank you. That works well for this case.

I have a follow up question. I tried to additionally set a titledistance and 
reproduce that for the "Answer:"-part.
ConTeXt then introduces a mysterious newline.

See this example:
```
\definehspace[dist][1em]
\startsetups[question:intro]
   \setupparagraphintro[first][\bold{Answer:}\hspace[1em]]
   \blank
\stopsetups

\defineenumeration[question][
alternative=top,
text=Question,
title=yes,
titleleft=,
titledistance=1em,
titleright=,
right={:},
headstyle=bold,
   inbetween=\setup{question:intro},
]

\starttext

Some text:

\startquestion[title={How long does a loop last?}]
For a while.
\stopquestion

\stoptext
```

Gerion

signature.asc
Description: This is a digitally signed message part.
___
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-06-14 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/examples-mathmeanings.pdf
 general/manuals/mathincontext-paper.pdf
 general/manuals/mathincontext-screen.pdf
 general/manuals/primitives.pdf
 general/manuals/xml-mkiv-tricks.pdf
 general/qrcs/
 general/qrcs/setup-mapping-en.pdf
 general/qrcs/setup-mapping-it.pdf
 
 sent 194,450 bytes  received 81,011,052 bytes  4,389,486.59 bytes/sec
 total size is 616,947,162  speedup is 7.60


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-06-14.10
271291681   
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-14.10/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-14.10/current
398041094   
/var/www/aanhet.net/context//htdocs/archives/context-2024-06-14.10
398041094   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: Prefix the text in an enumeration.

2024-06-13 Thread Wolfgang Schuster

Gerion Entrup schrieb am 13.06.2024 um 13:41:

Hi,

is there a way to automatically prefix the text body in an enumeration?

Consider this example:
```
\defineenumeration[question][
alternative=top,
text=Question,
title=yes,
titleleft=,
titleright=,
right={:},
headstyle=bold,
]

\starttext

Some text:

\startquestion[title={How long does a loop last?}]
\bold{Answer:} For a while.
\stopquestion

\stoptext
```

I'd like to have the `\bold{Answer:}` automatically. So for example something 
like this:
```
\defineenumeration[question][
alternative=top,
text=Question,
title=yes,
titleleft=,
titleright=,
right={:},
headstyle=bold,
prefix={\bold{Answer:}},
]

\starttext

Some text:

\startquestion[title={How long does a loop last?}]
For a while.
\stopquestion

\stoptext
```

I tried to misuse `inbetween` for that but `alternative=top` seems to make a 
(not modifiable space) between the heading and the text body.


Use the \setupparagraphintro command to set the text which should appear 
at the start of the question.


 begin example
\startsetups[question:intro]
  \setupparagraphintro[first][\bold{Answer:} ]
  \blank
\stopsetups

\defineenumeration[question][
alternative=top,
text=Question,
title=yes,
titleleft=,
titleright=,
right={:},
headstyle=bold,
  inbetween=\setup{question:intro},
]

\starttext

Some text:

\startquestion[title={How long does a loop last?}]
For a while.
\stopquestion

\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 / 
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: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
Am Donnerstag, 6. Juni 2024, 13:51:53 MESZ schrieb Hans Hagen via ntg-context:
> On 6/6/2024 12:30 PM, Gerion Entrup wrote:
> > Hi,
> > 
> > I like to achieve something that looks like this:
> > ```
> > \definedelimitedtext[extract][blockquote]
> > \setupdelimitedtext
> >[extract]
> >[leftmargin=1.5pc,
> > style={\italic},
> > before={\setupindenting[next]},
> > after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] 
> > \tfx\italic{René Descartes} \stopalignment}]
> > 
> > \starttext
> > \startextract
> >  Cogito ergo sum.
> > \stopextract
> > \stoptext
> > ```
> > 
> > So it should setup a quotation and mentions the author.
> > However, here the author is hardcoded within the blockquote. I would like 
> > it to use like this:
> > ```
> > \definedelimitedtext[extract][blockquote]
> > \setupdelimitedtext
> >[extract]
> >[leftmargin=1.5pc,
> > style={\italic},
> > before={\setupindenting[next]},
> > after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] 
> > \tfx\italic{\getcustomvariable{author}} \stopalignment}]
> > 
> > \starttext
> > \startextract[author=René Descartes]
> >  Cogito ergo sum.
> > \stopextract
> > \stoptext
> > ```
> > 
> > Is there an easy way to achieve that?
> > I tried with \structureuservariable (like possible in \startchapter) but it 
> > does not work.
> 
> not all constructs hav ethese user variables (yet)
> 
> i'll add an option for arguments tostart/stop so that you can do
> 
> \starttext
> 
> \definedelimitedtext
>[dextract]
>[blockquote]
>[leftmargin=1.5pc,
> style=italic,
> before=\setupindenting[next],
> after=\setups{extract:whatever}]
> 
> \definestartstop
>[extract]
>[arguments=yes,
> before=\setups{extract:start},
> after=\setups{extract:stop}]
> 
> \startsetups extract:start
>  \startdextract
> \stopsetups
> 
> \startsetups extract:stop
>  \startstopparameter{author}
>  \stopdextract
>  \blank[1ex,samepage]
>  \hrule
>  \blank[1ex,samepage]
>  \dontleavehmode
>  \wordright{\itx\startstopparameter{author}}
> \stopsetups
> 
> \starttext
> 
> \startextract[author=René Descartes]
>  Cogito ergo sum.
> \stopextract
> 
> \stoptext
> 
> but first i want Wolfgang to check the patch,

For me, Wolfgang's answer fulfills all my needs.
So, from my point of view, this is not needed anymore.
Thank you for your effort anyway!

Gerion


signature.asc
Description: This is a digitally signed message part.
___
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: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
Am Donnerstag, 6. Juni 2024, 16:34:03 MESZ schrieb Wolfgang Schuster:
> Gerion Entrup schrieb am 06.06.2024 um 12:30:
> > Hi,
> > 
> > I like to achieve something that looks like this:
> > ```
> > \definedelimitedtext[extract][blockquote]
> > \setupdelimitedtext
> >[extract]
> >[leftmargin=1.5pc,
> > style={\italic},
> > before={\setupindenting[next]},
> > after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] 
> > \tfx\italic{René Descartes} \stopalignment}]
> > 
> > \starttext
> > \startextract
> >  Cogito ergo sum.
> > \stopextract
> > \stoptext
> > ```
> > 
> > So it should setup a quotation and mentions the author.
> > However, here the author is hardcoded within the blockquote. I would like 
> > it to use like this:
> > ```
> > \definedelimitedtext[extract][blockquote]
> > \setupdelimitedtext
> >[extract]
> >[leftmargin=1.5pc,
> > style={\italic},
> > before={\setupindenting[next]},
> > after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] 
> > \tfx\italic{\getcustomvariable{author}} \stopalignment}]
> > 
> > \starttext
> > \startextract[author=René Descartes]
> >  Cogito ergo sum.
> > \stopextract
> > \stoptext
> > ```
> > 
> > Is there an easy way to achieve that?
> > I tried with \structureuservariable (like possible in \startchapter) but it 
> > does not work.
> 
> \startsetups [userdata:extract]
>  \startnarrower
>  \setupindenting[next]
>  \getuserdata
>  \hairline
>  \dontleavehmode\wordright{\itx\userdataparameter{author}}
>  \stopnarrower
> \stopsetups
> 
> \defineuserdataalternative
>[extract]
>[renderingsetup=userdata:extract]
> 
> \defineuserdata
>[extract]
>[style=italic,
> alternative=extract]
> 
> \starttext
> 
> \startextract[author=René Descartes]
>  Cogito ergo sum.
> \stopextract
> 
> \stoptext

Really cool! Thank you. If I see it right, this is completely generic,
so with this it is possible to define any start stop
with completely variable arguments.

Gerion

signature.asc
Description: This is a digitally signed message part.
___
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: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Hans Hagen via ntg-context

On 6/6/2024 4:34 PM, Wolfgang Schuster wrote:

Gerion Entrup schrieb am 06.06.2024 um 12:30:

Hi,

I like to achieve something that looks like this:
```
\definedelimitedtext[extract][blockquote]
\setupdelimitedtext
   [extract]
   [leftmargin=1.5pc,
    style={\italic},
    before={\setupindenting[next]},
    after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] 
\tfx\italic{René Descartes} \stopalignment}]


\starttext
\startextract
 Cogito ergo sum.
\stopextract
\stoptext
```

So it should setup a quotation and mentions the author.
However, here the author is hardcoded within the blockquote. I would 
like it to use like this:

```
\definedelimitedtext[extract][blockquote]
\setupdelimitedtext
   [extract]
   [leftmargin=1.5pc,
    style={\italic},
    before={\setupindenting[next]},
    after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] 
\tfx\italic{\getcustomvariable{author}} \stopalignment}]


\starttext
\startextract[author=René Descartes]
 Cogito ergo sum.
\stopextract
\stoptext
```

Is there an easy way to achieve that?
I tried with \structureuservariable (like possible in \startchapter) 
but it does not work.


\startsetups [userdata:extract]
     \startnarrower
     \setupindenting[next]
     \getuserdata
     \hairline
     \dontleavehmode\wordright{\itx\userdataparameter{author}}
     \stopnarrower
\stopsetups

\defineuserdataalternative
   [extract]
   [renderingsetup=userdata:extract]

\defineuserdata
   [extract]
   [style=italic,
    alternative=extract]

\starttext

\startextract[author=René Descartes]
     Cogito ergo sum.
\stopextract

\stoptext
ah, i start forgetting about these mechanisms ... i added this example 
to th etest suite


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] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Wolfgang Schuster

Gerion Entrup schrieb am 06.06.2024 um 12:30:

Hi,

I like to achieve something that looks like this:
```
\definedelimitedtext[extract][blockquote]
\setupdelimitedtext
   [extract]
   [leftmargin=1.5pc,
style={\italic},
before={\setupindenting[next]},
after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] 
\tfx\italic{René Descartes} \stopalignment}]

\starttext
\startextract
 Cogito ergo sum.
\stopextract
\stoptext
```

So it should setup a quotation and mentions the author.
However, here the author is hardcoded within the blockquote. I would like it to 
use like this:
```
\definedelimitedtext[extract][blockquote]
\setupdelimitedtext
   [extract]
   [leftmargin=1.5pc,
style={\italic},
before={\setupindenting[next]},
after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] 
\tfx\italic{\getcustomvariable{author}} \stopalignment}]

\starttext
\startextract[author=René Descartes]
 Cogito ergo sum.
\stopextract
\stoptext
```

Is there an easy way to achieve that?
I tried with \structureuservariable (like possible in \startchapter) but it 
does not work.


\startsetups [userdata:extract]
\startnarrower
\setupindenting[next]
\getuserdata
\hairline
\dontleavehmode\wordright{\itx\userdataparameter{author}}
\stopnarrower
\stopsetups

\defineuserdataalternative
  [extract]
  [renderingsetup=userdata:extract]

\defineuserdata
  [extract]
  [style=italic,
   alternative=extract]

\starttext

\startextract[author=René Descartes]
Cogito ergo sum.
\stopextract

\stoptext

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: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Hans Hagen via ntg-context

On 6/6/2024 12:30 PM, Gerion Entrup wrote:

Hi,

I like to achieve something that looks like this:
```
\definedelimitedtext[extract][blockquote]
\setupdelimitedtext
   [extract]
   [leftmargin=1.5pc,
style={\italic},
before={\setupindenting[next]},
after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] 
\tfx\italic{René Descartes} \stopalignment}]

\starttext
\startextract
 Cogito ergo sum.
\stopextract
\stoptext
```

So it should setup a quotation and mentions the author.
However, here the author is hardcoded within the blockquote. I would like it to 
use like this:
```
\definedelimitedtext[extract][blockquote]
\setupdelimitedtext
   [extract]
   [leftmargin=1.5pc,
style={\italic},
before={\setupindenting[next]},
after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] 
\tfx\italic{\getcustomvariable{author}} \stopalignment}]

\starttext
\startextract[author=René Descartes]
 Cogito ergo sum.
\stopextract
\stoptext
```

Is there an easy way to achieve that?
I tried with \structureuservariable (like possible in \startchapter) but it 
does not work.


not all constructs hav ethese user variables (yet)

i'll add an option for arguments tostart/stop so that you can do

\starttext

\definedelimitedtext
  [dextract]
  [blockquote]
  [leftmargin=1.5pc,
   style=italic,
   before=\setupindenting[next],
   after=\setups{extract:whatever}]

\definestartstop
  [extract]
  [arguments=yes,
   before=\setups{extract:start},
   after=\setups{extract:stop}]

\startsetups extract:start
\startdextract
\stopsetups

\startsetups extract:stop
\startstopparameter{author}
\stopdextract
\blank[1ex,samepage]
\hrule
\blank[1ex,samepage]
\dontleavehmode
\wordright{\itx\startstopparameter{author}}
\stopsetups

\starttext

\startextract[author=René Descartes]
Cogito ergo sum.
\stopextract

\stoptext

but first i want Wolfgang to check the patch,

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] Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
Hi,

I like to achieve something that looks like this:
```
\definedelimitedtext[extract][blockquote]
\setupdelimitedtext
  [extract]
  [leftmargin=1.5pc,
   style={\italic},
   before={\setupindenting[next]},
   after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] 
\tfx\italic{René Descartes} \stopalignment}]

\starttext
\startextract
Cogito ergo sum.
\stopextract
\stoptext
```

So it should setup a quotation and mentions the author.
However, here the author is hardcoded within the blockquote. I would like it to 
use like this:
```
\definedelimitedtext[extract][blockquote]
\setupdelimitedtext
  [extract]
  [leftmargin=1.5pc,
   style={\italic},
   before={\setupindenting[next]},
   after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] 
\tfx\italic{\getcustomvariable{author}} \stopalignment}]

\starttext
\startextract[author=René Descartes]
Cogito ergo sum.
\stopextract
\stoptext
```

Is there an easy way to achieve that?
I tried with \structureuservariable (like possible in \startchapter) but it 
does not work.

Best,
Gerion



signature.asc
Description: This is a digitally signed message part.
___
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: ConTeXt source from XML

2024-06-05 Thread Pablo Rodriguez via ntg-context
On 6/5/24 12:00, Christoph Edenhauser wrote:
> [...]
> I realise that it is somehow difficult for me to describe what I would
> like to achieve, perhaps what I have in mind is not even possible.

Hi Christoph,

as far as I know (and as Hraban has already mentioned), this is not
possible.

Either XSLT or pandoc would be a way to do that.

That being said, I would avoid conversion (a second source) in all cases.

I use ConTeXt to typeset XML sources typing Markdown sources.

pandoc generates XML and then ConTeXt typesets these XML sources.

> My Question is, is it possible to generate a second context file2.tex
> with the help of this first xml-mapping file1.tex, where all the
> xml-nodes from the xml file are mapped to contex commands which then
> looks something like this:

I‘m afraid this is not possible (it works in a different way)

> I would then like to edit the Text in such a more "TeXish" result 
> manually, e.g. insert small spaces as in ‘St.\,Martin’, explain unknown
> words in \footnote{comment}, etc.

Different spaces are Unicode characters. As entities, &nnbsp; or  
(narrow no-breaking space and thin space, respectively).

> I know you could or even should do the text corrections in the xml file,
> but XML would overwhelm my proofreader. (He has learnt to leave LaTeX
> code untouched, that should then work with ConTeXt code as well). So for
> me, the main reason for having a TeX-ish file2.tex is, that the Text
> could be corrected directly from the proofreader in this file2.tex file,
> but won't do that in the xml file.

I don’t mean the proofreader personally, but TeX code may not be
inherenlty more readable that XML code.

Compile the following:

  \starttext
  \startXML
  
  St.&nnbsp;Martin
  A comprehensive treatise
  The medieval part of the church
  \stopXML

  \startTEX
  \starttext
  \startchapter[title=St.\, Martin] \stopchapter
  \startsection[title=The medieval part of the church]\stopsection
  \stoptext
  \stopTEX
  \stoptext

I think that a text editor with reasonable highlighting for XML is key
to your issue.

I mean, XML sources tend to be highlighted leaving pure text as
uncolored and unformatted (no bold or italics).

In that case, I think the text to be proofread may be recognized as not
having any format at all (besides not enclosed inside "<" and ">").

> And now a second approach to my question:
> Are all these \startxmlsetups like '\startxmlsetup xml:chapter'
> internally mapped to standard context commands like \startchapter
> ... \stopchapter before they are converted to pdf?

No, these are formatting commands after the mapping.

In short, there are three steps involved in XML typesetting.

First, you select which elements you would like to select from the XML
source in an XML setup (with a mapping to your configuration commands).

Second, you register this XML setup.

Third, your configure the selected elements with ConTeXt commands.

Here is a sample (using a buffer instead of an external file):

  \startbuffer[demo]
  
 line 1
 line 2
 line 3
  
  \stopbuffer

  \starttext

  \startxmlsetups abc:def
\xmlsetsetup{#1}{foo|bar}{xyz:*}
  \stopxmlsetups

  \xmlregistersetup{abc:def}

  \startxmlsetups xyz:foo
\xmlflush{#1}
  \stopxmlsetups

  \startxmlsetups xyz:bar
\startparagraph
  \xmlflush{#1}
\stopparagraph
  \stopxmlsetups

  \xmlprocessbuffer{main}{demo}{}

  \stoptext

First of all, XML has no hardcoded names for any element (from a certain
point of view, XML are only rules on how to use the "<>" tags).

This is why,  and  are perfectly valid element names (although
they have no meaning for people).

Second, the mapping may use any name for destination setups.

\xmlsetsetup does the mappings, the second group of parentheses contains
the lpath (an Lua version of XPath [how XML is selected]) and the third
group of parentheses is setups.

The command \xmlsetsetup{#1}{foo|bar}{xyz:*} above is bound to existing
elements (or paths) in the XML source, but both "xyz:foo" and "xzy:bar"
may read as the user wants.

Third, after that you need specify the setup for each mapping (or it
won’t appear in your final document).

The setup is what you defined as the second part of the mapping, may it
be "xml:title" or "xyz:bar".

Nothing here is hardcoded. XML is not HTML (elements with meaning).

In order to deal with XML, ConTeXt has to provide the tools to select
elements (and more complex constructs) and map them to configurable setups.

How both tools (construct selection and setup configurations) may be
deployed, this is up to each individual.

Hardcoding this would be a real problem in the short run.

> If this is the case, can this intermediate context representation be
> exported, and how would this be done?

Nice try, but I’m afraid this is not how it works.

I h

[NTG-context] Re: setuphead in connection with the command argument

2024-06-03 Thread Gerion Entrup
Am Montag, 3. Juni 2024, 00:05:22 MESZ schrieb Wolfgang Schuster:
> Gerion Entrup schrieb am 01.06.2024 um 16:34:
> > Am Samstag, 1. Juni 2024, 09:53:46 MESZ schrieb Wolfgang Schuster:
> >> Gerion Entrup schrieb am 31.05.2024 um 00:37:
> >>> What, if I define multiple of them? Is the system not made for this?
> >>
> >> Multiple of what?
> > 
> > When I define `alternative=` _and_ `command=` in the same `\setuphead`.
> > Or `alternative=` and `style=`, or `alternative=` and `command=`.
> > 
> > I guess style is applied just to the arguments/macros of the command/the 
> > alternative?
> > And combining alternative and command never make sense.
> 
> The following descriptions applies to most setup commands when exclude 
> special cases like \setupbodyfont or \setuplayout.
> 
> 
> When you make multiple changes to the values of a command with
> 
>  \setuphead [section] [style=bold]
> 
> and
> 
> \setuphead [section] [color=blue]
> 
> you achieve the same result as setting both values at the same time like
> 
> \setuphead [section] [style=bold,color=blue]
> 
> 
> What you're doing here is just passing some value to a parameter, 
> nothing else happens at this time. When you process a document Context 
> has already passed the value "normal" to the "alternative" parameter in 
> the \setuphead command. When you now pass a custom macro the "command" 
> parameter in \setuphead all you have done is to set a value, nothing 
> else happened at this point.
> 
> 
> The evaluation of the parameter happens when Context places the content 
> of a heading with \startchapter etc. in your document and only at this 
> point it has to make a decision what should happen when both "command" 
> and "alternative" are set. The order in which the parameters are used is 
> the following: a) check if the "command" parameter has a value and if 
> this is true is it and ignore the "alternative" value b) if no value is 
> present for the "command" parameter use the value of "alternative".
> 
> 
> The value of the "style" parameter is unrelated of the 
> command/alternative values because it isn't needed to choose a layout 
> for the heading, all the parameter does is to change the font/style 
> which is independent of the layout.
> 

Thank you. I think that I understand command vs alternative now.
With try and error, I experienced, that the font/style of the `style`
parameter interleave in a strange way. Therefore I see it as related.
What i mean is:

Example 1
```
\define[2]\MyChapter{%
\bold This is bold #1 #2
}
\setuphead[title, chapter][command=\MyChapter, style=\italic]
\starttext
\startchapter[title=foo]
\stopchapter
\stoptext
```

"This is bold" is bold, but "1" and "foo" are italic.
The font size is normal.
It seems, that "style" is just applied to "#1" and "#2" _before_ evaluating 
MyChapter.

Example 2
```
\define[2]\MyChapter{%
\bold This is bold #1 #2
}

% this should be the "default" style
\setuphead[title, chapter][command=\MyChapter, style=\tfc]
\starttext
\startchapter[title=foo]
\stopchapter
\stoptext
```

"This is bold" is bold, "1" and "2" are normal, but the whole font size is 
bigger.
It seems, that "style" is applied partially to the whole text and somehow 
special to "#1" and "#2" (Why are these arguments not bold?)


As of your explanations, I currently think of the following logic for 
typesetting (in pseudocode):

```
function typeset_chapter(style, numberstyle, textstyle, command, alternative, 
chapter_number, chapter_title) {

local formatted_chapter_number = apply_style(numberstyle, 
apply_style(style, chapter_number))
local formatted_chapter_title = apply_style(textstyle, apply_style(style, 
chapter_title))
if (alternative != "normal")
set_TeX_macro("\headnumbercontent", formatted_chapter_number)
set_TeX_macro("\headtextcontent", formatted_chapter_title)
typeset_as_TeX(get_TeX_code(alternative))
else
evaluate_TeX_function(command, #1=formatted_chapter_number, 
#2=formatted_chapter_title)
endif
}
```
But this does not fit to example 2.

Best
Gerion





signature.asc
Description: This is a digitally signed message part.
___
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: setuphead in connection with the command argument

2024-06-02 Thread Wolfgang Schuster

Gerion Entrup schrieb am 01.06.2024 um 16:34:

Am Samstag, 1. Juni 2024, 09:53:46 MESZ schrieb Wolfgang Schuster:

Gerion Entrup schrieb am 31.05.2024 um 00:37:

What, if I define multiple of them? Is the system not made for this?


Multiple of what?


When I define `alternative=` _and_ `command=` in the same `\setuphead`.
Or `alternative=` and `style=`, or `alternative=` and `command=`.

I guess style is applied just to the arguments/macros of the command/the 
alternative?
And combining alternative and command never make sense.


The following descriptions applies to most setup commands when exclude 
special cases like \setupbodyfont or \setuplayout.



When you make multiple changes to the values of a command with

\setuphead [section] [style=bold]

and

   \setuphead [section] [color=blue]

you achieve the same result as setting both values at the same time like

   \setuphead [section] [style=bold,color=blue]


What you're doing here is just passing some value to a parameter, 
nothing else happens at this time. When you process a document Context 
has already passed the value "normal" to the "alternative" parameter in 
the \setuphead command. When you now pass a custom macro the "command" 
parameter in \setuphead all you have done is to set a value, nothing 
else happened at this point.



The evaluation of the parameter happens when Context places the content 
of a heading with \startchapter etc. in your document and only at this 
point it has to make a decision what should happen when both "command" 
and "alternative" are set. The order in which the parameters are used is 
the following: a) check if the "command" parameter has a value and if 
this is true is it and ignore the "alternative" value b) if no value is 
present for the "command" parameter use the value of "alternative".



The value of the "style" parameter is unrelated of the 
command/alternative values because it isn't needed to choose a layout 
for the heading, all the parameter does is to change the font/style 
which is independent of the layout.



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] Specify separator within setupbtx for custom bibliography rendering

2024-06-01 Thread Gerion Entrup
Hi,

according to the section "Custom citation renderings" in the bibliography 
manual, I have specified an own setup for citation rendering.
However, this seems only to work for single citations (of one source). I want 
to also specify the separator but did not get it to run.

Here is a minimal example:
```
\setupinteraction[state=start]

\startbuffer[testdata]
@Book{knuth1,
author = {Donald E. Knuth},
title = {TEX and METAFONT. New directions in typesetting},
year = {1979},
publisher = {Addison-Wesley},
}
@Article{someother,
author = {Some Person and Some Otherperson},
title = {Another title},
year = {1900},
}
\stopbuffer

% enable tracing
\enabletrackers[publications, publications.crossref, publications.details, 
publications.cite, publications.strings]

\usebtxdataset[main][testdata.buffer]
\usebtxdefinitions[aps]
\setupbtx[dataset=main]
\definebtxrendering[bibrendering][aps][dataset=main, numbering=short]
\setupbtxlist[aps][
  alternative=b,
  distance=.5em,
]

\definebtx[aps:cite:special][aps:cite][
left={((},
right={))},
separator:2={sfd},
separator:3={sfd},
separator:4={sfd},
]

\startsetups btx:aps:cite:special
% just a dummy
\btxcitereference
\currentbtxtag
\stopsetups

\setupbtx[aps:cite][
alternative=special,
]

\starttext

Both said something~\cite[knuth1, someother].

\placelistofpublications[bibrendering]

\stoptext
```

The output of this is:

> Both said something ((knuth1someother)).

How can I get the separator to work? My expectation would be:

> Both said something ((knuth1sfdsomeother)).

or

> Both said something ((knuth1sfd someother)).

Best,
Gerion

signature.asc
Description: This is a digitally signed message part.
___
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-05-31 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/primitives.pdf
 general/qrcs/
 general/qrcs/setup-mapping-en.pdf
 general/qrcs/setup-mapping-it.pdf
 
 sent 190,749 bytes  received 43,509,629 bytes  3,237,065.04 bytes/sec
 total size is 582,187,467  speedup is 13.32


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-05-31.21
248183846   
/var/www/aanhet.net/context//htdocs/archives/context-2024-05-31.21/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2024-05-31.21/current
374933259   
/var/www/aanhet.net/context//htdocs/archives/context-2024-05-31.21
374933259   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: setuphead in connection with the command argument

2024-05-30 Thread Bruce Horrocks


> On 30 May 2024, at 23:25, Gerion Entrup  wrote:
> 
> Am Donnerstag, 30. Mai 2024, 18:49:08 MESZ schrieb Bruce Horrocks:
>> 
>>> On 30 May 2024, at 15:15, Gerion Entrup  wrote:
>>> 
>>> Let's begin with a minimal example:
>>> ```
>>> \define[2]\MyChapter{%
>>> #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro})
>>> }
>> 
>> Stop there!
>> 
>> Use \definehead to create your own variation of a heading - much more 
>> robust. Something like the following (untested):
>> 
>>  \startsetups PlaceSubTitleAndIntro
>>% Set font and and style etc for the subtitle here
>>\structureuservariable(subtitle)
>> 
>>% Set font and style etc for the intro text here
>>\structureuservariable(intro)
>>  \stopsetups
>> 
>>  \definehead [MyChapter] [chapter]
>>  \setuphead [MyChapter]
>>[ style={...}, % heading style
>>  after={\setup{PlaceSubTitleAndIntro}},
>>]
>> 
>>  \starttext
>>  \startMyChapter[title={Foo}]
>>[ subtitle={Bar},
>>  intro={Some explanation},
>>]
>>  The text of the chapter
>>  \stopMyChapter
>>  \stoptext
> 
> Thanks for the input. A comparable example is also listed in the wiki.
> I like the approach for placing subtitle and intro alone. However, I also 
> want to style chapter number and chapter title separately.

Any setuphead commands that apply to MyChapter also apply to chapter so you 
should be able to use exactly the same styling commands.

> I'm also not sure, if an extra heading (MyChapter) is needed, since all my 
> chapters are styled in this way.
> Isn't it possible to define "after" of chapter directly?

Yes, I think it is possible to just use \setuphead [chapter] instead of 
\setuphead [MyChapter] with the rest remaining the same.

The only reason I don't do it is that if something goes wrong, I know I have an 
original version of \chapter readily to hand to compare against for debugging.

Regards,
—
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: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
Am Donnerstag, 30. Mai 2024, 18:49:08 MESZ schrieb Bruce Horrocks:
> 
> > On 30 May 2024, at 15:15, Gerion Entrup  wrote:
> > 
> > Let's begin with a minimal example:
> > ```
> > \define[2]\MyChapter{%
> > #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro})
> > }
> 
> Stop there!
> 
> Use \definehead to create your own variation of a heading - much more robust. 
> Something like the following (untested):
> 
>   \startsetups PlaceSubTitleAndIntro
> % Set font and and style etc for the subtitle here
> \structureuservariable(subtitle)
> 
> % Set font and style etc for the intro text here
> \structureuservariable(intro)
>   \stopsetups
> 
>   \definehead [MyChapter] [chapter]
>   \setuphead [MyChapter]
> [ style={...}, % heading style
>   after={\setup{PlaceSubTitleAndIntro}},
> ]
> 
>   \starttext
>   \startMyChapter[title={Foo}]
> [ subtitle={Bar},
>   intro={Some explanation},
> ]
>   The text of the chapter
>   \stopMyChapter
>   \stoptext

Thanks for the input. A comparable example is also listed in the wiki.
I like the approach for placing subtitle and intro alone. However, I also want 
to style chapter number and chapter title separately.
I'm also not sure, if an extra heading (MyChapter) is needed, since all my 
chapters are styled in this way.
Isn't it possible to define "after" of chapter directly?

Best
Gerion


signature.asc
Description: This is a digitally signed message part.
___
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: Number in a circle

2024-05-30 Thread Bruce Horrocks

> On 30 May 2024, at 21:19, Henning Hraban Ramm  wrote:
> 
> Am 30.05.24 um 19:25 schrieb Kip Warner:
>> On Thu, 2024-05-30 at 18:26 +0200, Thomas A. Schmitz wrote:
>>> Is this a message "I'm volunteering to maintain such a ppa" or a
>>> message "wouldn't it be nice if someone went out of their way to make
>>> my life easier"? Just out of curiosity.
>> Right now it's the latter due to time constraints. Although I have
>> helped a number of free software projects get PPAs up and running.
>> Usually once they're up there's not much to do after. Since ConTeXt is
>> already Debianized by the Debian project, you probably can start with
>> their debian/ folder, edit as needed, and then you should be good. You
>> can also set an automatic build recipe in the PPA so each commit to SCM
>> results in a new nightly.
>> You'll get a lot more people using and testing your newer release this
>> way. Food for thought.
> 
> I can assure you the worldwide TeX community has thought about their approach 
> a few times.
> TeX Live packaging (i.e. mostly LaTeX packaging) is different to Linux 
> packaging. Somebody explained it to me in detail, but I can’t remember…
> At least TeX Live’s yearly release setup doesn’t fit… well, anything else (I 
> find it annoying). But for release date, many of the active contributors make 
> sure everything fits together.
> 
> ConTeXt is different in that the distribution is closely coupled to binary 
> versions. It would be possible to set up a PPA independent of TeX Live, I 
> guess. (Have binary & macros in the same package, maybe docs & fonts 
> separate…) But somebody would have to maintain it.

I'd be able to maintain a Context PPA but there already seems to be one:
<https://launchpad.net/ubuntu/+source/context>

The dates on that page confuse me, however. It says the last upload of the 
package was 2023-05-05 but that it somehow contains the Context version from 
2024-04-09. I'm not quite sure how that can be the case?

Also it's not clear to me whether that PPA is Context alone or TeXlive plus a 
bunch of TeX stuff including Context? (I could install it of course.) :-)

—
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: Number in a circle

2024-05-30 Thread Henning Hraban Ramm

Am 30.05.24 um 19:25 schrieb Kip Warner:

On Thu, 2024-05-30 at 18:26 +0200, Thomas A. Schmitz wrote:

Is this a message "I'm volunteering to maintain such a ppa" or a
message "wouldn't it be nice if someone went out of their way to make
my life easier"? Just out of curiosity.


Right now it's the latter due to time constraints. Although I have
helped a number of free software projects get PPAs up and running.

Usually once they're up there's not much to do after. Since ConTeXt is
already Debianized by the Debian project, you probably can start with
their debian/ folder, edit as needed, and then you should be good. You
can also set an automatic build recipe in the PPA so each commit to SCM
results in a new nightly.

You'll get a lot more people using and testing your newer release this
way. Food for thought.


I can assure you the worldwide TeX community has thought about their 
approach a few times.
TeX Live packaging (i.e. mostly LaTeX packaging) is different to Linux 
packaging. Somebody explained it to me in detail, but I can’t remember…
At least TeX Live’s yearly release setup doesn’t fit… well, anything 
else (I find it annoying). But for release date, many of the active 
contributors make sure everything fits together.


ConTeXt is different in that the distribution is closely coupled to 
binary versions. It would be possible to set up a PPA independent of TeX 
Live, I guess. (Have binary & macros in the same package, maybe docs & 
fonts separate…) But somebody would have to maintain 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: setuphead in connection with the command argument

2024-05-30 Thread Bruce Horrocks


> On 30 May 2024, at 15:15, Gerion Entrup  wrote:
> 
> Let's begin with a minimal example:
> ```
> \define[2]\MyChapter{%
> #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro})
> }

Stop there!

Use \definehead to create your own variation of a heading - much more robust. 
Something like the following (untested):

  \startsetups PlaceSubTitleAndIntro
% Set font and and style etc for the subtitle here
\structureuservariable(subtitle)

% Set font and style etc for the intro text here
\structureuservariable(intro)
  \stopsetups

  \definehead [MyChapter] [chapter]
  \setuphead [MyChapter]
[ style={...}, % heading style
  after={\setup{PlaceSubTitleAndIntro}},
]

  \starttext
  \startMyChapter[title={Foo}]
[ subtitle={Bar},
  intro={Some explanation},
]
  The text of the chapter
  \stopMyChapter
  \stoptext

—
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: BibTeX choking on comments in database

2024-05-29 Thread Kip Warner
On Wed, 2024-05-29 at 06:49 -0600, Alan Braslau wrote:
> 1) You appear to be using the long-frozen mkii bibliography code.

I think you are right! I just realized that. I'm using in my
Environment file...

   % \BIBTEX macro...
   \usemodule[abr-02]
   
   % Setup bibliography...
   
   % References database and other general settings...
   \setupbibtex[database={./References}, sort=author]
   
   % Global settings...
   \setuppublications[
   alternative=apa,
   numbering=yes,
   monthconversion=month,
   autohang=yes,
   sorttype=cite]
   
   % Without this, no hyperlinks at all in the output...
   \setupinteraction[state=start]
   
   % This two-part helper creates a hyperlink for url fields...
   \unprotect
   \def\bibgotoURL#1#2%
{\useURL[#1][#2][][#1]\from[#1]}
   \def\bibinsertbiburl#1#2#3%
{\bibdoifelse{\@@pb@biburl}
  {#1\expanded{\bibgotoURL{\@@pb@title}{\@@pb@biburl}}#2}{#3}}
   \protect
   
   % Book reference layout...
   \setuppublicationlayout[book]{%
\insertauthors{}{. }{\insertthekey{}{. }{}}%
\inserttitle{\bgroup\it }{.\egroup\space }{}%
\insertpubname{}{. }{}%
\insertday{}{ }{}%
\insertmonth{\Word }{. }{}%
\insertpubyear{}{. }{}%
\insertnote{}{.}{}%
   }
   
   % Adjusted version of 'misc' typesetting, using \insertbiburl
   % instead of \inserttitle (and \insertbiburl runs the
   % \bibinsertbiburl macro defined above)
   \setuppublicationlayout[misc]{%
\insertauthors{}{. }{\insertthekey{}{. }{}}%
\insertbiburl{\bgroup\it }{.\egroup\space }{}%
\insertpubname{}{. }{}%
\insertday{}{ }{}%
\insertmonth{\Word }{. }{}%
\insertpubyear{}{. }{}%
\insertnote{}{.}{}%
   }
   
   % finally, this is a horrible hack needed due to bibtex inserting
   % line breaks in the middle of urls in the output bbl (!)
   % If you find this hack too ugly, consider editing the .bbl by
   % hand and forgetting about the .bib file altogether...
   \let\mydodostartpublication\dodostartpublication
   \def\dodostartpublication{\catcode`\%=14 \mydodostartpublication}
   
   % Macro to put the citations as footnotes...
   \unexpanded\def\footnotecite{\dodoubleempty\domycite}
   \def\domycite[#1][#2]%
   {\ifsecondargument
   \footnote{\cite[alternative=data,#1][#2]}%
   \else
   \footnote{\cite[data][#1]}%
   \fi}
   
   % Individial citation settings...
   
   % Enable clickable links...
   \setupcite[alternative=interaction=start, compress=no]
   
   % Publication list setups for end of the book list...
   
   % Settings for triggering et al...
   \setuppublicationlist[authoretallimit=3]
   \setuppublicationlist[authoretaltext={\it\ et al.}]
   \setuppublicationlist[authoretaldisplay=2]
   
   % List the author, editor, or article author's full name, inverted...
   \setuppublicationlist[%
   author=\invertedauthor,%
   artauthor=\invertedauthor,%
   editor=\invertedauthor,%
   title=References]
   
   % Setup footnotes...
   
   \setupnotation[footnote]
   [color=colour_footnote_text,
backgroundcolor=colour_footnote_background,
width=0.3cm, % Space between footnote number and footnote itself
numbercommand=] % Remove elevated footnote notation at bottom of 
page
   
   \setupnote[footnote]
   [textseparator={\textcomma}, % Comma delineated
before={\crlf\crlf}] %
   
   \setupfootnotes
 [rule=on, % Disable horizontal rule
  textstyle={\hskip.03em}] % Vertical space between footnotes and the 
text
   
   % To move footnotes inside of text boxes to the bottom of the page with
   %  the rest of the footnotes. Disabled temporarily to fix issue of text
   %  background frame borders vanishing...
   \kindofpagetextareas\plusone

Whenever I wanted to use a citation I'd just write
\footnotecite[something]. But I see now there is this page that
describes a different process for using BibTeX:

   https://wiki.contextgarden.net/Bibliography

I will take a look today and try to incorporate the new best practice
for using the database and its citations. If you have any suggestions I
will try and incorporate them.

-- 
Kip Warner
OpenPGP signed/encrypted mail preferred
https://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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-con

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
On Mon, 2024-05-27 at 19:28 +0200, Wolfgang Schuster wrote:
> TeX complains about the value ".5fw" for the radius key. Hans added
> last year the function to add new units to ConTeXt and I used it to
> set the radius to half of the width of the framed box.
> 
> Use the following version of the setup for the frame which works with
> older ConTeXt installations because it doesn't use the feature.
> 
> \defineframed
>    [textcircled]
>    [   width=1.5em,
>   height=1.5em,
>     location=low,
>   corner=round,
>  %radius=.5fw,
>   radius=\dimexpr\framedwidth/2\relax,
>   offset=none]
> 
> \starttext
> \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank}
> \stoptext

Thank you kindly, Wolfgang. That worked perfectly.

-- 
Kip Warner
OpenPGP signed/encrypted mail preferred
https://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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: Number in a circle

2024-05-27 Thread Wolfgang Schuster

Kip Warner schrieb am 27.05.2024 um 19:10:

On Mon, 2024-05-27 at 16:51 +0200, Wolfgang Schuster wrote:

I can't provide a circle but I can give you a box with rounded
corners.

\defineframed
    [textcircled]
    [   width=1.5em,
   height=1.5em,
     location=low,
   corner=round,
   radius=.5fw,
   offset=none]

\starttext
\dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank}
\stoptext


Thanks Wolfgang. I gave it a try on https://context-on-web.eu/, but it
failed:

Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc,
bp, dk, or54sp; but yours is a new one! I'll assume that you meant
to say pt, for printer's55points. two letters.

I'm not sure what it is referring to.


TeX complains about the value ".5fw" for the radius key. Hans added last 
year the function to add new units to ConTeXt and I used it to set the 
radius to half of the width of the framed box.


Use the following version of the setup for the frame which works with 
older ConTeXt installations because it doesn't use the feature.


\defineframed
  [textcircled]
  [   width=1.5em,
 height=1.5em,
   location=low,
 corner=round,
%radius=.5fw,
 radius=\dimexpr\framedwidth/2\relax,
 offset=none]

\starttext
\dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank}
\stoptext

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] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-05-27 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-characters.pdf
 general/manuals/primitives.pdf
 general/qrcs/
 general/qrcs/setup-mapping-en.pdf
 general/qrcs/setup-mapping-it.pdf
 
 sent 190,872 bytes  received 45,199,940 bytes  3,631,264.96 bytes/sec
 total size is 582,177,943  speedup is 12.83


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-05-27.19
248173390   
/var/www/aanhet.net/context//htdocs/archives/context-2024-05-27.19/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2024-05-27.19/current
374922803   
/var/www/aanhet.net/context//htdocs/archives/context-2024-05-27.19
374922803   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: Playing with math font setup

2024-05-21 Thread Hans Hagen

On 5/21/2024 4:40 PM, Ali Ali wrote:

Hi, hope everyone's doing well!

Is it possible to setup math font so that all the basic ascii characters (i.e. 
a..zA..Z0..9) glyphs are substituted with current serif (or sans) font. I tried 
playing with fallback thing but it didn't got me anywhere!

e.g. $x$ will use the 'x' glyph from current serif italic font, and $\bf x$ 
will use the 'x' glyph from current serif bold font!
I would appreciate any suggestions and help!

Suppose we have all the required font files in the 'font' directory of the 
working directory, and below is the minimal source code!
"""
\starttypescriptcollection[CustomFontSelection]
   \starttypescript [serif] [CustomFontSelection] [name]
 \setups[font:fallback:serif]
 \definefontsynonym [Serif]
 % [file:font/Lora-Regular.ttf]
 [file:font/Lora-Medium.ttf]
 [features=default,fallbacks=Serif]
 \definefontsynonym [SerifBold]
 [file:font/Lora-Bold.ttf]
 [features=default,fallbacks=SerifBold]
 \definefontsynonym [SerifItalic]
 % [file:font/Lora-Italic.ttf]
 [file:font/Lora-MediumItalic.ttf]
 [features=default,fallbacks=SerifItalic]
 \definefontsynonym [SerifBoldItalic]
 [file:font/Lora-BoldItalic.ttf]
 [features=default,fallbacks=SerifBoldItalic]
   \stoptypescript

   \starttypescript [math] [CustomFontSelection] [name]
 %%% \definefontfallback [MathRomanFallBack]
 %%% [SansItalic]
 %%% [extendedlatin]
 %%% [force=yes]
 \definefontsynonym [MathRoman]
 [file:font/STIXTwoMath-Regular.otf]
 [features=math,fallbacks=MathRomanFallBack]
   \stoptypescript

   \starttypescript[CustomFontSelection]
 \definetypeface [CustomFontSelection] [rm] [serif] [CustomFontSelection]   
 [default] [rscale=0.9]
 \definetypeface [CustomFontSelection] [ss] [sans]  
[newcomputermodern-book] [default]
 \definetypeface [CustomFontSelection] [tt] [mono]  
[newcomputermodern-book] [default]
 \definetypeface [CustomFontSelection] [mm] [math]  [CustomFontSelection]   
 [default] [rscale=0.97]
   \stoptypescript
\stoptypescriptcollection

\setupbodyfont[CustomFontSelection]


\starttext

We use $X$, $Y$, $Z$ and $n$, $m$, etc. $\sin(x) \to \limsup x_n$ whatever.

\mathematics{%
   \delta_{ij} =
 \startmathcases
 \NC 1 \NC \text{if } i = j \NR
 \NC 0 \NC \text{otherwise} \NR
 \stopmathcases
}

We use $\bf X$, $\bf Y$, $\bf Z$ and $\bf n$, $\bf m$, etc. $\bf \sin(x) \gets 
\limsup x_n$ whatever.

\stoptext
"""


More like this (if you want decent math). Also, use a math font as base 
that matches the fallbacks, also metric wise.


\starttypescriptcollection[CustomFontSelection]

\starttypescript [serif] [CustomFontSelection] [name]
\setups[font:fallback:serif]
\definefontsynonym [Serif]   [name:dejavuserif] 
  [features=default]
\definefontsynonym [SerifBold]   [name:dejavuserifbold] 
  [features=default]
\definefontsynonym [SerifItalic] [name:dejavuserifitalic] 
  [features=default]
\definefontsynonym [SerifBoldItalic] 
[name:dejavuserifbolditalic] [features=default]

\stoptypescript

\starttypescript [math] [CustomFontSelection] [name]
\definefontfallback [MathRomanFallBack]
[name:dejavuserifitalic]
[lowercaseitalic,uppercaseitalic]
[force=yes]
\definefontfallback [MathRomanFallBack]
[name:dejavuserifbolditalic]
[lowercasebolditalic,uppercasebolditalic]
[force=yes]
\definefontfallback [MathRomanFallBack]
[name:dejavuserif]
[lowercasenormal,uppercasenormal]
[force=yes]
\definefontfallback [MathRomanFallBack]
[name:dejavuserifbold]
[lowercasebold,uppercasebold]
[force=yes]
\definefontsynonym
[MathRoman]
[file:stixtwomath-regular.ttf]

[features={math\mathsizesuffix,stixtwomath,stixtwo:mathextra,mathextra},%
 fallbacks=MathRomanFallBack,%
 goodies=stixtwo-math]
\definefontsynonym
[MathRomanBold]
[file:stixtwomath-regular.ttf]

[features={math\mathsizesuffix,stixtwo-math-bold,stixtwomath,stixtwo:mathextra,mathextra},%
 fallbacks=MathRomanFallBack,%
 goodies=stixtwo-math]
\stoptypescript

\starttypescript[CustomFontSelection]
\definetypeface [CustomFontSelection] [rm] [serif] 
[CustomFontSelection][default] [rscale=0.9]
\definetypeface [CustomFontSelection] [ss] [sans] 
[newcomputermodern-book] [default]
\definetypeface [CustomFontSelection] [tt] [mono] 
[newcomputermodern-book] [default]
\definetypeface [CustomFontSelection] [mm] [math] 
[CustomFontSelection][default] [rscale=0.97]

\stoptypescript

\stoptypescriptcollection

\setupb

[NTG-context] Playing with math font setup

2024-05-21 Thread Ali Ali
Hi, hope everyone's doing well!

Is it possible to setup math font so that all the basic ascii characters (i.e. 
a..zA..Z0..9) glyphs are substituted with current serif (or sans) font. I tried 
playing with fallback thing but it didn't got me anywhere!

e.g. $x$ will use the 'x' glyph from current serif italic font, and $\bf x$ 
will use the 'x' glyph from current serif bold font!
I would appreciate any suggestions and help!

Suppose we have all the required font files in the 'font' directory of the 
working directory, and below is the minimal source code! 
"""
\starttypescriptcollection[CustomFontSelection]
  \starttypescript [serif] [CustomFontSelection] [name]
\setups[font:fallback:serif]
\definefontsynonym [Serif]
% [file:font/Lora-Regular.ttf]
[file:font/Lora-Medium.ttf]
[features=default,fallbacks=Serif]
\definefontsynonym [SerifBold]
[file:font/Lora-Bold.ttf]
[features=default,fallbacks=SerifBold]
\definefontsynonym [SerifItalic]
% [file:font/Lora-Italic.ttf]
[file:font/Lora-MediumItalic.ttf]
[features=default,fallbacks=SerifItalic]
\definefontsynonym [SerifBoldItalic]
[file:font/Lora-BoldItalic.ttf]
[features=default,fallbacks=SerifBoldItalic]
  \stoptypescript

  \starttypescript [math] [CustomFontSelection] [name]
%%% \definefontfallback [MathRomanFallBack]
%%% [SansItalic]
%%% [extendedlatin]
%%% [force=yes] 
\definefontsynonym [MathRoman]
[file:font/STIXTwoMath-Regular.otf]
[features=math,fallbacks=MathRomanFallBack] 
  \stoptypescript

  \starttypescript[CustomFontSelection]
\definetypeface [CustomFontSelection] [rm] [serif] [CustomFontSelection]
[default] [rscale=0.9]
\definetypeface [CustomFontSelection] [ss] [sans]  [newcomputermodern-book] 
[default]
\definetypeface [CustomFontSelection] [tt] [mono]  [newcomputermodern-book] 
[default]
\definetypeface [CustomFontSelection] [mm] [math]  [CustomFontSelection]
[default] [rscale=0.97] 
  \stoptypescript  
\stoptypescriptcollection

\setupbodyfont[CustomFontSelection] 


\starttext

We use $X$, $Y$, $Z$ and $n$, $m$, etc. $\sin(x) \to \limsup x_n$ whatever.

\mathematics{%
  \delta_{ij} =
\startmathcases
\NC 1 \NC \text{if } i = j \NR
\NC 0 \NC \text{otherwise} \NR
\stopmathcases
}

We use $\bf X$, $\bf Y$, $\bf Z$ and $\bf n$, $\bf m$, etc. $\bf \sin(x) \gets 
\limsup x_n$ whatever.

\stoptext
"""

Best regards,
Ali
___
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-05-17 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/pdfmerge.pdf
 general/qrcs/
 general/qrcs/setup-mapping-en.pdf
 general/qrcs/setup-mapping-it.pdf
 
 sent 185,981 bytes  received 43,500,122 bytes  2,647,642.61 bytes/sec
 total size is 581,971,883  speedup is 13.32


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-05-17.17
248030043   
/var/www/aanhet.net/context//htdocs/archives/context-2024-05-17.17/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2024-05-17.17/current
374779456   
/var/www/aanhet.net/context//htdocs/archives/context-2024-05-17.17
374779456   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] Why is only the first frame protruding into the margin?

2024-05-16 Thread madiazm . eoicc
Hi,
I used some code from the meta-fun manual to recreate a labelled frame around 
my sections. But the first framedtext protrudes a couple of mm into the margin. 
Only the first one in the page. I intentionaly added other sections and the 
frames aline to the margin ok.
I tried to put something before the first frame (noindentation, dontleavehmode) 
because I sometimes read it solves problems, but not the case here.
so Why is the first frame protruding and only the first?


\definepapersize[vertical][A4, portrait]
\definepapersize[horizontal][A4, landscape] 
\setuppapersize[vertical]


\setuplayout[location=middle,
 marking=off,
 topspace=1cm,
 topdistance=0cm,
 backspace=2.5cm,   
 height=fit,
 width=fit,
 rightedge=5mm,
 rightedgedistance=0cm,
 rightmargin=20mm,
 rightmargindistance=7mm,
 leftmargin=1.5cm,
 header=1cm,
 headerdistance=.5cm,
 bottomspace=.5cm,
 bottomdistance=0mm,
 footer=.8cm,
 footerdistance=.2cm,
 setup=strict,]



\startuseMPgraphic{FunnyFrame}
picture p ; numeric w, h, o ;
p := textext.rt(\MPstring{FunnyFrame}) ;
w := OverlayWidth ; h := OverlayHeight ; o := BodyFontSize ;
p := p shifted (2o,h-ypart center p) ; draw p ;
drawoptions (withpen pencircle scaled .25pt withcolor blue) ;
draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p,h) ;
%draw boundingbox p ; %%%quitamos el frame pequeño
setbounds currentpicture to unitsquare xyscaled(w,h) ;
\stopuseMPgraphic

\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]
\defineframedtext[FunnyText][width=.85\textwidth, height=20mm, frame=off,  
background=FunnyFrame, align=flushright,location=right, 
after={\blank[2*big]}]%foregroundsytel amplía la palabra Apartado

\def\FrameTitle#1%
{\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut \color[blue]{\tfx Apartado 
#1}\hss}}}

\setMPtext{FunnyFrame}{} % initialize the text variable



\define[2]\firstHeadings{%
\dontleavehmode \switchtobodyfont[miCorm] 
\FrameTitle#1%

\dontleavehmode \startFunnyText  {\switchtobodyfont[miCorm,20.7pt] #2} 
\stopFunnyText
}

\setuphead [section] [color=blue, command=\firstHeadings, indentnext=no]


\starttext
\noindentation 
\dontleavehmode 

\startsection[title=Aspectos generales]


Esta guía contiene toda la documentación necesaria para administrar la prueba 
unificada de certificación que ha diseñado la comisión de alemán. Se ruega al 
profesorado\footnote{Todas las alusiones a la forma del masculino genérico que 
se recogen en este documento deberán entenderse referidas a la condición 
masculina o femenina de cada persona según corresponda.} que se familiarice con 
las secciones del documento a través del índice y acuda a ellas según vaya 
siendo necesario, de manera que se pueda administrar y corregir la prueba de la 
manera más satisfactoria posible.
\stopsection


\startsection[title=another section]
Las carpetas con las pruebas aparecen nombradas por idioma, nivel y set de 
pruebas, no apareciendo ninguna referencia a convocatorias anuales ni tampoco 
fechas. Sí aparece la referencia a la convocatoria en cada una de las guías de 
administración para los diferentes niveles.
 \stopsection
\startsection[title=another section]
La carpeta correspondiente a cada nivel contiene las distintas actividades de 
lengua, los audios para CTO y el audio/vídeo base para la mediación escrita. 
Además contiene esta guía con la información necesaria para tener una visión 
global de la prueba: los solucionarios, transcripciones, tablas de corrección, 
tablas de conversión y la rúbrica para la mediación escrita. Igualmente se 
incorporarán o enlazarán subcarpetas con los archivos necesarios para las 
pruebas orales: monólogos, diálogos y mediaciones orales.
 \stopsection

\stoptext
___
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] Is there a way to consolidate index reference numbers by book?

2024-05-10 Thread Joel via ntg-context
\useregister[workbookA][03_workbook][learnedlong][WB~1:~]
\useregister[workbookB][04_workbook][learnedlong][WB~2:~]
\useregister[workbookC][05_workbook][learnedlong][WB~3:~]
\useregister[workbookD][06_workbook][learnedlong][WB~4:~]




    \startchapter[title=Standards]                    
\placeregister[learnedlong,workbookA,workbookB,workbookC,workbookD]
        \stopchapter

I setup a custon index that lists items from four different workbooks. 

The problem is in the indexi, it displays entreis like this:
WHST.1.1: 11, 231, WB 1: 124, WB 1: 133, WB 2: 325, WB 2: 345, etc.
In other words, it says WB 1 in front of every page number from the first 
workbook.
Is there any way to consolidate the page numbers by book, e.g. output instead 
like this:
WHST.1.1: 11, 231, WB1: 124, 133, WB 2: 325, 345
In other words, it list all page numbers for Workbook 1 right after WB 1: 
instead of placing WB 1 in front of every single page from Workbook 1?
--Joel
___
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: Define a new command that inherits from multiple other command options

2024-04-27 Thread Wolfgang Schuster

ai2472206...@yeah.net schrieb am 25.04.2024 um 10:24:

hi!

I'm new to ConTeXt. I want to define a command with sidenote function. This 
[setupsidenote] command inherits the options of [setupmargindata], 
[setupcounter] and [setupframed]. just like [setupenumeration] inherits the 
option of [setupcounter].

I've defined the following sidenote command by searching, and I know how to 
define a new option for it. But what I don't know is how to get it to inherit 
the options of other commands and perform these features correctly.

Any clue is warmly welcome.


Hi ???,

not all commands provide a way to inherit their options but the "framed" 
and "counter" mechanism supports it.


To use the framed mechanism with your own command replace 
\installcommandhandler with \installframedcommandhandler. This creates a 
command named \inherited...framed which can be customized with the 
setups of the new namespace.


 begin example
\unprotect

\installnamespace  {sidenote}
\installframedcommandhandler \sidenote {sidenote} \sidenote

\protect

\starttext

\inheritedsidenoteframed{Text in a frame!}

\setupsidenote[framecolor=red,width=8cm,height=2cm]

\inheritedsidenoteframed{Text in a frame!}

\stoptext
 end example

To use the counter mechanism with your commands you have to first use 
\installcounterassociation to create the two new commands 
\register...counter (this ensures the default counter values are used 
when you don't set anything) and \synchronize...counters (which updates 
the counter values when you use the setup of your own command).


Unlike the framed mechanism this no longer works with the root instance 
of your own commands because we create a new counter only when you 
create a instance (with \define...) of the new command.


 begin example
\unprotect

\installnamespace{sidenote}
\installcommandhandler \sidenote {sidenote} \sidenote

\installcounterassociation{sidenote}

\appendtoks
  \registersidenotecounter\currentsidenote
  \definecounter[\currentsidenote]%
\to \everydefinesidenote

\appendtoks
  \synchronizesidenotecounters
\to \everysetupsidenote

\protect

\starttext

% create a new sidenote instance with a associated counter
\definesidenote[example]

\start % use grouping to keep the sidenote instance local
\def\currentsidenote{example}% set the sidenote instance to example
\incrementcounter[example]% increment the example/sidenote counter
\convertedcounter[example]% print the example/sidenote counter
\stop

% change the number format of the example/sidenote counter
\setupsidenote[example][numberconversion=romannumerals]

\start
\def\currentsidenote{example}
\incrementcounter[example]
\convertedcounter[example]
\stop

\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 / 
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: Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-25 Thread Gerion Entrup
I solved it, although it's kinda hacky. I'm pretty sure that
publications.citevariants.short is not meant to be called directly.

Do you know why `context.getdetail(dataset, tag, "author")` does not work in 
render_cite?
It always returns nil.


```
\setupinteraction[state=start]

\startbuffer[testdata]
@Book{knuth1,
author = {Donald E. Knuth},
title = {TEX and METAFONT. New directions in typesetting},
year = {1979},
publisher = {Addison-Wesley},
}
@Article{someother,
author = {Some Person and Some Otherperson},
title = {Another title},
year = {1900},
}
\stopbuffer

% enable tracing
\enabletrackers[publications, publications.crossref, publications.details, 
publications.cite, publications.strings]

\usebtxdataset[main][testdata.buffer]
\usebtxdefinitions[aps]
\setupbtx[dataset=main]
\definebtxrendering[bibrendering][aps][dataset=main, numbering=short]
\setupbtxlist[aps][
  alternative=b,
  distance=.5em,
]

\definebtx[aps:cite:special][aps:cite]
\startluacode
function render_cite(dataset, tag, righttext)
local luadata = publications.datasets[dataset].luadata
local entry = luadata[tag]
local extrasign = ""
if entry.author:lower():find("knuth") then
extrasign = ">"
end
context("[" .. extrasign)
print(righttext)
publications.citevariants.short({dataset = dataset, reference = tag, 
variant = "short", righttext = righttext})
context("]")
end
\stopluacode

\startsetups btx:aps:cite:special
\btxcitereference
\ctxlua{render_cite([==[\currentbtxdataset]==], [==[\currentbtxtag]==], 
[==[\currentbtxrighttext]==])}
\stopsetups
\setupbtx[aps:cite][alternative=special]

\starttext

\def\comma{,}

Knuth developed \TeX~\cite[knuth1]
Several persons said something~\cite[someother].

\placelistofpublications[bibrendering]

\stoptext
```

Gerion

Am Dienstag, 23. April 2024, 16:03:50 MESZ schrieb Gerion Entrup:
> Here is a solution for the first part of my question. This is based on
> https://www.mail-archive.com/ntg-context@ntg.nl/msg101156.html
> and try and error based on publ-imp-aps.mkvi and publ-imp-apa.mkvi:
> 
> It display now the citation _and_ numbering labels in the short form:
> ```
> \setupinteraction[state=start]
> 
> \startbuffer[testdata]
> @Book{knuth1,
>   author = {Donald E. Knuth},
>   title = {TEX and METAFONT. New directions in typesetting},
>   year = {1979},
>   publisher = {Addison-Wesley},
> }
> @Article{someother,
>   author = {Some Person and Some Otherperson},
>   title = {Another title},
>   year = {1900},
> }
> \stopbuffer
> 
> % enable tracing
> \enabletrackers[publications, publications.crossref, publications.details, 
> publications.cite, publications.strings]
> 
> \usebtxdataset[main][testdata.buffer]
> \usebtxdefinitions[aps]
> \setupbtx[dataset=main]
> \definebtxrendering[bibrendering][aps][dataset=main, numbering=short]
> \setupbtxlist[aps][
>   alternative=b,
>   distance=.5em,
> ]
> \setupbtx[aps:cite][alternative=short]
> 
> \starttext
> 
> Knuth developed \TeX \cite[knuth1]
> Several persons said something \cite[someother].
> 
> \placelistofpublications[bibrendering]
> 
> \stoptext
> ```
> 
> The remaining part now is to mark publications of Knuth in a different way.
> I have tried this and failed. Here is my code so far:
> ```
> \startluacode
> function render_cite(short, author)
>   print(author)
>   if author:lower():find("knuth") then
>   context("[>" .. short .. "]")
>   else
>   context("[" .. short .. "]")
>   end
> end
> \stopluacode
> \definebtx[aps:cite:special][aps:cite]
> \startsetups btx:aps:cite:special
>   \btxcitereference
>   \ctxlua{render_cite([==[\btxflush{year}]==], [==[\btxflush{author}]==])}
> \stopsetups
> % use it with \cite[special][knuth1]
> ```
> This has several problems:
> - \btxflush{short} does not work as I expected that. How can I get the short 
> form?
> - \btxflush to pass arguments to lua does not work as intended. On the lua 
> side the
>variable "author" resolves to "\btxflushauthor{author}" and not to "D. E. 
> Knuth".
>How can I pass the data?
> 
> I use Lua only because I find it more convenient as a programming language. 
> If a
> plain tex solution is simpler, I'm happy to use that. 
> 
> 
> Another question that came up while studying the source code:
> What effect have \c!, \s!, and \v!? These commands exist a lot in the above
> cited files.
> 
> Gerion
> 
> 
> Am Mittwoch, 17. April 2024, 15:44:12 MESZ schrieb Gerion Entrup:
> > Hi,
> > 
> > > The APS style is an example of a number-based citation system. As you
> > > are looking for a tag-based citation, it might be better to start with
> > > something like the APA style.
> > 
> > I'm kind of satisfied with the publication-list layout of the APS style so 
> > I chose
> > this as a base. If it is simpler to start with the APA style, I can do that.

[NTG-context] Define a new command that inherits from multiple other command options

2024-04-25 Thread ai2472206007
hi!

I'm new to ConTeXt. I want to define a command with sidenote function. This 
[setupsidenote] command inherits the options of [setupmargindata], 
[setupcounter] and [setupframed]. just like [setupenumeration] inherits the 
option of [setupcounter].

I've defined the following sidenote command by searching, and I know how to 
define a new option for it. But what I don't know is how to get it to inherit 
the options of other commands and perform these features correctly.

Any clue is warmly welcome.

```
% macros=mkvi
\unprotect
\installnamespace  {sidenote}
\installcommandhandler \sidenote  {sidenote}  \sidenote
\setupsidenote[
   align=,
   conversion=n,
   way=bytext,
   style=,
]

\definecounter[SidenoteMarkNumber] [prefix=no]
\definemargindata [SidenoteContent][outer]
  [margin=margin,width=\outermarginwidth]
\setupmargindata  [SidenoteContent][stack=yes,style=\it]
\def\sidenotemark{\rawcountervalue[SidenoteMarkNumber]}
\def\convertsidenotemark#1{\high{\convertnumber{#1}{\sidenotemark}}}
\def\sidenote{\dosingleempty\dosidenote}
\def\dosidenote[#1]#2{%
\getparameters[SMsidenote]
  [align=\sidenoteparameter{align},
  conversion=\sidenoteparameter{conversion},
  way=\sidenoteparameter{way},
   #1]%
 \setupcounter[SidenoteMarkNumber] [#1]
 \incrementcounter[SidenoteMarkNumber]
 \convertsidenotemark{\SMsidenoteconversion}% mark in text
 \SidenoteContent[#1]{\setscript[hanzi]\setup[\SMsidenotealign]%
  \convertsidenotemark{\SMsidenoteconversion}% mark with 
note
  #2
}}
\protect
\starttext
天地玄黄,宇宙洪荒。日月盈昃,辰宿列张。寒来暑往,秋收冬\sidenote[align=flushleft] {天地玄黄,宇宙洪荒。}
\stoptext
```
___
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] Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-23 Thread Gerion Entrup
Here is a solution for the first part of my question. This is based on
https://www.mail-archive.com/ntg-context@ntg.nl/msg101156.html
and try and error based on publ-imp-aps.mkvi and publ-imp-apa.mkvi:

It display now the citation _and_ numbering labels in the short form:
```
\setupinteraction[state=start]

\startbuffer[testdata]
@Book{knuth1,
author = {Donald E. Knuth},
title = {TEX and METAFONT. New directions in typesetting},
year = {1979},
publisher = {Addison-Wesley},
}
@Article{someother,
author = {Some Person and Some Otherperson},
title = {Another title},
year = {1900},
}
\stopbuffer

% enable tracing
\enabletrackers[publications, publications.crossref, publications.details, 
publications.cite, publications.strings]

\usebtxdataset[main][testdata.buffer]
\usebtxdefinitions[aps]
\setupbtx[dataset=main]
\definebtxrendering[bibrendering][aps][dataset=main, numbering=short]
\setupbtxlist[aps][
  alternative=b,
  distance=.5em,
]
\setupbtx[aps:cite][alternative=short]

\starttext

Knuth developed \TeX \cite[knuth1]
Several persons said something \cite[someother].

\placelistofpublications[bibrendering]

\stoptext
```

The remaining part now is to mark publications of Knuth in a different way.
I have tried this and failed. Here is my code so far:
```
\startluacode
function render_cite(short, author)
print(author)
if author:lower():find("knuth") then
context("[>" .. short .. "]")
else
context("[" .. short .. "]")
end
end
\stopluacode
\definebtx[aps:cite:special][aps:cite]
\startsetups btx:aps:cite:special
\btxcitereference
\ctxlua{render_cite([==[\btxflush{year}]==], [==[\btxflush{author}]==])}
\stopsetups
% use it with \cite[special][knuth1]
```
This has several problems:
- \btxflush{short} does not work as I expected that. How can I get the short 
form?
- \btxflush to pass arguments to lua does not work as intended. On the lua side 
the
   variable "author" resolves to "\btxflushauthor{author}" and not to "D. E. 
Knuth".
   How can I pass the data?

I use Lua only because I find it more convenient as a programming language. If a
plain tex solution is simpler, I'm happy to use that. 


Another question that came up while studying the source code:
What effect have \c!, \s!, and \v!? These commands exist a lot in the above
cited files.

Gerion


Am Mittwoch, 17. April 2024, 15:44:12 MESZ schrieb Gerion Entrup:
> Hi,
> 
> > The APS style is an example of a number-based citation system. As you
> > are looking for a tag-based citation, it might be better to start with
> > something like the APA style.
> 
> I'm kind of satisfied with the publication-list layout of the APS style so I 
> chose
> this as a base. If it is simpler to start with the APA style, I can do that.
> 
> My hope is that it is possible to just change the "label" that is used for
> referencing and keep everything else as is.
> 
> > Is there some specification for your short tag-based citation style?
> 
> biblatex implements this with the "alphabetic" style. I'm not aware of
> a specification, though. Does the "short" form in ConTeXt exist for a
> specific reason? :)
> 
> Gerion
> 
> > On Tue, 16 Apr 2024 06:04:35 +0200
> > Gerion Entrup  wrote:
> > 
> > > Hi,
> > > 
> > > I'm trying to customize a cite format in a bibliography. Currently,
> > > I'm using the aps style which fits so far, except of the plain number
> > > as reference. In concrete, I want to change the following:
> > > - Use the first letter of the last name and the year as reference
> > > (this should be exactly the short form). It is more less also
> > > described here [1].
> > > - Highlight publications of a certain author with an extra char (e.g.
> > > '>')
> > > 
> > > Here is a minimal example (lets assume, every occurrence of Knuth
> > > should be highlighted): ```
> > > \setupinteraction[state=start]
> > > 
> > > \startbuffer[testdata]
> > > @Book{knuth1,
> > >   author = {Donald E. Knuth},
> > >   title = {TEX and METAFONT. New directions in typesetting},
> > >   year = {1979},
> > >   publisher = {Addison-Wesley},
> > > }
> > > @Article{someother,
> > >   author = {Some Person and Some Otherperson},
> > >   title = {Another title},
> > >   year = {1900},
> > > }
> > > \stopbuffer
> > > 
> > > % enable tracing
> > > \enabletrackers[publications, publications.crossref,
> > > publications.details, publications.cite, publications.strings]
> > > 
> > > \usebtxdataset[main][testdata.buffer]
> > > \usebtxdefinitions[aps]
> > > \setupbtx[dataset=main]
> > > \definebtxrendering[bibrendering][aps][dataset=main]
> > > 
> > > % this seems to have no effect?
> > > \setupbtx[alternative=short]
> > > 
> > > \starttext
> > > 
> > > Knuth developed \TeX \cite[knuth1].
> > > Several persons said something \cite[someother].
> > > 
> > > \placelistofpublications[bibrendering]
> > > 
> > > \stoptext
> > > ```
> > > 
> > > It should be rendered as:
> > > ``

[NTG-context] Re: Weird (?) float placement for specific widths of image

2024-04-19 Thread Pablo Rodriguez via ntg-context
On 4/19/24 17:48, Denis Maier via ntg-context wrote:
> Hi again,
>
> just a quick follow up on this one. Can anyone reproduce this?

Hi Denis,

I can reproduce it.

> Would be good to know how this can be fixed. I have this in a real
> document, and as I’m typesetting a XML source I cannot just adjust
> slightly adjust the dimensions to get rid of that.

It seems that you can place the figures somehow
(https://www.pragma-ade.nl/general/qrcs/setup-en.pdf#page=169):

See the extreme example:

  \showframe\showgrid\showstruts
  \setupexternalfigures
  [location={local,global,default}]
  \starttext
  \placefigure{A Cow}{\externalfigure[cow][
  height=.5\textheight,
  ]}

  \placefigure{A Cow}{\externalfigure[cow][
  height=.3\textheight,
  %height=.4\textheight,
  ]}

  \placefigure{A Cow}{\externalfigure[cow][
  width=3cm,
  %width=2cm,
  ]}

  \placefigure[inleft]{A Cow}{\externalfigure[cow][width=2cm]}

  \placefigure[inright]{A Cow}{\externalfigure[cow][width=2cm]}
  \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: Wiki - test/proposal to further clarify documentation

2024-04-17 Thread Henning Hraban Ramm

Am 17.04.24 um 23:25 schrieb Garulfo:
- exactly, it's not a question of proposing new documents, but of 
proposing another complementary way of accessing and browsing existing 
ones.


- Actually, the wiki is (or can be) a hub for the 4 needs:
   - "Reference" like https://wiki.contextgarden.net/Command/setuphead
   - "How-To Guides" like https://wiki.contextgarden.net/Titles
   - "Tutorials":
 - hosted https://wiki.contextgarden.net/Detailed_Example
 - linked https://github.com/mpsmath/stepbystep
   - "Explanation" : mostly linked manuals and books


https://wiki.contextgarden.net/Command/setuphead
and https://wiki.contextgarden.net/Titles
are examples of how difficult it can be to understand where to find a 
particular information.


It might be worth keeping only the key examples on reference pages
like https://wiki.contextgarden.net/Command/***
and moving the "how-to" examples to a separate page (or pages).


I agree. Let’s accept this as a rule for further wiki editing.

Also, explain parameters with top priority in Command/setup* pages 
(keeping them in Command/define* pages etc. doesn’t hurt, but at least 
experienced users should know where to find something without searching).


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: Wiki - test/proposal to further clarify documentation

2024-04-16 Thread Henning Hraban Ramm

Am 14.04.24 um 21:45 schrieb Peter Hopcroft via ntg-context:

It would be great if the main page actually said what Context does.


In my poster (still WIP) I wrote:

start
---

The “infamous” alternative to LaTeX

While most designers use graphical tools, there are still areas where 
code-based typesetting systems are fun, make sense or are even superior. 
While LaTeX is the most known of these, ConTeXt is used by a growing 
minority of ambitioned enthusiasts around the world.


The small but active and creative community of ConTeXt users and 
developers is always driving TeX development over new frontiers:

NTS, MetaFun, Oriental TeX, LuaTeX, mplib, LuaMetaTeX…
They’re also dubbed the incisors (AKA cutting edge) of the dinosaur of 
Open Source.


ConTeXt is aimed at creative users, known for advanced features like 
extensive font control and direct XML processing, with a deep 
integration of Lua and MetaPost.


---

ConTeXt was invented in the 1990s by Hans Hagen and Ton Otten of the 
Dutch company “Pragma Advanced Document Engineering” for typesetting 
schoolbooks. Taco Hoekwater refactored the TeX source code to create 
LuaTeX which was further developed into LuaMetaTeX by Hans Hagen (and 
lately Mikael Sundqvist for refined math typography).


---

“To be fair, switching to the ConTeXt way of thinking and doing things 
was not an overnight process […]. But once I got used to it, I could not 
imagine going back to LaTeX. I’ll go even further and say that, in my 
view, ConTeXt is the future of TeX.

(Prof. Idris Samawi Hamid, 2009)
Source: www.tug.org/interviews/hamid.html

---

“ConTeXt is LaTeX done right. It is simple, flexible and powerful.”
(J. U. Hasecke on Mastodon, 2022)

---

Is ConTeXt for me?

If you want …
* to design your own layout
* best quality math typesetting
* to use Lua functions e.g. for processing data
* deep integration of a graphics language (MetaPost)
* to process XML input
* no package conflicts
* to use OpenType features
* consistent setup commands
* to place stuff on layers
* visual debugging features
* to have a lean, but mighty TeX system
* to typeset much faster than with LaTeX
* high quality Arabic typography
… then ConTeXt is for you!

---
stop

___
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-04-01 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/luametafun.pdf
 general/manuals/primitives.pdf
 general/qrcs/
 general/qrcs/setup-mapping-de.pdf
 general/qrcs/setup-mapping-en.pdf
 general/qrcs/setup-mapping-fr.pdf
 general/qrcs/setup-mapping-it.pdf
 
 sent 207,366 bytes  received 58,323,621 bytes  4,036,619.79 bytes/sec
 total size is 579,402,595  speedup is 9.90


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-04-01.10
246486540   
/var/www/aanhet.net/context//htdocs/archives/context-2024-04-01.10/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2024-04-01.10/current
373235953   
/var/www/aanhet.net/context//htdocs/archives/context-2024-04-01.10
373235953   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: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
Dear Pablo,


Many thanks for your example. Sorry for writing so late.

At least I found out, how it works for me .  This is the best way.


\setuppapersize[A8,landscape]
\setupbodyfont[termes, 12.50pt]
\setuplayout[inrightmargin=5.1cm
 backspace=2.9cm,
 inleftmargin=0cm,width=4cm]
\inrightmargin{\blackrule\\{3.2.2}}\par \dontleavehmode \blackrule
\showframe
\starttext
Me

\stoptext




Von: Pablo Rodriguez via ntg-context 
Gesendet: Freitag, 15. März 2024 20:00:35
An: ntg-context@ntg.nl
Cc: Pablo Rodriguez
Betreff: [NTG-context] Re: Struggling with the distance and right margin text

On 3/15/24 14:06, Ursula Hermann wrote:
> Dear List,

Dear Ursula,

this might help you (it isn’t perfect, but you just seem to copy and
paste fragments from your source files):

  %\showframe\showstruts
  \mainlanguage[de-at]
  \setuppagenumbering[alternative=doublesided]
  \definemargindata  [MyInMargin][ininner]
  \definemarginframed[MyInMargin]
[topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
  \defineframed[topruletitle]
[width=max,
 frame=off,
 topframe=on,
 rulethickness=1pt,
 align={justify},
 extras=\dontleavehmode]
  \starttext
  \topruletitle{\MyInMargin {1.1.1}\bf
  Beispiel 3.2.17. (Vertauschung von All- und Existenzquantor).} \par
  \input knuth\page

  \topruletitle{\MyInMargin{3.2.22}{\bf
  Theorem 3.2.22 (Rechenregeln für Quantoren)}. Seien \m P(\m x)und
\input zapf b}
  \stoptext

Sorry for saying that again, but please elaborate both your minimal
samples and your descriptions of the issues you are experiencing.

Some comments on the code fragments you sent.

First of all, please include always code that can be compiled simply
after being copied and pasted.

This requires \starttext (most of the time) and \stoptext (mandatory to
avoid stupid errors).

> \definepapersize[MyBook][width=19cm,height=29.7cm]
> \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook
> %\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 paper
> \setupbodyfont[modern, 12.50pt]

If these lines are irrelevant for the issue you are experiencing, please
don’t include them.

> \definemargindata  [MyInMargin][inleft]
> \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]

You define this margin framed, but your sample makes no use of it.

Sorry, but I don’t get it.

> \defineenumeration
>   [theorem]
>   [
> text=Theorem,
> title=yes,
> width=fit,
> distance=0.2em,
> alternative=serried,
>   ]
> \definetextbackground[GrayBackground][
>   location=paragraph,
>   background=color,
>   backgroundcolor=lightgray,
>   leftoffset=.5\bodyfontsize,
>   rightoffset=.5\bodyfontsize,
>   topoffset=.5\bodyfontsize,
>   bottomoffset=.5\bodyfontsize,
>   frame=off,]
>   \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\}
>   \blackrule[color=black, height=0.10ex, width=13.50cm]

If your sample includes no theorem or text background, please remove
these definitions when sending code.

BTW, avoid include text content (such as margin and body rules [but not
their definitions]) before \starttext.

Also, use \clrf instead of \\ (since the mailing list displays the
relevant line as ("\" instead of "\\"):

>   \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\}

Here starts your text:

> \starttext
> \margintext {1.1.1}
> {\bf Beispiel 3.2.17. (Vertauschung von All- und Existenzquantor).} \par

Your margin text is undefined. Your code has a defined margin text
command, but it isn’t used.

> So  I have here an example from the second page:

Sorry, but I’m having the impression you are using ConTeXt as a kind of
command-based DTP software (which I think it isn’t at all).

Or, do you define commands for each page?

I think it is better to define a single margin text command and use a
doublesided page setup.

> \definemargindata[inrightmargin][right][margin=margin,width=.50em\rightmarginwidth,style=,color=]
> \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt, 
> width=.90cm]

Again, margin text commands defined, but never used.

> \blackrule[color=black, height=0.10ex, width=13.40cm]
> {\blackrule[color=black, height=0.10ex, width=1cm, distance=.90cm]\par

Here you open a brace that is not closed at all.

At least, consider that this won’t be extremely readable for other
people (this is only a sample).

It also may be problematic for you, if you leave the source untouched
for some weeks.

> \defineenumeration
>   [theorem]
>   [
> text=Theorem,
> title=yes,
> width=fit,
> distance=0.2em,
> alternative=serried,
>   ]

At least, it would be better not to include a definition inside content
that seems to (or may) be grouped with braces.

BTW, it is exactly t

[NTG-context] Re: Use of marking

2024-03-21 Thread Thomas Meyer

Hi Pablo and Bruce,

thank you very much for your two solutions. That helps me enormously now.

Greetings
Thomas

Am 21.03.24 um 16:34 schrieb Bruce Horrocks:

\startsetups[doc:header]
   \getmarking[chapternumber] \space - \space \getmarking[chapter]
   \space :: \space
   \getmarking[sectionnumber] \space - \space \getmarking[section]
\stopsetups
\setupheadertexts[\setup{doc:header}]

\starttext
\dorecurse{10}{
   \startchapter[title={This is my chapter}]
   This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv

   \startsection[title={This is my section}]
This is a section\par \dorecurse{6}{\input knuth }\input math-kontinuitet-sv
   \stopsection
   \stopchapter
}
\stoptext
___
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: Use of marking

2024-03-21 Thread Bruce Horrocks


> On 20 Mar 2024, at 18:45, Andres Conrado Montoya  
> wrote:
> 
> 2. As far as I have found, including the chapter/section number in the 
> marking is not really a trivial task. I usually hack something using 
> \headnumber and \getmarking, like so: 

You can do the following:

\startsetups[doc:header]
  \getmarking[chapternumber] \space - \space \getmarking[chapter]
  \space :: \space
  \getmarking[sectionnumber] \space - \space \getmarking[section]
\stopsetups
\setupheadertexts[\setup{doc:header}]

\starttext
\dorecurse{10}{
  \startchapter[title={This is my chapter}]
  This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv

  \startsection[title={This is my section}]
   This is a section\par \dorecurse{6}{\input knuth }\input math-kontinuitet-sv
  \stopsection
  \stopchapter
}
\stoptext

Caveat: it needs an if...then test around the section number for when a section 
hasn't started.
—
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: Japanese

2024-03-16 Thread Wolfgang Schuster

Otared Kavian schrieb am 14.03.2024 um 14:48:

Dear Emmanuel,

Thank you for your reply: indeed I understand your approach, which is 
quite efficient. I am not at all good in coding, so I naively thought 
there would be a way for your setup to retrieve the information it 
needs from what the user is doing. Maybe once things are settled, Hans 
and Wolfgang will have a look in the Japanese part of ConTeXt so that 
the user can avoid to enter the setup included in the \directlua part.


There is no need for these calculations because

    1. you can create named layouts (e.g. \definelayout[kinohanmen:a4]) 
for each paper size,


    2. you can put the fontsize etc. settings in a setups block and 
load the one needed for each paper size and


    3. you can put all of them in a module which can be loaded when 
writing documents in japanese, the paper size can be passed as argument 
to the module.


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: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
On 3/15/24 14:06, Ursula Hermann wrote:
> Dear List, 

Dear Ursula,

this might help you (it isn’t perfect, but you just seem to copy and
paste fragments from your source files):

  %\showframe\showstruts
  \mainlanguage[de-at]
  \setuppagenumbering[alternative=doublesided]
  \definemargindata  [MyInMargin][ininner]
  \definemarginframed[MyInMargin]
[topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
  \defineframed[topruletitle]
[width=max,
 frame=off,
 topframe=on,
 rulethickness=1pt,
 align={justify},
 extras=\dontleavehmode]
  \starttext
  \topruletitle{\MyInMargin {1.1.1}\bf
  Beispiel 3.2.17. (Vertauschung von All- und Existenzquantor).} \par
  \input knuth\page

  \topruletitle{\MyInMargin{3.2.22}{\bf
  Theorem 3.2.22 (Rechenregeln für Quantoren)}. Seien \m P(\m x)und
\input zapf b}
  \stoptext

Sorry for saying that again, but please elaborate both your minimal
samples and your descriptions of the issues you are experiencing.

Some comments on the code fragments you sent.

First of all, please include always code that can be compiled simply
after being copied and pasted.

This requires \starttext (most of the time) and \stoptext (mandatory to
avoid stupid errors).

> \definepapersize[MyBook][width=19cm,height=29.7cm]
> \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook
> %\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 paper
> \setupbodyfont[modern, 12.50pt]

If these lines are irrelevant for the issue you are experiencing, please
don’t include them.

> \definemargindata  [MyInMargin][inleft]
> \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]

You define this margin framed, but your sample makes no use of it.

Sorry, but I don’t get it.

> \defineenumeration
>   [theorem]
>   [
>     text=Theorem,
>     title=yes,
>     width=fit,
>     distance=0.2em,
>     alternative=serried,
>   ]
> \definetextbackground[GrayBackground][
>   location=paragraph,
>   background=color,
>   backgroundcolor=lightgray,
>   leftoffset=.5\bodyfontsize,
>   rightoffset=.5\bodyfontsize,
>   topoffset=.5\bodyfontsize,
>   bottomoffset=.5\bodyfontsize,
>   frame=off,]
>   \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\}
>   \blackrule[color=black, height=0.10ex, width=13.50cm]

If your sample includes no theorem or text background, please remove
these definitions when sending code.

BTW, avoid include text content (such as margin and body rules [but not
their definitions]) before \starttext.

Also, use \clrf instead of \\ (since the mailing list displays the
relevant line as ("\" instead of "\\"):

>   \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\}

Here starts your text:

> \starttext
> \margintext {1.1.1}
> {\bf Beispiel 3.2.17. (Vertauschung von All- und Existenzquantor).} \par

Your margin text is undefined. Your code has a defined margin text
command, but it isn’t used.

> So  I have here an example from the second page: 

Sorry, but I’m having the impression you are using ConTeXt as a kind of
command-based DTP software (which I think it isn’t at all).

Or, do you define commands for each page?

I think it is better to define a single margin text command and use a
doublesided page setup.

> \definemargindata[inrightmargin][right][margin=margin,width=.50em\rightmarginwidth,style=,color=]
> \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt, 
> width=.90cm]

Again, margin text commands defined, but never used.

> \blackrule[color=black, height=0.10ex, width=13.40cm]
> {\blackrule[color=black, height=0.10ex, width=1cm, distance=.90cm]\par

Here you open a brace that is not closed at all.

At least, consider that this won’t be extremely readable for other
people (this is only a sample).

It also may be problematic for you, if you leave the source untouched
for some weeks.

> \defineenumeration
>   [theorem]
>   [
>     text=Theorem,
>     title=yes,
>     width=fit,
>     distance=0.2em,
>     alternative=serried,
>   ]

At least, it would be better not to include a definition inside content
that seems to (or may) be grouped with braces.

BTW, it is exactly the same definition as the one included before.

It isn’t just to be removed in minimal samples, your final code doesn’t
need the duplicated command definition.

> \inright{3.2.22}
> {\bf Theorem 3.2.22 (Rechenregeln für Quantoren)}. Seien \m P(\m x)und 
>
> My problem here is that there is not the same distance between the  the
> text and the  margintext .

Please, always compile the minimal samples that you send to the list.

This is simply to ensure other list subscribers will get the same
results as you.

After adding a final \stoptext command, I had to run:

  mtxrun --script check source-sample.tex

This allowed me to sp

[NTG-context] Re: Japanese

2024-03-14 Thread Otared Kavian
Dear Emmanuel,

Thank you for your reply: indeed I understand your approach, which is quite 
efficient. I am not at all good in coding, so I naively thought there would be 
a way for your setup to retrieve the information it needs from what the user is 
doing. Maybe once things are settled, Hans and Wolfgang will have a look in the 
Japanese part of ConTeXt so that the user can avoid to enter the setup included 
in the \directlua part.

Again thank you for what you are sharing.

Best regards: Otared

> On 14 Mar 2024, at 08:12, Emanuel Han via ntg-context  
> wrote:
> 
> Dear Otared,
> 
> when you read the lua code in the first \directlua{}, you should realize that 
> the dimensions of almost all layout elements are depending on the value of my 
> lua variable "paperSize".
> Thanks to defining the paper size first in lua, I can apply calculations of 
> numeric values.
> 
> The value of paperSize is later passed on to \setuppapersize via 
> \setuppapersize[\directlua{tex.print(paperSize)}]
> 
> Emanuel
> On März 13 2024, at 3:55 pm, Otared Kavian  wrote:
> Hi Emmanuel,
> 
> Thank you so much for the new setup for writing Japanese: I tested with both 
> files, and noticed that with the new version the output looks great.
> 
> I have a question about the code in the \directlua{} part of your setup: why, 
> for instance, the
> paperSize = « B5"
> is defined « by hand » there, instead of being retrieved from the command
> \setuppapersize[B5]
> issued by the user?
> 
> Actually I am using your setup for learning Japanese, and at my beginner’s 
> level I do separate words I am learning with spaces. While with the previous 
> version of your setup the lines were breaking womewhat strangely, but now the 
> spaces between words in the output are as I intended them to be (I should 
> also Thank Wolfgang Schuster for his insight with the \script[nihongo], and 
> indeed Hans for fixing so quickly the slightest bug).
> 
> It is really a great pleasure to be in this community where help comes from 
> everyone and features are given on demand !
> 
> Best regards: Otared
> 
> > On 10 Mar 2024, at 17:43, Emanuel Han via ntg-context  
> > wrote:
> >
> > Hi all,
> >
> > I added 
> > https://wiki.contextgarden.net/Chinese_Japanese_and_Korean#Meeting_the_JIS_X_4051_Requirements_for_Japanese_Text_Layout
> > with attached working example code and to-do list.
> >
> > Thanks for any contributions!
> >
> > The working example code is still a work in progress. Its text layout 
> > output meets already some of the requirements (see comments in the code). 
> > Among the ones to still be implemented are:
> >
> > • solid setting (no extra spacing between characters) 
> > https://www.w3.org/TR/jlreq/#fig1_8 if no requirement for line-adjustment 
> > https://www.w3.org/TR/jlreq/#term.line-adjustment
> > • aligning of the lines to the Kihon-hanmen (optimizing the code below in 
> > this regard)
> > • positioning and realm of headings https://www.w3.org/TR/jlreq/#fig3_1_9 
> > https://www.w3.org/TR/jlreq/#fig3_1_15 et al, and 
> > https://www.w3.org/TR/jlreq/#fig3_1_4
> > • positioning of yokugo-ruby https://www.w3.org/TR/jlreq/#fig2_3_24
> > • inline cutting note (warichu) https://www.w3.org/TR/jlreq/#fig2_4_1
> > • emphasis with sesame dot or bullet
> > • itemization https://www.w3.org/TR/jlreq/#fig2_5_6
> > • indenting of quotation paragraphs https://www.w3.org/TR/jlreq/#fig2_5_7
> > • tab setting https://www.w3.org/TR/jlreq/#fig2_6_1
> > • furiwake https://www.w3.org/TR/jlreq/#fig2_7_2
> > • jidori https://www.w3.org/TR/jlreq/#fig2_7_4
> > • math https://www.w3.org/TR/jlreq/#fig2_7_6 and 
> > https://www.w3.org/TR/jlreq/#fig2_7_62
> > • tategaki (writing vertically)
> > Best regards
> >
> > Emanuel
> > On März 2 2024, at 7:00 pm, Wolfgang Schuster 
> >  wrote:
> > Emanuel Han schrieb am 01.03.2024 um 16:23:
> >
> > Dear Wolfgang,
> >
> > thank you for your valuable remarks. I integrated them, see corrected 
> > attached example.
> >
> > Yes, correct layout examples exist. They're all showing vertical writing, 
> > but the rules and principles are exactly the same for horizontal writing.
> >
> > • position of the headers and footers: https://www.w3.org/TR/jlreq/#fig1_30
> >
> > See my attached gongitsune.tex example how you can squeeze text in a very 
> > narrow header/footer.
> >
> > • aligning lines to the text box: https://www.w3.org/TR/jlreq/#fig1_3
> >
> > You can use the lines key for \setuplayout to let ConTeXt calculate the 
> > necessary value for

[NTG-context] Re: Japanese

2024-03-14 Thread Emanuel Han via ntg-context
Dear Otared,

when you read the lua code in the first \directlua{}, you should realize that 
the dimensions of almost all layout elements are depending on the value of my 
lua variable "paperSize".
Thanks to defining the paper size first in lua, I can apply calculations of 
numeric values.

The value of paperSize is later passed on to \setuppapersize via 
\setuppapersize[\directlua{tex.print(paperSize)}]
Emanuel
On März 13 2024, at 3:55 pm, Otared Kavian  wrote:
> Hi Emmanuel,
>
> Thank you so much for the new setup for writing Japanese: I tested with both 
> files, and noticed that with the new version the output looks great.
> I have a question about the code in the \directlua{} part of your setup: why, 
> for instance, the
> paperSize = « B5"
> is defined « by hand » there, instead of being retrieved from the command
> \setuppapersize[B5]
> issued by the user?
>
> Actually I am using your setup for learning Japanese, and at my beginner’s 
> level I do separate words I am learning with spaces. While with the previous 
> version of your setup the lines were breaking womewhat strangely, but now the 
> spaces between words in the output are as I intended them to be (I should 
> also Thank Wolfgang Schuster for his insight with the \script[nihongo], and 
> indeed Hans for fixing so quickly the slightest bug).
> It is really a great pleasure to be in this community where help comes from 
> everyone and features are given on demand !
> Best regards: Otared
> > On 10 Mar 2024, at 17:43, Emanuel Han via ntg-context  
> > wrote:
> >
> > Hi all,
> >
> > I added 
> > https://wiki.contextgarden.net/Chinese_Japanese_and_Korean#Meeting_the_JIS_X_4051_Requirements_for_Japanese_Text_Layout
> > with attached working example code and to-do list.
> >
> > Thanks for any contributions!
> >
> > The working example code is still a work in progress. Its text layout 
> > output meets already some of the requirements (see comments in the code). 
> > Among the ones to still be implemented are:
> >
> > • solid setting (no extra spacing between characters) 
> > https://www.w3.org/TR/jlreq/#fig1_8 if no requirement for line-adjustment 
> > https://www.w3.org/TR/jlreq/#term.line-adjustment
> > • aligning of the lines to the Kihon-hanmen (optimizing the code below in 
> > this regard)
> > • positioning and realm of headings https://www.w3.org/TR/jlreq/#fig3_1_9 
> > https://www.w3.org/TR/jlreq/#fig3_1_15 et al, and 
> > https://www.w3.org/TR/jlreq/#fig3_1_4
> > • positioning of yokugo-ruby https://www.w3.org/TR/jlreq/#fig2_3_24
> > • inline cutting note (warichu) https://www.w3.org/TR/jlreq/#fig2_4_1
> > • emphasis with sesame dot or bullet
> > • itemization https://www.w3.org/TR/jlreq/#fig2_5_6
> > • indenting of quotation paragraphs https://www.w3.org/TR/jlreq/#fig2_5_7
> > • tab setting https://www.w3.org/TR/jlreq/#fig2_6_1
> > • furiwake https://www.w3.org/TR/jlreq/#fig2_7_2
> > • jidori https://www.w3.org/TR/jlreq/#fig2_7_4
> > • math https://www.w3.org/TR/jlreq/#fig2_7_6 and 
> > https://www.w3.org/TR/jlreq/#fig2_7_62
> > • tategaki (writing vertically)
> > Best regards
> >
> > Emanuel
> > On März 2 2024, at 7:00 pm, Wolfgang Schuster 
> >  wrote:
> > Emanuel Han schrieb am 01.03.2024 um 16:23:
> >
> > Dear Wolfgang,
> >
> > thank you for your valuable remarks. I integrated them, see corrected 
> > attached example.
> >
> > Yes, correct layout examples exist. They're all showing vertical writing, 
> > but the rules and principles are exactly the same for horizontal writing.
> >
> > • position of the headers and footers: https://www.w3.org/TR/jlreq/#fig1_30
> >
> > See my attached gongitsune.tex example how you can squeeze text in a very 
> > narrow header/footer.
> >
> > • aligning lines to the text box: https://www.w3.org/TR/jlreq/#fig1_3
> >
> > You can use the lines key for \setuplayout to let ConTeXt calculate the 
> > necessary value for the text height.
> >
> > • protrusion of ruby: https://www.w3.org/TR/jlreq/#fig_ad1_6
> >
> > You're getting this for free because ruby text doesn't take up vertical 
> > space, in case vertical text is working it would now stick into the margins 
> > as expected.
> >
> > \starttext
> > \ruledhbox{a \ruby{x}{y} b}
> > \stoptext
> >
> >
> >
> > In my previous mail, I wrote wrong amounts of lines. They should be 46 
> > lines on one page, while the actual example doesn't show the 46th line.
> >
> > It would be important to identify the reason why only 

[NTG-context] Re: Japanese

2024-03-13 Thread Otared Kavian
Hi Emmanuel,

Thank you so much for the new setup for writing Japanese: I tested with both 
files, and noticed that with the new version the output looks great. 

I have a question about the code in the \directlua{} part of your setup: why, 
for instance, the 
paperSize = « B5"
is defined « by hand » there, instead of being retrieved from the command
 \setuppapersize[B5]
issued by the user? 

Actually I am using your setup for learning Japanese, and at my beginner’s 
level I do separate words I am learning with spaces. While with the previous 
version of your setup the lines were breaking womewhat strangely, but now the 
spaces between words in the output are as I intended them to be (I should also 
Thank Wolfgang Schuster for his insight with the \script[nihongo], and indeed 
Hans for fixing so quickly the slightest bug).

It is really a great pleasure to be in this community where help comes from 
everyone and features are given on demand !

Best regards: Otared

> On 10 Mar 2024, at 17:43, Emanuel Han via ntg-context  
> wrote:
> 
> Hi all,
> 
> I added 
> https://wiki.contextgarden.net/Chinese_Japanese_and_Korean#Meeting_the_JIS_X_4051_Requirements_for_Japanese_Text_Layout
> with attached working example code and to-do list.
> 
> Thanks for any contributions!
> 
> The working example code is still a work in progress. Its text layout output 
> meets already some of the requirements (see comments in the code). Among the 
> ones to still be implemented are:
> 
>   • solid setting (no extra spacing between characters) 
> https://www.w3.org/TR/jlreq/#fig1_8 if no requirement for line-adjustment 
> https://www.w3.org/TR/jlreq/#term.line-adjustment
>   • aligning of the lines to the Kihon-hanmen (optimizing the code below 
> in this regard)
>   • positioning and realm of headings 
> https://www.w3.org/TR/jlreq/#fig3_1_9 https://www.w3.org/TR/jlreq/#fig3_1_15 
> et al, and https://www.w3.org/TR/jlreq/#fig3_1_4
>   • positioning of yokugo-ruby https://www.w3.org/TR/jlreq/#fig2_3_24
>   • inline cutting note (warichu) https://www.w3.org/TR/jlreq/#fig2_4_1
>   • emphasis with sesame dot or bullet
>   • itemization https://www.w3.org/TR/jlreq/#fig2_5_6
>   • indenting of quotation paragraphs 
> https://www.w3.org/TR/jlreq/#fig2_5_7
>   • tab setting https://www.w3.org/TR/jlreq/#fig2_6_1
>   • furiwake https://www.w3.org/TR/jlreq/#fig2_7_2
>   • jidori https://www.w3.org/TR/jlreq/#fig2_7_4
>   • math https://www.w3.org/TR/jlreq/#fig2_7_6 and 
> https://www.w3.org/TR/jlreq/#fig2_7_62
>   • tategaki (writing vertically)
> Best regards
> 
> Emanuel
> On März 2 2024, at 7:00 pm, Wolfgang Schuster 
>  wrote:
> Emanuel Han schrieb am 01.03.2024 um 16:23:
> 
> Dear Wolfgang,
> 
> thank you for your valuable remarks. I integrated them, see corrected 
> attached example.
> 
> Yes, correct layout examples exist. They're all showing vertical writing, but 
> the rules and principles are exactly the same for horizontal writing.
> 
>   • position of the headers and footers: 
> https://www.w3.org/TR/jlreq/#fig1_30
> 
> See my attached gongitsune.tex example how you can squeeze text in a very 
> narrow header/footer.
> 
>   • aligning lines to the text box: https://www.w3.org/TR/jlreq/#fig1_3
> 
> You can use the lines key for \setuplayout to let ConTeXt calculate the 
> necessary value for the text height.
> 
>   • protrusion of ruby: https://www.w3.org/TR/jlreq/#fig_ad1_6
> 
> You're getting this for free because ruby text doesn't take up vertical 
> space, in case vertical text is working it would now stick into the margins 
> as expected.
> 
> \starttext
> \ruledhbox{a \ruby{x}{y} b}
> \stoptext
> 
> 
> 
> In my previous mail, I wrote wrong amounts of lines. They should be 46 lines 
> on one page, while the actual example doesn't show the 46th line.
> 
> It would be important to identify the reason why only 24 characters are used 
> to create a line when 25 could be used. Then we can develop a method to turn 
> that mechanism off or circumvent it.
> Quotation from https://www.w3.org/TR/jlreq:
> In principle, when composing a line with ideographic (cl-19), hiragana 
> (cl-15) and katakana (cl-16) characters, no extra spacing appears between 
> their character frame. This is called solid setting (see Figure 5).
> 
> 1. ConTeXt has a mechanism to typeset Japanese texts.
> 
> 2. There are flaws in the output it produces but this nothing which can't be 
> fixed.
> 
> 3. To fix the problems someone has to be passionate to fix them and we're 
> willing to help here.
> 
> As you can see in my second example file japanese.tex there is a font feat

[NTG-context] Re: Japanese

2024-02-27 Thread Otared Kavian
Dear Dalyoung,

Thank you very much for your insight. I downloaded the Noto Serif JP fonts and 
set up a fontfamily as you indicated, by adding
\setscript[nihongo]
which solves a problem I had with line breakings. And everything works smoothly!

So, for the mail archive, here is what I have and what works fine:

%%% Noto Fonts

\definefontfamily[JapaneseFont][rm][Noto Serif JP]
  [   it={style:regular,features:{*,slanted}},
  sl={style:regular,features:{*,slanted}},
  bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[JapaneseFont][ss][Noto Serif JP]
  [   it={style:regular,features:{*,slanted}},
  sl={style:regular,features:{*,slanted}},
  bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[JapaneseFont][tt][Noto Serif JP]
  [   it={style:regular,features:{*,slanted}},
  sl={style:regular,features:{*,slanted}},
  bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[JapaneseFont][math][Tex Gyre Termes Math]
%\definefontfamily[JapaneseFont][math][Tex Gyre Pagella Math]
%\definefontfamily[JapaneseFont][math][Tex Gyre Aventor]



\setupbodyfont[JapaneseFont,12pt]
\setupruby[location=top,voffset=-2ex]
\setupwhitespace[big]
\setscript[nihongo]

\starttext
\ruby{早}{はや}く。
いきましょう。
\stoptext

Best regards: Otared


> On 27 Feb 2024, at 13:55, Jeong Dal via ntg-context  
> wrote:
> 
> Dear Otared,
> 
> I am using Korean as main language.
> I used use typescript file, but recently I use \definefontfamily.
> Since using Japanese font is similar to use Korean font, I show my example  
> of using Noto fonts. It was made by the help of expert of this list long time 
> ago.
> 
> You may change "Noto Serif CJK KR” to Japanese font.
> 
> I also use "\setscript[hangul]” when I use Korean as mainlanaguage.
> 
> I hope that you may enhance the following code.
> 
> Best regards,
> 
> Dalyoung
> 
> 
> %%% Noto Fonts
> 
> \definefontfamily[notoFont][rm][Noto Serif CJK KR]
>   [   it={style:regular,features:{*,slanted}},
>   sl={style:regular,features:{*,slanted}},
>   bi={style:bold,features:{*,slanted}},force=yes]
> 
> \definefontfamily[notoFont][ss][Noto Sans CJK KR]
>   [   it={style:regular,features:{*,slanted}},
>   sl={style:regular,features:{*,slanted}},
>   bi={style:bold,features:{*,slanted}},force=yes]
> 
> \definefontfamily[notoFont][tt][Noto Sans Mono CJK KR]
>   [   it={style:regular,features:{*,slanted}},
>   sl={style:regular,features:{*,slanted}},
>   bi={style:bold,features:{*,slanted}},force=yes]
> 
> \definefontfamily[notoFont][math][Tex Gyre Termes Math]
> %\definefontfamily[notoFonts][math][Tex Gyre Pagella Math]
> %\definefontfamily[notoCJK][math][Tex Gyre Aventor]
> 
> 
>> 2024. 2. 27. 오전 6:49, Otared Kavian > <mailto:ota...@gmail.com>> 작성:
>> 
>> Hi Hraban,
>> 
>> Your are right indeed ! I didn’t imagine that it was so easy to set up a 
>> document to write in Japanese…
>> Actually I followed the example by Emanuel Han which is essentially what you 
>> suggest (although he gave me also the hint to add the furagana).
>> 
>> Best regards: Otared
>> 
>>> On 26 Feb 2024, at 21:16, Henning Hraban Ramm >> <mailto:te...@fiee.net>> wrote:
>>> 
>>> Am 26.02.24 um 21:08 schrieb Otared Kavian:
>>>> Does anyone have a simple setup of fonts to write a small Japanese 
>>>> document (possibly with furagana) ? I am using MacOS and I have several 
>>>> Japanese fonts on the system.
>>>> I have some old examples which do not typeset correctly now, maybe because 
>>>> they use the old module simplefonts and  commands such as \setcjkmainfont 
>>>> and friends.
>>> 
>>> Try to replace the simplefonts calls with something like
>>> 
>>> \definefontfamily[myfonts][rm][SomeFont]
>>> \definefontfamily[myfonts][ss][SomeOtherFont]
>>> 
>>> \setupbodyfont[myfonts,rm,12pt]
>>> 
>>> With Latin fonts, it usually works.
>>> 
>>> Hraban
>>> ___
>>> If your question is of interest to others as well, please add an entry to 
>>> the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
>>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl 
>>> <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl>
>>> webpage  : https://www.pragma-ade.nl <https://www.pragma-ade.nl/> / 
>>> https://context.aanhet.net <https://context.aanhet.net/> (mirror)
>>> archive  : https://github.com/contextgarden/context 
&

[NTG-context] Re: Japanese

2024-02-27 Thread Jeong Dal via ntg-context
Dear Otared,

I am using Korean as main language.
I used use typescript file, but recently I use \definefontfamily.
Since using Japanese font is similar to use Korean font, I show my example  of 
using Noto fonts. It was made by the help of expert of this list long time ago.

You may change "Noto Serif CJK KR” to Japanese font.

I also use "\setscript[hangul]” when I use Korean as mainlanaguage.

I hope that you may enhance the following code.

Best regards,

Dalyoung


%%% Noto Fonts

\definefontfamily[notoFont][rm][Noto Serif CJK KR]
  [   it={style:regular,features:{*,slanted}},
  sl={style:regular,features:{*,slanted}},
  bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[notoFont][ss][Noto Sans CJK KR]
  [   it={style:regular,features:{*,slanted}},
  sl={style:regular,features:{*,slanted}},
  bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[notoFont][tt][Noto Sans Mono CJK KR]
  [   it={style:regular,features:{*,slanted}},
  sl={style:regular,features:{*,slanted}},
  bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[notoFont][math][Tex Gyre Termes Math]
%\definefontfamily[notoFonts][math][Tex Gyre Pagella Math]
%\definefontfamily[notoCJK][math][Tex Gyre Aventor]


> 2024. 2. 27. 오전 6:49, Otared Kavian  작성:
> 
> Hi Hraban,
> 
> Your are right indeed ! I didn’t imagine that it was so easy to set up a 
> document to write in Japanese…
> Actually I followed the example by Emanuel Han which is essentially what you 
> suggest (although he gave me also the hint to add the furagana).
> 
> Best regards: Otared
> 
>> On 26 Feb 2024, at 21:16, Henning Hraban Ramm > <mailto:te...@fiee.net>> wrote:
>> 
>> Am 26.02.24 um 21:08 schrieb Otared Kavian:
>>> Does anyone have a simple setup of fonts to write a small Japanese document 
>>> (possibly with furagana) ? I am using MacOS and I have several Japanese 
>>> fonts on the system.
>>> I have some old examples which do not typeset correctly now, maybe because 
>>> they use the old module simplefonts and  commands such as \setcjkmainfont 
>>> and friends.
>> 
>> Try to replace the simplefonts calls with something like
>> 
>> \definefontfamily[myfonts][rm][SomeFont]
>> \definefontfamily[myfonts][ss][SomeOtherFont]
>> 
>> \setupbodyfont[myfonts,rm,12pt]
>> 
>> With Latin fonts, it usually works.
>> 
>> Hraban
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl 
>> <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl>
>> webpage  : https://www.pragma-ade.nl <https://www.pragma-ade.nl/> / 
>> https://context.aanhet.net <https://context.aanhet.net/> (mirror)
>> archive  : https://github.com/contextgarden/context 
>> <https://github.com/contextgarden/context>
>> wiki : https://wiki.contextgarden.net <https://wiki.contextgarden.net/>
>> ___
> 
> Otared Kavian
> e-mail: ota...@gmail.com <mailto:ota...@gmail.com>
> Phone: +33 6 88 26 70 95
> 
> 
> 
> 
> ___
> 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] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-02-27 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/qrcs/
 general/qrcs/setup-mapping-de.pdf
 general/qrcs/setup-mapping-en.pdf
 general/qrcs/setup-mapping-fr.pdf
 general/qrcs/setup-mapping-it.pdf
 
 sent 190,609 bytes  received 44,736,815 bytes  3,327,957.33 bytes/sec
 total size is 578,807,581  speedup is 12.88


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-02-27.10
245889724   
/var/www/aanhet.net/context//htdocs/archives/context-2024-02-27.10/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2024-02-27.10/current
372639137   
/var/www/aanhet.net/context//htdocs/archives/context-2024-02-27.10
372639137   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
___


  1   2   3   4   5   6   7   8   9   10   >