refactor(latex): move GlossarySettings and WordCount modules to HSRTReport class

This commit is contained in:
Frederik Beimgraben 2025-10-29 22:19:44 +01:00
parent da5299140b
commit 14766ba7b0
10 changed files with 51 additions and 19 deletions

View File

@ -336,3 +336,5 @@
\input{\classPath/Modules/Watermark}
\input{\classPath/Modules/ToC}
\input{\classPath/Modules/Typography}
\input{\classPath/Modules/GlossarySettings}
\input{\classPath/Modules/WordCount}

View File

@ -1,4 +1,4 @@
%!TEX root = ../Main.tex
%!TEX root = ../../Main.tex
\makeglossaries
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}

View File

@ -0,0 +1,13 @@
% !TEX root = ../../Main.tex
% Source: https://docs.overleaf.com/writing-and-editing/using-word-count
\newcommand{\quickwordcount}[1]{%
\immediate\write18{texcount -1 -sum -merge -q #1.tex > Build/words.sum }%
\input{Build/words.sum} words%
}
\newcommand{\detailtexcount}[1]{%
\immediate\write18{texcount -merge -sum -q #1.tex > Build/.wcdetail }%
\verbatiminput{Build/.wcdetail}%
}

4
Main.acn Normal file
View File

@ -0,0 +1,4 @@
\glossaryentry{Abb.?\glossentry{a:Abb}|setentrycounter[]{page}"\glsignore}{10}
\glossaryentry{MPG?\glossentry{a:MPG}|setentrycounter[]{page}"\glsignore}{10}
\glossaryentry{MS?\glossentry{a:MS}|setentrycounter[]{page}"\glsignore}{10}
\glossaryentry{Tab.?\glossentry{a:Tab}|setentrycounter[]{page}"\glsignore}{10}

1
Main.equ Normal file
View File

@ -0,0 +1 @@
\contentsline {myequations}{\equationname ~\hbox to\@tempdima {1:\hfil } Polstellenberechnung}{9}{equation.25}%

1
Main.glo Normal file
View File

@ -0,0 +1 @@
\glossaryentry{Textkörper?\glossentry{Textkoerper}|setentrycounter[]{page}"\glsignore}{10}

29
Main.ist Normal file
View File

@ -0,0 +1,29 @@
% makeindex style file created by the glossaries package
% for document 'Main' on 2025-10-29
actual '?'
encap '|'
level '!'
quote '"'
keyword "\\glossaryentry"
preamble "\\glossarysection[\\glossarytoctitle]{\\glossarytitle}\\glossarypreamble\n\\begin{theglossary}\\glossaryheader\n"
postamble "\%\n\\end{theglossary}\\glossarypostamble\n"
group_skip "\\glsgroupskip\n"
item_0 "\%\n"
item_1 "\%\n"
item_2 "\%\n"
item_01 "\%\n"
item_x1 "\\relax \\glsresetentrylist\n"
item_12 "\%\n"
item_x2 "\\relax \\glsresetentrylist\n"
delim_0 "\{\\glossaryentrynumbers\{\\relax "
delim_1 "\{\\glossaryentrynumbers\{\\relax "
delim_2 "\{\\glossaryentrynumbers\{\\relax "
delim_t "\}\}"
delim_n "\\delimN "
delim_r "\\delimR "
headings_flag 1
heading_prefix "\\glsgroupheading\{"
heading_suffix "\}\\relax \\glsresetentrylist "
symhead_positive "glssymbols"
numhead_positive "glsnumbers"
page_compositor "."

BIN
Main.pdf Normal file

Binary file not shown.

View File

@ -6,12 +6,7 @@
\usepackage[nameinlink, noabbrev]{cleveref}
% ==== /Imports ====
% === Wordcount ===
\input{TeX/WordCount}
% === /Wordcount ===
% ==== Glossary and Bib ====
\input{TeX/GlossarySettings}
\addbibresource{Main.bib}
% ==== /Glossary and Bib ====

View File

@ -1,13 +0,0 @@
% !TEX root = ../Main.tex
% Source: https://docs.overleaf.com/writing-and-editing/using-word-count
\newcommand{\quickwordcount}[1]{%
\immediate\write18{texcount -1 -sum -merge -q #1.tex > Build/words.sum }%
\input{Build/words.sum} words%
}
\newcommand{\detailtexcount}[1]{%
\immediate\write18{texcount -merge -sum -q #1.tex > Build/.wcdetail }%
\verbatiminput{Build/.wcdetail}%
}