[FE training-materials-updates] fe theme: add routines for kernel symbols and files

Michael Opdenacker michael.opdenacker at free-electrons.com
Sun Sep 29 16:20:04 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=cb9961c8c506d02c5940760d9169a83372de62f3

>---------------------------------------------------------------

commit cb9961c8c506d02c5940760d9169a83372de62f3
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Sun Sep 29 14:42:09 2013 +0200

    fe theme: add routines for kernel symbols and files
    
    - Allowing to create useful lxr and kerneldoc
      links in the PDF documents.
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


>---------------------------------------------------------------

cb9961c8c506d02c5940760d9169a83372de62f3
 common/beamerthemeFreeElectrons.sty |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/common/beamerthemeFreeElectrons.sty b/common/beamerthemeFreeElectrons.sty
index 9dbeb11..764131b 100644
--- a/common/beamerthemeFreeElectrons.sty
+++ b/common/beamerthemeFreeElectrons.sty
@@ -28,6 +28,11 @@
 \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}}}
+\newcommand\kstruct[1]{\href{http://lxr.free-electrons.com/ident?i=#1}{\code{struct #1}}}
+\newcommand\kpath[1]{\href{http://lxr.free-electrons.com/source/#1}{\code{#1}}}
+\newcommand\kerneldoc[1]{
+  {\href{http://free-electrons.com/kerneldoc/latest/#1}{\code{Documentation/#1}}}
+}
 
 \usepackage{listings}
 \usepackage{environ}
@@ -172,8 +177,4 @@
   {\large \color{red}TODO: #1}
 }
 
-\newcommand\kerneldoc[1]{
-  {\href{http://free-electrons.com/kerneldoc/latest/#1}{\code{Documentation/#1}}}
-}
-
 \usemintedstyle{perldoc}



More information about the training-materials-updates mailing list