[FE training-materials-updates] Beamer style: implement a \codewithhash{} command
Michael Opdenacker
michael.opdenacker at free-electrons.com
Wed Mar 9 14:39:22 CET 2016
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=5e3a9bbae68a0a682555ac59f3dca791714a5f79
>---------------------------------------------------------------
commit 5e3a9bbae68a0a682555ac59f3dca791714a5f79
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date: Wed Mar 9 11:02:59 2016 +0100
Beamer style: implement a \codewithhash{} command
- Useful for \code{} statements containing the # character
(# alone crashes, \# is not escaped)
- This looks identical as \code{} statements
Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>
>---------------------------------------------------------------
5e3a9bbae68a0a682555ac59f3dca791714a5f79
common/beamerthemeFreeElectrons.sty | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/beamerthemeFreeElectrons.sty b/common/beamerthemeFreeElectrons.sty
index 5b04628..28a4108 100644
--- a/common/beamerthemeFreeElectrons.sty
+++ b/common/beamerthemeFreeElectrons.sty
@@ -31,6 +31,7 @@
% Custom free-electrons commands
\newcommand{\code}[1]{{\usebeamercolor[fg]{code} \path{#1}}}
+\newcommand{\codewithhash}[1]{{\usebeamercolor[fg]{code} \tt{#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}}}
More information about the training-materials-updates
mailing list