egraff / uit-thesis Goto Github PK
View Code? Open in Web Editor NEWLaTeX document class for writing theses
Home Page: http://egraff.github.io/uit-thesis/
License: Other
LaTeX document class for writing theses
Home Page: http://egraff.github.io/uit-thesis/
License: Other
If you try to load a package that already has been loaded by the uit-thesis template (and thus is allowed), you still get a warning about trying to use that package.
My thesis has quite a few acronyms for complicated things that should have should have proper explanations, like VLAN and mAP50-95.
Since there are a number of them and submission date is in five days, I'd prefer not having to manually define \newacronym
as well as \newglossaryentry
for each of them.
I haven't found any relevant style guides for how this should be done, but have got some ideas.
Ideally, I'd want acronyms which fulfill some condition (contains explanation in a certain field) to automatically have their long form and explanation included in the printed \printglossary
. Either by default or with a toggle.
Looking at ult-base/ult-glossaries.sty
, It seems the best place to define that explanation is in the text
field.
This could be achieved with a command that dynamically creates / updates glossary entries based on acronym entries with text in given fields.
Inversely, this would also be great: glossaryentries with short
key have their short
and name
field automatically included in the printed \printacronyms
. However, the glossaries user manual, page 136 state that the long
option is reserved for \newacronym
, so this might be unreliable. A more robust method is adding a custom value in the userkey1
field or with \glsaddstoragekey
.
Example:
\documentclass[norsk,noprint]{uit-thesis}
\makeglossaries
\newacronym[text={
Lar en vert konfigurere nettverksinnstillingene til andre verter i nettverket. I mange hjemmenettverk fyller ruteren rolle som DHCP-tjener.
}]{dhcp}{DHCP}{Dynamic Host Configuration Protocol}
\newglossaryentry{mp}
{
name=multiprosessering,
userkey1=mp,
description={
Metode hvor et program gjør nytte av flere prosesser samtidig.
}
}
\begin{document}
here's \ac{dhcp} and its counterpart \gls{mp}.
\printacronyms
\printglossary
\end{document}
Do you have any advice to tide me over for now, and what do you think of this?
With acronyms, the 's' denoting plural form is too big with regards to the small-capped short form, making it hard to see whether or not it is a part of the acronym or not.
(This was pointed out by Åge)
Hello,
UiT recently went through a restyiling process and, among other things, updated the templates for assignments and theses, for which they only provide a Word document..
Is there any hope that this Latex package will be updated in the near future?
Thank you!
Hello and Thank you for your repository,
I tried to put your code on Overleaf. It works and I can make it run for the master thesis. However for PhDs. I checked and it seems in the last version you have not included phd class option (I checked uit-thesis.cls). I checked previous versions and made it work on overleaf, again it works but for phd, the title is on the first page and the logo and figures on the front page go to the second page.
Anyway, could you please tag a version that can be used for phd with the last updates? Or please help to make it run on Overleaf for phds.
Thank you very much!
Hi,
I noticed the default english is american english. That would be great to have the option to choose british english.
Many thanks,
Patrick
Hi again,
Do you have any idea how to fix this error in overleaf
Class uit-thesis Error: BUG! Assumption was that original atbegshi package is not in use when new lthooks system is used.
Many thanks,
Patrick
The XCharter package that has been broken since CTAN revision 56918, which was uploaded on Nov 12. I have already notified the package maintainer, and am hoping for a fix to appear as soon as possible.
The problem is that the TFM files for the "altone" versions of the font (where the numeral 1 is rendered like 1, not I) are missing from the latest update.
The \upsc{}
command we use to typeset acronyms in LoA is not very compatible with math and font formatting. MWNE (thanks to @MicKam):
\documentclass{uit-thesis}
\makeglossaries
\newglossaryentry{bfield}{
name={\ensuremath{\mathbf{B}}},
description = Magnetic field
}
\begin{document}
\frontmatter
\tableofcontents
\printglossary
\mainmatter
We denote magnetic field as \gls{bfield}.
\end{document}
In addition, it does not really make sense to enforce smallcaps on non-acronym glossaries.
Hello!
I have problem with printing a list of abbreviations, I tried following what you have said to do in #65 but no list of abbreviations is shown. I even took and compiled the example you wrote, and nothing is shown, when I click on abbreviation in text it sends me back to top of the first page in document. I am running this on both linux and overleaf with same results.
Thanks so much for maintaining this document class!
I had a great time using it on TexLive 2023 previously.
TexLive 2024 is released, are you planning to test against it in CI?
I've tried using this class for v2024, but any basic document using the uit-thesis class fails to compile on my installation of texlive 2024.
The error from console:
document.tex: feil: 9: Package ult-custom-listings Error: Failed to patch \lst@MakeCaption. \begin{document}
Complete log is attached
document.log
Environment:
OS: Fedora Linux Atomic 40
texlive installed as flatpak, org.freedesktop.Sdk.Extension.texlive branch 23.08.
Editors: tried various editors (TexMaker, TexStudio, Kile, Setzer).
Just curious to know if you have made any repo to access the code to run the experiments? If not, could you please share it?
Glossary should have an option to look more index-like. For use of gls as nomenclature
Hi,
most of our students are using Overleaf to write the thesis. Is there a version of this template that works on Overleaf?
Thanks (❁´◡`❁)
Hei
Vi har noen studenter her på IVT som vil installere det på Windows.
Installeren spør etter HTTP proxy
The UiT thesis front page consists of two "pattern components": one in the shape of a triangle, and the other in the shape of a trapezoid. Currently, we have the option of either displaying both pattern components, or replacing them with a single, rectangular front page image (using the \ThesisFrontpageImage
command).
We want to allow more customization by, in addition, allowing either of the following:
Case 1 may be solved by something like this:
\AddToShipoutPicture*{%
\put(24.94,28){
\begin{tikzpicture}[radius=1cm,delta angle=180]
% (Lower left) -- (Upper left) -- (Upper right) -- (Lower right)
\path[fill overzoom image=example_image.jpg]
(0,0) -- (0,19.96) -- (7.35,19.96) -- (0.03,0) -- cycle;
\end{tikzpicture}
}%
}
Case 2 may be solved similarly:
\AddToShipoutPicture*{%
\put(35,28){
\begin{tikzpicture}[radius=1cm,delta angle=180]
% (Lower left) -- (Upper left) -- (Upper right) -- (Lower right)
\path[fill overzoom image=example_image.jpg]
(0,0) -- (7.35,19.96) -- (18.69,19.96) -- (18.69,0) -- cycle;
\end{tikzpicture}
}%
}
Case 3 is just a combination of case 1 and case 2, and finally case 4 may be implemented like this:
\AddToShipoutPicture*{%
\put(24.94,28){
\begin{tikzpicture}[radius=1cm,delta angle=180]
% (Lower left) -- (Upper left) -- (Upper right) -- (Lower right)
\path[fill overzoom image=example_image.jpg]
(0,0) -- (0,19.96) -- (7.35,19.96) -- (0.03,0) -- cycle
(0.36,0) -- (7.71,19.96) -- (19.05,19.96) -- (19.05,0) -- cycle;
\end{tikzpicture}
}%
}
Case 1 would look something like this:
Case 2 would look like this:
Case 3 would be:
And finally, case 4:
To achieve this feature, we need to split the front-page patterns into separate images for the triangle and trapezoid (@mstenhaug has promised to do this), and we also need to define easily understandable macros for configuring the look of the front page. Suggestions are welcome for how to approach the latter.
Glossary and acronyms should not be hyperlinked when glo/loa is not included in the document, regardless of using classoptions notglo/notloa or not running \makeglossaries
Hei!
Tenkte å benytte meg av denne flotte malen til min PhD-avhandling ved UiT, men forstår ikke hvordan man kan referere ved å bruke biblatex + biber til referansehåndtering. Er disse løsningene støttet i denne malen? Ser ikke ut som om biblatex kalles på i uit-thesis.cls eller i thesis.tex.
Takk for svar på forhånd, og innsatsen som er lagt ned i å opprette og vedlikeholde malen!
Mvh,
Fredrik Wesenlund
Hei
jeg prøvde net installeren med studentene i et kurs jeg holdt i LaTeX, men de hadde problemer med at filene ikke var blitt kopiert inn til rett plass i MikTeX.
Ser når jeg tester det på en test vm fra microsoft at den ikke finner texmf mappen.
When \newcustomlstenvironment@
generates custom lstinput-command, the of the custom environment will typically include \lstset{#1}
, where #1
is the optional argument to the lstinput-command. But currently \lstinputlisting[##1]{##2}
is used to input from file, meaning that the custom argument will be emitted twice!
This is a problem when using styles that cannot be assigned twice. For example, the hack from http://tex.stackexchange.com/questions/195486/how-can-i-highlight-json-string-values-but-not-attributes will break if \lstinput is called with [style=json,style=json]
(which will be the net effect currently).
Suggest that \lstinputlisting[##1]{##2}
is changed to \lstinputlisting{##2}
. Thus mandating \lstset{#1}
in `\newcustomlstenvironment``s begin code block.
Can we get one of these as a latex template?
...when parindent option is enabled.
When using the bytefield package I ran out of dimensions: ! No room for a new \dimen . \ch@ck ...\else \errmessage
According to http://tex.stackexchange.com/questions/38607/no-room-for-a-new-dimen it could either be an error in some of your command definitions, or just simply too many packages loaded.
In either case, loading the etex
package solved it for me. Suggest adding this package to the template if it is the case that there is too many packages loaded.
I tried to compile my Master student's project on overleaf and I noticed a very long list of warnings (80 warnings), many of them from microtype package:
Package microtype Warning: tracking amount list `output.tex/55' will override list
Is there a way to avoid them?
Thanks for creating and maintaining this LaTeX template!
I ran into two errors which might be worth looking into:
During compilation, I get Package hyphsubst Error: Unknown pattern usenglishmax.
. I managed to fix this temporarily by commenting out line 246 in uit-thesis.cls
, namely \RequirePackage[english=usenglishmax]{hyphsubst}
.
After that fix, I get Package babel Error: You haven't defined the language norsk yet.
. The error then suggests that I might have misspelled the language, or not installed it. However, I have installed the texlive-babel-norsk
package.
I'm using an up-to-date installation of Fedora 33, with a full installation of texlive (texlive-scheme-full
on Fedora, to be specific). Am I just being stupid, or is there something to fix here? Let me know if I can provide any more information.
Hi there,
I am trying to compile my master student's thesis on my linux box with fedora 36 using rubber and I got into some troubles
I am not able to find this pattern file, is it standard? There does not seem to be many hits when googling for texlive usenglishmax. I currently have most of the rpm for english hyphenations
texlive-hyphen-base-svn58630-57.fc36.noarch
texlive-hyph-utf8-svn58619-57.fc36.noarch
texlive-hyphen-english-svn58609-57.fc36.noarch
texlive-hyphenex-svn57387-57.fc36.noarch
texlive-dehyph-svn48599-57.fc36.noarch
That would be great to have a UK english alternative too!
It looks like this babel error can be fixed by adding norsk in the class options prior to english
\documentclass[noprint,norsk,USenglish]{uit-thesis}
that can be fixed by creating an empty main.glo (touch main.glo)
I hope that helps
Regards,
Patrick
Hi, and thanks again for the great package.
I've noticed that spacing around amsthm
environments seems a little messed up. See the following example:
\theoremstyle{definition}
\newtheorem{definition}{Definition}
[...]
\lipsum[1][1-4]
\begin{definition}
An interesting definition
\end{definition}
\lipsum[2][1-4]
\setlength{\topsep}{10pt}
\lipsum[1][1-4]
\begin{definition}
An interesting definition
\end{definition}
\lipsum[2][1-4]
Certainly, the lack of any gap between a paragraph and the subsequent definition isn't how the definition environment is supposed to work. As demonstrated, it seems \topsep
being set to 0 somehow is the culprit (see its use here. But setting \topsep
to the default of around 10pt makes the spacing below the environment too large.
I couldn't quite figure out what's going on the the uit-thesis class. \topsep
is modified here:
% Spacing for \item lists
% \topsep is vertical spacing before first item
% \parsep is spacing between items
% \itemsep = \z@ <=> add nothing to \parsep between items
\def\@listI{%
\leftmargin\leftmargini
\topsep\ult@normalbaselineskip
\advance\topsep by -\parskip
\parsep\parskip
\listparindent\parindent
\itemsep\z@
}
\let\@listi\@listI
\@listi
But when commenting this out, \topsep
is still 0.
I will note that amsthm
in loaded by uit-thesis.cls
, so nominally I would expect compatibility.
Ideas?
P.S. for anyone else finding this problem, the best adhoc solution I have found is to just manually add some spacing, or defining my own theoremstyle instead of using the built-in definition (or other) style.
I've defined acronyms and glossary entries in the main thesis.tex file and I want the links that are created to go to a glossary page. I've tried \printglossaries and \printglossary at the end but nothing shows up.
Any ideas?
Check if using \begin{verbatim}\end{verbatim}
causes any problems...
Pending items:
Fix the frontpage and everything
Atm they seem to be set in the text face in the same font size as the main text. Perhaps we could set them in OpenSans & slightly smaller? Or only slightly smaller? Or same size OpenSans? Or cursive?
Fails with error "Undefined control sequence".
If we want these to be required, we should test for it explicitly, and write out an error message (as is done for \title{}) 😃
Currently, the cls file just assumes that they are defined...
MNWE:
\documentclass{uit-thesis}
\begin{document}
\title{Title of the master thesis}
\author{Name of author}
\maketitle
\end{document}
whereas this works fine:
\documentclass{uit-thesis}
\begin{document}
\title{Title of the master thesis}
\author{Name of author}
\thesisfaculty{Faculty of Science and Technology \\ Department of Computer Science}
\thesisprogramme{Master thesis in [study programme] … Month 20xx}
\maketitle
\end{document}
Oldstyle numbers may look a bit odd in citation marks.. maybe these should be different?
an optional fix for this is the following:
\makeatletter
\renewcommand@cite[1]{{\fontfamily{fxb}\selectfont[#1]}}
\makeatother
Hi there,
I believe it is possible to avoid the redefinition error of \Bbbk by replacing
\usepackage{amsmath}
with
\usepackage{amsmath,amssymb}
Many thanks,
Patrick
While compiling with this layout I receive a warning in the output:
*****************************************************************
**
** Package l3regex is obsolete and has been removed!
**
** Its functionality is now only provided as part of the expl3 package.
**
** The old packages will be removed entirely at the end of 2018.
**
** Therefore, please replace '\usepackage{l3regex}'
** with '\usepackage{expl3}' in your documents as soon as possible.
**
*******************************************************************
Package l3regex Warning: This package is obsolete --- use 'expl3' instead on in
put line 42.
So sometime before 2018 this package should be switched.
I'm using this template for my bachelor's thesis in mechanical engineering. The thesis requirements includes having a table, as shown below, placed after the title page and before the abstract. Getting this table converted from .docx (which is how it's made available by our course supervisor) to html works well; but conversion to Tex turns out to be complicated and full of errors. Formatting it nicely from scratch might be a bit beyond me as this is the first large document I'm writing with Tex.
Is having integrated support for this table within scope for uit-thesis?
<title xml:lang="en-US">- no title specified</title> <style> table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both;} ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } span.heading_numbering { margin-right: 0.8rem; }* { margin:0;} .paragraph-P1{ font-size:11pt; line-height:108%; margin-bottom:0.282cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; font-style:italic; } .paragraph-P10{ font-size:12pt; line-height:108%; margin-bottom:0cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .paragraph-P11{ font-size:12pt; line-height:108%; margin-bottom:0cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .paragraph-P12{ font-size:11pt; line-height:108%; margin-bottom:0.282cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; font-weight:bold; } .paragraph-P13{ font-size:11pt; line-height:108%; margin-bottom:0.282cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; font-weight:bold; } .paragraph-P14{ font-size:11pt; line-height:108%; margin-bottom:0cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; background-color:transparent; margin-left:0.723cm; margin-right:0cm; text-indent:-0.635cm; color:#000000; font-style:normal; text-decoration:none ! important; font-weight:normal; } .paragraph-P15{ font-size:11pt; line-height:108%; margin-bottom:0cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; background-color:transparent; margin-left:0cm; margin-right:0cm; text-indent:0cm; color:#000000; font-style:normal; text-decoration:none ! important; font-weight:normal; } .paragraph-P16{ font-size:12pt; font-family:'Liberation Serif'; writing-mode:horizontal-tb; direction:ltr;} .paragraph-P2{ font-size:11pt; line-height:108%; margin-bottom:0.282cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; font-style:italic; } .paragraph-P3{ font-size:11pt; line-height:108%; margin-bottom:0.282cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; font-style:italic; font-weight:bold; } .paragraph-P4{ font-size:11pt; line-height:108%; margin-bottom:0.282cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; font-style:italic; font-weight:bold; } .paragraph-P5{ font-size:11pt; line-height:108%; margin-bottom:0.282cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; font-style:italic; font-weight:bold; } .paragraph-P6{ font-size:11pt; line-height:108%; margin-bottom:0.282cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; } .paragraph-P7{ font-size:11pt; line-height:108%; margin-bottom:0.282cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; } .paragraph-P8{ font-size:11pt; line-height:108%; margin-bottom:0.282cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; } .paragraph-P9{ font-size:12pt; line-height:108%; margin-bottom:0.282cm; margin-top:0cm; text-align:left ! important; font-family:Calibri; writing-mode:horizontal-tb; direction:ltr; } .table-Tabell1{ width:19.039cm; margin-top:0cm; margin-bottom:0cm; margin-left:auto;margin-right:auto; writing-mode:horizontal-tb; direction:ltr; } .cell-Tabell1_A1{ background-color:transparent; border-top-width:NaNcm; border-top-style:solid; border-top-color:#000000; border-left-width:NaNcm; border-left-style:solid; border-left-color:#000000; border-bottom-width:NaNcm; border-bottom-style:solid; border-bottom-color:#000000; border-right-width:NaNcm; border-right-style:solid; border-right-color:#000000; padding-left:0.191cm; padding-right:0.191cm; padding-top:0cm; padding-bottom:0cm; } .col-Tabell1_A{ width:6.438cm; } .col-Tabell1_B{ width:7.84cm; } .col-Tabell1_C{ width:4.761cm; } .text-Internet_20_link{ color:#80; text-decoration:underline; } .text-T10{ font-family:'Liberation Serif'; } .text-T11{ font-family:Calibri; } .text-T4{ font-style:italic; } .text-T5{ font-style:italic; } .text-T6{ font-style:italic; font-weight:bold; } .text-T7{ font-weight:bold; } .text-T8{ font-weight:bold; } .text-T9{ font-weight:bold; } /* ODF styles with no properties representable as CSS: .Tabell1.1 .Tabell1.2 .Tabell1.3 .Tabell1.4 .Tabell1.5 .Tabell1.6 .Tabell1.7 .Tabell1.8 .ListLabel_20_10 .ListLabel_20_11 .ListLabel_20_12 .ListLabel_20_13 .ListLabel_20_14 .ListLabel_20_15 .ListLabel_20_16 .ListLabel_20_17 .ListLabel_20_18 .T1 .T12 .T13 .T2 .T3 { } */ </style>
Tittel
The title of the thesis |
Dato: date of submission of this document Antall sider: 1number of pages
Antall vedlegg: number of attachments
| |
Emnekode subject code |
Emnenavn Hovedprosjekt / bachelor thesis "name-of-course" | |
Forfattere
| ||
Fakultet Institutt name of faculty name of institute | ||
Veileder: name of mentor | ||
Oppdragsgiver: Name of customer / industri partner | ||
Sammendrag summary Prosjektetslutt: date of project-end
© 2024. copyright if applicable
| ||
Stikkord search terms / word cairns |
Two things:
Both of these because we should avoid unnecessary visual clutter. The colorbox is especially egregious as there is literally no precedence for such behavior in the rest of the template
Seems like a regression/change in the glossaries
package. Should be easy enough to work around, given we already redefine the \printacronyms
macro.
Currently, section title could end up breaking the margin/layout, when it should rather linebreak ragged-right...
MWE:
\documentclass{uit-thesis}
\usepackage{lipsum}
\begin{document}
\chapter{Test of a long chapter titlee that may span several lines}
\section{This is a section title that will break marginsssssss}
\lipsum
\end{document}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.