Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

A little help with localization in slideshow

27 views
Skip to first unread message

Alexandre Lymberopoulos

unread,
Jul 11, 2024, 6:37:20 PM7/11/24
to pretext...@googlegroups.com
Dear all,

I'm preparing some slides (never taught classes with slides before) for
a Linear Algebra course in Brazil and I have two questions:

1) Localization: I've put xml:lang="pt-BR" in the pretext tag, expecting
to have all the translations (theorem to teorem, definition to
definição etc.), but the only tranlated term is "Demontração", which is
"Proof" in english. I've helped with translations a few months ago, but
it was on the book format. Is there or should be special treatment for
the slideshow format? As always I'm here to help how I can.

2) In the definition environment there is that "()" (where the creator
name, if provided, goes on theorem environments). I would like to not
have it in definitions when creator isn't provided. How can I achieve
this?

You can run this project downloading it from

https://github.com/lymber/3458-slides

Best, Alexandre
--
===============================================================================
Alexandre Lymberopoulos - lym...@gmail.com
===============================================================================

Rob Beezer

unread,
Jul 11, 2024, 7:52:31 PM7/11/24
to pretext...@googlegroups.com
Dear Alexandre,

Thanks for the report. The folks who initially wrote "xsl/pretext-reveal.xsl"
redefined many essential templates. I'm not sure the exact reasons, but there
is some technical debt there in that file, and you are now paying the interest
on that debt.

You might experiment with the "type-name" templates (eliminate them? compare
with other stylesheets?) as a solution to yur immediate problem. Look at how
#definition is handled differently, than say #theorem, and perhaps that explains
the creator business.

Long-term, this stylesheet should be building on the HTML stylesheet with as few
modifications as possible.

Thanks for volunteering to help. Any discoveries of simple modifications might
be an improvement.

Rob

Alexandre Lymberopoulos

unread,
Jul 13, 2024, 10:01:26 AM7/13/24
to PreTeXt support
Dear Rob,

Thanks for your prompt reply.

I have found the definitions you mentioned in the pretext-revealjs.xsl file. For some unknown reason pretext stopped working on my home computer, so I have to check that on my office next Monday.

Since the environment for proof already appears in Portuguese on reveal format, is there any chance of success copying what refers to proof environment, as follow to the other environments (as theorems, definitions, propositions, etc.)?

  <xsl:if test="&PROOF-LIKE;">
  <div class="proof">
    <xsl:apply-templates select="&PROOF-LIKE;"/>
  </div>
</xsl:if>

Many things to test... It would be nice to have slideshow format working seamless "as much as possible" with the other formats.

Best, Alex

Rob Beezer

unread,
Jul 13, 2024, 12:12:28 PM7/13/24
to pretext...@googlegroups.com
Lots to say, but on fone now.

Try removing everything from that line, except the middle "apply-templates". I think you will lose a background, and maybe gain improvements.

I think the only purpose of this stanza is to provide div.proof which has some CSS inline in the head. I have ideas about better ways to accomplish this.

Rib

Rob Beezer

unread,
Jul 13, 2024, 6:29:18 PM7/13/24
to pretext...@googlegroups.com
I've made a post just now on pretext-dev addressing the bigger picture here.

Sean Fitzpatrick

unread,
Jul 14, 2024, 11:12:53 AM7/14/24
to pretext...@googlegroups.com

I think I promised to look at slides while in Ohio this week. I'll check out the dev thread


--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/MTAwMDAyNi5iZWV6ZXI.1720909754%40quikprotect.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages