Can I use the LaTeX package igo for images?

93 views
Skip to first unread message

Jim Seibert

unread,
Jan 25, 2024, 5:36:28 PM1/25/24
to PreTeXt support
I've been using github and PreTeXt for almost a whole hour, lifetime total, so forgive me if this is a rookie mistake and a dumb question.

I'm hoping to write an open-source book about Go (the Asian board game).  

The igo package in LaTeX handles images of go boards beautifully.

\documentclass[11pt]{article}


\usepackage{igo}


\begin{document}


\white{b4,c4,d4,e4,f4,g3,g2,c3}

\black{b3,b2,c2,d3,e3,f3,f2}

\shortstack{\showgoban\\White to kill}


\end{document}


I tried to make something similar work in PreTeXt as follows:

I added igo in the latex-image-preamble of the docinfo file.

Then in my intro-chapter I have:

<figure>
    <caption>Life and Death Example</caption>
    <image xml:id="example-go-board" width="100%">
        <description>Example Go board.</description>
        <latex-image>
          \white{b4,c4,d4,e4,f4,g3,g2,c3}
          \black{b3,b2,c2,d3,e3,f3,f2}
          \shortstack{\showgoban\\White to kill}
        </latex-image>
    </image>
  </figure>

Building web never finishes. Seems it can't find igo.sty and hangs.

Thanks for any help, even if it's just to say "You can't do that!"

Jim

Rob Beezer

unread,
Jan 25, 2024, 5:51:23 PM1/25/24
to pretext...@googlegroups.com
Dear Jim,

I think yu are on the right track. But also in uncharted waters with igo.sty.

The trick will be to "generate assets" and have our Python code make nice SVG
images of each board by invoking LaTeX repeatedly for each board, for use then
with your HTML output.

Rob
> --
> 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
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/4ec2fbb3-9491-4a39-9e5f-3e4e18bda520n%40googlegroups.com <https://groups.google.com/d/msgid/pretext-support/4ec2fbb3-9491-4a39-9e5f-3e4e18bda520n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Alex Jordan

unread,
Jan 25, 2024, 5:52:40 PM1/25/24
to pretext...@googlegroups.com
I tried to build your latex example, and I see that the igo package is not installed on my system.

PreTeXt will use the instance of LaTeX identified in:
pretext/pretext.cfg
if you are using PreTeXt directly. If you are using the CLI, your project.ptx file has an executables element that does the same thing. Whatever "latex" is identified there will be used, and that installation of latex will need the igo package.

After that is installed, I see no reason why it would not work.

--
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/4ec2fbb3-9491-4a39-9e5f-3e4e18bda520n%40googlegroups.com.

Jim Seibert

unread,
Jan 25, 2024, 6:36:24 PM1/25/24
to pretext...@googlegroups.com
Thank you both!  This is promising!

So far I've used the version of PreTeXt built into Github in the cloud.  Sounds like running it locally, where my latex installation has igo installed, might do the trick.

I'll continue to muck around and learn!

Thanks again,

Jim

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/DWsMWZLxVXM/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/CA%2BR-jrfhVz5uCsZVGx0EyrEWQTp6Znd%2BP3YTDzpb4hbCcbt7Yg%40mail.gmail.com.

Alex Jordan

unread,
Jan 26, 2024, 12:53:18 AM1/26/24
to pretext...@googlegroups.com
I was thinking about this later today, and I realized the "stall" issue was about LaTeX prompting in the dark for where it could find the missing package. I opened a PR to address this:

Rob Beezer

unread,
Jan 26, 2024, 2:43:35 PM1/26/24
to pretext...@googlegroups.com
Alex's fix is now merged, and with no stall, a concluding Python error message
is raised with a fairly good message about what went wrong and what to do about
it. Thanks, Alex!

