Commit d9b89bdd authored by Danir Tlepov's avatar Danir Tlepov

fixed user_manual hook

parent c0bb4d88
...@@ -3,18 +3,6 @@ ...@@ -3,18 +3,6 @@
SRC=src SRC=src
DOCBOOK-XSL = /usr/share/xml/docbook/stylesheet/docbook-xsl DOCBOOK-XSL = /usr/share/xml/docbook/stylesheet/docbook-xsl
DOCBOOKOPTS=--template=conf/pandoc/book.docbook --smart -t docbook -V lang=ru DOCBOOKOPTS=--template=conf/pandoc/book.docbook --smart -t docbook -V lang=ru
PANDOC_PDF_OPTIONS=--latex-engine=xelatex \
--template=conf/pandoc/template.latex \
-V lang=$(LANGUAGE) \
-V papersize:"a4paper" \
-V geometry:margin=2cm \
-V mainfont="Liberation Serif" \
-V sansfont="Liberation Sans" \
-V classoption=11pt \
--smart \
--no-tex-ligatures
# --highlight-style=kate \
# -V classoption=12pt \
user-manual.md: user-manual.md:
gpp -H -I$(SRC) $(SRC)/index.md > user-manual.md gpp -H -I$(SRC) $(SRC)/index.md > user-manual.md
...@@ -45,12 +33,12 @@ html: user-manual.xml ...@@ -45,12 +33,12 @@ html: user-manual.xml
cp -a $(DOCBOOK-XSL)/images bin/html/resources/docbook cp -a $(DOCBOOK-XSL)/images bin/html/resources/docbook
rm -f user-manual.xml rm -f user-manual.xml
pdf: user-manual.md pdf: user-manual.xml
@echo Creating pdf document @echo Creating pdf document
mkdir -p bin/pdf mkdir -p bin/pdf
# SP_ENCODING="UTF-8" docbook2pdf -o bin user-manual.xml # SP_ENCODING="UTF-8" docbook2pdf -o bin user-manual.xml
pandoc $(PANDOC_PDF_OPTIONS) -o bin/pdf/user-manual.pdf user-manual.md dblatex -b xetex -o bin/user-manual.pdf user-manual.xml
rm -f user-manual.xml user-manual.md rm -f user-manual.xml
clean: clean:
@echo Remove all @echo Remove all
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment