├── .gitignore
├── bin
└── tpl4md.bat
└── share
├── templates
├── epub
│ ├── make-clean.bat
│ ├── make-epub.bat
│ ├── title.txt
│ ├── images
│ │ └── hw.jpg
│ ├── doc
│ │ ├── README_epub.pdf
│ │ └── README-fr_epub.pdf
│ ├── configuration.json
│ ├── Makefile
│ ├── generate_files
│ ├── generator.py
│ ├── document.md
│ ├── README.md
│ └── README-fr.md
├── pdf-cplx
│ ├── make-clean.bat
│ ├── make-pdf-cplx.bat
│ ├── images
│ │ ├── hw.jpg
│ │ └── quotes_opening.png
│ ├── dblatex
│ │ ├── dbk_callout.sty
│ │ ├── dbk_locale.sty
│ │ ├── dbk_changebar.sty
│ │ ├── dbk_admonition.sty
│ │ ├── dbk_item.sty
│ │ ├── dbk_biblio.sty
│ │ ├── dbk_hyper.sty
│ │ ├── dbk_title.sty
│ │ ├── dbk_graphic.sty
│ │ ├── dbk_table.sty
│ │ ├── dbk_verbatim.sty
│ │ ├── lastpage.sty
│ │ ├── dbk_core.sty
│ │ ├── dbk_headfoot.sty
│ │ ├── dbk_fonts.sty
│ │ ├── dbk_revision.sty
│ │ └── dbk_annot.sty
│ ├── doc
│ │ └── README-fr_pdf-cplx.pdf
│ ├── Makefile
│ ├── configuration.json
│ ├── generator.py
│ ├── document.md
│ └── pdf-template-cplx.tex
├── pdf-simple
│ ├── make-clean.bat
│ ├── make-pdf-simple.bat
│ ├── images
│ │ └── hw.jpg
│ ├── doc
│ │ ├── README_pdf-simple.pdf
│ │ └── README_pdf-simple.md
│ ├── Makefile
│ ├── configuration.json
│ ├── generator.py
│ ├── pdf-template-simple.tex
│ ├── document.md
│ └── generate_files
└── slides-reveal
│ ├── make-clean.bat
│ ├── make-slides-reveal.bat
│ ├── Makefile
│ ├── favicon.ico
│ ├── images
│ └── hw.jpg
│ ├── lib
│ ├── font
│ │ ├── league_gothic_license
│ │ ├── league_gothic-webfont.eot
│ │ ├── league_gothic-webfont.ttf
│ │ └── league_gothic-webfont.woff
│ ├── js
│ │ ├── html5shiv.js
│ │ ├── classList.js
│ │ └── head.min.js
│ └── css
│ │ └── zenburn.css
│ ├── doc
│ ├── README_slides-reveal.pdf
│ └── README_slides-reveal.md
│ ├── plugin
│ ├── markdown
│ │ ├── example.md
│ │ └── example.html
│ ├── multiplex
│ │ ├── client.js
│ │ ├── master.js
│ │ └── index.js
│ ├── print-pdf
│ │ └── print-pdf.js
│ ├── postmessage
│ │ ├── postmessage.js
│ │ └── example.html
│ ├── remotes
│ │ └── remotes.js
│ ├── notes-server
│ │ ├── client.js
│ │ ├── index.js
│ │ └── notes.html
│ └── notes
│ │ ├── notes.js
│ │ └── notes.html
│ ├── src
│ ├── second_part.md
│ └── first_part.md
│ ├── configuration.json
│ ├── css
│ ├── theme
│ │ ├── template
│ │ │ ├── settings.scss
│ │ │ ├── mixins.scss
│ │ │ └── theme.scss
│ │ ├── source
│ │ │ ├── night.scss
│ │ │ ├── serif.scss
│ │ │ ├── sky.scss
│ │ │ ├── simple.scss
│ │ │ ├── default.scss
│ │ │ ├── beige.scss
│ │ │ ├── moon.scss
│ │ │ └── solarized.scss
│ │ ├── README.md
│ │ ├── night.css
│ │ ├── serif.css
│ │ ├── simple.css
│ │ ├── moon.css
│ │ ├── solarized.css
│ │ ├── sky.css
│ │ ├── beige.css
│ │ └── default.css
│ └── print
│ │ ├── pdf.css
│ │ └── paper.css
│ ├── LICENSE
│ ├── package.json
│ ├── generator.py
│ ├── index.html
│ ├── Gruntfile.js
│ └── generate_files
├── doc
├── README.pdf
└── README-fr.pdf
└── common
├── cleanup.py
└── bin
└── config_parsing
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
--------------------------------------------------------------------------------
/bin/tpl4md.bat:
--------------------------------------------------------------------------------
1 | marksf_gen -i
2 | pause
--------------------------------------------------------------------------------
/share/templates/epub/make-clean.bat:
--------------------------------------------------------------------------------
1 | make clean
2 | pause
--------------------------------------------------------------------------------
/share/templates/epub/make-epub.bat:
--------------------------------------------------------------------------------
1 | make epub
2 | pause
--------------------------------------------------------------------------------
/share/templates/epub/title.txt:
--------------------------------------------------------------------------------
1 | % !title!
2 | % !author!
3 |
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/make-clean.bat:
--------------------------------------------------------------------------------
1 | make clean
2 | pause
--------------------------------------------------------------------------------
/share/templates/pdf-simple/make-clean.bat:
--------------------------------------------------------------------------------
1 | make clean
2 | pause
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/make-pdf-cplx.bat:
--------------------------------------------------------------------------------
1 | make pdf-cplx
2 | pause
--------------------------------------------------------------------------------
/share/templates/slides-reveal/make-clean.bat:
--------------------------------------------------------------------------------
1 | make clean
2 | pause
--------------------------------------------------------------------------------
/share/templates/pdf-simple/make-pdf-simple.bat:
--------------------------------------------------------------------------------
1 | make pdf-simple
2 | pause
--------------------------------------------------------------------------------
/share/templates/slides-reveal/make-slides-reveal.bat:
--------------------------------------------------------------------------------
1 | make slides-reveal
2 | pause
--------------------------------------------------------------------------------
/share/doc/README.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/doc/README.pdf
--------------------------------------------------------------------------------
/share/doc/README-fr.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/doc/README-fr.pdf
--------------------------------------------------------------------------------
/share/templates/epub/images/hw.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/epub/images/hw.jpg
--------------------------------------------------------------------------------
/share/templates/slides-reveal/Makefile:
--------------------------------------------------------------------------------
1 | slides-reveal:
2 | python ./bin/generate_files
3 | clean:
4 | rm -rf index.html
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/images/hw.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/pdf-cplx/images/hw.jpg
--------------------------------------------------------------------------------
/share/templates/epub/doc/README_epub.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/epub/doc/README_epub.pdf
--------------------------------------------------------------------------------
/share/templates/pdf-simple/images/hw.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/pdf-simple/images/hw.jpg
--------------------------------------------------------------------------------
/share/templates/epub/doc/README-fr_epub.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/epub/doc/README-fr_epub.pdf
--------------------------------------------------------------------------------
/share/templates/slides-reveal/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/slides-reveal/favicon.ico
--------------------------------------------------------------------------------
/share/templates/slides-reveal/images/hw.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/slides-reveal/images/hw.jpg
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_callout.sty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/pdf-cplx/dblatex/dbk_callout.sty
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_locale.sty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/pdf-cplx/dblatex/dbk_locale.sty
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_changebar.sty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/pdf-cplx/dblatex/dbk_changebar.sty
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/images/quotes_opening.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/pdf-cplx/images/quotes_opening.png
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_admonition.sty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/pdf-cplx/dblatex/dbk_admonition.sty
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/doc/README-fr_pdf-cplx.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/pdf-cplx/doc/README-fr_pdf-cplx.pdf
--------------------------------------------------------------------------------
/share/templates/pdf-simple/doc/README_pdf-simple.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/pdf-simple/doc/README_pdf-simple.pdf
--------------------------------------------------------------------------------
/share/templates/slides-reveal/lib/font/league_gothic_license:
--------------------------------------------------------------------------------
1 | SIL Open Font License (OFL)
2 | http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
3 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/doc/README_slides-reveal.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/slides-reveal/doc/README_slides-reveal.pdf
--------------------------------------------------------------------------------
/share/templates/slides-reveal/lib/font/league_gothic-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/slides-reveal/lib/font/league_gothic-webfont.eot
--------------------------------------------------------------------------------
/share/templates/slides-reveal/lib/font/league_gothic-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/slides-reveal/lib/font/league_gothic-webfont.ttf
--------------------------------------------------------------------------------
/share/templates/slides-reveal/lib/font/league_gothic-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dloureiro/tpl4md/HEAD/share/templates/slides-reveal/lib/font/league_gothic-webfont.woff
--------------------------------------------------------------------------------
/share/templates/epub/configuration.json:
--------------------------------------------------------------------------------
1 | {
2 | "source_file_name":"document.md",
3 | "destination_file_name":"example",
4 | "title" : "Sample E-book",
5 | "author" : "John Doe"
6 | }
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_item.sty:
--------------------------------------------------------------------------------
1 | %
2 | % This package can handle @continuation, @spacing, and @numeration.
3 | %
4 | \usepackage[shortlabels]{common/dblatex/enumitem}
5 |
6 | % No extra indentation
7 | \setitemize{leftmargin=*}
8 |
9 |
--------------------------------------------------------------------------------
/share/common/cleanup.py:
--------------------------------------------------------------------------------
1 | #! /usr/bin/python
2 |
3 | import glob, os
4 |
5 | directory='../templates'
6 | os.chdir(directory)
7 | filelist = glob.glob("*/generator.pyc")
8 | for f in filelist:
9 | print "-- Removing file : " + f
10 | os.remove(f)
--------------------------------------------------------------------------------
/share/templates/slides-reveal/lib/js/html5shiv.js:
--------------------------------------------------------------------------------
1 | document.createElement('header');
2 | document.createElement('nav');
3 | document.createElement('section');
4 | document.createElement('article');
5 | document.createElement('aside');
6 | document.createElement('footer');
7 | document.createElement('hgroup');
--------------------------------------------------------------------------------
/share/templates/slides-reveal/plugin/markdown/example.md:
--------------------------------------------------------------------------------
1 | # Markdown Demo
2 |
3 |
4 |
5 | ## External 1.1
6 |
7 | Content 1.1
8 |
9 |
10 | ## External 1.2
11 |
12 | Content 1.2
13 |
14 |
15 |
16 | ## External 2
17 |
18 | Content 2.1
19 |
20 |
21 |
22 | ## External 3.1
23 |
24 | Content 3.1
25 |
26 |
27 | ## External 3.2
28 |
29 | Content 3.2
30 |
--------------------------------------------------------------------------------
/share/templates/epub/Makefile:
--------------------------------------------------------------------------------
1 | SOURCE_FILE_NAME = `python ./bin/config_parsing source_file_name`
2 | BOOK_FILE_NAME = `python ./bin/config_parsing destination_file_name`
3 |
4 | EPUB_BUILDER = pandoc
5 | EPUB_BUILDER_FLAGS = \
6 | --toc
7 |
8 | epub:
9 | python ./bin/generate_files
10 | $(EPUB_BUILDER) $(EPUB_BUILDER_FLAGS) title-gen.txt $(SOURCE_FILE_NAME) -o $(BOOK_FILE_NAME).epub
11 | rm -rf title-gen.txt
12 |
13 | clean:
14 | rm -f $(BOOK_FILE_NAME).epub
15 | rm -f title-gen.txt
--------------------------------------------------------------------------------
/share/templates/slides-reveal/plugin/multiplex/client.js:
--------------------------------------------------------------------------------
1 | (function() {
2 | var multiplex = Reveal.getConfig().multiplex;
3 | var socketId = multiplex.id;
4 | var socket = io.connect(multiplex.url);
5 |
6 | socket.on(multiplex.id, function(data) {
7 | // ignore data from sockets that aren't ours
8 | if (data.socketId !== socketId) { return; }
9 | if( window.location.host === 'localhost:1947' ) return;
10 |
11 | Reveal.slide(data.indexh, data.indexv, data.indexf, 'remote');
12 | });
13 | }());
14 |
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/Makefile:
--------------------------------------------------------------------------------
1 | SOURCE_FILE_NAME = `python ./bin/config_parsing source_file_name`
2 | BOOK_FILE_NAME = `python ./bin/config_parsing destination_file_name`
3 |
4 | PDF_BUILDER = pandoc
5 | PDF_BUILDER_CPLX_FLAGS = \
6 | --latex-engine xelatex \
7 | --template pdf-template-gen.tex \
8 | --listings \
9 | --toc
10 |
11 | pdf-cplx:
12 | python ./bin/generate_files
13 | $(PDF_BUILDER) $(PDF_BUILDER_CPLX_FLAGS) $(SOURCE_FILE_NAME) -f markdown -o $(BOOK_FILE_NAME).pdf
14 | rm -rf ./pdf-template-gen.tex
15 |
16 | clean:
17 | rm -f $(BOOK_FILE_NAME).pdf
18 | rm -f pdf-template-gen.tex
--------------------------------------------------------------------------------
/share/templates/pdf-simple/Makefile:
--------------------------------------------------------------------------------
1 | SOURCE_FILE_NAME = `python ./bin/config_parsing source_file_name`
2 | BOOK_FILE_NAME = `python ./bin/config_parsing destination_file_name`
3 |
4 | PDF_BUILDER = pandoc
5 | PDF_BUILDER_SIMPLE_FLAGS = \
6 | --latex-engine xelatex \
7 | --listings \
8 | --template pdf-template-gen.tex
9 |
10 | pdf-simple:
11 | python ./bin/generate_files
12 | $(PDF_BUILDER) $(PDF_BUILDER_SIMPLE_FLAGS) $(SOURCE_FILE_NAME) -f markdown -o $(BOOK_FILE_NAME).pdf
13 | rm -rf ./pdf-template-gen.tex
14 | clean:
15 | rm -f $(BOOK_FILE_NAME).pdf
16 | rm -f pdf-template-gen.tex
--------------------------------------------------------------------------------
/share/templates/slides-reveal/src/second_part.md:
--------------------------------------------------------------------------------
1 | # Merci!
2 | ## Questions?
3 |
4 |
5 |
6 |
7 |
8 | [http://www.sysfera.com](http://www.sysfera.com)
9 | [http://sysfera.github.com](http://sysfera.github.com)
10 |
11 |
12 | [contact@sysfera.com](mailto://contact@sysfera.com)
13 | [marie.granier@sysfera.com](mailto://marie.granier@sysfera.com)
14 | [benjamin.depardon@sysfera.com](mailto://benjamin.depardon@sysfera.com)
15 | [david.loureiro@sysfera.com](mailto://david.loureiro@sysfera.com)
16 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/configuration.json:
--------------------------------------------------------------------------------
1 | {
2 | "title" : "Document entre SysFera et un client",
3 | "subtitle":"Trop bien",
4 | "author" : "John Doe",
5 | "website":"http://www.sysfera.com",
6 | "e-mail" : "john.doe@sysfera.com",
7 | "twitter" : "hakimel",
8 | "event":"Mix-IT",
9 | "date":"2013-04-27",
10 | "transition":"cube",
11 | "loop":true,
12 | "autoSlide":7000,
13 | "table_of_contents":true,
14 | "source_files":[
15 | {
16 | "file":"src/first_part.md",
17 | "title":"First part"
18 | },
19 | {
20 | "file":"src/second_part.md",
21 | "title":"Second part"
22 | }
23 | ]
24 | }
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_biblio.sty:
--------------------------------------------------------------------------------
1 | \usepackage{bibtopic}
2 |
3 | % btPrintAll redefined to not include a file
4 |
5 | \newenvironment{bibgroup}{%
6 | \ifthenelse{\boolean{bt@inside@sect}}{%
7 | \protected@edef\bt@curr@line{\the\inputlineno}%
8 | \def\bt@curr@cmd{\string\btPrintAll}%
9 | \bt@stepcnt\bt@internal@sect@cnt
10 | \bt@print@citedfalse\bt@print@alltrue
11 | \label{Sec:\bt@internal@sect@cnt}%
12 | \bt@change@bibitem
13 | }{%
14 | \bt@sect@err{btSect}{\btPrintAll}%
15 | }%
16 | }{
17 | \ifthenelse{\boolean{bt@inside@sect}}{%
18 | \bt@print@keyvals{\bt@sect@ref@list}%
19 | {Sec:\bt@internal@sect@cnt}%
20 | }{%
21 | }%
22 | }
23 |
24 |
--------------------------------------------------------------------------------
/share/templates/pdf-simple/configuration.json:
--------------------------------------------------------------------------------
1 | {
2 | "source_file_name":"document.md",
3 | "destination_file_name":"example",
4 | "client":"Client",
5 | "title" : "Document entre SysFera et un client",
6 | "author" : "John Doe",
7 | "project_name" : "Projet 999",
8 | "release_info":"Réalisé héhé",
9 | "water_mark":"DRAFT",
10 | "lang":"french",
11 | "author_company" : "Example inc.",
12 | "footer":{
13 | "left":[
14 | "A marvelous company",
15 | "We are a rock-solid team",
16 | "located at the edge of the univers"
17 | ],
18 | "right":[
19 | "Web : \\url{www.example.com}",
20 | "e-mail : \\url{contact@example.com}",
21 | "Tel : 01 23 45 67 89"
22 | ]
23 | }
24 | }
--------------------------------------------------------------------------------
/share/common/bin/config_parsing:
--------------------------------------------------------------------------------
1 | #! /usr/bin/python
2 |
3 | import json
4 | import sys
5 | import codecs
6 | from os import path, access, R_OK # W_OK for write permission.
7 | import argparse
8 |
9 | def main(key_to_retrieve) :
10 |
11 | configuration_file = u'./configuration.json'
12 |
13 | if path.isfile(configuration_file) and access(configuration_file, R_OK):
14 |
15 | json_data=codecs.open(configuration_file,'r','utf-8')
16 | data = json.load(json_data)
17 | print(data[key_to_retrieve])
18 | json_data.close()
19 |
20 | else :
21 | print "configuration.json file does not exist!"
22 |
23 | parser = argparse.ArgumentParser()
24 | parser.add_argument("key", help="The key of the value to retrieve from the configuration file")
25 | args = parser.parse_args()
26 |
27 | if args.key != None :
28 | main(args.key)
29 | else :
30 | parser.print_help()
--------------------------------------------------------------------------------
/share/templates/slides-reveal/plugin/print-pdf/print-pdf.js:
--------------------------------------------------------------------------------
1 | /**
2 | * phantomjs script for printing presentations to PDF.
3 | *
4 | * Example:
5 | * phantomjs print-pdf.js "http://lab.hakim.se/reveal-js?print-pdf" reveal-demo.pdf
6 | *
7 | * By Manuel Bieh (https://github.com/manuelbieh)
8 | */
9 |
10 | // html2pdf.js
11 | var page = new WebPage();
12 | var system = require( 'system' );
13 |
14 | page.paperSize = {
15 | format: 'A4',
16 | orientation: 'landscape',
17 | margin: {
18 | left: '0',
19 | right: '0',
20 | top: '0',
21 | bottom: '0'
22 | }
23 | };
24 | page.zoomFactor = 1.5;
25 |
26 | var revealFile = system.args[1] || 'index.html?print-pdf';
27 | var slideFile = system.args[2] || 'slides.pdf';
28 |
29 | if( slideFile.match( /\.pdf$/gi ) === null ) {
30 | slideFile += '.pdf';
31 | }
32 |
33 | console.log( 'Printing PDF...' );
34 |
35 | page.open( revealFile, function( status ) {
36 | console.log( 'Printed succesfully' );
37 | page.render( slideFile );
38 | phantom.exit();
39 | } );
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/template/settings.scss:
--------------------------------------------------------------------------------
1 | // Base settings for all themes that can optionally be
2 | // overridden by the super-theme
3 |
4 | // Background of the presentation
5 | $backgroundColor: #2b2b2b;
6 |
7 | // Primary/body text
8 | $mainFont: 'Lato', sans-serif;
9 | $mainFontSize: 36px;
10 | $mainColor: #eee;
11 |
12 | // Headings
13 | $headingFont: 'League Gothic', Impact, sans-serif;
14 | $headingColor: #eee;
15 | $headingLineHeight: 0.9em;
16 | $headingLetterSpacing: 0.02em;
17 | $headingTextTransform: uppercase;
18 | $headingTextShadow: 0px 0px 6px rgba(0,0,0,0.2);
19 | $heading1TextShadow: $headingTextShadow;
20 |
21 | // Links and actions
22 | $linkColor: #13DAEC;
23 | $linkColorHover: lighten( $linkColor, 20% );
24 |
25 | // Text selection
26 | $selectionBackgroundColor: #FF5E99;
27 | $selectionColor: #fff;
28 |
29 | // Generates the presentation background, can be overridden
30 | // to return a background image or gradient
31 | @mixin bodyBackground() {
32 | background: $backgroundColor;
33 | }
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_hyper.sty:
--------------------------------------------------------------------------------
1 | %
2 | % If hyperlink, load the hyperref package and set the \hyperlabel command needed
3 | % by the DocBook stylesheets
4 | %
5 | \@ifundefined{DBKhyperlink}{ \def\DBKhyperlink{no} }{}
6 |
7 | \usepackage{ifpdf}
8 |
9 | \ifthenelse{\equal{\DBKhyperlink}{yes}}{
10 | \@ifundefined{hyperparam}{
11 | \def\hyperparam{linktocpage,colorlinks,citecolor=blue,pdfstartview=FitH}
12 | }{}
13 | \@ifundefined{hyperparamadd}{
14 | \def\hyperparamadd{}
15 | }{}
16 | \ifpdf
17 | \usepackage[pdftex,plainpages=false,\hyperparam,\hyperparamadd]{hyperref}
18 | \def\hyperlabel#1{\hypertarget{#1}{}}
19 | \else\ifxetex
20 | \usepackage[xetex,plainpages=false,\hyperparam,\hyperparamadd]{hyperref}
21 | \def\hyperlabel#1{\hypertarget{#1}{}}
22 | \else
23 | \usepackage[dvips,plainpages=false,\hyperparam,\hyperparamadd]{hyperref}
24 | \def\hyperlabel#1{\Hy@raisedlink{\hyper@anchorstart{#1}\hyper@anchorend}}
25 | \fi\fi
26 | }{
27 | \usepackage{hyperref}
28 | \def\hyperlabel#1{}
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/source/night.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Black theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(https://fonts.googleapis.com/css?family=Montserrat:700);
16 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
17 |
18 |
19 | // Override theme settings (see ../template/settings.scss)
20 | $backgroundColor: #111;
21 |
22 | $mainFont: 'Open Sans', sans-serif;
23 | $linkColor: #e7ad52;
24 | $linkColorHover: lighten( $linkColor, 20% );
25 | $headingFont: 'Montserrat', Impact, sans-serif;
26 | $headingTextShadow: none;
27 | $headingLetterSpacing: -0.03em;
28 | $headingTextTransform: none;
29 | $selectionBackgroundColor: #e7ad52;
30 | $mainFontSize: 30px;
31 |
32 |
33 | // Theme template ------------------------------
34 | @import "../template/theme";
35 | // ---------------------------------------------
--------------------------------------------------------------------------------
/share/templates/slides-reveal/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (C) 2013 Hakim El Hattab, http://hakim.se
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
--------------------------------------------------------------------------------
/share/templates/slides-reveal/plugin/postmessage/postmessage.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | simple postmessage plugin
4 |
5 | Useful when a reveal slideshow is inside an iframe.
6 | It allows to call reveal methods from outside.
7 |
8 | Example:
9 | var reveal = window.frames[0];
10 |
11 | // Reveal.prev();
12 | reveal.postMessage(JSON.stringify({method: 'prev', args: []}), '*');
13 | // Reveal.next();
14 | reveal.postMessage(JSON.stringify({method: 'next', args: []}), '*');
15 | // Reveal.slide(2, 2);
16 | reveal.postMessage(JSON.stringify({method: 'slide', args: [2,2]}), '*');
17 |
18 | Add to the slideshow:
19 |
20 | dependencies: [
21 | ...
22 | { src: 'plugin/postmessage/postmessage.js', async: true, condition: function() { return !!document.body.classList; } }
23 | ]
24 |
25 | */
26 |
27 | (function (){
28 |
29 | window.addEventListener( "message", function ( event ) {
30 | var data = JSON.parse( event.data ),
31 | method = data.method,
32 | args = data.args;
33 |
34 | if( typeof Reveal[method] === 'function' ) {
35 | Reveal[method].apply( Reveal, data.args );
36 | }
37 | }, false);
38 |
39 | }());
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/src/first_part.md:
--------------------------------------------------------------------------------
1 | # SysFera
2 |
3 | !SLIDE
4 | # Historique
5 |
6 | * 2001-2010 :
7 | * Laboratoire de l’Informatique du parallélisme (ENS, INRIA), Equipe-projet Graal/Avalon
8 | * Projet Décrypthon
9 | * 2010-2013
10 | * SysFera
11 | * Co-développement avec EDF R&D
12 | * Impliqué dans des projets de plates-formes de calcul (IRT, ANR, FP7, Mésocentres, Décrypthon 3)
13 |
14 |
15 | !SLIDE
16 | # Vision HPC
17 |
18 | ### Facilité l’utilisation des ressources HPC
19 |
20 | * Les ingénieurs/chercheurs doivent se concentrer sur leur métier, pas sur l’informatique
21 | * Facilité d’utilisation des ressources et des applications
22 | * Transparence d’accès aux ressources
23 | * Fédérer l’accès aux ressources
24 |
25 |
26 | !SLIDE
27 | # Vision SaaS
28 |
29 | ### Permettre le passage et l’exploitation d’applications en SaaS de manière efficace
30 |
31 | * On-Premise -> SaaS : sans toucher à son application
32 | * Scalabilité
33 | * Interaction entre marketing – vente – support – applications – infrastructure
34 | * Utilisation d’infrastructure Cloud
35 |
36 | !SLIDE
37 | # Références
38 |
39 | 
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_title.sty:
--------------------------------------------------------------------------------
1 | % ******************************************************************************
2 | % *** Page de garde
3 | % ******************************************************************************
4 |
5 | \newlength{\oldbaselineskip}
6 |
7 | \def\DBKcover{
8 | \ifthenelse{\equal{\DBKedition}{}}{\def\edhead{}}{\def\edhead{Ed. \DBKedition}}
9 |
10 | % interligne double
11 | \setlength{\oldbaselineskip}{\baselineskip}
12 | \setlength{\baselineskip}{2\oldbaselineskip}
13 | \textsf{
14 | \vfill
15 | \vspace{2.5cm}
16 | \begin{center}
17 | \huge{\textbf{\DBKtitle}}\\ %
18 | \ifx\DBKsubtitle\relax\else%
19 | \underline{\ \ \ \ \ \ \ \ \ \ \ }\\ %
20 | \ \\ %
21 | \huge{\textbf{\DBKsubtitle}}\\ %
22 | \fi
23 | \end{center}
24 | \vfill
25 | \setlength{\baselineskip}{\oldbaselineskip}
26 | \hspace{1cm}
27 | \vspace{1cm}
28 | \begin{center}
29 | \begin{tabular}{p{7cm} p{7cm}}
30 | \Large{\DBKreference{} \edhead} & \\
31 | \end{tabular}
32 | \end{center}
33 | }
34 | \thispagestyle{empty}
35 | % Format for the other pages
36 | \newpage
37 | \setcounter{page}{1}
38 | \setlength{\baselineskip}{\oldbaselineskip}
39 | %\chead[]{\DBKcheadfront}
40 | %\lfoot[]{}
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/plugin/postmessage/example.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/source/serif.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * A simple theme for reveal.js presentations, similar
3 | * to the default theme. The accent color is darkblue.
4 | *
5 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
6 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se; so is the theme - beige.css - that this is based off of.
7 | */
8 |
9 |
10 | // Default mixins and settings -----------------
11 | @import "../template/mixins";
12 | @import "../template/settings";
13 | // ---------------------------------------------
14 |
15 |
16 |
17 | // Override theme settings (see ../template/settings.scss)
18 | $mainFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
19 | $mainColor: #000;
20 | $headingFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
21 | $headingColor: #383D3D;
22 | $headingTextShadow: none;
23 | $headingTextTransform: none;
24 | $backgroundColor: #F0F1EB;
25 | $linkColor: #51483D;
26 | $linkColorHover: lighten( $linkColor, 20% );
27 | $selectionBackgroundColor: #26351C;
28 |
29 |
30 |
31 | // Theme template ------------------------------
32 | @import "../template/theme";
33 | // ---------------------------------------------
--------------------------------------------------------------------------------
/share/templates/slides-reveal/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "reveal.js",
3 | "version": "2.4.0",
4 | "description": "The HTML Presentation Framework",
5 | "homepage": "http://lab.hakim.se/reveal-js",
6 | "subdomain": "revealjs",
7 | "scripts": {
8 | "test": "grunt jshint",
9 | "start": ""
10 | },
11 | "author": {
12 | "name": "Hakim El Hattab",
13 | "email": "hakim.elhattab@gmail.com",
14 | "web": "http://hakim.se"
15 | },
16 | "repository": {
17 | "type": "git",
18 | "url": "git://github.com/hakimel/reveal.js.git"
19 | },
20 | "engines": {
21 | "node": "~0.8.0"
22 | },
23 | "dependencies": {
24 | "underscore": "~1.3.3",
25 | "express": "~2.5.9",
26 | "mustache": "~0.4.0",
27 | "socket.io": "~0.9.13"
28 | },
29 | "devDependencies": {
30 | "grunt-contrib-jshint": "~0.2.0",
31 | "grunt-contrib-cssmin": "~0.4.1",
32 | "grunt-contrib-uglify": "~0.1.1",
33 | "grunt-contrib-watch": "~0.2.0",
34 | "grunt-contrib-sass": "~0.2.2",
35 | "grunt-contrib-connect": "~0.2.0",
36 | "grunt-zip": "~0.7.0",
37 | "grunt": "~0.4.0"
38 | },
39 | "licenses": [
40 | {
41 | "type": "MIT",
42 | "url": "https://github.com/hakimel/reveal.js/blob/master/LICENSE"
43 | }
44 | ]
45 | }
46 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/source/sky.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Sky theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 |
15 | // Include theme-specific fonts
16 | @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
17 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
18 |
19 |
20 | // Override theme settings (see ../template/settings.scss)
21 | $mainFont: 'Open Sans', sans-serif;
22 | $mainColor: #333;
23 | $headingFont: 'Quicksand', sans-serif;
24 | $headingColor: #333;
25 | $headingLetterSpacing: -0.08em;
26 | $headingTextShadow: none;
27 | $backgroundColor: #f7fbfc;
28 | $linkColor: #3b759e;
29 | $linkColorHover: lighten( $linkColor, 20% );
30 | $selectionBackgroundColor: #134674;
31 |
32 | // Background generator
33 | @mixin bodyBackground() {
34 | @include radial-gradient( #add9e4, #f7fbfc );
35 | }
36 |
37 |
38 |
39 | // Theme template ------------------------------
40 | @import "../template/theme";
41 | // ---------------------------------------------
--------------------------------------------------------------------------------
/share/templates/epub/generate_files:
--------------------------------------------------------------------------------
1 | import re
2 | import sys
3 | import json
4 | import codecs
5 | from os import path, access, R_OK # W_OK for write permission.
6 |
7 | if len(sys.argv) > 1 :
8 | debug = True;
9 | else :
10 | debug = False;
11 |
12 | json_data=codecs.open('./configuration.json', "r", "utf-8")
13 | data = json.load(json_data)
14 | json_data.close()
15 |
16 | file_handle = codecs.open("./common/title.txt", 'r', "utf-8")
17 | file_string = file_handle.read()
18 | file_handle.close()
19 | # Getting title
20 | if "title" in data :
21 | title = data["title"]
22 | else :
23 | print "Setting default value for title : My title"
24 | title = "My title"
25 |
26 | if debug : print "Setting title to " + title
27 | file_string = (re.sub(u'!title!', title, file_string))
28 |
29 | # Getting author
30 | if "author" in data :
31 | author = data["author"]
32 | else :
33 | print "Setting default value for author : My author"
34 | author = "My author"
35 |
36 | if debug : print "Setting author to " + author
37 | file_string = (re.sub(u'!author!', author, file_string))
38 |
39 | # Write contents to file.
40 | # Using mode 'w' truncates the file.
41 | file_handle = codecs.open("./title-gen.txt", 'w', "utf-8")
42 | file_handle.write(file_string)
43 | file_handle.close()
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_graphic.sty:
--------------------------------------------------------------------------------
1 | %
2 | % Check if the image file (#1) exists. If so, it switches to #2, else to #3
3 | % It assumes that the graphics package \Gin@extensions macro is defined.
4 | %
5 | \long\def\imgexists#1#2#3{%
6 | \begingroup%
7 | \let\img@file\relax%
8 | \filename@parse{#1}%
9 | \ifx\filename@ext\relax%
10 | \@for\Gin@temp:=\Gin@extensions\do{%
11 | \ifx\img@file\relax%
12 | \IfFileExists{#1\Gin@temp}{\def\img@file{#1}}{}%
13 | \fi}%
14 | \else
15 | \IfFileExists{#1}{\def\img@file{#1}}{}%
16 | \fi%
17 | \ifx\img@file\relax#3\else#2\fi%
18 | \endgroup%
19 | }
20 |
21 | %
22 | % The image keeps its natural size if lower than the max boundaries
23 | % Now it's fully based on internal graphics macros
24 | %
25 | % Macros defining the maximum lengths
26 | \def\imgmaxwidth{\textwidth}
27 | \def\imgmaxheight{\textheight}
28 |
29 | % Real image sizes
30 | \def\imgrwidth{\Gin@nat@width}
31 | \def\imgrheight{\Gin@nat@height}
32 | \def\imgevalsize#1{}%
33 |
34 | % Use the maximum possible size
35 | \def\imgwidth{%
36 | \ifdim\Gin@nat@width>\imgmaxwidth
37 | \imgmaxwidth
38 | \else
39 | \Gin@nat@width
40 | \fi
41 | }
42 |
43 | \def\imgheight{%
44 | \ifdim\Gin@nat@height>\imgmaxheight
45 | \imgmaxheight
46 | \else
47 | \Gin@nat@height
48 | \fi
49 | }
50 |
51 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/source/simple.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * A simple theme for reveal.js presentations, similar
3 | * to the default theme. The accent color is darkblue.
4 | *
5 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
6 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 | */
8 |
9 |
10 | // Default mixins and settings -----------------
11 | @import "../template/mixins";
12 | @import "../template/settings";
13 | // ---------------------------------------------
14 |
15 |
16 |
17 | // Include theme-specific fonts
18 | @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
20 |
21 |
22 | // Override theme settings (see ../template/settings.scss)
23 | $mainFont: 'Lato', sans-serif;
24 | $mainColor: #000;
25 | $headingFont: 'News Cycle', Impact, sans-serif;
26 | $headingColor: #000;
27 | $headingTextShadow: none;
28 | $headingTextTransform: none;
29 | $backgroundColor: #fff;
30 | $linkColor: #00008B;
31 | $linkColorHover: lighten( $linkColor, 20% );
32 | $selectionBackgroundColor: rgba(0, 0, 0, 0.99);
33 |
34 |
35 |
36 | // Theme template ------------------------------
37 | @import "../template/theme";
38 | // ---------------------------------------------
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_table.sty:
--------------------------------------------------------------------------------
1 | %%
2 | %% Manages the tables.
3 | %%
4 | %% The package is provided to:
5 | %% - fix or workaround some bugs,
6 | %% - define some specific dimensions,
7 | %% - workaround annoying longtable things about table counter.
8 |
9 | \usepackage{longtable}
10 | \usepackage{lscape}
11 | \usepackage{colortbl}
12 | \usepackage{multirow}
13 | \usepackage{calc}
14 | \usepackage{hhline}
15 |
16 | % Multirow changed, used by newtbl
17 | \usepackage{common/dblatex/multirow2}
18 |
19 | % Temporary latex/3797 bug fix (colortbl) by Morten Hoegholm
20 | \expandafter\renewcommand\expandafter\multicolumn
21 | \expandafter[\expandafter3\expandafter]\expandafter{%
22 | \multicolumn{#1}{#2}{#3}}
23 |
24 | % Make \@xmultirow long
25 | \expandafter\long\expandafter\def%
26 | \expandafter\@xmultirow%
27 | \expandafter#\expandafter1%
28 | \expandafter[\expandafter#\expandafter2\expandafter]%
29 | \expandafter#\expandafter3%
30 | \expandafter[\expandafter#\expandafter4\expandafter]%
31 | \expandafter#\expandafter5%
32 | \expandafter{\@xmultirow{#1}[#2]{#3}[#4]{#5}}
33 |
34 | % For the newtbl code
35 | \newdimen\newtblstarfactor%
36 | \newdimen\newtblsparewidth%
37 | \newdimen\newtblcolwidth%
38 | \newdimen\tablewidth%
39 |
40 | % Avoid table counter mess with (informal) longtable
41 | \def\emptyrefstepcounter#1{}
42 | \let\stdrefstepcounter\refstepcounter%
43 | \def\savetablecounter{%
44 | \let\refstepcounter\emptyrefstepcounter%
45 | }
46 | \def\restoretablecounter{%
47 | \let\refstepcounter\stdrefstepcounter%
48 | }
49 |
50 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/lib/js/classList.js:
--------------------------------------------------------------------------------
1 | /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js*/
2 | if(typeof document!=="undefined"&&!("classList" in document.createElement("a"))){(function(j){var a="classList",f="prototype",m=(j.HTMLElement||j.Element)[f],b=Object,k=String[f].trim||function(){return this.replace(/^\s+|\s+$/g,"")},c=Array[f].indexOf||function(q){var p=0,o=this.length;for(;p Question mark \?
32 | %% Commercial at \@ Left bracket \[ Backslash \\
33 | %% Right bracket \] Circumflex \^ Underscore \_
34 | %% Grave accent \` Left brace \{ Vertical bar \|
35 | %% Right brace \} Tilde \~}
36 | %%
37 | %% Allow for things like |page \thepage\ of \pageref{LastPage}| to
38 | %% get `page 5 of 23'
39 | \NeedsTeXFormat{LaTeX2e}[1994/06/01]
40 | \ProvidesPackage{lastpage}[\filedate\space\fileversion\space
41 | LaTeX2e package for refs to last page number (JPG)]
42 | \def\lastpage@putlabel{\addtocounter{page}{-1}%
43 | \immediate\write\@auxout{\string
44 | \newlabel{LastPage}{{}{\thepage}}}%
45 | \addtocounter{page}{1}}
46 | \AtEndDocument{%
47 | \message{AED: lastpage setting LastPage}%
48 | \clearpage\lastpage@putlabel}%
49 | \endinput
50 | %%
51 | %% End of file `lastpage.sty'.
52 |
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_core.sty:
--------------------------------------------------------------------------------
1 | %
2 | % Basic core definitions used for DocBook
3 | %
4 | \usepackage{graphicx}
5 | \usepackage{ifthen}
6 | \usepackage{subfigure}
7 | \usepackage[shortlabels]{common/dblatex/enumitem}
8 | \usepackage{footmisc}
9 | \usepackage{appendix}
10 |
11 | % Workaround to avoid troubles with accents in \appendixname used as hyperref
12 | % label: force the label prefix to 'appendix' whatever the lang is
13 | \let\orgresetsapp=\@resets@pp
14 | \let\orgrestoreapp=\restoreapp
15 | \let\restoreapp\relax
16 | \def\@resets@pp{%
17 | \orgresetsapp
18 | \if@pphyper
19 | \def\Hy@chapapp{appendix}%
20 | \fi
21 | \orgrestoreapp
22 | }
23 |
24 | %
25 | % These parameters must be defined
26 | %
27 | \newcommand{\DBKreference}{} % mapped to
28 | \newcommand{\DBKsite}{} % mapped to
29 | \newcommand{\DBKdate}{\today} % mapped to
30 | \newcommand{\DBKreleaseinfo}{Working Paper} % mapped to
31 | \newcommand{\DBKedition}{} % mapped to
32 | \newcommand{\DBKsubtitle}{} % mapped to
33 | \newcommand{\DBKpubdate}{} % mapped to
34 | \newcommand{\DBKcopyright}{} % mapped to
35 | \newcommand{\DBKlegalblock}{} % mapped to stuff
36 | \newcommand{\DBKlegaltitle}{} % idem
37 |
38 | % Main latex command. It will be redefined by the XSL stylesheets.
39 | \newcommand{\DBKindexation}{}
40 |
41 | % Watermark command
42 | \def\showwatermark#1{}
43 |
44 | % Front/main/back matter macros
45 | \@ifundefined{frontmatter}{ \let\frontmatter\relax }{}
46 | \@ifundefined{mainmatter}{ \let\mainmatter\relax }{}
47 | \@ifundefined{backmatter}{ \let\backmatter\relax }{}
48 |
49 |
50 | %
51 | % Main latex command. It will be redefined by the XSL stylesheets.
52 | %
53 | \newcommand{\DBKrevhistory}{}
54 |
55 | \usepackage{dbk_fonts}
56 | \usepackage{dbk_hyper}
57 | \usepackage{dbk_biblio}
58 | \usepackage{dbk_table}
59 | \usepackage{dbk_graphic}
60 | \usepackage{dbk_verbatim}
61 | \usepackage{dbk_callout}
62 | \usepackage{dbk_locale}
63 | \usepackage{dbk_annot}
64 | % Beware with changebar and AtEndDocument!
65 | \usepackage{dbk_changebar}
66 |
--------------------------------------------------------------------------------
/share/templates/epub/generator.py:
--------------------------------------------------------------------------------
1 | from platform import system
2 | import sys
3 | import os
4 | from os import mkdir, path, access, R_OK # W_OK for write permission.
5 | from shutil import copy
6 |
7 | from platform import system
8 |
9 | version = "1.0"
10 | description = "This templates allows you to create e-books in ePub format"
11 |
12 | # pwd = .../templates/pdf-simple
13 | local_path = path.dirname(path.realpath(__file__))
14 | in_image_path = local_path + "/images"
15 |
16 | def usage_message() :
17 | if system() is "Windows":
18 | print "To compile : make-epub.bat"
19 | print "To clean : make-clean.bat"
20 | else:
21 | print "To compile : make epub"
22 | print "To clean : make clean"
23 |
24 | def generate(out_path) :
25 | #print "local path is : " + local_path
26 | out_common_path = out_path + "/common"
27 | out_bin_path = out_path + "/bin"
28 | out_image_path = out_path + "/images"
29 | out_doc_path = out_path + "/doc"
30 | mkdir(out_common_path)
31 | copy(local_path + "/document.md", out_path)
32 | print "-- Example document.md copied"
33 | copy(local_path + "/generate_files", out_bin_path)
34 | print "-- Copying generate_files script"
35 | copy(local_path + "/configuration.json", out_path)
36 | print "-- Example configuration.json copied"
37 | copy(local_path + "/Makefile",out_path)
38 | print "-- Makefile copied"
39 | copy(local_path + "/make-clean.bat",out_path)
40 | print "-- make-clean.bat copied"
41 | copy(local_path + "/make-epub.bat",out_path)
42 | print "-- make-epub.bat copied"
43 | copy(local_path + "/title.txt", out_common_path )
44 | print "-- Title file (title.txt) copied"
45 | copy(local_path + "/doc/README-fr_epub.pdf", out_doc_path + "/")
46 | print "-- Epub template documentation (README-fr_epub.pdf) copied"
47 | copy(local_path + "/doc/README_epub.pdf", out_doc_path + "/")
48 | print "-- Epub template documentation (README_epub.pdf) copied"
49 | copy(local_path + "/README-fr.md", out_doc_path + "/README-fr_epub.md")
50 | print "-- Epub template documentation (README-fr.md) copied"
51 | copy(local_path + "/README.md", out_doc_path + "/README_epub.md")
52 | print "-- Epub template documentation (README.md) copied"
53 | print "- Copying image files"
54 |
55 | mkdir(out_image_path)
56 | print "-- image directory created"
57 | copy(in_image_path + "/hw.jpg", out_image_path)
58 | print "-- hello world image copied"
--------------------------------------------------------------------------------
/share/templates/pdf-simple/generator.py:
--------------------------------------------------------------------------------
1 | from platform import system
2 | import sys
3 | import os
4 | from os import mkdir, path, access, R_OK # W_OK for write permission.
5 | from shutil import copy
6 |
7 | from platform import system
8 |
9 | version = "1.0"
10 | description = "This templates allows you to create simple documents in PDF format"
11 |
12 | # pwd = .../templates/pdf-simple
13 | local_path = path.dirname(path.realpath(__file__))
14 | in_images_path = local_path + "/images"
15 |
16 | def usage_message() :
17 | if system() is "Windows":
18 | print "To compile : make-pdf-simple.bat"
19 | print "To clean : make-clean.bat"
20 | else:
21 | print "To compile : make pdf-simple"
22 | print "To clean : make clean"
23 |
24 | def generate(out_path) :
25 | #print "local path is : " + local_path
26 | out_common_path = out_path + "/common"
27 | out_bin_path = out_path + "/bin"
28 | out_images_path = out_path + "/images"
29 | mkdir(out_common_path)
30 | copy(local_path + "/document.md", out_path)
31 | print "-- Example document.md copied"
32 | copy(local_path + "/generate_files", out_bin_path)
33 | print "-- Copying generate_files script"
34 | copy(local_path + "/configuration.json", out_path)
35 | print "-- Example configuration.json copied"
36 | copy(local_path + "/Makefile",out_path)
37 | print "-- Makefile copied"
38 | copy(local_path + "/make-clean.bat",out_path)
39 | print "-- make-clean.bat copied"
40 | copy(local_path + "/make-pdf-simple.bat",out_path)
41 | print "-- make-pdf-simple.bat copied"
42 | copy(local_path + "/enumitem.sty", out_path + "/common")
43 | print "-- Adding last v 3.5.2 of enumitem.sty"
44 | copy(local_path + "/pdf-template-simple.tex", out_common_path )
45 | print "-- Simple pdf template (pdf-template-simple.tex) copied"
46 | copy(local_path + "/tplformd-simple.sty", out_common_path )
47 | print "-- Simple tpl4md stylesheet (tplformd-simple.sty) copied"
48 | copy(local_path + "/doc/README_pdf-simple.md", out_path + "/doc/")
49 | print "-- Letter template documentation (README_pdf-simple.md) copied"
50 | copy(local_path + "/doc/README_pdf-simple.pdf", out_path + "/doc/")
51 | print "-- Letter template documentation (README_pdf-simple.pdf) copied"
52 | print "- Copying image files"
53 |
54 | mkdir(out_images_path)
55 | print "-- image directory created"
56 | copy(in_images_path + "/hw.jpg", out_images_path)
57 | print "-- hello world image copied"
--------------------------------------------------------------------------------
/share/templates/slides-reveal/lib/css/zenburn.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov
4 | based on dark.css by Ivan Sagalaev
5 |
6 | */
7 |
8 | pre code {
9 | display: block; padding: 0.5em;
10 | background: #3F3F3F;
11 | color: #DCDCDC;
12 | }
13 |
14 | pre .keyword,
15 | pre .tag,
16 | pre .django .tag,
17 | pre .django .keyword,
18 | pre .css .class,
19 | pre .css .id,
20 | pre .lisp .title {
21 | color: #E3CEAB;
22 | }
23 |
24 | pre .django .template_tag,
25 | pre .django .variable,
26 | pre .django .filter .argument {
27 | color: #DCDCDC;
28 | }
29 |
30 | pre .number,
31 | pre .date {
32 | color: #8CD0D3;
33 | }
34 |
35 | pre .dos .envvar,
36 | pre .dos .stream,
37 | pre .variable,
38 | pre .apache .sqbracket {
39 | color: #EFDCBC;
40 | }
41 |
42 | pre .dos .flow,
43 | pre .diff .change,
44 | pre .python .exception,
45 | pre .python .built_in,
46 | pre .literal,
47 | pre .tex .special {
48 | color: #EFEFAF;
49 | }
50 |
51 | pre .diff .chunk,
52 | pre .ruby .subst {
53 | color: #8F8F8F;
54 | }
55 |
56 | pre .dos .keyword,
57 | pre .python .decorator,
58 | pre .class .title,
59 | pre .haskell .label,
60 | pre .function .title,
61 | pre .ini .title,
62 | pre .diff .header,
63 | pre .ruby .class .parent,
64 | pre .apache .tag,
65 | pre .nginx .built_in,
66 | pre .tex .command,
67 | pre .input_number {
68 | color: #efef8f;
69 | }
70 |
71 | pre .dos .winutils,
72 | pre .ruby .symbol,
73 | pre .ruby .symbol .string,
74 | pre .ruby .symbol .keyword,
75 | pre .ruby .symbol .keymethods,
76 | pre .ruby .string,
77 | pre .ruby .instancevar {
78 | color: #DCA3A3;
79 | }
80 |
81 | pre .diff .deletion,
82 | pre .string,
83 | pre .tag .value,
84 | pre .preprocessor,
85 | pre .built_in,
86 | pre .sql .aggregate,
87 | pre .javadoc,
88 | pre .smalltalk .class,
89 | pre .smalltalk .localvars,
90 | pre .smalltalk .array,
91 | pre .css .rules .value,
92 | pre .attr_selector,
93 | pre .pseudo,
94 | pre .apache .cbracket,
95 | pre .tex .formula {
96 | color: #CC9393;
97 | }
98 |
99 | pre .shebang,
100 | pre .diff .addition,
101 | pre .comment,
102 | pre .java .annotation,
103 | pre .template_comment,
104 | pre .pi,
105 | pre .doctype {
106 | color: #7F9F7F;
107 | }
108 |
109 | pre .xml .css,
110 | pre .xml .javascript,
111 | pre .xml .vbscript,
112 | pre .tex .formula {
113 | opacity: 0.5;
114 | }
115 |
116 |
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_headfoot.sty:
--------------------------------------------------------------------------------
1 | % ##############################################################################
2 | % ### Header and Footer Page
3 | % ##############################################################################
4 |
5 | \pagestyle{fancyplain}
6 | \renewcommand{\headrulewidth}{0.5pt}
7 | \renewcommand{\footrulewidth}{0.5pt}
8 | \renewcommand{\plainheadrulewidth}{0.5pt}
9 | \renewcommand{\plainfootrulewidth}{0.5pt}
10 | \setcounter{page}{1}
11 |
12 | \def\releasebox{%
13 | \ifthenelse{\equal{\DBKreleaseinfo}{}}{}%
14 | {\framebox{\textsc{\textsf{\DBKreleaseinfo}}}}%
15 | }
16 |
17 | % Define front/main/back matter if not available
18 | \@ifundefined{frontmatter}{
19 | \def\frontmatter{\cleardoublepage\pagenumbering{roman}}%\chead[]{}}%\DBKcheadfront}}
20 | }{}
21 | \@ifundefined{mainmatter}{
22 | \def\mainmatter{\cleardoublepage\pagenumbering{arabic}}%\chead[]{}}%\DBKcheadbody}}
23 | }{}
24 | \@ifundefined{backmatter}{
25 | \def\backmatter{\if@openright\cleardoublepage\else\clearpage\fi}
26 | }{}
27 |
28 |
29 | % Fancy header/footer for the first page
30 |
31 | %\chead[]{%
32 | % \begin{tabular}{
33 | % >{\raggedright}p{5.6cm} >{\centering}p{5.6cm} >{\raggedleft}p{5.6cm}} %
34 | % \multirow{3}{5.6cm}{\footnotesize \DBKtitle}
35 | % & & \tabularnewline%
36 | % & \footnotesize \releasebox
37 | % & \textsf{\footnotesize \thepage} \tabularnewline %
38 | % & & \tabularnewline%
39 | % \end{tabular}%
40 | %} %
41 |
42 | %\lfoot[]{\@ifundefined{DBKpublisher}{}{\DBKpublisher}}
43 | %\rfoot[]{}
44 | %\cfoot[]{}
45 |
46 | % Fancy header/footer for the front matter
47 |
48 | %\def\DBKcheadfront{%
49 | % \begin{tabular}{
50 | % >{\raggedright}p{5.6cm} >{\centering}p{5.6cm} >{\raggedleft}p{5.6cm}} %
51 | % \multirow{3}{5.6cm}{\DBKtitle}
52 | % & & \textsf{\DBKreference{} \edhead} \tabularnewline%
53 | % & \releasebox & \tabularnewline %
54 | % & & \textsf{\thepage}
55 | % \tabularnewline%
56 | % \end{tabular}%
57 | %}
58 |
59 | % Fancy header/footer for the doc body
60 |
61 | %\def\DBKcheadbody{%
62 | % \begin{tabular}{
63 | % >{\raggedright}p{5.6cm} >{\centering}p{5.6cm} >{\raggedleft}p{5.6cm}} %
64 | % \multirow{3}{5.6cm}{\DBKtitle}
65 | % & & \textsf{\DBKreference{} \edhead} \tabularnewline%
66 | % & \releasebox & \tabularnewline %
67 | % & & \textsf{\thepage{} / \getpagerefnumber{LastPage}}
68 | % \tabularnewline%
69 | % \end{tabular}%
70 | %}
71 |
72 | %\lhead[]{}
73 | %\rhead[]{}
74 |
75 |
--------------------------------------------------------------------------------
/share/templates/pdf-simple/pdf-template-simple.tex:
--------------------------------------------------------------------------------
1 | \documentclass{article}
2 |
3 | \IfFileExists{ifxetex.sty}{%
4 | \usepackage{ifxetex}%
5 | }{%
6 | \newif\ifxetex
7 | \xetexfalse
8 | }
9 | \ifxetex
10 |
11 | \usepackage{fontspec}
12 | \usepackage{xltxtra}
13 | \setmainfont{DejaVu Serif}
14 | \setsansfont{DejaVu Sans}
15 | \setmonofont{DejaVu Sans Mono}
16 | \else
17 | \usepackage[T1]{fontenc}
18 | \usepackage[utf8]{inputenc}
19 | \fi
20 | \usepackage{fancybox}
21 | \usepackage{makeidx}
22 | \usepackage{cmap}
23 | \usepackage{url}
24 | \usepackage{eurosym}
25 | \usepackage{graphicx}
26 | \usepackage{longtable}
27 | \usepackage{common/tplformd-simple}
28 | \usepackage{listings}
29 | \usepackage{ctable}
30 | %\listfiles
31 | %%%%
32 | %% TODO:
33 | %% - ajouter une macro pour mettre l'objet du document
34 | %% - faire les footers avec l'adresse et tels de SysFera
35 | %% - enlever un max de paquets docbook
36 |
37 |
38 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
39 | % CONFIGURATION %
40 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
41 | % Use the following macros to configure your document
42 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43 | %%%% OPTION
44 | %% Change language: fr/en
45 | %% - for French: use french in babel, and fr in \setupsysferalocale
46 | %% - for English: use english in babel, and en in \setupsysferalocale
47 |
48 | \usepackage[!lang-long!]{babel}
49 | !french-addon!
50 | \usepackage[shortlabels]{common/enumitem}
51 |
52 | %%%% OPTION
53 | %% Title and author of the document
54 | \title{!title!}
55 | \author{!author!}
56 |
57 | %%%% OPTION
58 | \TPLdocumentreference{!TPLdocumentreference!}
59 | \TPLclient{!client!}
60 |
61 |
62 | %%%% OPTION
63 | %% Release information.
64 | \TPLreleaseinfo{!release_info!}
65 |
66 | %%%% OPTION
67 | %% Draft watermark. You can also show a grey watermark on all pages of
68 | %% your document using the following command.
69 | \showwatermark{!water_mark!}
70 |
71 | \fancyhead[LE,RO]{\textbf{\thepage}}
72 | \fancyhead[LO,RE]{\textsl{\DBKtitle}}
73 | \fancyhead[CO,CE]{\textbf{\DBKreleaseinfo}}
74 |
75 | \fancyfoot[CO, CE]{\TPLthisdocument}
76 | \fancyfoot[LO] {\footnotesize{\bf{!author_company!}}\\\footnotesize{!footer_left!}}
77 | \fancyfoot[RO] {\footnotesize{\copyright !author_company!}\\\footnotesize{!footer_right!}}
78 |
79 |
80 | \begin{document}
81 |
82 | \maketitle % do not disable, otherwise you won't have any title
83 | %%%% OPTION
84 |
85 | % Book contents
86 |
87 | $body$
88 |
89 | \end{document}
90 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/generator.py:
--------------------------------------------------------------------------------
1 | from platform import system
2 | import sys
3 | import os
4 | from os import mkdir, path, access, R_OK # W_OK for write permission.
5 | from shutil import copy, copytree
6 |
7 | from platform import system
8 |
9 | version = "1.0"
10 | description = "This templates allows you to create Reveal.js presentation with the SysFera template"
11 |
12 | # pwd = .../templates/pdf-simple
13 | local_path = path.dirname(path.realpath(__file__))
14 | in_image_path = local_path + "/images"
15 |
16 | def usage_message() :
17 | if system() is "Windows":
18 | print "To compile : make-slides-reveal.bat"
19 | print "To clean : make-clean.bat"
20 | else:
21 | print "To compile : make slides-reveal"
22 | print "To clean : make clean"
23 |
24 | def generate(out_path) :
25 | #print "local path is : " + local_path
26 | out_common_path = out_path + "/common"
27 | out_bin_path = out_path + "/bin"
28 | out_images_path = out_path + "/images"
29 | mkdir(out_common_path)
30 | print "- Copying configuration and compilation files"
31 | copy(local_path + "/generate_files", out_bin_path)
32 | print "-- Copying generate_files script"
33 | copy(local_path + "/configuration.json", out_path)
34 | print "-- Example configuration.json copied"
35 | copy(local_path + "/Makefile",out_path)
36 | print "-- Makefile copied"
37 | copy(local_path + "/make-clean.bat",out_path)
38 | print "-- make-clean.bat copied"
39 | copy(local_path + "/make-slides-reveal.bat",out_path)
40 | print "-- make-slides-reveal.bat copied"
41 | copy(local_path + "/index.html",out_common_path+"/")
42 | print "-- template index.html file copied"
43 | copytree(local_path + "/src", out_path + "/src")
44 | print "-- example source files copied"
45 | print "- Copying Reveal.js template files"
46 | copy(local_path + "/Gruntfile.js", out_path)
47 | copy(local_path + "/LICENSE", out_path)
48 | copy(local_path + "/favicon.ico", out_path)
49 | copy(local_path + "/package.json", out_path)
50 | copytree(local_path + "/css", out_path + "/css")
51 | copytree(local_path + "/js", out_path + "/js")
52 | copytree(local_path + "/lib", out_path + "/lib")
53 | copytree(local_path + "/plugin", out_path + "/plugin")
54 | print "-- Reveal.js files copied"
55 |
56 | print "- Copying documentation"
57 | copy(local_path + "/doc/README_slides-reveal.md", out_path + "/doc/")
58 | print "-- Letter template documentation (README_slides-reveal.md) copied"
59 | copy(local_path + "/doc/README_slides-reveal.pdf", out_path + "/doc/")
60 | print "-- Letter template documentation (README_slides-reveal.pdf) copied"
61 |
62 | print "- Copying image files"
63 | copytree(local_path + "/images", out_images_path)
64 | print "-- Images directory copied"
65 |
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/generator.py:
--------------------------------------------------------------------------------
1 | from platform import system
2 | import sys
3 | import os
4 | from os import mkdir, path, access, R_OK # W_OK for write permission.
5 | from shutil import copy, copytree
6 |
7 | from platform import system
8 |
9 | version = "1.0"
10 | description = "This templates allows you to create complexe documents in PDF format"
11 |
12 | # pwd = .../templates/pdf-simple
13 | local_path = path.dirname(path.realpath(__file__))
14 | in_images_path = local_path + "/images"
15 |
16 | def usage_message() :
17 | if system() is "Windows":
18 | print "To compile : make-pdf-cplx.bat"
19 | print "To clean : make-clean.bat"
20 | else:
21 | print "To compile : make pdf-cplx"
22 | print "To clean : make clean"
23 |
24 | def generate(out_path) :
25 | #print "local path is : " + local_path
26 | in_common_path = local_path + "/common"
27 | out_common_path = out_path + "/common"
28 | out_bin_path = out_path + "/bin"
29 | out_images_path = out_path + "/images"
30 | mkdir(out_common_path)
31 | copy(local_path + "/document.md", out_path)
32 | print "-- Example document.md copied"
33 | copy(local_path + "/generate_files", out_bin_path)
34 | print "-- Copying generate_files script"
35 | copy(local_path + "/configuration.json", out_path)
36 | print "-- Example configuration.json copied"
37 | copy(local_path + "/Makefile",out_path)
38 | print "-- Makefile copied"
39 | copy(local_path + "/make-clean.bat",out_path)
40 | print "-- make-clean.bat copied"
41 | copy(local_path + "/make-pdf-cplx.bat",out_path)
42 | print "-- make-pdf-cplx.bat copied"
43 | copy(local_path + "/pdf-template-cplx.tex", out_common_path )
44 | print "-- Complexe pdf template (pdf-template-cplx.tex) copied"
45 | copytree(local_path + "/dblatex", out_path + "/common/dblatex")
46 | print "-- Adding dblatex"
47 | copy(local_path + "/tplformd-cplx.sty", out_common_path )
48 | print "-- Complexe tpl4md stylesheet (tplformd-cplx.sty) copied"
49 | copy(local_path + "/doc/README-fr_pdf-cplx.md", out_path + "/doc/")
50 | print "-- Complex template documentation (README-fr_pdf-cplx.md) copied"
51 | copy(local_path + "/doc/README-fr_pdf-cplx.pdf", out_path + "/doc/")
52 | print "-- Complex template documentation (README-fr_pdf-cplx.pdf) copied"
53 | copy(local_path + "/doc/README_pdf-cplx.md", out_path + "/doc/")
54 | print "-- Complex template documentation (README_pdf-cplx.md) copied"
55 | copy(local_path + "/doc/README_pdf-cplx.pdf", out_path + "/doc/")
56 | print "-- Complex template documentation (README_pdf-cplx.pdf) copied"
57 |
58 | print "- Copying image files"
59 |
60 | mkdir(out_images_path)
61 | print "-- image directory created"
62 | copy(in_images_path + "/hw.jpg", out_images_path)
63 | print "-- hello world image copied"
64 | copy(in_images_path + "/quotes_opening.png", out_images_path)
65 | print "-- quotes_opening image copied"
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_fonts.sty:
--------------------------------------------------------------------------------
1 |
2 | \ifxetex
3 | % to have the \text macro
4 | \usepackage{amstext}
5 |
6 | \def\sf@sfdefault{sf}
7 | \def\sf@rmdefault{rm}
8 | \def\sf@ttdefault{tt}
9 |
10 | \def\savefont{%
11 | %\bgroup%
12 | \expandafter\edef\expandafter\sf@series\expandafter{\f@series}%
13 | \expandafter\edef\expandafter\sf@shape\expandafter{\f@shape}%
14 | %\sf@series
15 | \ifx\f@family\sfdefault
16 | \let\sf@family\sf@sfdefault
17 | \else\ifx\f@family\rmdefault
18 | \let\sf@family\sf@rmdefault
19 | \else\ifx\f@family\ttdefault
20 | \let\sf@family\sf@ttdefault
21 | \else
22 | \ifthenelse{\equal{\f@family}{\ttdefault}}{
23 | \let\sf@family\sf@ttdefault }{ \let\sf@family\relax }
24 | \fi\fi\fi%
25 | %\egroup%
26 | }
27 | \def\restorefont{%
28 | %\bgroup%
29 | \def\f@series{\sf@series}%
30 | \def\f@shape{\sf@shape}%
31 | \ifx\sf@family\sf@sfdefault
32 | \sffamily
33 | \else\ifx\sf@family\sf@rmdefault
34 | \rmfamily
35 | \else\ifx\sf@family\sf@ttdefault
36 | \ttfamily
37 | \fi\fi\fi%
38 | \selectfont%
39 | %\egroup%
40 | }
41 |
42 | \def\savefamily{%
43 | \ifx\f@family\sfdefault
44 | \let\sf@family\sf@sfdefault
45 | \else\ifx\f@family\rmdefault
46 | \let\sf@family\sf@rmdefault
47 | \else\ifx\f@family\ttdefault
48 | \let\sf@family\sf@ttdefault
49 | \else
50 | \ifthenelse{\equal{\f@family}{\ttdefault}}{
51 | \let\sf@family\sf@ttdefault}{\let\sf@family\relax}
52 | \fi\fi\fi%
53 | }
54 | \def\loadfamily{%
55 | \ifx\sf@family\sf@sfdefault
56 | \sffamily
57 | \else\ifx\sf@family\sf@rmdefault
58 | \rmfamily
59 | \else\ifx\sf@family\sf@ttdefault
60 | \ttfamily
61 | \else
62 | \rmfamily
63 | \fi\fi\fi%
64 | \selectfont%
65 | }
66 |
67 | % Copy the fontspec macro, but don't switch to normal font
68 | \newcommand*\switchmainfont[2][]{%
69 | \zf@fontspec{#1}{#2}%
70 | \let\rmdefault\zf@family
71 | \selectfont}
72 | \newcommand*\switchsansfont[2][]{%
73 | \zf@fontspec{#1}{#2}%
74 | \let\sfdefault\zf@family
75 | \selectfont}
76 | \newcommand*\switchmonofont[2][]{%
77 | \zf@fontspec{#1}{#2}%
78 | \let\ttdefault\zf@family
79 | \selectfont}
80 |
81 | \else
82 |
83 | % Math Support
84 | \usepackage{mathrsfs}
85 | \usepackage{amsmath}
86 | \usepackage{amssymb}
87 |
88 | % Use PostScript fonts
89 | %
90 | % Since mathptmx is included the following symbols are saved to prevent
91 | % from a clash, even if the symbols actually appear as black boxes...
92 | %
93 | \let\stdcoprod=\coprod
94 | \let\stdamalg=\amalg
95 | \let\stdjmath=\jmath
96 | \usepackage{mathptmx}
97 | \let\coprod=\stdcoprod
98 | \let\amalg=\stdamalg
99 | \let\jmath=\stdjmath
100 | \usepackage[scaled=.90]{helvet}
101 | \usepackage{courier}
102 |
103 | % More characters
104 | \usepackage{pifont}
105 | \usepackage{textcomp}
106 |
107 | \fi
108 |
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_revision.sty:
--------------------------------------------------------------------------------
1 | %%
2 | %% Index table definitions
3 | %%
4 |
5 | \usepackage{longtable}
6 |
7 | % Index table row
8 | \def\DBKinditem#1#2{
9 | & & & & \tabularnewline
10 | #1 & #2 & \DBKdate & & \ \tabularnewline
11 | & & & & \tabularnewline
12 | \hline
13 | }
14 |
15 | \def\referencetitle{
16 | \ifthenelse{\equal{\DBKreference}{}}%
17 | {}{\emph{\DBKrefname} :}}
18 |
19 | % Index table environment
20 | \newenvironment{DBKindtable}{
21 | \begin{center}
22 | \begin{tabular}{ |>{\centering}p{3cm} |>{\centering}p{3cm} |>{\centering}p{3.5cm}
23 | |>{\centering}p{3cm} >{\centering}p{3cm} | }
24 | \hline
25 | \multicolumn{5}{|c|}{\textbf{\DBKindtitle}} \tabularnewline
26 | \hline
27 | \multicolumn{5}{c}{\ } \tabularnewline
28 | \hline
29 | \multicolumn{1}{|l|}{} & \multicolumn{2}{l|}{\emph{\titlename} :}
30 | & \multicolumn{2}{l|}{\referencetitle}\tabularnewline
31 | & \multicolumn{2}{l|}{} & \multicolumn{2}{l|}{} \tabularnewline
32 | \multicolumn{1}{|p{3cm}|}{} & \multicolumn{2}{p{6.5cm}|}{\DBKtitle}
33 | & \multicolumn{2}{p{3cm}|}{\DBKreference}\tabularnewline
34 | \hline
35 | \hline
36 | & & & & \tabularnewline
37 | \emph{\DBKcontrib} & \emph{\DBKindname} & \emph{\DBKrevdate} & \multicolumn{2}{c|}{\emph{\DBKsignature}}
38 | \tabularnewline
39 | & & & & \tabularnewline
40 | \hline
41 | }{
42 | \end{tabular}
43 | \end{center}
44 | }
45 |
46 | %%
47 | %% Revision history table and rows
48 | %%
49 |
50 | \def\DBKrevitem#1#2#3#4{
51 | & & & \tabularnewline
52 | #1 & #2 & #3 & #4 \tabularnewline
53 | & & & \tabularnewline
54 | \hline
55 | }
56 |
57 | \newenvironment{DBKrevtable}{
58 | \begin{center}
59 | \savetablecounter %
60 | \begin{longtable}{ |>{\centering}p{3cm} |>{\centering}p{3cm} |>
61 | {\raggedright}p{6.9cm} |>{\centering}p{3cm} | }
62 | \hline
63 | %% Domitete
64 | \multicolumn{4}{|c|}{\textbf{\DBKrevtitle}} \tabularnewline
65 | \hline
66 |
67 | %% Table Titles
68 | \multicolumn{4}{c}{\ } \tabularnewline
69 | \hline
70 | \multicolumn{1}{|c|}{\DBKrevnumber}& \multicolumn{1}{c|}{\DBKrevdate} &
71 | \multicolumn{1}{c|}{\DBKrevdesc} & \multicolumn{1}{c|}{\DBKrevname}
72 | \tabularnewline
73 | \hline
74 | \endhead
75 | }{
76 | \end{longtable}
77 | \restoretablecounter %
78 | \end{center}
79 | }
80 |
81 | %% *****************
82 | %% *** Domitete
83 | %% *****************
84 |
85 | % Default history table
86 | \def\DBKrevhistory{
87 | \begin{DBKrevtable}
88 | \DBKrevitem{}{}{}{}
89 | \end{DBKrevtable}
90 | }
91 |
92 | % Default credits table
93 | \def\DBKindexation{
94 | \begin{DBKindtable}
95 | \DBKinditem{\writtenby}{\DBKauthor}
96 | \end{DBKindtable}
97 | }
98 |
99 | % Whole bookinfo tables
100 | \def\DBKdomitete{
101 | \begin{sffamily}
102 | \DBKindexation
103 | \vspace{1cm}
104 | \DBKrevhistory
105 | \end{sffamily}
106 | }
107 |
108 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/lib/js/head.min.js:
--------------------------------------------------------------------------------
1 | /**
2 | Head JS The only script in your
3 | Copyright Tero Piirainen (tipiirai)
4 | License MIT / http://bit.ly/mit-license
5 | Version 0.96
6 |
7 | http://headjs.com
8 | */(function(a){function z(){d||(d=!0,s(e,function(a){p(a)}))}function y(c,d){var e=a.createElement("script");e.type="text/"+(c.type||"javascript"),e.src=c.src||c,e.async=!1,e.onreadystatechange=e.onload=function(){var a=e.readyState;!d.done&&(!a||/loaded|complete/.test(a))&&(d.done=!0,d())},(a.body||b).appendChild(e)}function x(a,b){if(a.state==o)return b&&b();if(a.state==n)return k.ready(a.name,b);if(a.state==m)return a.onpreload.push(function(){x(a,b)});a.state=n,y(a.url,function(){a.state=o,b&&b(),s(g[a.name],function(a){p(a)}),u()&&d&&s(g.ALL,function(a){p(a)})})}function w(a,b){a.state===undefined&&(a.state=m,a.onpreload=[],y({src:a.url,type:"cache"},function(){v(a)}))}function v(a){a.state=l,s(a.onpreload,function(a){a.call()})}function u(a){a=a||h;var b;for(var c in a){if(a.hasOwnProperty(c)&&a[c].state!=o)return!1;b=!0}return b}function t(a){return Object.prototype.toString.call(a)=="[object Function]"}function s(a,b){if(!!a){typeof a=="object"&&(a=[].slice.call(a));for(var c=0;c
2 |
3 |
4 |
5 |
6 |
7 | reveal.js - Markdown Demo
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
35 |
36 |
37 |
53 |
54 |
55 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
95 |
96 |
97 |
98 |
--------------------------------------------------------------------------------
/share/templates/epub/document.md:
--------------------------------------------------------------------------------
1 | # An h1 header
2 |
3 | Paragraphs are separated by a blank line.
4 |
5 | 2nd paragraph. *Italic*, **bold**, `monospace`. Itemized lists
6 | look like:
7 |
8 | * this one
9 | * that one
10 | * the other one
11 |
12 | Note that --- not considering the asterisk --- the actual text
13 | content starts at 4-columns in.
14 |
15 | > Block quotes are
16 | > written like so.
17 | >
18 | > They can span multiple paragraphs,
19 | > if you like.
20 |
21 | Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex. "it's all in
22 | chapters 12--14"). Three dots ... will be converted to an ellipsis.
23 |
24 | ## An h2 header
25 |
26 | Here's a numbered list:
27 |
28 | 1. first item
29 | 2. second item
30 | 3. third item
31 |
32 | Note again how the actual text starts at 4 columns in (4 characters
33 | from the left side). Here's a code sample:
34 |
35 | # Let me re-iterate ...
36 | for i in 1 .. 10 { do-something(i) }
37 |
38 | As you probably guessed, indented 4 spaces. By the way, instead of
39 | indenting the block, you can use delimited blocks, if you like:
40 |
41 | ~~~
42 | define foobar() {
43 | print "Welcome to flavor country!";
44 | }
45 | ~~~
46 |
47 | (which makes copying & pasting easier). You can optionally mark the
48 | delimited block for Pandoc to syntax highlight it:
49 |
50 | ~~~python
51 | import time
52 | # Quick, count to ten!
53 | for i in range(10):
54 | # (but not *too* quick)
55 | time.sleep(0.5)
56 | print i
57 | ~~~
58 |
59 | ### An h3 header
60 |
61 | Now a nested list:
62 |
63 | 1. First, get these ingredients:
64 |
65 | * carrots
66 | * celery
67 | * lentils
68 |
69 | 2. Boil some water.
70 |
71 | 3. Dump everything in the pot and follow
72 | this algorithm:
73 |
74 | find wooden spoon
75 | uncover pot
76 | stir
77 | cover pot
78 | balance wooden spoon precariously on pot handle
79 | wait 10 minutes
80 | goto first step (or shut off burner when done)
81 |
82 | Do not bump wooden spoon or it will fall.
83 |
84 | Notice again how text always lines up on 4-space indents (including
85 | that last line which continues item 3 above). Here's a link to [a
86 | website](http://foo.bar). Here's a link to a [local
87 | doc](local-doc.html). Here's a footnote [^1].
88 |
89 | [^1]: Footnote text goes here.
90 |
91 | Tables can look like this:
92 |
93 | size material color
94 | ---- ------------ ------------
95 | 9 leather brown
96 | 10 hemp canvas natural
97 | 11 glass transparent
98 |
99 | Table: Shoes, their sizes, and what they're made of
100 |
101 | (The above is the caption for the table.) Here's a definition list:
102 |
103 | apples
104 | : Good for making applesauce.
105 | oranges
106 | : Citrus!
107 | tomatoes
108 | : There's no "e" in tomatoe.
109 |
110 | Again, text is indented 4 spaces. (Alternately, put blank lines in
111 | between each of the above definition list lines to spread things
112 | out more.)
113 |
114 | Inline math equations go in like so: $\omega = d\phi / dt$. Display
115 | math should get its own line and be put in in double-dollarsigns:
116 |
117 | $$I = \int \rho R^{2} dV$$
118 |
119 | Done.
120 |
121 | ### An image section
122 |
123 | 
124 |
125 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/plugin/notes/notes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Handles opening of and synchronization with the reveal.js
3 | * notes window.
4 | */
5 | var RevealNotes = (function() {
6 |
7 | function openNotes() {
8 | var jsFileLocation = document.querySelector('script[src$="notes.js"]').src; // this js file path
9 | jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path
10 | var notesPopup = window.open( jsFileLocation + 'notes.html', 'reveal.js - Notes', 'width=1120,height=850' );
11 |
12 | // Fires when slide is changed
13 | Reveal.addEventListener( 'slidechanged', function( event ) {
14 | post('slidechanged');
15 | } );
16 |
17 | // Fires when a fragment is shown
18 | Reveal.addEventListener( 'fragmentshown', function( event ) {
19 | post('fragmentshown');
20 | } );
21 |
22 | // Fires when a fragment is hidden
23 | Reveal.addEventListener( 'fragmenthidden', function( event ) {
24 | post('fragmenthidden');
25 | } );
26 |
27 | /**
28 | * Posts the current slide data to the notes window
29 | *
30 | * @param {String} eventType Expecting 'slidechanged', 'fragmentshown'
31 | * or 'fragmenthidden' set in the events above to define the needed
32 | * slideDate.
33 | */
34 | function post( eventType ) {
35 | var slideElement = Reveal.getCurrentSlide(),
36 | messageData;
37 |
38 | if( eventType === 'slidechanged' ) {
39 | var notes = slideElement.querySelector( 'aside.notes' ),
40 | indexh = Reveal.getIndices().h,
41 | indexv = Reveal.getIndices().v,
42 | nextindexh,
43 | nextindexv;
44 |
45 | if( slideElement.nextElementSibling && slideElement.parentNode.nodeName == 'SECTION' ) {
46 | nextindexh = indexh;
47 | nextindexv = indexv + 1;
48 | } else {
49 | nextindexh = indexh + 1;
50 | nextindexv = 0;
51 | }
52 |
53 | messageData = {
54 | notes : notes ? notes.innerHTML : '',
55 | indexh : indexh,
56 | indexv : indexv,
57 | nextindexh : nextindexh,
58 | nextindexv : nextindexv,
59 | markdown : notes ? typeof notes.getAttribute( 'data-markdown' ) === 'string' : false
60 | };
61 | }
62 | else if( eventType === 'fragmentshown' ) {
63 | messageData = {
64 | fragment : 'next'
65 | };
66 | }
67 | else if( eventType === 'fragmenthidden' ) {
68 | messageData = {
69 | fragment : 'prev'
70 | };
71 | }
72 |
73 | notesPopup.postMessage( JSON.stringify( messageData ), '*' );
74 | }
75 |
76 | // Navigate to the current slide when the notes are loaded
77 | notesPopup.addEventListener( 'load', function( event ) {
78 | post('slidechanged');
79 | }, false );
80 | }
81 |
82 | // If the there's a 'notes' query set, open directly
83 | if( window.location.search.match( /(\?|\&)notes/gi ) !== null ) {
84 | openNotes();
85 | }
86 |
87 | // Open the notes when the 's' key is hit
88 | document.addEventListener( 'keydown', function( event ) {
89 | // Disregard the event if the target is editable or a
90 | // modifier is present
91 | if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
92 |
93 | if( event.keyCode === 83 ) {
94 | event.preventDefault();
95 | openNotes();
96 | }
97 | }, false );
98 |
99 | return { open: openNotes };
100 | })();
101 |
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/document.md:
--------------------------------------------------------------------------------
1 | # An h1 header
2 |
3 | Paragraphs are separated by a blank line.
4 |
5 | 2nd paragraph. *Italic*, **bold**, `monospace`. Itemized lists
6 | look like:
7 |
8 | * this one
9 | * that one
10 | * the other one
11 |
12 | Note that --- not considering the asterisk --- the actual text
13 | content starts at 4-columns in.
14 |
15 | > Block quotes are
16 | > written like so.
17 | >
18 | > They can span multiple paragraphs,
19 | > if you like.
20 |
21 | Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex. "it's all in
22 | chapters 12--14"). Three dots ... will be converted to an ellipsis.
23 |
24 | ## An h2 header
25 |
26 | Here's a numbered list:
27 |
28 | 1. first item
29 | 2. second item
30 | 3. third item
31 |
32 | Note again how the actual text starts at 4 columns in (4 characters
33 | from the left side). Here's a code sample:
34 |
35 | # Let me re-iterate ...
36 | for i in 1 .. 10 { do-something(i) }
37 |
38 | As you probably guessed, indented 4 spaces. By the way, instead of
39 | indenting the block, you can use delimited blocks, if you like:
40 |
41 | ~~~
42 | define foobar() {
43 | print "Welcome to flavor country!";
44 | }
45 | ~~~
46 |
47 | (which makes copying & pasting easier). You can optionally mark the
48 | delimited block for Pandoc to syntax highlight it:
49 |
50 | ~~~python
51 | import time
52 | # Quick, count to ten!
53 | for i in range(10):
54 | # (but not *too* quick)
55 | time.sleep(0.5)
56 | print i
57 | ~~~
58 |
59 | ### An h3 header
60 |
61 | Now a nested list:
62 |
63 | 1. First, get these ingredients:
64 |
65 | * carrots
66 | * celery
67 | * lentils
68 |
69 | 2. Boil some water.
70 |
71 | 3. Dump everything in the pot and follow
72 | this algorithm:
73 |
74 | find wooden spoon
75 | uncover pot
76 | stir
77 | cover pot
78 | balance wooden spoon precariously on pot handle
79 | wait 10 minutes
80 | goto first step (or shut off burner when done)
81 |
82 | Do not bump wooden spoon or it will fall.
83 |
84 | Notice again how text always lines up on 4-space indents (including
85 | that last line which continues item 3 above). Here's a link to [a
86 | website](http://foo.bar). Here's a link to a [local
87 | doc](local-doc.html). Here's a footnote [^1].
88 |
89 | [^1]: Footnote text goes here.
90 |
91 | Tables can look like this:
92 |
93 | size material color
94 | ---- ------------ ------------
95 | 9 leather brown
96 | 10 hemp canvas natural
97 | 11 glass transparent
98 |
99 | Table: Shoes, their sizes, and what they're made of
100 |
101 | (The above is the caption for the table.) Here's a definition list:
102 |
103 | apples
104 | : Good for making applesauce.
105 | oranges
106 | : Citrus!
107 | tomatoes
108 | : There's no "e" in tomatoe.
109 |
110 | Again, text is indented 4 spaces. (Alternately, put blank lines in
111 | between each of the above definition list lines to spread things
112 | out more.)
113 |
114 | Inline math equations go in like so: $\omega = d\phi / dt$. Display
115 | math should get its own line and be put in in double-dollarsigns:
116 |
117 | $$I = \int \rho R^{2} dV$$
118 |
119 | Done.
120 |
121 | ### An image section
122 |
123 | 
124 |
125 |
--------------------------------------------------------------------------------
/share/templates/pdf-simple/document.md:
--------------------------------------------------------------------------------
1 | # An h1 header
2 |
3 | Paragraphs are separated by a blank line.
4 |
5 | 2nd paragraph. *Italic*, **bold**, `monospace`. Itemized lists
6 | look like:
7 |
8 | * this one
9 | * that one
10 | * the other one
11 |
12 | Note that --- not considering the asterisk --- the actual text
13 | content starts at 4-columns in.
14 |
15 | > Block quotes are
16 | > written like so.
17 | >
18 | > They can span multiple paragraphs,
19 | > if you like.
20 |
21 | Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex. "it's all in
22 | chapters 12--14"). Three dots ... will be converted to an ellipsis.
23 |
24 | ## An h2 header
25 |
26 | Here's a numbered list:
27 |
28 | 1. first item
29 | 2. second item
30 | 3. third item
31 |
32 | Note again how the actual text starts at 4 columns in (4 characters
33 | from the left side). Here's a code sample:
34 |
35 | # Let me re-iterate ...
36 | for i in 1 .. 10 { do-something(i) }
37 |
38 | As you probably guessed, indented 4 spaces. By the way, instead of
39 | indenting the block, you can use delimited blocks, if you like:
40 |
41 | ~~~
42 | define foobar() {
43 | print "Welcome to flavor country!";
44 | }
45 | ~~~
46 |
47 | (which makes copying & pasting easier). You can optionally mark the
48 | delimited block for Pandoc to syntax highlight it:
49 |
50 | ~~~python
51 | import time
52 | # Quick, count to ten!
53 | for i in range(10):
54 | # (but not *too* quick)
55 | time.sleep(0.5)
56 | print i
57 | ~~~
58 |
59 | ### An h3 header
60 |
61 | Now a nested list:
62 |
63 | 1. First, get these ingredients:
64 |
65 | * carrots
66 | * celery
67 | * lentils
68 |
69 | 2. Boil some water.
70 |
71 | 3. Dump everything in the pot and follow
72 | this algorithm:
73 |
74 | find wooden spoon
75 | uncover pot
76 | stir
77 | cover pot
78 | balance wooden spoon precariously on pot handle
79 | wait 10 minutes
80 | goto first step (or shut off burner when done)
81 |
82 | Do not bump wooden spoon or it will fall.
83 |
84 | Notice again how text always lines up on 4-space indents (including
85 | that last line which continues item 3 above). Here's a link to [a
86 | website](http://foo.bar). Here's a link to a [local
87 | doc](local-doc.html). Here's a footnote [^1].
88 |
89 | [^1]: Footnote text goes here.
90 |
91 | Tables can look like this:
92 |
93 | size material color
94 | ---- ------------ ------------
95 | 9 leather brown
96 | 10 hemp canvas natural
97 | 11 glass transparent
98 |
99 | Table: Shoes, their sizes, and what they're made of
100 |
101 | (The above is the caption for the table.) Here's a definition list:
102 |
103 | apples
104 | : Good for making applesauce.
105 | oranges
106 | : Citrus!
107 | tomatoes
108 | : There's no "e" in tomatoe.
109 |
110 | Again, text is indented 4 spaces. (Alternately, put blank lines in
111 | between each of the above definition list lines to spread things
112 | out more.)
113 |
114 | Inline math equations go in like so: $\omega = d\phi / dt$. Display
115 | math should get its own line and be put in in double-dollarsigns:
116 |
117 | $$I = \int \rho R^{2} dV$$
118 |
119 | Done.
120 |
121 | ### An image section
122 |
123 | 
124 |
125 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
24 |
25 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | !title!
39 | !subtitle!
40 |
41 | Created by !author! !twitter!
42 | Date : !date!
43 |
44 | !event!
45 |
46 |
47 |
48 |
49 | !content!
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
88 |
89 |
90 |
91 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/Gruntfile.js:
--------------------------------------------------------------------------------
1 | /* global module:false */
2 | module.exports = function(grunt) {
3 |
4 | // Project configuration
5 | grunt.initConfig({
6 | pkg: grunt.file.readJSON('package.json'),
7 | meta: {
8 | banner:
9 | '/*!\n' +
10 | ' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
11 | ' * http://lab.hakim.se/reveal-js\n' +
12 | ' * MIT licensed\n' +
13 | ' *\n' +
14 | ' * Copyright (C) 2013 Hakim El Hattab, http://hakim.se\n' +
15 | ' */'
16 | },
17 |
18 | // Tests will be added soon
19 | qunit: {
20 | files: [ 'test/**/*.html' ]
21 | },
22 |
23 | uglify: {
24 | options: {
25 | banner: '<%= meta.banner %>\n'
26 | },
27 | build: {
28 | src: 'js/reveal.js',
29 | dest: 'js/reveal.min.js'
30 | }
31 | },
32 |
33 | cssmin: {
34 | compress: {
35 | files: {
36 | 'css/reveal.min.css': [ 'css/reveal.css' ]
37 | }
38 | }
39 | },
40 |
41 | sass: {
42 | main: {
43 | files: {
44 | 'css/theme/default.css': 'css/theme/source/default.scss',
45 | 'css/theme/beige.css': 'css/theme/source/beige.scss',
46 | 'css/theme/night.css': 'css/theme/source/night.scss',
47 | 'css/theme/serif.css': 'css/theme/source/serif.scss',
48 | 'css/theme/simple.css': 'css/theme/source/simple.scss',
49 | 'css/theme/sky.css': 'css/theme/source/sky.scss',
50 | 'css/theme/moon.css': 'css/theme/source/moon.scss',
51 | 'css/theme/solarized.css': 'css/theme/source/solarized.scss'
52 | }
53 | }
54 | },
55 |
56 | jshint: {
57 | options: {
58 | curly: false,
59 | eqeqeq: true,
60 | immed: true,
61 | latedef: true,
62 | newcap: true,
63 | noarg: true,
64 | sub: true,
65 | undef: true,
66 | eqnull: true,
67 | browser: true,
68 | expr: true,
69 | globals: {
70 | head: false,
71 | module: false,
72 | console: false
73 | }
74 | },
75 | files: [ 'Gruntfile.js', 'js/reveal.js' ]
76 | },
77 |
78 | connect: {
79 | server: {
80 | options: {
81 | port: 8000,
82 | base: '.'
83 | }
84 | }
85 | },
86 |
87 | zip: {
88 | 'reveal-js-presentation.zip': [
89 | 'index.html',
90 | 'css/**',
91 | 'js/**',
92 | 'lib/**',
93 | 'images/**',
94 | 'plugin/**'
95 | ]
96 | },
97 |
98 | watch: {
99 | main: {
100 | files: [ 'Gruntfile.js', 'js/reveal.js', 'css/reveal.css' ],
101 | tasks: 'default'
102 | },
103 | theme: {
104 | files: [ 'css/theme/source/*.scss', 'css/theme/template/*.scss' ],
105 | tasks: 'themes'
106 | }
107 | }
108 |
109 | });
110 |
111 | // Dependencies
112 | grunt.loadNpmTasks( 'grunt-contrib-jshint' );
113 | grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
114 | grunt.loadNpmTasks( 'grunt-contrib-uglify' );
115 | grunt.loadNpmTasks( 'grunt-contrib-watch' );
116 | grunt.loadNpmTasks( 'grunt-contrib-sass' );
117 | grunt.loadNpmTasks( 'grunt-contrib-connect' );
118 | grunt.loadNpmTasks( 'grunt-zip' );
119 |
120 | // Default task
121 | grunt.registerTask( 'default', [ 'jshint', 'cssmin', 'uglify' ] );
122 |
123 | // Theme task
124 | grunt.registerTask( 'themes', [ 'sass' ] );
125 |
126 | // Package presentation to archive
127 | grunt.registerTask( 'package', [ 'default', 'zip' ] );
128 |
129 | // Serve presentation locally
130 | grunt.registerTask( 'serve', [ 'connect', 'watch' ] );
131 |
132 | };
133 |
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/dblatex/dbk_annot.sty:
--------------------------------------------------------------------------------
1 | %%
2 | %% PDF Text Annotations to handle comments/remarks
3 | %%
4 | %% This code has been based on the following sources, where other variants can be
5 | %% found too:
6 | %%
7 | %% * http://www.tug.org/pipermail/pdftex/2002-December/003330.html
8 | %% * http://www.ce.cmu.edu/~kijoo/latex2pdf.pdf
9 | %% * ConTeXt
10 | %%
11 | %% See also the Adobe PDF Reference directly for the syntax of the Annotation object:
12 | %%
13 | %% * http://partners.adobe.com/public/developer/en/pdf/PDFReference16.pdf
14 | %% (section 8.4 Annotations)
15 | %%
16 | %% Example of use: \comment[width=5cm,symbol=Balloon,title={Note}]{...}
17 | %%
18 | \NeedsTeXFormat{LaTeX2e}
19 | \ProvidesPackage{dbk_annot}[2006/11/19 v0.1 PDF Text Annotations]
20 |
21 | \@ifundefined{define@key}{\RequirePackage{keyval}}{}%
22 |
23 |
24 | %% Default text annotation parameter values
25 | \let\defaultPDFlocation\empty%
26 | \let\defaultPDFopen\empty
27 | \let\defaultPDFtitle\empty
28 | \let\defaultPDFheight\baselineskip
29 | \def\defaultPDFwidth{10cm}
30 | \def\defaultPDFdepth{0cm}
31 |
32 | \def\commentdefault{%
33 | \let\PDFsymbol\empty%
34 | \let\PDFlocation\defaultPDFlocation%
35 | \let\PDFtitle\defaultPDFtitle%
36 | \let\PDFopen\defaultPDFopen%
37 | \let\PDFwidth\defaultPDFwidth%
38 | \let\PDFheight\defaultPDFheight%
39 | \let\PDFdepth\defaultPDFdepth%
40 | }
41 |
42 | %% Set values from key values
43 | \def\commentsetsymbol#1{%
44 | \expandafter\ifx\csname PDFsymbol#1\endcsname\relax%
45 | \else\def\PDFsymbol{/Name \csname PDFsymbol#1\endcsname}\fi}
46 |
47 | \define@key{comment}{symbol}{\commentsetsymbol{#1}}
48 | \define@key{comment}{width}{\def\PDFwidth{#1}}
49 | \define@key{comment}{height}{\def\PDFheight{#1}}
50 | \define@key{comment}{depth}{\def\PDFdepth{#1}}
51 | \define@key{comment}{title}{\def\PDFtitle{/T (#1)}}
52 | \define@key{comment}{location}{\def\PDFlocation{#1}}
53 | \define@key{comment}{open}[true]{%
54 | \ifthenelse{\equal{#1}{true}}%
55 | {\def\PDFopen{/Open true}}%
56 | {\let\PDFopen\empty}%
57 | }
58 |
59 | %% Actions to do for default setting
60 | \define@key{defcomment}{width}{\def\defaultPDFwidth{#1}}
61 | \define@key{defcomment}{height}{\def\defaultPDFheight{#1}}
62 | \define@key{defcomment}{depth}{\def\defaultPDFdepth{#1}}
63 | \define@key{defcomment}{title}{\def\defaultPDFtitle{/T (#1)}}
64 | \define@key{defcomment}{location}{\def\defaultPDFlocation{#1}}
65 | \define@key{defcomment}{open}[true]{%
66 | \ifthenelse{\equal{#1}{true}}%
67 | {\def\defaultPDFopen{/Open true}}%
68 | {\let\defaultPDFopen\empty}%
69 | }
70 |
71 | %% Text annotation symbols
72 | \def\PDFsymbolBalloon {/Comment}
73 | \def\PDFsymbolHelp {/Help}
74 | \def\PDFsymbolNew {/Insert}
75 | \def\PDFsymbolKey {/Key }
76 | \def\PDFsymbolAddition {/NewParagraph}
77 | \def\PDFsymbolNote {/Note}
78 | \def\PDFsymbolParagraph {/Paragraph}
79 |
80 | %% Global comment setup
81 | \def\commentsetup#1{\setkeys{defcomment}{#1}}
82 |
83 | %% Insert a remark/comment as a text annotation
84 | \def\comment{\@ifnextchar[\docomment{\docomment[]}}
85 |
86 | \def\docomment[#1]#2{%
87 | \begingroup%
88 | \commentdefault%
89 | \setkeys{comment}{#1}%
90 | \ifthenelse{\equal{\PDFlocation}{margin}}%
91 | {\marginpar{\dodocomment{#2}}}%
92 | {\dodocomment{#2}}%
93 | \endgroup%
94 | }
95 |
96 | \def\dodocomment#1{%
97 | \pdfstringdef\@tempa{#1}%
98 | \pdfannot width \PDFwidth height \PDFheight depth \PDFdepth{%
99 | /Subtype /Text
100 | /Contents (\@tempa)
101 | \PDFtitle
102 | \PDFopen
103 | \PDFsymbol
104 | }%
105 | \let\@tempa\relax%
106 | }
107 |
108 | %% Apply only when using pdflatex
109 | \RequirePackage{ifpdf}
110 | \ifpdf
111 | \else
112 | \def\docomment[#1]#2{}
113 | \fi
114 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/plugin/notes-server/notes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | reveal.js - Slide Notes
7 |
8 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 | UPCOMING:
98 |
99 |
100 |
101 |
102 |
103 |
104 |
137 |
138 |
139 |
140 |
--------------------------------------------------------------------------------
/share/templates/pdf-cplx/pdf-template-cplx.tex:
--------------------------------------------------------------------------------
1 | \documentclass[10pt]{article}
2 |
3 | \IfFileExists{ifxetex.sty}{%
4 | \usepackage{ifxetex}%
5 | }{%
6 | \newif\ifxetex
7 | \xetexfalse
8 | }
9 | \ifxetex
10 |
11 | \usepackage{fontspec}
12 | \usepackage{xltxtra}
13 | %\setmainfont{DejaVu Serif}
14 | %\setsansfont{DejaVu Sans}
15 | %\setmonofont{Bitstream Vera Sans Mono}
16 | \else
17 | \usepackage[T1]{fontenc}
18 | \usepackage[utf8]{inputenc}
19 | \fi
20 | \usepackage{fancybox}
21 | \usepackage{makeidx}
22 | \usepackage{cmap}
23 | \usepackage{url}
24 | \usepackage{eurosym}
25 | \usepackage{graphicx}
26 | \usepackage{ctable}
27 | \usepackage[hyperlink]{common/tplformd-cplx}
28 | \usepackage{color}
29 | \usepackage{xcolor}
30 |
31 | \renewenvironment{quote}{
32 | \itshape
33 | \color{gray}
34 | \list{}{%
35 | \leftmargin 0.5in
36 | \rightmargin \leftmargin
37 | }%
38 | \item\relax
39 |
40 | }
41 | {\endlist}
42 |
43 | %%%%
44 | %% TODO:
45 | %% - ajouter une macro pour mettre l'objet du document
46 | %% - faire les footers avec l'adresse et tels de SysFera
47 | %% - enlever un max de paquets docbook
48 |
49 |
50 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
51 | % CONFIGURATION %
52 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53 | % Use the following macros to configure your document
54 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
55 | %%%% OPTION
56 | %% Change language: fr/en
57 | %% - for French: use french in babel, and fr in \setuptplformdlocale
58 | %% - for English: use english in babel, and en in \setuptplformdlocale
59 |
60 | \usepackage[!lang-long!]{babel}
61 | \setuptplformdlocale{!lang-short!}
62 | !french-addon!
63 | %%%% OPTION
64 | %% Title and author of the document
65 | \title{!title!}
66 | \author{!author!}
67 |
68 | %%%% OPTION
69 | \TPLdocumentreference{!TPLdocumentreference!}
70 | \TPLprojectname{!project_name!}
71 | \TPLclient{!client!}
72 |
73 |
74 | \TPLreleaseinfo{!release_info!}
75 |
76 | \showwatermark{!water_mark!}
77 |
78 | \renewcommand{\TPLindexation}{
79 | !indexation_table!
80 | }
81 |
82 | \renewcommand{\TPLrevhistory}{
83 | !revhistory_table!
84 | }
85 |
86 | \renewcommand{\TPLreferenceTable}{
87 | !references_table!
88 | }
89 | \renewcommand{\TPLreferenceTable}{} % disable this table
90 |
91 | \renewcommand{\TPLauthview}{
92 | !authorizations_table!
93 | }
94 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
95 | % /CONFIGURATION %
96 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
97 |
98 |
99 | \makeindex
100 | \makeglossary
101 |
102 | \pagestyle{fancy}
103 |
104 | \fancyhf{}
105 | \pagenumbering{roman}
106 | \fancyhead[LE,RO]{\thepage}
107 | \fancyhead[LO,RE]{\textsl{\DBKtitle}}
108 | \fancyhead[CO,CE]{\textbf{\DBKreleaseinfo}}
109 | \fancyfoot[CO,CE]{\TPLthisdocument}
110 | \fancyfoot[LO,RE] {\vspace{-0,3cm}\footnotesize{\bf{!author_company!}}\\\footnotesize{!footer_left!}}
111 | \fancyfoot[RO,LE] {\vspace{-0,3cm}\footnotesize{!footer_right!}}
112 | \begin{document}
113 | \frontmatter % do not disable, this is used for page numbering
114 | \maketitle % do not disable, otherwise you won't have any title
115 |
116 | \tableofcontents % comment to disable the table of contents
117 | \pagenumbering{arabic}
118 | \mainmatter % do not disable, this is used for page numbering
119 | \fancyhead[LE,RO]{\textbf{\color{black}\thepage/\textcolor{black}{\pageref{LastPage}}}}
120 | \fancyhead[LO,RE]{\textsl{\DBKtitle}}
121 | \fancyhead[CO,CE]{\textbf{\DBKreleaseinfo}}
122 | \fancyfoot[CO,CE]{\TPLthisdocument}
123 | \fancyfoot[LO,RE] {\vspace{-0,3cm}\footnotesize{\bf{!author_company!}}\\\footnotesize{!footer_left!}}
124 | \fancyfoot[RO,LE] {\vspace{-0,3cm}\footnotesize{!footer_right!}} % Book contents
125 |
126 | $body$
127 |
128 | \end{document}
129 |
--------------------------------------------------------------------------------
/share/templates/epub/README.md:
--------------------------------------------------------------------------------
1 | # Epub template documentation
2 |
3 | ## Introduction
4 |
5 | This documentation is linked to the epub template for `tpl4md`
6 |
7 | The compilation is based on the usage of `pandoc`.
8 |
9 | ## Template structure
10 |
11 | root
12 | |- Makefile
13 | |- configuration.json
14 | |- doc
15 | | |- README.pdf
16 | | |- README-fr.pdf
17 | |- document.md
18 | |- generator.py
19 | |- images
20 | | |- hw.jpg
21 | |- make-clean.bat
22 | |- make-epub.bat
23 | |- README.md
24 | |- README-fr.md
25 | |- title.txt
26 |
27 | ## Content description
28 |
29 | * **Makefile** : Makefile for the generation of the output epub
30 | * **doc/README(-fr).pdf** : This readme in the pdf format
31 | * **README(-fr).md** : This readme file
32 | * **configuration.json** : configuration file for the ebook generation
33 | * **generator.py** : Main file use during the generation of the project based on the template
34 | * **document.md** : Example document for this template
35 | * ** images/* ** : Example images
36 | * **make-clean.bat** : Batch file to use on Windows Operating Systems for the clean up
37 | * **make-epub.bat** : Batch file to use on Windows Operating Systems for the epub generation
38 | * **title.txt** : File used for the definition of the title and the author of the e-book
39 |
40 | We will explore the different import files of this template.
41 |
42 | ## Makefile
43 |
44 | The Makefile used for the compilation of the epub file provides two targets:
45 |
46 | * epub : for the e-book generation
47 | * clean : for the clean up
48 |
49 | ## title.txt
50 |
51 | This file contains two lines, the first one is the title, the second one the author(s).
52 |
53 | ** These variables are automatically filled by the adaptation script **
54 |
55 | ## document.md
56 |
57 | This file will contain the content of your epub document.
58 |
59 | It should be noted that the markdown syntax available is the one supported by the Pandoc software. You can find the description of the corresponding elements on the [dedicated page](http://johnmacfarlane.net/pandoc/README.html#pandocs-markdown).
60 |
61 | ** \underline{Note} : Vous pouvez donner le nom que vous voulez à ce fichier tant que vous donnez le nom du fichier source dans le fichier de configuration **
62 |
63 | ## configuration.json
64 |
65 | Here is an example of the configuration file that could be used for the generation of an epub:
66 |
67 | {
68 | "source_file_name":"document.md", // source file name
69 | "destination_file_name":"example", // destination file name
70 | "title" : "Example document", // document title
71 | "author" : "John Doe" // author
72 | }
73 |
74 | ## generator.py
75 |
76 | This file is used by the `tpl4md` script for the generation of the project base on this template. Two variables are declared:
77 |
78 | * `version` : template version
79 | * `description` : template description
80 |
81 | These variables are mainly used to display the available templates.
82 |
83 | This file also implements to functions:
84 |
85 | * `usage_message`: to display how to use this template
86 | * `generate` : the main function of the script used to generate the skeleton of a project for the creation of an epub file
87 |
88 | ## Generated project structure
89 |
90 | After generation, the content of a projet dedicated to the creation of a ebook is as follows:
91 |
92 | root
93 | |- Makefile
94 | |- bin
95 | | |- config_parsing
96 | | |- generate_files
97 | |- common
98 | | |- title.txt
99 | |- configuration.json
100 | |- doc
101 | | |- README.md
102 | | |- README_epub.md
103 | | |- README_epub.pdf
104 | | |- README-fr_epub.md
105 | | |- README-fr_epub.pdf
106 | | |- README.pdf
107 | |- images
108 | | |- hw.jpg
109 | |- document.md
110 | |- make-clean.bat
111 | |- make-epub.bat
112 |
113 |
114 | ## README.pdf
115 |
116 | The pdf version of the README is generated using the following command:
117 |
118 | pandoc -f markdown-raw_tex README.md -o doc/README_epub.pdf
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/night.css:
--------------------------------------------------------------------------------
1 | @import url(https://fonts.googleapis.com/css?family=Montserrat:700);
2 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
3 | /**
4 | * Black theme for reveal.js.
5 | *
6 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 | */
8 | /*********************************************
9 | * GLOBAL STYLES
10 | *********************************************/
11 | body {
12 | background: #111111;
13 | background-color: #111111; }
14 |
15 | .reveal {
16 | font-family: "Open Sans", sans-serif;
17 | font-size: 30px;
18 | font-weight: 200;
19 | letter-spacing: -0.02em;
20 | color: #eeeeee; }
21 |
22 | ::selection {
23 | color: white;
24 | background: #e7ad52;
25 | text-shadow: none; }
26 |
27 | /*********************************************
28 | * HEADERS
29 | *********************************************/
30 | .reveal h1,
31 | .reveal h2,
32 | .reveal h3,
33 | .reveal h4,
34 | .reveal h5,
35 | .reveal h6 {
36 | margin: 0 0 20px 0;
37 | color: #eeeeee;
38 | font-family: "Montserrat", Impact, sans-serif;
39 | line-height: 0.9em;
40 | letter-spacing: -0.03em;
41 | text-transform: none;
42 | text-shadow: none; }
43 |
44 | .reveal h1 {
45 | text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); }
46 |
47 | /*********************************************
48 | * LINKS
49 | *********************************************/
50 | .reveal a:not(.image) {
51 | color: #e7ad52;
52 | text-decoration: none;
53 | -webkit-transition: color .15s ease;
54 | -moz-transition: color .15s ease;
55 | -ms-transition: color .15s ease;
56 | -o-transition: color .15s ease;
57 | transition: color .15s ease; }
58 |
59 | .reveal a:not(.image):hover {
60 | color: #f3d7ac;
61 | text-shadow: none;
62 | border: none; }
63 |
64 | .reveal .roll span:after {
65 | color: #fff;
66 | background: #d08a1d; }
67 |
68 | /*********************************************
69 | * IMAGES
70 | *********************************************/
71 | .reveal section img {
72 | margin: 15px 0px;
73 | background: rgba(255, 255, 255, 0.12);
74 | border: 4px solid #eeeeee;
75 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
76 | -webkit-transition: all .2s linear;
77 | -moz-transition: all .2s linear;
78 | -ms-transition: all .2s linear;
79 | -o-transition: all .2s linear;
80 | transition: all .2s linear; }
81 |
82 | .reveal a:hover img {
83 | background: rgba(255, 255, 255, 0.2);
84 | border-color: #e7ad52;
85 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
86 |
87 | /*********************************************
88 | * NAVIGATION CONTROLS
89 | *********************************************/
90 | .reveal .controls div.navigate-left,
91 | .reveal .controls div.navigate-left.enabled {
92 | border-right-color: #e7ad52; }
93 |
94 | .reveal .controls div.navigate-right,
95 | .reveal .controls div.navigate-right.enabled {
96 | border-left-color: #e7ad52; }
97 |
98 | .reveal .controls div.navigate-up,
99 | .reveal .controls div.navigate-up.enabled {
100 | border-bottom-color: #e7ad52; }
101 |
102 | .reveal .controls div.navigate-down,
103 | .reveal .controls div.navigate-down.enabled {
104 | border-top-color: #e7ad52; }
105 |
106 | .reveal .controls div.navigate-left.enabled:hover {
107 | border-right-color: #f3d7ac; }
108 |
109 | .reveal .controls div.navigate-right.enabled:hover {
110 | border-left-color: #f3d7ac; }
111 |
112 | .reveal .controls div.navigate-up.enabled:hover {
113 | border-bottom-color: #f3d7ac; }
114 |
115 | .reveal .controls div.navigate-down.enabled:hover {
116 | border-top-color: #f3d7ac; }
117 |
118 | /*********************************************
119 | * PROGRESS BAR
120 | *********************************************/
121 | .reveal .progress {
122 | background: rgba(0, 0, 0, 0.2); }
123 |
124 | .reveal .progress span {
125 | background: #e7ad52;
126 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
127 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
128 | -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
129 | -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
130 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
131 |
--------------------------------------------------------------------------------
/share/templates/epub/README-fr.md:
--------------------------------------------------------------------------------
1 | # Documentation du template epub
2 |
3 | ## Introduction
4 |
5 | Cette documentation est en lien avec le template pour la création d'e-book pour le programme `marksf_gen`
6 |
7 | ## Structure du template
8 |
9 | root
10 | |- Makefile
11 | |- configuration.json
12 | |- README.md
13 | |- README-fr.md
14 | |- doc
15 | | |- README-fr_epub.pdf
16 | | |- README_epub.pdf
17 | |- document.md
18 | |- generator.py
19 | |- images
20 | | |- hw.jpg
21 | |- make-clean.bat
22 | |- make-epub.bat
23 | |- title.txt
24 |
25 | ## Description de ce contenu
26 |
27 | * **Makefile** : Makefile pour la génération/clean de l'e-book d'output
28 | * **README(-fr).md** : Ce fichier de readme
29 | * **doc/README(-fr)_epub.pdf** : Ce fichier de readme en pdf
30 | * **configuration.json** : Fichier de configuration pour l'e-book final
31 | * **generator.py** : Fichier permettant la génération du projet basé sur le template
32 | * **document.md** : Le document de base d'exemple pour ce template
33 | * ** images/* ** : Un ensemble d'images de base
34 | * **make-clean.bat** : Fichier batch à utiliser sous windows pour le nettoyage d'un projet
35 | * **make-epub.bat** Fichier batch à utiliser pour la génération de l'epub
36 | * **title.txt** : Fichier utiliser pour la définition du titre et de l'auteur de l'epub
37 |
38 | Nous allons aborder les fichiers les plus importants.
39 |
40 | ## Makefile
41 |
42 | Fichier de compilation permettant la gestion de la compilation de l'epub:
43 |
44 | * epub : génération de la version e-book
45 | * clean : pour le nettoyage
46 |
47 | ## title.txt
48 |
49 | Ce fichier contient deux lignes, la première correspond au titre du document, la seconde à/aux auteurs.
50 | ** Ces variables sont automatiquement remplies par le script d'adaptation de fichier **
51 |
52 | ## document.md
53 |
54 | Ce fichier est le document maître dans lequel il faudra ajouter l'ensemble des informations qui vont constituer le corps du résultat produit.
55 |
56 | À noter que la syntaxe markdown supportée est une extension de la version officielle et vous pouvez retrouver l'ensemble des éléments fournis par Pandoc dont on peut trouver la description sur [la page dédiée](http://johnmacfarlane.net/pandoc/README.html#pandocs-markdown).
57 |
58 | ** \underline{Note} : Vous pouvez donner le nom que vous voulez à ce fichier tant que vous donnez le nom du fichier source dans le fichier de configuration **
59 |
60 | ## configuration.json
61 |
62 | Voici le contenu d'un fichier complet de configuration avec les variables correspondantes pour un epub :
63 |
64 | {
65 | "source_file_name":"document.md", // nom du fichier source
66 | "destination_file_name":"example", // nom du fichier de destination
67 | "title" : "Document entre SysFera et un client", // titre du document
68 | "author" : "John Doe" // auteur du document
69 | }
70 |
71 | ## generator.py
72 |
73 | Ce fichier est utilisé par le script `tpl4md` pour la copie des fichiers d'un template lors de la création d'un projet basé sur ce template. Il déclare deux variables :
74 |
75 | * `version` : version du template
76 | * `description` : description du template
77 |
78 | Elle serve notamment pour l'affichage de la liste des templates disponibles.
79 |
80 | Il implémente aussi deux fonctions :
81 |
82 | * `usage_message`: fonction affichant l'usage du template
83 | * `generate` : fonction générant les fichiers spécifique d'une template lors de la création d'un nouveau projet
84 |
85 | ## Structure d'un projet généré
86 |
87 | Voici, après génération, le contenu d'un projet pour un e-book au format ePub :
88 |
89 | root
90 | |- Makefile
91 | |- bin
92 | | |- config_parsing
93 | | |- generate_files
94 | |- common
95 | | |- title.txt
96 | |- configuration.json
97 | |- README.md
98 | |- README-fr.md
99 | |- README_epub.md
100 | |- README_epub-fr.md
101 | |- doc
102 | | |- README_epub.pdf
103 | | |- README_epub-fr.pdf
104 | | |- README.pdf
105 | | |- README-fr.pdf
106 | |- images
107 | | |- hw.jpg
108 | |- document.md
109 | |- make-clean.bat
110 | |- make-epub.bat
111 |
112 |
113 | ## README.pdf
114 |
115 | Le readme en pdf est générée avec la commande suivante :
116 |
117 | pandoc -f markdown-raw_tex README-fr.md -o doc/README-fr_epub.pdf
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/print/pdf.css:
--------------------------------------------------------------------------------
1 | /* Default Print Stylesheet Template
2 | by Rob Glazebrook of CSSnewbie.com
3 | Last Updated: June 4, 2008
4 |
5 | Feel free (nay, compelled) to edit, append, and
6 | manipulate this file as you see fit. */
7 |
8 |
9 | /* SECTION 1: Set default width, margin, float, and
10 | background. This prevents elements from extending
11 | beyond the edge of the printed page, and prevents
12 | unnecessary background images from printing */
13 |
14 | * {
15 | -webkit-print-color-adjust: exact;
16 | }
17 |
18 | body {
19 | font-size: 18pt;
20 | width: auto;
21 | height: auto;
22 | border: 0;
23 | padding: 0;
24 | float: none !important;
25 | overflow: visible;
26 | }
27 |
28 | html {
29 | width: 100%;
30 | height: 100%;
31 | overflow: visible;
32 | }
33 |
34 | @page {
35 | size: letter landscape;
36 | margin: 0;
37 | }
38 |
39 | /* SECTION 2: Remove any elements not needed in print.
40 | This would include navigation, ads, sidebars, etc. */
41 | .nestedarrow,
42 | .controls,
43 | .reveal .progress,
44 | .reveal.overview,
45 | .fork-reveal,
46 | .share-reveal,
47 | .state-background {
48 | display: none !important;
49 | }
50 |
51 | /* SECTION 3: Set body font face, size, and color.
52 | Consider using a serif font for readability. */
53 | body, p, td, li, div {
54 | font-size: 18pt;
55 | }
56 |
57 | /* SECTION 4: Set heading font face, sizes, and color.
58 | Diffrentiate your headings from your body text.
59 | Perhaps use a large sans-serif for distinction. */
60 | h1,h2,h3,h4,h5,h6 {
61 | text-shadow: 0 0 0 #000 !important;
62 | }
63 |
64 | /* SECTION 5: Make hyperlinks more usable.
65 | Ensure links are underlined, and consider appending
66 | the URL to the end of the link for usability. */
67 | a:link,
68 | a:visited {
69 | font-weight: bold;
70 | text-decoration: underline;
71 | }
72 |
73 |
74 | /* SECTION 6: more reveal.js specific additions by @skypanther */
75 | ul, ol, div, p {
76 | visibility: visible;
77 | position: static;
78 | width: auto;
79 | height: auto;
80 | display: block;
81 | overflow: visible;
82 | margin: auto;
83 | }
84 | .reveal .slides {
85 | position: static;
86 | width: 100%;
87 | height: auto;
88 |
89 | left: auto;
90 | top: auto;
91 | margin-left: auto;
92 | margin-right: auto;
93 | margin-top: auto;
94 | padding: auto;
95 |
96 | overflow: visible;
97 | display: block;
98 |
99 | text-align: center;
100 |
101 | -webkit-perspective: none;
102 | -moz-perspective: none;
103 | -ms-perspective: none;
104 | perspective: none;
105 |
106 | -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
107 | -moz-perspective-origin: 50% 50%;
108 | -ms-perspective-origin: 50% 50%;
109 | perspective-origin: 50% 50%;
110 | }
111 | .reveal .slides section {
112 |
113 | page-break-after: always !important;
114 |
115 | visibility: visible !important;
116 | position: static !important;
117 | width: 100% !important;
118 | height: auto !important;
119 | min-height: initial !important;
120 | display: block !important;
121 | overflow: visible !important;
122 |
123 | left: 0 !important;
124 | top: 0 !important;
125 | margin-left: 0px !important;
126 | margin-top: 50px !important;
127 | padding: 20px 0px !important;
128 |
129 | opacity: 1 !important;
130 |
131 | -webkit-transform-style: flat !important;
132 | -moz-transform-style: flat !important;
133 | -ms-transform-style: flat !important;
134 | transform-style: flat !important;
135 |
136 | -webkit-transform: none !important;
137 | -moz-transform: none !important;
138 | -ms-transform: none !important;
139 | transform: none !important;
140 | }
141 | .reveal section.stack {
142 | margin: 0px !important;
143 | padding: 0px !important;
144 | page-break-after: avoid !important;
145 | }
146 | .reveal section .fragment {
147 | opacity: 1 !important;
148 | visibility: visible !important;
149 |
150 | -webkit-transform: none !important;
151 | -moz-transform: none !important;
152 | -ms-transform: none !important;
153 | transform: none !important;
154 | }
155 | .reveal img {
156 | box-shadow: none;
157 | }
158 | .reveal .roll {
159 | overflow: visible;
160 | line-height: 1em;
161 | }
162 | .reveal small a {
163 | font-size: 16pt !important;
164 | }
165 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/serif.css:
--------------------------------------------------------------------------------
1 | /**
2 | * A simple theme for reveal.js presentations, similar
3 | * to the default theme. The accent color is darkblue.
4 | *
5 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
6 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se; so is the theme - beige.css - that this is based off of.
7 | */
8 | /*********************************************
9 | * GLOBAL STYLES
10 | *********************************************/
11 | body {
12 | background: #f0f1eb;
13 | background-color: #f0f1eb; }
14 |
15 | .reveal {
16 | font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
17 | font-size: 36px;
18 | font-weight: 200;
19 | letter-spacing: -0.02em;
20 | color: black; }
21 |
22 | ::selection {
23 | color: white;
24 | background: #26351c;
25 | text-shadow: none; }
26 |
27 | /*********************************************
28 | * HEADERS
29 | *********************************************/
30 | .reveal h1,
31 | .reveal h2,
32 | .reveal h3,
33 | .reveal h4,
34 | .reveal h5,
35 | .reveal h6 {
36 | margin: 0 0 20px 0;
37 | color: #383d3d;
38 | font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
39 | line-height: 0.9em;
40 | letter-spacing: 0.02em;
41 | text-transform: none;
42 | text-shadow: none; }
43 |
44 | .reveal h1 {
45 | text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); }
46 |
47 | /*********************************************
48 | * LINKS
49 | *********************************************/
50 | .reveal a:not(.image) {
51 | color: #51483d;
52 | text-decoration: none;
53 | -webkit-transition: color .15s ease;
54 | -moz-transition: color .15s ease;
55 | -ms-transition: color .15s ease;
56 | -o-transition: color .15s ease;
57 | transition: color .15s ease; }
58 |
59 | .reveal a:not(.image):hover {
60 | color: #8b7c69;
61 | text-shadow: none;
62 | border: none; }
63 |
64 | .reveal .roll span:after {
65 | color: #fff;
66 | background: #25211c; }
67 |
68 | /*********************************************
69 | * IMAGES
70 | *********************************************/
71 | .reveal section img {
72 | margin: 15px 0px;
73 | background: rgba(255, 255, 255, 0.12);
74 | border: 4px solid black;
75 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
76 | -webkit-transition: all .2s linear;
77 | -moz-transition: all .2s linear;
78 | -ms-transition: all .2s linear;
79 | -o-transition: all .2s linear;
80 | transition: all .2s linear; }
81 |
82 | .reveal a:hover img {
83 | background: rgba(255, 255, 255, 0.2);
84 | border-color: #51483d;
85 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
86 |
87 | /*********************************************
88 | * NAVIGATION CONTROLS
89 | *********************************************/
90 | .reveal .controls div.navigate-left,
91 | .reveal .controls div.navigate-left.enabled {
92 | border-right-color: #51483d; }
93 |
94 | .reveal .controls div.navigate-right,
95 | .reveal .controls div.navigate-right.enabled {
96 | border-left-color: #51483d; }
97 |
98 | .reveal .controls div.navigate-up,
99 | .reveal .controls div.navigate-up.enabled {
100 | border-bottom-color: #51483d; }
101 |
102 | .reveal .controls div.navigate-down,
103 | .reveal .controls div.navigate-down.enabled {
104 | border-top-color: #51483d; }
105 |
106 | .reveal .controls div.navigate-left.enabled:hover {
107 | border-right-color: #8b7c69; }
108 |
109 | .reveal .controls div.navigate-right.enabled:hover {
110 | border-left-color: #8b7c69; }
111 |
112 | .reveal .controls div.navigate-up.enabled:hover {
113 | border-bottom-color: #8b7c69; }
114 |
115 | .reveal .controls div.navigate-down.enabled:hover {
116 | border-top-color: #8b7c69; }
117 |
118 | /*********************************************
119 | * PROGRESS BAR
120 | *********************************************/
121 | .reveal .progress {
122 | background: rgba(0, 0, 0, 0.2); }
123 |
124 | .reveal .progress span {
125 | background: #51483d;
126 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
127 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
128 | -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
129 | -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
130 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
131 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/template/theme.scss:
--------------------------------------------------------------------------------
1 | // Base theme template for reveal.js
2 |
3 | /*********************************************
4 | * GLOBAL STYLES
5 | *********************************************/
6 |
7 | body {
8 | @include bodyBackground();
9 | background-color: $backgroundColor;
10 | }
11 |
12 | .reveal {
13 | font-family: $mainFont;
14 | font-size: $mainFontSize;
15 | font-weight: 200;
16 | letter-spacing: -0.02em;
17 | color: $mainColor;
18 | }
19 |
20 | ::selection {
21 | color: $selectionColor;
22 | background: $selectionBackgroundColor;
23 | text-shadow: none;
24 | }
25 |
26 | /*********************************************
27 | * HEADERS
28 | *********************************************/
29 |
30 | .reveal h1,
31 | .reveal h2,
32 | .reveal h3,
33 | .reveal h4,
34 | .reveal h5,
35 | .reveal h6 {
36 | margin: 0 0 20px 0;
37 | color: $headingColor;
38 |
39 | font-family: $headingFont;
40 | line-height: $headingLineHeight;
41 | letter-spacing: $headingLetterSpacing;
42 |
43 | text-transform: $headingTextTransform;
44 | text-shadow: $headingTextShadow;
45 | }
46 |
47 | .reveal h1 {
48 | text-shadow: $heading1TextShadow;
49 | }
50 |
51 |
52 | /*********************************************
53 | * LINKS
54 | *********************************************/
55 |
56 | .reveal a:not(.image) {
57 | color: $linkColor;
58 | text-decoration: none;
59 |
60 | -webkit-transition: color .15s ease;
61 | -moz-transition: color .15s ease;
62 | -ms-transition: color .15s ease;
63 | -o-transition: color .15s ease;
64 | transition: color .15s ease;
65 | }
66 | .reveal a:not(.image):hover {
67 | color: $linkColorHover;
68 |
69 | text-shadow: none;
70 | border: none;
71 | }
72 |
73 | .reveal .roll span:after {
74 | color: #fff;
75 | background: darken( $linkColor, 15% );
76 | }
77 |
78 |
79 | /*********************************************
80 | * IMAGES
81 | *********************************************/
82 |
83 | .reveal section img {
84 | margin: 15px 0px;
85 | background: rgba(255,255,255,0.12);
86 | border: 4px solid $mainColor;
87 |
88 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
89 |
90 | -webkit-transition: all .2s linear;
91 | -moz-transition: all .2s linear;
92 | -ms-transition: all .2s linear;
93 | -o-transition: all .2s linear;
94 | transition: all .2s linear;
95 | }
96 |
97 | .reveal a:hover img {
98 | background: rgba(255,255,255,0.2);
99 | border-color: $linkColor;
100 |
101 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
102 | }
103 |
104 |
105 | /*********************************************
106 | * NAVIGATION CONTROLS
107 | *********************************************/
108 |
109 | .reveal .controls div.navigate-left,
110 | .reveal .controls div.navigate-left.enabled {
111 | border-right-color: $linkColor;
112 | }
113 |
114 | .reveal .controls div.navigate-right,
115 | .reveal .controls div.navigate-right.enabled {
116 | border-left-color: $linkColor;
117 | }
118 |
119 | .reveal .controls div.navigate-up,
120 | .reveal .controls div.navigate-up.enabled {
121 | border-bottom-color: $linkColor;
122 | }
123 |
124 | .reveal .controls div.navigate-down,
125 | .reveal .controls div.navigate-down.enabled {
126 | border-top-color: $linkColor;
127 | }
128 |
129 | .reveal .controls div.navigate-left.enabled:hover {
130 | border-right-color: $linkColorHover;
131 | }
132 |
133 | .reveal .controls div.navigate-right.enabled:hover {
134 | border-left-color: $linkColorHover;
135 | }
136 |
137 | .reveal .controls div.navigate-up.enabled:hover {
138 | border-bottom-color: $linkColorHover;
139 | }
140 |
141 | .reveal .controls div.navigate-down.enabled:hover {
142 | border-top-color: $linkColorHover;
143 | }
144 |
145 |
146 | /*********************************************
147 | * PROGRESS BAR
148 | *********************************************/
149 |
150 | .reveal .progress {
151 | background: rgba(0,0,0,0.2);
152 | }
153 | .reveal .progress span {
154 | background: $linkColor;
155 |
156 | -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
157 | -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
158 | -ms-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
159 | -o-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
160 | transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
161 | }
162 |
163 |
164 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/simple.css:
--------------------------------------------------------------------------------
1 | @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
2 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
3 | /**
4 | * A simple theme for reveal.js presentations, similar
5 | * to the default theme. The accent color is darkblue.
6 | *
7 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
8 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
9 | */
10 | /*********************************************
11 | * GLOBAL STYLES
12 | *********************************************/
13 | body {
14 | background: white;
15 | background-color: white; }
16 |
17 | .reveal {
18 | font-family: "Lato", sans-serif;
19 | font-size: 36px;
20 | font-weight: 200;
21 | letter-spacing: -0.02em;
22 | color: black; }
23 |
24 | ::selection {
25 | color: white;
26 | background: rgba(0, 0, 0, 0.99);
27 | text-shadow: none; }
28 |
29 | /*********************************************
30 | * HEADERS
31 | *********************************************/
32 | .reveal h1,
33 | .reveal h2,
34 | .reveal h3,
35 | .reveal h4,
36 | .reveal h5,
37 | .reveal h6 {
38 | margin: 0 0 20px 0;
39 | color: black;
40 | font-family: "News Cycle", Impact, sans-serif;
41 | line-height: 0.9em;
42 | letter-spacing: 0.02em;
43 | text-transform: none;
44 | text-shadow: none; }
45 |
46 | .reveal h1 {
47 | text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); }
48 |
49 | /*********************************************
50 | * LINKS
51 | *********************************************/
52 | .reveal a:not(.image) {
53 | color: darkblue;
54 | text-decoration: none;
55 | -webkit-transition: color .15s ease;
56 | -moz-transition: color .15s ease;
57 | -ms-transition: color .15s ease;
58 | -o-transition: color .15s ease;
59 | transition: color .15s ease; }
60 |
61 | .reveal a:not(.image):hover {
62 | color: #0000f1;
63 | text-shadow: none;
64 | border: none; }
65 |
66 | .reveal .roll span:after {
67 | color: #fff;
68 | background: #00003f; }
69 |
70 | /*********************************************
71 | * IMAGES
72 | *********************************************/
73 | .reveal section img {
74 | margin: 15px 0px;
75 | background: rgba(255, 255, 255, 0.12);
76 | border: 4px solid black;
77 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
78 | -webkit-transition: all .2s linear;
79 | -moz-transition: all .2s linear;
80 | -ms-transition: all .2s linear;
81 | -o-transition: all .2s linear;
82 | transition: all .2s linear; }
83 |
84 | .reveal a:hover img {
85 | background: rgba(255, 255, 255, 0.2);
86 | border-color: darkblue;
87 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
88 |
89 | /*********************************************
90 | * NAVIGATION CONTROLS
91 | *********************************************/
92 | .reveal .controls div.navigate-left,
93 | .reveal .controls div.navigate-left.enabled {
94 | border-right-color: darkblue; }
95 |
96 | .reveal .controls div.navigate-right,
97 | .reveal .controls div.navigate-right.enabled {
98 | border-left-color: darkblue; }
99 |
100 | .reveal .controls div.navigate-up,
101 | .reveal .controls div.navigate-up.enabled {
102 | border-bottom-color: darkblue; }
103 |
104 | .reveal .controls div.navigate-down,
105 | .reveal .controls div.navigate-down.enabled {
106 | border-top-color: darkblue; }
107 |
108 | .reveal .controls div.navigate-left.enabled:hover {
109 | border-right-color: #0000f1; }
110 |
111 | .reveal .controls div.navigate-right.enabled:hover {
112 | border-left-color: #0000f1; }
113 |
114 | .reveal .controls div.navigate-up.enabled:hover {
115 | border-bottom-color: #0000f1; }
116 |
117 | .reveal .controls div.navigate-down.enabled:hover {
118 | border-top-color: #0000f1; }
119 |
120 | /*********************************************
121 | * PROGRESS BAR
122 | *********************************************/
123 | .reveal .progress {
124 | background: rgba(0, 0, 0, 0.2); }
125 |
126 | .reveal .progress span {
127 | background: darkblue;
128 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
129 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
130 | -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
131 | -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
132 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
133 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/moon.css:
--------------------------------------------------------------------------------
1 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
2 | /**
3 | * Solarized Dark theme for reveal.js.
4 | * Author: Achim Staebler
5 | */
6 | @font-face {
7 | font-family: 'League Gothic';
8 | src: url("../../lib/font/league_gothic-webfont.eot");
9 | src: url("../../lib/font/league_gothic-webfont.eot?#iefix") format("embedded-opentype"), url("../../lib/font/league_gothic-webfont.woff") format("woff"), url("../../lib/font/league_gothic-webfont.ttf") format("truetype"), url("../../lib/font/league_gothic-webfont.svg#LeagueGothicRegular") format("svg");
10 | font-weight: normal;
11 | font-style: normal; }
12 |
13 | /**
14 | * Solarized colors by Ethan Schoonover
15 | */
16 | html * {
17 | color-profile: sRGB;
18 | rendering-intent: auto; }
19 |
20 | /*********************************************
21 | * GLOBAL STYLES
22 | *********************************************/
23 | body {
24 | background: #002b36;
25 | background-color: #002b36; }
26 |
27 | .reveal {
28 | font-family: "Lato", sans-serif;
29 | font-size: 36px;
30 | font-weight: 200;
31 | letter-spacing: -0.02em;
32 | color: #93a1a1; }
33 |
34 | ::selection {
35 | color: white;
36 | background: #d33682;
37 | text-shadow: none; }
38 |
39 | /*********************************************
40 | * HEADERS
41 | *********************************************/
42 | .reveal h1,
43 | .reveal h2,
44 | .reveal h3,
45 | .reveal h4,
46 | .reveal h5,
47 | .reveal h6 {
48 | margin: 0 0 20px 0;
49 | color: #eee8d5;
50 | font-family: "League Gothic", Impact, sans-serif;
51 | line-height: 0.9em;
52 | letter-spacing: 0.02em;
53 | text-transform: uppercase;
54 | text-shadow: none; }
55 |
56 | .reveal h1 {
57 | text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); }
58 |
59 | /*********************************************
60 | * LINKS
61 | *********************************************/
62 | .reveal a:not(.image) {
63 | color: #268bd2;
64 | text-decoration: none;
65 | -webkit-transition: color .15s ease;
66 | -moz-transition: color .15s ease;
67 | -ms-transition: color .15s ease;
68 | -o-transition: color .15s ease;
69 | transition: color .15s ease; }
70 |
71 | .reveal a:not(.image):hover {
72 | color: #78b9e6;
73 | text-shadow: none;
74 | border: none; }
75 |
76 | .reveal .roll span:after {
77 | color: #fff;
78 | background: #1a6091; }
79 |
80 | /*********************************************
81 | * IMAGES
82 | *********************************************/
83 | .reveal section img {
84 | margin: 15px 0px;
85 | background: rgba(255, 255, 255, 0.12);
86 | border: 4px solid #93a1a1;
87 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
88 | -webkit-transition: all .2s linear;
89 | -moz-transition: all .2s linear;
90 | -ms-transition: all .2s linear;
91 | -o-transition: all .2s linear;
92 | transition: all .2s linear; }
93 |
94 | .reveal a:hover img {
95 | background: rgba(255, 255, 255, 0.2);
96 | border-color: #268bd2;
97 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
98 |
99 | /*********************************************
100 | * NAVIGATION CONTROLS
101 | *********************************************/
102 | .reveal .controls div.navigate-left,
103 | .reveal .controls div.navigate-left.enabled {
104 | border-right-color: #268bd2; }
105 |
106 | .reveal .controls div.navigate-right,
107 | .reveal .controls div.navigate-right.enabled {
108 | border-left-color: #268bd2; }
109 |
110 | .reveal .controls div.navigate-up,
111 | .reveal .controls div.navigate-up.enabled {
112 | border-bottom-color: #268bd2; }
113 |
114 | .reveal .controls div.navigate-down,
115 | .reveal .controls div.navigate-down.enabled {
116 | border-top-color: #268bd2; }
117 |
118 | .reveal .controls div.navigate-left.enabled:hover {
119 | border-right-color: #78b9e6; }
120 |
121 | .reveal .controls div.navigate-right.enabled:hover {
122 | border-left-color: #78b9e6; }
123 |
124 | .reveal .controls div.navigate-up.enabled:hover {
125 | border-bottom-color: #78b9e6; }
126 |
127 | .reveal .controls div.navigate-down.enabled:hover {
128 | border-top-color: #78b9e6; }
129 |
130 | /*********************************************
131 | * PROGRESS BAR
132 | *********************************************/
133 | .reveal .progress {
134 | background: rgba(0, 0, 0, 0.2); }
135 |
136 | .reveal .progress span {
137 | background: #268bd2;
138 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
139 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
140 | -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
141 | -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
142 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
143 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/solarized.css:
--------------------------------------------------------------------------------
1 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
2 | /**
3 | * Solarized Light theme for reveal.js.
4 | * Author: Achim Staebler
5 | */
6 | @font-face {
7 | font-family: 'League Gothic';
8 | src: url("../../lib/font/league_gothic-webfont.eot");
9 | src: url("../../lib/font/league_gothic-webfont.eot?#iefix") format("embedded-opentype"), url("../../lib/font/league_gothic-webfont.woff") format("woff"), url("../../lib/font/league_gothic-webfont.ttf") format("truetype"), url("../../lib/font/league_gothic-webfont.svg#LeagueGothicRegular") format("svg");
10 | font-weight: normal;
11 | font-style: normal; }
12 |
13 | /**
14 | * Solarized colors by Ethan Schoonover
15 | */
16 | html * {
17 | color-profile: sRGB;
18 | rendering-intent: auto; }
19 |
20 | /*********************************************
21 | * GLOBAL STYLES
22 | *********************************************/
23 | body {
24 | background: #fdf6e3;
25 | background-color: #fdf6e3; }
26 |
27 | .reveal {
28 | font-family: "Lato", sans-serif;
29 | font-size: 36px;
30 | font-weight: 200;
31 | letter-spacing: -0.02em;
32 | color: #657b83; }
33 |
34 | ::selection {
35 | color: white;
36 | background: #d33682;
37 | text-shadow: none; }
38 |
39 | /*********************************************
40 | * HEADERS
41 | *********************************************/
42 | .reveal h1,
43 | .reveal h2,
44 | .reveal h3,
45 | .reveal h4,
46 | .reveal h5,
47 | .reveal h6 {
48 | margin: 0 0 20px 0;
49 | color: #586e75;
50 | font-family: "League Gothic", Impact, sans-serif;
51 | line-height: 0.9em;
52 | letter-spacing: 0.02em;
53 | text-transform: uppercase;
54 | text-shadow: none; }
55 |
56 | .reveal h1 {
57 | text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); }
58 |
59 | /*********************************************
60 | * LINKS
61 | *********************************************/
62 | .reveal a:not(.image) {
63 | color: #268bd2;
64 | text-decoration: none;
65 | -webkit-transition: color .15s ease;
66 | -moz-transition: color .15s ease;
67 | -ms-transition: color .15s ease;
68 | -o-transition: color .15s ease;
69 | transition: color .15s ease; }
70 |
71 | .reveal a:not(.image):hover {
72 | color: #78b9e6;
73 | text-shadow: none;
74 | border: none; }
75 |
76 | .reveal .roll span:after {
77 | color: #fff;
78 | background: #1a6091; }
79 |
80 | /*********************************************
81 | * IMAGES
82 | *********************************************/
83 | .reveal section img {
84 | margin: 15px 0px;
85 | background: rgba(255, 255, 255, 0.12);
86 | border: 4px solid #657b83;
87 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
88 | -webkit-transition: all .2s linear;
89 | -moz-transition: all .2s linear;
90 | -ms-transition: all .2s linear;
91 | -o-transition: all .2s linear;
92 | transition: all .2s linear; }
93 |
94 | .reveal a:hover img {
95 | background: rgba(255, 255, 255, 0.2);
96 | border-color: #268bd2;
97 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
98 |
99 | /*********************************************
100 | * NAVIGATION CONTROLS
101 | *********************************************/
102 | .reveal .controls div.navigate-left,
103 | .reveal .controls div.navigate-left.enabled {
104 | border-right-color: #268bd2; }
105 |
106 | .reveal .controls div.navigate-right,
107 | .reveal .controls div.navigate-right.enabled {
108 | border-left-color: #268bd2; }
109 |
110 | .reveal .controls div.navigate-up,
111 | .reveal .controls div.navigate-up.enabled {
112 | border-bottom-color: #268bd2; }
113 |
114 | .reveal .controls div.navigate-down,
115 | .reveal .controls div.navigate-down.enabled {
116 | border-top-color: #268bd2; }
117 |
118 | .reveal .controls div.navigate-left.enabled:hover {
119 | border-right-color: #78b9e6; }
120 |
121 | .reveal .controls div.navigate-right.enabled:hover {
122 | border-left-color: #78b9e6; }
123 |
124 | .reveal .controls div.navigate-up.enabled:hover {
125 | border-bottom-color: #78b9e6; }
126 |
127 | .reveal .controls div.navigate-down.enabled:hover {
128 | border-top-color: #78b9e6; }
129 |
130 | /*********************************************
131 | * PROGRESS BAR
132 | *********************************************/
133 | .reveal .progress {
134 | background: rgba(0, 0, 0, 0.2); }
135 |
136 | .reveal .progress span {
137 | background: #268bd2;
138 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
139 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
140 | -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
141 | -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
142 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
143 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/sky.css:
--------------------------------------------------------------------------------
1 | @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
2 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
3 | /**
4 | * Sky theme for reveal.js.
5 | *
6 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 | */
8 | /*********************************************
9 | * GLOBAL STYLES
10 | *********************************************/
11 | body {
12 | background: #add9e4;
13 | background: -moz-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
14 | background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #f7fbfc), color-stop(100%, #add9e4));
15 | background: -webkit-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
16 | background: -o-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
17 | background: -ms-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
18 | background: radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
19 | background-color: #f7fbfc; }
20 |
21 | .reveal {
22 | font-family: "Open Sans", sans-serif;
23 | font-size: 36px;
24 | font-weight: 200;
25 | letter-spacing: -0.02em;
26 | color: #333333; }
27 |
28 | ::selection {
29 | color: white;
30 | background: #134674;
31 | text-shadow: none; }
32 |
33 | /*********************************************
34 | * HEADERS
35 | *********************************************/
36 | .reveal h1,
37 | .reveal h2,
38 | .reveal h3,
39 | .reveal h4,
40 | .reveal h5,
41 | .reveal h6 {
42 | margin: 0 0 20px 0;
43 | color: #333333;
44 | font-family: "Quicksand", sans-serif;
45 | line-height: 0.9em;
46 | letter-spacing: -0.08em;
47 | text-transform: uppercase;
48 | text-shadow: none; }
49 |
50 | .reveal h1 {
51 | text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); }
52 |
53 | /*********************************************
54 | * LINKS
55 | *********************************************/
56 | .reveal a:not(.image) {
57 | color: #3b759e;
58 | text-decoration: none;
59 | -webkit-transition: color .15s ease;
60 | -moz-transition: color .15s ease;
61 | -ms-transition: color .15s ease;
62 | -o-transition: color .15s ease;
63 | transition: color .15s ease; }
64 |
65 | .reveal a:not(.image):hover {
66 | color: #74a7cb;
67 | text-shadow: none;
68 | border: none; }
69 |
70 | .reveal .roll span:after {
71 | color: #fff;
72 | background: #264c66; }
73 |
74 | /*********************************************
75 | * IMAGES
76 | *********************************************/
77 | .reveal section img {
78 | margin: 15px 0px;
79 | background: rgba(255, 255, 255, 0.12);
80 | border: 4px solid #333333;
81 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
82 | -webkit-transition: all .2s linear;
83 | -moz-transition: all .2s linear;
84 | -ms-transition: all .2s linear;
85 | -o-transition: all .2s linear;
86 | transition: all .2s linear; }
87 |
88 | .reveal a:hover img {
89 | background: rgba(255, 255, 255, 0.2);
90 | border-color: #3b759e;
91 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
92 |
93 | /*********************************************
94 | * NAVIGATION CONTROLS
95 | *********************************************/
96 | .reveal .controls div.navigate-left,
97 | .reveal .controls div.navigate-left.enabled {
98 | border-right-color: #3b759e; }
99 |
100 | .reveal .controls div.navigate-right,
101 | .reveal .controls div.navigate-right.enabled {
102 | border-left-color: #3b759e; }
103 |
104 | .reveal .controls div.navigate-up,
105 | .reveal .controls div.navigate-up.enabled {
106 | border-bottom-color: #3b759e; }
107 |
108 | .reveal .controls div.navigate-down,
109 | .reveal .controls div.navigate-down.enabled {
110 | border-top-color: #3b759e; }
111 |
112 | .reveal .controls div.navigate-left.enabled:hover {
113 | border-right-color: #74a7cb; }
114 |
115 | .reveal .controls div.navigate-right.enabled:hover {
116 | border-left-color: #74a7cb; }
117 |
118 | .reveal .controls div.navigate-up.enabled:hover {
119 | border-bottom-color: #74a7cb; }
120 |
121 | .reveal .controls div.navigate-down.enabled:hover {
122 | border-top-color: #74a7cb; }
123 |
124 | /*********************************************
125 | * PROGRESS BAR
126 | *********************************************/
127 | .reveal .progress {
128 | background: rgba(0, 0, 0, 0.2); }
129 |
130 | .reveal .progress span {
131 | background: #3b759e;
132 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
133 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
134 | -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
135 | -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
136 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
137 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/print/paper.css:
--------------------------------------------------------------------------------
1 | /* Default Print Stylesheet Template
2 | by Rob Glazebrook of CSSnewbie.com
3 | Last Updated: June 4, 2008
4 |
5 | Feel free (nay, compelled) to edit, append, and
6 | manipulate this file as you see fit. */
7 |
8 |
9 | /* SECTION 1: Set default width, margin, float, and
10 | background. This prevents elements from extending
11 | beyond the edge of the printed page, and prevents
12 | unnecessary background images from printing */
13 | body {
14 | background: #fff;
15 | font-size: 13pt;
16 | width: auto;
17 | height: auto;
18 | border: 0;
19 | margin: 0 5%;
20 | padding: 0;
21 | float: none !important;
22 | overflow: visible;
23 | }
24 | html {
25 | background: #fff;
26 | width: auto;
27 | height: auto;
28 | overflow: visible;
29 | }
30 |
31 | /* SECTION 2: Remove any elements not needed in print.
32 | This would include navigation, ads, sidebars, etc. */
33 | .nestedarrow,
34 | .controls,
35 | .reveal .progress,
36 | .reveal.overview,
37 | .fork-reveal,
38 | .share-reveal,
39 | .state-background {
40 | display: none !important;
41 | }
42 |
43 | /* SECTION 3: Set body font face, size, and color.
44 | Consider using a serif font for readability. */
45 | body, p, td, li, div, a {
46 | font-size: 16pt!important;
47 | font-family: Georgia, "Times New Roman", Times, serif !important;
48 | color: #000;
49 | }
50 |
51 | /* SECTION 4: Set heading font face, sizes, and color.
52 | Diffrentiate your headings from your body text.
53 | Perhaps use a large sans-serif for distinction. */
54 | h1,h2,h3,h4,h5,h6 {
55 | color: #000!important;
56 | height: auto;
57 | line-height: normal;
58 | font-family: Georgia, "Times New Roman", Times, serif !important;
59 | text-shadow: 0 0 0 #000 !important;
60 | text-align: left;
61 | letter-spacing: normal;
62 | }
63 | /* Need to reduce the size of the fonts for printing */
64 | h1 { font-size: 26pt !important; }
65 | h2 { font-size: 22pt !important; }
66 | h3 { font-size: 20pt !important; }
67 | h4 { font-size: 20pt !important; font-variant: small-caps; }
68 | h5 { font-size: 19pt !important; }
69 | h6 { font-size: 18pt !important; font-style: italic; }
70 |
71 | /* SECTION 5: Make hyperlinks more usable.
72 | Ensure links are underlined, and consider appending
73 | the URL to the end of the link for usability. */
74 | a:link,
75 | a:visited {
76 | color: #000 !important;
77 | font-weight: bold;
78 | text-decoration: underline;
79 | }
80 | /*
81 | .reveal a:link:after,
82 | .reveal a:visited:after {
83 | content: " (" attr(href) ") ";
84 | color: #222 !important;
85 | font-size: 90%;
86 | }
87 | */
88 |
89 |
90 | /* SECTION 6: more reveal.js specific additions by @skypanther */
91 | ul, ol, div, p {
92 | visibility: visible;
93 | position: static;
94 | width: auto;
95 | height: auto;
96 | display: block;
97 | overflow: visible;
98 | margin: auto;
99 | text-align: left !important;
100 | }
101 | .reveal .slides {
102 | position: static;
103 | width: auto;
104 | height: auto;
105 |
106 | left: auto;
107 | top: auto;
108 | margin-left: auto;
109 | margin-top: auto;
110 | padding: auto;
111 |
112 | overflow: visible;
113 | display: block;
114 |
115 | text-align: center;
116 | -webkit-perspective: none;
117 | -moz-perspective: none;
118 | -ms-perspective: none;
119 | perspective: none;
120 |
121 | -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
122 | -moz-perspective-origin: 50% 50%;
123 | -ms-perspective-origin: 50% 50%;
124 | perspective-origin: 50% 50%;
125 | }
126 | .reveal .slides>section,
127 | .reveal .slides>section>section {
128 |
129 | visibility: visible !important;
130 | position: static !important;
131 | width: 90% !important;
132 | height: auto !important;
133 | display: block !important;
134 | overflow: visible !important;
135 |
136 | left: 0% !important;
137 | top: 0% !important;
138 | margin-left: 0px !important;
139 | margin-top: 0px !important;
140 | padding: 20px 0px !important;
141 |
142 | opacity: 1 !important;
143 |
144 | -webkit-transform-style: flat !important;
145 | -moz-transform-style: flat !important;
146 | -ms-transform-style: flat !important;
147 | transform-style: flat !important;
148 |
149 | -webkit-transform: none !important;
150 | -moz-transform: none !important;
151 | -ms-transform: none !important;
152 | transform: none !important;
153 | }
154 | .reveal section {
155 | page-break-after: always !important;
156 | display: block !important;
157 | }
158 | .reveal section .fragment {
159 | opacity: 1 !important;
160 | visibility: visible !important;
161 |
162 | -webkit-transform: none !important;
163 | -moz-transform: none !important;
164 | -ms-transform: none !important;
165 | transform: none !important;
166 | }
167 | .reveal section:last-of-type {
168 | page-break-after: avoid !important;
169 | }
170 | .reveal section img {
171 | display: block;
172 | margin: 15px 0px;
173 | background: rgba(255,255,255,1);
174 | border: 1px solid #666;
175 | box-shadow: none;
176 | }
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/beige.css:
--------------------------------------------------------------------------------
1 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
2 | /**
3 | * Beige theme for reveal.js.
4 | *
5 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
6 | */
7 | @font-face {
8 | font-family: 'League Gothic';
9 | src: url("../../lib/font/league_gothic-webfont.eot");
10 | src: url("../../lib/font/league_gothic-webfont.eot?#iefix") format("embedded-opentype"), url("../../lib/font/league_gothic-webfont.woff") format("woff"), url("../../lib/font/league_gothic-webfont.ttf") format("truetype"), url("../../lib/font/league_gothic-webfont.svg#LeagueGothicRegular") format("svg");
11 | font-weight: normal;
12 | font-style: normal; }
13 |
14 | /*********************************************
15 | * GLOBAL STYLES
16 | *********************************************/
17 | body {
18 | background: #f7f2d3;
19 | background: -moz-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
20 | background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, white), color-stop(100%, #f7f2d3));
21 | background: -webkit-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
22 | background: -o-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
23 | background: -ms-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
24 | background: radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
25 | background-color: #f7f3de; }
26 |
27 | .reveal {
28 | font-family: "Lato", sans-serif;
29 | font-size: 36px;
30 | font-weight: 200;
31 | letter-spacing: -0.02em;
32 | color: #333333; }
33 |
34 | ::selection {
35 | color: white;
36 | background: rgba(79, 64, 28, 0.99);
37 | text-shadow: none; }
38 |
39 | /*********************************************
40 | * HEADERS
41 | *********************************************/
42 | .reveal h1,
43 | .reveal h2,
44 | .reveal h3,
45 | .reveal h4,
46 | .reveal h5,
47 | .reveal h6 {
48 | margin: 0 0 20px 0;
49 | color: #333333;
50 | font-family: "League Gothic", Impact, sans-serif;
51 | line-height: 0.9em;
52 | letter-spacing: 0.02em;
53 | text-transform: uppercase;
54 | text-shadow: none; }
55 |
56 | .reveal h1 {
57 | text-shadow: 0 1px 0 #cccccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbbbbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaaaaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
58 |
59 | /*********************************************
60 | * LINKS
61 | *********************************************/
62 | .reveal a:not(.image) {
63 | color: #8b743d;
64 | text-decoration: none;
65 | -webkit-transition: color .15s ease;
66 | -moz-transition: color .15s ease;
67 | -ms-transition: color .15s ease;
68 | -o-transition: color .15s ease;
69 | transition: color .15s ease; }
70 |
71 | .reveal a:not(.image):hover {
72 | color: #c0a86e;
73 | text-shadow: none;
74 | border: none; }
75 |
76 | .reveal .roll span:after {
77 | color: #fff;
78 | background: #564826; }
79 |
80 | /*********************************************
81 | * IMAGES
82 | *********************************************/
83 | .reveal section img {
84 | margin: 15px 0px;
85 | background: rgba(255, 255, 255, 0.12);
86 | border: 4px solid #333333;
87 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
88 | -webkit-transition: all .2s linear;
89 | -moz-transition: all .2s linear;
90 | -ms-transition: all .2s linear;
91 | -o-transition: all .2s linear;
92 | transition: all .2s linear; }
93 |
94 | .reveal a:hover img {
95 | background: rgba(255, 255, 255, 0.2);
96 | border-color: #8b743d;
97 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
98 |
99 | /*********************************************
100 | * NAVIGATION CONTROLS
101 | *********************************************/
102 | .reveal .controls div.navigate-left,
103 | .reveal .controls div.navigate-left.enabled {
104 | border-right-color: #8b743d; }
105 |
106 | .reveal .controls div.navigate-right,
107 | .reveal .controls div.navigate-right.enabled {
108 | border-left-color: #8b743d; }
109 |
110 | .reveal .controls div.navigate-up,
111 | .reveal .controls div.navigate-up.enabled {
112 | border-bottom-color: #8b743d; }
113 |
114 | .reveal .controls div.navigate-down,
115 | .reveal .controls div.navigate-down.enabled {
116 | border-top-color: #8b743d; }
117 |
118 | .reveal .controls div.navigate-left.enabled:hover {
119 | border-right-color: #c0a86e; }
120 |
121 | .reveal .controls div.navigate-right.enabled:hover {
122 | border-left-color: #c0a86e; }
123 |
124 | .reveal .controls div.navigate-up.enabled:hover {
125 | border-bottom-color: #c0a86e; }
126 |
127 | .reveal .controls div.navigate-down.enabled:hover {
128 | border-top-color: #c0a86e; }
129 |
130 | /*********************************************
131 | * PROGRESS BAR
132 | *********************************************/
133 | .reveal .progress {
134 | background: rgba(0, 0, 0, 0.2); }
135 |
136 | .reveal .progress span {
137 | background: #8b743d;
138 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
139 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
140 | -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
141 | -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
142 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
143 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/css/theme/default.css:
--------------------------------------------------------------------------------
1 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
2 | /**
3 | * Default theme for reveal.js.
4 | *
5 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
6 | */
7 | @font-face {
8 | font-family: 'League Gothic';
9 | src: url("../../lib/font/league_gothic-webfont.eot");
10 | src: url("../../lib/font/league_gothic-webfont.eot?#iefix") format("embedded-opentype"), url("../../lib/font/league_gothic-webfont.woff") format("woff"), url("../../lib/font/league_gothic-webfont.ttf") format("truetype"), url("../../lib/font/league_gothic-webfont.svg#LeagueGothicRegular") format("svg");
11 | font-weight: normal;
12 | font-style: normal; }
13 |
14 | /*********************************************
15 | * GLOBAL STYLES
16 | *********************************************/
17 | body {
18 | background: #1c1e20;
19 | background: -moz-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
20 | background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #555a5f), color-stop(100%, #1c1e20));
21 | background: -webkit-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
22 | background: -o-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
23 | background: -ms-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
24 | background: radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
25 | background-color: #2b2b2b; }
26 |
27 | .reveal {
28 | font-family: "Lato", sans-serif;
29 | font-size: 36px;
30 | font-weight: 200;
31 | letter-spacing: -0.02em;
32 | color: #eeeeee; }
33 |
34 | ::selection {
35 | color: white;
36 | background: #ff5e99;
37 | text-shadow: none; }
38 |
39 | /*********************************************
40 | * HEADERS
41 | *********************************************/
42 | .reveal h1,
43 | .reveal h2,
44 | .reveal h3,
45 | .reveal h4,
46 | .reveal h5,
47 | .reveal h6 {
48 | margin: 0 0 20px 0;
49 | color: #eeeeee;
50 | font-family: "League Gothic", Impact, sans-serif;
51 | line-height: 0.9em;
52 | letter-spacing: 0.02em;
53 | text-transform: uppercase;
54 | text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); }
55 |
56 | .reveal h1 {
57 | text-shadow: 0 1px 0 #cccccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbbbbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaaaaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
58 |
59 | /*********************************************
60 | * LINKS
61 | *********************************************/
62 | .reveal a:not(.image) {
63 | color: #13daec;
64 | text-decoration: none;
65 | -webkit-transition: color .15s ease;
66 | -moz-transition: color .15s ease;
67 | -ms-transition: color .15s ease;
68 | -o-transition: color .15s ease;
69 | transition: color .15s ease; }
70 |
71 | .reveal a:not(.image):hover {
72 | color: #71e9f4;
73 | text-shadow: none;
74 | border: none; }
75 |
76 | .reveal .roll span:after {
77 | color: #fff;
78 | background: #0d99a5; }
79 |
80 | /*********************************************
81 | * IMAGES
82 | *********************************************/
83 | .reveal section img {
84 | margin: 15px 0px;
85 | background: rgba(255, 255, 255, 0.12);
86 | border: 4px solid #eeeeee;
87 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
88 | -webkit-transition: all .2s linear;
89 | -moz-transition: all .2s linear;
90 | -ms-transition: all .2s linear;
91 | -o-transition: all .2s linear;
92 | transition: all .2s linear; }
93 |
94 | .reveal a:hover img {
95 | background: rgba(255, 255, 255, 0.2);
96 | border-color: #13daec;
97 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
98 |
99 | /*********************************************
100 | * NAVIGATION CONTROLS
101 | *********************************************/
102 | .reveal .controls div.navigate-left,
103 | .reveal .controls div.navigate-left.enabled {
104 | border-right-color: #13daec; }
105 |
106 | .reveal .controls div.navigate-right,
107 | .reveal .controls div.navigate-right.enabled {
108 | border-left-color: #13daec; }
109 |
110 | .reveal .controls div.navigate-up,
111 | .reveal .controls div.navigate-up.enabled {
112 | border-bottom-color: #13daec; }
113 |
114 | .reveal .controls div.navigate-down,
115 | .reveal .controls div.navigate-down.enabled {
116 | border-top-color: #13daec; }
117 |
118 | .reveal .controls div.navigate-left.enabled:hover {
119 | border-right-color: #71e9f4; }
120 |
121 | .reveal .controls div.navigate-right.enabled:hover {
122 | border-left-color: #71e9f4; }
123 |
124 | .reveal .controls div.navigate-up.enabled:hover {
125 | border-bottom-color: #71e9f4; }
126 |
127 | .reveal .controls div.navigate-down.enabled:hover {
128 | border-top-color: #71e9f4; }
129 |
130 | /*********************************************
131 | * PROGRESS BAR
132 | *********************************************/
133 | .reveal .progress {
134 | background: rgba(0, 0, 0, 0.2); }
135 |
136 | .reveal .progress span {
137 | background: #13daec;
138 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
139 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
140 | -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
141 | -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
142 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
143 |
--------------------------------------------------------------------------------
/share/templates/pdf-simple/generate_files:
--------------------------------------------------------------------------------
1 | import re
2 | import sys
3 | import json
4 | import codecs
5 | from os import path, access, R_OK # W_OK for write permission.
6 |
7 | if len(sys.argv) > 1 :
8 | debug = True;
9 | else :
10 | debug = False;
11 |
12 | json_data=codecs.open('./configuration.json', "r", "utf-8")
13 | data = json.load(json_data)
14 | json_data.close()
15 |
16 | template_file_base = "./common/pdf-template-simple.tex";
17 | template_file_generated = "./pdf-template-gen.tex";
18 |
19 | if debug : print "Base Template file to use : " + template_file_base
20 |
21 | if path.isfile(template_file_base) and access(template_file_base, R_OK):
22 | #print "File exists and is readable"
23 | # Read contents from file as a single string
24 | file_handle = codecs.open(template_file_base, 'r', "utf-8")
25 | file_string = file_handle.read()
26 | file_handle.close()
27 |
28 | # Getting title
29 | if "title" in data :
30 | title = data["title"]
31 | else :
32 | print "Setting default value for title : My title"
33 | title = "My title"
34 |
35 | if debug : print "Setting title to " + title
36 | file_string = (re.sub(u'!title!', title, file_string))
37 |
38 | # Getting author
39 | if "author" in data :
40 | author = data["author"]
41 | else :
42 | print "Setting default value for author : My author"
43 | author = "My author"
44 |
45 | if debug : print "Setting author to " + author
46 | file_string = (re.sub(u'!author!', author, file_string))
47 |
48 | # Getting author company
49 | if "author_company" in data :
50 | author_company = data["author_company"]
51 | else :
52 | print "Setting default value for author_company : My company"
53 | author = "My company"
54 |
55 | if debug : print "Setting author_company to " + author_company
56 | file_string = (re.sub(u'!author_company!', author_company, file_string))
57 |
58 | # Getting language
59 | if "lang" in data :
60 | langLong = data["lang"]
61 | else :
62 | print "Setting default language for lang : english"
63 | langLong = "english"
64 |
65 | if langLong not in ["french", "english"] :
66 | print "Unknown language : " + langLong
67 | print "Falling back to default one : english"
68 | langLong = "english"
69 |
70 | if langLong == "english" :
71 | lang = "en"
72 | file_string = (re.sub(u'!french-addon!',r"", file_string))
73 | if langLong == "french" :
74 | lang = "fr"
75 | file_string = (re.sub(u'!french-addon!',r"\\frenchbsetup{CompactItemize=false} % Fix itemize clash", file_string))
76 |
77 | if debug : print "Setting lang to " + lang
78 | file_string = (re.sub(u'!lang-short!', lang, file_string))
79 | file_string = (re.sub(u'!lang-long!', langLong, file_string))
80 |
81 | # Getting footer
82 |
83 | if "footer" in data :
84 | footer = data["footer"]
85 |
86 | # Getting left footer
87 | if "left" in footer :
88 | leftFooter = footer["left"]
89 | elements = ""
90 | #elements_count = leftFooter.__len__()
91 | for element in leftFooter :
92 | #if position != elements_count :
93 | elements += element + r"\\\\"
94 | #else :
95 | # elements += element
96 | file_string = (re.sub(u'!footer_left!', elements, file_string))
97 | else :
98 | print "No left footer defined"
99 |
100 | # Getting left footer
101 | if "right" in footer :
102 | rightFooter = footer["right"]
103 | elements = ""
104 | #elements_count = rightFooter.__len__()
105 | for element in rightFooter :
106 | #if position != elements_count :
107 | elements += element + r"\\\\"
108 | #else :
109 | # elements += element
110 | file_string = (re.sub(u'!footer_right!', elements, file_string))
111 | else :
112 | print "No right footer defined"
113 | else :
114 | print "No footer defined"
115 |
116 | # Getting client
117 | if "client" in data :
118 | client = data["client"]
119 | else :
120 | print "Setting default value for client : My client"
121 | client = "My client"
122 |
123 | if debug : print "Setting client to " + client
124 | file_string = (re.sub(u'!client!', client, file_string))
125 |
126 | # Getting document reference
127 | if "destination_file_name" in data :
128 | document_reference = data["destination_file_name"]
129 | else :
130 | print "Setting default value for destination_file_name : example"
131 | document_reference = "example"
132 |
133 | document_reference = re.sub(u'_','\\\_',document_reference)
134 |
135 | if debug : print "Setting document_reference to " + document_reference
136 | file_string = (re.sub(u'!TPLdocumentreference!', document_reference, file_string))
137 |
138 | # Getting release info
139 | if "release_info" in data :
140 | release_info = data["release_info"]
141 | else :
142 | print "Setting default value for release_info : Draft"
143 | release_info = "Draft"
144 |
145 | if debug : print "Setting release info to " + release_info
146 | file_string = (re.sub(u'!release_info!', release_info, file_string))
147 |
148 | # Getting water_mark
149 | if "water_mark" in data :
150 | water_mark = data["water_mark"]
151 | else :
152 | print "Setting default value for water_mark : DRAFT"
153 | water_mark = "DRAFT"
154 |
155 | if debug : print "Setting watermark to " + water_mark
156 | file_string = (re.sub(u'!water_mark!', water_mark, file_string))
157 |
158 | # Write contents to file.
159 | # Using mode 'w' truncates the file.
160 | file_handle = codecs.open(template_file_generated, 'w', "utf-8")
161 | file_handle.write(file_string)
162 | file_handle.close()
163 |
164 | else:
165 | print "Either file is missing or is not readable"
166 |
--------------------------------------------------------------------------------
/share/templates/pdf-simple/doc/README_pdf-simple.md:
--------------------------------------------------------------------------------
1 | # Documentation du template pdf simple
2 |
3 | ## Introduction
4 |
5 | Cette documentation est en lien avec le template pour la création de pdf simples pour le programme `marksf_gen`
6 |
7 | ## Structure du template
8 |
9 | root
10 | |- Makefile
11 | |- configuration.json
12 | |- doc
13 | | |- README_pdf-simple.md
14 | | |- README_pdf-simple.pdf
15 | |- document.md
16 | |- generator.py
17 | |- images
18 | | |- hw.jpg
19 | |- enumitem.sty
20 | |- make-clean.bat
21 | |- make-pdf-simple.bat
22 | |- pdf-template-simple.tex
23 | |- sysfera-simple.sty
24 |
25 | ## Description de ce contenu
26 |
27 | **Fichier** **Description**
28 | ------------------------------ ----------------------------------------------------------------
29 | Makefile Makefile pour la génération/clean du pdf simple d'output
30 | doc/README_pdf-simple.(md/pdf) Ce fichier de readme
31 | configuration.json Fichier de configuration pour le fichier pdf final
32 | generator.py Fichier permettant la génération du projet basé sur le template
33 | document.md Le document de base d'exemple pour ce template
34 | images/* Un ensemble d'images de base
35 | make-clean.bat Fichier batch à utiliser sous windows pour le nettoyage d'un projet
36 | make-pdf-simple.bat Fichier batch à utiliser sous windows pour la génération du pdf simple
37 | pdf-template-simple.tex Fichier de template utilisé pour la création de l'enrobage du fichier pdf créé
38 | sysfera-simple.sty Feuille de style définissant le style simple SysFera
39 |
40 | Nous allons aborder les fichiers les plus importants.
41 |
42 | ## Makefile
43 |
44 | Fichier de compilation permettant la gestion de la compilation d'un document simple en pdf :
45 |
46 | * pdf-simple : génération de la version simple en pdf
47 | * clean : pour le nettoyage
48 |
49 | ## pdf-template-simple.tex
50 |
51 | Ce fichier LaTeX décrit l'ensemble des éléments qui forment le template qui permet la création des fichiers simples en pdf au style SysFera.
52 |
53 | Ce fichier possède des balises de la forme :
54 |
55 | !title!
56 |
57 | Qui sont automatiquement remplies par le script generate_files
58 |
59 | Pour information, voici les variables qui sont utilisées :
60 |
61 | * Le titre avec la balise `\title`. Ex :
62 |
63 | ~~~latex
64 | \title{Exemple de document SysFera}
65 | ~~~
66 |
67 | * L'auteur avec la balise `\author`. Ex :
68 |
69 | ~~~latex
70 | \author{John Doe}
71 | ~~~
72 |
73 | * Le client avec la balise `\SFclient`. Ex :
74 |
75 | ~~~latex
76 | \SFclient{Client 404}
77 | ~~~
78 |
79 | D'autres options sont disponibles dans le template comme :
80 |
81 | * `\SFreleaseinfo` pour afficher une box en en-tête de page affichant un texte. Ex :
82 |
83 | ~~~latex
84 | \SFreleaseinfo{Réalisé}
85 | ~~~
86 |
87 | * `\showwatermark` pour avoir un filigrane utilisé sur les pages. Vous pouvez utiliser du texte ou mettre un image en utilisant l'environnement LaTeX adapté. Ex :
88 |
89 | ~~~latex
90 | \showwatermark{DRAFT}
91 | ~~~
92 |
93 | *\underline{Note} : Sauf si vous souhaitez modifier le template lui-même, nous n'avez pas à modifier ce fichier lorsque vous souhaitez créer un document.*
94 |
95 | ## document.md
96 |
97 | Ce fichier est le document maître dans lequel il faudra ajouter l'ensemble des informations qui vont constituer le corps du résultat produit.
98 |
99 | À noter que la syntaxe markdown supportée est une extension de la version officielle et vous pouvez retrouver l'ensemble des éléments fournis par Pandoc dont on peut trouver la description sur [la page dédiée](http://johnmacfarlane.net/pandoc/README.html#pandocs-markdown).
100 |
101 | *\underline{Note} : Vous pouvez donner le nom que vous voulez à ce fichier tant que vous donnez le nom du fichier source dans le fichier de configuration*
102 |
103 | ## configuration.json
104 |
105 | Voici le contenu d'un fichier complet de configuration avec les variables correspondantes pour un pdf simple :
106 |
107 | {
108 | "source_file_name":"document.md", // nom du document
109 | "destination_file_name":"example", // nom de destination du document
110 | "client":"Client", // nom du client a qui est destine le document
111 | "title" : "Document entre SysFera et un client", // titre du document
112 | "author" : "John Doe", // auteur du document
113 | "project_name" : "Projet 999", // nom du projet
114 | "release_info":"Réalisé héhé", // information de release du document
115 | "water_mark":"DRAFT" // watermark s'affichant en fond du document
116 | }
117 |
118 | ## generator.py
119 |
120 | Ce fichier est utilisé par le script `marksf_gen` pour la copie des fichiers d'un template lors de la création d'un projet basé sur ce template. Il déclare deux variables :
121 |
122 | * `version` : version du template
123 | * `description` : description du template
124 |
125 | Elle serve notamment pour l'affichage de la liste des templates disponibles.
126 |
127 | Il implémente aussi deux fonctions :
128 |
129 | * `usage_message`: fonction affichant l'usage du template
130 | * `generate` : fonction générant les fichiers spécifique d'une template lors de la création d'un nouveau projet
131 |
132 | ## Structure d'un projet généré
133 |
134 | Voici, après génération, le contenu d'un projet pour un pdf simple :
135 |
136 | root
137 | |- Makefile
138 | |- bin
139 | | |- config_parsing
140 | | |- generate_files
141 | |- common
142 | | |- bgsysfera.png
143 | | |- logosysfera.pdf
144 | | |- pdf-template-simple.tex
145 | | |- sysfera-simple.sty
146 | | |- enumitem.sty
147 | |- configuration.json
148 | |- doc
149 | | |- README.md
150 | | |- README_pdf-simple.md
151 | | |- README_pdf-simple.pdf
152 | | |- README.pdf
153 | |- images
154 | | |- hw.jpg
155 | |- document.md
156 | |- make-clean.bat
157 | |- make-pdf-simple.bat
158 |
159 | ## README.pdf
160 |
161 | Le readme en pdf est générée avec la commande suivante :
162 |
163 | pandoc -f markdown-raw_tex README_pdf-simple.md -o README_pdf-simple.pdf
--------------------------------------------------------------------------------
/share/templates/slides-reveal/doc/README_slides-reveal.md:
--------------------------------------------------------------------------------
1 | # Documentation du template slides-reveal
2 |
3 | ## Introduction
4 |
5 | Cette documentation est en lien avec le template pour la création de pdf simples pour le programme `marksf_gen`
6 |
7 | ## Structure du template
8 |
9 | root
10 | |- Gruntfile.js
11 | |- LICENSE
12 | |- Makefile
13 | |- configuration.json
14 | |- css
15 | |- doc
16 | | |- README_slides-reveal.md
17 | | |- README_slides-reveal.pdf
18 | |- favicon.ico
19 | |- generate_files
20 | |- generator.py
21 | |- images
22 | |- index.html
23 | |- js
24 | |- lib
25 | |- make-clean.bat
26 | |- make-slides-reveal.bat
27 | |- package.json
28 | |- plugin
29 | |- src
30 |
31 | ## Description de ce contenu
32 |
33 | **Fichier** **Description**
34 | ---------------------- ----------------------------------------------------------------
35 | Makefile Makefile pour la génération/clean de l'index.html des slides
36 | doc Dossier contenant cette documentation
37 | configuration.json Fichier de configuration pour la présentation finale
38 | generator.py Fichier permettant la génération du projet basé sur le template
39 | src Dossier contenant les documents de base d'exemple pour ce template
40 | images/* Un ensemble d'images de base
41 | make-clean.bat Fichier batch à utiliser sous windows pour le nettoyage d'un projet
42 | make-pdf-simple.bat Fichier batch à utiliser sous windows pour la génération de la présentation
43 | Gruntfile.js Fichier utilise pour la génération de certains éléments liés à Reveal.js
44 | LICENSE Fichier de licence de Reveal.js
45 | css Dossier contenant les feuilles de style CSS de Reveal.js
46 | favicon.ico Favicon utilise pour la presentation (sphère de SysFera)
47 | index.html Fichier de template utilise pour la création des slides
48 | js Dossier contenant les scripts Javascript de Reveal.js
49 | lib Dossier contenant les librairies externes utilisées par Reveal.js
50 | package.json Fichier de configuration utilisé par Reveal.js pour certaines fonctionnalités
51 | plugin Dossier contenant certains plugins de Reveal.js
52 |
53 |
54 | Nous allons aborder les fichiers les plus importants.
55 |
56 | ## Makefile
57 |
58 | Fichier de compilation permettant la gestion de la compilation d'une présentation :
59 |
60 | * slides-reveal : génération de la présentation
61 | * clean : pour le nettoyage
62 |
63 | ## src/*.md
64 |
65 | Ce dossier contient l'ensemble des fichiers qui servent de base à la présentation.
66 |
67 | À noter que la syntaxe markdown supportée est la syntaxe de base agrémentée des ajouts réalisées par le créateur de Reveal.js que vous pouvez retrouver sur le github associé : [dépôt de Reveal.js sur github](https://github.com/hakimel/reveal.js).
68 |
69 | Concernant la syntaxe spécifique de création de section (les parties horizontales dans les présentations) et de slides (les parties verticles dans les présentations), deux balises sont à utiliser :
70 |
71 | * `!SECTION` pour créer une nouvelle section
72 | * `!SLIDE` pour créer un nouveau slide
73 |
74 | *\underline{Note} : Vous pouvez donner les noms que vous voulez à ces fichiers tant que vous donnez les noms des fichiers source dans le fichier de configuration*
75 |
76 | ## configuration.json
77 |
78 | Voici le contenu d'un fichier complet de configuration avec les variables correspondantes pour une présentation :
79 |
80 | {
81 | "title" : "Document entre SysFera et un client", // titre de la présentation
82 | "subtitle":"Trop bien", // sous-titre de la présentation
83 | "author" : "John Doe", // auteur de la présentation
84 | "website":"http://www.sysfera.com", // site web à associer à l'auteur de la présentation
85 | "e-mail" : "john.doe@sysfera.com", // e-mail de l'auteur de la présentation
86 | "twitter" : "hakimel", // compte twitter de l'auteur de la présentation
87 | "event":"Mix-IT", // évènement associé à la présentation
88 | "date":"2013-04-27", // date de présentation des slides
89 | "transition":"cube", // effet de transition entre les slides
90 | "table_of_contents":true, // non utilise pour l'instant
91 | "loop":true, // permet de faire tourner les slides sans interruption
92 | "autoSlide":"7000", // temps entre deux slides en milliseconde
93 | "source_files":[ // les fichiers sources qui constitueront la présentation
94 | {
95 | "file":"src/first_part.md", // nom de fichier
96 | "title":"First part" // non utilise pour l'instant
97 | },
98 | {
99 | "file":"src/second_part.md",
100 | "title":"Second part"
101 | }
102 | ]
103 | }
104 |
105 | ## generator.py
106 |
107 | Ce fichier est utilisé par le script `marksf_gen` pour la copie des fichiers d'un template lors de la création d'un projet basé sur ce template. Il déclare deux variables :
108 |
109 | * `version` : version du template
110 | * `description` : description du template
111 |
112 | Elle serve notamment pour l'affichage de la liste des templates disponibles.
113 |
114 | Il implémente aussi deux fonctions :
115 |
116 | * `usage_message`: fonction affichant l'usage du template
117 | * `generate` : fonction générant les fichiers spécifique d'une template lors de la création d'un nouveau projet
118 |
119 | ## Structure d'un projet généré
120 |
121 | Voici, après génération, le contenu d'un projet pour une présentation :
122 |
123 | root
124 | |- Gruntfile.js
125 | |- LICENSE
126 | |- Makefile
127 | |- bin
128 | |- common
129 | |- configuration.json
130 | |- css
131 | |- doc
132 | |- favicon.ico
133 | |- images
134 | |- index.html
135 | |- js
136 | |- lib
137 | |- make-clean.bat
138 | |- make-slides-reveal.bat
139 | |- package.json
140 | |- plugin
141 | |- src
142 |
143 | ## README.pdf
144 |
145 | Le readme en pdf est générée avec la commande suivante :
146 |
147 | pandoc --latex-engine xelatex -f markdown-raw_tex README_slides-reveal.md -o README_slides-reveal.pdf
--------------------------------------------------------------------------------
/share/templates/slides-reveal/generate_files:
--------------------------------------------------------------------------------
1 | import re
2 | import sys
3 | import json
4 | import codecs
5 | from os import path, access, R_OK # W_OK for write permission.
6 | import datetime
7 | import string
8 | import random
9 |
10 | def id_generator(size=8, chars=string.digits):
11 | return ''.join(random.choice(chars) for x in range(size))
12 |
13 | if len(sys.argv) > 1 :
14 | debug = True;
15 | else :
16 | debug = False;
17 |
18 | now = datetime.datetime.now()
19 |
20 | json_data=codecs.open('./configuration.json', "r", "utf-8")
21 | data = json.load(json_data)
22 | json_data.close()
23 |
24 | template_file_base = "./common/index.html";
25 | template_file_generated = "./index.html";
26 |
27 | if debug : print "Base Template file to use : " + template_file_base
28 |
29 | if path.isfile(template_file_base) and access(template_file_base, R_OK):
30 | #print "File exists and is readable"
31 | # Read contents from file as a single string
32 | file_handle = codecs.open(template_file_base, 'r', "utf-8")
33 | file_string = file_handle.read()
34 | file_handle.close()
35 |
36 | # Getting title
37 | if "title" in data :
38 | title = data["title"]
39 | else :
40 | print "Setting default value for title : My title"
41 | title = "My title"
42 |
43 | if debug : print "Setting title to " + title
44 | file_string = (re.sub(u'!title!', title, file_string))
45 |
46 | # Getting sub-title
47 | if "subtitle" in data :
48 | subtitle = data["subtitle"]
49 | else :
50 | print "Setting default value for subtitle : ''"
51 | subtitle = ""
52 |
53 | if debug : print "Setting subtitle to " + subtitle
54 | file_string = (re.sub(u'!subtitle!', subtitle, file_string))
55 |
56 | # Getting author
57 | if "author" in data :
58 | author = data["author"]
59 | else :
60 | print "Setting default value for author : My author"
61 | author = "My author"
62 |
63 | if debug : print "Setting author to " + author
64 | file_string = (re.sub(u'!author!', author, file_string))
65 |
66 | # Getting transition
67 | if "transition" in data :
68 | transition = data["transition"]
69 | else :
70 | print "Setting default value for transition : cube"
71 | transition = "cube"
72 |
73 | if debug : print "Setting transition to " + transition
74 | file_string = (re.sub(u'!transition!', transition, file_string))
75 |
76 | if "loop" in data :
77 | loop = data["loop"]
78 | else :
79 | print "Setting default value for loop : false"
80 | loop = False
81 |
82 | if debug : print "Setting loop to " + str(loop)
83 | file_string = (re.sub(u'!loop!', "loop:"+str(loop).lower()+",", file_string))
84 |
85 | if "autoSlide" in data :
86 | autoSlide = data["autoSlide"]
87 | else :
88 | print "Setting default value for autoSlide (no autoSlide)"
89 | autoSlide = 0
90 |
91 | if debug and autoSlide : print "Setting autoSlide to " + str(autoSlide)
92 | file_string = (re.sub(u'!autoSlide!', "autoSlide:"+str(autoSlide)+",", file_string))
93 |
94 | # Getting website
95 | if "website" in data :
96 | website = data["website"]
97 | else :
98 | print "Setting default value for website : http://www.sysfera.fr"
99 | website = "http://www.sysfera.fr"
100 |
101 | if debug : print "Setting website to " + website
102 | file_string = (re.sub(u'!website!', website, file_string))
103 |
104 | # Getting date
105 | if "date" in data :
106 | date = data["date"]
107 | else :
108 | date = now.strftime("%Y/%m/%d")
109 | print "Setting default value for date : " + date
110 |
111 | if debug : print "Setting date to " + date
112 | file_string = (re.sub(u'!date!', date, file_string))
113 |
114 | # Getting event
115 | if "event" in data :
116 | event = data["event"]
117 | else :
118 | event = ""
119 | print "Setting default value for event : "
120 |
121 | if debug : print "Setting event to " + event
122 | file_string = (re.sub(u'!event!', event, file_string))
123 |
124 | # Getting twitter
125 | if "twitter" in data :
126 | twitter = u"/ @"+ data["twitter"] +" "
127 |
128 | else :
129 | print "Setting default value for twitter : SysFera"
130 | twitter = u"/ @SysFera "
131 |
132 | if debug : print "Setting twitter to " + twitter
133 | file_string = (re.sub(u'!twitter!', twitter, file_string))
134 |
135 | # if "table_of_contents" in data :
136 | # table_of_contents = data["table_of_contents"]
137 | # else :
138 | # table_of_contents = False
139 |
140 | # if debug :
141 | # if table_of_contents :
142 | # print "Adding table of contents"
143 | # else :
144 | # print "No table of contents added"
145 |
146 | # Getting source files and table of contents
147 | if "source_files" in data :
148 |
149 | source_files = data["source_files"]
150 |
151 | if debug : print "Setting source files to " + str(source_files)
152 | content_line = ""
153 | # table_of_contents_line = r"\nPlan \n"
154 | if len(source_files) > 0 :
155 | for source_file in source_files :
156 |
157 | content_line += u'"+source_file["title"]+r" \n"
161 | # content_line += " id='"+section_id + "'"
162 | content_line += ' data-markdown="'+source_file["file"]+r'" data-separator="^!SECTION$" data-vertical="^!SLIDE$"> \n'
163 | # table_of_contents_line += " \n "
164 | file_string = (re.sub(u'!content!', content_line, file_string) )
165 | # if table_of_contents :
166 | # file_string = (re.sub(u'!toc!',table_of_contents_line, file_string))
167 | # else :
168 | # file_string = (re.sub(u'!toc!',"", file_string))
169 | else :
170 | print r"No source file found!"
171 | file_string = (re.sub(u'!content!', "", file_string) )
172 | else :
173 | print r"No source file found!"
174 | file_string = (re.sub(u'!content!', "", file_string) )
175 |
176 | # Write contents to file.
177 | # Using mode 'w' truncates the file.
178 | file_handle = codecs.open(template_file_generated, 'w', "utf-8")
179 | file_handle.write(file_string)
180 | file_handle.close()
181 |
182 | else:
183 | print "Either file is missing or is not readable"
184 |
--------------------------------------------------------------------------------
/share/templates/slides-reveal/plugin/notes/notes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | reveal.js - Slide Notes
7 |
8 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 | UPCOMING:
148 |
149 |
150 |
151 |
152 |
Time
153 | 0:00:00 AM
154 |
155 |
156 |
Elapsed
157 | 00 :00 :00
158 |
159 |
160 |
161 |
162 |
163 |
164 |
252 |
253 |
254 |
--------------------------------------------------------------------------------