Skip to content

Commit

Permalink
feat: add thesis type phdphil
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanlukasczyk committed Apr 19, 2024
1 parent 4514606 commit e4a8174
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to
- Fix the referencing with cleveref's `\cref` etc. for the `resq` (research
questions) and `hyp` (hypotheses) environments
(see [#8](https://github.com/se2p/se2thesis/issues/8))
- Add the thesis type `phdphil` for a PhD thesis in philosophy.

## [v3.3.1] – 2024–02–23

Expand Down
Binary file modified examples/se2thesis-master-thesis-example.pdf
Binary file not shown.
49 changes: 32 additions & 17 deletions se2thesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@
% |bachelor| for a bachelor thesis, |bachelorproposal| for a proposal to
% a bachelor thesis, |master| for a master thesis, |masterproposal| for
% a proposal to a master thesis, |phdproposal| for a proposal to a PhD thesis,
% |phd| for a PhD thesis in the natural sciences and |phdeng| for a PhD thesis
% in engineering.
% |phd| for a PhD thesis in the natural sciences, |phdeng| for a PhD thesis
% in engineering, and |phdphil| for a PhD thesis in philosophy.
% \end{function}
%
% \begin{function}{colormode}
Expand Down Expand Up @@ -761,6 +761,7 @@
},
thesistype / phd .code:n = \tl_gset:Nn \l_@@_thesis_type_tl {phd},
thesistype / phdeng .code:n = \tl_gset:Nn \l_@@_thesis_type_tl {phdeng},
thesistype / phdphil .code:n = \tl_gset:Nn \l_@@_thesis_type_tl {phdphil},
thesistype / phdproposal .code:n = {
\tl_gset:Nn \l_@@_thesis_type_tl {phdproposal}
},
Expand Down Expand Up @@ -1258,23 +1259,37 @@
in~ partial~ fulfillment~ of~ obtaining\\
the~ degree~ of~ a~ Doctor~ of~ Engineering
} {
\tl_if_eq:NnT \l_@@_thesis_type_tl { bachelor }
{ \GetTranslation{Bachelor-thesis} }
\tl_if_eq:NnT \l_@@_thesis_type_tl { bachelorproposal }
{ \GetTranslation{Bachelor-thesis-proposal} }
\tl_if_eq:NnT \l_@@_thesis_type_tl { master }
{ \GetTranslation{Master-thesis} }
\tl_if_eq:NnT \l_@@_thesis_type_tl { masterproposal }
{ \GetTranslation{Master-thesis-proposal} }
\tl_if_eq:NnT \l_@@_thesis_type_tl { phdproposal }
{ \GetTranslation{PhD-thesis-proposal} }
\tl_if_empty:NF \l_@@_degreeprogramme_tl
\tl_if_eq:NnTF \l_@@_thesis_type_tl { phdphil }
{
\ in~\l_@@_degreeprogramme_tl
Dissertation~ zur~ Erlangung~ des~ Doktorgrades\\
der~ Philosophie~ (Dr.\,phil.)\\
eingereicht~ an~ der~ Fakultät~ für~ Informatik~ und~ Mathematik\\
der~ Universität~ Passau\\
\rule{\textwidth}{.1pt}\\
Dissertation~ submitted~ to\\
the~ Faculty~ of~ Computer~ Science~ and~ Mathematics\\
of~ the~ University~ of~ Passau\\
in~ partial~ fulfillment~ of~ obtaining\\
the~ degree~ of~ a~ Doctor~ of~ Philosophy
} {
\tl_if_eq:NnT \l_@@_thesis_type_tl { bachelor }
{ \GetTranslation{Bachelor-thesis} }
\tl_if_eq:NnT \l_@@_thesis_type_tl { bachelorproposal }
{ \GetTranslation{Bachelor-thesis-proposal} }
\tl_if_eq:NnT \l_@@_thesis_type_tl { master }
{ \GetTranslation{Master-thesis} }
\tl_if_eq:NnT \l_@@_thesis_type_tl { masterproposal }
{ \GetTranslation{Master-thesis-proposal} }
\tl_if_eq:NnT \l_@@_thesis_type_tl { phdproposal }
{ \GetTranslation{PhD-thesis-proposal} }
\tl_if_empty:NF \l_@@_degreeprogramme_tl
{
\ in~\l_@@_degreeprogramme_tl
}
\par
\tl_if_empty:NF \l_@@_department_tl { \l_@@_department_tl \par }
\tl_if_empty:NF \l_@@_institute_tl { \l_@@_institute_tl \par }
}
\par
\tl_if_empty:NF \l_@@_department_tl { \l_@@_department_tl \par }
\tl_if_empty:NF \l_@@_institute_tl { \l_@@_institute_tl \par }
}
}
\end{center}\par\bigskip
Expand Down

0 comments on commit e4a8174

Please sign in to comment.