Skip to content
Snippets Groups Projects
Commit 0bdb032f authored by Jasper Clemens Gräflich's avatar Jasper Clemens Gräflich
Browse files

Add command \inline

parent 1b834eb2
No related branches found
No related tags found
No related merge requests found
...@@ -81,6 +81,11 @@ morekeywords=[2]{bool,i8,i16,i32,i64,i128,isize,u8,u16,u32,u64,u128,usize,f32,f6 ...@@ -81,6 +81,11 @@ morekeywords=[2]{bool,i8,i16,i32,i64,i128,isize,u8,u16,u32,u64,u128,usize,f32,f6
} }
\lstset{style=color} \lstset{style=color}
% We use `~' as delimiter for the listing because baces don’t
% behave well if there are also braces in th source code. I hope
% that `~' is sufficiently rare in Rust to never encounter it.
\newcommand{{\inline}}[1]{{{\lstinline[language=Rust]~#1~}}}
% Caption formatting; I can’t get it to align the whole % Caption formatting; I can’t get it to align the whole
% caption to the left, only the paragraphs within the caption. % caption to the left, only the paragraphs within the caption.
\usepackage[font=footnotesize]{caption} \usepackage[font=footnotesize]{caption}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment