Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Starting Kit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Starting Kit
Commits
2f99a64a
Commit
2f99a64a
authored
Jan 14, 2013
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: improve pandoc template to generate better sh output
parent
b323a623
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
9 deletions
+43
-9
Makefile
doc/Makefile
+3
-3
pandoc.latex
doc/pandoc.latex
+40
-6
No files found.
doc/Makefile
View file @
2f99a64a
...
...
@@ -44,13 +44,13 @@ DIR_%:
mkdir
-p
$
(
subst DIR_,,
$@
)
pdf/%.pdf
:
%.md Makefile $(TEMPLATE) DIR_pdf
pandoc
$(OPTIONS)
--latex-engine
=
xelatex
--highlight-style
=
haddock
$(TEMPLATEARG)
\
pandoc
$(OPTIONS)
--latex-engine
=
xelatex
--
listings
--
highlight-style
=
haddock
$(TEMPLATEARG)
\
-V
lang
=
english
-V
fontsize
=
11pt
-V
documentclass
=
article
-V
bg-color
=
238,245,240
-o
$@
$<
%.tex
:
%.md Makefile $(TEMPLATE)
@
echo
"
$
(dir
$@
)
$<
$^
$(TEX)
"
pandoc
$(OPTIONS)
--highlight-style
=
haddock
$(TEMPLATEARG)
\
-V
lang
=
english
-V
fontsize
=
11pt
-V
documentclass
=
article
-o
$@
$<
pandoc
$(OPTIONS)
--
listings
--
highlight-style
=
haddock
$(TEMPLATEARG)
\
-V
lang
=
english
-V
fontsize
=
11pt
-V
documentclass
=
article
-
V
bg-color
=
238,245,240
-
o
$@
$<
.PHONY
:
clean
...
...
doc/pandoc.latex
View file @
2f99a64a
...
...
@@ -68,12 +68,48 @@ $endif$
%% Environment for code formatting
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Define the background (shade) color
\usepackage{color}
\definecolor{shadecolor}{RGB}{$bg-color$}
\definecolor{darkgreen}{RGB}{0,125,0}
\definecolor{darkred}{RGB}{170,0,0}
\definecolor{turquoise}{RGB}{20,100,100}
$if(listings)$
\usepackage{listings}
\usepackage{fancyvrb, listings, color}
\lstset{%
basicstyle=\small\ttfamily,
breaklines=true,
fancyvrb=true,
tabsize=2,
columns=fullflexible,
keywordstyle=\color{blue}\textbf,
identifierstyle=,
commentstyle=\color{darkgreen}\textit,
stringstyle=\color{red},
backgroundcolor=\color{shadecolor},
}
\lstdefinelanguage{sh}
{
sensitive=true,
keywords={sudo},
alsoletter={\#,:,>},%
emph={>:\# ,>:$$},
moreemph={wrc\# ,wrc1\# ,wrc2\# , >spusa:\# ,>tornado:\# },
emphstyle=\color{darkred},
comment=[l]{\#\#},%
morestring=[s]{\{}{\}},
keywordstyle=\color{blue}\textbf,
commentstyle=\color{darkgreen}\textit,
stringstyle=\color{turquoise},
backgroundcolor=\color{shadecolor},
}
$endif$
$if(lhs)$
\lstnewenvironment{code}
{
\lstset{language=Haskell,basicstyle=\small\ttfamily}
}
{}
{}
$endif$
...
...
@@ -111,9 +147,7 @@ $if(highlighting-macros)$
}
$endif$
%% Define the background (shade) color
\usepackage{color}
\definecolor{shadecolor}{RGB}{$bg-color$}
$else$
$if(highlighting-macros)$
...
...
@@ -243,7 +277,7 @@ $endif$
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
$if(verbatim-in-note)$
\VerbatimFootnotes
% allows verbatim text in footnotes
% allows verbatim text in footnotes
$endif$
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment