Add optional presentation cntd.
This commit is contained in:
parent
e3858113c3
commit
7a3c1bb4f0
@ -17,5 +17,6 @@
|
|||||||
"supervisor": "none",
|
"supervisor": "none",
|
||||||
"album_no": "none",
|
"album_no": "none",
|
||||||
"beeminder_support": "no",
|
"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"
|
||||||
}
|
}
|
||||||
|
@ -155,6 +155,10 @@ if [ "{{ cookiecutter.contribution_declaration }}" = "yes" ]; then
|
|||||||
cp -r _optional_files/_contribution_declaration/* .
|
cp -r _optional_files/_contribution_declaration/* .
|
||||||
fi
|
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
|
rm -rf _latex-templates _optional_files
|
||||||
|
|
||||||
if [ -e .git ]; then
|
if [ -e .git ]; then
|
||||||
|
@ -18,3 +18,4 @@ default_context:
|
|||||||
album_no: '{{ cookiecutter.album_no }}'
|
album_no: '{{ cookiecutter.album_no }}'
|
||||||
beeminder_support: '{{ cookiecutter.beeminder_support }}'
|
beeminder_support: '{{ cookiecutter.beeminder_support }}'
|
||||||
contribution_declaration: '{{ cookiecutter.contribution_declaration }}'
|
contribution_declaration: '{{ cookiecutter.contribution_declaration }}'
|
||||||
|
contribution_declaration: '{{ cookiecutter.with_presentation }}'
|
||||||
|
1
{{cookiecutter.paper_repo_name}}/.gitignore
vendored
1
{{cookiecutter.paper_repo_name}}/.gitignore
vendored
@ -153,6 +153,7 @@ vcs.xml
|
|||||||
*.run.xml
|
*.run.xml
|
||||||
/auto
|
/auto
|
||||||
{{cookiecutter.paper_id}}.pdf
|
{{cookiecutter.paper_id}}.pdf
|
||||||
|
{{cookiecutter.paper_id}}-presentation.pdf
|
||||||
{{cookiecutter.paper_id}}.zip
|
{{cookiecutter.paper_id}}.zip
|
||||||
autozoil-log.txt
|
autozoil-log.txt
|
||||||
stats.txt
|
stats.txt
|
||||||
|
@ -7,7 +7,7 @@ HAS_APPENDIX={{cookiecutter.with_appendix}}
|
|||||||
LATEX_TEMPLATE={{cookiecutter.latex_template}}
|
LATEX_TEMPLATE={{cookiecutter.latex_template}}
|
||||||
WITH_ARXIV_PACKAGE={{cookiecutter.with_arxiv_package}}
|
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)
|
CURRENT_DIR=$(shell pwd)
|
||||||
AUTOZOIL_DIR?=/opt/autozoil
|
AUTOZOIL_DIR?=/opt/autozoil
|
||||||
@ -70,6 +70,13 @@ $(PAPER_ID).pdf: $(PAPER_ID).tex preamble.tex metadata.tex $(CONTENT_TEX_SOURCES
|
|||||||
pdflatex $<
|
pdflatex $<
|
||||||
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)
|
# to be copied and pasted as plain text (without LaTeX stuff)
|
||||||
abstract.txt: abstract.tex
|
abstract.txt: abstract.tex
|
||||||
cat $< | perl -pne 's/noqa\{[^}]+\}//g' | detex > $@
|
cat $< | perl -pne 's/noqa\{[^}]+\}//g' | detex > $@
|
||||||
|
Loading…
Reference in New Issue
Block a user