diff options
| author | Yan Pas <yanp.bugz@gmail.com> | 2018-10-07 18:10:01 +0300 |
|---|---|---|
| committer | Yan Pas <yanp.bugz@gmail.com> | 2018-10-07 18:10:01 +0300 |
| commit | 27467189ab184c5d098e244e01f7d1bfdb0d4d45 (patch) | |
| tree | d1fb96ebbc49ee0c4e73ef354feddd521690d545 /data | |
| parent | 4f3dd3b1af7217214287ab886147c5e33a54774d (diff) | |
| parent | bd8a66394bc25b52dca9ffd963a560a4ca492f9c (diff) | |
| download | pandoc-27467189ab184c5d098e244e01f7d1bfdb0d4d45.tar.gz | |
Merge branch 'master' into groff_reader
Diffstat (limited to 'data')
| -rw-r--r-- | data/pandoc.lua | 4 | ||||
| -rw-r--r-- | data/templates/default.epub3 | 2 | ||||
| -rw-r--r-- | data/templates/default.html5 | 2 | ||||
| -rw-r--r-- | data/templates/default.latex | 81 | ||||
| -rw-r--r-- | data/templates/default.opendocument | 4 | ||||
| -rw-r--r-- | data/templates/default.revealjs | 6 | ||||
| -rw-r--r-- | data/templates/default.rst | 8 | ||||
| -rw-r--r-- | data/templates/default.tei | 20 | ||||
| -rw-r--r-- | data/templates/default.texinfo | 22 | ||||
| -rw-r--r-- | data/translations/fr.yaml | 20 | ||||
| -rw-r--r-- | data/translations/ru.yaml | 18 |
11 files changed, 94 insertions, 93 deletions
diff --git a/data/pandoc.lua b/data/pandoc.lua index 512b2919c..54370bd1b 100644 --- a/data/pandoc.lua +++ b/data/pandoc.lua @@ -124,7 +124,7 @@ Type.behavior = { Type.behavior.__index = Type.behavior --- Set a new behavior for the type, inheriting that of the parent type if none ---- is specified explicitely +--- is specified explicitly -- @param behavior the behavior object for this type. -- @local function Type:set_behavior (behavior) @@ -487,7 +487,7 @@ M.Cite = M.Inline:create_constructor( --- Creates a Code inline element -- @function Code --- @tparam string text brief image description +-- @tparam string text code string -- @tparam[opt] Attr attr additional attributes -- @treturn Inline code element M.Code = M.Inline:create_constructor( diff --git a/data/templates/default.epub3 b/data/templates/default.epub3 index b22714963..6428e984c 100644 --- a/data/templates/default.epub3 +++ b/data/templates/default.epub3 @@ -26,7 +26,7 @@ $for(header-includes)$ $header-includes$ $endfor$ </head> -<body$if(coverpage)$ id="cover"$endif$> +<body$if(coverpage)$ id="cover"$endif$$if(body-type)$ epub:type="$body-type$"$endif$> $if(titlepage)$ <section epub:type="titlepage"> $for(title)$ diff --git a/data/templates/default.html5 b/data/templates/default.html5 index 9c15107c0..c2bf0e093 100644 --- a/data/templates/default.html5 +++ b/data/templates/default.html5 @@ -46,7 +46,7 @@ $for(include-before)$ $include-before$ $endfor$ $if(title)$ -<header> +<header id="title-block-header"> <h1 class="title">$title$</h1> $if(subtitle)$ <p class="subtitle">$subtitle$</p> diff --git a/data/templates/default.latex b/data/templates/default.latex index 31093374f..e64b216eb 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -1,4 +1,4 @@ -\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere +\PassOptionsToPackage{unicode=true$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} % options for packages loaded elsewhere \PassOptionsToPackage{hyphens}{url} $if(colorlinks)$ \PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor} @@ -20,6 +20,41 @@ $endif$ $for(beameroption)$ \setbeameroption{$beameroption$} $endfor$ +% Prevent slide breaks in the middle of a paragraph: +\widowpenalties 1 10000 +\raggedbottom +$if(section-titles)$ +\setbeamertemplate{part page}{ +\centering +\begin{beamercolorbox}[sep=16pt,center]{part title} + \usebeamerfont{part title}\insertpart\par +\end{beamercolorbox} +} +\setbeamertemplate{section page}{ +\centering +\begin{beamercolorbox}[sep=12pt,center]{part title} + \usebeamerfont{section title}\insertsection\par +\end{beamercolorbox} +} +\setbeamertemplate{subsection page}{ +\centering +\begin{beamercolorbox}[sep=8pt,center]{part title} + \usebeamerfont{subsection title}\insertsubsection\par +\end{beamercolorbox} +} +\AtBeginPart{ + \frame{\partpage} +} +\AtBeginSection{ + \ifbibliography + \else + \frame{\sectionpage} + \fi +} +\AtBeginSubsection{ + \frame{\subsectionpage} +} +$endif$ $endif$ $if(beamerarticle)$ \usepackage{beamerarticle} % needs to be loaded first @@ -148,6 +183,7 @@ $endif$ $if(colorlinks)$ colorlinks=true, linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$, + filecolor=$if(filecolor)$$filecolor$$else$Maroon$endif$, citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$, urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$, $else$ @@ -198,43 +234,6 @@ $if(graphics)$ % using explicit options in \includegraphics[width, height, ...]{} \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} $endif$ -$if(beamer)$ -% Prevent slide breaks in the middle of a paragraph: -\widowpenalties 1 10000 -\raggedbottom -$if(section-titles)$ -\setbeamertemplate{part page}{ -\centering -\begin{beamercolorbox}[sep=16pt,center]{part title} - \usebeamerfont{part title}\insertpart\par -\end{beamercolorbox} -} -\setbeamertemplate{section page}{ -\centering -\begin{beamercolorbox}[sep=12pt,center]{part title} - \usebeamerfont{section title}\insertsection\par -\end{beamercolorbox} -} -\setbeamertemplate{subsection page}{ -\centering -\begin{beamercolorbox}[sep=8pt,center]{part title} - \usebeamerfont{subsection title}\insertsubsection\par -\end{beamercolorbox} -} -\AtBeginPart{ - \frame{\partpage} -} -\AtBeginSection{ - \ifbibliography - \else - \frame{\sectionpage} - \fi -} -\AtBeginSubsection{ - \frame{\subsectionpage} -} -$endif$ -$endif$ $if(links-as-notes)$ % Make links footnotes instead of hotlinks: \DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}} @@ -361,8 +360,14 @@ $include-before$ $endfor$ $if(toc)$ +$if(toc-title)$ +\renewcommand*\contentsname{$toc-title$} +$endif$ $if(beamer)$ \begin{frame} +$if(toc-title)$ +\frametitle{$toc-title$} +$endif$ \tableofcontents[hideallsubsections] \end{frame} $else$ diff --git a/data/templates/default.opendocument b/data/templates/default.opendocument index e0bc5c1d3..cc7d33002 100644 --- a/data/templates/default.opendocument +++ b/data/templates/default.opendocument @@ -26,9 +26,7 @@ $endfor$ $if(toc)$ <text:table-of-content> <text:table-of-content-source text:outline-level="10"> - <text:index-title-template text:style-name="Contents_20_Heading"> - $toc-title$ - </text:index-title-template> + <text:index-title-template text:style-name="Contents_20_Heading">$toc-title$</text:index-title-template> <text:table-of-content-entry-template text:outline-level="1" text:style-name="Contents_20_1"> <text:index-entry-link-start text:style-name="Internet_20_link" /> diff --git a/data/templates/default.revealjs b/data/templates/default.revealjs index 6f847e23a..2c6b8e2ff 100644 --- a/data/templates/default.revealjs +++ b/data/templates/default.revealjs @@ -170,6 +170,10 @@ $if(mouseWheel)$ // Enable slide navigation via mouse wheel mouseWheel: $mouseWheel$, $endif$ +$if(rollingLinks)$ + // Apply a 3D roll to links on hover + rollingLinks: $rollingLinks$, +$endif$ $if(hideAddressBar)$ // Hides the address bar on mobile devices hideAddressBar: $hideAddressBar$, @@ -237,7 +241,7 @@ $if(maxScale)$ $endif$ $if(mathjax)$ math: { - mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js', + mathjax: '$mathjaxurl$', config: 'TeX-AMS_HTML-full', tex2jax: { inlineMath: [['\\(','\\)']], diff --git a/data/templates/default.rst b/data/templates/default.rst index e9c0dc203..9ba15f546 100644 --- a/data/templates/default.rst +++ b/data/templates/default.rst @@ -1,5 +1,5 @@ -$if(title)$ -$title$ +$if(titleblock)$ +$titleblock$ $endif$ $for(author)$ @@ -31,6 +31,10 @@ $if(toc)$ .. $endif$ +$if(number-sections)$ +.. section-numbering:: + +$endif$ $for(header-includes)$ $header-includes$ diff --git a/data/templates/default.tei b/data/templates/default.tei index 3778dccd5..757347886 100644 --- a/data/templates/default.tei +++ b/data/templates/default.tei @@ -3,18 +3,30 @@ <teiHeader> <fileDesc> <titleStmt> -$if(title)$ <title>$title$</title> -$endif$ $for(author)$ - $author$ + <author>$author$</author> $endfor$ </titleStmt> <publicationStmt> +$if(publicationStmt)$ <p>$if(publicationStmt)$$publicationStmt$$endif$</p> - $if(license)$ +$endif$ +$if(license)$ <availability><licence>$license$</licence></availability> $endif$ +$if(publisher)$ + <publisher>$publisher$</publisher> +$endif$ +$if(pubPlace)$ + <pubPlace>$pubPlace$</pubPlace> +$endif$ +$if(address)$ + <address>$address$</address> +$endif$ +$if(date)$ + <date>$date$</date> +$endif$ </publicationStmt> <sourceDesc> $if(sourceDesc)$ diff --git a/data/templates/default.texinfo b/data/templates/default.texinfo index 458d4fdda..693827810 100644 --- a/data/templates/default.texinfo +++ b/data/templates/default.texinfo @@ -10,28 +10,6 @@ $if(strikeout)$ @end macro $endif$ -$if(subscript)$ -@macro textsubscript{text} -@iftex -@textsubscript{\text\} -@end iftex -@ifnottex -_@{\text\@} -@end ifnottex -@end macro - -$endif$ -$if(superscript)$ -@macro textsuperscript{text} -@iftex -@textsuperscript{\text\} -@end iftex -@ifnottex -^@{\text\@} -@end ifnottex -@end macro - -$endif$ @ifnottex @paragraphindent 0 @end ifnottex diff --git a/data/translations/fr.yaml b/data/translations/fr.yaml index 4b75da6f4..b0e6dc311 100644 --- a/data/translations/fr.yaml +++ b/data/translations/fr.yaml @@ -1,20 +1,20 @@ Abstract: Résumé Appendix: Annexe Bibliography: Bibliographie -Cc: Copie à -Chapter: Chaptire +Cc: Cc +Chapter: Chapitre Contents: Table des matières -Figure: Fig. -Glossary: +Figure: Figure +Glossary: Glossaire Index: Index ListOfFigures: Table des figures ListOfTables: Liste des tableaux -Page: page -Part: partie +Page: Page +Part: Partie Preface: Préface Proof: Démonstration References: Références -See: voir -SeeAlso: voir aussi -Table: Tab. -To: +See: Voir +SeeAlso: Voir aussi +Table: Tableau +To: À diff --git a/data/translations/ru.yaml b/data/translations/ru.yaml index 6012c3e19..0bcbea62b 100644 --- a/data/translations/ru.yaml +++ b/data/translations/ru.yaml @@ -1,20 +1,20 @@ -Abstract: Аннотація -Appendix: Приложеніе +Abstract: Аннотация +Appendix: Приложение Author: Именной указатель -Bibliography: Библіографія +Bibliography: Литература Cc: исх. Chapter: Глава -Contents: Оглавленіе +Contents: Оглавление Encl: вкл. Figure: Рис. -Index: Предмѣтный указатель -ListOfFigures: Списокъ иллюстрацій -ListOfTables: Списокъ таблицъ +Index: Предметный указатель +ListOfFigures: Список иллюстраций +ListOfTables: Список таблиц Page: с. Part: Часть -Preface: Предисловіе +Preface: Предисловие Proof: Доказательство -References: Примѣчанія +References: Список литературы See: см. SeeAlso: см. также Table: Таблица |
