From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25811 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: christophe dervieux Newsgroups: gmane.text.pandoc Subject: Re: different Last separator in for loop template Date: Mon, 10 Aug 2020 06:03:46 -0700 (PDT) Message-ID: References: <804a66e2-6e85-4adc-a531-a6dcd7db13d5n@googlegroups.com> <87imdqishc.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_598_378995102.1597064626722" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14107"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDDJDKUZ7QORBM4LYX4QKGQEXXNATJI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 10 15:03:52 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f191.google.com ([209.85.167.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k57Sx-0003Wx-6w for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 10 Aug 2020 15:03:51 +0200 Original-Received: by mail-oi1-f191.google.com with SMTP id t124sf5478621oie.13 for ; Mon, 10 Aug 2020 06:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=DGw8WyCkp8X95eKBL68oXWNBIRCaEln5pmZrwL/Lxu0=; b=fAUw+CANKJlFIc7uqhVXC4aBWJ4fnfyQ+syb/qupvEVFjB2ChDBOh7GAkcQEiMMy1W 8p82NSsPMLU2vg2USCm0PWwk5GWKCUgU4vBmI9Te6dyq5rBZ+M27i3CMRrfTUBd4PpLa I9JP8hJvGDnH2V4O7g/XoyrXVXsYxYNB88myWfSpOjS4yUM3t692qJGAyLc+o4XpJNbq 0og1Jz560Bx+VjSunekPAnbZZNnvMY5ETjEPKsZQywmzDob7ThSkz5+hqMhneNBcEurg vi6Jym5Yezb6sd53r/HHgpwt4494ESnVyuJhO25SCCWhpJEju0UdZ9Wb08gCgyt830ju U34g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=DGw8WyCkp8X95eKBL68oXWNBIRCaEln5pmZrwL/Lxu0=; b=a3OnAzDzHYPsYmySG2cJRFS5WKulFFmw//mw1iJNVmvZ64rBHpIivaUX9Ab3zky4IJ 8cCutlrXXzwOE3NxUfonV/b682/fPeDsL8zVwwOWvJdePamLV+mGgeiX1aWFItZeLyyP vb0dcrbC7QVk7y2UNMXH/NRATMSVt5Z99zwhED7uMAjY3WBb2Wvb2DU4OTI0nIYBvrcV dcqUO+ZPPVI7A9NJl07D9uRwjxLKvB8qSSP56ciJ74foM84ZvJ3qrf1c6fnz6+bU7XO6 ygB3S0Sfm5pwENOvKHfqMHPmVGZVvDkWHuSHzBUxCdR4qUX9zHVtAolF0QJGEqXTZkAD F8LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=DGw8WyCkp8X95eKBL68oXWNBIRCaEln5pmZrwL/Lxu0=; b=Sye+RKrpmQnnm1mQHnA4TzQLtxELeD5GG3/Kilq8AgKzm19K/4J8wB41aXSz0UbxAa Vbm92Bvc3Kp9prJ/hA6r5yHnp8a68QOuRcXbE5q1H4g03+LmfF6rDBJmnyuj2MngQRK6 PdCJ2mOn48uOPqcLnJTrogQr7a8MypuIlrcrpYfwuLXk5aVTYoC+E5G2uVWshUAHKt/X GsdGW/1ey2K0pD1GU0MKZLgtwZUr34Z8f+GF7+3j96JoT/CSm7vwISVNUuSo1jBgtKL9 zsY7cWgboI037I0JkucxEmqIGuBMeRrqlFU065n2ym6+cLcNWGULMVQkPUMPl0dgNbgW V3fQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531R/I23fCyazXRE7VbFQJbF30BdtkifCzFQXqFWqgvf0hURxlpl 5DOzmbKWbOlSQ7oGLROayIQ= X-Google-Smtp-Source: ABdhPJzkTHgR3Sk5L1OMQADE69l8hbfAVa1/vMIgO5je1OOlfgCmERkUl0Iamb/A6gm6MXzzJ3pu2Q== X-Received: by 2002:a9d:a30:: with SMTP id 45mr605073otg.351.1597064629846; Mon, 10 Aug 2020 06:03:49 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:7ad9:: with SMTP id m25ls3673205otn.11.gmail; Mon, 10 Aug 2020 06:03:47 -0700 (PDT) X-Received: by 2002:a05:6830:d1:: with SMTP id x17mr640039oto.117.1597064627404; Mon, 10 Aug 2020 06:03:47 -0700 (PDT) In-Reply-To: <87imdqishc.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Original-Sender: christophe.dervieux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:25811 Archived-At: ------=_Part_598_378995102.1597064626722 Content-Type: multipart/alternative; boundary="----=_Part_599_1131358822.1597064626722" ------=_Part_599_1131358822.1597064626722 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Oh thank you! I did not know those one. According to release note, this=20 would require pandoc 2.10+ I am still lock to 2.7.3 in the editor though...=20 Le lundi 10 ao=C3=BBt 2020 =C3=A0 14:40:56 UTC+2, Albert Krewinkel a =C3=A9= crit : > It is possible to do this using the `allbutlast` and `last` filters. > > E.g. > > \author{ by $for(author/allbutlast$$author.name$$sep$, $endfor$ > and $author/last$ } > > The only downside is that it will produce weird results if there is only > a single author. > > christophe dervieux writes: > > > Hi all,=20 > > > > In pandoc template, I often use for loop and separator to define a list= =20 > of=20 > > author > > > > Example with latex template :=20 > > > > \author{by $for(author)$$author.name$$sep$, $endfor$} > > > > Ideally I would like to have last author separated from the preivous on= e=20 > by=20 > > "and" not ", " > > > > \author{author1 and author2} > > > > Is this possible in some way to have a different separator at the end o= r=20 > is=20 > > it a feature request for https://github.com/jgm/doctemplates ?=20 > > > > Thank you !=20 > > > > Christophe > > > --=20 > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/cd046627-4b31-491a-aec5-bf7973514e1en%40googlegroups.com. ------=_Part_599_1131358822.1597064626722 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Oh thank you! I did not know those one. According to release note, this wou= ld require pandoc 2.10+
I am still lock to 2.7.3 in the editor though..= . 

Le lundi 10 ao=C3=BBt 2020 =C3=A0 14:40:56 UTC+2, Albert Krewin= kel a =C3=A9crit=C2=A0:
It is possible to do this using the `allbutlast` and `last` fi= lters.

E.g.

\author{ by $for(author/allbutlast$$author.name<= /a>$$sep$, $endfor$
and $author/last$ }

The only downside is that it will produce weird results if there is onl= y
a single author.

christophe dervieux writes:

> Hi all,=20
>
> In pandoc template, I often use for loop and separator to define a= list of=20
> author
>
> Example with latex template :=20
>
> \author{by $for(author)$$
author.name$$sep$,= $endfor$}
>
> Ideally I would like to have last author separated from the preivo= us one by=20
> "and" not ", "
>
> \author{author1 and author2}
>
> Is this possible in some way to have a different separator at the = end or is=20
> it a feature request for https://github.com/jgm/doctemplates ?=20
>
> Thank you !=20
>
> Christophe


--=20
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/cd046627-4b31-491a-aec5-bf7973514e1en%40googlegroups.= com.
------=_Part_599_1131358822.1597064626722-- ------=_Part_598_378995102.1597064626722--