Useful makefile for (relatively) big LaTeX projects with automatic generation of graphics from SVG and TEX files (i.e. Inkscape or Circuitikz documents). Can be launched from any IDE (like TeXstudio) with small set-up.
- Create a project folder and put makefile in it.
- If you make use of included .tex portions, add subfolders to TEX_DIR variable
- Launch
$ make treeto create folder tree - Put main document in project root and call it main.tex (or manually edit makefile)
- Put raster images in
img/rasters - Put image projects in
img/originals(i.e. .SVG, .TEX, ...). Note: for .TEX images is suggested the standalone document class. - Do
$ makeand wait. You'll find the document inbuild/main.pdf
- Open settings (Option > Configure TeXstudio);
- In Build menu add new user command (writing
make build/?m.pdf | txs:///view), in additional paths addbuildfolder for log and PDF files. Then save; - Open again settings. In Shortcuts search for user command in Menus>Tools>User then bind with a custom shortkey
- Save, close TeXstudio.
- generate raster files from .xcf GIMP files
- adapt to work with windows