about summary refs log tree commit diff stats
path: root/templates/latex/lpm.toml
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-11 08:16:26 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-11 08:16:26 +0200
commitea08ac63b52bdb4356921efcc145582bc412ad9f (patch)
treef4e3d75145dc8cf60ccad43c30fee95cf0ca64a7 /templates/latex/lpm.toml
parentfix(common/scripts/renew_copyright_header.sh): Add further file extensions (diff)
downloadflake-templates-ea08ac63b52bdb4356921efcc145582bc412ad9f.tar.gz
flake-templates-ea08ac63b52bdb4356921efcc145582bc412ad9f.zip
feat(templates/latex): Name the `main.tex` file after the project
This results in a reasonable name for the resulting PDF, instead of the
generic `main.pdf`.
Diffstat (limited to 'templates/latex/lpm.toml')
-rw-r--r--templates/latex/lpm.toml4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/latex/lpm.toml b/templates/latex/lpm.toml
index 5a3565d..636eae9 100644
--- a/templates/latex/lpm.toml
+++ b/templates/latex/lpm.toml
@@ -4,7 +4,7 @@ number = 0
 
 [templates]
 section = '''
-%! TEX root = ../../../main.tex
+%! TEX root = ../../../%INIT_APPLICATION_NAME
 % LTeX: language=en-GB
 
 \section{REPLACMENT_SECTION_TITLE} % DATE
@@ -12,7 +12,7 @@ This is some text
 '''
 
 chapter = '''
-%! TEX root = ../../main.tex
+%! TEX root = ../../%INIT_APPLICATION_NAME
 % LTeX: language=en-GB
 
 \chapter{REPLACEMENT_CHAPTER}