Links in slides

14 views
Skip to first unread message

Sean Fitzpatrick

unread,
Jun 1, 2022, 3:12:13 PM6/1/22
to PreTeXt development
The overhaul of URLs to include the @visual component has been a nice addition in HTML and PDF.

But it is also present in slides, and I'm wondering if this might be less than ideal.
Right now if I make reveal.js slides in PreTeXt, and I include URLs, they come with footnotes.

Those decorations are somewhat distracting on a slide.
I can remove them with hand-editing of the HTML, but if there is a way to turn them off, that would be better.

PS: I'm guessing the CLI doesn't do slides yet?

Rob Beezer

unread,
Jun 2, 2022, 12:27:25 PM6/2/22
to prete...@googlegroups.com
Dear Sean,

(Off-duty yesterday.)

Aw, shoot! I think adding an "fn" element in the pre-processor, and then
letting conversions figure out the trick bits, is one of the better uses of the
pre-processor. Obviously, I had not thought too hard about slides.

I think I know how to suppress the addition of the footnotes for some (one!)
conversion. On my list for today, once caught up.

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-dev...@googlegroups.com
> <mailto:pretext-dev...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-dev/83b0d8e9-56c2-4af5-8198-10469c4db03an%40googlegroups.com
> <https://groups.google.com/d/msgid/pretext-dev/83b0d8e9-56c2-4af5-8198-10469c4db03an%40googlegroups.com?utm_medium=email&utm_source=footer>.

Sean Fitzpatrick

unread,
Jun 2, 2022, 12:30:07 PM6/2/22
to prete...@googlegroups.com
Thanks. I am busy discovering some of the other shortfalls in our slides
conversion.

E.g. it does not seem to listen to any attributes you place on an image.
The layout page here suggests we just need a css class:
https://revealjs.com/layout/

There is also a css attribute you can place on a div to automatically
size text, which could be useful.

Rob Beezer

unread,
Jun 2, 2022, 12:49:30 PM6/2/22
to prete...@googlegroups.com
I only work on slides when I am about to give a talk and want something or see
something really bad going on. And then pre-talk panic means maybe a corner or
two gets cut. And I'm trying to cut back on how many presentations I do, as a
way for reducing non-negotiable deadlines.

Plus, the Beamer conversion really needs attention. The LaTeX conversion is
high-maintenance, so the pecularities of Beamer add another layer onto that.

So I think slides need some interested maintainers/contributors. Likely it is a
good place to learn, since maybe there has not been as much uptake. And I'm
always ready to advise on larger design decisions, and help with XSL via pull
requests, etc.

Rob

Rob Beezer

unread,
Jun 2, 2022, 1:22:24 PM6/2/22
to prete...@googlegroups.com
Nothing is ever as straightforward as you would like.

1. I'm trying to discourage "url" use like

in *this paragraph here* we see

without explicitly providing a @visual version to go into a footnote. So some
deprecation warnings and schema work are also in play here.

2. @visual="" will turn off the footnote addition. Maybe not the best design
decision. A workaround, but we don't want a slide author to consistently have
to set this on every "url" (or do we?). (Maybe only documented on -announce, I
forget.)


On 6/2/22 09:30, Sean Fitzpatrick wrote:

Alex Jordan

unread,
Jun 2, 2022, 2:06:37 PM6/2/22
to prete...@googlegroups.com
Can you do something like have the reveal stylesheet nullify "fn" that
have @pi:url?
> To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-dev/a7ca4875-c790-e4b2-294f-e023a22b25cd%40ups.edu.

Rob Beezer

unread,
Jun 2, 2022, 2:25:12 PM6/2/22
to prete...@googlegroups.com
Good idea! I didn't think to match on that (internal) attribute.

Con: automatically generated "fn" from @visual become an impossibility. We
might need to soften the deprecation message and relax the schema (yes, pun
intended).

Pro: slides author could still manually put a "fn" into their source:

...</url><fn><c>[visual-url-here]</c></fn>

A validation-plus rule could replace the schema relaxation.

Sean Fitzpatrick

unread,
Jun 2, 2022, 3:24:24 PM6/2/22
to prete...@googlegroups.com
Adding in @visual="" works for me, thanks!

Rob Beezer

unread,
Jun 3, 2022, 1:27:59 PM6/3/22
to prete...@googlegroups.com
Perhaps those interested in slides want to pile in at Drop-In for some
discussion about footnotes? I'm of two minds right now.

Sean, Steven, Andrew, ...?

Sean Fitzpatrick

