Compare commits

...

2 Commits

Author SHA1 Message Date
766462e4ea Add drafts 2024-11-30 18:47:18 +01:00
ef5c3b03e8 Fix VS Code instructions 2024-11-30 17:37:23 +01:00
8 changed files with 290 additions and 1 deletions

1
.gitignore vendored
View File

@ -85,3 +85,4 @@ exercise-mode.tex
public
exercises/*/*.pdf
temp
exercises-new/*/*.pdf

View File

@ -0,0 +1,19 @@
% TODO: Make this document a report on A4 paper.
\documentclass[a4paper]{report}
% TODO: Specify UTF-8 as the input encoding to add umlaut support.
\usepackage[utf8]{inputenc}
% TODO: Specify T1 as the font encoding.
\usepackage[T1]{fontenc}
% TODO: Add support for the english language.
\usepackage[english]{babel}
% TODO: Add the document environment.
\begin{document}
Hello, world!
% TODO: Close the document environment.
\end{document}

View File

@ -0,0 +1,10 @@
% TODO: Make this document a report on A4 paper.
% TODO: Specify UTF-8 as the input encoding to add umlaut support.
% TODO: Specify T1 as the font encoding.
% TODO: Add support for the english language.
% TODO: Add the document environment.
Hello, world!
% TODO: Close the document environment.

View File

