makefile4latex
makefile4latex copied to clipboard
A GNU Makefile for typesetting LaTeX documents.
Sometimes it may be useful not to make any intermediate files inside the working directory. Introduce the following option to select the build directory in configuration files like ```make BUILDDIR...
Can we use [EditorConfig](https://editorconfig.org/) to pass `-y 'defaultIndent: "..."'` to `latexindent`? (See also #22.) To this, we need to extract the values of `indent_style` and `indent_size` for target files, which...
``` $ ls Makefile test(1).tex $ make /bin/sh: 1: Syntax error: "(" unexpected make: *** [Makefile:1903: test(1).pdf] Error 2 ```
```tex \documentclass{article} \usepackage{bookmark} \begin{document} test \end{document} ``` ```bash make BUILDDIR=build TOOLCHAIN=latex_dvips ``` ``` /usr/bin/dvips -Ppdf -z build/test.dvi -o build/test.ps This is dvips(k) 2021.1 (TeX Live 2022/dev) Copyright 2021 Radical Eye...
Currently, `make watch` tries to auto-update all target documents in the directory. Introduce `WATCH_TARGET` to watch only for specific files. Example: ```shell make watch WATCH_TARGET=foo.pdf ```
See: https://github.com/tueda/homebrew-loops/issues/18.
``` ChkTeX v1.7.6 - Copyright 1995-96 Jens T. Berger Thielemann. Compiled with POSIX extended regex support. No errors printed; One warning printed; No user suppressed warnings; No line suppressed warnings....
If `BUILDDIR` is set, then the [`filecontents`](https://www.ctan.org/pkg/filecontents) package writes files into the build directory. When the output files contain `.bib` files, then `bibtex` can't find them.
For the [`xr`](https://www.ctan.org/pkg/xr) package etc., it would be nice if one could write a dependency on an auxiliary file of another file. Currently, one has to write something like: ```make...
For example, `on_output_pdf` called as `$(call on_output_pdf,PDF-FILE-NAME)`.