unread,
Jun 3, 2022, 2:09:58 PM6/3/22
to PreTeXt development
I've just finished my first of three flights en route to St. John's, Newfoundland, for the CMS Summer meeting. No drop-in for me today!

To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-dev/9257e623-7013-776b-104d-f6b751284b96%40ups.edu.

Rob Beezer

unread,
Jun 3, 2022, 2:22:34 PM6/3/22
to prete...@googlegroups.com
Canadia is a big place. OK, good luck with your *three* talks!

Perhaps next week?

On 6/3/22 11:09, Sean Fitzpatrick wrote:
> I've just finished my first of three flights en route to St. John's,
> Newfoundland, for the CMS Summer meeting. No drop-in for me today!
>
> On Fri., Jun. 3, 2022, 11:28 a.m. Rob Beezer, <bee...@ups.edu
> <mailto:bee...@ups.edu>> wrote:
>
> Perhaps those interested in slides want to pile in at Drop-In for some
> discussion about footnotes?  I'm of two minds right now.
>
> Sean, Steven, Andrew, ...?
>
> On 6/2/22 12:24, Sean Fitzpatrick wrote:
> > Adding in @visual="" works for me, thanks!
> >
> > On 2022-06-02 11:22 a.m., Rob Beezer wrote:
> >> Nothing is ever as straightforward as you would like.
> >>
> >> 1.  I'm trying to discourage "url" use like
> >>
> >> in *this paragraph here* we see
> >>
> >> without explicitly providing a @visual version to go into a footnote. So
> some
> >> deprecation warnings and schema work are also in play here.
> >>
> >> 2.  @visual=""  will turn off the footnote addition.  Maybe not the best
> >> design decision.  A workaround, but we don't want a slide author to
> >> consistently have to set this on every "url" (or do we?).  (Maybe only
> >> documented on -announce, I forget.)
> >>
> >>
> >> On 6/2/22 09:30, Sean Fitzpatrick wrote:
> >>> Thanks. I am busy discovering some of the other shortfalls in our slides
> >>> conversion.
> >>>
> >>> E.g. it does not seem to listen to any attributes you place on an image.
> >>> The layout page here suggests we just need a css class:
> >>> https://revealjs.com/layout/ <https://revealjs.com/layout/>
> <mailto:pretext-dev%2Bunsu...@googlegroups.com>
> >>>>> <mailto:pretext-dev...@googlegroups.com
> <mailto:pretext-dev%2Bunsu...@googlegroups.com>>.
> <https://groups.google.com/d/msgid/pretext-dev/83b0d8e9-56c2-4af5-8198-10469c4db03an%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/pretext-dev/83b0d8e9-56c2-4af5-8198-10469c4db03an%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> >>>>>
> >>>>
> >>>
> >>
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pretext-dev...@googlegroups.com
> <mailto:pretext-dev%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-dev/9257e623-7013-776b-104d-f6b751284b96%40ups.edu
> <https://groups.google.com/d/msgid/pretext-dev/9257e623-7013-776b-104d-f6b751284b96%40ups.edu>.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-dev...@googlegroups.com
> <mailto:pretext-dev...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-dev/CAH%2BNcPae2YseScuhBdawZL_Rdeh0dc3%2B9bJY5o2tyA8zn8zNYQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/pretext-dev/CAH%2BNcPae2YseScuhBdawZL_Rdeh0dc3%2B9bJY5o2tyA8zn8zNYQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

kcri...@gmail.com

unread,
Jun 4, 2022, 10:08:55 AM6/4/22
to PreTeXt development
On Thursday, June 2, 2022 at 12:30:07 PM UTC-4 dsfitz...@gmail.com wrote:
Thanks. I am busy discovering some of the other shortfalls in our slides
conversion.

E.g. it does not seem to listen to any attributes you place on an image.
The layout page here suggests we just need a css class:
https://revealjs.com/layout/

I have some hacks for this that I can share (after a conference) that might give people who are better familiar with XSL ideas a "correct" solution.  I needed that badly a year ago.  I also found a way to put background images in.

Rob Beezer

unread,
Jul 16, 2022, 11:01:16 PM7/16/22
to prete...@googlegroups.com
Now the automatic footnotes in "slideshow" are no longer appearing. And as a
by-product, @visual becomes ineffective.

For the record, just add one manually for your slideshow (as below), and set
@visual to an empty string to kill it for other formats.

Thanks to Alex for the key to this one.

Rob
Reply all
Reply to author
Forward
0 new messages