Rob
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/4ec2fbb3-9491-4a39-9e5f-3e4e18bda520n%40googlegroups.com <https://groups.google.com/d/msgid/pretext-support/4ec2fbb3-9491-4a39-9e5f-3e4e18bda520n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> 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/DWsMWZLxVXM/unsubscribe <https://groups.google.com/d/topic/pretext-support/DWsMWZLxVXM/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> pretext-suppo...@googlegroups.com
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrfhVz5uCsZVGx0EyrEWQTp6Znd%2BP3YTDzpb4hbCcbt7Yg%40mail.gmail.com <https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrfhVz5uCsZVGx0EyrEWQTp6Znd%2BP3YTDzpb4hbCcbt7Yg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> 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
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/CAF%3DtUD7%3DP6iDYdX7iLzxebkmAgf0nFH2QOGMyGO0B0uK0TTc6w%40mail.gmail.com <https://groups.google.com/d/msgid/pretext-support/CAF%3DtUD7%3DP6iDYdX7iLzxebkmAgf0nFH2QOGMyGO0B0uK0TTc6w%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> 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
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrdMTkiNyUJa1EJdc3xucYxEXs0dGaXqPUak-dF5Fy8tZg%40mail.gmail.com <https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrdMTkiNyUJa1EJdc3xucYxEXs0dGaXqPUak-dF5Fy8tZg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Jim Seibert

unread,
Jan 29, 2024, 7:25:03 PM1/29/24
to pretext...@googlegroups.com
I think I have a local version of pretext (almost, mostly) working.

I can build, view and deploy using VS Code. 

