diff --git a/FRIteza.cls b/FRIteza.cls index f8eb439..16f8199 100644 --- a/FRIteza.cls +++ b/FRIteza.cls @@ -19,7 +19,7 @@ \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesClass{FRIteza}[v2.20190301 +\ProvidesClass{FRIteza}[v2.20190305 XeLaTeX doctoral dissertation class] \RequirePackage{ifxetex} diff --git a/README.md b/README.md index 9ccb9ca..f2bc88f 100644 --- a/README.md +++ b/README.md @@ -83,8 +83,8 @@ Make sure that a `latexmk` config file named `.latexmkrc` and Visual Studio Code The main TeX file is `thesis.tex`, the other TeX files are individual chapters. The folder `img/` contains the images. #### Thesis ID on cover page -After your doctoral thesis is approved by the UL FRI Senate, you will receive a thesis `ID` number (in decimal format). Place the `ID` in your `thesis.tex` file. Look for line with command `\spine{}` and replace the `` with your `ID` (in decimal format). Rebuild with stage `press`. The generated PDF will include a cover page with the thesis `ID` (shown in hexadecimal). +After your doctoral dissertation is approved by the UL FRI Senate, you will receive a dissertation `ID` (a number in decimal format). Place the `ID` in your `thesis.tex` file. Look for the line with command `\spine{}` and replace the `` with your `ID` (in decimal format). Rebuild with stages `gold` and `press`. The gold version is intended for email distribution and upload to digital repositories. The press version includes a cover page with the thesis `ID` (shown in hexadecimal) and is intended for printing and bookbinding. ### Using an IDE diff --git a/demo-asbook/.latexmkrc b/demo-asbook/.latexmkrc index 4028c53..dc76a53 100644 --- a/demo-asbook/.latexmkrc +++ b/demo-asbook/.latexmkrc @@ -27,4 +27,4 @@ $pdf_mode=5; # $pre_tex_code='\providecommand{\setstage}{gold}'; # $jobname="thesis-gold"; -@default_files = ('thesis'); \ No newline at end of file +@default_files = ('thesis'); diff --git a/demo-asbook/out/thesis-alpha.pdf b/demo-asbook/out/thesis-alpha.pdf index 504ef24..9b4fdbf 100644 Binary files a/demo-asbook/out/thesis-alpha.pdf and b/demo-asbook/out/thesis-alpha.pdf differ diff --git a/demo-asbook/out/thesis-press.pdf b/demo-asbook/out/thesis-press.pdf index b9681b3..1009ce8 100644 Binary files a/demo-asbook/out/thesis-press.pdf and b/demo-asbook/out/thesis-press.pdf differ diff --git a/demo-bypub/.latexmkrc b/demo-bypub/.latexmkrc index 4028c53..dc76a53 100644 --- a/demo-bypub/.latexmkrc +++ b/demo-bypub/.latexmkrc @@ -27,4 +27,4 @@ $pdf_mode=5; # $pre_tex_code='\providecommand{\setstage}{gold}'; # $jobname="thesis-gold"; -@default_files = ('thesis'); \ No newline at end of file +@default_files = ('thesis'); diff --git a/demo-bypub/out/thesis-alpha.pdf b/demo-bypub/out/thesis-alpha.pdf index e1ef32b..b2b7adc 100644 Binary files a/demo-bypub/out/thesis-alpha.pdf and b/demo-bypub/out/thesis-alpha.pdf differ diff --git a/demo-bypub/out/thesis-press.pdf b/demo-bypub/out/thesis-press.pdf index 6ac8f5b..166e395 100644 Binary files a/demo-bypub/out/thesis-press.pdf and b/demo-bypub/out/thesis-press.pdf differ diff --git a/demo-empty/.latexmkrc b/demo-empty/.latexmkrc index 4028c53..dc76a53 100644 --- a/demo-empty/.latexmkrc +++ b/demo-empty/.latexmkrc @@ -27,4 +27,4 @@ $pdf_mode=5; # $pre_tex_code='\providecommand{\setstage}{gold}'; # $jobname="thesis-gold"; -@default_files = ('thesis'); \ No newline at end of file +@default_files = ('thesis'); diff --git a/demo-empty/out/thesis-alpha.pdf b/demo-empty/out/thesis-alpha.pdf index 5cdd020..42c077c 100644 Binary files a/demo-empty/out/thesis-alpha.pdf and b/demo-empty/out/thesis-alpha.pdf differ diff --git a/demo-empty/out/thesis-press.pdf b/demo-empty/out/thesis-press.pdf index 52f907a..c54d628 100644 Binary files a/demo-empty/out/thesis-press.pdf and b/demo-empty/out/thesis-press.pdf differ diff --git a/editor-cfg/build b/editor-cfg/build index c7e04c0..82d9af8 100755 --- a/editor-cfg/build +++ b/editor-cfg/build @@ -4,7 +4,7 @@ function usage { printf "\n" - printf "Usage: build \n" + printf "Usage: build []\n" printf "\n" printf " Build pdf in stage:\n" printf " pre-alpha, alpha, beta, gamma, gold, press.\n" @@ -20,7 +20,11 @@ function usage_arg } # check arguments -if [ $# -lt 1 ]; then usage_arg; fi +if [ $# -lt 1 ]; then + # build no parameter + latexmk -synctex=1 -file-line-error + exit $? +fi if [ $# -gt 1 ]; then usage; fi # check stage diff --git a/editor-cfg/build.bat b/editor-cfg/build.bat index 568062e..4b7ff8a 100755 --- a/editor-cfg/build.bat +++ b/editor-cfg/build.bat @@ -4,7 +4,11 @@ set argC=0 for %%x in (%*) do Set /A argC+=1 -if %argC% LSS 1 goto usage-arg +if %argC% LSS 1 ( + :: build no param + latexmk -synctex=1 -file-line-error + exit /b %errorlevel% +) if %argC% GTR 1 goto usage SET s=%1 @@ -14,7 +18,7 @@ SET c=\newcommand{\stage}{%s%} :: check stage goto :switch-case-%s% 2>nul || ( echo. - echo Usage: build ^ + echo Usage: build [^] echo. echo ^ Build pdf in stage: echo pre-alpha, alpha, beta, gamma, gold, press. @@ -35,7 +39,7 @@ exit /b %errorlevel% echo Argument missing, specify stage: pre-alpha, alpha, beta, gamma, gold, press :usage echo. -echo Usage: build ^ +echo Usage: build [^] echo. echo ^ Build pdf in stage: echo pre-alpha, alpha, beta, gamma, gold, press.