Run latexmk in a docker container for building latex.
./latex_build.sh target_latex_file [target_directory_path]
[target_directory_path]
is optional.
If target_directory_path
isn't specified, this script set current working directory as target directory.
This repository has example latex file in tex_src.
./latex_build.sh example ./tex_src
Built pdf will be placed in ./tex_src
You should have latexmkrc
in target directory.