-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildthebook.cmd
37 lines (29 loc) · 1.17 KB
/
buildthebook.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@echo off
setlocal
cd /d "%~dp0"
@rem TeX engine
set motorodetex=-xelatex
if /i "%~1"=="-lualatex" (set motorodetex=-lualatex)
if /i "%~1"=="-xelatex" (set motorodetex=-xelatex)
if /i "%~1"=="/lualatex" (set motorodetex=-lualatex)
if /i "%~1"=="/xelatex" (set motorodetex=-xelatex)
if /i "%~1"=="lualatex" (set motorodetex=-lualatex)
if /i "%~1"=="xelatex" (set motorodetex=-xelatex)
if /i "%~1"=="-luatex" (set motorodetex=-lualatex)
if /i "%~1"=="-xetex" (set motorodetex=-xelatex)
if /i "%~1"=="/luatex" (set motorodetex=-lualatex)
if /i "%~1"=="/xetex" (set motorodetex=-xelatex)
if /i "%~1"=="luatex" (set motorodetex=-lualatex)
if /i "%~1"=="xetex" (set motorodetex=-xelatex)
if /i "%~1"=="-lua" (set motorodetex=-lualatex)
if /i "%~1"=="-xe" (set motorodetex=-xelatex)
if /i "%~1"=="/lua" (set motorodetex=-lualatex)
if /i "%~1"=="/xe" (set motorodetex=-xelatex)
if /i "%~1"=="lua" (set motorodetex=-lualatex)
if /i "%~1"=="xe" (set motorodetex=-xelatex)
if "%~1"=="" (set motorodetex=-xelatex)
@rem build (the imperative form)
set konstruu=latexmk %motorodetex% -file-line-error -cd -synctex=1 -interaction=nonstopmode -halt-on-error -silent
%konstruu% libro
endlocal
timeout 5