GithubHelp home page GithubHelp logo

docker-miktex's Introduction

Dockerized MiKTeX

This image allows you to run MiKTeX on any computer that supports Docker.

Example

Provided that your main input file is located in the current working directory, you can run pdflatex as follows:

docker run -ti -v miktex:/var/lib/miktex -v `pwd`:/miktex/work -e MIKTEX_UID=`id -u` miktex/miktex:essential \
    pdflatex main.tex

Tags

  • 23.10-essential, essential (essential variant)
  • 23.10-basic, basic (basic variant)

Essential variant

The essential variant contains a bare MiKTeX system.

Basic variant

The basic variant contains the basic package set.

Volumes

MiKTeX files

MiKTeX is configured to install missing package files in the container directory /var/lib/miktex.

It is recommended that you mount this directory to a named Docker volume. This ensures that data (such as downloaded packages) survives the container.

Input files

The host directory containing the input files must be mounted to the container path /miktex/work.

User miktex

All commands inside the container are executed as user miktex and uid 1000.

It is possible to change the uid by setting the container environment variable MIKTEX_UID.

To execute as the current user, you would pass option -e MIKTEX_UID=$(id -u) to the Docker run command.

docker-miktex's People

Contributors

cr0wg4n avatar edocevoli avatar phpirates avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-miktex's Issues

Install make along with MiKTeX to use make

Some repos can benefit from haveing make available. E.g. LaTeX docs which were generated via Sphinx do include a Makefile for easy compile to PDF.

- RUN apt-get install miktex -y
+ RUN apt-get install make miktex -y

will do the trick hopefully.

Also adding sudo and adduser miktex sudo would it make possible to adjust the container in CIs without building it all on your own. So:

- RUN apt-get install miktex -y
+ RUN apt-get install make miktex sudo -y
...
+ RUN adduser miktex sudo

Update Docker Hub image (2.9.6980 -> 2.9.7050)

Hello there! Could you please release a fresh image to the Docker Hub?

I tried to use the docker hub image to build my document using: docker run --rm -ti -v C:\some\path:/miktex/work miktex/miktex pdflatex root.tex

But it failed while downloading some packages:

starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: http://mirrors.sjtug.sjtu.edu.cn/ctan/systems/win32/miktex/tm/packages/
package repository digest: 0051892e82e2f6a3249012fd042a9b51
going to download 8630983 bytes
going to install 29 file(s) (1 package(s))
downloading http://mirrors.sjtug.sjtu.edu.cn/ctan/systems/win32/miktex/tm/packages/l3kernel.tar.lzma...
8.63 MB, 424.85 Mbit/s
extracting files from l3kernel.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/l3kernel/expl3.sty
(/miktex/.miktex/texmfs/install/tex/latex/l3kernel/expl3-code.tex
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: http://mirrors.sjtug.sjtu.edu.cn/ctan/systems/win32/miktex/tm/packages/
package repository digest: 0051892e82e2f6a3249012fd042a9b51
going to download 236231 bytes
going to install 11 file(s) (1 package(s))
downloading http://mirrors.sjtug.sjtu.edu.cn/ctan/systems/win32/miktex/tm/packages/unicode-data.tar.lzma...
0.24 MB, 620.44 Mbit/s
extracting files from unicode-data.tar.lzma...
======================================================================
)

! LaTeX Error: File `l3backend-pdfmode.def' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: def)

Enter file name:

I think that this is the problem because building the document just worked fine when I built the docker image on my own.

Building the docker image on my own resulted in MiKTeX v2.9.7050 living inside the container instead of v2.9.6980.

Have a nice day! ๐Ÿ˜ƒ

How do I install languages?

Hi,

when building with pdflatex on windows, everything works like expected with

\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}

but using the docker image, the following error occurs in the log:

Package babel Warning: No hyphenation patterns were preloaded for
(babel)                the language `German (new orthography)' into the format.

(babel)                Please, configure your TeX system to add them and
(babel)                rebuild the format. Now I will use the patterns
(babel)                preloaded for \language=0 instead on input line 43.

How do I install more languages via commandline like I can do with the windows tool in the Languages tab?

Thanks

pdftex does not find memory dump

First I believed only my local installation (Windows 10) got corrupted but the same happens in the docker image on a Linux machine:

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.6980)

Sorry, but pdftex did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  /miktex/.miktex/texmfs/data/miktex/log/pdftex.log
root@2a243aa2498b:/miktex/work# tail /miktex/.miktex/texmfs/data/miktex/log/pdftex.log

The log file hopefully contains the information to get MiKTeX going again:

  /miktex/.miktex/texmfs/data/miktex/log/initexmf.log

2020-05-13 19:32:56,576Z FATAL pdftex - The memory dump file could not be found.
2020-05-13 19:32:56,576Z FATAL pdftex - Info: fileName="pdftex.fmt"
2020-05-13 19:32:56,576Z FATAL pdftex - Source: Libraries/MiKTeX/TeXAndFriends/texmfapp.cpp
2020-05-13 19:32:56,576Z FATAL pdftex - Line: 689
2020-05-13 19:32:56,576Z INFO  pdftex - finishing with exit code 1

Is there anything wrong about the current installer, is that sheer bad luck, or is there something obvious I miss? Out of the sudden I can't use MiKTeX anymore!

Upstream is outdated and broken

Trying this system for the first time, I get the following error:

[Loading MPS to PDF converter (version 2006.09.02).]
)

! LaTeX Error: File `epstopdf-base.sty' not found.

The upstream image is 7 (or 9?) months old and building from scratch fixes this issue.

Discussion: GitHub Actions for image build

I'm in a situation where I could really use a working miktex/miktex:latest image, but the one currently available (digest ebd838f3) is far enough out of date that it may no longer be usable.

I'd like to at least create a PR for you all (@edocevoli, @PHPirates, @cr0wg4n) to consider if that's in line with the direction this project is going. If not we can just close this issue and I'll figure something else out.

Also commented on #37.

Sorry, but pdflatex did not succeed

using latest docker image, and newly created volume.

docker volume create --name miktex
docker run -it --rm \
  -v miktex:/miktex/.miktex \
  -v `pwd`:/miktex/work \
  -e MIKTEX_GID=$(id -g) \
  -e MIKTEX_UID=$(id -u) \
  miktex/miktex \
  pdflatex test.tex

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.6980)

Sorry, but pdflatex did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

/miktex/.miktex/texmfs/data/miktex/log/pdflatex.log

2021-04-15 17:56:03,189Z INFO pdflatex - starting with command line: pdflatex test.tex
2021-04-15 17:56:03,190Z INFO pdflatex - running 'initexmf' to refresh the file name database
2021-04-15 17:56:03,678Z INFO pdflatex - running 'initexmf' to create font map files
2021-04-15 17:56:04,095Z INFO pdflatex - allowing known shell commands
2021-04-15 17:56:04,095Z INFO pdflatex - enabling input (output) from (to) processes
2021-04-15 17:56:04,098Z INFO pdflatex - going to create file: pdflatex.fmt
2021-04-15 17:56:11,540Z ERROR pdflatex - /usr/bin/initexmf did not succeed; exitCode: 1
2021-04-15 17:56:11,540Z ERROR pdflatex - output:
2021-04-15 17:56:11,540Z ERROR pdflatex -
Sorry, but "MiKTeX Configuration Utility" did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

/miktex/.miktex/texmfs/data/miktex/log/initexmf.log

2021-04-15 17:56:11,540Z FATAL pdflatex - The memory dump file could not be found.
2021-04-15 17:56:11,540Z FATAL pdflatex - Info: fileName="pdflatex.fmt"
2021-04-15 17:56:11,540Z FATAL pdflatex - Source: Libraries/MiKTeX/TeXAndFriends/texmfapp.cpp
2021-04-15 17:56:11,540Z FATAL pdflatex - Line: 689
2021-04-15 17:56:11,540Z INFO pdflatex - finishing with exit code 1

Outdated Docker image `miktex/miktex` is 2 years old

The latest official Docker image miktex/miktex (https://hub.docker.com/r/miktex/miktex/tags) is 2 years old (MiKTeX 21.6)! Due to incompatibilities it is fairly unusable, because one can no longer update and install additional components. It would be best to have a CI pipeline that rebuilds and publishes the images, but even an occasional manual rebuild and upload would probably be enough.

It produces the error described in MiKTeX/miktex#1047:

2023-03-27 09:54:04,490Z INFO  mkfntmap - this process (46) started by 'initexmf' with command line: mkfntmap --enable-installer --miktex-disable-maintenance --miktex-disable-diagnose
2023-03-27 09:54:04,492Z WARN  mkfntmap - security risk: running with elevated privileges
2023-03-27 09:54:04,492Z INFO  mkfntmap - Parsing config file /usr/local/share/miktex-texmf/miktex/config/updmap.cfg...
2023-03-27 09:54:04,492Z FATAL mkfntmap - invalid configuration setting
2023-03-27 09:54:04,492Z FATAL mkfntmap - cfg file: /usr/local/share/miktex-texmf/miktex/config/updmap.cfg
2023-03-27 09:54:04,492Z FATAL mkfntmap - line: 87

Install Perl along with MiKTeX to use latexmk

I just experimented with the MiKTeX docker image and tried to build a (simple hello-world) document with (installed) latexmk. This failed because one (or more) necessary perl module(s) are missing with the default ubuntu installation. The exact error message:

Can't locate File/Copy.pm in @INC (you may need to install the File::Copy module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /miktex/.miktex/texmfs/install/scripts/latexmk/latexmk.pl line 129.
BEGIN failed--compilation aborted at /miktex/.miktex/texmfs/install/scripts/latexmk/latexmk.pl line 129.

After that I adapted the MiKTeX image and installed perl with a successful PDF build:

FROM miktex/miktex

USER root

RUN apt-get update
RUN apt-get install -y perl

USER miktex

I think this could be a (small) improvment at least for using latexmk regarding the official image doesn't allow to install packages to ubuntu because of missing privileges.

Unauthorized on docker pull

docker pull miktex/miktex
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/miktex/miktex/manifests/latest: unauthorized: incorrect username or password

Lualatex ignores user language.dat.lua

Lualatex seems to search the file language.dat.lua at the wrong position. Searching in the log file[1] reveals lualatex uses /var/lib/miktex-texmf/tex/generic/config/language.dat.lua which is essentially empty.

In /miktex/.miktex is also a file language.data.lua which has content.

Is it possible to initialize /var/lib/miktex-texmf/tex/generic/config/language.dat.lua?

[1] My log file:

luatex-hyphen: using data file: /var/lib/miktex-texmf/tex/generic/config/languag
e.dat.lua
Lua module: polyglossia 2013/05/11 1.3 Polyglossia)
(/usr/local/share/miktex-texmf/tex/latex/polyglossia/gloss-english.ldf
File: gloss-english.ldf polyglossia: module for english

Module polyglossia Warning: Language american not found in language.dat.lua on i
nput line 6
Module polyglossia Warning: Language american not found in language.dat.lua on i
nput line 6
Module polyglossia Warning: Language american not found in language.dat.lua on i
nput line 6
Module polyglossia Warning: Language english not found in language.dat.lua on in
put line 6
Module polyglossia Warning: Language english not found in language.dat.lua on in
put line 6

`biber` won't get updated to the latest version

Platform

  • Host: Ubuntu 22.04, x86-64
  • Docker: 20.10.21, build baeda1f
  • Image digest: sha256:ebd838f3f402f8e027bc68df01d1de2fa31a724b5b0d0c8da0cae109ed18301e (latest as of this posting)

Behavior

Example files (taken from this comment):

cat example.tex
\documentclass[a4paper,english]{article}
\RequirePackage{biblatex}
\addbibresource{example.bib}
\begin{document}
This is some text.
\cite{Foo2019}
\end{document}
cat example.bib
@misc{Foo2019,
author = {Foo, Bar},
title = {{Learning to foo the bar}},
year = {2019}
}
cat .latexmkrc
$bibtex_fudge=0;
# use xelatex - xdv -> pdf - not working due to bugs in 4.61
$pdf_mode=5;
&alt_tex_cmds;

I can produce the desired PDF from these files with TeX Live by issuing latexmk.

Now do the same thing but with a MiKTeX docker container:

docker run --rm -ti \
  -v miktex:/miktex/.miktex \
  -v $(pwd):/miktex/work \
  -e MIKTEX_GID=$(id -g) \
  -e MIKTEX_UID=$(id -u) \
  miktex/miktex \
  latexmk

which would fail, with the following example.blg:

[0] Config.pm:311> INFO - This is Biber 2.16
[0] Config.pm:314> INFO - Logfile is 'example.blg'
[28] biber:340> INFO - === Sat Dec 24, 2022, 13:07:54
[35] Biber.pm:415> INFO - Reading 'example.bcf'
[66] Utils.pm:411> ERROR - Error: Found biblatex control file version 3.9, expected version 3.7.
This means that your biber (2.16) and biblatex (3.18b) versions are incompatible.
See compat matrix in biblatex or biber PDF documentation.
[66] Biber.pm:132> INFO - ERRORS: 1

According the package repository, the current version of biber-linux-x86_64 should be 2.18, instead of 2.16.

If I try to update this package by running mpm --update=biber-linux-x86_64, it will prompt:

Package "biber-linux-x86_64" is up to date.

with mpm log (/miktex/.miktex/texmfs/data/miktex/log/mpmcli.log) looking like this:

INFO  mpmcli - this is mpmcli 4.1.1 (MiKTeX 21.6)
INFO  mpmcli - this process (31) started by 'bash' with command line: mpm --update=biber-linux-x86_64
INFO  mpmcli - Operating on the private (per-user) MiKTeX setup
INFO  mpmcli.packagemanager - searching for updateable packages
INFO  mpmcli.packagemanager - going to download https://api2.miktex.org/hello
INFO  mpmcli.packagemanager - going to download https://api2.miktex.org/repositories?&releaseState=Stable&orderBy=ranking&take=1&onlySecure=true
INFO  mpmcli - downloading https://mirrors.nwafu.edu.cn/ctan/systems/win32/miktex/tm/packages/miktex-zzdb3-2.9.tar.lzma...
INFO  mpmcli.packagemanager - going to download https://mirrors.nwafu.edu.cn/ctan/systems/win32/miktex/tm/packages/miktex-zzdb3-2.9.tar.lzma
INFO  mpmcli - 1.63 MB, 1360.26 Mbit/s
INFO  mpmcli - updating package manifests (/miktex/.miktex/texmfs/install/miktex/config/package-manifests.ini)...
INFO  mpmcli - installed 6214 package manifests
INFO  mpmcli - visiting repository https://mirrors.nwafu.edu.cn/ctan/systems/win32/miktex/tm/packages/...
INFO  mpmcli - repository type: remote package repository
INFO  mpmcli - loading package repository manifest...
INFO  mpmcli - downloading https://mirrors.nwafu.edu.cn/ctan/systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma...
INFO  mpmcli.packagemanager - going to download https://mirrors.nwafu.edu.cn/ctan/systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma
INFO  mpmcli - 0.31 MB, 1218.67 Mbit/s
INFO  mpmcli - package repository digest: b9ed26183fd490daa74b9cb14a641fd1
WARN  mpmcli.packagemanager - package miktex-misc verification failed: some files have been modified
WARN  mpmcli.packagemanager - expected digest: 8b2b165bb40e90bfbbf4b8574ae4dfbf
WARN  mpmcli.packagemanager - computed digest: 7776dddf20c335fbf6e889e867944eca
WARN  mpmcli.packagemanager - package verification failed: file /usr/local/share/miktex-texmf/miktex/config/ptex.ini does not exist
INFO  mpmcli - Package "biber-linux-x86_64" is up to date.
INFO  mpmcli - this process (31) finishes with exit code 0

Sorry I don't really understand every part of this log. It looks to me that the downloaded manifest already contains a correct version 2.18 for biber-linux-x86_64 package, but it just won't proceed to download and update the binary itself, possibly due to the failure in verifying miktex-misc? which seems a recurring problem (MiKTeX/miktex#855).

(And btw, I haven't figured out how that digest is computed. If anyone can give some hints, it will be appreciated and I perhaps can provide more diagnosis information.)

Thanks for your effort in addressing this! Ask me if you need any further information.

FATAL miktex-makefmt - miktex-xetex failed on xelatex.ini.

https://gitlab.com/KOLANICH/Article-2015-Dull-captaincy-or-the-way-Tor-Project-fights-browser-fingerprinting/-/jobs/166730715

xelatex -disable-installer -enable-etex -enable-mltex -enable-write18 -c-style-errors -interaction=scrollmode "./readme.en.tex"
xelatex: warning: running with administrator privileges
initexmf: warning: Option --admin should be specified when running this program with administrator privileges
initexmf: warning: Option --admin should be specified when running this program with administrator privileges
This is XeTeX, Version 3.14159265-2.6-0.999991 (MiKTeX 2.9.6980)

Sorry, but xelatex did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

/miktex/.miktex/texmfs/data/miktex/log/xelatex.log
/miktex/.miktex/texmfs/data/miktex/log/xelatex.log
2019-02-24 23:00:23,367Z INFO xelatex - starting with command line: xelatex -help
2019-02-24 23:00:23,367Z WARN xelatex - running with administrator privileges
2019-02-24 23:00:23,368Z INFO xelatex - running 'initexmf' to refresh the file name database
2019-02-24 23:00:24,360Z INFO xelatex - running 'initexmf' to create font map files
2019-02-24 23:00:25,168Z INFO xelatex - allowing known shell commands
2019-02-24 23:00:25,168Z INFO xelatex - enabling input (output) from (to) processes
2019-02-24 23:00:25,169Z INFO xelatex - finishing with exit code 0
2019-02-24 23:00:25,258Z INFO xelatex - starting with command line: xelatex -disable-installer -enable-etex -enable-mltex -enable-write18 -c-style-errors -interaction=scrollmode ./readme.en.tex
2019-02-24 23:00:25,258Z WARN xelatex - running with administrator privileges
2019-02-24 23:00:25,259Z INFO xelatex - running 'initexmf' to refresh the file name database
2019-02-24 23:00:26,415Z INFO xelatex - running 'initexmf' to create font map files
2019-02-24 23:00:27,232Z INFO xelatex - allowing known shell commands
2019-02-24 23:00:27,232Z INFO xelatex - enabling input (output) from (to) processes
2019-02-24 23:00:27,232Z INFO xelatex - allowing all shell commands
2019-02-24 23:00:27,236Z INFO xelatex - going to create file: xelatex.fmt
2019-02-24 23:00:28,094Z ERROR xelatex - /usr/bin/initexmf did not succeed; exitCode: 1
2019-02-24 23:00:28,094Z ERROR xelatex - output:
2019-02-24 23:00:28,094Z ERROR xelatex - initexmf: warning: Option --admin should be specified when running this program with administrator privileges

Sorry, but "MiKTeX Configuration Utility" did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

/miktex/.miktex/texmfs/data/miktex/log/initexmf.log

2019-02-24 23:00:28,095Z FATAL xelatex - The memory dump file could not be found.
2019-02-24 23:00:28,095Z FATAL xelatex - Info: fileName="xelatex.fmt"
2019-02-24 23:00:28,095Z FATAL xelatex - Source: Libraries/MiKTeX/TeXAndFriends/texmfapp.cpp
2019-02-24 23:00:28,095Z FATAL xelatex - Line: 689
2019-02-24 23:00:28,095Z INFO xelatex - finishing with exit code 1
cat /miktex/.miktex/texmfs/data/miktex/log/initexmf.log
2019-02-24 23:00:22,944Z INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980)
2019-02-24 23:00:22,944Z INFO initexmf - Operating on the private (per-user) MiKTeX setup
2019-02-24 23:00:22,944Z INFO initexmf - starting with command line: initexmf --report
2019-02-24 23:00:23,330Z INFO initexmf - finishing with exit code 0
2019-02-24 23:00:23,721Z INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980)
2019-02-24 23:00:23,721Z INFO initexmf - Operating on the private (per-user) MiKTeX setup
2019-02-24 23:00:23,721Z INFO initexmf - starting with command line: initexmf --enable-installer --quiet --update-fndb
2019-02-24 23:00:23,722Z INFO initexmf - Creating fndb for user root directory (/miktex/.miktex/texmfs/config)...
2019-02-24 23:00:23,727Z INFO initexmf - Creating fndb for user root directory (/miktex/.miktex/texmfs/data)...
2019-02-24 23:00:23,728Z INFO initexmf - Creating fndb for user root directory (/miktex/.miktex/texmfs/install)...
2019-02-24 23:00:23,728Z INFO initexmf - Skipping common root directory (/var/lib/miktex-texmf)...
2019-02-24 23:00:23,728Z INFO initexmf - Skipping common root directory (/var/cache/miktex-texmf)...
2019-02-24 23:00:23,728Z INFO initexmf - Skipping common root directory (/usr/local/share/miktex-texmf)...
2019-02-24 23:00:24,357Z INFO initexmf - finishing with exit code 0
2019-02-24 23:00:24,774Z INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980)
2019-02-24 23:00:24,774Z INFO initexmf - Operating on the private (per-user) MiKTeX setup
2019-02-24 23:00:24,774Z INFO initexmf - starting with command line: initexmf --enable-installer --quiet --mkmaps
2019-02-24 23:00:24,775Z INFO initexmf - running: mkfntmap --enable-installer --miktex-disable-maintenance
2019-02-24 23:00:25,159Z INFO initexmf - finishing with exit code 0
2019-02-24 23:00:25,723Z INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980)
2019-02-24 23:00:25,723Z INFO initexmf - Operating on the private (per-user) MiKTeX setup
2019-02-24 23:00:25,723Z INFO initexmf - starting with command line: initexmf --enable-installer --quiet --update-fndb
2019-02-24 23:00:25,751Z INFO initexmf - Creating fndb for user root directory (/miktex/.miktex/texmfs/config)...
2019-02-24 23:00:25,752Z INFO initexmf - Creating fndb for user root directory (/miktex/.miktex/texmfs/data)...
2019-02-24 23:00:25,753Z INFO initexmf - Creating fndb for user root directory (/miktex/.miktex/texmfs/install)...
2019-02-24 23:00:25,753Z INFO initexmf - Skipping common root directory (/var/lib/miktex-texmf)...
2019-02-24 23:00:25,753Z INFO initexmf - Skipping common root directory (/var/cache/miktex-texmf)...
2019-02-24 23:00:25,753Z INFO initexmf - Skipping common root directory (/usr/local/share/miktex-texmf)...
2019-02-24 23:00:26,411Z INFO initexmf - finishing with exit code 0
2019-02-24 23:00:26,831Z INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980)
2019-02-24 23:00:26,831Z INFO initexmf - Operating on the private (per-user) MiKTeX setup
2019-02-24 23:00:26,831Z INFO initexmf - starting with command line: initexmf --enable-installer --quiet --mkmaps
2019-02-24 23:00:26,831Z INFO initexmf - running: mkfntmap --enable-installer --miktex-disable-maintenance
2019-02-24 23:00:27,224Z INFO initexmf - finishing with exit code 0
2019-02-24 23:00:27,666Z INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980)
2019-02-24 23:00:27,666Z INFO initexmf - Operating on the private (per-user) MiKTeX setup
2019-02-24 23:00:27,666Z INFO initexmf - starting with command line: initexmf --disable-installer --dump-by-name=xelatex --engine=xetex
2019-02-24 23:00:27,667Z INFO initexmf - running: miktex-makefmt --engine=xetex --dest-name=xelatex --no-dump xelatex.ini --disable-installer --miktex-disable-maintenance
2019-02-24 23:00:28,075Z ERROR initexmf - sub-process error output has been saved to '/miktex/.miktex/texmfs/data/miktex/log/miktex-makefmt_2019-02-24-230028.out'
2019-02-24 23:00:28,090Z FATAL initexmf - The executed process did not succeed.
2019-02-24 23:00:28,090Z FATAL initexmf - Info: exitCode="1", fileName="/usr/bin/miktex-makefmt"
2019-02-24 23:00:28,090Z FATAL initexmf - Source:
2019-02-24 23:00:28,090Z FATAL initexmf - Line: 0
/miktex/.miktex/texmfs/data/miktex/log/miktex-makefmt.log
2019-02-24 23:00:27,802Z INFO miktex-makefmt - starting with command line: miktex-makefmt --engine=xetex --dest-name=xelatex --no-dump xelatex.ini --disable-installer --miktex-disable-maintenance
2019-02-24 23:00:27,802Z WARN miktex-makefmt - running with administrator privileges
2019-02-24 23:00:27,803Z INFO makefmt - found input file: /usr/local/share/miktex-texmf/tex/latex/latexconfig/xelatex.ini
2019-02-24 23:00:27,803Z INFO makefmt - Creating the xelatex format file...
2019-02-24 23:00:27,803Z INFO makefmt - Running miktex-xetex...
2019-02-24 23:00:27,803Z INFO makefmt - running: miktex-xetex --miktex-disable-installer --miktex-disable-maintenance --initialize --interaction=nonstopmode --halt-on-error --alias=xelatex --job-name=xelatex --enable-etex xelatex.ini
2019-02-24 23:00:28,072Z FATAL miktex-makefmt - miktex-xetex failed on xelatex.ini.
2019-02-24 23:00:28,072Z FATAL miktex-makefmt - miktex-xetex failed on xelatex.ini.
2019-02-24 23:00:28,072Z FATAL miktex-makefmt - Info:
2019-02-24 23:00:28,072Z FATAL miktex-makefmt - Source:
2019-02-24 23:00:28,072Z FATAL miktex-makefmt - Line: 0

Manually installing packages

Hi all,

im trying to use the docker image for https://github.com/latextemplates/scientific-thesis-template.
Somehow the automatic install does not work for currfile and dehyph-exptl.
Upon fail of the first run of latexmk, the following fixes the missing packages

docker run -ti -v miktex:/var/lib/miktex -v `pwd`:/miktex/work -e MIKTEX_UID=`id -u` miktex/miktex:basic  mpm --install=currfile
docker run -ti -v miktex:/var/lib/miktex -v `pwd`:/miktex/work -e MIKTEX_UID=`id -u` miktex/miktex:basic  mpm --install=dehyph-exptl

Now i would like to automate that and have provided my own entrypoint.sh. It actually gets executed and seems to install the packages. Despite this, when i try to latexmk I get the error that the currfile package is missing.
The manually run commands fix the issue, but the install in the entrypoint has no effect.
Does anyone know why?

# Use the base MiKTeX image
FROM miktex/miktex:basic
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
#!/bin/bash

MIKTEX_UID=${MIKTEX_UID:-1000}
MIKTEX_GID=${MIKTEX_GID:-${MIKTEX_UID}}
if [ "$(id -u miktex)" != 1000 ]; then
    usermod -u ${MIKTEX_UID} miktex >/dev/null
    groupmod -g ${MIKTEX_GID} miktex
    chown -R miktex:miktex /var/lib/miktex
fi

CONTAINER_ALREADY_STARTED="/var/lib/miktex/started_before"
if [ ! -e $CONTAINER_ALREADY_STARTED ]; then
    touch $CONTAINER_ALREADY_STARTED
    echo "-- First container startup --"
    # Install MiKTeX packages
    mpm --install=dehyph-exptl
    mpm --install=currfile
else
    echo "-- Not first container startup --"
fi

# Execute the command passed to the entrypoint
exec gosu miktex "$@"

Install dependencies in WORKDIR/.miktex

gitlab CI does not allow to cache dependencies outside the project directory. Hence, it would be great if the image could store the dependencies within the project dir. This would enable CIs to cache the dependencies that are installed on the fly and thereby make builds much faster.

So if the WORKDIR is set to /miktex/work then the dependencies should be stored, for example, in /miktex/work/.miktex

Then this would work:

image: miktex/miktex

build:
  variables:
    MIKTEX_GID: 1111
    MIKTEX_UID: 1111
  cache:
    paths:
#      - /miktex/.miktex/ <--- not possible to cache dependencies outside the project dir
      - ./miktex <--- this is fine
  script:
    - mpm --update-db
    - pdflatex main.tex
  artifacts:
    paths:
      - "*.pdf"

I think this would not affect other use cases of the image, because they still would need to set a mounted volume and only need to change the path where they mount it. However, it would also be fine if we could configure the image via an environment variable.

Multiple errors while running pdflatex main.tex

Hello there,
I know that this repository is not popular. However, I find really useful to don't use Win10.

I have some problems while running pdflatex main.tex and those are the logs running, also I'll attach the file that I'm trying to build. I tried the code with normal version of miktex on Win10, and everything worked as expected.

To reproduce the error run these commands on Ubuntu

git clone https://github.com/ZurMaD/tesis_pregrado_pucp
cd tesis_pregrado_pucp
cd Latex/trabajo-de-investigacion-2
# Here is where all the data is stored to run main.tex as usual
docker run -ti \
            -v miktex:/miktex/.miktex \
            -v `pwd`:/miktex/work \
            miktex/miktex \
            pdflatex main.tex

getting this error

pdflatex: warning: running with administrator privileges
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.6980)

Sorry, but pdflatex did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  /miktex/.miktex/texmfs/data/miktex/log/pdflatex.log

Those are the log files:
logs.zip

and I got them with, for example

sudo docker run -ti \
            -v miktex:/miktex/.miktex \
            -v `pwd`:/miktex/work \
            miktex/miktex \
            cat   /miktex/.miktex/texmfs/data/miktex/log/initexmf.log >> initexmf.log

Please, let me know if I can help and thanks in advance!

latexmk: major issue: So far, no MiKTeX administrator has checked for updates.

Hi,

I am trying to create a docker image to run miktex (base on this repository) but is appears the procedure no longer works.
After a build I am getting the message : latexmk: major issue: So far, no MiKTeX administrator has checked for updates. when I type latexmk but I can not figure out how to fix this.

root@3d4762499ea7:/miktex/work# latexmk
latexmk: security risk: running with elevated privileges
Rc files read:
  NONE
Latexmk: This is Latexmk, John Collins, 18 Nov. 2022. Version 4.78, version: 4.78.

Latexmk: No file name specified, and I couldn't find any
Use
   latexmk -help
to get usage information
latexmk: major issue: So far, no MiKTeX administrator has checked for updates.

any hints?

How to pre-install more packages for CI/CD?

I'd like to have more pre-installed packages, not the lightweight solution.
I started with texlive-full but locally as we use miktex I realized that there are small version differences so what locally works does not work on the server.
Therefore, I wanted to harmonize the setting.
Is there a commandline argument I could use for installing more tex packages?
Like

If you have just installed MiKTeX, then you have the option to upgrade your
installation to a standard TeX system. Just click the Upgrade button. 
Please be aware that this starts a ~200MB download.

but just from the commandline.
For CI/CD later the already-prepared docker image would be pulled (from an internal repo) and then the runtime should be rather low and the need of network communication as well.

id : The term 'id' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Run the example command on Windows get the error:

id : The term 'id' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.

Full command:

PS tex> docker run --rm -ti -v miktex:/miktext/.miktex -v $(pwd):/miktex/work -e MIKTEX_GID=$(id
 -e MIKTEX_UID=$(id -u) miktex/miktex pdflatex .\fduthesis-template.tex
id : The term 'id' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:87
+ ... ex:/miktext/.miktex -v $(pwd):/miktex/work -e MIKTEX_GID=$(id -g) -e  ...
+                                                                ~~
    + CategoryInfo          : ObjectNotFound: (id:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

id : The term 'id' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:110
+ ... $(pwd):/miktex/work -e MIKTEX_GID=$(id -g) -e MIKTEX_UID=$(id -u) mik ...
+                                                                ~~
    + CategoryInfo          : ObjectNotFound: (id:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Root mode required for some reason? (Ubuntu 16)

Without adding the argument--user rootto the docker run call it says it can't write file.

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6530)
entering extended mode
! I can't write on file `main.log'.
Please type another transcript file name: 

