diff options
author | Jonas Smedegaard <dr@jones.dk> | 2016-08-26 09:49:46 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2016-08-26 09:49:46 +0200 |
commit | 0d3da37d769c37e61e5dbe3bf46628aa42b060ea (patch) | |
tree | 511af9e75a15bbc1b6b6f7f9a705298683411cbe /data | |
parent | f8389d48da9921672da3896b85f7ed444ede714d (diff) | |
parent | c2179ac4d072ddb8fd7688c353d4bb63b93f2d46 (diff) |
Imported Upstream version 1.17.2~dfsg
Diffstat (limited to 'data')
-rw-r--r-- | data/sample.lua | 12 | ||||
-rw-r--r-- | data/templates/default.beamer | 3 | ||||
-rw-r--r-- | data/templates/default.latex | 9 | ||||
-rw-r--r-- | data/templates/default.zimwiki | 16 |
4 files changed, 33 insertions, 7 deletions
diff --git a/data/sample.lua b/data/sample.lua index 574f378cc..0c07b632a 100644 --- a/data/sample.lua +++ b/data/sample.lua @@ -170,6 +170,12 @@ function Span(s, attr) return "<span" .. attributes(attr) .. ">" .. s .. "</span>" end +function RawInline(format, str) + if format == "html" then + return str + end +end + function Cite(s, cs) local ids = {} for _,cit in ipairs(cs) do @@ -307,6 +313,12 @@ function Table(caption, aligns, widths, headers, rows) return table.concat(buffer,'\n') end +function RawBlock(format, str) + if format == "html" then + return str + end +end + function Div(s, attr) return "<div" .. attributes(attr) .. ">\n" .. s .. "</div>" end diff --git a/data/templates/default.beamer b/data/templates/default.beamer index ccd0862d1..191903c95 100644 --- a/data/templates/default.beamer +++ b/data/templates/default.beamer @@ -89,8 +89,7 @@ $if(natbib)$ \bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$} $endif$ $if(biblatex)$ -\usepackage$if(biblio-style)$[style=$biblio-style$]$endif${biblatex} -$if(biblatexoptions)$\ExecuteBibliographyOptions{$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$}$endif$ +\usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex} $for(bibliography)$ \addbibresource{$bibliography$} $endfor$ diff --git a/data/templates/default.latex b/data/templates/default.latex index bc84520a3..4b371e12d 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -57,11 +57,11 @@ $endif$ $if(geometry)$ \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} $endif$ -\usepackage{hyperref} +\usepackage[unicode=true]{hyperref} $if(colorlinks)$ \PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref $endif$ -\hypersetup{unicode=true, +\hypersetup{ $if(title-meta)$ pdftitle={$title-meta$}, $endif$ @@ -100,8 +100,7 @@ $if(natbib)$ \bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$} $endif$ $if(biblatex)$ -\usepackage$if(biblio-style)$[style=$biblio-style$]$endif${biblatex} -$if(biblatexoptions)$\ExecuteBibliographyOptions{$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$}$endif$ +\usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex} $for(bibliography)$ \addbibresource{$bibliography$} $endfor$ @@ -155,7 +154,7 @@ $endif$ \providecommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} $if(numbersections)$ -\setcounter{secnumdepth}{5} +\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$} $else$ \setcounter{secnumdepth}{0} $endif$ diff --git a/data/templates/default.zimwiki b/data/templates/default.zimwiki new file mode 100644 index 000000000..30824bd9f --- /dev/null +++ b/data/templates/default.zimwiki @@ -0,0 +1,16 @@ +Content-Type: text/x-zim-wiki +Wiki-Format: zim 0.4 + +$for(include-before)$ +$include-before$ + +$endfor$ +$if(toc)$ +__TOC__ + +$endif$ +$body$ +$for(include-after)$ + +$include-after$ +$endfor$ |