To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 304bc7ea authored by Bengt Giger's avatar Bengt Giger
Browse files

Dockerfile with entrypoint

parent ce16bf81
Pipeline #88002 failed with stages
in 5 minutes and 11 seconds
......@@ -5,7 +5,7 @@ COPY laweb /usr/local/bin/laweb
COPY laweb.sty /usr/share/texlive/texmf-local/tex/latex/laweb.sty
COPY laweb.cfg /usr/share/texlive/texmf-local/tex/latex/laweb.cfg
COPY laweb-wrapper.sh /usr/local/bin/laweb-wrapper
RUN dnf install -y texlive-tikz-dependency texlive-tex4ht texlive-scheme-full texlive-ifluatex
RUN dnf update -y && install -y texlive-tikz-dependency texlive-tex4ht texlive-scheme-full texlive-ifluatex
WORKDIR /home/workdir
......
......@@ -48,15 +48,19 @@ Issue
Ommit the `.tex` suffix for `<BASENAME>`.
## Limitations
## Docker Image
`tex4ht` has to know about LaTeX commands to be able to convert them to HTML. Since
there is a plethora of LaTeX styles available, there will be always commands which
may cause issues.
Images for containers are provided. They contain a LaTeX environment and the laweb
components.
- `\mathcal` may cause problems if used in subscript parts. Curly braces grouping
may help: ${\mathcal{P}_\sim}$ instead of $\mathcal{P}_\sim$.
- `\frac`, in certain circumstances, needs similar help.
The container has to access your working directory, which has to be mounted into
the container. Example which creates and starts a container, and removes it at the of the job:
```
podman run --rm -v /home/user/latex/skript:/home/workdir registry.ethz.ch/laweb/laweb:stable tex_source
```
Replace `podman` with `docker` or whatever container runtime you want to use.
## Docker Setup with WSL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment