From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28269 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Hodgson Newsgroups: gmane.text.pandoc Subject: Institute support for HTML slide shows Date: Sun, 2 May 2021 08:08:28 -0700 (PDT) Message-ID: <876cca43-3d04-4338-841a-09295171454en@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2898_184795615.1619968108055" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19179"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCEYTH5K2IARB3MAXOCAMGQE4OXCIYA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun May 02 17:08:31 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f185.google.com ([209.85.167.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ldDhv-0004rk-8q for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 02 May 2021 17:08:31 +0200 Original-Received: by mail-oi1-f185.google.com with SMTP id s9-20020acadb090000b0290101bacefaa4sf2429886oig.2 for ; Sun, 02 May 2021 08:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=oefl2nBfK1WCnVSMpG9/IuSYGwz3uB3+5QO5JbhOXi4=; b=FVVUlXY3ryrf/mY2hZw3IOzfvuoAVMprIF/++j6L5GDPhZEpU1W2HxFsxCAGHkIO/i 5pcpyUSJqI2+T2icevKQJRW3Y6ss53AcR8glhAex+dI7E6o8n9n1snCjZae9TAzWtWxg pt0QlSMeOrp7A7fs/rdgDi55H7Pnt5Yf7qXhR3ZQLrM+fYS/HQUStZOU/uf7eWax3Pjn gA2yk7tY94L3ljETMAIXuAiv5vz1wsFma2VERut9YoBY5h/YGBIdLRivbO61Ht/1TEZA wdRUI1z7KxHev/swmd4f/aIu5C8IHLc3iyRRAdxLo4tN0/iRYYKCJiG50Nco5ydj2gsS nroA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=oefl2nBfK1WCnVSMpG9/IuSYGwz3uB3+5QO5JbhOXi4=; b=e9bF5vuv+t20IMspT3Ql0VL4tyvpuea4csfQYsvmuGKmgjYItTp5GbiMgHmgqsZG4B 8uHyYecIj8i/NBIb8G+baDdyQmVNcj4QogUdEUhLMqp7/AV1Rv7IT7BSVmOdlFHDc2aQ V7BxN60Dk4g0sPhhq925oNdOEUlB3zoIUMHSkda2nVhwl9WYih2YoJ1UDV4KZrUXz1cH c+FmmNbHOaC62vRtVxa4zhhSPgxgqIJ2PEP6yZK1sk8qqX2XgGk0wTRZMq2dwTdS+DyH n6b/mtFL2djggImtWdtAPyVz6O9tcgKERB4rxzmrpbIZGcl9fb6iYqoIEwCLlwZvnIdC gchA== 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: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=oefl2nBfK1WCnVSMpG9/IuSYGwz3uB3+5QO5JbhOXi4=; b=tXntnJ0/3kTp2H6m0wXeinoAsTKBboMoSxY2nxjxEf+r2cbdk6wJvkQLxEWUFX7qwK 1eNnSNm8wLAzItzpy2UP10ZXVavQr+GOb5E4SUVKm8BZKsjaLwA4bCSe46KgaqIb7vUL BSKxXMNJzoQHYZLaEBTlJ+PbFAuzadZ/YBZseEQCq4Ho48vN25D+oIWKGZgPlzpsEGny kPbo1fKIiu67YHrDC6BSFbCq9G0DMow1+kbbEXMpWNaa1hoS598xV962FyU2izGkg4LQ 0NKOoJGF8WO9JVCk7mIxNdAD4Iufxp+PeqU3koymRCCCDTl4ZSSeyy+la7oRDAwaJhsq OLIA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533adzpAO0Sahbxn1eCiOKxlpZ0Jmq9MI4l/5CuT7G+yhKHfxanc W4x/G9x6nXoXz84Q1NNice0= X-Google-Smtp-Source: ABdhPJz4OYfeDC5egYx8n8M5BZtkUTZO9tuInQA9ewdzkt5/2rjsfeKSsI1mcJRA7gGicaUJA3R/yw== X-Received: by 2002:a05:6830:55b:: with SMTP id l27mr11170983otb.260.1619968110279; Sun, 02 May 2021 08:08:30 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:760d:: with SMTP id k13ls3103724otl.9.gmail; Sun, 02 May 2021 08:08:28 -0700 (PDT) X-Received: by 2002:a9d:d05:: with SMTP id 5mr11756687oti.312.1619968108628; Sun, 02 May 2021 08:08:28 -0700 (PDT) X-Original-Sender: thomas.hodgson-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:28269 Archived-At: ------=_Part_2898_184795615.1619968108055 Content-Type: multipart/alternative; boundary="----=_Part_2899_790670361.1619968108055" ------=_Part_2899_790670361.1619968108055 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Currently, the Beamer template will insert 'institute' metadata into an=20 `\institute` command. I'm thinking that it would be easy enough, and=20 useful, to add this to the templates for HTML slide shows: revealjs,=20 dzslides, slidy, slideous, s5. Before I try a PR, I thought that I would ask for feedback on what I have= =20 in mind. In each case, my idea is to add something like the author field=20 after the author. For revealjs: ``` $for(institute)$=20

$institute$

$endfor$ ``` For dzslides: This would be the simplest change: ```
=20 $if(author)$$for(author)$$author$$sep$,=20 $endfor$$endif$ =C2=B7 $if(institute)$$for(institute)$$institute$$sep$, $endfor$$endif= $ =C2=B7=20 $if(date)$$date$$endif$
``` But, this will leave a blank between dots when there is no institute. I=20 wonder whether it would be better to add parentheses around the institutes,= =20 and remove the dots entirely? For slidy: ``` $if(institute)$=20

=20 $for(institute)$$institute$$sep$
$endfor$=20

$endif$ ``` For slideous: ```

=20 $for(institute)$$institute$$sep$
$endfor$

``` I wonder whether for both author and institute they should be wrapped in an= =20 $if(X)$, as with slidy? For s5: ``` $if(institute)$=20

$for(institute)$$institute$$sep$
$endfor$ $endif$ ``` Am I missing anything important about how these templates work? --=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/876cca43-3d04-4338-841a-09295171454en%40googlegroups.com. ------=_Part_2899_790670361.1619968108055 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Currently, the Beamer template will insert 'institute' metadata in= to an `\institute` command. I'm thinking that it would be easy enough, and = useful, to add this to the templates for HTML slide shows: revealjs, dzslid= es, slidy, slideous, s5.

Before I try a PR, I thou= ght that I would ask for feedback on what I have in mind. In each case, my = idea is to add something like the author field after the author.
<= div>
For revealjs:

```
$for(institute)$

   <p= class=3D"institute">= ;$institute$</p><= /span>

$endfor$
```

For dzsl= ides:

This would be the simplest change:
=

```
<footer>

   $if(a= uthor)$<span class=3D"author">$for(author)$$author$$sep$, $endfor$<= ;/span>$endif$ =C2=B7 $if(institute)$<span cl= ass=3D"institute">$for(institute)$$institute$$sep$, $endfor$</span>= ;$endif$ =C2=B7<= /span> $if(date)$<span class=3D"date">$date$</span&g= t;$endif$

</foote= r>
```

But, this will leave a blank b= etween dots when there is no institute. I wonder whether it would be better= to add parentheses around the institutes, and remove the dots entirely?

For slidy:

```<= span>
$if(institute)$

   <<= span>p
class=3D"institute">

$for(institute)$$i= nstitute$$sep$<br/>$endfor$

   </= p>

$endif$
```

For slideous:

```
=
<p class=3D= "institute">
$for(institute)$$i= nstitute$$sep$<br/>$endfor$
</p>
```
<= div>
I wonder whether for both author and institute they shou= ld be wrapped in an $if(X)$, as with slidy?

For s5= :

```
$if(institute)$

   <h= 3 class=3D"institute">$for(institute)$$institute$$sep$<br/>$endfor= $</h3>

<= span>$endif$
```

<= div>Am I missing anything important about how these templates work?

--
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/876cca43-3d04-4338-841a-09295171454en%40googlegroups.= com.
------=_Part_2899_790670361.1619968108055-- ------=_Part_2898_184795615.1619968108055--