Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

longtblr numbering incorrect in listoftables #7

Closed
alexpovel opened this issue May 11, 2022 · 2 comments
Closed

longtblr numbering incorrect in listoftables #7

alexpovel opened this issue May 11, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@alexpovel
Copy link
Owner

Original issue (2021-10-26): https://collaborating.tuhh.de/alex/latex-cookbook/-/issues/14

See this upstream issue of the tabularray package. This is currently bugged here as well. The author has not upstreamed their fix into a new package release yet, so simply updating (that is, rebuilding the Docker image) TeXLive won't do.

A manual patch is:

# use existing, not yet updated base image
FROM alexpovel/latex

# `root` or `0`
USER root

# Apply this patch manually until upstream fix is published on TexLive:
# https://github.com/lvjr/tabularray/commit/8782222cd6586dd46ae63a8f41d1523fb8ac2081
# The initial `grep` will eventually fail the build, hence notifying us once the upstream is patched
# and the monkey patch here can be removed.
RUN grep '{ \\protect\\numberline { \\arabic { table } } { \\l__tblr_caption_short_tl } }' $(kpsewhich tabularray.sty) && \
        sed --in-place 's/arabic { table }/thetable/' $(kpsewhich tabularray.sty)

# back to regular user
USER tex

I would like to introduce that (at the proper position so USER switching isn't needed) into the existing Dockerfile.

However, rebuilding the image right now seems to have changed something about siunitx and/or glossaries-extra. It errors out:

Package glossaries-extra Warning: Glossary entry `sym.moisture_content' has not
 been defined on input line 1164.


! LaTeX Error: \symupallowed only in math mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.1164     }
          
? 

Therefore, the above patch isn't upstreamed into alexpovel/latex yet.
I'm working on it, but it's hard to debug so far.

@alexpovel
Copy link
Owner Author

See also here.

@alexpovel alexpovel self-assigned this May 11, 2022
@alexpovel alexpovel added the bug Something isn't working label May 11, 2022
@alexpovel
Copy link
Owner Author

alexpovel commented May 11, 2022

This is now (2021-12-15) fixed through an updated (just ran build to fetch latest TeXLive packages) Docker image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant