refactor(latex): move GlossarySettings and WordCount modules to HSRTReport class
This commit is contained in:
parent
da5299140b
commit
14766ba7b0
@ -336,3 +336,5 @@
|
||||
\input{\classPath/Modules/Watermark}
|
||||
\input{\classPath/Modules/ToC}
|
||||
\input{\classPath/Modules/Typography}
|
||||
\input{\classPath/Modules/GlossarySettings}
|
||||
\input{\classPath/Modules/WordCount}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
%!TEX root = ../Main.tex
|
||||
%!TEX root = ../../Main.tex
|
||||
\makeglossaries
|
||||
|
||||
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
|
||||
13
HSRTReport/Modules/WordCount.tex
Normal file
13
HSRTReport/Modules/WordCount.tex
Normal 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
4
Main.acn
Normal 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
1
Main.equ
Normal file
@ -0,0 +1 @@
|
||||
\contentsline {myequations}{\equationname ~\hbox to\@tempdima {1:\hfil } Polstellenberechnung}{9}{equation.25}%
|
||||
1
Main.glo
Normal file
1
Main.glo
Normal file
@ -0,0 +1 @@
|
||||
\glossaryentry{Textkörper?\glossentry{Textkoerper}|setentrycounter[]{page}"\glsignore}{10}
|
||||
29
Main.ist
Normal file
29
Main.ist
Normal 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 "."
|
||||
@ -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 ====
|
||||
|
||||
|
||||
@ -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}%
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user