From 76084f4a268e2de36c4144e1a8891c038178f8ea Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 31 Mar 2024 21:44:15 +0200 Subject: docs(example): Add an example directory --- example/content/static/title.tex | 0 example/headers/preamble.tex | 0 example/headers/preamble_local.tex | 0 example/lpm.toml | 19 +++++++++++++++++++ example/main.tex | 21 +++++++++++++++++++++ 5 files changed, 40 insertions(+) create mode 100644 example/content/static/title.tex create mode 100644 example/headers/preamble.tex create mode 100644 example/headers/preamble_local.tex create mode 100644 example/lpm.toml create mode 100644 example/main.tex (limited to 'example') diff --git a/example/content/static/title.tex b/example/content/static/title.tex new file mode 100644 index 0000000..e69de29 diff --git a/example/headers/preamble.tex b/example/headers/preamble.tex new file mode 100644 index 0000000..e69de29 diff --git a/example/headers/preamble_local.tex b/example/headers/preamble_local.tex new file mode 100644 index 0000000..e69de29 diff --git a/example/lpm.toml b/example/lpm.toml new file mode 100644 index 0000000..5a3565d --- /dev/null +++ b/example/lpm.toml @@ -0,0 +1,19 @@ +[last_chapter] +user_name = "static" +number = 0 + +[templates] +section = ''' +%! TEX root = ../../../main.tex +% LTeX: language=en-GB + +\section{REPLACMENT_SECTION_TITLE} % DATE +This is some text +''' + +chapter = ''' +%! TEX root = ../../main.tex +% LTeX: language=en-GB + +\chapter{REPLACEMENT_CHAPTER} +''' diff --git a/example/main.tex b/example/main.tex new file mode 100644 index 0000000..d5f0d2f --- /dev/null +++ b/example/main.tex @@ -0,0 +1,21 @@ +% LTeX: language=en-GB +\documentclass[a4paper, 12pt]{report} +\input{headers/preamble.tex} +\input{headers/preamble_local.tex} + + +\title{\textbf{Some Title}} +\author{Some Author} +\authors{name\inst} +\years{2024} +\date{\Today} + +\includeonly{} + +\begin{document} + \input{content/static/title} + + % NEXT_CHAPTER + + \printbibliography\relax +\end{document} -- cgit 1.4.1