summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 94fae57)
raw | patch | inline | side by side (parent: 94fae57)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 13 Jun 2010 21:15:19 +0000 (23:15 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 13 Jun 2010 21:15:19 +0000 (23:15 +0200) |
src/l2l.c | patch | blob | history | |
src/l2l_scanner.l | patch | blob | history |
diff --git a/src/l2l.c b/src/l2l.c
index 221fbbba52b5284058a9417697f13b4720c300da..a6736cf07064cc325ce8feacc028d6f070e14ae9 100644 (file)
--- a/src/l2l.c
+++ b/src/l2l.c
"\\else\n"
"\\usepackage[dvips]{graphicx}\n"
"\\fi\n"
+"\\usepackage[svgnames]{xcolor}\n"
"\n"
"\\usepackage{listings}\n"
"\\lstset{breaklines=true,breakatwhitespace=true}\n"
diff --git a/src/l2l_scanner.l b/src/l2l_scanner.l
index 251b93b3685f683febbaec9b4b7a886cd42ab01d..d02479d7370525f4336ccf14dead9eded4cb5b78 100644 (file)
--- a/src/l2l_scanner.l
+++ b/src/l2l_scanner.l
l2l_sub = 1;
}
}
+
+ \[[0-9]+\] {
+ L2L_YY_APPEND_OR_ECHO(l2l_buf_ptr,
+ "{\\bfseries\\textcolor{DarkBlue}{%s}}", yytext);
+ }
}
\<[uU]> {
L2L_YY_APPEND_OR_ECHO(l2l_buf_ptr, "%s", yytext);
}
+(Abbildung|Listing)({WHITESPACE}|\n)+[0-9]+ {
+ L2L_YY_APPEND_OR_ECHO(l2l_buf_ptr, "\\textcolor{DarkBlue}{%s}", yytext);
+}
+
/*
* header
*/