xelatex hangs or fails to run

  • Latest Docker Image
  • Mac OSX 10.14.6

Reproduction Steps:

  1. Run Docker image.
  2. Create a very simple tex file in Docker image
\documentclass{book}
\begin{document}
  Hello world!!
\end{document}
  1. Run xelatex file.tex
  2. xelatex either hangs entirely or errors with the following logs.

Logs

/miktex/.miktex/texmfs/data/miktex/log/initexmf.log
2020-01-06 11:32:41,998Z INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980)
2020-01-06 11:32:41,998Z INFO  initexmf - Operating on the private (per-user) MiKTeX setup
2020-01-06 11:32:41,999Z INFO  initexmf - starting with command line: initexmf --dump-by-name=xelatex --engine=xetex
2020-01-06 11:32:41,999Z INFO  initexmf - running: miktex-makefmt --engine=xetex --dest-name=xelatex --no-dump xelatex.ini --miktex-disable-maintenance
2020-01-06 11:32:42,387Z ERROR initexmf - sub-process error output has been saved to '/miktex/.miktex/texmfs/data/miktex/log/miktex-makefmt_2020-01-06-113242.out'
2020-01-06 11:32:42,404Z FATAL initexmf - The executed process did not succeed.
2020-01-06 11:32:42,404Z FATAL initexmf - Info: exitCode="1", fileName="/usr/bin/miktex-makefmt"
2020-01-06 11:32:42,404Z FATAL initexmf - Source:
2020-01-06 11:32:42,404Z FATAL initexmf - Line: 0
/miktex/.miktex/texmfs/data/miktex/log/xelatex.log
2020-01-06 11:32:41,998Z INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980)
2020-01-06 11:32:41,998Z INFO  initexmf - Operating on the private (per-user) MiKTeX setup
2020-01-06 11:32:41,999Z INFO  initexmf - starting with command line: initexmf --dump-by-name=xelatex --engine=xetex
2020-01-06 11:32:41,999Z INFO  initexmf - running: miktex-makefmt --engine=xetex --dest-name=xelatex --no-dump xelatex.ini --miktex-disable-maintenance
2020-01-06 11:32:42,387Z ERROR initexmf - sub-process error output has been saved to '/miktex/.miktex/texmfs/data/miktex/log/miktex-makefmt_2020-01-06-113242.out'
2020-01-06 11:32:42,404Z FATAL initexmf - The executed process did not succeed.
2020-01-06 11:32:42,404Z FATAL initexmf - Info: exitCode="1", fileName="/usr/bin/miktex-makefmt"
2020-01-06 11:32:42,404Z FATAL initexmf - Source:
2020-01-06 11:32:42,404Z FATAL initexmf - Line: 0
root@8677107112f9:/miktex/work# cat  /miktex/.miktex/texmfs/data/miktex/log/xelatex.log
2020-01-06 11:32:41,523Z INFO  xelatex - starting with command line: xelatex helloword.tex
2020-01-06 11:32:41,523Z WARN  xelatex - running with administrator privileges
2020-01-06 11:32:41,524Z INFO  xelatex - allowing known shell commands
2020-01-06 11:32:41,524Z INFO  xelatex - enabling input (output) from (to) processes
2020-01-06 11:32:41,528Z INFO  xelatex - going to create file: xelatex.fmt
2020-01-06 11:32:42,419Z ERROR xelatex - /usr/bin/initexmf did not succeed; exitCode: 1
2020-01-06 11:32:42,420Z ERROR xelatex - output:
2020-01-06 11:32:42,420Z ERROR xelatex - initexmf: warning: Option --admin should be specified when running this program with administrator privileges

