Compare commits
2 Commits
9e827a19d6
...
a50c4bf8fb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a50c4bf8fb | ||
|
|
3e3d168b79 |
@ -1,5 +1,12 @@
|
|||||||
An introductory \LaTeX{} course can be found in \enquote{\LaTeX{} in 24 Hours} \cite{datta2017}.
|
% Preamble adjustments
|
||||||
|
|
||||||
|
% Literature
|
||||||
|
\usepackage[style=numeric, citestyle=alpha, backend=biber]{biblatex}
|
||||||
|
\addbibresource{exercises/literature/literature.bib}
|
||||||
|
|
||||||
|
% Actual content
|
||||||
|
|
||||||
|
An introductory \LaTeX{} course can be found in \enquote{\LaTeX{} in 24 Hours} \parencite{datta2017}.
|
||||||
There is a plethora of further handbooks \cite*[e.\,g.,][]{goossensmittelbach2010}.
|
There is a plethora of further handbooks \cite*[e.\,g.,][]{goossensmittelbach2010}.
|
||||||
|
|
||||||
\bibliographystyle{plain}
|
\printbibliography
|
||||||
\bibliography{exercises/literature/literature.done.bib}
|
|
||||||
@ -8,12 +8,12 @@
|
|||||||
\item Dilip Datta (2017): \LaTeX\ in 24 Hours. A Practical Guide for Scientific Writing.
|
\item Dilip Datta (2017): \LaTeX\ in 24 Hours. A Practical Guide for Scientific Writing.
|
||||||
\item Frank Mittelbach / Michel Goossens (2010): Der \LaTeX-Begleiter.
|
\item Frank Mittelbach / Michel Goossens (2010): Der \LaTeX-Begleiter.
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
\item Add the Bib\TeX{} entries to the newly created Bib\TeX{} files.
|
\item Add the Bib\TeX{} entries to the newly created Bib\TeX{} file.
|
||||||
\item Assign unique and meaningful Bib\TeX{} keys.
|
\item Assign unique and meaningful Bib\TeX{} keys.
|
||||||
\item Include the Bib\TeX{} file in a suitable location, where later on the references should be listed.
|
\item Add the bibliography file to the project's preamble.
|
||||||
\item Cite the two handbooks in the
|
\item Make use of the \mono{alpha} bibliography style.
|
||||||
file\\\file{exercises/literature/literature.tex}.
|
\item Cite the two handbooks in the file\\\file{exercises/literature/literature.tex}.
|
||||||
\item Make use of the \mono{plain} biliography style.
|
\item Ensure that the bibliography is listed.
|
||||||
\item \textbf{Note}: If compiling fails, it may help to remove all auxiliary
|
|
||||||
files \\(\mono{main.aux/bbl/blg/loc/out/pdf/soc/toc}) before compiling again.
|
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
|
|
||||||
|
\noindent \textbf{Note}: If compiling fails, it may help to remove all auxiliary files \\(\mono{main.aux/bbl/blg/loc/out/pdf/soc/toc}) before compiling again.
|
||||||
@ -53,7 +53,7 @@
|
|||||||
\usepackage[autostyle,autopunct=false]{csquotes}
|
\usepackage[autostyle,autopunct=false]{csquotes}
|
||||||
|
|
||||||
% Literature
|
% Literature
|
||||||
\usepackage{natbib}
|
\usepackage[style=numeric, citestyle=ieee, backend=biber]{biblatex}
|
||||||
|
|
||||||
% Line wraps in monospace font
|
% Line wraps in monospace font
|
||||||
\usepackage[htt]{hyphenat}
|
\usepackage[htt]{hyphenat}
|
||||||
|
|||||||
@ -12,8 +12,8 @@ This tutorial demonstrates how to set up VS Code to compile the LaTeX script. Ma
|
|||||||
LaTeX Workshop uses so-called recipes to compile documents. A recipe refers to a list of commands that are executed one after the other. For our exercises, we will need one basic recipe which simply runs the compiler twice. Later on, we will need a second recipe to deal with bibliographic data.
|
LaTeX Workshop uses so-called recipes to compile documents. A recipe refers to a list of commands that are executed one after the other. For our exercises, we will need one basic recipe which simply runs the compiler twice. Later on, we will need a second recipe to deal with bibliographic data.
|
||||||
|
|
||||||
1. Launch the VS Code settings and search for “recipes.”
|
1. Launch the VS Code settings and search for “recipes.”
|
||||||
2. In the “Latex: Recipes” section, click on “Edit in settings.json.”
|
2. In the “Latex-workshop > LaTeX: Recipes” section, click on “Edit in settings.json.”
|
||||||
3. Go ahead and add the following two entries to the list. The first one just uses the `pdflatex` compiler twice to build our document, whereas the second one adds an intermediate round of `bibtex` compilation.
|
3. Go ahead and add the following two entries to the list. The first one just uses the `pdflatex` compiler twice to build our document, whereas the second one adds an intermediate round of `biber` compilation.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"latex-workshop.latex.recipes": [
|
"latex-workshop.latex.recipes": [
|
||||||
@ -25,10 +25,10 @@ LaTeX Workshop uses so-called recipes to compile documents. A recipe refers to a
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "pdflatex -> bibtex -> pdflatex × 2",
|
"name": "pdflatex -> biber -> pdflatex × 2",
|
||||||
"tools": [
|
"tools": [
|
||||||
"pdflatex",
|
"pdflatex",
|
||||||
"bibtex",
|
"biber",
|
||||||
"pdflatex",
|
"pdflatex",
|
||||||
"pdflatex"
|
"pdflatex"
|
||||||
]
|
]
|
||||||
@ -37,8 +37,26 @@ LaTeX Workshop uses so-called recipes to compile documents. A recipe refers to a
|
|||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Save and close the settings file.
|
4. Now search for “latex tools” in the settings search.
|
||||||
5. For later convenience, set the “Recipe: Default” option to `lastUsed`.
|
5. In the “Latex-workshop > LaTeX: Tools section, click on “Edit in settings.json.”
|
||||||
|
6. Make sure the following entry is part of the list.
|
||||||
|
|
||||||
|
```json
|
||||||
|
"latex-workshop.latex.tools": [
|
||||||
|
{
|
||||||
|
"name": "biber",
|
||||||
|
"command": "biber",
|
||||||
|
"args": [
|
||||||
|
"%DOC%"
|
||||||
|
],
|
||||||
|
"env": {}
|
||||||
|
},
|
||||||
|
// EXISTING ENTRIES GO HERE
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
|
7. Save and close the settings file.
|
||||||
|
8. For later convenience, set the “Latex-workshop > Latex > Recipe: Default” option to `lastUsed`.
|
||||||
|
|
||||||
## Compiling
|
## Compiling
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user