[bootlin/training-materials updates] master: common/labs: make trainingurl a LaTeX variable instead of using a command (6862e0ff)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Tue Apr 26 18:15:24 CEST 2022
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/6862e0ffde428cd9c06cea963739a53eb401b1c1
>---------------------------------------------------------------
commit 6862e0ffde428cd9c06cea963739a53eb401b1c1
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date: Tue Apr 26 18:15:24 2022 +0200
common/labs: make trainingurl a LaTeX variable instead of using a command
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
>---------------------------------------------------------------
6862e0ffde428cd9c06cea963739a53eb401b1c1
common/labs-header.tex | 2 +-
common/labs.sty | 8 +-------
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/common/labs-header.tex b/common/labs-header.tex
index f64e212c..983094fa 100644
--- a/common/labs-header.tex
+++ b/common/labs-header.tex
@@ -82,7 +82,7 @@
\vspace{0.5cm}
\ifdefstring{\labbooksubtitle}{}{}{\Large \labbooksubtitle \\}
\huge\vspace{1cm} Practical Labs}
-\trainingurl{https://bootlin.com/doc/training/__SESSION_NAME__}
+\def \trainingurl{https://bootlin.com/doc/training/__SESSION_NAME__}
\date{\lastupdateen{}}
\begin{document}
diff --git a/common/labs.sty b/common/labs.sty
index 031f90cd..5c6e778a 100644
--- a/common/labs.sty
+++ b/common/labs.sty
@@ -72,7 +72,6 @@
%% Set up the constants
\newcommand{\@laburl}{}
\newcommand{\@docurl}{}
-\newcommand{\@trainingurl}{}
\newcommand{\@feurl}{https://bootlin.com}
\newcommand{\@cchref}
@@ -84,11 +83,6 @@
\newcommand{\@ccimg}{common/logo-cc.pdf}
-\newcommand{\trainingurl}[1]
-{
- \renewcommand{\@trainingurl}{#1}
-}
-
\newcommand{\ccimg}[1]
{
\renewcommand{\@ccimg}{#1}
@@ -142,7 +136,7 @@
{
\section{About this document}
- Updates to this document can be found on \url{\@trainingurl}.
+ Updates to this document can be found on \url{\trainingurl}.
This document was generated from LaTeX sources found on
\url{https://github.com/bootlin/training-materials}.
More information about the training-materials-updates
mailing list