Sorry, but "MiKTeX Configuration Utility" did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  /miktex/.miktex/texmfs/data/miktex/log/initexmf.log

2020-01-06 11:32:42,420Z FATAL xelatex - The memory dump file could not be found.
2020-01-06 11:32:42,420Z FATAL xelatex - Info: fileName="xelatex.fmt"
2020-01-06 11:32:42,420Z FATAL xelatex - Source: Libraries/MiKTeX/TeXAndFriends/texmfapp.cpp
2020-01-06 11:32:42,420Z FATAL xelatex - Line: 689
2020-01-06 11:32:42,420Z INFO  xelatex - finishing with exit code 1

Outdated Dockerfile

Hi,

The docker file in this repository looks quite outdated. I made a few changes (but still do not have the full system running).

  1. Switched to Jammy (Latest LTS of ubuntu)

  2. Modified
    RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889
    RUN echo "deb http://miktex.org/download/ubuntu jammy universe" | tee /etc/apt/sources.list.d/miktex.list

to

RUN curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xD6BC243565B2087BC3F897C9277A7293F59E4889" | gpg --dearmor -o /usr/share/keyrings/miktex.gpg
&& echo "deb [arch=amd64, signed-by=/usr/share/keyrings/miktex.gpg] http://miktex.org/download/ubuntu jammy universe" | tee /etc/apt/sources.list.d/miktex.list

This method requires curl to be installed but at least does not use the soon deprecated apt-key tool.

  1. Modified the mpm calls by calls using miktex packages function

  2. Modified the containter to add a user and run the setup as user. This appears to be the currently preffered way?

ERROR: ! LaTeX requires expl3.

Trying to run pdflatex with

  MIKTEX_GID: 1111
  MIKTEX_UID: 1111

gives an error

ERROR initexmf - sub-process error output has been saved to '/miktex/.miktex/texmfs/data/miktex/log/miktex-makefmt_2020-11-04-140546.out'

The *.out file contains this error:

starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.kako-dev.de/systems/win32/miktex/tm/packages/
package repository digest: 229929f9cc3ef2c0aa1088f4966556a1
going to download 23141478 bytes
going to install 215 file(s) (1 package(s))
downloading https://ctan.kako-dev.de/systems/win32/miktex/tm/packages/ltxbase.tar.lzma...
23.14 MB, 92.64 Mbit/s
extracting files from ltxbase.tar.lzma...
======================================================================
(/miktex/.miktex/texmfs/install/tex/latex/base/latex.ltx
(/miktex/.miktex/texmfs/install/tex/latex/base/texsys.cfg)
./texsys.aux found
\@currdir set to: ./.
Assuming \openin and \input 
have the same search path.
Defining UNIX/DOS style filename parser.
catcodes, registers, parameters,
LaTeX2e <2020-10-01> patch level 2
! LaTeX requires expl3.
<argument> \errmessage {LaTeX requires expl3}
                                             \batchmode \read -1 to \reserve...
l.1061   }
          
