[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Andres Conrado Montoya
Thank you Hanks, seems to work well after some tweaking.

I had an issue, the patch you sent me gave an error when I ran 'context
--make'. The error said:

tex error   > tex error on line 51 in file core-dat.mkxl: Parameters
must be numbered consecutively
[#1]#*[

S

\permanent\tolerant\protected\def\setdataset[#1]#*[#S
#2]#*[#S#3]%

I've inserted the digit you should have used after the #.

I edited line 51 as:
\permanent\tolerant\protected\def\setdataset[#1]#*[#2]#*[#3]%
Instead of your original:
\permanent\tolerant\protected\def\setdataset[#1]#*[#S#2]#*[#S#3]%

And now context --make runs, and the example compiles correctly, however,
not really sure if what I did was the right thing to do.

Thank you so much for your help!

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Wolfgang Schuster

Alex Leray schrieb am 17.08.2023 um 17:59:

Hi,

I think I need to use verbatim because I'm typesetting source code and 
I need it to be as verbatim as possible.


For the moment, I'm manually inserting zero-width spaces... seems to 
do the trick, although it's becoming unreadable :P


Which language do you have to typeset, maybe the scite module already 
supports it.
A real example rather than dummy text can be of help to give a proper 
solution.


Wolfgang

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Alex Leray

Hi,

I think I need to use verbatim because I'm typesetting source code and I 
need it to be as verbatim as possible.


For the moment, I'm manually inserting zero-width spaces... seems to do 
the trick, although it's becoming unreadable :P


Thanks,

Alex


Le 17/08/23 à 17:22, Wolfgang Schuster a écrit :

Alex Leray schrieb am 17.08.2023 um 14:41:

Hi,

I'd like to break lines in verbatim on certain characters like "/".

I can do it for normal texte, but not inside typing environment.


Do you need the verbatim environment or is the lines-environment 
sufficient.


\setuppapersize[A7]
\setbreakpoints[compound]

\starttext

\startlines[style=mono]
1. Thisisthetruth:waste-not-want-not
2. Thisisthetruth:waste/not/want/not
3. Thisisthetruth:waste+not+want+not
4. Thisisthetruth:waste(not(want(not))
5. Thisisthetruth(waste)not)want)not
\stoplines

\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://www.ntg.nl/mailman/listinfo/ntg-context

webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


--
Alexandre Leray
+32 487 947 030

Avez-vous pensé à (vous) offrir Médor ?
https://medor.coop/ideescadeau
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Wolfgang Schuster

Alex Leray schrieb am 17.08.2023 um 14:41:

Hi,

I'd like to break lines in verbatim on certain characters like "/".

I can do it for normal texte, but not inside typing environment.


Do you need the verbatim environment or is the lines-environment sufficient.

\setuppapersize[A7]
\setbreakpoints[compound]

\starttext

\startlines[style=mono]
1. Thisisthetruth:waste-not-want-not
2. Thisisthetruth:waste/not/want/not
3. Thisisthetruth:waste+not+want+not
4. Thisisthetruth:waste(not(want(not))
5. Thisisthetruth(waste)not)want)not
\stoplines

\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://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Alex Leray

Thanks,

Unfortunatly, it doesn't work (no difference in output with or without 
the `setups` parameter)


I'm not up-to-date, Should I update? Here is my version.

mtx-context | current version: 2023.03.10 12:15

Many thanks

Le 17/08/23 à 16:32, Hans Hagen a écrit :

On 8/17/2023 2:41 PM, Alex Leray wrote:

Hi,

I'd like to break lines in verbatim on certain characters like "/".

I can do it for normal texte, but not inside typing environment.

Is there a way to achieve this?


For now do this:

   \appendtoks
  \usesetupsparameter\typingparameter
   \to \everyinitializeverbatim

and then

   \startsetups typing:mine
   \setbreakpoints[compound]
   \stopsetups

with

   \starttyping[lines=yes,setups=typing:mine]

I need Wolfgang to check it for possible interferences.

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://www.ntg.nl/mailman/listinfo/ntg-context

webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


--
Alexandre Leray
+32 487 947 030

Avez-vous pensé à (vous) offrir Médor ?
https://medor.coop/ideescadeau
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Hans Hagen

On 8/17/2023 2:41 PM, Alex Leray wrote:

Hi,

I'd like to break lines in verbatim on certain characters like "/".

I can do it for normal texte, but not inside typing environment.

Is there a way to achieve this?


For now do this:

  \appendtoks
 \usesetupsparameter\typingparameter
  \to \everyinitializeverbatim

and then

  \startsetups typing:mine
  \setbreakpoints[compound]
  \stopsetups

with

  \starttyping[lines=yes,setups=typing:mine]

I need Wolfgang to check it for possible interferences.

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://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: new upload

2023-08-17 Thread Pablo Rodriguez
On 8/16/23 19:46, Hans Hagen via ntg-context wrote:
> Hi Pablo,
>
> I Uploaded an update so you can spend the evening wikifying units ...

Hi Hans,

many thanks for the update. As for yesterday, I’m afraid I was required
elsewhere...

> see lowlevel manual for the full list

Many thanks for adding that to the lowlevel manual.

Just in case this might help anyone, I always see what is new in latest
release by comparing the backup from previous latest with current latest
(in my case "meld context .backup-context/date_context/").

I think the best way is to copy from section 6 of the manual.

> \startTEXpage[offset=1ex]
>  x\vrule height 1fa depth 1fd\relax x % \ascender \descender
>  x\vrule height 1sh depth 1sd\relax x % \strutht \strutdp
>  x\vrule height 1fc depth 0pt\relax x % \capheight
> \stopTEXpage
>
> you can also run s-system-units.mkxl and get a unit map

I always forget how to run modules, so compiling this also works:

  \usemodule[system-units]

  \startTEXpage[offset=1ts]
\showunitsmap
  \stopTEXpage

Now I’m editing the dimensions entry in the wiki.

Many thanks for your work again,

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] breakpoints in verbatim text

2023-08-17 Thread Alex Leray

Hi,

I'd like to break lines in verbatim on certain characters like "/".

I can do it for normal texte, but not inside typing environment.

Is there a way to achieve this?

Below is my test code.

Thanks,

Alex

* * *

\setuppapersize[A7]
\setbreakpoints[compound]

\starttext
1. This is the truth: waste-not-want-not \par
2. This is the truth: waste/not/want/not \par
3. This is the truth: waste+not+want+not \par
4. This is the truth: waste(not(want(not)) \par
5. This is the truth: ((waste)not)want)not

\starttyping[lines=yes]
1. Thisisthetruth:waste-not-want-not \par
2. Thisisthetruth:waste/not/want/not \par
3. Thisisthetruth:waste+not+want+not \par
4. Thisisthetruth:waste(not(want(not)) \par
5. Thisisthetruth:((waste)not)want)not
\stoptyping
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Optical scaling in Latin Modern

2023-08-17 Thread Vincent Hennebert
On Tue, 2023-08-15 at 18:22 +0200, Hans Hagen wrote:

> On 8/15/2023 5:33 PM, Hamid,Idris wrote:
> 
> 
> > so [\s!designsize=\s!auto] means there is no explicit call to
lmroman8-regular etc.? Interesting..
> 
> 
> check the lfg file ...

On that note, there seems to be an inconsistency in the design size
selection:

\setupbodyfont[modern-designsize,12pt]
\starttext
This text is typeset in LMRoman12.\par
{\tfa This text should be typeset in LMRoman12 but LMRoman10
is being used instead.}
\stoptext

If I understand the font selection algorithm well, the font that will
be picked is the first font whose associated size is greater than or
equal to the requested size. If there is no such font the default is
used instead.

So, since in lm.lfg LMRoman12 is associated to 12pt, any text in a
higher size will be typeset using the default LMRoman10.

I understand that the default font should remain what it is since it
used when design sizes are disabled (using the typescript ‘modern’ and
not ‘modern-designsize’).

So, LMRoman12 should probably be associated to the biggest possible
value rather than 12pt (16383pt?).

Does that make sense?

Thanks,
Vincent


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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Hans Hagen via ntg-context

On 8/17/2023 3:50 AM, Andres Conrado Montoya wrote:

Hello List.

I've been trying to typeset a somewhat complex list of authors for several
articles and a book.
My proof of concept seems to work fine, however, I know I am doing weird
things that I think could probably be done in a better way. I'm using
datasets and a recursion, kind of hacky but I can't find a better way of
handling it. Specifically I would like to know:
1. Is there a way of getting the length of a filled dataset? (how many
entries it contains)
2. Is it OK to use \startuserdata \stopuserdata without its inlineuserdata?
Is there an alternative that does not require inlineuserdata?


Weird is relative. Just use what you like most. One could for instance 
use the publication mechanism but you need to set up a bit more (see 
manual for example of usa as database).


Now datasets. It is not hard to add a size query so I added that. Your 
data is missins commas so let's fix that first


\definedataset[autores]

\setdataset[autores]
[
nombre={Angie Natalia Farfán Acevedo},

cvlac={https://scienti.minciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0002125949},
orcid={https://orcid.org/0009-0007-0765-4241},

gscholar={https://scholar.google.com/citations?user=GpYTTU0J=es=1},
]

\setdataset[autores]
[
nombre={Ivon Andrea Rodríguez Román},

cvlac={https://scienti.minciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=027033},
orcid={https://orcid.org/0009-0001-1183-6829},

gscholar={https://scholar.google.com/citations?user=iz8SQNcJ=es},
]

\setdataset[autores]
[
  nombre={Angie Caterin Garzón González},

cvlac={https://scienti.minciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0002128501},
  orcid={https://orcid.org/0009-0009-0990-6902},

gscholar={https://scholar.google.com/citations?view_op=list_works=es=5WqcOeEJ},
]

\setdataset[autores]
[
  nombre={Heidy Paola Veira Tenorio},

cvlac={https://scienti.minciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0002127550},
  orcid={https://orcid.org/0009-0008-4076-7317},

gscholar={https://scholar.google.es/citations?view_op=new_profile=es=1},
]

\setdataset[autores]
[
nombre={Yerly Lorena Diaz Aldana},

cvlac={https://scienti.minciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0002127754},
orcid={https://orcid.org/0009-0008-1720-4057},

gscholar={https://scholar.google.com/citations?hl=es=0obyCwkJ_op=list_works=AOV7GLPWRTK-xooHNe0iQ3uubfcSbG__GY_Guy35FdaqDJA3OfLLtp01-E1kzjxUhltlsfj494MaoQFkk9U9hCFYSipoR8aX0Vu2E6sV},
]

There is no need to use userdata as intermediate:

% \startsetups[userdata:idautor]
%   \dontleavehmode
%   \imghref
% {\externalfigure[cvlac.pdf][logo]}
% {\datasetvariable{autores}{\recurselevel}{vclac}}
% \quad
%   \imghref
% {\externalfigure[orcid.pdf][logo]}
% {\datasetvariable{autores}{\recurselevel}{orcid}}
% \quad
%   \imghref
% {\externalfigure[gscholar.pdf][logo]}
% {\datasetvariable{autores}{\recurselevel}{nombre}}
% \quad
%   \datasetvariable{autores}{\recurselevel}{nombre}\par
% \stopsetups

Just loop over the set and call up the variables in the setup:

% \startdocument
%   \dorecurse{\datasetsize{autores}}{
% \setups[userdata:idautor]
%   }
% \stopdocument

However, i can provide a processor:

% \startsetups[userdata:idautor]
%   \dontleavehmode
%   \imghref
% {\externalfigure[cvlac.pdf][logo]}
% {\datasetvariable{autores}{\datasetindex}{vclac}}
% \quad
%   \imghref
% {\externalfigure[orcid.pdf][logo]}
% {\datasetvariable{autores}{\datasetindex}{orcid}}
% \quad
%   \imghref
% {\externalfigure[gscholar.pdf][logo]}
% {\datasetvariable{autores}{\datasetindex}{nombre}}
% \quad
%   \datasetvariable{autores}{\datasetindex}{nombre}\par
% \stopsetups

As we know what dataset we process:

\startsetups[userdata:idautor]
  \dontleavehmode
  \imghref
{\externalfigure[cvlac.pdf][logo]}
{\datasetentry{vclac}}
\quad
  \imghref
{\externalfigure[orcid.pdf][logo]}
{\datasetentry{orcid}}
\quad
  \imghref
{\externalfigure[gscholar.pdf][logo]}
{\datasetentry{nombre}}
\quad
  \datasetentry{nombre}
  \par
\stopsetups

We then end up with:

\startdocument
  \processdataset[autores][userdata:idautor]
\stopdocument

I'll mail you the patch. Copy it to the right place and remake the format.

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!