https://github.com/clecap/templates-for-students
Examples, templates and suggestions for my students
https://github.com/clecap/templates-for-students
Last synced: 4 months ago
JSON representation
Examples, templates and suggestions for my students
- Host: GitHub
- URL: https://github.com/clecap/templates-for-students
- Owner: clecap
- Created: 2020-09-21T19:57:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T20:17:46.000Z (over 5 years ago)
- Last Synced: 2025-02-23T00:45:59.557Z (over 1 year ago)
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# templates-for-students
This directory contains some templates for the use of my students.
* The use of these templates is not mandatory.
* Probably you can find better ways to do things. The templates just reflect the way I would do things.
* I will update them from time to time.
## is-alpha-clemens.bst
This is a hacked version of a BibTeX bibliographic style, which also typesets the BibTeX fields URL, DoI and arXiv.
The contents of these fields is piped into TeX macros \bibformatURL, \bibformatDoI and \bibformatArXiv, which further format the entries.
For maintaining the bib files, I use a Jabref instance where I have added these three fields as custom fields.
My way of defining these macros is reflected in the following code snippet which I use in most of my recent TeX files. It is assumed
that the hyperref package is loaded.
```
%% Define a macro \murls for multiple urls which can format multiple urls when seperated by blanks
% We use this in the bibliography
% See https://tex.stackexchange.com/questions/57865/how-to-use-multiple-urls-for-one-bibtex-reference
\makeatletter
\def\murls{\begingroup \catcode`\%=12\catcode`\#=12\relax\printurl}
\def\printurl#1{\@URL#1 \@nil\endgroup}
\def\@URL#1 #2\@nil{\url{#1}\ifx\relax#2\relax \else; \murls{#2\relax}\fi}
\makeatother
% We want to have clickable URLs but the bib style ist-alpha-clemens which we use does not support that.
% We hacked the bib style to also format entries DoI URL and arXiv
% Below we define, how this should be displayed in LaTeX
\def\bibformatDoI#1{DoI: \url{https://doi.org/ #1}}
\def\bibformatURL#1{URL: \murls{#1}}
\def\bibformatArXiv#1{arXiv: #1 \href{https://arxiv.org/pdf/#1.pdf}{PDF} \href{https://arxiv.org/abs/#1}{Abstract}}
%
% That is the bibliography style we need for deadling with this.
\bibliographystyle{/Users/cap/TEX/is-alpha-clemens}
```