Add optional presentation cntd.

This commit is contained in:
Filip Gralinski 2025-01-02 11:46:38 +01:00
parent e3858113c3
commit 7a3c1bb4f0
5 changed files with 16 additions and 2 deletions

View File

@ -17,5 +17,6 @@
"supervisor": "none",
"album_no": "none",
"beeminder_support": "no",
"contribution_declaration": "{{ 'yes' if cookiecutter.latex_template != 'pw-thesis' and cookiecutter.latex_template != 'amu' else 'no' }}"
"contribution_declaration": "{{ 'yes' if cookiecutter.latex_template != 'pw-thesis' and cookiecutter.latex_template != 'amu' else 'no' }}",
"with_presentation": "no"
}

View File

@ -155,6 +155,10 @@ if [ "{{ cookiecutter.contribution_declaration }}" = "yes" ]; then
cp -r _optional_files/_contribution_declaration/* .
fi
if [ "{{ cookiecutter.with_presentation }}" = "yes" ]; then
cp -r _optional_files/_presentation/presentation.tex {{cookiecutter.paper_id}}-presentation.tex
fi
rm -rf _latex-templates _optional_files
if [ -e .git ]; then

View File

@ -18,3 +18,4 @@ default_context:
album_no: '{{ cookiecutter.album_no }}'
beeminder_support: '{{ cookiecutter.beeminder_support }}'
contribution_declaration: '{{ cookiecutter.contribution_declaration }}'
contribution_declaration: '{{ cookiecutter.with_presentation }}'

View File

@ -153,6 +153,7 @@ vcs.xml
*.run.xml
/auto
{{cookiecutter.paper_id}}.pdf
{{cookiecutter.paper_id}}-presentation.pdf
{{cookiecutter.paper_id}}.zip
autozoil-log.txt
stats.txt

View File

@ -7,7 +7,7 @@ HAS_APPENDIX={{cookiecutter.with_appendix}}
LATEX_TEMPLATE={{cookiecutter.latex_template}}
WITH_ARXIV_PACKAGE={{cookiecutter.with_arxiv_package}}
CONTENT_TEX_SOURCES=$(filter-out $(PAPER_ID).tex config.tex extras.tex metadata.tex preamble.tex the-appendix.tex, $(shell find . -name '*.tex'))
CONTENT_TEX_SOURCES=$(filter-out $(PAPER_ID).tex $(PAPER_ID)-presentation.tex config.tex extras.tex metadata.tex preamble.tex the-appendix.tex, $(shell find . -name '*.tex'))
CURRENT_DIR=$(shell pwd)
AUTOZOIL_DIR?=/opt/autozoil
@ -70,6 +70,13 @@ $(PAPER_ID).pdf: $(PAPER_ID).tex preamble.tex metadata.tex $(CONTENT_TEX_SOURCES
pdflatex $<
pdflatex $<
{% if cookiecutter.with_presentation == 'yes' %}
$(PAPER_ID)-presentation.pdf: $(PAPER_ID)-presentation.tex
pdflatex $<
pdflatex $<
pdflatex $<
{% endif %}
# to be copied and pasted as plain text (without LaTeX stuff)
abstract.txt: abstract.tex
cat $< | perl -pne 's/noqa\{[^}]+\}//g' | detex > $@