Skip to content
Snippets Groups Projects
Commit 73174149 authored by tuhe's avatar tuhe
Browse files

Refactor citation + tags and update README.md

parent 73bccb81
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@ Note that apparently there
One of the most annoying parts of maintaining student code is to constantly write "see equation on slide 41 bottom" only to have the reference go stale because slide 23 got removed. Well now anymore, now you can direcly refence anything with a bibtex or aux file!
Let's consider the following example of a simple document with a couple of references: (see `examples/latex/index.pdf`):
![LaTeX sample](https://gitlab.compute.dtu.dk/tuhe/snipper/-/blob/maindocs/index.png)
![LaTeX sample](https://gitlab.compute.dtu.dk/tuhe/snipper/-/blob/main/docs/index.png)
Bibliography references can be loaded from `references.bib`-files and in-document references from the `.aux` file.
......
......@@ -124,7 +124,7 @@ Note that apparently there
One of the most annoying parts of maintaining student code is to constantly write "see equation on slide 41 bottom" only to have the reference go stale because slide 23 got removed. Well now anymore, now you can direcly refence anything with a bibtex or aux file!
Let's consider the following example of a simple document with a couple of references: (see `examples/latex/index.pdf`):
![LaTeX sample]({{resources}}docs/index.png)
![LaTeX sample]({{resources}}/docs/index.png)
Bibliography references can be loaded from `references.bib`-files and in-document references from the `.aux` file.
......
docs/index.png

29.4 KiB | W: | H:

docs/index.png

25.9 KiB | W: | H:

docs/index.png
docs/index.png
docs/index.png
docs/index.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -16,8 +16,6 @@
\gdef\HyperFirstAtBeginDocument#1{#1}
\providecommand\HyField@AuxAddToFields[1]{}
\providecommand\HyField@AuxAddToCoFields[2]{}
\providecommand\babel@aux[2]{}
\@nameuse{bbl@beforestart}
\citation{bertsekasII}
\citation{rosolia2018data}
\citation{herlau}
......@@ -29,7 +27,6 @@
\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces A figure}}{1}{figure.1}\protected@file@percent }
\newlabel{fig1}{{1}{1}{A figure}{figure.1}{}}
\newlabel{fig1@cref}{{[figure][1][]1}{[1][1][]1}}
\babel@aux{english}{}
\@writefile{toc}{\contentsline {section}{\numberline {1}First section}{1}{section.1}\protected@file@percent }
\newlabel{sec1}{{1}{1}{First section}{section.1}{}}
\newlabel{sec1@cref}{{[section][1][]1}{[1][1][]1}}
......
This diff is collapsed.
No preview for this file type
No preview for this file type
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DO NOT EDIT THIS FILE. IT WILL BE AUTOMATICALLY OVERWRITTEN
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TeX-command-extra-options: "-shell-escape"
\documentclass[12pt,twoside]{article}
\usepackage[table]{xcolor} % important to avoid options clash.
%\input{book_preamble}
%\input{02465shared_preamble}
%\input{structure.tex}
\usepackage{url}
\usepackage{graphics}
%\usepackage{fancybox}
\usepackage{multicol}
\usepackage{rotate}
%\usepackage{epsf}
\usepackage{rotating}
%\usepackage{color}
\usepackage{booktabs}
\usepackage{hyperref}
\usepackage{pifont}
\usepackage{latexsym}
\usepackage[english]{babel}
\usepackage{epstopdf}
\usepackage{etoolbox}
%\usepackage{epsfig}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{multirow,epstopdf}
%\usepackage{cite}
\usepackage{fancyhdr}
\usepackage{booktabs}
%\usepackage[most]{tcolorbox}
\definecolor{LightGray}{HTML}{EEEEEE}
\documentclass{article}
\usepackage{url,graphics,rotating,hyperref}
\usepackage{cleveref}
\usepackage{todonotes}
%\pagestyle{fancy}
\usepackage{minted}
\usepackage{cleveref}
\usepackage{showlabels}
\begin{document}
\section{First section}\label{sec1}
Math is hard \cite{bertsekasII,rosolia2018data,herlau} as can also be seen from \cref{eq1} and from \cref{fig1}.
Math is hard \cite{bertsekasII,rosolia2018data,herlau}, see also \cref{eq1} and \cref{fig1}.
\begin{equation}
2+2 = 4 \label{eq1}
\end{equation}
\begin{figure}\centering
\includegraphics[width=.8\linewidth]{br}\caption{A figure}\label{fig1}
\includegraphics[width=.8\linewidth]{br}\caption{A figure}\label{fig1}
\end{figure}
\bibliographystyle{alpha}
\bibliography{library}
\bibliography{library}
\end{document}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment