Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into xnos
  • Loading branch information
dendrondal committed Aug 13, 2020
2 parents de5e8f3 + a09aa0d commit 3e06bf3
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 40 deletions.
7 changes: 0 additions & 7 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/phd_thesis_markdown.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ before_install:
- brew install pandoc-citeproc
- brew cask install mactex
- tlmgr info fontspec
- pip install pandoc-fignos pandoc-eqnos pandoc-tablenos \
pandoc-secnos pandoc-shortcaption --user
- sudo pip3 install pandoc-fignos pandoc-eqnos pandoc-tablenos \
pandoc-secnos pandoc-shortcaption

# Attempt to create a PDF
script:
Expand Down
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ help:
@echo 'Makefile for the Markdown thesis '
@echo ' '
@echo 'Usage: '
@echo ' make html generate a web version '
@echo ' make install install pandoc plugins
@echo ' make html generate a web version
@echo ' make pdf generate a PDF file '
@echo ' make docx generate a Docx file '
@echo ' make tex generate a Latex file '
Expand All @@ -24,10 +25,14 @@ help:
@echo 'get local templates with: pandoc -D latex/html/etc '
@echo 'or generic ones from: https://github.com/jgm/pandoc-templates '

install:
sh $(BASEDIR)/install.sh

pdf:
pandoc \
--filter=pandoc-shortcaption \
--filter=pandoc-xnos \
--template="$(STYLEDIR)/template.tex" \
"$(INPUTDIR)"/*.md \
-o "$(OUTPUTDIR)/thesis.pdf" \
-H "$(STYLEDIR)/preamble.tex" \
Expand All @@ -41,6 +46,9 @@ pdf:

tex:
pandoc "$(INPUTDIR)"/*.md \
--filter=pandoc-shortcaption \
--filter=pandoc-xnos \
--template="$(STYLEDIR)/template.tex" \
--bibliography="$(BIBFILE)" \
-V fontsize=12pt \
-V papersize=a4paper \
Expand Down Expand Up @@ -75,4 +83,4 @@ html:
cp -r "$(INPUTDIR)/figures" "$(OUTPUTDIR)/source/figures"


.PHONY: help pdf docx html tex
.PHONY: help install pdf docx html tex
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ There are some minor annoyances:
- A text editor, like [Sublime](https://www.sublimetext.com/), which is what you'll use write the thesis.
- A LaTeX distribution (for example, [MacTeX](https://tug.org/mactex/) for Mac users).
- [Pandoc](http://johnmacfarlane.net/pandoc), for converting the Markdown to the output format of your choice.
- Pandoc plugins by running ```bash install.sh``` in the main direcotry
- Pandoc plugins by running ```make install```
- Git, for version control.
2. [Fork the repository](https://github.com/tompollard/phd_thesis_markdown/fork) on Github
3. Clone the repository onto your local computer (or [download the Zip file](https://github.com/tompollard/phd_thesis_markdown/archive/master.zip)).
Expand Down
16 changes: 16 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

#!/usr/bin/env bash

sudo apt-get install pandoc-citeproc &&
sudo tlmgr install truncate &&
sudo tlmgr install tocloft &&
sudo tlmgr install wallpaper &&
sudo tlmgr install morefloats &&
sudo tlmgr install sectsty &&
sudo tlmgr install siunitx &&
sudo tlmgr install threeparttable &&
sudo tlmgr update l3packages &&
sudo tlmgr update l3kernel &&
sudo tlmgr update l3experimental &&
pip3 install pandoc-fignos pandoc-eqnos pandoc-tablenos \
pandoc-secnos pandoc-shortcaption
3 changes: 2 additions & 1 deletion source/01_title_page.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ and add the centred logo

% Delete the following line
% to remove the UCL header logo
\ThisULCornerWallPaper{1.0}{style/univ_logo.eps}

\vspace*{2.5cm}
\huge
Expand Down
2 changes: 1 addition & 1 deletion source/12_chapter_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Fig. @fig:my_fig shows how to add a figure. Donec ut lacinia nibh. Nam tincidunt

<!--
Figures can be added with the following syntax:
![main_text_caption](source/figures/my_image.pdf, "short_caption(optional)"){#fig:mylabel}{ width=50% }
![main_text_caption](source/figures/my_image.pdf "short_caption(optional)"){#fig:mylabel}{ width=50% }
For details on setting attributes like width and height, see:
http://pandoc.org/MANUAL.html#extension-link_attributes
Expand Down

0 comments on commit 3e06bf3

Please sign in to comment.