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
bd6eeb4c
Commit
bd6eeb4c
authored
Dec 17, 2012
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: update Makefile & template
parent
84254c85
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
36 deletions
+37
-36
.gitignore
doc/.gitignore
+10
-2
Makefile
doc/Makefile
+14
-15
pandoc.latex
doc/pandoc.latex
+13
-19
No files found.
doc/.gitignore
View file @
bd6eeb4c
pdf/*
tex/*
~
pdf/
tex/
*.aux
*.log
*.out
*.pdf
*.tex
*.toc
doc/Makefile
View file @
bd6eeb4c
...
...
@@ -19,16 +19,21 @@
## Obtaining the proper file
SRC
=
$
(
wildcard
*
.md
)
PDFDIR
=
pdf/
TEXDIR
=
tex/
PDF
=
$
(
addprefix
$(PDFDIR)
,
$
(
SRC:.mkd
=
.pdf
))
TEX
=
$
(
addprefix
$(TEXDIR)
,
$
(
SRC:.mkd
=
.tex
))
PDF
=
$
(
addprefix pdf/,
$
(
SRC:.md
=
.pdf
))
TEX
=
$
(
SRC:.md
=
.tex
)
## Pandoc arguments
OPTIONS
=
-f
markdown
--toc
--number-sections
--smart
TEMPLATE
=
pandoc.latex
ifneq
"$(TEMPLATE)"
""
TEMPLATEARG
=
--template
=
$(TEMPLATE)
endif
#--highlight-style=pygments (the default), kate, monochrome, espresso, haddock, and tango
#-V highlight-bg=true
## Main targets
all
:
$(PDF)
tex
:
$(TEX)
...
...
@@ -38,19 +43,11 @@ pdf: $(PDF)
DIR_%
:
mkdir
-p
$
(
subst DIR_,,
$@
)
ifneq
"$(TEMPLATE)"
""
TEMPLATEARG
=
--template
=
$(TEMPLATE)
endif
#--highlight-style=pygments (the default), kate, monochrome, espresso, haddock, and tango
#-V highlight-bg=true
$(PDFDIR)%.pdf
:
%.mkd Makefile $(TEMPLATE) DIR_pdf
pdf/%.pdf
:
%.md Makefile $(TEMPLATE) DIR_pdf
pandoc
$(OPTIONS)
--latex-engine
=
xelatex
--highlight-style
=
haddock
$(TEMPLATEARG)
\
-V
lang
=
english
-V
fontsize
=
11pt
-V
documentclass
=
article
-V
bg-color
=
238,245,240
-o
$@
$<
$(TEXDIR)%.tex
:
%.mkd Makefile $(TEMPLATE) DIR_tex
%.tex
:
%.md Makefile $(TEMPLATE)
@
echo
"
$
(dir
$@
)
$<
$^
$(TEX)
"
pandoc
$(OPTIONS)
--highlight-style
=
haddock
$(TEMPLATEARG)
\
-V
lang
=
english
-V
fontsize
=
11pt
-V
documentclass
=
article
-o
$@
$<
...
...
@@ -58,5 +55,7 @@ $(TEXDIR)%.tex: %.mkd Makefile $(TEMPLATE) DIR_tex
.PHONY
:
clean
clean
:
rm
-f
$(PDFDIR)
*
.pdf
*
~
$(TEXDIR)
*
.tex
*
.log
rm
-f
pdf/
*
.pdf
*
~
*
.tex
*
.log
doc/pandoc.latex
View file @
bd6eeb4c
...
...
@@ -197,29 +197,23 @@ $if(fancy-enums)$
% cause markers to extend beyond the left margin.
\makeatletter\AtBeginDocument{%
\renewcommand{\@listi}
{\setlength{\labelwidth}{4em}}
{
\setlength{\labelwidth}{4em}
\leftmargin=25pt
\rightmargin=0pt
\labelsep=7pt
\labelwidth=20pt
\itemindent=0pt
\listparindent=0pt
\topsep=2pt plus 2pt minus 2pt
\partopsep=0pt plus 1pt minus 10pt
\parsep=1pt plus 1pt
\itemsep=\parsep
}
}\makeatother
\usepackage{enumerate}
$endif$
%%% SPACING
% Less vertical space between list items
%\setlength{\itemsep}{2pt}
% Less vertical space before a list
%\setlength{\topsep}{0.3cm}
\renewcommand{\@listI}{%
\leftmargin=25pt
\rightmargin=0pt
\labelsep=7pt
\labelwidth=20pt
\itemindent=0pt
\listparindent=0pt
\topsep=2pt plus 2pt minus 2pt
\partopsep=0pt plus 1pt minus 10pt
\parsep=1pt plus 1pt
\itemsep=\parsep}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em} % prevent overfull lines
...
...
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