[NTG-context] Experiments with \doloopoverlist
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? %% MWE: \setupinteraction[state=start] \define[2]\imghref{\bgroup\goto{#1}[url(#2)]\egroup} \defineexternalfigure[logo][height=1em] \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 } ] \defineuserdataalternative[idautor][renderingsetup=userdata:idautor] \startsetups[userdata:idautor] \dontleavehmode \imghref {\externalfigure[cvlac.pdf][logo]} {\userdataparameter{cvlac}} \quad \imghref {\externalfigure[orcid.pdf][logo]} {\userdataparameter{orcid}} \quad \imghref {\externalfigure[gscholar.pdf][logo]} {\userdataparameter{gscholar}} \quad \userdataparameter{author}\par \stopsetups \defineuserdata[idautor][alternative=idautor] \startdocument % I have to manually set the length of the dataset in the loop and use recurselevel... % Maybe there is a way to use the length of the "autores" dataset? and use indexes? \dorecurse{5}{ \startuserdata[idautor][ author={\datasetvariable{autores}{\recurselevel}{nombre}}, cvlac={\datasetvariable{autores}{\recurselevel}{cvlac}}, orcid={\datasetvariable{autores}{\recurselevel}{orcid}}, gscholar={\datasetvariable{autores}{\recurselevel}{gscholar}}, ]\stopuserdata % My "inlineuserdata" is empty... no idea if this is OK... } \stopdocument %% END MWE Thank you in advance. -- 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: startitemize[a, text] space in LMTX
On 8/16/2023 9:27 PM, Xavier B. wrote: OK. Thanks but it's about luatex [https://tracker.luatex.org/changelog_page.php]. Does we use luametatex? lmtx uses luametatex ... luatex dev is basically frozen (has to be stable because used by several macro packages now) 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: startitemize[a, text] space in LMTX
OK. Thanks but it's about luatex [https://tracker.luatex.org/changelog_page.php]. Does we use luametatex? On Wed, 16 Aug 2023 21:07:47 +0200 Wolfgang Schuster ha escrit: > Xavier B. schrieb am 16.08.2023 um 20:38: > > Thanks. > > Anyway do ypu have public triaging bugs system for LMTX and ConTeXt? > > There is https://tracker.luatex.org/my_view_page.php but the normal way > is to report bugs on the mailing list. > > 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: startitemize[a, text] space in LMTX
Xavier B. schrieb am 16.08.2023 um 20:38: Thanks. Anyway do ypu have public triaging bugs system for LMTX and ConTeXt? There is https://tracker.luatex.org/my_view_page.php but the normal way is to report bugs on the mailing list. 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: startitemize[a, text] space in LMTX
Thanks. Anyway do ypu have public triaging bugs system for LMTX and ConTeXt? On Wed, 16 Aug 2023 19:58:28 +0200 Wolfgang Schuster ha escrit: > Xavier B. schrieb am 16.08.2023 um 15:20: > > Hi, > > > > Is it possible that in LMTX there is almost no space between "(a)" and item? > > > > \startitemize[a, text] \item This is an item \stopitemize > > Fixed in today's context update. > > 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] 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/lowlevel-registers.pdf sent 176,004 bytes received 39,040,032 bytes 3,734,860.57 bytes/sec total size is 562,444,046 speedup is 14.34 Running archiver: New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-08-16.20 233751226 /var/www/aanhet.net/context//htdocs/archives/context-2023-08-16.20/latest 126745317 /var/www/aanhet.net/context//htdocs/archives/context-2023-08-16.20/current 360500639 /var/www/aanhet.net/context//htdocs/archives/context-2023-08-16.20 360500639 total ___ 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: startitemize[a, text] space in LMTX
Xavier B. schrieb am 16.08.2023 um 15:20: Hi, Is it possible that in LMTX there is almost no space between "(a)" and item? \startitemize[a, text] \item This is an item \stopitemize Fixed in today's context update. 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: An error which is not in .log file
On Wed, 16 Aug 2023 17:02:53 +0200 Wolfgang Schuster ha escrit: > Xavier B. schrieb am 16.08.2023 um 09:15: > > Mmmm thanks. > > How can I pass so [scale=0.9] to starttikzpicture? > > It's a bug and should be fixed in the next context release. > > Wolfgang > Do you have bug reporting system? ___ 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
Hi Pablo, I Uploaded an update so you can spend the evening wikifying units ... see lowlevel manual for the full list \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 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 align option
On 8/16/2023 11:54 AM, Hraban Ramm wrote: Hi, I don’t really understand this option. With paragraphs, it’s like flushright, but the last line is right-indented. Within typing, in your eaxmple it’s flushright except the first line; with my code examples with long lines it looks just flushleft without line breaking? \setuptyping[align=hangright] - 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: An error which is not in .log file
Xavier B. schrieb am 16.08.2023 um 09:15: Mmmm thanks. How can I pass so [scale=0.9] to starttikzpicture? It's a bug and should be fixed in the next context release. 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] Vebatim text: Preserve empty lines
Hello, is there a way to preserve empty lines in typing env? By default it is removing them. Thanks * * * \definetyping[custom] \setuptyping[custom][ space=normal, lines=yes, tab=4, ] \starttext \startcustom Foo Bar Baz \stopcustom \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] startitemize[a, text] space in LMTX
Hi, Is it possible that in LMTX there is almost no space between "(a)" and item? \startitemize[a, text] \item This is an item \stopitemize Thanks in advance, Xavier ___ 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: disable header for endnotes
On 8/16/2023 5:02 AM, jbf wrote: I wonder if someone might be able to help me with this. I have a book in three parts and the author wants endnotes. No problem. I can produce those with \setupfootnotes[location=text] and then \placefootnotes. However, I would like the header to read 'Notes' on the recto page (or indeed be blank with no header), but I am currently getting the header that belongs to the main setup for headers, which happens to be: \startsetups[middle] \hfill \getmarking[section] \hfill \stopsetups \setupheadertexts [{\hfill\documentvariable{metadata:title}\hfill}][] [\setups{middle}][] How do I deal with the \placefootnotes command so that it ignores this and either gives me no header, or perhaps a new header with 'Notes' in place of [section] (which is achieved in centered position with setups[middle])? Julian I use the following for a notes chapter at the end of a book. It produces headings that indicate the pages for which the notes apply. Perhaps you can adapt it to your needs: In the environment file: \definemarking [notePage] \startsetups noteHeadingsText {\em Notes for page \doifelse{\fetchmark[notePage][top]}{\fetchmark[notePage][bottom]} { \getmarking[notePage][top]} {s \getmarking[notePage][top]–\getmarking[notePage][bottom]}} \stopsetups \startsetups noteHeadings:on \setupheadertexts[][\setups{noteHeadingsText}] [\setups{noteHeadingsText}][] \stopsetups In the text: \startbackmatter \startchapter[reference={cha:notes}, list={Notes}, % toc bookmark={Notes}, % pdf bookmark title={Notes}] % chapter head [Lettrine=no] \setups{noteHeadings:on} \placenotes[endnote] \stopchapter -- Rik ___ 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: An error which is not in .log file
On Wed, 16 Aug 2023, Wolfgang Schuster wrote: > 3. \starttikzpicure doesn't allow arguments which results in font error > messages (char ... missing). This is an error in the ConTeXt version of the > \starttikzpicture command and should be fixed. Looking at m-tikz.mkxl, \starttikzpicture should allow optional arguments. The following works correctly for me with ver 2023.07.18: \usemodule[tikz] \usetikzlibrary[patterns] \starttext \starttikzpicture[scale=0.75] % recipient \draw (0,0) -- (0,10) -- (2,10) -- (2,0) -- cycle; % aigua \filldraw[pattern=north east lines, pattern color=orange] (0,0) -- (0,4) -- (2,4) -- (2,0) -- cycle; \draw (1,2) node[fill=white] {aigua}; % oli \filldraw[pattern=dots, pattern color=blue] (0,4) -- (0,6.5) -- (2,6.5) -- (2,4) -- cycle; \draw (1,5.25) node[fill=white] {oli}; % ròtuls \draw (2,2) node[anchor=west] {$2/5$}; \draw (2,5.25) node[anchor=west] {$1/4$}; \stoptikzpicture \stoptext Aditya___ 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 align option
Hi, I don’t really understand this option. With paragraphs, it’s like flushright, but the last line is right-indented. Within typing, in your eaxmple it’s flushright except the first line; with my code examples with long lines it looks just flushleft without line breaking? Would you please explain? Hraban Am 15.08.23 um 22:31 schrieb Hans Hagen via ntg-context: Hi, Especially for long verbatim lines we now can do this: \starttext \setupalign[hangright] \starttyping test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test \stoptyping \stoptext 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 ___ ___ 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] disable header for endnotes
I wonder if someone might be able to help me with this. I have a book in three parts and the author wants endnotes. No problem. I can produce those with \setupfootnotes[location=text] and then \placefootnotes. However, I would like the header to read 'Notes' on the recto page (or indeed be blank with no header), but I am currently getting the header that belongs to the main setup for headers, which happens to be: \startsetups[middle] \hfill \getmarking[section] \hfill \stopsetups \setupheadertexts [{\hfill\documentvariable{metadata:title}\hfill}][] [\setups{middle}][] How do I deal with the \placefootnotes command so that it ignores this and either gives me no header, or perhaps a new header with 'Notes' in place of [section] (which is achieved in centered position with setups[middle])? Julian ___ 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] Cron /var/www/aanhet.net/context/bin/cron/context-mirror
rsync: getaddrinfo: rsync.pragma-ade.nl 873: Temporary failure in name resolution rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.2.7] ___ 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
On 8/15/2023 10:54 PM, Pablo Rodriguez wrote: On 8/15/23 22:16, Hans Hagen via ntg-context wrote: On 8/15/2023 9:27 PM, Pablo Rodriguez wrote: [...] I wonder whether we could have (current) frame width and height as unit. we can have fw fh fo lw (width height offset linewidth) but keep in mind that only properties that are set up have a meaningful value (so with autoheight it is zero) So 1fw is equal to 2fo + 1lw, isn’t it? (I mean, frame width is left and right offset [given that all frames have the same length] plus line width.) fw is more like width-2offset-2linewidth Sorry, this is to be sure I’m getting this right. we can also have (available) lh lineheight sh strutheight sd strutdepth and maybe (pick up from font or have extra font dimens) fa font ascender fd font descender fc font capheight and the css (easy) ch width of zero and then a kind of periodic table of units 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: An error which is not in .log file
Mmmm thanks. How can I pass so [scale=0.9] to starttikzpicture? On Wed, 16 Aug 2023 06:27:34 +0200 Wolfgang Schuster ha escrit: > Xavier B. schrieb am 16.08.2023 um 00:12: > > Thanks. > > > > After some work on it, following your advice, I reduce the compilation > > problem to several "wrong" files. > > One was trivialy fixed because I did not close one environment, but other > > don't. Please help: > > 1. You need \starttext and \stoptext at the begin and end of your > example file. > > 2. You forgot to close the following environment: > \startexercici[reference=exercici:problemes-de-fraccions-13, > title={tasca per fer junts}] > > 3. \starttikzpicure doesn't allow arguments which results in font error > messages (char ... missing). This is an error in the ConTeXt version of > the \starttikzpicture command and should be fixed. > > 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 ___