From aee04b95de84a042f3999d4ac03e5520a70ee09e Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Mon, 31 Jul 2023 04:48:33 +0300 Subject: [PATCH] move tex files into separate directory. --- Makefile | 25 ++++++++++++++----------- const.tex => tex/const.tex | 0 i11n.tex => tex/i11n.tex | 0 main.tex => tex/main.tex | 2 +- {page => tex/page}/title.tex | 0 shell.tex => tex/shell.tex | 0 style.tex => tex/style.tex | 0 7 files changed, 15 insertions(+), 12 deletions(-) rename const.tex => tex/const.tex (100%) rename i11n.tex => tex/i11n.tex (100%) rename main.tex => tex/main.tex (96%) rename {page => tex/page}/title.tex (100%) rename shell.tex => tex/shell.tex (100%) rename style.tex => tex/style.tex (100%) diff --git a/Makefile b/Makefile index 59c865d..6fced68 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ build = $(CURDIR)/build -src = $(CURDIR)/main.tex -target = $(build)/main.pdf -targetru = $(build)/voronind_ru.pdf -targeten = $(build)/voronind_en.pdf +src = $(CURDIR)/tex +target = $(src)/main.tex +output = $(build)/main.pdf +outputen = $(build)/voronind_en.pdf +outputru = $(build)/voronind_ru.pdf .PHONY: all -all: clean ru en view +all: clean en ru view .PHONY: clean clean: @@ -14,18 +15,20 @@ clean: .PHONY: en en: @mkdir -p $(build);\ + cd $(src);\ export RESUME_LANG=en;\ - lualatex --output-dir=$(build) $(src);\ - mv $(target) $(targeten) + lualatex --output-dir=$(build) $(target);\ + mv $(output) $(outputen) .PHONY: ru ru: @mkdir -p $(build);\ + cd $(src);\ export RESUME_LANG=ru;\ - lualatex --output-dir=$(build) $(src);\ - mv $(target) $(targetru) + lualatex --output-dir=$(build) $(target);\ + mv $(output) $(outputru) .PHONY: view view: - @xdg-open $(targeten);\ - xdg-open $(targetru) + @xdg-open $(outputen);\ + xdg-open $(outputru) diff --git a/const.tex b/tex/const.tex similarity index 100% rename from const.tex rename to tex/const.tex diff --git a/i11n.tex b/tex/i11n.tex similarity index 100% rename from i11n.tex rename to tex/i11n.tex diff --git a/main.tex b/tex/main.tex similarity index 96% rename from main.tex rename to tex/main.tex index 88450f5..40f2928 100644 --- a/main.tex +++ b/tex/main.tex @@ -30,7 +30,7 @@ linktoc = all } -\graphicspath{ {./image} } % specify where images are stored. +\graphicspath{ {../image} } % specify where images are stored. \babelprovide[import]{russian} % add russian support. \babelfont{rm}{montserrat} % use custom serif font for english. diff --git a/page/title.tex b/tex/page/title.tex similarity index 100% rename from page/title.tex rename to tex/page/title.tex diff --git a/shell.tex b/tex/shell.tex similarity index 100% rename from shell.tex rename to tex/shell.tex diff --git a/style.tex b/tex/style.tex similarity index 100% rename from style.tex rename to tex/style.tex