PK ! Z pandoc_styles/__init__.pyfrom .utils import (change_dir, file_read, file_write, make_list, run_process, expand_directories) from .flight_scripts import run_postflight_script, run_preflight_script from .filter import * # pylint: disable=W0401 from .main import PandocStyles PK ! k:a $ pandoc_styles/config_dir/config.yaml--- # only needed, if pandoc is not in PATH pandoc-path: # path to python for scripts. Only needed, if your operating system needs this. # for example: on windows with the standard python installation use "py". python-path: python ... PK ! \ ( pandoc_styles/config_dir/css/default.cssbody { max-width: 800px; grid-column-gap: 3em; padding-top: 2em; font-family: "Noto Serif", serif; font-size: 10pt; line-height: "1.2"; text-align: justify; margin: 3em auto 0 auto; } .content { margin: 1em; padding-bottom: 2em; } @media only screen and (min-width: 600px) { body { font-size: 12pt; line-height: "1.5"; -webkit-box-shadow: 1px 4px 14px #888; box-shadow: 1px 4px 14px #888; } .content { margin: 1em 3em 3em 3em; } } header { text-align: center; } h1 { font-family: "Noto Sans", sans-serif; margin-top: 1em; margin-bottom: 1em; font-size: 1.5em; text-align: left; font-weight: bold; page-break-before: always; text-indent: 0; } h2 { font-size: 1.3em; } h3 { font-size: 1.2em; page-break-before: auto; } p { margin: 0; text-indent: 0; } p + p { margin-top: 1em; } a { color: inherit; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } a .footnoteRef { vertical-align: super; } *[id^='fn']:target { background-color: #ffa; } .math { font-family: "Noto Serif", serif; font-size: 0.9em; } blockquote { font-style: italic; } .citation { font-style: normal; } section.footnotes { margin-top: 2em; } code { font-family: "Fira Code", monospace; -webkit-font-variant-ligatures: contextual; font-variant-ligatures: contextual; -webkit-font-feature-settings: "calt" 1; font-feature-settings: "calt" 1; font-size: 0.9em; } figure { text-align: center; margin: 1em 0; max-width: 100%; max-height: 100%; page-break-inside: avoid; clear: both; } figure img { max-height: 100%; max-width: 100%; } figcaption { text-indent: 0; text-align: center; font-style: italic; padding-left: 1em; padding-right: 1em; } ol.toc { padding: 0; margin-left: 1em; } ol.toc li { list-style-type: none; margin: 0; padding: 0; } em, em em em, em em em em em { font-style: italic; } em em, em em em em { font-style: normal; } .date { font-family: "Oswald", sans-serif; margin-top: 1em; margin-bottom: 3em; text-indent: 0em; font-size: 1.2em; text-align: center; } .author { font-family: "Oswald", sans-serif; margin-top: 1em; text-indent: 0em; font-size: 1.5em; text-align: center; } .main { font-family: "Oswald", sans-serif; margin-top: 2em; text-indent: 0em; font-size: 1.6em; font-weight: bold; text-align: center; } .title { font-family: "Oswald", sans-serif; text-indent: 0em; font-size: 1.6em; font-weight: bold; text-align: center; } .subtitle { font-family: "Oswald", sans-serif; margin-top: 1em; text-indent: 0em; font-size: 1.4em; font-style: italic; text-align: center; } #sidebar { right: 1em; top: 3em; z-index: 1; margin: 0; text-align: left; padding: 0; position: fixed; overflow-y: auto; overflow-x: hidden; max-width: 350px; max-height: 95%; font-size: 10pt; } #sidebar ul { display: none; width: 100%; list-style: none; margin: 0; background: #FFFFFF; } #sidebar ul li { margin-right: 4em; } #sidebar ul li a { display: block; padding: 0.3em; background: #FFFFFF; color: #000000; text-decoration: none; } #sidebar ul li a:hover { color: #FFFFFF; background: #555; } #sidebar input.trigger { position: absolute; top: -9999px; left: -9999px; } #sidebar input.trigger:checked ~ ul, #sidebar input.trigger:checked ~ ul li ul { display: block !important; } #sidebar label { position: fixed; right: 0.5em; top: .2em; width: 1.2em; height: 1.2em; text-align: center; font-size: 2em; background: #FFFFFF; color: #000000; } #sidebar label:after { content: "\2261"; } #sidebar label:hover { color: #FFFFFF; background: #555; } PK ! .Ɔ , pandoc_styles/config_dir/filter/alignment.pyfrom pandoc_styles import run_transform_filter def latex(self): if "left" in self.classes: style = "flushleft" elif "right" in self.classes: style = "flushright" else: style = "center" return (f'\\begin{{{style}}}\n' f'{self.convert_text()}\n' f'\\end{{{style}}}\n') def html(self): if "left" in self.classes: style = "left" elif "right" in self.classes: style = "right" else: style = "center" return (f'
{self.attributes["author"]}
' \ if "author" in self.attributes else "" return (f'", self.attributes["title"], "
"]) if self.style == "top" and "author" in self.attributes: new.extend(["\n", self.attributes["author"], "
"]) new.extend(['\n\n
", strip_html_tag(self.convert_text(line)), "
"]) else: new.extend(["\n", self.convert_text(line)]) i += 1 new.extend(['\n", self.attributes["author"], "", " — ", self.attributes["title"], "
"]) elif self.style != "top": if "title" in self.attributes: new.extend(["\n", self.attributes["title"], "
"]) if "author" in self.attributes: new.extend(["\n", self.attributes["author"], "
"]) new.extend(['\n', self.attributes["title"], "
"]) if self.style == "top" and "author" in self.attributes: new.extend(['\n', self.attributes["author"], "
"]) new.extend(["\n", self.convert_text()]) if self.style == "one-line" and "author" in self.attributes and\ "title" in self.attributes: new.extend(['\n', self.attributes["author"], "", " — ", self.attributes["title"], "
"]) elif self.style != "top": if "title" in self.attributes: new.extend(["\n", '', self.attributes["title"], "
"]) if "author" in self.attributes: new.extend(["\n", '', self.attributes["author"], "
"]) new.extend(['\n{text}
' if style == "fleuron": return '\n' return "\n * * *\n" for ffile in self.files: text = file_read(ffile) new_text = re.sub(r'(^\s*\*\s*\*\s*\*\s*\n)', style_new_scene, text, flags=re.MULTILINE) if text != new_text: file_write(ffile, new_text) if __name__ == '__main__': run_preflight_script(scenes) PK ! / * pandoc_styles/config_dir/sass/default.scss$media-breakpoint: 600px !default; $body-max-width: 800px !default; $base-font-size: 12pt !default; $paragraph-line-height: "1.5" !default; $media-font-size: 10pt !default; $media-paragraph-line-height: "1.2" !default; $heading-alignment: left !default; $title-font: "Oswald", sans-serif !default; $author-font: "Oswald", sans-serif !default; $header-font: "Noto Sans", sans-serif !default; $mono-font: "Fira Code", monospace !default; $body-font: "Noto Serif", serif !default; $indent: false !default; $paper-box: true !default; $footnote-highlight: "true" !default; $footnote-highlight-color: #ffa !default; $table-hover: "true" !default; $table-hover-color: #ffa !default; body { max-width: $body-max-width; padding-top: 2em; font-family: $body-font; font-size: $media-font-size; line-height: $media-paragraph-line-height; text-align: justify; margin: 3em auto 0 auto; } .content { margin: 1em; padding-bottom: 2em; } @media only screen and (min-width: $media-breakpoint) { body { font-size: $base-font-size; line-height: $paragraph-line-height; @if $paper-box == true { box-shadow: 1px 4px 14px #888; } } .content { margin: 1em 3em 3em 3em; } } header { text-align: center; } h1 { font-family: $header-font; margin-top: 1em; margin-bottom: 1em; font-size: 1.5em; text-align: $heading-alignment; font-weight: bold; page-break-before: always; text-indent: 0; } h2 { font-size: 1.3em; } h3 { font-size: 1.2em; page-break-before: auto; } @if $indent == true { p { margin: 1em 0 0 0; text-indent: 0; } p+p { margin: 0; text-indent: 1em; } } @else { p { margin: 0; text-indent: 0; } p+p { margin-top: 1em; } } a { color: inherit; text-decoration: underline dotted; .footnoteRef { vertical-align: super; } } @if $footnote-highlight == "true" { *[id^='fn']:target { background-color: $footnote-highlight-color; } } .math { font-family: $body-font; font-size: 0.9em; } blockquote { font-style: italic; } table { width: 100%; border-spacing: 0; th, td { padding: 5px; } th { border-bottom: 1px solid; } @if $table-hover == "true" { tr:hover { background-color: $table-hover-color; } } } .citation { font-style: normal; } section.footnotes { margin-top: 2em; } code { font-family: $mono-font; font-variant-ligatures: contextual; font-feature-settings: "calt" 1; font-size: 0.9em; } figure { text-align: center; margin: 1em 0; max-width: 100%; max-height: 100%; page-break-inside: avoid; clear: both; img { max-height: 100%; max-width: 100%; } } figcaption { text-indent: 0; text-align: center; font-style: italic; padding-left: 1em; padding-right: 1em; } ol.toc { padding: 0; margin-left: 1em; } ol.toc li { list-style-type: none; margin: 0; padding: 0; } em, em em em, em em em em em { font-style: italic; } em em, em em em em { font-style: normal; } .DefinitionTerm{ margin: 0; font-weight: bold; text-indent: 0em; } .DefinitionDescription{ margin-left: 2em; text-indent: 0em; } .date { font-family: $author-font; margin-top: 1em; margin-bottom: 3em; text-indent: 0em; font-size: 1.2em; text-align: center; } .author { font-family: $author-font; margin-top: 1em; text-indent: 0em; font-size: 1.5em; text-align: center; } .main { font-family: $title-font; margin-top: 2em; text-indent: 0em; font-size: 1.6em; font-weight: bold; text-align: center; } .title { font-family: $title-font; text-indent: 0em; font-size: 1.6em; font-weight: bold; text-align: center; } .subtitle { font-family: $author-font; margin-top: 1em; text-indent: 0em; font-size: 1.4em; font-style: italic; text-align: center; } PK ! :X X / pandoc_styles/config_dir/sass/default_epub.scss$heading-alignment: left !default; @page { margin: 5pt; } html, body { margin: 0; padding: 0; text-align: justify; } code { font-family: monospace; } .math { font-size: 0.9em; } p { margin: 0; text-align: justify; text-indent: 1.2em; } h1+p, h2+p, h3+p, h4+p, h5+p, h6+p { margin: 0; text-align: justify; text-indent: 0; } .pagebreak { page-break-after: always; } a { color: inherit; text-decoration: none; .footnoteRef { vertical-align: super; } } h1 { margin-top: 1em; margin-bottom: 2em; font-size: 1.5em; text-align: $heading-alignment; font-weight: bold; text-indent: 0; } h2 { margin-top: 1em; margin-bottom: 1.5em; font-size: 1.3em; text-align: $heading-alignment; font-weight: bold; text-indent: 0; } h3 { margin-top: 1em; margin-bottom: 1em; font-size: 1.2em; text-align: $heading-alignment; font-weight: bold; text-indent: 0; } .header-section-number { display: block; padding-bottom: 1em; } blockquote { font-style: italic; } table { width: 100%; border-spacing: 0; th, td { padding: 5px; } th { border-bottom: 1px solid; } } figure { text-align: center; margin: 1em 0; max-width: 100%; max-height: 100%; page-break-inside: avoid; clear: both; img { max-height: 100%; max-width: 100%; } } figcaption { text-indent: 0; text-align: center; font-style: italic; padding-left: 1em; padding-right: 1em; } .DefinitionTerm { margin: 0; font-weight: bold; text-indent: 0em; } .DefinitionDescription { margin-left: 2em; text-indent: 0em; } .author { margin-top: 3em; margin-bottom: 3em; text-indent: 0em; font-size: 1.5em; text-align: center; } .publisher { margin-top: 3em; margin-bottom: 3em; text-indent: 0em; font-size: 1.2em; text-align: center; } .main { margin-top: 2em; text-indent: 0em; font-size: 1.6em; font-weight: bold; text-align: center; } .title { margin-top: 2em; text-indent: 0em; font-size: 1.6em; font-weight: bold; text-align: center; } .subtitle { margin-top: 1em; text-indent: 0em; font-size: 1.4em; font-style: italic; text-align: center; } div#cover-image img { max-height: 100%; max-width: 100%; } ol.toc { padding: 0; margin-left: 1em; li { list-style-type: none; margin: 0; padding: 0; } } em, em em em, em em em em em { font-style: italic; } em em, em em em em { font-style: normal; } PK ! %8 / pandoc_styles/config_dir/sass/extra_styles.scss.NewScene { margin-top: .75em; margin-bottom: .75em; text-indent: 0; text-align: center; +p { text-indent: 0; } } .szeneimg { width: 10%; vertical-align: middle; } .noindent { margin: 0; p { text-indent: 0; } } .align_left { margin: 0; p { text-align: left; } } .align_center { margin: 0; p { text-align: center; } } .align_right { margin: 0; p { text-align: right; } } .Poem { margin-top: 1em; margin-bottom: 1em; margin-right: 1em; margin-left: 1em; text-align: left; .Stanza { page-break-inside: avoid; } p, div { text-indent: -0.5em; margin-left: 1.5em; margin-top: 0; margin-bottom: 0; } +p { text-indent: 0; } .PoemAuthor { font-style: italic; text-indent: 0; text-align: right; } .PoemTitle { font-weight: bold; text-indent: 0; text-align: right; } .PoemTitleTop { font-weight: bold; text-indent: 0; text-align: center; } .PoemAuthorTop { font-style: italic; text-indent: 0; text-align: center; } .PoemAuthorTop+p, .PoemTitleTop+p { padding-top: 1em; } .PoemTitleTop+.PoemAuthorTop { padding-top: 0.2em; } .PoemSingle { text-indent: 0; text-align: right; } } .QuoteBlock { margin-left: 2em; margin-right: 2em; margin-top: 1em; margin-bottom: 1em; text-indent: 0; p { text-indent: 0; margin-top: 0; margin-bottom: 0; } p+p { text-indent: 1.2em; } .QuoteAuthor { font-style: italic; text-indent: 0; text-align: right; } .QuoteScource { font-weight: bold; text-indent: 0; text-align: right; } .QuoteScourceTop { font-weight: bold; text-indent: 0; text-align: center; } .QuoteAuthorTop { font-style: italic; text-indent: 0; text-align: center; } .QuoteAuthorTop+p, .QuoteScourceTop+p { padding-top: 1em; } .QuoteScourceTop+.QuoteAuthorTop { padding-top: 0.2em; } .QuoteSingle { text-indent: 0; text-align: right; } } .Epigraph { margin-top: 0; margin-bottom: 1em; margin-left: 55%; margin-right: 1em; text-indent: 0; text-align: left; p { margin-top: 0; margin-bottom: 0; text-indent: 0; } +p { text-indent: 0; } .EpigraphAuthor { font-style: italic; text-align: right; border-top: thin solid; } } .dedication { color: black; padding-top: 5em; padding-left: 20%; padding-right: 20%; margin-bottom: 3em; p { text-indent: 0em; text-align: center; } } .copyrights { color: black; padding-top: 5%; padding-left: 5%; padding-right: 5%; p { font-size: 0.8em; text-indent: 0em; text-align: center; } } .hidden { color: transparent; } PK ! FAuW W - pandoc_styles/config_dir/sass/navigation.scss$nav-top: true !default; $nav-media-breakpoint: 600px !default; $nav-sub-nav-width: 200px; $nav-background-color: #FFFFFF !default; $nav-hover-background-color: #555 !default; $nav-text-color: #000000 !default; $nav-hover-text-color: #FFFFFF !default; $nav-font-size: 11pt !default; // sidebar #navbar { right: 1em; top: 3em; z-index: 1; margin: 0; text-align: left; padding: 0; position: fixed; overflow-y: auto; overflow-x: hidden; max-width: 350px; max-height: 95%; font-size: $nav-font-size; ul { display: none; width: 100%; list-style: none; margin: 0; background: $nav-background-color; li { margin-right: 4em; a { display: block; padding: 0.3em; background: $nav-background-color; color: #000000; text-decoration: none; &:hover { color: $nav-hover-text-color; background: $nav-hover-background-color; } } } } input.trigger { position: absolute; top: -9999px; left: -9999px; &:checked~ul, &:checked~ul li ul { display: block !important; } } label { position: fixed; right: 0.5em; top: .2em; width: 1.2em; height: 1.2em; text-align: center; font-size: 2em; background: $nav-background-color; color: $nav-text-color; &:after { content: "\2261"; } &:hover { color: $nav-hover-text-color; background: $nav-hover-background-color; } } } @if $nav-top==true { @media only screen and (min-width: $nav-media-breakpoint) { #navbar { max-width: 100%; max-height: auto; width: 100%; position: fixed; top: 0; left: 0; overflow-y: visible; overflow-x: visible; background: #fff; -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); ul { display: flex; flex-direction: row; width: 100%; list-style: none; margin: 0; margin-top: -0.5em; background: transparent; li { a { display: block; padding: 0.5em; background: $nav-background-color; color: $nav-text-color; text-decoration: none; position: relative; flex: 1; } &:hover { color: $nav-hover-text-color; background: $nav-hover-background-color; } // 2nd level ul { padding-top: 0.5em; margin-left: -1em; display: none !important; position: absolute; top: 2.5em; display: block; width: $nav-sub-nav-width; z-index: 2; li { position: relative; width: 100%; a { padding-left: 0.5em; color: $nav-text-color; background: $nav-background-color; } ul { z-index: 3; top: -0.5em; right: -$nav-sub-nav-width; width: $nav-sub-nav-width; li { a { padding-left: 0.5em; } } } } } &:hover>ul { display: block !important; } } } label { display: none; } } } } PK ! <