ftsrg / thesis-template-latex Goto Github PK
View Code? Open in Web Editor NEWThesis template for LaTeX documents.
Thesis template for LaTeX documents.
This can be achieved by using the huplain.bst
from http://www.math.bme.hu/latex/.
The thesis expects 1.5 line spacing:
It seems to be, though, that the resulting document uses single spacing.
The latter has
See 7e80486
I don't know if this is deliberate, but using the template the supervisor's name is not properly spaced.
E.g., Dr.Firstname Lastname
is used instead of Dr. Firstname Lastname
.
src/include/preamble.tex contains the following for pdf metadata:
pdfauthor={\vikszerzoA \tdkszerzoB}
However, in the usual BSc/MSc thesis setup suthors only update \vikszerzoA and they do not even see \tdkszerzoB, thus it remains "Második Szerző". (I have seen it is several submitted document)
Suggestions:
Platform: linux texlive pdflatex
Steps to reproduce: insert an lstlisting with eg. [language=C]
option and write a comment in it
lstlisting cannot display slanted text (code comments) when using the default lmodern lighttt typeface. The build crashes with this error:
No declaration for shape T1/lmtt/l/sl.
sub@sfcnt ...e forspace shapespace mandatory@arg }
I have found a solution on Stackexchange:
That's a bug in the fd-files (OT1lmtt.fd and T1lmtt.fd): In the "lighttt" section they substitute the lmtt/m/it to lmtt/l/sl instead of lmtt/m/sl. You should report it.
You can get around it with
\documentclass{article}
\usepackage[lighttt]{lmodern}
\ttfamily\DeclareFontShape{T1}{lmtt}{m}{it}{<->sub*lmtt/m/sl}{}
\begin{document}
Abc {\ttfamily abc \itshape abc}
\end{document}
It seems to be fixing the problem, the build succeeds after inserting that line.
Because of
basicstyle=\scriptsize\ttfamily, % print whole listing small
keywordstyle=\color{black}\bfseries, % bold black keywords
in preamble.tex, listings
need to use a fixed-width bold font, which is not available (at least on MiKTeX).
A workaround I found is to use another fixed-witdth font, or use lmodern
with option lighttt
:
\usepackage[lighttt]{lmodern}
For more, see http://tex.stackexchange.com/questions/33039/using-ttfamily-with-bfseries-or-how-to-enable-bold-in-fixed-width-font.
Move away from Travis to GitHub Actions.
Supersedes #58
Hungarian accendted characters in listings are not displayed correctly, e.g. kézikönyv
is rendered as éökziknyv
.
We had a similar with the guillemets in Xtend codes: https://github.com/FTSRG/technology-cheat-sheets/wiki/LaTeX#using-guillemets-in-listings
However, this approach required us to change the listed text---something we would like to avoid.
Fix this line and propose the more modern method for deployment:
Remove the call for the deployment script (./deploy.sh) or redirect it. To do this, you will need to use a GitHub token and encrypt it for Travis, which requires Ruby. For details, see [this guide].
Commit 7e9cf71#diff-0a9dc099a57533c7836e5bdfab08a4d9R33 accidentally swapped the French spacing settings: Hungarian documents should have French spacing and English documents should not have French spacing.
Package anysize
, used in this project to set margin sizes, is obsolete. We should use the geometry
package instead.
I'll patch it and create a PR if you agree.
The theses of the university require a formal declaration of own work. I think this needs to be in Hungarian even if the language of the thesis is English. However it raises a conflict, because \vikszerzoA
needs to be in the English order for the titlepage.
It would be good if the template could handle this.
I see these solutions so far:
\vikszerzoA
. For English this should be provided by the users.A fejezeteket decimális aláosztással számozzuk, maximálisan 3 aláosztás mélységben (pl. 2.3.4.1.).
Alapértelmezetetten a subsubsection alfejezet nem számozva jelenik meg.
A premable fájlban ez látható a setcounter beállításnál:
\setcounter{secnumdepth}{0}
%\sectionfont{\large\upshape\bfseries}
\setcounter{secnumdepth}{2}
Javasolni szeretném a \setcounter{secnumdepth}{2}
értékét 2-ről 3-ra módosítani. Ezt követően a subsubsection már számozva jelenik meg.
Valamint a \setcounter beállítás kétszer kap értéket, először 0 majd 2 értéket. Rögtön egymás után. Javaslom az egyik törlését.
The numbering of the appendix starts at F (for Függelék -- Appendix in Hungarian). We should set this to A which works well for both English and Hungarian documents.
Expected usage:
\newcommand{\vikkonzulensAMegszolitas}{Dr.}
\newcommand{\vikkonzulensAVezeteknev}{Hajdu}
\newcommand{\vikkonzulensAKeresztnev}{Ákos}
What works right now:
\newcommand{\vikkonzulensAMegszolitas}{Dr.~}
\newcommand{\vikkonzulensAVezeteknev}{Hajdu}
\newcommand{\vikkonzulensAKeresztnev}{Ákos}
Related line in thesis-en.tex:
\newcommand{\vikkonzulensA}{\vikkonzulensAMegszolitas\vikkonzulensAKeresztnev{} \vikkonzulensAVezeteknev}
A TDK sablonban írva három darab első oldala lesz a dokumentumnak.
I recommend to move the tex files (except the main diploma.tex) to a subfolder (e.g. content) to have a clearer directory structure.
Moreover, the bib file coul also be moved to an other subfolder (e.g. bib). It helps to spot which are non temporary files.
Currently we use plain
, which lacks several features (e.g. handling doi or url natively).
I recommend to switch to a more feature complete bib style. For example:
\usepackage[numbers]{natbib}
...
\bibliographystyle{abbrvnat}
Provides native doi and url support, is also numbered and ordered, does not require any modification in compiling, natbib has a decent documentation.
biber
instead of bibtex
for some featuresRemoving the "\include{include/guideline}" from diploma.tex sets back line spacing to normal for the whole text, since the "\onehalfspacing" command is issued in guideline.tex. While in reality it looks way better with the regular spacing, still the officially expected one is 1.5. (Fixing this bug is a great way to boost the total number of pages. :P) Command should be issued "elsewhere".
Commit 7e9cf71 also mixed up Hungarian/English paragraph indentation. Just compare earlier builds with the current one. In the latest build some space is skipped after each paragraph, and there's no indentation for the first lines (with Hungarian settings).
As ShareLaTeX no longer works, we should use Travis to produce a page (gh-page) with the latest build for both Hungarian and English documents (preferably featuring build with both pdflatex and xelatex).
In Chapter 1 recommend TeXstudio instead of TeXnicCenter, because it is more up-to-date and has more features.
Eddig az egyoldalas beállítást használtam:
\documentclass[11pt,a4paper,oneside]{report} % Single-side
De mivel kötelező a kétoldalas nyomtatás, így ezt a sort kommenteltem ki:
\documentclass[11pt,a4paper,twoside,openright]{report} % Duplex
A probléma az, hogy a táblázatok jegyzések, ábrák jegyzéke és a köszönetnyilvánítás fejezetek után üres oldalakat szúr be. Ez nekem extra 5 üres oldalt jelent. Ha visszaállítom egyoldalasra, akkor a probléma megszűnik.
Mi lehet a megoldás erre? Egyáltalán a sablon hibája ez? Sharelatexel (online) használom, gond eddig nem volt vele és nincs compilation warnig se error.
Edit: Minden fejezet után beszúr nekem egy üres oldalt.
Edit2: az openright törlésével a probléma megszűnik, nem tudom, hogy ez tudatos-e vagy véletlenül maradt-e bent. Amennyiben tudatos, akkor bocsánat a felesleges issue-ért.
\documentclass[11pt,a4paper,twoside]{report} % Duplex
Add a sample pdf so it is easy to see what this template offers
It would be useful to add a template for formatting code snippets in some popular languages (eg. C/C++/Java/Python) using \listings package.
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.