@ -0,0 +1,38 @@
\documentclass[a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\begin{document}
% TODO: Add the title "Recipes" with yourself as the author.
% TODO: Make the title appear before the text.
% TODO: Add a table of contents below the title.
% TODO: Replace all "\\" by real paragraphs.
% TODO: Declare headlines using the appropriate commands.
1. Beverages
1.1 Pink Lemonade
We all know and love it in summer: a cold lemonade. The pink variant of our favorite summer drink is traditionally achieved by adding food coloring to the lemonade. However, we changed things up a little and decided to go for a variant with berries instead of food coloring, which also makes the drink less sour.
1.1.1 Ingredients
For making the lemonade we need 400\,g of berries. You can use either frozen or fresh ones. You can, of course, adjust the choice of berries to your likings: raspberries, blueberries, blackberries, or a mixture work excellently for making the lemonade. \\
To make the drink sweeter we use 50\,ml of maple syrup. Needless to say, you can also use less, if you want your lemonade to be more sour. By the way, other sweeteners, such as agave syrup, or coconut sugar also work fine. \\
Additionally, we need the juice of four freshly-squeezed lemons, one litre worth of cold water and 400\,g of ice cubes to keep the drink cold.
1.1.2 Instructions
Put the berries along with the maple syrup into a large bowl and cook them at medium-high heat for around three to four minutes. When the berries start to soften, reduce the heat a little. Now mash the berries with the end of a wooden spoon until there are almost no big chunks anymore. The less chunks the better! \\
Place a sieve over the container that you want to store the lemonade in. Put the berries into the sieve. With the end of the wooden spoon, try to press out as much liquid of the berry mixture as possible. Let the juice sit until it is completely cold. \\
When the liquid is cold, add the lemon juice, the cold water, and the ice cubes and stir everything. \\
Your lemonade is now ready to enjoy!
1.2 Hot Chocolate
Coming soon!
2. Breakfast
2.1 Buckwheat Porridge
Coming soon!
\end{document}

View File

@ -0,0 +1,97 @@
\input{setup.tex} % Setup
\input{praeamble.tex} % Preamble
\input{commands.tex} % Custom commands
% Title section.
% TODO: Add yourself as an author.
\title{Fachschaft \acro{WIAI} \LaTeX{} Workshop\\Exercises}
\author{}
\begin{document}
\maketitle
\todo{First add yourself as an author, then add the title to the first page.}
\selectlanguage{english}
\frenchspacing
% Custom headline prefix
\renewcommand{\thesection}{E\arabic{section}}
\renewcommand{\thesubsection}{\arabic{subsection}}
% Title page
\input{titlepage-exercises.tex}
% or simply
% \maketitle
\thispagestyle{empty}
\newpage
\setcounter{page}{1} % Don't count title page.
\setcounter{tocdepth}{2}
\tableofcontents
\newpage
\input{first-steps-with-latex.tex}
% Align exercise numbers with chapters
\setcounter{section}{2}
\input{exercises/basic-document-structure/task}
\subsubsection*{Modify the content below}
\input{exercises/basic-document-structure/document-structure.raw}
\newpage
\input{exercises/project-structure/task}
\subsubsection*{Modify the content below}
\input{exercises/project-structure/tasks.raw}
\newpage
\input{exercises/special-characters/task}
\subsubsection*{Modify the content below}
\input{exercises/special-characters/special-characters.raw}
\newpage
\input{exercises/text-markup/task}
\subsubsection*{Modify the content below}
\input{exercises/text-markup/markup.raw}
\newpage
\input{exercises/lists/task}
\subsubsection*{Modify the content below}
\input{exercises/lists/lists.raw}
\newpage
\input{exercises/maths/task}
\subsubsection*{Modify the content below}
\input{exercises/maths/math-formulas.raw}
\newpage
\input{exercises/graphics/task}
\subsubsection*{Modify the content below}
\input{exercises/graphics/graphics.raw}
\newpage
\input{exercises/tables/task}
\subsubsection*{Modify the content below}
\input{exercises/tables/tables.raw}
\newpage
\input{exercises/footnotes/task}
\subsubsection*{Modify the content below}
\input{exercises/footnotes/footnotes.raw}
\newpage
\input{exercises/references/task}
\subsubsection*{Modify the content below}
\input{exercises/references/references.raw}
\newpage
\input{exercises/literature/task}
\subsubsection*{Modify the content below}
\input{exercises/literature/literature.raw}
\newpage
\input{exercises/source-code-listings/task}
\subsubsection*{Modify the content below}
\input{exercises/source-code-listings/source-code-listings.raw}
\end{document}

View File

@ -0,0 +1,52 @@
\documentclass[a4paper,english]{report}
% Language and font encoding
% \usepackage[utf8]{inputenc}
% \usepackage[T1]{fontenc}
% \usepackage[english,ngerman]{babel}
% Special characters
% \usepackage{eurosym, tipa, textcomp, textgreek, upgreek}
% Mathematical symbols
% \usepackage{amssymb, amsfonts, amsmath, dsfont}
% References and URLs
% \usepackage[hidelinks]{hyperref}
% \usepackage{cleveref}
% Images
% \usepackage{graphicx}
% \usepackage{float}
% \graphicspath{graphics/}
% Text color
% \usepackage[usenames,dvipsnames]{xcolor}
% Multiple captions in one figure
% \usepackage{subcaption}
% Compact lists
% \usepackage{paralist}
% Tables
% \usepackage{longtable, array, tabularx, booktabs, colortbl}
% PDF imports
% \usepackage{pdfpages}
% ToDos
% \usepackage{todonotes}
% \usepackage{changes}
% Source code listings
% \usepackage{listings}
% Quotes (\enquote)
% \usepackage[autostyle,autopunct=false]{csquotes}
% Literature
% \usepackage{natbib}
% Line wraps in monospace font
% \usepackage[htt]{hyphenat}

72
exercises-new/topics.md Normal file
View File

@ -0,0 +1,72 @@
# Topics
## 00 Setup
+ [ ] compiler installation (options, updates)
+ [ ] editor installation (options, setup)
+ [ ] compilation (based on a simple startup file)
+ [ ] package installation
## 01 Introduction
+ [ ] Knuth/Lamport
+ [ ] motivation
+ [ ] objections to LaTeX
+ [ ] WYSIWIG/WYSIWYM
+ [ ] editor/compiler tasks
## 02 Simple document
+ [ ] commands (parameters, backslash)
+ [ ] document class
+ [ ] input and font encoding
+ [ ] language settings
+ [ ] document environment
+ [ ] error handling
+ [ ] comments (with shortcuts)
## 03 Text layout
+ [ ] continuous text
+ [ ] paragraphs (empty lines)
+ [ ] headlines
+ [ ] title page
+ [ ] table of contents
## 04 Text markup
+ [ ] reserved characters
+ [ ] spaces
+ [ ] hyphens
+ [ ] quotes
+ [ ] emphases
+ [ ] URLs
+ [ ] lists
+ [ ] footnotes
## 05 Maths
## 06 Figures
+ [ ] images
+ [ ] tables
+ [ ] listings
+ [ ] references
## 07 Complex projects
+ [ ] main file
+ [ ] subfiles
+ [ ] file paths
+ [ ] root document
## 08 Bibliography
+ [ ] manual entry search
+ [ ] Zotero way
+ [ ] .bib file
+ [ ] bibliography style
+ [ ] bibliography
+ [ ] citing
+ [ ] maybe biber

View File

@ -17,7 +17,6 @@ LaTeX Workshop uses so-called recipes to compile documents. A recipe refers to a
```json
"latex-workshop.latex.recipes": [
{
{
"name": "pdflatex × 2",
"tools": [
@ -25,6 +24,7 @@ LaTeX Workshop uses so-called recipes to compile documents. A recipe refers to a
"pdflatex"
]
},
{
"name": "pdflatex -> bibtex -> pdflatex × 2",
"tools": [
"pdflatex",