[FE training-materials-updates] Introduce kfunc and ksymc LaTeX macros
Michael Opdenacker
michael.opdenacker at free-electrons.com
Sun Sep 29 16:20:02 CEST 2013
Repository : git://git.free-electrons.com/training-materials.git
On branch : kernel-ng
Link : http://git.free-electrons.com/training-materials/commit/?id=ca5121e316422cea648f44abe41a2e2ec3554bc3
>---------------------------------------------------------------
commit ca5121e316422cea648f44abe41a2e2ec3554bc3
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date: Sun Sep 29 12:59:53 2013 +0200
Introduce kfunc and ksymc LaTeX macros
- Useful to provide links to LXR
really helpful for people reading the electronic versions
Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>
>---------------------------------------------------------------
ca5121e316422cea648f44abe41a2e2ec3554bc3
common/beamerthemeFreeElectrons.sty | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/beamerthemeFreeElectrons.sty b/common/beamerthemeFreeElectrons.sty
index 6eb83cc..9dbeb11 100644
--- a/common/beamerthemeFreeElectrons.sty
+++ b/common/beamerthemeFreeElectrons.sty
@@ -25,8 +25,9 @@
\setbeamertemplate{blocks}[rounded][shadow=true]
% Custom free-electrons commands
-\newcommand{\klink}[1]{\href{http://lxr.linux.no/?=#1}{\usebeamercolor[fg]{code} {\tt #1}}}
\newcommand{\code}[1]{{\usebeamercolor[fg]{code} \path{#1}}}
+\newcommand\kfunc[1]{\href{http://lxr.free-electrons.com/ident?i=#1}{\code{#1()}}}
+\newcommand\ksym[1]{\href{http://lxr.free-electrons.com/ident?i=#1}{\code{#1}}}
\usepackage{listings}
\usepackage{environ}
More information about the training-materials-updates
mailing list