Minimal TeXtidote image useful to lint and spell- and grammar-check TeX documents.
10K+
Minimal TeXtidote image useful to lint and spell- and grammar-check TeX documents. Used in TeXtidote Action, a GitHub Action used to check your TeX documents the CI/CD way.
You might find this image be generic enough to also be used outside the context of the TeXtidote GitHub Action.
docker run -it -v '/path/to/workspace:/textidote' gokhlayeh/textidote ROOT_FILE WORKING_DIR REPORT_TYPE REPORT_FILE THRESHOLD_ERROR [ARGS...]
ROOT_FILERequired - The root LaTeX file to be linted.
WORKING_DIRRequired - Working directory inside the container to execute TeXtidote in. Pass empty string if not required, example: "".
REPORT_TYPEOptional - The type of TeXtidote report to generate (referring to TeXtidote's --output option). Example: singleline, html
REPORT_FILEOptional - The file path of TeXtidote report. If omitted or empty, report is printed to tty.
THRESHOLD_ERROROptional - The threshold for the number of warnings from TeXtidote above which non-zero exit code is returned.
ARGSOptional - Extra arguments to be passed to TeXtidote. Any arguments must be passed in a single block of quotes, example: '--quiet --check en --dict en.dict'.
Mount directory $(pwd)/doc/ into container and lint $(pwd)/doc/main.tex. Report findings in singleline format.
docker run -it --rm -v "$(pwd)/doc:/doc" gokhlayeh/textidote "main.tex" "/doc" singleline
Write findings in html format to report.html inside mount directory.
docker run -it --rm -v "$(pwd)/doc:/doc" gokhlayeh/textidote "main.tex" "/doc" html 'report.html'
Use English (en) spell-checker.
docker run -it --rm -v "$(pwd)/doc:/doc" gokhlayeh/textidote "main.tex" "/doc" '' '' '' '--check en'
If you feel limited by the given entrypoint.sh syntax, remember that you can overwrite the default entrypoint via docker run ... --entrypoint ....
Inside the container you can execute TeXtidote simply via /usr/local/bin/textidote. This is a simple shell script calling the TeXtidote .jar located at /usr/local/share/java/textidote/textidote.jar.
Content type
Image
Digest
sha256:f0fe1a468…
Size
354.3 MB
Last updated
over 3 years ago
docker pull gokhlayeh/textidote