suchow / dissertate Goto Github PK
View Code? Open in Web Editor NEWBeautiful LaTeX dissertation templates.
License: GNU Affero General Public License v3.0
Beautiful LaTeX dissertation templates.
License: GNU Affero General Public License v3.0
Slightly edited traceback to account for path privacy…but this is the seeming most relevant traceback info…
There also was an issue with \copyrightpage in the Princeton template (I think), but I haven't localized that error yet.
Traceback (most recent call last):
File "../scripts/dissertate-word.py", line 41, in <module>
main()
File "../scripts/dissertate-word.py", line 22, in main
createTemplate(options.school, options.name)
File "../scripts/dissertate-word.py", line 26, in createTemplate
SchoolPackage = importlib.import_module("schools." + school + ".word")
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "../scripts/schools/Princeton/word.py", line 2, in <module>
from ..Generic.generic import GenericTemplate
File "../scripts/schools/Generic/generic.py", line 2, in <module>
from docx import Document
Is there a way to have the equations labeled on the right hand column?
I think for usability we should include these templates in Overleaf.com / sharelatex.com so users can start typing right away. There is git support in Overleaf and I am happy to make a template for Harvard
https://www.overleaf.com/blog/195-new-collaborate-online-and-offline-with-overleaf-and-git-beta
When downloading the Generic (Word) using the hyperlink in the README file, I successfully download a zip file: Dissertate-Generic-Word.zip
. However, this zip file merely contains a single file called guidelines.pdf
which contains a single page with just two words in it ("Generic guidelines"). I assume this is the incorrect file or the zip has been corrupted. Uploading and re-linking to the correct zip file with actual generic word template would be great!
(See http://www.berkeley.edu/brand/img/colors/WebColor_accessible_AA_swatches.pdf)
cc @michaelpacer
I suggest submitting the template to CTAN, making the template available using standard TeX package managers.
you can generate them using https://github.com/python-openxml/python-docx
The microtype package allows for automatic, high-quality kerning of words and inter-word spacing. This prevents sentences dangling over the end of the line, and makes your thesis look much nicer.
Hello, could you please let me know how to move the chapter numbers and titles up a little bit when the \chapter command is used? I'm hoping to cut down a little bit on the whitespace. Thanks!
When using the template on a Mac, I had to copy the fonts:
cp LaTeX-template-for-Harvard-dissertation/fonts/* /Library/Fonts/
Looks like they are the only two to do that, is there any special reason I'm missing?
I am quite a novice to latex and apologize in advance if this rookie question is not related to the package itself.
When I was trying to make an multi-line title, and according to this post, I should use
\title{First line \\
second line}
But I got the following error from the console:
! Argument of \reserved@a has an extra }.
<inserted text>
\par
l.3 second line}
Am I missing something here? And what is the right way to make a multi-line title in the dissertate
package? Thanks!
Thank you so much for putting together this template! You've saved me many hours of heartache.
My advisor has pointed out multiple times, and I agree - that unfortunately EB Garamond is a poor font choice for the reason that the numeral "1" looks like a capital letter I. For those of us who are in technical fields, writing the statement "x = 1" comes across poorly.
I am having some trouble with full page figure captions. The captions are not alone on the preceding page. I don't think it relates to the known bug since there are no figures on the previous page either.
I tried to basically test it by copying and pasting the full page figure in chapter 1 of the template to a point later in the template. It does the same thing. I don't understand why in the first occurrence of the full page figure, the caption is alone on the preceding page, and in the next occurrence, it's not.
Dissertate version: bf24d33
TeX Live version: 2015 (2015.20160320-1) (from Ubuntu Xenial)
When compiling the Harvard LaTeX version of this template, if one uses TeX Live 2015, the appendix links that appear within the TOC do not lead anywhere. The PDF viewer I am using (Okular) shows the presence of the "chapter", but it's unclickable and has no page number, although it does in the TOC.
This problem does not appear with TeX Live 2013 (when used under Ubuntu Trusty).
I am having a problem where math symbols do not show up when placed inside a subscript. For example:
This problem does go away if I choose a font different from EB Garamond (such as Times New Roman) using \setmathsfont in Dissertate.cls
Is this a known problem with EB Garamond? I would ideally like to use this font.
Thanks
I want to cross-reference a section which is in a different file, for example refer in chapter 4 the section 2 of chapter 3.
When I try to do this, I get the following error:
LaTeX Warning: Reference `sec:mysection' on page 15 undefined on input line 5
What should I do or change in order for this to work?
Thanks for the great template.
This stackexchange answer (particularly, the one in the comment using \addfontfeature{RawFeature=+tnum}
) is fairly easy to implement & is a better default than the current.
The reason to use the one in the comment is that it doesn't require explicitly specifying a font like the main solution does, so whatever regular font is in use can just be modified…
http://tex.stackexchange.com/questions/99640/tabular-numbers-in-tables-proportional-in-text
PR coming with this feature when I have a chance.
For the NYU template, the Acknowledgements, Abstract, etc pages are listed at the wrong page in the Table of Contents.
It should not be hard to use the glossaries
LaTeX package as part of the default template.
If I have time, I may try to implement a version of this for the Berkeley example.
One nice feature is that because glossary terms are only included if they are actually used, if people were to begin writing a uber-glossary from the beginning of their graduate studies, they could use that same glossary file in their dissertation.
Sometimes it is desirable to export a single chapter at a time to send to your committee so they dont' have to dive through a bunch of lorem ipsum for chapters you haven't written yet.
Currently the best way to do this is to comment out the chapters you don't want included in the dissertation.tex, but that isn't really a great solution compared to something like having a flag to build individual chapters (or something like that).
My greek letters don't render when they are in the superscript/subscript inside an equation. Regular greek letters render just fine.
For example $\beta$
renders but $_\beta$
and $^\beta$
do not.
Has anyone had this problem before?
i compiled it on Macbook.
there are lots of font spec warnings :
how to get rid of it ?
thanks.
A number of my formulas contain lowercase Greek letters in superscripts, which show up as blank space in the compiled document. I guess this has something to do with the EB Garamond font, so I commented out the \setmathsfont command in the Dissertate class file, which seems to fix the problem.
So, I've been using SublimeText3 with the LaTeXtools package and the build command by default there mostly works. It also allows backrefs for getting autocompletions for references, citations and other commands while writing in the subdirectories.
However, if one builds from inside a chapter, it will not rebuild the table of contents even if the chapter's table of contents would have been altered. A tiny concern, but given how close this is to being nearly completely compatible with Dissertate, I thought it was worth noting.
To follow up on my note from earlier, I wanted to let you know I found a workaround that seems to be helping me (in case you're curious). In the Dissertate.cls file I narrowed down the lines causing issues for me to the section below:
\RequirePackage[labelfont={bf,sf,footnotesize,singlespacing},
textfont={sf,footnotesize,singlespacing},
justification={justified,RaggedRight},
singlelinecheck=false,
margin=0pt,
figurewithin=chapter,
tablewithin=chapter]{caption}
I removed the "sf" from the first two lines and my captions reappeared. I'm not sure if this has something to do with how the fonts were installed onto my system? but it at least seems to have resolved the problem so I thought I'd let you know.
Thanks again for sharing your files.
Best,
Christine
Hi Jordan,
I'm writing my thesis now at Harvard and downloaded your template from the Physics website. Thank you for sharing your work! I can get by in LaTeX but am in no way proficient and I'm having a problem that I can't seem to figure out and I was hoping you may be able to help point me in the right direction.
Summary of the issue: I am unable to get any figure captions to appear under the figures. I am using the format as shown below.
\begin{figure}
\centering
\includegraphics[height=8cm,width=8cm,keepaspectratio]{figures/LSP.jpg}
\caption[Localized surface plasmons]{This is the figure caption.}
\label{fig:lsp}
\end{figure}
The short captions in brackets [ ] DO show up in the "list of figures" however the long captions in curly brackets { } DO NOT show up under the figures, just a figure number and blank space (no caption). Just to test, I took your code off of the physics website and just re-ran the script file without changing anything and saw the same issue. All figure captions disappeared in the PDF. I briefly saw a warning appear that caption support for ragged2e had been changed and thought that may be the problem but am having trouble tracking it further.
Please let me know if you have any suggestions and I hope you're enjoying your time at Berkeley. Thank you.
Sincerely,
Christine Zgrabik
I'm looking for the command to use "apa style" citation instead of the citation based on numbers with hiperlinks.
Thanks in advance
Hi, I've just realised that trying to use \textbf{} does not compile bold typeface, at least not noticeably. Other commands such as \textit{} or \textsc{} work fine. Am I missing something?
ps. tried with a new template document in case I had introduced some bug in my current thesis. Still doesn't work on the blank template. I use Overleaf that recently switched to V2 which compiles on XeLaTeX.
Thanks!
Thank you for sharing a great template.. I imported it to the sharelatex.com site and everything looks great.. Just one problem is that the text is not equally justified.. The left alignment does not look good in the entire big thesis.. Could you please suggest me to make it equally justified?
According to the latest "Form of the dissertation" guidelines, the abstract should be double spaced. This isn't true in the version of the Harvard template that I have (though given I started writing in the fall I am a bit out of date now).
See page 15 of https://www.gsas.harvard.edu/images/stories/pdfs/form%20of%20dissertation.pdf
In the bookmarks of the generated pdf, when I click "References", it brings me to the first page of the preceding chapter. Also, how do you incorporate the other sections (abstract, acknowledgements, etc.) into the bookmarks in the pdf?
I am using the package split, which requires package amsmath. When I include package amsmath, I obtain the following error:
! Package mathspec Error: amsmath' must be loaded earlier than
mathspec'.
Package mathspec is included in Dissertate.cls. My current solution is to modify that file to require package amsmath too. Then, everything works fine.
If this solution seems like a good one, it would be great to see it included in the master branch.
Berkeley demands the following "proper order" for its sections
Currently the template includes the appendix and references as part of the base template, which can be reordered manually, but also could be declared in the style files.
However, that would be a fairly large migration of the content of the main tex file to the style files, which I'm not sure is desirable.
Perhaps it can be treated as part of the endmatter section?
This kind of structural thing though is exactly what can catch people when using a Dissertation template.
I am starting to write my dissertation and selected 'Dissertate' as my template.
I have installed the packages in my ~Library/ directory under MacTex, according to the instructions; all works well when compiling to .pdf.
Now, I want to;
(i) slightly modify my title page, so that this includes the word count (excluding abstract appendices etc.)
(ii) write this dissertation via GUI Lyx instead of LaTeX (I'm a novice here).
I made this a few months ago. Take what you can, it's all yours.
Don't know why you ran sed and I broke here back then, so I commented it out. You can merge it with your current stuff, if you want. No obligations, you can dump this also, if it's not of use. It's still a good day :)
Actually, you can use debug, error, success etc. from here: https://github.com/spf13/spf13-vim/blob/3.0/bootstrap.sh too, if you want. That's a style I usually follow to get my scripts cleaner. Also why "sh", almost every OS has bash or even zsh.
#!/bin/sh
debug=''
nolog=''
bibtex='bibtex'
latex='xelatex'
if [[ $debug -eq "1" ]]; then
nolog=" 2>/dev/null"
nonstop="-interaction=nonstopmode"
latex="$latex $nonstop"
fi
set_basedir() {
BASEDIR=$(dirname $0)
cd $BASEDIR
cd ../chapters
}
# convert all .md files in the chapters directory to .docx
create_docx() {
for i in *.md ; do
# generate Word file
filename_wd=${i/%???/}.docx
pandoc $i \
--from=markdown+tex_math_dollars+tex_math_single_backslash+implicit_figures \
--to=docx \
--reference-docx="derivatives/word/style.docx" \
--bibliography="references.bib" \
-o derivatives/word/$filename_wd
done
}
# convert all .md files in the chapters directory to .tex
create_tex() {
for i in *.md ; do
filename_tex=${i/%???/}.tex
pandoc $i \
--from=markdown+tex_math_dollars+tex_math_single_backslash+implicit_figures \
--to=latex \
--latex-engine="$latex"\
--chapters \
--bibliography="references.bib" \
--natbib \
-o derivatives/tex/$filename_tex
done
}
cleanup_tex() {
cd derivatives/tex/
for i in *.tex ; do
pwd
echo "mv $i .$i"
echo "awk -f .tst.awk .$i > $i $nolog"
sed -i='' 's/\(\\\includegraphics{\)\([^}]*\)\(}\)/\\\makebox[\\\textwidth]{\1\2\3}/g' $i $nolog
#sed -i '' 's/\\\includegraphics{/\\\makebox[\\\textwidth][c]{\\\includegraphics{/g' $i $nolog
#sed -i '' 's/\\\caption{/}\\\caption{/g' $i $nolog
#rm .$i
done
cd ../..
}
#convert all .md in frontmatter folder
create_frontmatter() {
cd ../frontmatter
for i in *.md ; do
filename_tex=${i/%???/}.tex $nolog
pandoc -o $filename_tex $i $nolog
done
for i in *.tex ; do
mv $i .$i
awk -f .tst.awk .$i > $i $nolog
rm .$i
done
}
compile() {
cd ..
$latex dissertation $nolog
$bibtex bibtex dissertation $nolog
$latex dissertation $nolog
$latex dissertation $nolog
}
cleanup() {
# hide the log
mv "dissertation.log" ".logged"
# kill temp files
rm "./frontmatter/thanks.tex"
rm "./frontmatter/abstract.tex"
rm "./frontmatter/dedication.tex"
rm "./frontmatter/personalize.tex"
# delete all the junk files
find . -name "*.log" -exec rm -rf {} \;
find . -name "*.aux" -exec rm -rf {} \;
find . -name "*.toc" -exec rm -rf {} \;
find . -name "*.blg" -exec rm -rf {} \;
find . -name "*.bbl" -exec rm -rf {} \;
find . -name "*.out" -exec rm -rf {} \;
find . -name "*.brf" -exec rm -rf {} \;
find . -name "*.tex-e" -exec rm -rf {} \;
find . -name "*.lof" -exec rm -rf {} \;
find . -name "*.lot" -exec rm -rf {} \;
find . -name "*.loa" -exec rm -rf {} \;
}
######################## MAIN()
set_basedir
create_docx
create_tex
cleanup_tex
create_frontmatter
compile
cleanup
Is there any manual to use Harvard latex template? For example, I'm looking for "title" command or how to use "tables" efficiently
Thanks in advance
The fonts we provide right now are lacking some unicode characters including ⤞ and ⇥.
Not worth ditching EBGaramond, but maybe there should be a call put out for people to extend the font?
Though, it will be tough to identify how to extend the character set to include characters that are not present in Garamond's original works. Worth further consideration.
Hi! I run into a problem when doing coadvisors instead of advisor:
% \advisor{A}
%\committeeInternalOne{B}
%If you are coadvised
\coadvisorOne{A}
\coadvisorTwo{B}
\committeeInternal{C}
And the error is undefined control sequence. Could you please help me how to resolve this?
Thanks!
Hi, I'm trying to add a glossary after the list of contents to no avail. What would be the best way to go about this?
Thanks in advance.
So for the Berkeley template I had to add the xcolor
package so as to use the HTML codes provided by the Berkeley web color palette website.
In general, I imagine it will be easier to find school colors defined in terms of HTML hex codes (#XXXXXX
) rather than as floats ∈ [0,1] for the rgb setting of the original color
package.
These should always be able to be converted into one another but it'll be an extra step for anyone wanting to modify the template. I vote for a change to all of the templates to use HTML hex codes w/ xcolor
rather than rgb values w/ color
.
Because this will take some time, I want to check that there is not some reason why they were originally only defined in rgb space that I am unaware of. If there is none, it would seem to have no downsides to make this change.
thanks for creating these templates. I vote for including the logo on the first page.
see also here for discussion.
I just gave it a shot and uploaded the Harvard template-zip file up to overleaf but it won't compile right
XeTeX is required to compile this document.
Solution: Change the Overleaf to use Xelatex for project (click gear icon top right)
however now the next issue
There is some info how to include custom fonts on overleaf here
outcommenting line 89
% \setmonofont[Scale=MatchLowercase]{Source Code Pro}
solves the problem
for some reason it can't load the source code fonts. The other two seem to be loaded just fine.
Hi,
I'm interested in using the Dissertate thesis templates. However, I'd like to use these templates with LyX. Is there any chance these templates have been converted to be used in LyX?
If anyone can provide some tips on using these templates with LyX, that would be greatly appreciated.
Thank you.
Regards,
Jonathan
Hi check this new options for Dissertate.cls
It allows to choose between A4 and US Letter with:
dpaperafour OR dpaperletter
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{Dissertate}[2014/03/25 v2.0 Dissertate Class]
%
% Options
%
\RequirePackage{etoolbox}
%************************************%
\usepackage{ifthen}
% Paper size
% Allows to use A4 or Letter paper sizes.
\newboolean{paperafour}
\newboolean{paperletter}
\DeclareOption{dpaperafour}{
\setboolean{paperafour}{true}
}
\DeclareOption{dpaperletter}{
\setboolean{paperletter}{true}
}
%************************************%
% Line spacing: dsingle/ddouble
% Whether to use single- or doublespacing.
\newtoggle{DissertateSingleSpace}
\togglefalse{DissertateSingleSpace}
\DeclareOption{dsingle}{
\toggletrue{DissertateSingleSpace}
\ClassWarning{Dissertate}{Single-spaced mode on.}
}
\DeclareOption{ddouble}{\togglefalse{DissertateSingleSpace}}
%************************************%
% Process the options before reading them
\ProcessOptions\relax
% Paper size
\ifthenelse{\boolean{paperafour}}{
\LoadClass[12pt, oneside,a4paper]{book}
\ClassWarning{Dissertate}{Paper size set to A4.}
}{}
\ifthenelse{\boolean{paperletter}}{
\LoadClass[12pt, oneside,letterpaper]{book}
\ClassWarning{Dissertate}{Paper size set to US Letter.}
}{}
%************************************%
% Line Spacing
% Define two line spacings: one for the body, and one that is more compressed.
\iftoggle{DissertateSingleSpace}{
\newcommand{\dnormalspacing}{1.2}
\newcommand{\dcompressedspacing}{1.0}
}{
\newcommand{\dnormalspacing}{2.0}
\newcommand{\dcompressedspacing}{1.2}
}
% Block quote with compressed spacing
\let\oldquote\quote
\let\endoldquote\endquote
\renewenvironment{quote}
{\begin{spacing}{\dcompressedspacing}\oldquote}
{\endoldquote\end{spacing}}
% Itemize with compressed spacing
\let\olditemize\itemize
\let\endolditemize\enditemize
\renewenvironment{itemize}
{\begin{spacing}{\dcompressedspacing}\olditemize}
{\endolditemize\end{spacing}}
% Enumerate with compressed spacing
\let\oldenumerate\enumerate
\let\endoldenumerate\endenumerate
\renewenvironment{enumerate}
{\begin{spacing}{\dcompressedspacing}\oldenumerate}
{\endoldenumerate\end{spacing}}
%************************************%
% Text layout.
\ifthenelse{\boolean{paperafour}}{
\RequirePackage[width=5.75in, a4paper]{geometry}
}{}
\ifthenelse{\boolean{paperletter}}{
\RequirePackage[width=5.75in,letterpaper]{geometry}
}{}
%************************************%
\usepackage{ragged2e}
\RaggedRight
\RequirePackage{graphicx}
\usepackage{fixltx2e}
\parindent 12pt
\RequirePackage{lettrine}
\RequirePackage{setspace}
\RequirePackage{verbatim}
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.