Interactives QR Code

20 views
Skip to first unread message

Samuel Lubliner

unread,
Oct 17, 2024, 5:45:55 PM10/17/24
to PreTeXt support
Hello,

I have the following interact from my web build:
interact-web.png

```
<figure xml:id="ccc-map">
            <caption>City Colleges of Chicago</caption>
              width="90%" height="100%"
              preview="ccc_map.png"/>
</figure>
```

Here is the pdf version:
interact-pdf.png

Scanning the QR code generated by PreTeXt results in a google search for `ccc-map-2.html`. I would rather the QR code navigate to https://sagemathoer-ccc.github.io/sage-discrete-math/sec-graphs-in-action.html

My question: How can I customize the QR code? Or, how can I correct my source so PreTeXt generates the desired QR code?

In the docs I can see that the QR code should point to a standalone HTML page that contains the interactive and this does not seem to be the case. When I look to section 4.22 Interactives for more details, I see "TODO: until then examine copious examples in the sample article". I looked at this sample but I cannot find more information on how to generate the correct QR code.

Here is the link to my file in the feature branch for reference:


Thank you.

Mitch Keller

unread,
Oct 17, 2024, 5:53:34 PM10/17/24
to pretext...@googlegroups.com
I believe you need to set the baseurl in your publication file Subsection 44.4.2: HTML Base URL

On Oct 17, 2024, at 4:45 PM, Samuel Lubliner <samlu...@gmail.com> wrote:

Hello,

I have the following interact from my web build:
<interact-web.png>

```
<figure xml:id="ccc-map">
            <caption>City Colleges of Chicago</caption>
              width="90%" height="100%"
              preview="ccc_map.png"/>
</figure>
```

Here is the pdf version:
<interact-pdf.png>

Scanning the QR code generated by PreTeXt results in a google search for `ccc-map-2.html`. I would rather the QR code navigate to https://sagemathoer-ccc.github.io/sage-discrete-math/sec-graphs-in-action.html

My question: How can I customize the QR code? Or, how can I correct my source so PreTeXt generates the desired QR code?

In the docs I can see that the QR code should point to a standalone HTML page that contains the interactive and this does not seem to be the case. When I look to section 4.22 Interactives for more details, I see "TODO: until then examine copious examples in the sample article". I looked at this sample but I cannot find more information on how to generate the correct QR code.

Here is the link to my file in the feature branch for reference:


Thank you.

--
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/2e48fca6-13b5-4459-bf1b-32c49d2831cen%40googlegroups.com.
<interact-pdf.png><interact-web.png>


Samuel Lubliner

unread,
Oct 17, 2024, 6:13:42 PM10/17/24
to pretext...@googlegroups.com
Yes, you are correct. Thank you!

You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pretext-support/EmOpYfLivMA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/2CAA9D01-9C78-4445-9035-33643D45A122%40rellek.net.
Reply all
Reply to author
Forward
0 new messages