Good news!  I got my igo images to work in PreTeXt.  The pdf of the pretext print output looks perfect.  The images in the web build look like trash - blocky and pixelated.  (See What is Go? (jimseibert.github.io).  It's supposed to be a grid with black and white circles, but the horizontal lines are missing and the "circles" are merely hinted at with blocks.)

I didn't have the same issue with a tikz version of the same image, but the tikz version took 30 lines of code and the igo version took 3.  In a book where I'm going to make dozens, maybe hundreds, of these images, I'd much rather use igo if I can!

Any ideas on what to try next?  There's no documentation on (the currently unsupported) pdf2svg program, and that seems to be where the issue is.

Thanks,

Jim



To unsubscribe from this topic, visit https://groups.google.com/d/topic/pretext-support/DWsMWZLxVXM/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/MTAwMDA0Ni5iZWV6ZXI.1706298213%40quikprotect.

Alex Jordan

unread,
Jan 29, 2024, 7:39:22 PM1/29/24
to pretext...@googlegroups.com
If PreTeXt is still using pdf2svg, I suggest that we put an end to
that. For comparison, about two years ago WeBWorK (which also takes
snippets of latex code and produces images in various file formats)
moved from using pdf2svg to using dvisvgm, and it has been working
well. Unless someone here knows about issues with the dvisvgm pathway,
I suggest that we move to using it.

Note that not too long ago, there was a bug with dvisvgm that made it
unusable for this pipeline. But that was fixed a few texlive versions
ago.

And then for you, the answer would be to leave your nice concise igo
code alone, and give us some time to catch up. But I'll wait to see if
there are objections to the dvisvgm pathway.

One last point: technically WeBworK still allows a site admin to
choose the pdf2svg pathway or the dvisvgm pathway. Maybe PTX could
support both, with a publisher option picking the one to be used.
> 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/CAF%3DtUD7nLFeFTUZaaXTCEWQ4U7nzQOezMZ-_5jnwQ524sAEH%3Dw%40mail.gmail.com.

Rob Beezer

unread,
Jan 30, 2024, 12:38:13 AM1/30/24
to pretext...@googlegroups.com
Dear Alex,

Can you determine what the CLI is *actually* using, before we discuss a replacement based on speculation?

Rob

Sean Fitzpatrick

unread,
Jan 30, 2024, 8:36:13 AM1/30/24
to pretext...@googlegroups.com
It was using pdf2svg as of a month ago, because I had to figure out how to install it on Windows.

Rob Beezer

unread,
Jan 30, 2024, 12:38:00 PM1/30/24
to pretext...@googlegroups.com
Thanks, Sean. Moving the future of pdf2svg to a -dev thread.

Let's keep this thread going on-point and see if we can understand why Go boards
look inferior and get Jim what he is after. We had a lot of success with what
we have already. Is it the LaTeX package? Does something need scaling up, then
down, to avoid the jagged edges? Does pdf2svg need some new arguments? Can we
intervene manually somewhere and get better results?

Rob

On 1/30/24 05:36, Sean Fitzpatrick wrote:
> It was using pdf2svg as of a month ago, because I had to figure out how to
> install it on Windows.
>
> On Mon, Jan 29, 2024, 10:38 p.m. Rob Beezer <bee...@privacyport.com
> <mailto:bee...@privacyport.com>> wrote:
>
> Dear Alex,
>
> Can you determine what the CLI is *actually* using, before we discuss a
> replacement based on speculation?
>
> Rob
>
> On January 29, 2024 4:39:08 PM PST, Alex Jordan <jordanc...@gmail.com
> <mailto:jordanc...@gmail.com>> wrote:
> >If PreTeXt is still using pdf2svg, I suggest that we put an end to
> >that. For comparison, about two years ago WeBWorK (which also takes
> >snippets of latex code and produces images in various file formats)
> >moved from using pdf2svg to using dvisvgm, and it has been working
> >well. Unless someone here knows about issues with the dvisvgm pathway,
> >I suggest that we move to using it.
> >
> >Note that not too long ago, there was a bug with dvisvgm that made it
> >unusable for this pipeline. But that was fixed a few texlive versions
> >ago.
> >
> >And then for you, the answer would be to leave your nice concise igo
> >code alone, and give us some time to catch up. But I'll wait to see if
> >there are objections to the dvisvgm pathway.
> >
> >One last point: technically WeBworK still allows a site admin to
> >choose the pdf2svg pathway or the dvisvgm pathway. Maybe PTX could
> >support both, with a publisher option picking the one to be used.
> >
> >
> >
> >On Mon, Jan 29, 2024 at 4:25 PM Jim Seibert <jamesall...@gmail.com
> <mailto:jamesall...@gmail.com>> wrote:
> >>
> >> I think I have a local version of pretext (almost, mostly) working.
> >>
> >> I can build, view and deploy using VS Code.
> >>
> >> Good news!  I got my igo images to work in PreTeXt.  The pdf of the
> pretext print output looks perfect.  The images in the web build look like
> trash - blocky and pixelated.  (See What is Go? (jimseibert.github.io
> <http://jimseibert.github.io>).  It's supposed to be a grid with black and
> >>> > <mailto:jamesall...@gmail.com
> <mailto:jamesall...@gmail.com>>> wrote:
> >>> >
> >>> >     Thank you both!  This is promising!
> >>> >
> >>> >     So far I've used the version of PreTeXt built into Github in the
> cloud.
> >>> >     Sounds like running it locally, where my latex installation has igo
> >>> >     installed, might do the trick.
> >>> >
> >>> >     I'll continue to muck around and learn!
> >>> >
> >>> >     Thanks again,
> >>> >
> >>> >     Jim
> >>> >
> >>> >     On Thu, Jan 25, 2024 at 3:52 PM Alex Jordan
> <jordanc...@gmail.com <mailto:jordanc...@gmail.com>
> >>> >     <mailto:jordanc...@gmail.com
> <mailto:jordanc...@gmail.com>>> wrote:
> >>> >
> >>> >         I tried to build your latex example, and I see that the igo
> package is
> >>> >         not installed on my system.
> >>> >
> >>> >         PreTeXt will use the instance of LaTeX identified in:
> >>> >         pretext/pretext.cfg
> >>> >         if you are using PreTeXt directly. If you are using the CLI, your
> >>> >         project.ptx file has an executables element that does the
> same thing.
> >>> >         Whatever "latex" is identified there will be used, and that
> installation
> >>> >         of latex will need the igo package.
> >>> >
> >>> >         After that is installed, I see no reason why it would not work.
> >>> >
> >>> >         On Thu, Jan 25, 2024 at 2:36 PM Jim Seibert
> <jamesall...@gmail.com <mailto:jamesall...@gmail.com>
> >>> >         <mailto:jamesall...@gmail.com
> <mailto:pretext-support%2Bunsu...@googlegroups.com>
> >>> >             <mailto:pretext-suppo...@googlegroups.com
> <mailto:pretext-support%2Bunsu...@googlegroups.com>>.
> >>> >             To view this discussion on the web visit
> >>> >
> https://groups.google.com/d/msgid/pretext-support/4ec2fbb3-9491-4a39-9e5f-3e4e18bda520n%40googlegroups.com <https://groups.google.com/d/msgid/pretext-support/4ec2fbb3-9491-4a39-9e5f-3e4e18bda520n%40googlegroups.com> <https://groups.google.com/d/msgid/pretext-support/4ec2fbb3-9491-4a39-9e5f-3e4e18bda520n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/pretext-support/4ec2fbb3-9491-4a39-9e5f-3e4e18bda520n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
> >>> >
> >>> >         --
> >>> >         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/DWsMWZLxVXM/unsubscribe
> <https://groups.google.com/d/topic/pretext-support/DWsMWZLxVXM/unsubscribe>
> <https://groups.google.com/d/topic/pretext-support/DWsMWZLxVXM/unsubscribe
> <https://groups.google.com/d/topic/pretext-support/DWsMWZLxVXM/unsubscribe>>.
> >>> >         To unsubscribe from this group and all its topics, send an
> email to
> >>> > pretext-suppo...@googlegroups.com
> <mailto:pretext-support%2Bunsu...@googlegroups.com>
> >>> >         <mailto:pretext-suppo...@googlegroups.com
> <mailto:pretext-support%2Bunsu...@googlegroups.com>>.
> >>> >         To view this discussion on the web visit
> >>> >
> https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrfhVz5uCsZVGx0EyrEWQTp6Znd%2BP3YTDzpb4hbCcbt7Yg%40mail.gmail.com <https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrfhVz5uCsZVGx0EyrEWQTp6Znd%2BP3YTDzpb4hbCcbt7Yg%40mail.gmail.com> <https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrfhVz5uCsZVGx0EyrEWQTp6Znd%2BP3YTDzpb4hbCcbt7Yg%40mail.gmail.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrfhVz5uCsZVGx0EyrEWQTp6Znd%2BP3YTDzpb4hbCcbt7Yg%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
> >>> >
> >>> >     --
> >>> >     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
> <mailto:pretext-support%2Bunsu...@googlegroups.com>
> >>> >     <mailto:pretext-suppo...@googlegroups.com
> <mailto:pretext-support%2Bunsu...@googlegroups.com>>.
> >>> >     To view this discussion on the web visit
> >>> >
> https://groups.google.com/d/msgid/pretext-support/CAF%3DtUD7%3DP6iDYdX7iLzxebkmAgf0nFH2QOGMyGO0B0uK0TTc6w%40mail.gmail.com <https://groups.google.com/d/msgid/pretext-support/CAF%3DtUD7%3DP6iDYdX7iLzxebkmAgf0nFH2QOGMyGO0B0uK0TTc6w%40mail.gmail.com> <https://groups.google.com/d/msgid/pretext-support/CAF%3DtUD7%3DP6iDYdX7iLzxebkmAgf0nFH2QOGMyGO0B0uK0TTc6w%40mail.gmail.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/pretext-support/CAF%3DtUD7%3DP6iDYdX7iLzxebkmAgf0nFH2QOGMyGO0B0uK0TTc6w%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
> >>> >
> >>> > --
> >>> > 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
> <mailto:pretext-support%2Bunsu...@googlegroups.com>
> >>> > <mailto:pretext-suppo...@googlegroups.com
> <mailto:pretext-support%2Bunsu...@googlegroups.com>>.
> >>> > To view this discussion on the web visit
> >>> >
> https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrdMTkiNyUJa1EJdc3xucYxEXs0dGaXqPUak-dF5Fy8tZg%40mail.gmail.com <https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrdMTkiNyUJa1EJdc3xucYxEXs0dGaXqPUak-dF5Fy8tZg%40mail.gmail.com> <https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrdMTkiNyUJa1EJdc3xucYxEXs0dGaXqPUak-dF5Fy8tZg%40mail.gmail.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrdMTkiNyUJa1EJdc3xucYxEXs0dGaXqPUak-dF5Fy8tZg%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
> >>>
> >>> --
> >>> You received this message because you are subscribed to a topic in the
> Google Groups "PreTeXt support" group.
> >>> To unsubscribe from this topic, visit
> <mailto:pretext-support%2Bunsu...@googlegroups.com>.
> >>> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/MTAwMDA0Ni5iZWV6ZXI.1706298213%40quikprotect <https://groups.google.com/d/msgid/pretext-support/MTAwMDA0Ni5iZWV6ZXI.1706298213%40quikprotect>.
> >>
> >> --
> >> 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
> <mailto:pretext-support%2Bunsu...@googlegroups.com>.
> >> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/CAF%3DtUD7nLFeFTUZaaXTCEWQ4U7nzQOezMZ-_5jnwQ524sAEH%3Dw%40mail.gmail.com <https://groups.google.com/d/msgid/pretext-support/CAF%3DtUD7nLFeFTUZaaXTCEWQ4U7nzQOezMZ-_5jnwQ524sAEH%3Dw%40mail.gmail.com>.
> >
>
> --
> 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
> <mailto:pretext-support%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/MTAwMDA0OS5iZWV6ZXI.1706593090%40quikprotect <https://groups.google.com/d/msgid/pretext-support/MTAwMDA0OS5iZWV6ZXI.1706593090%40quikprotect>.
>
> --
> 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
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/CAH%2BNcPZ4QDwgXFWq-rgHuano2Tz9ZXZ1_T-FdBwpgAxCkAnFYQ%40mail.gmail.com <https://groups.google.com/d/msgid/pretext-support/CAH%2BNcPZ4QDwgXFWq-rgHuano2Tz9ZXZ1_T-FdBwpgAxCkAnFYQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Rob Beezer

unread,
Jan 30, 2024, 1:03:22 PM1/30/24
to pretext...@googlegroups.com
On 1/29/24 16:24, Jim Seibert wrote:
> Good news!  I got my igo images to work in PreTeXt.  The pdf of the pretext
> print output looks perfect.  The images in the web build look like trash -
> blocky and pixelated.

And can't really be saved. It is not a matter of scaling the SVG for better
viewing.

As near as I can tell, the stones are glyphs in a font. Perhaps a good idea in
2003. And thus they are in a font. So a conversion to SVG is likely to be
trying to convert the stones from characters/glyphs in LaTeX to PDF to SVG.
That is sort of how the end result SVG looks when you view its source.

Can you experiment with \largegoban which I think ramps up the font size to
20pt? See if that makes a better web version?

Rob

Oscar Levin

unread,
Jan 30, 2024, 7:51:40 PM1/30/24
to PreTeXt support
I wasn't able to test this, since texlive doesn't work with igo.sty.  But could you also try generating with `pretext generate --pymupdf`?

Sean Fitzpatrick

unread,
Jan 30, 2024, 8:02:40 PM1/30/24
to pretext...@googlegroups.com
Sorry, this won't help move things along, but why won't texlive work with that style file?

Can't you put any style file you want in the same directory as your .tex file?

--
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/bce16818-6729-4de4-a5a8-cec68bbb5c9cn%40googlegroups.com.

Rob Beezer

unread,
Jan 30, 2024, 8:49:22 PM1/30/24
to pretext...@googlegroups.com
There are necessary font files, it appears. *I* don't want to go there. ;-)

I get my TeX via Ubuntu packages, and I don't see "igo.sty" in any of them.
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/bce16818-6729-4de4-a5a8-cec68bbb5c9cn%40googlegroups.com <https://groups.google.com/d/msgid/pretext-support/bce16818-6729-4de4-a5a8-cec68bbb5c9cn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> 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
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/CAH%2BNcPZOYih1_WJ%3DdDKFeL1in07%3Db89%2BKUhN2CUWU3DoXm002w%40mail.gmail.com <https://groups.google.com/d/msgid/pretext-support/CAH%2BNcPZOYih1_WJ%3DdDKFeL1in07%3Db89%2BKUhN2CUWU3DoXm002w%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Rob Beezer

unread,
Jan 30, 2024, 9:13:06 PM1/30/24
to pretext...@googlegroups.com
Dear Jim,

It will be useful to know if you can make decent PNG versions of your boards.
Either with OScar's suggestion of electing PyMuPDF, or by having ImageMagick's
"convert" program do it via the CLI.

We might know then if the PDF has good information about the board, and it would
also make a workaround possible.

Rob

Jim Seibert

unread,
Feb 1, 2024, 3:43:43 PM2/1/24
to pretext...@googlegroups.com
Thank you!!!

The \largegoban idea of making the fonts bigger definitely made images that were better, and usable but not great.

After wrestling with environment variables for a while, I finally got things working in git-bash to use Oscar's suggestion, and "pretext generate --pymupdf" followed by a build worked like a charm.  Later I realised that I can do that in the VSCode terminal, as well.

I now have beautiful go board images in my web PreTeXt!  Hooray!!

Thanks again, everyone!!  I consider my problem solved.

Jim

--
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/DWsMWZLxVXM/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/MTAwMDA0OS5iZWV6ZXI.1706667184%40quikprotect.
Reply all
Reply to author
Forward
0 new messages