Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fithesis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
External Relations
Document Templates
fithesis
Commits
c12ea770
There was an error fetching the commit references. Please try again later.
Commit
c12ea770
authored
8 years ago
by
Vít Novotný
Browse files
Options
Downloads
Patches
Plain Diff
Refactored the code.
parent
8fe3c3e8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fithesis.dtx
+21
-24
21 additions, 24 deletions
fithesis.dtx
with
21 additions
and
24 deletions
fithesis.dtx
+
21
−
24
View file @
c12ea770
...
@@ -1284,7 +1284,7 @@
...
@@ -1284,7 +1284,7 @@
% the same effect.
% the same effect.
% \begin{macrocode}
% \begin{macrocode}
\newif\ifthesis@loaded\thesis@loadedfalse
\newif\ifthesis@loaded\thesis@loadedfalse
\
AtEndPreamble
{\thesisload}
\
BeforeBeginEnvironment{document}
{\thesisload}
\def\thesis@load{\thesisload}
\def\thesis@load{\thesisload}
\def\thesisload{%
\def\thesisload{%
\ifthesis@loaded\else
\ifthesis@loaded\else
...
@@ -1312,24 +1312,6 @@
...
@@ -1312,24 +1312,6 @@
\RequirePackage[base]{babel}}
\RequirePackage[base]{babel}}
\fi
\fi
% \end{macrocode}
% \end{macrocode}
% If the \textsf{babel} or \textsf{polyglossia} locale is identical
% to the thesis locale, the |\thesis@selectLocale| macro will be
% used to globally set up the \textsf{csquotes} style appropriate for
% the given locale.
% \begin{macrocode}
\ifx\languagename\empty\else
\begingroup
\edef\@doclocale{\languagename}%
\ifx\@doclocale\thesis@locale
\endgroup
\AtBeginDocument{%
\thesis@selectLocale{\thesis@locale}}%
\else
\endgroup
\fi
\fi
\fi
% \end{macrocode}
% Consequently, the style files are loaded. If the user specified an
% Consequently, the style files are loaded. If the user specified an
% explicit empty string as the value of |\thesis@style|, do nothing.
% explicit empty string as the value of |\thesis@style|, do nothing.
% \begin{macrocode}
% \begin{macrocode}
...
@@ -1337,6 +1319,23 @@
...
@@ -1337,6 +1319,23 @@
\thesis@requireStyle{\thesis@style}
\thesis@requireStyle{\thesis@style}
\fi
\fi
% \end{macrocode}
% \end{macrocode}
% If the \textsf{babel} or \textsf{polyglossia} locale is identical
% to the thesis locale, the |\thesis@selectLocale| macro will be
% used to globally set up the \textsf{csquotes} style appropriate for
% the given locale.
% \begin{macrocode}
\ifx\languagename\empty\else
\begingroup
\edef\@doclocale{\languagename}%
\ifx\@doclocale\thesis@locale
\endgroup
\AtBeginDocument{%
\thesis@selectLocale{\thesis@locale}}%
\else
\endgroup
\fi
\fi
% \end{macrocode}
% With the placeholder strings loaded from the locale files, we
% With the placeholder strings loaded from the locale files, we
% can now inject metadata into the resulting PDF file. To this
% can now inject metadata into the resulting PDF file. To this
% end, the \textsf{hyperref} package is conditionally included with
% end, the \textsf{hyperref} package is conditionally included with
...
@@ -1557,14 +1556,12 @@
...
@@ -1557,14 +1556,12 @@
% locale, \textsf{csquotes}, and hyphenation settings return back to
% locale, \textsf{csquotes}, and hyphenation settings return back to
% what the user has specified after the localized blocks of
% what the user has specified after the localized blocks of
% typographic material.
% typographic material.
%
% If not loaded by the user, the \textsf{csquotes} package gets
% loaded at the end of the preamble.
% \begin{macrocode}
% \begin{macrocode}
\AtEndPreamble{\thesis@require{csquotes}}
\def\thesis@selectLocale#1{%
\def\thesis@selectLocale#1{%
\edef\thesis@locale{#1}%
\edef\thesis@locale{#1}%
\csq@setstyle{\thesis@@{csquotesStyle}}%
\ltx@ifpackageloaded{csquotes}{%
\csq@setstyle{\thesis@@{csquotesStyle}}%
}{}%
\ltx@ifpackageloaded{polyglossia}{%
\ltx@ifpackageloaded{polyglossia}{%
\selectlanguage{\thesis@locale}
\selectlanguage{\thesis@locale}
}{%
}{%
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment