Slides for teaching exercise classes in Microeconomics III at UCPH in Autumn 2019.
- Session 1 (manus)
- Session 2 (manus)
- Session 3 (manus)
- Session 4 (manus)
- Session 5 (manus)
- Session 6
- Session 7 (manus)
- Session 8 and Recipe for a static Bayesian game course note
- Session 9 (manus) and Auctions: Seller's expected revenue course note
- Session 10
- Session 11 and Signaling games: Cookbook and notation course note
- Session 12
Within the folder for each session, the "figures" folder contains Python code for Cournot and mixed strategy diagrams (sessions 2-4) as well as editable Inkscape (svg) files for the game trees (sessions 5-12).
I draw the game trees in Inkscape, which is a great piece of free software – when you have gotten used to it.
- Editing one of the existing game trees can be a quite straightforward start. If
- One can use LaTeX math mode such as
$x_1$
. - Exporting an illustration to a LaTeX document can be a bit cumbersome. Choose a name without spacing and save it as type: “Portable Document Format (*.pdf)” and choose “Omit text in PDF and create LaTeX file” and “Use exported object’s size”, which creates two new files (*.pdf and *.pdf_tex). Both must be included in the folder that is referred to in the LaTeX document using the code below (e.g. uploaded to Overleaf) to even see what the final figure looks like, as the files make little sense on their own.
\begin{figure}[!h]
\center
\def\svgwidth{.9\columnwidth} % "1.0" equals the width of the column
\import{folder_name/}{figure_name.pdf_tex}
\end{figure}
- When editing figures or tables for LaTeX in an external program it becomes cumbersome to use Overleaf, as you need to upload each edition. Instead, consider setting up an offline text editor such as Atom or Visual Studio Code (with LaTeX Workshop).
- Troubleshoot errors when building in LaTeX:
- If LaTeX can't build, it's usually due to free-floating rather than attached elements, typically dots or dashed lines. In Inkscape, two different selecting tools can be accessed by pressing
F1
andF2
respectively. For dots one needs to useF2
in order for them to 'attach' when hovering near the end of a line. - If white space is left at the right of the figure, reduce the font size in Inkscape as this only affects the area taken into account for the figure.
- If LaTeX can't build, it's usually due to free-floating rather than attached elements, typically dots or dashed lines. In Inkscape, two different selecting tools can be accessed by pressing
For students, I instead recommend drawing game trees in hand (or using PowerPoint) as it is the quickest and resembles the exam situation.
- Writing an assignments on the computer, one can take a picture or leave blank space to draw the figures after printing.
- Alternatively, an existing game tree can simply be coloured in Paint or PowerPoint.
This project is released under the MIT License, that is, you can basically do anything with my code as long as you give appropriate credit and don’t hold me liable.