Session #1 support material/info¶
Markdown¶
- exercise #1: HTML page to replicate (use PyCharm)
- exercise #2: convert your .md file to a PDF with Pandoc
LaTeX¶
Intro slides (as presented during GEO1002)¶
Intro slides to LaTeX by tudelft3d
Exercises¶
- Register at https://overleaf.com with your
@tudelft.nl
email (for an account with more options, TUDelft pays for it) - Start with the template below here and discover/try some features. Notice that this won't compile correctly because of the reference on line 26: the file
myreferences.bib
should be in the same folder - copy the content of the second file to a file
myreferences.bib
and add it to the same folder - check this demo template to know the best way to make complex things (tables, code, etc.)
- when all this works, try to replicate this PDF
A better starting template for simple LaTeX¶
\documentclass[a4paper,11pt]{scrartcl}
\usepackage{graphicx}
\usepackage[utf8]{inputenc} %-- pour utiliser des accents en français
\usepackage{amsmath,amssymb,amsthm}
\usepackage[round]{natbib}
\usepackage{url}
\usepackage{mathpazo}
\usepackage{booktabs}
\usepackage{hyperref}
\title{My great title}
\author{Jan Smit\\ \url{j.smit@tudelft.nl}}
\date{\today}
\begin{document}
\maketitle
\section{Introduction}
Lemongrass frosted gingerbread bites banana bread orange crumbled lentils sweet potato black bean burrito green pepper springtime.
Strawberry ginger lemongrass agave green tea smoky maple tempeh glaze enchiladas couscous.
Cranberry spritzer Malaysian cinnamon pineapple salsa apples spring cherry bomb bananas blueberry pops scotch bonnet pepper.
Bento box roasted peanuts pasta Sicilian~\citep{DeVries20}.
\bibliographystyle{abbrvnat}
\bibliography{references.bib}
\end{document}
@article{DeVries20,
author = {De Vries, Piet},
doi = {10.1016/j.scs.2022.104225},
journal = {Sustainable Cities and Society},
pages = {102222},
title = {Understanding the relationship between urban morphology and other things},
year = {2021}
}
Python venv¶
- install pyenv
- create a new venv called "geogeeks"
- activate it (with the console or with PyCharm)
- install pyproj:
pip install pyproj
- try to import it:
import pyproj
and you shouldn't get any errors
Today's slides¶
Today's slides are available there.