!  ==> Fatal error occurred, no output PDF file produced!

How can we fix it?

Docker Hub image has outdated local package database

I'm trying to use this docker image to compile a document that uses the fontawesome5 package. It appears that miktex won't download it from the miktex repo and so latex looks for the package locally and the compilation fails.

I have found a work around of running mpm --update-db before trying to compile the document which does fix the issue but is it possible to refresh the docker image so this isn't necessary?

Is this the intended behaviour? As miktex uses a rolling release model perhaps the image should update monthly rather than annually to keep more up-to-date with the miktex package repository out of the box

Freshly installed MiKTeX doesn't allow me to access its logs

Hello there,

I installed MiKTeX as an administrator today. Now it shows me some files but e.g. not the logs. Since I am fighting with it, that is quite a hindrance. In specific, I am talking about the initexmf.log file:

log4cxx: setFile(C:\Users\XXXXXXX\AppData\Local\MiKTeX\2.9\miktex\log/initexmf.log,true) call failed.
log4cxx: IO Exception : status code = 720005
log4cxx: No output stream or file set for the appender named [RollingLogFile].

Sorry, but "MiKTeX Configuration Utility" did not succeed for the following reason:

  MiKTeX cannot retrieve attributes for the directory 'C:\Users\XXXXXXX\AppData\Local\MiKTeX\2.9\miktex\log'.

The log file hopefully contains the information to get MiKTeX going again:

  C:\Users\XXXXXXX\AppData\Local\MiKTeX\2.9\miktex\log\initexmf.log

I even started Notepad++ in administrator mode and still it did not allow me to peek into the file. Why is it so strictly protected?

Fatal Error on first attempt...

My very first attempt looked very promising until ... here's the console output:

D:\_DEVdocker\sf3>docker run -it -v "%cd%\pdf":/miktex/work -v miktex:/miktex/.miktex miktex/miktex pdflatex Inc[A4].tex
pdflatex: security risk: running with elevated privileges
initexmf: security risk: running with elevated privileges
initexmf: security risk: running with elevated privileges
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (MiKTeX 21.6)
entering extended mode
(Inc[A4].tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-04-29>
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 136769 bytes
going to install 57 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/koma-script.tar.lzma...
0.14 MB, 131.05 Mbit/s
extracting files from koma-script.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/koma-script/scrreprt.cls
Document Class: scrreprt 2021/11/13 v3.35 KOMA-Script document class (report)
(/miktex/.miktex/texmfs/install/tex/latex/koma-script/scrkbase.sty
(/miktex/.miktex/texmfs/install/tex/latex/koma-script/scrbase.sty
(/miktex/.miktex/texmfs/install/tex/latex/koma-script/scrlfile.sty
(/miktex/.miktex/texmfs/install/tex/latex/koma-script/scrlfile-hook.sty
(/miktex/.miktex/texmfs/install/tex/latex/koma-script/scrlogo.sty)))
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 15589 bytes
going to install 21 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/graphics.tar.lzma...
0.02 MB, 191.28 Mbit/s
extracting files from graphics.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/graphics/keyval.sty)))
(/miktex/.miktex/texmfs/install/tex/latex/koma-script/tocbasic.sty)
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 7874 bytes
going to install 5 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/footmisc.tar.lzma...
0.01 MB, 136.64 Mbit/s
extracting files from footmisc.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/koma-script/scrsize10pt.clo)
(/miktex/.miktex/texmfs/install/tex/latex/koma-script/typearea.sty))
(/miktex/.miktex/texmfs/install/tex/latex/koma-script/scrlayer-scrpage.sty
(/miktex/.miktex/texmfs/install/tex/latex/koma-script/scrlayer.sty))
1: section
1: chapter
1: chapter
1: section
(/miktex/.miktex/texmfs/install/tex/generic/babel/babel.sty
(/miktex/.miktex/texmfs/install/tex/generic/babel/txtbabel.def)
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 82891 bytes
going to install 154 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/arabi.tar.lzma...
0.08 MB, 302.80 Mbit/s
extracting files from arabi.tar.lzma...
======================================================================

*************************************
* Local config file bblopts.cfg used
*
(/miktex/.miktex/texmfs/install/tex/latex/arabi/bblopts.cfg)
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 3257 bytes
going to install 9 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/babel-english.tar.lzma...
0.00 MB, 85.71 Mbit/s
extracting files from babel-english.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/babel-english/english.ldf))
(/miktex/.miktex/texmfs/install/tex/latex/base/fontenc.sty)
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 42884 bytes
going to install 46 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/latex-tools.tar.lzma...
0.04 MB, 216.45 Mbit/s
extracting files from latex-tools.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/tools/array.sty)
(/miktex/.miktex/texmfs/install/tex/latex/tools/multicol.sty)
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 10695 bytes
going to install 2 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/blindtext.tar.lzma...
0.01 MB, 165.49 Mbit/s
extracting files from blindtext.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/blindtext/blindtext.sty
(/miktex/.miktex/texmfs/install/tex/latex/tools/xspace.sty))
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 921500 bytes
going to install 8 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/geometry.tar.lzma...
0.92 MB, 332.39 Mbit/s
extracting files from geometry.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/geometry/geometry.sty
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 3283 bytes
going to install 7 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/iftex.tar.lzma...
0.00 MB, 80.32 Mbit/s
extracting files from iftex.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/generic/iftex/ifvtex.sty
(/miktex/.miktex/texmfs/install/tex/generic/iftex/iftex.sty))
(/miktex/.miktex/texmfs/install/tex/latex/geometry/geometry.cfg))
(/miktex/.miktex/texmfs/install/tex/latex/graphics/graphicx.sty
(/miktex/.miktex/texmfs/install/tex/latex/graphics/graphics.sty
(/miktex/.miktex/texmfs/install/tex/latex/graphics/trig.sty)
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 1845 bytes
going to install 4 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/graphics-cfg.tar.lzma...
0.00 MB, 52.53 Mbit/s
extracting files from graphics-cfg.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/graphics-cfg/graphics.cfg)
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 10877 bytes
going to install 8 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/graphics-def.tar.lzma...
0.01 MB, 221.98 Mbit/s
extracting files from graphics-def.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/graphics-def/pdftex.def)))
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 15554 bytes
going to install 8 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/l3backend.tar.lzma...
0.02 MB, 214.17 Mbit/s
extracting files from l3backend.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/l3backend/l3backend-pdftex.def)
No file Inc[A4].aux.
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex

======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 37288 bytes
going to install 7 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/mptopdf.tar.lzma...
0.04 MB, 315.33 Mbit/s
extracting files from mptopdf.tar.lzma...
======================================================================
(/miktex/.miktex/texmfs/install/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 4378 bytes
going to install 3 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/epstopdf-pkg.tar.lzma...
0.00 MB, 145.93 Mbit/s
extracting files from epstopdf-pkg.tar.lzma...
======================================================================
 (/miktex/.miktex/texmfs/install/tex/latex/epstopdf-pkg/epstopdf-base.sty
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 293465 bytes
going to install 5 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/infwarerr.tar.lzma...
0.29 MB, 361.52 Mbit/s
extracting files from infwarerr.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/generic/infwarerr/infwarerr.sty)
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 317057 bytes
going to install 5 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/grfext.tar.lzma...
0.32 MB, 355.79 Mbit/s
extracting files from grfext.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/grfext/grfext.sty
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 304244 bytes
going to install 5 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/kvdefinekeys.tar.lzma...
0.30 MB, 375.38 Mbit/s
extracting files from kvdefinekeys.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/generic/kvdefinekeys/kvdefinekeys.sty))
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 500847 bytes
going to install 7 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/kvoptions.tar.lzma...
0.50 MB, 390.71 Mbit/s
extracting files from kvoptions.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/kvoptions/kvoptions.sty
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 409074 bytes
going to install 5 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/ltxcmds.tar.lzma...
0.41 MB, 408.87 Mbit/s
extracting files from ltxcmds.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/generic/ltxcmds/ltxcmds.sty)
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 386446 bytes
going to install 6 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/kvsetkeys.tar.lzma...
0.39 MB, 393.93 Mbit/s
extracting files from kvsetkeys.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/generic/kvsetkeys/kvsetkeys.sty))
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/
package repository digest: ff7763596e8b33b4a511c566bf03f0d9
going to download 6512 bytes
going to install 3 file(s) (1 package(s))
downloading https://ctan.joethei.xyz/systems/win32/miktex/tm/packages/pdftexcmds.tar.lzma...
0.01 MB, 135.67 Mbit/s
extracting files from pdftexcmds.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/generic/pdftexcmds/pdftexcmds.sty)
(/miktex/.miktex/texmfs/install/tex/latex/00miktex/epstopdf-sys.cfg))
! TeX capacity exceeded, sorry [main memory size=3000000].
<argument> ...p_box \vbox_unpack:N \l_shipout_box
                                                  \kern \c_zero_dim
l.4119   \end{scriptsize} \newpage

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on Inc[A4].log.
pdflatex: major issue: So far, no MiKTeX administrator has checked for updates.

D:\_DEVdocker\sf3>

On my local Windows PC, I ran long ago the following in an Admin CommandPrompt:
initexmf --admin --edit-config-file=pdflatex
and entered:
extra_mem_top = 1000000
but this doesn't help Docker I guess. Furthermore I don't know how to check for MiKTeX updates from a CommandPrompt.

Note - my code works using MiKTeX when running the whole process

  • a) as Python files from my GitHub repo executing in a folder on Windows or Linux,
  • b) as a Python Project Index application on Windows or Linux, and even
  • c) in Docker built with TeX Live (except that it insists on using METAFONT in my Docker build FROM Python 3.10, which I want to avoid somehow).

It would be really interesting if I can get this to run ... if possible chained automatically after another docker run -ti command that generates the .tex file to be processed.

EDIT: I add the .tex file here for further testing, comments or other advice. (I inherited the code to generate the TeX file.) I also include the .log file from MiKTeX.
Inc[A4].zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.