Skip to content
Snippets Groups Projects
Commit 544ec1a1 authored by Andreas Herten's avatar Andreas Herten
Browse files

Adapt Makefile, remove old PDFs, add new PDFs

parent 74082d62
No related branches found
No related tags found
No related merge requests found
Showing with 11 additions and 73 deletions
File moved
# Typeset Markdown documentation files for GPU Hackathon Jülich into PDF
# Individual PDFs for each .md will be created plus one concatenated, large PDF of all .md files.
#
# Andreas Herten, March 2017
# Note: Need cross-reffing for figures? https://github.com/lierdakil/pandoc-crossref!
# Andreas Herten, March 2017, March 2019
LC = pandoc
LCFLAGS = --latex-engine=xelatex --variable mainfont="PT Serif"
LCFLAGS = --pdf-engine=xelatex --variable mainfont="PT Serif"
LCFLAGS += --highlight-style pygments
LCFLAGS += --filter convert2pdf/latex-unicode-filter.py
LCFLAGS += --number-sections
LCFLAGS += --variable lang:en
LCFLAGS += --variable colorlinks
......@@ -16,25 +14,23 @@ LCFLAGS += --variable geometry:margin=1in
LCFLAGS += --variable author:"Andreas Herten <a.herten@fz-juelich.de>"
# SRC = $(wildcard *.md)
SRC = Login.md JURON.md JURECA.md PizDaint.md Batch-Systems.md Profiling-Nvidia_Visual_Profiler-nvprof.md Profiling-scorep-Vampir.md More.md
SRC = Accounts.md JUWELS.md JURON.md Batch-Systems.md More.md
PDFS = $(SRC:.md=.pdf)
all: $(PDFS) all.pdf
VPATH = convert2pdf
%.pdf: %.md Makefile
$(LC) $(LCFLAGS) -o convert2pdf/$@ $<
$(LC) $(LCFLAGS) -o pdf/$@ $<
all.pdf: LCFLAGS += --toc
all.pdf: LCFLAGS += --variable title:"GPU Eurohack 2017 User Guide"
all.pdf: LCFLAGS += --variable abstract:"Some hints for participants and mentors of the GPU Hackathon 2017 at Jülich Supercomputing Centre. \textit{Hack Away!}"
all.pdf: LCFLAGS += --variable title:"GPU Eurohack 2019 User Guide"
all.pdf: LCFLAGS += --variable abstract:"Some hints for participants and mentors of the GPU Hackathon 2019 at Jülich Supercomputing Centre. \textit{Hack Away!}"
all.pdf: LCFLAGS += --variable institute:"Forschungszentrum Jülich"
all.pdf: LCFLAGS += --variable keywords:"GPU,CUDA,OpenACC,FZJ,JSC"
all.pdf: $(SRC) Makefile
$(LC) $(LCFLAGS) -o convert2pdf/$@ $(SRC)
$(LC) $(LCFLAGS) -o pdf/$@ $(SRC)
.PHONY: clean
clean:
rm convert2pdf/*.pdf
rm pdf/*.pdf
......@@ -24,6 +24,5 @@ Some useful links for further reading
* Supercomputers
- [JURECA](http://www.fz-juelich.de/ias/jsc/EN/Expertise/Supercomputers/JURECA/UserInfo/UserInfo_node.html)
- [JURON](https://trac.version.fz-juelich.de/hbp-pcp/wiki/Public)
- [PizDaint](http://user.cscs.ch/getting_started/running_jobs/piz_daint)
* Other
- [JSC Eurohack Gitlab](https://gitlab.version.fz-juelich.de/eurohack/)
- [Helmholtz GPU Hackathon Gitlab](https://gitlab.version.fz-juelich.de/gpu-hackathon/)
......@@ -11,3 +11,5 @@ Available documents:
* [JURON Introduction](JURON.md)
* [Overview of the Batch Systems](Batch-Systems.md)
* [More Information and Useful Links](More.md)
See the directory ./pdf/ for PDF version of the files, for example all.pdf.
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Base source: https://github.com/mmechtley/pandoc-filter-test
import panflute as pf
_unicode_tex_replaces = {
u'': r'\leq{}', u'': r'\geq{}',
u'': r'\neq{}', u'': r'\approx{}',
u'×': r'\times{}', u'÷': r'\div{}',
u'±': r'\pm{}', u'·': r'\cdot{}',
u'': r'\circ{}', u'': r'\prime{}',
u'': r'\infty{}', u'¬': r'\neg{}',
u'': r'\wedge{}', u'': r'\vee{}',
u'': r'\supset{}', u'': r'\forall{}',
u'': r'\in{}', u'': r'\rightarrow{}',
u'': r'\subset{}', u'': r'\exists{}',
u'': r'\notin{}', u'': r'\Rightarrow{}',
u'': r'\cup{}', u'': r'\cap{}',
u'|': r'\mid{}', u'': r'\Leftrightarrow{}',
u'': r'\simeq{}', u'': r'\gtrsim{}',
u'': r'\lesssim{}',
u'α': r'\alpha{}', u'β': r'\beta{}',
u'γ': r'\gamma{}', u'δ': r'\delta{}',
u'': r'\epsilon{}', u'ζ': r'\zeta{}',
u'η': r'\eta{}', u'ε': r'\varepsilon{}',
u'θ': r'\theta{}', u'ι': r'\iota{}',
u'κ': r'\kappa{}', u'𝜗': r'\vartheta{}',
u'λ': r'\lambda{}', u'μ': r'\mu{}',
u'ν': r'\nu{}', u'ξ': r'\xi{}',
u'π': r'\pi{}', u'ρ': r'\rho{}',
u'σ': r'\sigma{}', u'τ': r'\tau{}',
u'υ': r'\upsilon{}', u'φ': r'\phi{}',
u'χ': r'\chi{}', u'ψ': r'\psi{}',
u'ω': r'\omega{}',
u'Γ': r'\Gamma{}', u'Δ': r'\Delta{}',
u'Θ': r'\Theta{}', u'Λ': r'\Lambda{}',
u'Ξ': r'\Xi{}', u'Π': r'\Pi{}',
u'Σ': r'\Sigma{}', u'Υ': r'\Upsilon{}',
u'Φ': r'\Phi{}', u'Ψ': r'\Psi{}',
u'Ω': r'\Omega{}'
}
def unicode_replace(elem, doc):
if hasattr(elem, 'text'):
found_chars = [key for key in _unicode_tex_replaces.keys()
if key in elem.text]
for u_char in found_chars:
elem.text = elem.text.replace(
u_char, _unicode_tex_replaces[u_char])
if len(found_chars) and type(elem) != pf.Math:
return pf.Math(text=elem.text, format='InlineMath')
return
if __name__ == '__main__':
pf.toJSONFilter(unicode_replace)
File added
File added
File added
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment