ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jairo A. del Rio" <jairoadelrio6@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \dorecurse{}{} problem
Date: Mon, 21 Sep 2020 09:40:25 -0500	[thread overview]
Message-ID: <CAKyqqaZxu+tnwkhpyW7sTgGqKTpXnuqCNpJyCoGa5auD_-Ovjg@mail.gmail.com> (raw)
In-Reply-To: <22735961-50AA-4C98-98D1-3D26935D98ED@me.com>


[-- Attachment #1.1: Type: text/plain, Size: 14395 bytes --]

Hi,
Using ##1 instead of \recurselevel makes it work in this specific case if
you want a quick and dirty solution. It seems to be a thing with nesting,
as using #1 complains. I'd prefer the solutions as shown by Aditya:
constructing tables via Lua, etc.

Regards,
Jairo



El lun., 21 de sep. de 2020 a la(s) 09:16, Jeong Dal (haksan@me.com)
escribió:

> Hi,
>
> I tried to make a table using \dorecurse or \doloop as in the example.
> There is no error but \recurselevel is not increased, all are 0 in the
> first example and only two rows are created with the \recurselevel 0 and 2
> only in the second example.
>
> Does the tabulate cause the error?
> What is wrong in this MWE?
>
> Thank you for reading.
>
> Best regards,
>
> Dalyoung
>
> *****
> \startbuffer[AdjacencyList1]
> \starttabulate[|c|cw(2cm)|]
> \HL
> \dorecurse{8}
> {\NC \recurselevel \NC \NC\NR \HL}
> \stoptabulate
> \stopbuffer
>
> \startbuffer[AdjacencyList2]
> \starttabulate[|c|cw(2cm)|]
> \HL
> \doloop{
> \ifnum \recurselevel=7
> \exitloop
> \fi
> \NC \recurselevel \NC \NC\NR \HL
> }
> \stoptabulate
> \stopbuffer
>
> \starttext
> \getbuffer[AdjacencyList1]
>
> \getbuffer[AdjacencyList2]
> \stoptext
>
> 2020. 9. 21. 오후 10:50, ntg-context-request@ntg.nl 작성:
>
> Send ntg-context mailing list submissions to
> ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> ntg-context-request@ntg.nl
>
> You can reach the person managing the list at
> ntg-context-owner@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>   1. Parallel text support (Denis Maier)
>   2. Re: Parallel text support (Taco Hoekwater)
>   3. Re: ZapfDingbats Unicode differences MKIV vs LMTX
>      (Christoph Reller)
>   4. Re: ZapfDingbats Unicode differences MKIV vs LMTX (Hans Hagen)
>   5. Math fonts for Nimbus fonts (Otared Kavian)
>   6. Re: 2020 Meeting recordings? (Taco Hoekwater)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 21 Sep 2020 12:21:37 +0200
> From: Denis Maier <denis.maier.lists@mailbox.org>
> To: ntg-context@ntg.nl
> Subject: [NTG-context] Parallel text support
> Message-ID: <780fe43c-f2c3-6ea1-04f5-d4d5c22e7d4a@mailbox.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi,
>
> I'm trying to typeset a parallel text that should appear in columns. The
> sources are XML, and there I have to use tables for this. So, I thought
> the easiest way is to use extreme tables for this:
>
> =========================
> \starttext
>
> \dorecurse{3}{\input knuth}
>
> \startxtable[split=yes,frame=off]
> \startxrow
> \startxcell Text \stopxcell
> \startxcell Übersetzung \stopxcell
> \stopxrow
> \startxrow
> \startxcell \input ward \stopxcell
> \startxcell \input tufte \stopxcell
> \stopxrow
> \stopxtable
>
> \stoptext
> =========================
>
> However, as it turns out, split only seems to mean that the table is
> split between rows, individual rows stay on the same page.
>
> Is there a better approach? I've found the page-streams, but that seems
> to be too much...
>
> Best,
> Denis
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 21 Sep 2020 13:58:11 +0200
> From: Taco Hoekwater <taco@elvenkind.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] Parallel text support
> Message-ID: <A451CEA9-C30B-4980-AAAE-235CA940A56B@elvenkind.com>
> Content-Type: text/plain; charset=utf-8
>
>
>
> On 21 Sep 2020, at 12:21, Denis Maier <denis.maier.lists@mailbox.org>
> wrote:
>
>
> However, as it turns out, split only seems to mean that the table is split
> between rows, individual rows stay on the same page.
>
> Is there a better approach? I've found the page-streams, but that seems to
> be too much…
>
>
> \starttabulate
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 21 Sep 2020 14:55:02 +0200
> From: Christoph Reller <christoph.reller@gmail.com>
> To: Hans Hagen <j.hagen@xs4all.nl>
> Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] ZapfDingbats Unicode differences MKIV vs
> LMTX
> Message-ID:
> <CAO8LnPHJ5Ykp5HyFz2MXDM-+04AJ_uADarwunmPseDafmgOOng@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> On Sat, Sep 19, 2020 at 12:04 PM Hans Hagen <j.hagen@xs4all.nl> wrote:
>
> On 9/19/2020 6:18 AM, Christoph Reller wrote:
>
> On Fri, Sep 18, 2020 at 4:17 PM Hans Hagen <j.hagen@xs4all.nl
> <mailto:j.hagen@xs4all.nl>> wrote:
>
>    On 9/18/2020 11:23 AM, Christoph Reller wrote:
>
> \definefontsynonym[ZapfDingbats][file:ZapfDingbats][features=dingbats]
>
> \usemodule [fnt-10]
> \starttext
> (1) \getglyphdirect{ZapfDingbats}{61491}\crlf % MKIV log: char 
> (U+0F033) in font 'ZapfDingbats-4' with id 8: missing
> (2) \getglyphdirect{ZapfDingbats}{983059}     % LMTX log: char 󰀓
> (U+F0013) in font 'ZapfDingbats-4' with id 8: missing
> \ShowCompleteFont{name:ZapfDingbats}{14pt}{1}
> \stoptext
>
>    Dingbats are old school t1 without proper names so we can't use
>    unicodes. However, there is a goodie that should do that so that in
>    principle it should work with unicodes but there is some interference
>    going on (i'll look at that)
>
>    For nwo access by 'name' or 'index' (these are kind of stable for
>
> such
>
>    an old font):
>
>           n:a34  : \getglyph{ZapfDingbats}{\tochar{n:a34}}  \par
>           n:a35  : \getglyph{ZapfDingbats}{\tochar{n:a35}}  \par
>           i:48   : \getglyph{ZapfDingbats}{\tochar{i:48}}   \par
>           i:49   : \getglyph{ZapfDingbats}{\tochar{i:49}}   \par
>           n:a104 : \getglyph{ZapfDingbats}{\tochar{n:a104}} \par
>           n:a105 : \getglyph{ZapfDingbats}{\tochar{n:a105}} \par
>
> Thank you Hans!
> Access by glyph index with \tochar{i:19} works well for both MKIV and
> LMTX. Access by name with \tochar{n:a39} does not work in LMTX with log
> message: char ✓ (U+02713) in font 'ZapfDingbats-4' with id 8: missing.
> Also \ShowCompleteFont does not report any glyph names in LMTX.
>
> should be a bit better in yesterdays upload (i also changed the file
> name alias so that in pinciple unicode should work too)
>
>
>
> Dear Hans,
>
> Thank you for working on this. I have tried version 2020.09.20: Unicode
> input works for the "Private Use Area" Unicodes reported in
> \ShowCompleteFont. Such Unicodes are, however, not desirable. Moreover, in
> MKIV, a Unicode U+2713 (Check Mark) in the input did produce the
> ZapfDingbats check, e.g. as follows:
>
> \definefontsynonym[ZapfDingbats][file:ZapfDingbats][features=dingbats]
> \definefont[zapfdingbats][ZapfDingbats]
> \starttext
> {\zapfdingbats ✓}
> \definedfont[name:ZapfDingbats]✓
> \stoptext
>
> I still get no check mark in the output PDF and a log message "char ✓
> (U+02713) in font 'ZapfDingbats-4' with id 8: missing". Am I using the font
> wrongly?
> (This has not a high priority for me, because I have the unified access by
> glyph index.)
>
> Christoph
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200921/22867c74/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 4
> Date: Mon, 21 Sep 2020 15:27:49 +0200
> From: Hans Hagen <j.hagen@xs4all.nl>
> To: Christoph Reller <christoph.reller@gmail.com>
> Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] ZapfDingbats Unicode differences MKIV vs
> LMTX
> Message-ID: <ff4b944c-e94a-b3c1-a0bc-980f0e7bbd67@xs4all.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 9/21/2020 2:55 PM, Christoph Reller wrote:
>
> \definefontsynonym[ZapfDingbats][file:ZapfDingbats][features=dingbats]
>
>
> I don't know what the previous line does ... but it works ok here when
> you remove it.
>
> \definefont[zapfdingbats][ZapfDingbats]
> \starttext
> {\zapfdingbats ✓}
> \definedfont[name:ZapfDingbats]✓
> \stoptext
>
> I still get no check mark in the output PDF and a log message "char ✓
> (U+02713) in font 'ZapfDingbats-4' with id 8: missing". Am I using the
> font wrongly?
> (This has not a high priority for me, because I have the unified access
> by glyph index.)
>
> Christoph
>
>
>
> --
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 21 Sep 2020 15:30:46 +0200
> From: Otared Kavian <otared@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: [NTG-context] Math fonts for Nimbus fonts
> Message-ID: <E9C147F4-8910-46F2-B80E-4874A628FB57@gmail.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> I wish to use the Nimbus fonts, but since I didn't know which Math fonts
> is best adapted to this family, I tried several fonts such as Stix Math,
> TeX Gyre Math, and so on, but doing this the math-italic does not appear in
> these fonts: does this mean that I have to set explicitely math-italic in
> definefontfamily?
>
> Also what is the best math font adapted for Nimbus?
>
> Below is my definition of a fontfamily for Nimbus fonts.
>
> Thanks in advance for any help: Otared K
>
> %% begin definefontfamily-nimbus.tex
> \definefontfamily [mainface] [rm] [Nimbus Roman No9 L]
> \definefontfamily [mainface] [ss] [Nimbus Sans L] [rscale=0.85]
> \definefontfamily [mainface] [tt] [Nimbus Mono] [features=none,rscale=0.95]
> \definefontfamily [mainface] [mm] [STIX Math]
>
> %\definefontfamily [mainface] [mm] [Asana Math]
> %\definefontfamily [mainface] [mm] [Lucida Bright Math OT]
> %\definefontfamily [mainface] [mm] [TeX Gyre Termes Math]
> %\definefontfamily [mainface] [mm] [XITSMath]
>
> \setupmathematics[integral=nolimits,lcgreek=normal,default=normal]
>
>
> \setupbodyfont[mainface]
>
> \starttext
>
> {\rm\tf Regular \it Italic \bf Bold \bi BoldItalic}
>
> {\ss\tf Regular \it Italic \bf Bold \bi BoldItalic}
>
> {\tt\tf Regular \it Italic \bf Bold \bi BoldItalic}
>
> And here are a few math formulas $\alpha^2 + \beta^2 + \gamma^2 = x^2 +
> y^2 + t^2$.
> \startformula
> \int_{0}^{2\pi} \sin(x)dx = 0,
> \qquad {\rm e}^{{\rm i}\pi} + 1 = 0,
> \qquad \sum_{n=1}^{\infty}{1 \over n^2} = {\pi^2 \over 6}.
> \stopformula
>
> \stoptext
> %% end definefontfamily-nimbus.tex
>
> ------------------------------
>
> Message: 6
> Date: Mon, 21 Sep 2020 15:50:12 +0200
> From: Taco Hoekwater <taco@elvenkind.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] 2020 Meeting recordings?
> Message-ID: <B77A12A2-53FA-4DAE-BADF-25F88683DFE3@elvenkind.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> Most of the available slides are now integrated with the abstracts page:
>
> https://meeting.contextgarden.net/2020/abstracts.shtml
>
> Best wishes,
> Taco
>
> On 17 Sep 2020, at 19:03, Marcus Vinicius Mesquita <
> marcusvinicius.mesquita@gmail.com> wrote:
>
> So do I.
>
> Marcus Vinicius
>
> On Thu, Sep 17, 2020, 13:07 Denis Maier <denis.maier.lists@mailbox.org>
> wrote:
> Hi,
>
> unfortunately, I wasn't able to come to this years meeting. Have the
> presentations and demos been recorded? I would very much like to watch
> some of those.
>
> Best,
> Denis
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>
>
> Taco Hoekwater
> Elvenkind BV
>
>
>
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>
>
> ------------------------------
>
> End of ntg-context Digest, Vol 195, Issue 56
> ********************************************
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 23313 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

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

  parent reply	other threads:[~2020-09-21 14:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1115.1600696248.1164.ntg-context@ntg.nl>
2020-09-21 14:07 ` Jeong Dal
2020-09-21 14:35   ` Aditya Mahajan
2020-09-21 14:40     ` Wolfgang Schuster
2020-09-21 14:42       ` Aditya Mahajan
2020-09-21 17:24         ` Otared Kavian
2020-09-21 14:40   ` Jairo A. del Rio [this message]
2020-09-21 14:40   ` Otared Kavian
     [not found] <mailman.1122.1600699352.1164.ntg-context@ntg.nl>
2020-09-21 18:54 ` Jeong Dal
2020-09-21 19:12   ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKyqqaZxu+tnwkhpyW7sTgGqKTpXnuqCNpJyCoGa5auD_-Ovjg@mail.gmail.com \
    --to=jairoadelrio6@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).