diff --git a/authoraffil/MS.pdf b/authoraffil/MS.pdf deleted file mode 100644 index 8896f1d..0000000 Binary files a/authoraffil/MS.pdf and /dev/null differ diff --git a/authoraffil/MS.tex b/authoraffil/MS.tex deleted file mode 100644 index 1a547bd..0000000 --- a/authoraffil/MS.tex +++ /dev/null @@ -1,280 +0,0 @@ -% Options for packages loaded elsewhere -% Options for packages loaded elsewhere -\PassOptionsToPackage{unicode}{hyperref} -\PassOptionsToPackage{hyphens}{url} -\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} -% -\documentclass[ - english, - 12pt, - letterpaper, - DIV=11, - numbers=noendperiod]{scrartcl} -\usepackage{xcolor} -\usepackage{amsmath,amssymb} -\setcounter{secnumdepth}{-\maxdimen} % remove section numbering -\usepackage{iftex} -\ifPDFTeX - \usepackage[T1]{fontenc} - \usepackage[utf8]{inputenc} - \usepackage{textcomp} % provide euro and other symbols -\else % if luatex or xetex - \usepackage{unicode-math} % this also loads fontspec - \defaultfontfeatures{Scale=MatchLowercase} - \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1} -\fi -\usepackage{lmodern} -\ifPDFTeX\else - % xetex/luatex font selection -\fi -% Use upquote if available, for straight quotes in verbatim environments -\IfFileExists{upquote.sty}{\usepackage{upquote}}{} -\IfFileExists{microtype.sty}{% use microtype if available - \usepackage[]{microtype} - \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts -}{} -\makeatletter -\@ifundefined{KOMAClassName}{% if non-KOMA class - \IfFileExists{parskip.sty}{% - \usepackage{parskip} - }{% else - \setlength{\parindent}{0pt} - \setlength{\parskip}{6pt plus 2pt minus 1pt}} -}{% if KOMA class - \KOMAoptions{parskip=half}} -\makeatother -% Make \paragraph and \subparagraph free-standing -\makeatletter -\ifx\paragraph\undefined\else - \let\oldparagraph\paragraph - \renewcommand{\paragraph}{ - \@ifstar - \xxxParagraphStar - \xxxParagraphNoStar - } - \newcommand{\xxxParagraphStar}[1]{\oldparagraph*{#1}\mbox{}} - \newcommand{\xxxParagraphNoStar}[1]{\oldparagraph{#1}\mbox{}} -\fi -\ifx\subparagraph\undefined\else - \let\oldsubparagraph\subparagraph - \renewcommand{\subparagraph}{ - \@ifstar - \xxxSubParagraphStar - \xxxSubParagraphNoStar - } - \newcommand{\xxxSubParagraphStar}[1]{\oldsubparagraph*{#1}\mbox{}} - \newcommand{\xxxSubParagraphNoStar}[1]{\oldsubparagraph{#1}\mbox{}} -\fi -\makeatother - - -\usepackage{longtable,booktabs,array} -\usepackage{calc} % for calculating minipage widths -% Correct order of tables after \paragraph or \subparagraph -\usepackage{etoolbox} -\makeatletter -\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{} -\makeatother -% Allow footnotes in longtable head/foot -\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} -\makesavenoteenv{longtable} -\usepackage{graphicx} -\makeatletter -\newsavebox\pandoc@box -\newcommand*\pandocbounded[1]{% scales image to fit in text height/width - \sbox\pandoc@box{#1}% - \Gscale@div\@tempa{\textheight}{\dimexpr\ht\pandoc@box+\dp\pandoc@box\relax}% - \Gscale@div\@tempb{\linewidth}{\wd\pandoc@box}% - \ifdim\@tempb\p@<\@tempa\p@\let\@tempa\@tempb\fi% select the smaller of both - \ifdim\@tempa\p@<\p@\scalebox{\@tempa}{\usebox\pandoc@box}% - \else\usebox{\pandoc@box}% - \fi% -} -% Set default figure placement to htbp -\def\fps@figure{htbp} -\makeatother - - - -\ifLuaTeX -\usepackage[bidi=basic]{babel} -\else -\usepackage[bidi=default]{babel} -\fi -% get rid of language-specific shorthands (see #6817): -\let\LanguageShortHands\languageshorthands -\def\languageshorthands#1{} -\ifLuaTeX - \usepackage[english]{selnolig} % disable illegal ligatures -\fi - - -\setlength{\emergencystretch}{3em} % prevent overfull lines - -\providecommand{\tightlist}{% - \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} - - - - - - -\KOMAoption{captions}{tableheading} -\makeatletter -\@ifpackageloaded{float}{}{\usepackage{float}} -\floatstyle{plain} -\@ifundefined{c@chapter}{\newfloat{sfg}{h}{lost}}{\newfloat{sfg}{h}{lost}[chapter]} -\floatname{sfg}{Supplementary Fig.} -\newcommand*\listofsfgs{\listof{sfg}{List of Supplementary Figures}} -\makeatother -\makeatletter -\@ifpackageloaded{float}{}{\usepackage{float}} -\floatstyle{plain} -\@ifundefined{c@chapter}{\newfloat{stb}{h}{lost}}{\newfloat{stb}{h}{lost}[chapter]} -\floatname{stb}{Supplementary Table} -\newcommand*\listofstbs{\listof{stb}{List of Supplementary Tables}} -\makeatother -\makeatletter -\@ifpackageloaded{float}{}{\usepackage{float}} -\floatstyle{plain} -\@ifundefined{c@chapter}{\newfloat{seq}{h}{lost}}{\newfloat{seq}{h}{lost}[chapter]} -\floatname{seq}{Supplementary Eq.} -\newcommand*\listofseqs{\listof{seq}{List of Supplementary Equations}} -\makeatother -\makeatletter -\@ifpackageloaded{float}{}{\usepackage{float}} -\floatstyle{plain} -\@ifundefined{c@chapter}{\newfloat{rfg}{h}{lost}}{\newfloat{rfg}{h}{lost}[chapter]} -\floatname{rfg}{Fig. R} -\newcommand*\quartorfgref[1]{Fig. \hyperref[#1]{R\ref{#1}}} -\@ifpackageloaded{caption}{}{\usepackage{caption}} -\DeclareCaptionLabelFormat{quartorfgreflabelformat}{#1#2} -\captionsetup[rfg]{labelformat=quartorfgreflabelformat} -\newcommand*\listofrfgs{\listof{rfg}{List of Revision Figures}} -\makeatother -\makeatletter -\@ifpackageloaded{float}{}{\usepackage{float}} -\floatstyle{plain} -\@ifundefined{c@chapter}{\newfloat{rtb}{h}{lost}}{\newfloat{rtb}{h}{lost}[chapter]} -\floatname{rtb}{Table R} -\newcommand*\quartortbref[1]{Table \hyperref[#1]{R\ref{#1}}} -\@ifpackageloaded{caption}{}{\usepackage{caption}} -\DeclareCaptionLabelFormat{quartortbreflabelformat}{#1#2} -\captionsetup[rtb]{labelformat=quartortbreflabelformat} -\newcommand*\listofrtbs{\listof{rtb}{List of Revision Tables}} -\makeatother -\makeatletter -\@ifpackageloaded{float}{}{\usepackage{float}} -\floatstyle{plain} -\@ifundefined{c@chapter}{\newfloat{req}{h}{lost}}{\newfloat{req}{h}{lost}[chapter]} -\floatname{req}{Eq R} -\newcommand*\quartoreqref[1]{Eq \hyperref[#1]{R\ref{#1}}} -\@ifpackageloaded{caption}{}{\usepackage{caption}} -\DeclareCaptionLabelFormat{quartoreqreflabelformat}{#1#2} -\captionsetup[req]{labelformat=quartoreqreflabelformat} -\newcommand*\listofreqs{\listof{req}{List of Revision Equations}} -\makeatother -\makeatletter -\@ifpackageloaded{caption}{}{\usepackage{caption}} -\AtBeginDocument{% -\ifdefined\contentsname - \renewcommand*\contentsname{Table of contents} -\else - \newcommand\contentsname{Table of contents} -\fi -\ifdefined\listfigurename - \renewcommand*\listfigurename{List of Figures} -\else - \newcommand\listfigurename{List of Figures} -\fi -\ifdefined\listtablename - \renewcommand*\listtablename{List of Tables} -\else - \newcommand\listtablename{List of Tables} -\fi -\ifdefined\figurename - \renewcommand*\figurename{Fig.} -\else - \newcommand\figurename{Fig.} -\fi -\ifdefined\tablename - \renewcommand*\tablename{Table} -\else - \newcommand\tablename{Table} -\fi -} -\@ifpackageloaded{float}{}{\usepackage{float}} -\floatstyle{ruled} -\@ifundefined{c@chapter}{\newfloat{codelisting}{h}{lop}}{\newfloat{codelisting}{h}{lop}[chapter]} -\floatname{codelisting}{Listing} -\newcommand*\listoflistings{\listof{codelisting}{List of Listings}} -\captionsetup{labelsep=colon} -\makeatother -\makeatletter -\makeatother -\makeatletter -\@ifpackageloaded{caption}{}{\usepackage{caption}} -\@ifpackageloaded{subcaption}{}{\usepackage{subcaption}} -\makeatother -\usepackage{bookmark} -\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available -\urlstyle{same} -\hypersetup{ - pdftitle={MANUSCRIPT TITLE}, - pdfauthor={, , and }, - pdflang={en}, - colorlinks=true, - linkcolor={blue}, - filecolor={Maroon}, - citecolor={Blue}, - urlcolor={Blue}, - pdfcreator={LaTeX via pandoc}} - - -\title{MANUSCRIPT TITLE} -\usepackage{etoolbox} -\makeatletter -\providecommand{\subtitle}[1]{% add subtitle to \maketitle - \apptocmd{\@title}{\par {\large #1 \par}}{}{} -} -\makeatother -\subtitle{Supplementary Information} -\author{Xxxxx Yyyy\textsuperscript{a,\#} \and Ming -Su\textsuperscript{a,b,\#,*} \and Min Yang\textsuperscript{a,b,*}} -\date{} -\begin{document} -\maketitle - - -\textsuperscript{\#} These authors contributed equally to this work. - -\textsuperscript{a} State Key Laboratory of Environmental Aquatic -Chemistry, Research Center for Eco-Environmental Sciences, Chinese -Academy of Sciences, Beijing 100085, China.\\ -\textsuperscript{b} University of Chinese Academy of Sciences, Beijing -100049, China. - -\textsuperscript{*} Corresponding to: -\href{mailto:mingsu@rcees.ac.cn}{Ming Su (mingsu@rcees.ac.cn)}, -\href{mailto:yangmin@rcees.ac.cn}{Min Yang (yangmin@rcees.ac.cn)} - -\newpage{} - -\section*{Abstract}\label{abstract} -\addcontentsline{toc}{section}{Abstract} - -\newpage{} - -\newpage{} - -\section*{References}\label{references} -\addcontentsline{toc}{section}{References} - -\phantomsection\label{refs} - -\newpage{} - - - - -\end{document} diff --git a/authoraffil/_extension.yaml b/authoraffil/_extension.yaml deleted file mode 100644 index e2823ac..0000000 --- a/authoraffil/_extension.yaml +++ /dev/null @@ -1,16 +0,0 @@ -title: Authors and affiliation formatting for quarto -authors: - - name: Ming Su - email: mingsu@rcees.ac.cn - orcid: 0000-0001-9821-1268 - url: https://drwater.net/team/ming-su/ - - name: Lorenz A. Kapsner - orcid: 0000-0003-1866-860X - - name: Albert Krewinkel - orcid: 0000-0002-9455-0796 - - name: Robert Winkler -version: 0.3.2 -quarto-required: ">=1.3.0" -contributes: - filters: - - authoraffil.lua diff --git a/authoraffil/_extension.yaml b/authoraffil/_extension.yaml new file mode 120000 index 0000000..c278a4b --- /dev/null +++ b/authoraffil/_extension.yaml @@ -0,0 +1 @@ +_extensions/drwater/authoraffil/_extension.yaml \ No newline at end of file diff --git a/authoraffil/authoraffil.lua b/authoraffil/authoraffil.lua deleted file mode 100644 index 43b2580..0000000 --- a/authoraffil/authoraffil.lua +++ /dev/null @@ -1,75 +0,0 @@ ---[[ -authors-block – affiliations block extension for quarto -Copyright (c) 2023 Lorenz A. Kapsner -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. -]] - -local List = require("pandoc.List") -local from_utils = require("utils") -local normalize_affiliations = from_utils.normalize_affiliations -local normalize_authors = from_utils.normalize_authors -local from_authors = require("from_author_info_blocks") -local default_marks = from_authors.default_marks -local create_equal_contributors_block = from_authors.create_equal_contributors_block -local create_affiliations_blocks = from_authors.create_affiliations_blocks -local create_correspondence_blocks = from_authors.create_correspondence_blocks -local is_corresponding_author = from_authors.is_corresponding_author -local author_inline_generator = from_authors.author_inline_generator -local create_authors_inlines = from_authors.create_authors_inlines - -function Pandoc(doc) - local meta = doc.meta - local body = List:new({}) - local mark = function(mark_name) - return default_marks[mark_name] - end - - -- Process CRediT roles - if meta.authors then - local credit_roles = List:new({}) - for i, author in ipairs(meta.authors) do - if author.role then - local roles = List:new({}) - for role, level in pairs(author.role) do - roles:insert(pandoc.Str(role .. ": " .. stringify(level))) - end - if #roles > 0 then - local author_name = stringify(author.name) - credit_roles:insert(pandoc.Para({ - pandoc.Str(author_name .. ": "), - pandoc.Str(table.concat(roles:map(stringify), ", ")), - })) - end - end - end - if #credit_roles > 0 then - body:insert(pandoc.Header(2, pandoc.Str("Author Contributions"))) - body:extend(credit_roles) - end - end - - body:extend(create_equal_contributors_block(meta.authors, mark) or {}) - body:extend(create_affiliations_blocks(meta.affiliations, meta) or {}) - body:extend(create_correspondence_blocks(meta.authors, mark) or {}) - body:extend(doc.blocks) - - for _i, author in ipairs(meta.authors) do - author.test = is_corresponding_author(author) - end - - meta.affiliations = normalize_affiliations(meta.affiliations or {}) - meta.author = meta.authors:map(normalize_authors(meta.affiliations)) - meta.author = pandoc.MetaInlines(create_authors_inlines(meta.author, mark, meta)) - meta.affiliations = nil - - return pandoc.Pandoc(body, meta) -end diff --git a/authoraffil/authoraffil.lua b/authoraffil/authoraffil.lua new file mode 120000 index 0000000..077ab61 --- /dev/null +++ b/authoraffil/authoraffil.lua @@ -0,0 +1 @@ +_extensions/drwater/authoraffil/authoraffil.lua \ No newline at end of file diff --git a/authoraffil/from_author_info_blocks.lua b/authoraffil/from_author_info_blocks.lua deleted file mode 100644 index e1216f1..0000000 --- a/authoraffil/from_author_info_blocks.lua +++ /dev/null @@ -1,297 +0,0 @@ ---[[ -affiliation-blocks – generate title components -Copyright © 2017–2021 Albert Krewinkel -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. -]] - -local from_utils = require("utils") -local has_key = from_utils.has_key -local List = require("pandoc.List") -local utils = require("pandoc.utils") -local stringify = utils.stringify - -local M = {} - -local default_marks = { - corresponding_author = FORMAT == "latex" and { pandoc.RawInline("latex", "*") } or { pandoc.Str("*") }, - equal_contributor = FORMAT == "latex" and { pandoc.RawInline("latex", "\\#") } or { pandoc.Str("#") }, -} - -local function get_orcid_mark(orcid_value) - if not orcid_value then - return {} - end - local orcid_str - if type(orcid_value) == "string" then - orcid_str = orcid_value - elseif type(orcid_value) == "table" then - if orcid_value.text then - orcid_str = orcid_value.text - elseif orcid_value[1] and orcid_value[1].text then - orcid_str = orcid_value[1].text - else - return {} - end - else - return {} - end - orcid_str = orcid_str:gsub("[%-%s]", "") - if FORMAT == "latex" then - return { pandoc.RawInline("latex", "\\orcidlink{" .. orcid_str .. "}") } - elseif FORMAT:match("docx") then - local orcid_url = "https://orcid.org/" .. orcid_str - return { - pandoc.Str(" "), - pandoc.Link("ID", orcid_url), - } - else - local orcid_url = "https://orcid.org/" .. orcid_str - return { pandoc.Link(pandoc.Str(""), orcid_url, "", { class = "orcid" }) } - end -end - -M.default_marks = default_marks - -local function is_equal_contributor(author) - if has_key(author, "attributes") then - return author.attributes["equal-contributor"] - end - return nil -end - -local function create_equal_contributors_block(authors, mark) - local has_equal_contribs = List:new(authors):find_if(is_equal_contributor) - if not has_equal_contribs then - return nil - end - local contributors = { - pandoc.Superscript(mark("equal_contributor")), - pandoc.Space(), - pandoc.Str("These authors contributed equally to this work."), - } - return List:new({ pandoc.Para(contributors) }) -end -M.create_equal_contributors_block = create_equal_contributors_block - -local function intercalate(lists, elem) - local result = List:new({}) - for i = 1, (#lists - 1) do - result:extend(lists[i]) - result:extend(elem) - end - if #lists > 0 then - result:extend(lists[#lists]) - end - return result -end - -local function is_corresponding_author(author) - if has_key(author, "attributes") then - if author.attributes["corresponding"] then - return author.email - end - end - return nil -end -M.is_corresponding_author = is_corresponding_author - -local function create_correspondence_blocks(authors, mark) - local corresponding_authors = List:new({}) - for _, author in ipairs(authors) do - if is_corresponding_author(author) then - local mailto = "mailto:" .. stringify(author.email) - local author_with_mail = List:new( - author.name.literal - .. List:new({ pandoc.Space(), pandoc.Str("(") }) - .. author.email - .. List:new({ pandoc.Str(")") }) - ) - local link = pandoc.Link(author_with_mail, mailto) - table.insert(corresponding_authors, { link }) - end - end - if #corresponding_authors == 0 then - return nil - end - local correspondence = List:new({ - pandoc.Superscript(mark("corresponding_author")), - pandoc.Space(), - pandoc.Str("Corresponding to:"), - pandoc.Space(), - }) - local sep = List:new({ pandoc.Str(","), pandoc.Space() }) - return { pandoc.Para(correspondence .. intercalate(corresponding_authors, sep)) } -end - -M.create_correspondence_blocks = create_correspondence_blocks - -local function author_inline_generator(get_mark, meta) - return function(author) - local author_marks = List:new({}) - if has_key(author, "orcid") then - author_marks[#author_marks + 1] = get_orcid_mark(author.orcid) - end - local affilstyle = meta and meta.affilstyle and stringify(meta.affilstyle) or "alphabeta" - for _, idx in ipairs(author.affiliations) do - local idx_num = tonumber(stringify(idx)) -- Convert MetaString/MetaInlines to number - if not idx_num then - error("Invalid affiliation index: " .. tostring(idx)) - end - local idx_str - if affilstyle == "number" then - idx_str = tostring(idx_num) - else - if idx_num > 26 then - error("Too many affiliations: only up to 26 (a-z) are supported") - end - idx_str = string.char(96 + idx_num) - end - author_marks[#author_marks + 1] = { pandoc.Str(idx_str) } - end - if has_key(author, "attributes") then - if author.attributes["equal-contributor"] then - author_marks[#author_marks + 1] = get_mark("equal_contributor") - end - end - if is_corresponding_author(author) then - author_marks[#author_marks + 1] = get_mark("corresponding_author") - end - if FORMAT:match("latex") then - author.name.literal[#author.name.literal + 1] = pandoc.Superscript(intercalate(author_marks, { pandoc.Str(",") })) - return author - else - local res = List.clone(author.name.literal) - res[#res + 1] = pandoc.Superscript(intercalate(author_marks, { pandoc.Str(",") })) - return res - end - end -end -M.author_inline_generator = author_inline_generator - -local function create_authors_inlines(authors, mark, meta) - local inlines_generator = author_inline_generator(mark, meta) - local inlines = List:new(authors):map(inlines_generator) - local and_str = List:new({ pandoc.Space(), pandoc.Str("and"), pandoc.Space() }) - local last_author = inlines[#inlines] - inlines[#inlines] = nil - local result = intercalate(inlines, { pandoc.Str(","), pandoc.Space() }) - if #authors > 1 then - if #authors == 2 then - result:extend(and_str) - else - result:extend(List:new({ pandoc.Str(",") }) .. and_str) - end - end - result:extend(last_author) - return result -end -M.create_authors_inlines = create_authors_inlines - -local function create_affiliations_blocks_alphabeta(affiliations, meta) - local affilstyle = meta and meta.affilstyle and stringify(meta.affilstyle) or "alphabeta" - local affil_lines = List:new(affiliations):map(function(affil, i) - if affilstyle == "number" then - num_inlines = pandoc.List:new({ - pandoc.Superscript(pandoc.Str(tostring(i))), - pandoc.Space(), - }) - else - num_inlines = pandoc.List:new({ - pandoc.Superscript(pandoc.Str(string.char(96 + i))), - pandoc.Space(), - }) - end - local name_inlines = type(affil.name) == "table" and affil.name or { pandoc.Str(tostring(affil.name)) } - local city_inlines = type(affil.city) == "table" and affil.city or { pandoc.Str(tostring(affil.city)) } - local postcode_inlines = type(affil["postal-code"]) == "table" and affil["postal-code"] - or { pandoc.Str(tostring(affil["postal-code"])) } - local country_inlines = type(affil.country) == "table" and affil.country - or { pandoc.Str(tostring(affil.country or affil["postal-code"])) } - return num_inlines - :extend(name_inlines) - :extend({ pandoc.Str(", ") }) - :extend(city_inlines) - :extend({ pandoc.Space() }) - :extend(postcode_inlines) - :extend({ pandoc.Str(", ") }) - :extend(country_inlines) - :extend({ pandoc.Str(".") }) - end) - local combined_inlines = pandoc.List:new() - for i, line in ipairs(affil_lines) do - combined_inlines:extend(line) - if i < #affil_lines then - combined_inlines:extend({ pandoc.LineBreak() }) - end - end - return { pandoc.Para(combined_inlines) } -end - -local function create_affiliations_blocks_number(affiliations, meta) - local affilstyle = meta and meta.affilstyle and stringify(meta.affilstyle) or "alphabeta" - local affil_lines = List:new(affiliations):map(function(affil, i) - local num_inlines = pandoc.List:new({ - pandoc.Superscript(pandoc.Str(tostring(i))), - pandoc.Space(), - }) - local name_inlines = type(affil.name) == "table" and affil.name or { pandoc.Str(tostring(affil.name)) } - local city_inlines = type(affil.city) == "table" and affil.city or { pandoc.Str(tostring(affil.city)) } - local postcode_inlines = type(affil["postal-code"]) == "table" and affil["postal-code"] - or { pandoc.Str(tostring(affil["postal-code"])) } - local country_inlines = type(affil.country) == "table" and affil.country - or { pandoc.Str(tostring(affil.country or affil["postal-code"])) } - return num_inlines - :extend(name_inlines) - :extend({ pandoc.Str(", ") }) - :extend(city_inlines) - :extend({ pandoc.Space() }) - :extend(postcode_inlines) - :extend({ pandoc.Str(", ") }) - :extend(country_inlines) - :extend({ pandoc.Str(".") }) - end) - local combined_inlines = pandoc.List:new() - for i, line in ipairs(affil_lines) do - combined_inlines:extend(line) - if i < #affil_lines then - combined_inlines:extend({ pandoc.LineBreak() }) - end - end - return { pandoc.Para(combined_inlines) } -end - -M.create_affiliations_blocks = create_affiliations_blocks_alphabeta - -function Meta(meta) - local affilstyle = meta and meta.affilstyle and stringify(meta.affilstyle) or "alphabeta" - M.create_affiliations_blocks = affilstyle == "number" and create_affiliations_blocks_number - or create_affiliations_blocks_alphabeta - if meta.authors then - meta.author = create_authors_inlines(meta.authors, M.default_marks, meta) - end - if meta.affiliations then - meta.institute = M.create_affiliations_blocks(meta.affiliations, meta) - end - if meta.authors then - local equal_contributors = create_equal_contributors_block(meta.authors, M.default_marks) - if equal_contributors then - meta["equal-contributors"] = equal_contributors - end - local correspondence = create_correspondence_blocks(meta.authors, M.default_marks) - if correspondence then - meta.correspondence = correspondence - end - end - return meta -end - -return M diff --git a/authoraffil/from_author_info_blocks.lua b/authoraffil/from_author_info_blocks.lua new file mode 120000 index 0000000..22c4f06 --- /dev/null +++ b/authoraffil/from_author_info_blocks.lua @@ -0,0 +1 @@ +_extensions/drwater/authoraffil/from_author_info_blocks.lua \ No newline at end of file diff --git a/authoraffil/from_scholarly_metadata.lua b/authoraffil/from_scholarly_metadata.lua deleted file mode 100644 index a9dcf5b..0000000 --- a/authoraffil/from_scholarly_metadata.lua +++ /dev/null @@ -1,51 +0,0 @@ ---[[ -ScholarlyMeta – normalize author/affiliation meta variables -Copyright (c) 2017-2021 Albert Krewinkel, Robert Winkler -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. -]] - -local List = require("pandoc.List") -local utils = require("pandoc.utils") -local stringify = utils.stringify - -local M = {} - -local function has_id(id) - return function(x) - return x.id == id - end -end - -local function resolve_institutes(institute, known_institutes) - local unresolved_institutes - if institute == nil then - unresolved_institutes = {} - elseif type(institute) == "string" or type(institute) == "number" then - unresolved_institutes = { institute } - else - unresolved_institutes = institute - end - local result = List:new({}) - for i, inst in ipairs(unresolved_institutes) do - local intermed_val = known_institutes:find_if(has_id(stringify(inst))) - if intermed_val then - result[i] = pandoc.MetaString(tostring(intermed_val.index)) - else - result[i] = pandoc.MetaString(tostring(inst)) - end - end - return result -end -M.resolve_institutes = resolve_institutes - -return M - diff --git a/authoraffil/from_scholarly_metadata.lua b/authoraffil/from_scholarly_metadata.lua new file mode 120000 index 0000000..1c57cab --- /dev/null +++ b/authoraffil/from_scholarly_metadata.lua @@ -0,0 +1 @@ +_extensions/drwater/authoraffil/from_scholarly_metadata.lua \ No newline at end of file diff --git a/authoraffil/MS.qmd b/authoraffil/template.qmd similarity index 99% rename from authoraffil/MS.qmd rename to authoraffil/template.qmd index 3feaaeb..3ec43f5 100644 --- a/authoraffil/MS.qmd +++ b/authoraffil/template.qmd @@ -72,7 +72,7 @@ format: pdf: fontsize: 12pt keep-md: false - keep-tex: true + keep-tex: false filters: # - latex-environment - authoraffil diff --git a/authoraffil/utils.lua b/authoraffil/utils.lua deleted file mode 100644 index 2f5df89..0000000 --- a/authoraffil/utils.lua +++ /dev/null @@ -1,49 +0,0 @@ ---[[ -authors-block – affiliations block extension for quarto -Copyright (c) 2023 Lorenz A. Kapsner -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. -]] - -local List = require("pandoc.List") -local utils = require("pandoc.utils") -local stringify = utils.stringify -local from_scholarly = require("from_scholarly_metadata") -local resolve_institutes = from_scholarly.resolve_institutes - -local M = {} - -local function normalize_affiliations(affiliations) - local affiliations_norm = List:new(affiliations or {}):map(function(affil, i) - affil.index = pandoc.MetaString(tostring(i)) - affil.id = pandoc.MetaString(stringify(affil.id or affil.name)) - return affil - end) - return affiliations_norm -end -M.normalize_affiliations = normalize_affiliations - -local function has_key(set, key) - return set[key] ~= nil -end -M.has_key = has_key - -local function normalize_authors(affiliations) - return function(auth) - auth.id = pandoc.MetaString(stringify(auth.name)) - auth.affiliations = resolve_institutes(auth.affiliations or {}, affiliations) - return auth - end -end -M.normalize_authors = normalize_authors - -return M - diff --git a/authoraffil/utils.lua b/authoraffil/utils.lua new file mode 120000 index 0000000..850a85b --- /dev/null +++ b/authoraffil/utils.lua @@ -0,0 +1 @@ +_extensions/drwater/authoraffil/utils.lua \ No newline at end of file diff --git a/dwbk/_extension.yml b/dwbk/_extension.yml deleted file mode 100644 index 9cd1a57..0000000 --- a/dwbk/_extension.yml +++ /dev/null @@ -1,47 +0,0 @@ -title: dwms-pdf-quarto -author: Ming Su -version: 0.0.1 -quarto-required: ">=1.3.0" -contributes: - formats: - common: - knitr: - opts_chunk: - echo: false - message: false - warning: false - pdf: - documentclass: ctexbook # 使用ctexbook文档类专门处理中文 - classoption: - - fntef - - UTF8 - # - scheme=plain # 标题样式方案 - - zihao=-4 # 正文字号小四 - papersize: a4 - geometry: [left=2.5cm, right=2.5cm, top=2.54cm, bottom=2.54cm] - linestretch: 1.25 - toc: true - toc-depth: 3 - number-sections: true - lang: zh-CN - fig-pos: "!t" - colorlinks: true - urlcolor: blue - sansfont: "Gill Sans" - sansfontoptions: - - Color=39729E - mainfont: "Source Sans 3" #| Verdana (fontsize: 11pt) # Source Sans 3 | Times New Roman| Helvetica | PT Sans - monofont: "JetBrains Mono" - mathfont: "Cambria Math" - # 确保中文标点符号正确处理 - CJKoptions: | - AutoFakeBold=true - block-headings: false - include-in-header: header.tex - template-partials: - - "partials/title.tex" - - "partials/before-body.tex" - - "partials/after-body.tex" -filters: - - latex-environment -lightbox: auto diff --git a/dwbk/_extension.yml b/dwbk/_extension.yml new file mode 120000 index 0000000..e4a7328 --- /dev/null +++ b/dwbk/_extension.yml @@ -0,0 +1 @@ +_extensions/drwater/dwbk/_extension.yml \ No newline at end of file diff --git a/dwbk/_extensions/drwater/dwbk/header.tex b/dwbk/_extensions/drwater/dwbk/header.tex index 76e0a53..c396528 100644 --- a/dwbk/_extensions/drwater/dwbk/header.tex +++ b/dwbk/_extensions/drwater/dwbk/header.tex @@ -101,7 +101,7 @@ % logo \AtPageLowerLeft{% start the bar at the bottom left of the page \put(0.5cm,27.2cm){% % 从左侧边缘向右移动0.75cm,垂直位置27.2cm - \color{light}\includegraphics[width=1.5cm]{_extensions/drwater/dwbk/rceeslogo.png} + \color{light}\includegraphics[width=1.5cm]{_extensions/drwater/dwbk/inst/rceeslogo.pdf} }% }% } diff --git a/dwbk/_extensions/drwater/dwbk/inst/rceeslogo.pdf b/dwbk/_extensions/drwater/dwbk/inst/rceeslogo.pdf new file mode 120000 index 0000000..226288a --- /dev/null +++ b/dwbk/_extensions/drwater/dwbk/inst/rceeslogo.pdf @@ -0,0 +1 @@ +../../../../../dwinst/rceeslogo.pdf \ No newline at end of file diff --git a/dwbk/_extensions/drwater/dwbk/inst/rceeslogo.svg b/dwbk/_extensions/drwater/dwbk/inst/rceeslogo.svg new file mode 120000 index 0000000..0c9e5cf --- /dev/null +++ b/dwbk/_extensions/drwater/dwbk/inst/rceeslogo.svg @@ -0,0 +1 @@ +../../../../../dwinst/rceeslogo.svg \ No newline at end of file diff --git a/dwbk/_extensions/drwater/dwbk/rceeslogo.pdf b/dwbk/_extensions/drwater/dwbk/rceeslogo.pdf deleted file mode 100644 index e46e81c..0000000 Binary files a/dwbk/_extensions/drwater/dwbk/rceeslogo.pdf and /dev/null differ diff --git a/dwbk/_extensions/drwater/dwbk/rceeslogo.png b/dwbk/_extensions/drwater/dwbk/rceeslogo.png deleted file mode 100644 index 624d264..0000000 Binary files a/dwbk/_extensions/drwater/dwbk/rceeslogo.png and /dev/null differ diff --git a/dwbk/header.tex b/dwbk/header.tex deleted file mode 100644 index a5ef6fd..0000000 --- a/dwbk/header.tex +++ /dev/null @@ -1,105 +0,0 @@ -% ----------------------- -% CUSTOM PREAMBLE STUFF -% ----------------------- -\usepackage{xeCJK} -\usepackage{enumitem} -\usepackage{fontspec} -\usepackage{float} -\usepackage[normalem]{ulem} -\usepackage{hyperref} -\usepackage{nameref} %needed by zref-xr -\usepackage{xr-hyper} -\usepackage[normalem]{ulem} -\usepackage{setspace} -\usepackage{lineno} -\usepackage{caption} -\captionsetup{singlelinecheck=off} -\usepackage[UTF8, scheme=plain]{ctex} -\usepackage{orcidlink} -\usepackage{eso-pic} - -\usepackage{ctexcap} % 中文标题处理 -\usepackage[perpage]{footmisc} % 脚注每页重置 -\setlength{\parindent}{2em} % 中文段落缩进2字符 - -\setCJKmainfont[AutoFakeBold=true]{SimHei} -\setCJKsansfont[AutoFakeBold]{Microsoft YaHei} -% \setCJKmonofont[AutoFakeBold]{KaiTi} - - - -% ----------------- -% Title block stuff -% ----------------- - -% Title -\makeatletter -\renewcommand{\title}[1]{\gdef\@title{\Huge\textbf{#1}}} % Adjust \Huge or other font commands -\makeatother - - -% ------------------ -% Section headings -% ------------------ -\usepackage{titlesec} -\titleformat*{\section}{\Large\sffamily\bfseries\raggedright} -\titleformat*{\subsection}{\large\sffamily\bfseries\raggedright} -\titleformat*{\subsubsection}{\normalsize\sffamily\bfseries\raggedright} -\titleformat*{\paragraph}{\small\sffamily\bfseries\raggedright} - -%\titlespacing{}{}{}{} -% Starred version removes indentation in following paragraph -\titlespacing*{\section}{0em}{2em}{0.1em} -\titlespacing*{\subsection}{0em}{1.25em}{0.1em} -\titlespacing*{\subsubsection}{0em}{0.75em}{0em} - -% ------------------ -% Headers/Footers -% ------------------ -\usepackage{fancyhdr} -\pagestyle{fancy} - -\fancyhf{} -\fancyhead[L,C,R]{} -\fancyfoot[L,C]{} -\fancyfoot[R]{\thepage} - \fancyfootoffset{3.5cm} -\renewcommand{\headrulewidth}{1pt} -\fancypagestyle{plain}{% - \renewcommand{\headrulewidth}{0pt}% - \fancyhf{}% - \fancyfoot[R]{\thepage}% -} -\renewcommand\footnoterule{\rule{\linewidth}{0.1pt}\vspace{5pt}} - -% ------------------ -% Captions -% ------------------ -\usepackage[labelfont=bf,labelsep=period]{caption} -\captionsetup[figure]{font=footnotesize,justification=raggedright,singlelinecheck=false,format=hang} - - -% --------------------------- -% END CUSTOM PREAMBLE STUFF -% --------------------------- -% -% -%% Let's define some colours -\definecolor{light}{HTML}{ECF1EC} -\definecolor{highlight}{HTML}{800080} -\definecolor{dark}{HTML}{330033} - -%% Let's add the border on the left hand side -\AddToShipoutPicture{% - \AtPageLowerLeft{% - \put(0,0){% % 从页面左下角(0,0)开始 - \color{light}\rule{2.4cm}{\LenToUnit\paperheight}% % 左侧3cm宽的边框 - }% - }% - % logo - \AtPageLowerLeft{% start the bar at the bottom left of the page - \put(0.5cm,27.2cm){% % 从左侧边缘向右移动0.75cm,垂直位置27.2cm - \color{light}\includegraphics[width=1.5cm]{_extensions/drwater/dwbk/rceeslogo.png} - }% - }% -} diff --git a/dwbk/header.tex b/dwbk/header.tex new file mode 120000 index 0000000..c8ec64b --- /dev/null +++ b/dwbk/header.tex @@ -0,0 +1 @@ +_extensions/drwater/dwbk/header.tex \ No newline at end of file diff --git a/dwbk/inst b/dwbk/inst new file mode 120000 index 0000000..25f1a20 --- /dev/null +++ b/dwbk/inst @@ -0,0 +1 @@ +_extensions/drwater/dwbk/inst \ No newline at end of file diff --git a/dwbk/partials b/dwbk/partials new file mode 120000 index 0000000..e13ea67 --- /dev/null +++ b/dwbk/partials @@ -0,0 +1 @@ +_extensions/drwater/dwbk/partials \ No newline at end of file diff --git a/dwbk/rceeslogo.pdf b/dwbk/rceeslogo.pdf deleted file mode 100644 index e46e81c..0000000 Binary files a/dwbk/rceeslogo.pdf and /dev/null differ diff --git a/dwbk/rceeslogo.png b/dwbk/rceeslogo.png deleted file mode 100644 index 624d264..0000000 Binary files a/dwbk/rceeslogo.png and /dev/null differ diff --git a/dwbk/rceeslogo.svg b/dwbk/rceeslogo.svg deleted file mode 100644 index 44431ff..0000000 --- a/dwbk/rceeslogo.svg +++ /dev/null @@ -1,5 +0,0 @@ - - viewBox="0 0 621 690"> - - - diff --git a/dwbken/.gitignore b/dwbken/.gitignore deleted file mode 100644 index eec3ab1..0000000 --- a/dwbken/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -.Rproj.user -.Rhistory -.RData -.Ruserdata -site_libs/ -/.quarto/ -site_libs/ -BB/Ref.bib -_variables.yml -_freeze/ -www/ -.source_state diff --git a/dwbken/_extension.yml b/dwbken/_extension.yml deleted file mode 100644 index 2e9d84c..0000000 --- a/dwbken/_extension.yml +++ /dev/null @@ -1,15 +0,0 @@ -title: PrettyPDF -author: Nicola Rennie -version: 0.0.5 -contributes: - formats: - pdf: - documentclass: scrbook - include-in-header: - - "header.tex" - include-before-body: - - "partials/before-body.tex" - toc: false - code-block-bg: light - linkcolor: highlight - urlcolor: highlight diff --git a/dwbken/_extensions/drwater/dwbken/_extension.yml b/dwbken/_extensions/drwater/dwbken/_extension.yml deleted file mode 100644 index 2e9d84c..0000000 --- a/dwbken/_extensions/drwater/dwbken/_extension.yml +++ /dev/null @@ -1,15 +0,0 @@ -title: PrettyPDF -author: Nicola Rennie -version: 0.0.5 -contributes: - formats: - pdf: - documentclass: scrbook - include-in-header: - - "header.tex" - include-before-body: - - "partials/before-body.tex" - toc: false - code-block-bg: light - linkcolor: highlight - urlcolor: highlight diff --git a/dwbken/_extensions/drwater/dwbken/header.tex b/dwbken/_extensions/drwater/dwbken/header.tex deleted file mode 100644 index cef7bcb..0000000 --- a/dwbken/_extensions/drwater/dwbken/header.tex +++ /dev/null @@ -1,69 +0,0 @@ -\usepackage{geometry} -\usepackage{xcolor} -\usepackage{eso-pic} -\usepackage{fancyhdr} -\usepackage{tikz} -\usepackage{fontspec} -\usepackage{microtype} -\usepackage{etoolbox} - -% 修复spacefactor问题的关键补丁 -\makeatletter -\patchcmd{\@makechapterhead} - {\vspace\@tempskipa} - {\vspace\@tempskipa\par\nobreak} - {}{} -\makeatother - -% 页面布局设置 -\geometry{ - left=30mm, - right=30mm, - top=25mm, - bottom=25mm, - headheight=15pt -} - -% 颜色定义 -\definecolor{light}{HTML}{ECF1EC} -\definecolor{highlight}{HTML}{800080} -\definecolor{dark}{HTML}{330033} -\definecolor{coverbg}{HTML}{F0F0F0} - -% 安全的封面设计 -\renewcommand{\maketitle}{% - \begin{titlepage} - \AddToShipoutPictureBG*{% - \AtPageLowerLeft{% - \begin{tikzpicture}[remember picture, overlay] - \fill[color=coverbg] (0,0) rectangle (\paperwidth,\paperheight); - \node[anchor=north east, xshift=-15mm, yshift=-15mm] - at (current page.north east) - {\includegraphics[width=8cm]{logo.png}}; - \end{tikzpicture} - } - } - \vspace*{3cm} - \begin{center} - {\fontsize{28}{36}\selectfont\bfseries\color{dark}\@title}\\[2cm] - {\LARGE\@subtitle}\\[3cm] - {\Large\@author}\\[2cm] - {\large\@date} - \end{center} - \end{titlepage} -} - -% 页眉页脚设置 -\fancypagestyle{mainstyle}{% - \fancyhf{} - \fancyhead[RE]{\normalfont\small\leftmark} - \fancyhead[LO]{\normalfont\small\rightmark} - \fancyfoot[C]{\thepage} - \renewcommand{\headrulewidth}{0.4pt} -} - -% 应用样式 -\pagestyle{mainstyle} -\addtokomafont{chapter}{\color{dark}\Huge\bfseries} -\addtokomafont{section}{\color{dark}\Large\bfseries} -\addtokomafont{subsection}{\color{dark}\large\bfseries} diff --git a/dwbken/_extensions/drwater/dwbken/logo.png b/dwbken/_extensions/drwater/dwbken/logo.png deleted file mode 100755 index f8cf1d5..0000000 Binary files a/dwbken/_extensions/drwater/dwbken/logo.png and /dev/null differ diff --git a/dwbken/_extensions/drwater/dwbken/partials/before-body.tex b/dwbken/_extensions/drwater/dwbken/partials/before-body.tex deleted file mode 100644 index 1a6c5f1..0000000 --- a/dwbken/_extensions/drwater/dwbken/partials/before-body.tex +++ /dev/null @@ -1 +0,0 @@ -\pagestyle{mystyle} \ No newline at end of file diff --git a/dwbken/a.aux b/dwbken/a.aux deleted file mode 100644 index eab230c..0000000 --- a/dwbken/a.aux +++ /dev/null @@ -1,14 +0,0 @@ -\relax -\providecommand*\new@tpo@label[2]{} -\@writefile{toc}{\contentsline {section}{\numberline {0.1}Zbirka vaj fizike za studente gradbenistva}{3}{}\protected@file@percent } -\newlabel{sec:zbirka-vaj-fizike}{{0.1}{3}{Zbirka vaj fizike za studente gradbenistva}{section.0.1}{}} -\newlabel{k-umm}{{0.1}{3}{Zbirka vaj fizike za studente gradbenistva}{equation.0.1}{}} -\newlabel{k-uamm1}{{0.2}{3}{Zbirka vaj fizike za studente gradbenistva}{equation.0.2}{}} -\newlabel{k-uamm2}{{0.3}{3}{Zbirka vaj fizike za studente gradbenistva}{equation.0.3}{}} -\newlabel{k-uamm3}{{0.4}{3}{Zbirka vaj fizike za studente gradbenistva}{equation.0.4}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Poševni met}}{3}{}\protected@file@percent } -\newlabel{k-prsx}{{0.5}{4}{Zbirka vaj fizike za studente gradbenistva}{equation.0.5}{}} -\newlabel{k-prsy}{{0.6}{4}{Zbirka vaj fizike za studente gradbenistva}{equation.0.6}{}} -\newlabel{k-prvx}{{0.7}{4}{Zbirka vaj fizike za studente gradbenistva}{equation.0.7}{}} -\newlabel{k-prvy}{{0.8}{4}{Zbirka vaj fizike za studente gradbenistva}{equation.0.8}{}} -\gdef \@abspage@last{2} diff --git a/dwbken/a.pdf b/dwbken/a.pdf deleted file mode 100644 index 57368ff..0000000 Binary files a/dwbken/a.pdf and /dev/null differ diff --git a/dwbken/a.tex b/dwbken/a.tex deleted file mode 100644 index dac1461..0000000 --- a/dwbken/a.tex +++ /dev/null @@ -1,81 +0,0 @@ -\documentclass[12pt,parskip=half, DIV=calc, BCOR=10mm, x11names]{scrbook} -\usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage{lmodern, libertine} -\usepackage{amsmath, xcolor, tcolorbox, empheq} -\usepackage[ilines, headsepline]{scrpage2} -\setheadwidth[0pt]{textwithmarginpar} - -%\input{slike_1} % TikZ pictures -\clearscrheadfoot -\ihead{\headmark} -\ohead{\pagemark} - -\setcounter{page}{3} - -\addtokomafont{pagenumber}{\bfseries\Large\color{LightBlue4}} -\addtokomafont{pagehead}{\color{LightBlue4}} - -\renewcommand{\textit}[1]{\textcolor{LightBlue4}{\emph{#1}}} -%\tcbuselibrary{skins,breakable} -\tcbuselibrary{theorems} -\tcbset{colback=blue!60!green!10!white, - colframe=LightBlue4!50!black, ams nodisplayskip} - - - -\begin{document} - -\pagestyle{scrheadings} - -\section{Zbirka vaj fizike za studente gradbenistva} -\label{sec:zbirka-vaj-fizike} - - -\textit{Enakomerno večdimenzionalno gibanje} označuje gibanje, pri katerem je vektor hitrosti konstanten. Gibanje tem primeru opisuje enačba, ki je posplošitev enačbe~(...) -% - -\begin{equation} - \tcboxmath{\vec{r} = \vec{v} t + \vec{r}_0,\label{k-umm}} - \end{equation} - - -% -kjer $\vec{r}$ označuje trenutni, $\vec{r}_0$ pa začetni položaj telesa. Vektorju $\text{r}$, ki označuje položaj telesa, pravimo tudi \textit{krajevni vektor}. - -\textit{Enakomerno pospešeno večdimenzionalno gibanje} označuje gibanje, pri katerem je vektor pospeška~$\vec{a}$ konstanten. Gibanje v tem primeru opisujejo enačbe, ki so posplošitve enačb~(...) -% - -\begin{empheq}[box={\tcbhighmath[colback=blue!60!green!10!white, - colframe=LightBlue4!50!black]}]{align} - \vec{r} &= \tfrac{1}{2} \vec{a} t^2 + \vec{v}_0 t + \vec{r}_0\label{k-uamm1}\\ - \vec{v} &= \vec{a} t + \vec{v}_0 \label{k-uamm2}\\ - v^2 &= v_0^2 + 2 \vec{a} \cdot (\vec{r} - \vec{r}_0) \label{k-uamm3} -\end{empheq} - - -% -kjer so $\vec{r}$ trenutni in $\vec{r}_0$ začetni krajevni vektor telesa, ter $\vec{v}$ trenutni in $\vec{v}_0$ začetni vektor hitrosti telesa. Pri tem je tretja enačba izpeljana iz prvih dveh. - -\begin{figure}[!ht] -\centering -%\Tpro -\caption{Poševni met} -\end{figure} - -Če se telo nahaja v bližini Zemeljske površine, nanj deluje konstantni pospešek prostega pada $g = 10$~m/s$^2$ navpično navzdol. Vsako tako gibanje telesa je dejansko \textit{dvo}-dimenzionalno, saj se telo giblje po navpični ravnini. Po dogovoru $y$~os usmerimo navpično navzgor, torej nasproti smeri pospeška prostega pada ($\vec{a} = - g \vec{j}$), $x$~os pa tako, da začetna hitrost leži v $xy$ ravnini $\vec{v}_0 = v_{x0} \vec{i} + v_{y0} \vec{j}$. Potem lahko vsako od enačb~(...) razstavimo na \textit{dve} skalarni enačbi in dobimo -% - -\begin{empheq}[box={\tcbhighmath[colback=blue!60!green!10!white, - colframe=LightBlue4!50!black]}]{align} - x(t) &= v_{x0} t + x_0, \label{k-prsx}\\ - y(t) &= -\tfrac{1}{2} g t^2 + v_{y0} t + y_0, \label{k-prsy}\\ - v_x(t) &= v_{x0}, \label{k-prvx}\\ - v_y(t) &= -g t + v_{y0}. \label{k-prvy} - \end{empheq} - - - -Pri tem smo upoštevali, da je pospešek v $x$~smeri enak $a_x = 0$, pospešek v $y$~smeri pa $a_y = -g$, kar pomeni, da imamo v $x$~smeri enakomerno gibanje, v $y$~smeri pa enakomerno pospešeno gibanje. - -\end{document} diff --git a/dwbken/a.toc b/dwbken/a.toc deleted file mode 100644 index 63a2037..0000000 --- a/dwbken/a.toc +++ /dev/null @@ -1,3 +0,0 @@ -\contentsline {chapter}{\numberline {1}引言}{1}{}% -\contentsline {section}{\numberline {1.1}研究背景}{1}{}% -\providecommand \tocbasic@end@toc@file {}\tocbasic@end@toc@file diff --git a/dwbken/header.tex b/dwbken/header.tex deleted file mode 100644 index e5e315c..0000000 --- a/dwbken/header.tex +++ /dev/null @@ -1,69 +0,0 @@ -\usepackage{geometry} -\usepackage{xcolor} -\usepackage{eso-pic} -\usepackage{fancyhdr} -\usepackage{tikz} -\usepackage{fontspec} -\usepackage{sectsty} -\usepackage{titlesec} - -% 设置页面布局 -\geometry{a4paper, - total={170mm,257mm}, - left=30mm, - top=25mm, - bottom=25mm, - right=30mm, - headheight=15pt} - -% 定义颜色 -\definecolor{light}{HTML}{ECF1EC} -\definecolor{highlight}{HTML}{800080} -\definecolor{dark}{HTML}{330033} -\definecolor{coverbg}{HTML}{F0F0F0} % 封面背景灰 - -% 封面设计 -\AddToShipoutPictureBG*{% 仅作用于封面 - \AtPageLowerLeft{ - \begin{tikzpicture}[remember picture, overlay] - \fill[color=coverbg] (0,0) rectangle (\paperwidth,\paperheight); - \node[anchor=north east] at (0.95\paperwidth,0.9\paperheight) - {\includegraphics[width=8cm]{logo.png}}; - \end{tikzpicture} - } -} - -% 正文页眉页脚 -\fancypagestyle{mainstyle}{ - \fancyhf{} - \fancyhead[RE]{\normalfont\small\leftmark} % 偶数页章标题 - \fancyhead[LO]{\normalfont\small\rightmark} % 奇数页节标题 - \fancyfoot[C]{\thepage} - \renewcommand{\headrulewidth}{0.4pt} - \renewcommand{\footrulewidth}{0pt} -} - -% 章节标题样式 -\addtokomafont{chapter}{\color{dark}\Huge\bfseries} -\addtokomafont{section}{\color{dark}\Large\bfseries} -\addtokomafont{subsection}{\color{dark}\large\bfseries} - -% 标题格式调整 -\RedeclareSectionCommand[ - beforeskip=-1sp, - afterskip=1sp -]{chapter} - -% 自定义标题页 -\renewcommand{\maketitle}{% - \begin{titlepage} - \ThisCenterWallPaper{1.0}{logo.png} % 封面背景图 - \vspace*{3cm} - \begin{center} - {\fontsize{28}{36}\selectfont\bfseries\color{dark} \@title}\\[2cm] - {\LARGE \@subtitle}\\[3cm] - {\Large \@author}\\[2cm] - {\large \@date} - \end{center} - \end{titlepage} -} diff --git a/dwbken/logo.png b/dwbken/logo.png deleted file mode 100755 index f8cf1d5..0000000 Binary files a/dwbken/logo.png and /dev/null differ diff --git a/dwbken/partials/before-body.tex b/dwbken/partials/before-body.tex deleted file mode 100644 index 1a6c5f1..0000000 --- a/dwbken/partials/before-body.tex +++ /dev/null @@ -1 +0,0 @@ -\pagestyle{mystyle} \ No newline at end of file diff --git a/dwbken/template.aux b/dwbken/template.aux deleted file mode 100644 index e704fc2..0000000 --- a/dwbken/template.aux +++ /dev/null @@ -1,4 +0,0 @@ -\relax -\providecommand*\new@tpo@label[2]{} -\providecommand\hyper@newdestlabel[2]{} -\providecommand*\HyPL@Entry[1]{} diff --git a/dwbken/template.qmd b/dwbken/template.qmd deleted file mode 100644 index 9ba14a7..0000000 --- a/dwbken/template.qmd +++ /dev/null @@ -1,27 +0,0 @@ ---- -title: "Pretty PDFs with Quarto" -author: Ming Su -format: - dwbken-pdf: default ---- - -# Quarto - -Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see . - -## Running Code - -When you click the **Render** button a document will be generated that includes both content and the output of embedded code. You can embed code like this: - -```{r} -1 + 1 -``` - -You can add options to executable code like this - -```{r} -#| echo: false -2 * 2 -``` - -The `echo: false` option disables the printing of code (only output is displayed). diff --git a/dwbken/template.tex b/dwbken/template.tex deleted file mode 100644 index accb39d..0000000 --- a/dwbken/template.tex +++ /dev/null @@ -1,329 +0,0 @@ -% Options for packages loaded elsewhere -% Options for packages loaded elsewhere -\PassOptionsToPackage{unicode}{hyperref} -\PassOptionsToPackage{hyphens}{url} -\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} -% -\documentclass[ -]{scrbook} -\usepackage{xcolor} -\usepackage{amsmath,amssymb} -\setcounter{secnumdepth}{5} -\usepackage{iftex} -\ifPDFTeX - \usepackage[T1]{fontenc} - \usepackage[utf8]{inputenc} - \usepackage{textcomp} % provide euro and other symbols -\else % if luatex or xetex - \usepackage{unicode-math} % this also loads fontspec - \defaultfontfeatures{Scale=MatchLowercase} - \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1} -\fi -\usepackage{lmodern} -\ifPDFTeX\else - % xetex/luatex font selection -\fi -% Use upquote if available, for straight quotes in verbatim environments -\IfFileExists{upquote.sty}{\usepackage{upquote}}{} -\IfFileExists{microtype.sty}{% use microtype if available - \usepackage[]{microtype} - \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts -}{} -\makeatletter -\@ifundefined{KOMAClassName}{% if non-KOMA class - \IfFileExists{parskip.sty}{% - \usepackage{parskip} - }{% else - \setlength{\parindent}{0pt} - \setlength{\parskip}{6pt plus 2pt minus 1pt}} -}{% if KOMA class - \KOMAoptions{parskip=half}} -\makeatother -% Make \paragraph and \subparagraph free-standing -\makeatletter -\ifx\paragraph\undefined\else - \let\oldparagraph\paragraph - \renewcommand{\paragraph}{ - \@ifstar - \xxxParagraphStar - \xxxParagraphNoStar - } - \newcommand{\xxxParagraphStar}[1]{\oldparagraph*{#1}\mbox{}} - \newcommand{\xxxParagraphNoStar}[1]{\oldparagraph{#1}\mbox{}} -\fi -\ifx\subparagraph\undefined\else - \let\oldsubparagraph\subparagraph - \renewcommand{\subparagraph}{ - \@ifstar - \xxxSubParagraphStar - \xxxSubParagraphNoStar - } - \newcommand{\xxxSubParagraphStar}[1]{\oldsubparagraph*{#1}\mbox{}} - \newcommand{\xxxSubParagraphNoStar}[1]{\oldsubparagraph{#1}\mbox{}} -\fi -\makeatother - -\usepackage{color} -\usepackage{fancyvrb} -\newcommand{\VerbBar}{|} -\newcommand{\VERB}{\Verb[commandchars=\\\{\}]} -\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}} -% Add ',fontsize=\small' for more characters per line -\usepackage{framed} -\definecolor{shadecolor}{RGB}{241,243,245} -\newenvironment{Shaded}{\begin{snugshade}}{\end{snugshade}} -\newcommand{\AlertTok}[1]{\textcolor[rgb]{0.68,0.00,0.00}{#1}} -\newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.37,0.37,0.37}{#1}} -\newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.40,0.45,0.13}{#1}} -\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.68,0.00,0.00}{#1}} -\newcommand{\BuiltInTok}[1]{\textcolor[rgb]{0.00,0.23,0.31}{#1}} -\newcommand{\CharTok}[1]{\textcolor[rgb]{0.13,0.47,0.30}{#1}} -\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.37,0.37,0.37}{#1}} -\newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.37,0.37,0.37}{\textit{#1}}} -\newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{#1}} -\newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.00,0.23,0.31}{\textbf{#1}}} -\newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.68,0.00,0.00}{#1}} -\newcommand{\DecValTok}[1]{\textcolor[rgb]{0.68,0.00,0.00}{#1}} -\newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.37,0.37,0.37}{\textit{#1}}} -\newcommand{\ErrorTok}[1]{\textcolor[rgb]{0.68,0.00,0.00}{#1}} -\newcommand{\ExtensionTok}[1]{\textcolor[rgb]{0.00,0.23,0.31}{#1}} -\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.68,0.00,0.00}{#1}} -\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.28,0.35,0.67}{#1}} -\newcommand{\ImportTok}[1]{\textcolor[rgb]{0.00,0.46,0.62}{#1}} -\newcommand{\InformationTok}[1]{\textcolor[rgb]{0.37,0.37,0.37}{#1}} -\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.00,0.23,0.31}{\textbf{#1}}} -\newcommand{\NormalTok}[1]{\textcolor[rgb]{0.00,0.23,0.31}{#1}} -\newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.37,0.37,0.37}{#1}} -\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.00,0.23,0.31}{#1}} -\newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.68,0.00,0.00}{#1}} -\newcommand{\RegionMarkerTok}[1]{\textcolor[rgb]{0.00,0.23,0.31}{#1}} -\newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.37,0.37,0.37}{#1}} -\newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.13,0.47,0.30}{#1}} -\newcommand{\StringTok}[1]{\textcolor[rgb]{0.13,0.47,0.30}{#1}} -\newcommand{\VariableTok}[1]{\textcolor[rgb]{0.07,0.07,0.07}{#1}} -\newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.13,0.47,0.30}{#1}} -\newcommand{\WarningTok}[1]{\textcolor[rgb]{0.37,0.37,0.37}{\textit{#1}}} - -\usepackage{longtable,booktabs,array} -\usepackage{calc} % for calculating minipage widths -% Correct order of tables after \paragraph or \subparagraph -\usepackage{etoolbox} -\makeatletter -\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{} -\makeatother -% Allow footnotes in longtable head/foot -\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} -\makesavenoteenv{longtable} -\usepackage{graphicx} -\makeatletter -\newsavebox\pandoc@box -\newcommand*\pandocbounded[1]{% scales image to fit in text height/width - \sbox\pandoc@box{#1}% - \Gscale@div\@tempa{\textheight}{\dimexpr\ht\pandoc@box+\dp\pandoc@box\relax}% - \Gscale@div\@tempb{\linewidth}{\wd\pandoc@box}% - \ifdim\@tempb\p@<\@tempa\p@\let\@tempa\@tempb\fi% select the smaller of both - \ifdim\@tempa\p@<\p@\scalebox{\@tempa}{\usebox\pandoc@box}% - \else\usebox{\pandoc@box}% - \fi% -} -% Set default figure placement to htbp -\def\fps@figure{htbp} -\makeatother - - - - - -\setlength{\emergencystretch}{3em} % prevent overfull lines - -\providecommand{\tightlist}{% - \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} - - - - - - -\usepackage{geometry} -\usepackage{xcolor} -\usepackage{eso-pic} -\usepackage{fancyhdr} -\usepackage{tikz} -\usepackage{fontspec} -\usepackage{microtype} -\usepackage{etoolbox} - -% 修复spacefactor问题的关键补丁 -\makeatletter -\patchcmd{\@makechapterhead} - {\vspace\@tempskipa} - {\vspace\@tempskipa\par\nobreak} - {}{} -\makeatother - -% 页面布局设置 -\geometry{ - left=30mm, - right=30mm, - top=25mm, - bottom=25mm, - headheight=15pt -} - -% 颜色定义 -\definecolor{light}{HTML}{ECF1EC} -\definecolor{highlight}{HTML}{800080} -\definecolor{dark}{HTML}{330033} -\definecolor{coverbg}{HTML}{F0F0F0} - -% 安全的封面设计 -\renewcommand{\maketitle}{% - \begin{titlepage} - \AddToShipoutPictureBG*{% - \AtPageLowerLeft{% - \begin{tikzpicture}[remember picture, overlay] - \fill[color=coverbg] (0,0) rectangle (\paperwidth,\paperheight); - \node[anchor=north east, xshift=-15mm, yshift=-15mm] - at (current page.north east) - {\includegraphics[width=8cm]{logo.png}}; - \end{tikzpicture} - } - } - \vspace*{3cm} - \begin{center} - {\fontsize{28}{36}\selectfont\bfseries\color{dark}\@title}\\[2cm] - {\LARGE\@subtitle}\\[3cm] - {\Large\@author}\\[2cm] - {\large\@date} - \end{center} - \end{titlepage} -} - -% 页眉页脚设置 -\fancypagestyle{mainstyle}{% - \fancyhf{} - \fancyhead[RE]{\normalfont\small\leftmark} - \fancyhead[LO]{\normalfont\small\rightmark} - \fancyfoot[C]{\thepage} - \renewcommand{\headrulewidth}{0.4pt} -} - -% 应用样式 -\pagestyle{mainstyle} -\addtokomafont{chapter}{\color{dark}\Huge\bfseries} -\addtokomafont{section}{\color{dark}\Large\bfseries} -\addtokomafont{subsection}{\color{dark}\large\bfseries} -\makeatletter -\@ifpackageloaded{caption}{}{\usepackage{caption}} -\AtBeginDocument{% -\ifdefined\contentsname - \renewcommand*\contentsname{Table of contents} -\else - \newcommand\contentsname{Table of contents} -\fi -\ifdefined\listfigurename - \renewcommand*\listfigurename{List of Figures} -\else - \newcommand\listfigurename{List of Figures} -\fi -\ifdefined\listtablename - \renewcommand*\listtablename{List of Tables} -\else - \newcommand\listtablename{List of Tables} -\fi -\ifdefined\figurename - \renewcommand*\figurename{Figure} -\else - \newcommand\figurename{Figure} -\fi -\ifdefined\tablename - \renewcommand*\tablename{Table} -\else - \newcommand\tablename{Table} -\fi -} -\@ifpackageloaded{float}{}{\usepackage{float}} -\floatstyle{ruled} -\@ifundefined{c@chapter}{\newfloat{codelisting}{h}{lop}}{\newfloat{codelisting}{h}{lop}[chapter]} -\floatname{codelisting}{Listing} -\newcommand*\listoflistings{\listof{codelisting}{List of Listings}} -\makeatother -\makeatletter -\makeatother -\makeatletter -\@ifpackageloaded{caption}{}{\usepackage{caption}} -\@ifpackageloaded{subcaption}{}{\usepackage{subcaption}} -\makeatother -\makeatletter -\@ifpackageloaded{tcolorbox}{}{\usepackage[skins,breakable]{tcolorbox}} -\makeatother -\makeatletter -\@ifundefined{shadecolor}{\definecolor{shadecolor}{rgb}{.97, .97, .97}}{} -\makeatother -\makeatletter -\@ifundefined{codebgcolor}{\definecolor{codebgcolor}{named}{light}}{} -\makeatother -\makeatletter -\ifdefined\Shaded\renewenvironment{Shaded}{\begin{tcolorbox}[frame hidden, sharp corners, boxrule=0pt, enhanced, colback={codebgcolor}, breakable]}{\end{tcolorbox}}\fi -\makeatother -\usepackage{bookmark} -\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available -\urlstyle{same} -\hypersetup{ - pdftitle={Pretty PDFs with Quarto}, - pdfauthor={Ming Su}, - colorlinks=true, - linkcolor={highlight}, - filecolor={Maroon}, - citecolor={Blue}, - urlcolor={highlight}, - pdfcreator={LaTeX via pandoc}} - - -\title{Pretty PDFs with Quarto} -\author{Ming Su} -\date{} -\begin{document} -\frontmatter -\maketitle - -\pagestyle{mystyle} - - -\mainmatter -\chapter{Quarto}\label{quarto} - -Quarto enables you to weave together content and executable code into a -finished document. To learn more about Quarto see -\url{https://quarto.org}. - -\section{Running Code}\label{running-code} - -When you click the \textbf{Render} button a document will be generated -that includes both content and the output of embedded code. You can -embed code like this: - -\begin{Shaded} -\begin{Highlighting}[] -\DecValTok{1} \SpecialCharTok{+} \DecValTok{1} -\end{Highlighting} -\end{Shaded} - -\begin{verbatim} -[1] 2 -\end{verbatim} - -You can add options to executable code like this - -\begin{verbatim} -[1] 4 -\end{verbatim} - -The \texttt{echo:\ false} option disables the printing of code (only -output is displayed). - - -\backmatter - - -\end{document} diff --git a/dwcl/_extension.yaml b/dwcl/_extension.yaml deleted file mode 100644 index b2feb44..0000000 --- a/dwcl/_extension.yaml +++ /dev/null @@ -1,17 +0,0 @@ -title: Academic Letter Template -authors: - - name: Ming Su - affiliation: drwater -version: 0.1.0 -quarto-required: ">=1.3.0" -resources: - - dwcl.tex -contributes: - formats: - html: - css: style.css - pdf: - latex_engine: xelatex - template: dwcl.tex - keep-tex: false - keep-md: false diff --git a/dwcl/_extension.yaml b/dwcl/_extension.yaml new file mode 120000 index 0000000..edba120 --- /dev/null +++ b/dwcl/_extension.yaml @@ -0,0 +1 @@ +_extensions/drwater/dwcl/_extension.yaml \ No newline at end of file diff --git a/dwcl/_extensions/drwater/dwcl/_extension.yaml b/dwcl/_extensions/drwater/dwcl/_extension.yaml index 3abb4c8..7a41393 100644 --- a/dwcl/_extensions/drwater/dwcl/_extension.yaml +++ b/dwcl/_extensions/drwater/dwcl/_extension.yaml @@ -6,11 +6,8 @@ version: 0.1.0 quarto-required: ">=1.3.0" resources: - dwcl.tex - - style.css contributes: formats: - html: - css: style.css pdf: latex_engine: xelatex template: dwcl.tex diff --git a/dwcl/_extensions/drwater/dwcl/inst/rceeslogo.pdf b/dwcl/_extensions/drwater/dwcl/inst/rceeslogo.pdf new file mode 120000 index 0000000..226288a --- /dev/null +++ b/dwcl/_extensions/drwater/dwcl/inst/rceeslogo.pdf @@ -0,0 +1 @@ +../../../../../dwinst/rceeslogo.pdf \ No newline at end of file diff --git a/dwcl/_extensions/drwater/dwcl/inst/rceeslogo.png b/dwcl/_extensions/drwater/dwcl/inst/rceeslogo.png deleted file mode 100755 index f8cf1d5..0000000 Binary files a/dwcl/_extensions/drwater/dwcl/inst/rceeslogo.png and /dev/null differ diff --git a/dwcl/_extensions/drwater/dwcl/inst/rceeslogo.svg b/dwcl/_extensions/drwater/dwcl/inst/rceeslogo.svg new file mode 120000 index 0000000..0c9e5cf --- /dev/null +++ b/dwcl/_extensions/drwater/dwcl/inst/rceeslogo.svg @@ -0,0 +1 @@ +../../../../../dwinst/rceeslogo.svg \ No newline at end of file diff --git a/dwcl/_extensions/drwater/dwcl/inst/rceeslonglogo.pdf b/dwcl/_extensions/drwater/dwcl/inst/rceeslonglogo.pdf new file mode 120000 index 0000000..354bffa --- /dev/null +++ b/dwcl/_extensions/drwater/dwcl/inst/rceeslonglogo.pdf @@ -0,0 +1 @@ +../../../../../dwinst/rceeslonglogo.pdf \ No newline at end of file diff --git a/dwcl/_extensions/drwater/dwcl/inst/rceeslonglogo.png b/dwcl/_extensions/drwater/dwcl/inst/rceeslonglogo.png deleted file mode 100755 index 5460fde..0000000 Binary files a/dwcl/_extensions/drwater/dwcl/inst/rceeslonglogo.png and /dev/null differ diff --git a/dwcl/_extensions/drwater/dwcl/inst/rceeslonglogo.svg b/dwcl/_extensions/drwater/dwcl/inst/rceeslonglogo.svg new file mode 120000 index 0000000..2af1ae2 --- /dev/null +++ b/dwcl/_extensions/drwater/dwcl/inst/rceeslonglogo.svg @@ -0,0 +1 @@ +../../../../../dwinst/rceeslonglogo.svg \ No newline at end of file diff --git a/dwcl/_extensions/drwater/dwcl/inst/signms.pdf b/dwcl/_extensions/drwater/dwcl/inst/signms.pdf new file mode 120000 index 0000000..350cf56 --- /dev/null +++ b/dwcl/_extensions/drwater/dwcl/inst/signms.pdf @@ -0,0 +1 @@ +../../../../../dwinst/signms.pdf \ No newline at end of file diff --git a/dwcl/_extensions/drwater/dwcl/inst/signms.png b/dwcl/_extensions/drwater/dwcl/inst/signms.png deleted file mode 100755 index ed103bc..0000000 Binary files a/dwcl/_extensions/drwater/dwcl/inst/signms.png and /dev/null differ diff --git a/dwcl/_extensions/drwater/dwcl/inst/signmy.pdf b/dwcl/_extensions/drwater/dwcl/inst/signmy.pdf new file mode 120000 index 0000000..2747f7d --- /dev/null +++ b/dwcl/_extensions/drwater/dwcl/inst/signmy.pdf @@ -0,0 +1 @@ +../../../../../dwinst/signmy.pdf \ No newline at end of file diff --git a/dwcl/_extensions/drwater/dwcl/inst/signmy.png b/dwcl/_extensions/drwater/dwcl/inst/signmy.png deleted file mode 100755 index 1d57677..0000000 Binary files a/dwcl/_extensions/drwater/dwcl/inst/signmy.png and /dev/null differ diff --git a/dwcl/_extensions/drwater/dwcl/style.css b/dwcl/_extensions/drwater/dwcl/style.css deleted file mode 100755 index 0bbdcff..0000000 --- a/dwcl/_extensions/drwater/dwcl/style.css +++ /dev/null @@ -1,109 +0,0 @@ -.udot { - text-decoration-line: underline; - text-decoration-color: rgb(50, 50, 50); - text-decoration-style: dashed; - text-decoration-thickness: 1px; -} - -.good { - background-color: forestgreen; - color: lightyellow; -} - -.bad { - background-color: orangered; - color: lightyellow; -} - -.del { - text-decoration-line: line-through; - text-decoration-color: rgb(222 13 13); - text-decoration-style: initial; - text-decoration-thickness: 1.5px; -} - - -.todo { - background-color: darkorange; - color: lightyellow; -} - -.com { - background-color: #0025ff; - font-weight: bold; - color: lightyellow; -} - -.add { - text-decoration-line: underline; - text-decoration-color: rgb(222 13 13); - background-color: violet; - text-decoration-style: initial; - text-decoration-thickness: 2px; -} - - -del { - text-decoration-line: line-through; - text-decoration-color: rgb(222 13 13); - text-decoration-style: initial; - text-decoration-thickness: 1.0px; -} - - -ins { - text-decoration-color: rgb(222 93 93); - background-color: violet; - text-decoration-style: initial; - text-decoration-thickness: 2px; -} - -.clab { - background-color: rgb(255, 245, 240); -} - -.rem { - background-color: darkorange; - color: lightyellow; - text-decoration-thickness: 2px; -} - - -#criticnav { - position: fixed; - z-index: 1100; - top: 0; - right: 0; - width: 120px; - border-bottom: solid 1px #ffffff; - margin: 0; - padding: 10; - background-color: rgb(143 38 38 / 95%); - color: #ffffff; - font-size: 12px; - font-family: "Helvetica Neue", helvetica, arial, sans-serif !important -} - -#criticnav ul { - list-style-type: none; - width: 90%; - margin: 0 auto; - padding: 0 -} - -#criticnav ul li { - display: block; - width: 100px; - min-width: 80px; - text-align: center; - padding: 5px 0 3px !important; - margin: 5px 2px !important; - line-height: 1em; - float: center; - text-transform: uppercase; - cursor: pointer; - border-radius: 20px; - border: 3px solid rgba(255,255,255,0); - color: #fff !important -} - diff --git a/dwcl/dwcl.tex b/dwcl/dwcl.tex deleted file mode 100755 index d35a19a..0000000 --- a/dwcl/dwcl.tex +++ /dev/null @@ -1,240 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Academic Letter LaTeX and RMarkdown Structure % -% Author: Pedro Henrique Pereira Braga % -% % -% License: % -% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/) % -% % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -% Set the font size (11pt, for now) and paper size (e.g. letterpaper, a4paper) -\documentclass[11pt, letterpaper]{letter} - -%---------------------------------------------------------------------- -% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS -%---------------------------------------------------------------------- - -\usepackage{graphicx} % Required for including pictures -\usepackage{fancyhdr} % Allows the use of fancy headers and footers - -\usepackage{microtype} % For typography improvement - -\usepackage{url} % Allows the use of hyperlinks -\urlstyle{same} % Allows hyperlink fonts to be the same as the mainfont -\usepackage[hidelinks]{hyperref} % Allows the use of hyperlinks and -% removes the blue boxes around the link - -\pagestyle{empty} % Removes headers and footers - -\usepackage{setspace} % Allows the use of double spacing in the letter body - -\setlength\parindent{1cm} % Paragraph indentation - -% Create a new command for the horizontal rule in the document which allows -% thickness specification -\makeatletter - \def\@texttop{} % force the address to start above -\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress - \thispagestyle{firstpage}% - {\raggedleft\@date\par}% - \else % home address - \thispagestyle{empty}% - {\raggedleft\begin{tabular}{l@{}}\ignorespaces - \fromaddress \\*[2\parskip]% - \@date \end{tabular}\par}% - \fi - %\vspace{2\parskip}% <-- Removed - %{\raggedright \toname \\ \toaddress \par}% <-- Removed - %\vspace{2\parskip}% <-- Removed - #1\par\nobreak} -\let\ps@empty\ps@plain -\let\ps@firstpage\ps@plain -\makeatother - -%-------------------------------------------------------------------------- -% FONTS -%-------------------------------------------------------------------------- - -\usepackage[T1]{fontenc} % Output font encoding for international characters -% \usepackage[utf8]{inputenc} % Required for inputting international characters -\usepackage[quiet]{fontspec} % Allows the use of fontspec -\setmainfont{Calibri} -% \usepackage{txfonts} % Allows the use of Lato fonts - - -%---------------------------------------------------------------------------- -% DOCUMENT MARGINS -%---------------------------------------------------------------------------- - -\usepackage{geometry} % Required for adjusting page dimensions - -\geometry{ - headheight = 0.7in, % Header height - top=1.5in, % Top margin - bottom=1.5cm, % Bottom margin - left=3cm, % Left margin - right=3cm, % Right margin - % showframe, % Uncomment to show how the type block is set on the page -} - -%----------------------------------------------------------------------------- -% AUTHOR AND RECIPIENTS NEW COMMANDS AND DETAILS STRUCTURE -%----------------------------------------------------------------------------- - -\newcommand{\authordetails}[1]{\renewcommand{\authordetails}{#1}} -\newcommand{\recipientdetails}[1]{\renewcommand{\recipientdetails}{#1}} - -%----------------------------------------------------------------------------- -% HEADER STRUCTURE -%----------------------------------------------------------------------------- - -\address{ - % Include the author's details on the right side of the page under the line - \raggedleft{ - \footnotesize{ % Use a smaller font size - $author$\\ % Author name - \authordetails\\ - \hspace{1mm} - } - } - \vspace{-0.05\textheight} % Move the date and letter content up -} - -%------------------------------------------------------------------------------ -% COMPOSE THE ENTIRE HEADER -%------------------------------------------------------------------------------ - -\renewcommand{\opening}[1]{ - {\fromaddress - \vspace{0.05\textheight}\\ % Print the sender's address here and add some whitespace to allow the printing of the date - \raggedleft{$date$} % Include the date, aligned to the right - \par % par - } - {\raggedright - \toname\\ - \toaddress - \par} % Print the recipient's name and adress - \vspace{0.25cm} % White vertical space after recipient's address - \noindent #1 % Following this, insert the opening info -} - -%------------------------------------------------------------------------------ -% SIGNATURE STRUCTURE -%------------------------------------------------------------------------------ -% The signature is a combination of the author's name, title and institution -\signature{$author$, on behalf of all authors\\ - Email: $from_email$} - -% I will later combine the option of inserting a signature within it - -\renewcommand{\closing}[1]{ - \vspace{2.5mm} % Some whitespace after the letter content and before the signature - \noindent % Stop paragraph indentation - % \hspace*{\longindentation} % Move the signature right to the value of \longindentation - \parbox{\indentedwidth}{ - \raggedright - #1 % Print the signature text - % \vskip 1.65cm % Whitespace between the closing text and author's name for a physical signature - \\\includegraphics[height=0.6in, keepaspectratio=true]{$from_sign$}\\ - \fromsig % Prints the value of \signature{}, i.e. author name and title - } -} - -%------------------------------------------------------------------------------- -% AUTHOR'S INFORMATION -%------------------------------------------------------------------------------- - -\authordetails{ - $from_position$\\ - $from_department$\\ % Sender's department/institution - $from_institution$\\ - $from_address$ % Sender's address - % $from_city$, $from_state_province$\\ % Sender's city, state or province, - % $from_postalcode$\\ % postal code - % $from_country$ -} - -%------------------------------------------------------------------------------ -% RECIPIENT'S INFORMATION -%------------------------------------------------------------------------------ - -\recipientdetails{ -$to_professional_title$ $to_name$\\ - $if(to_journal)$ -\textit{$to_journal$} -$endif$ -} - -%------------------------------------------------------------------------------ -% HEADER CONTENTS -%------------------------------------------------------------------------------ - -\fancypagestyle{firstpage}{ - \fancyhf{} - \fancyhead[L]{ - \includegraphics[height=0.6in, keepaspectratio=true]{$from_institution_logo$} - } - \fancyhead[R]{$author$\\ - \footnotesize{ - $from_email$\\ % Sender's email address - % $from_personal_website$ \\ % Sender's URL - $from_phone$ % Sender's phone number - } - } - } - -\fancypagestyle{plain}{ - \fancyhf{} - \fancyhead[L]{ - \includegraphics[height=0.6in, keepaspectratio=true]{$from_institution_logo$} - } - \fancyhead[R]{$author$\\ - \footnotesize{ - $from_email$\\ % Sender's email address - % $from_personal_website$ \\ % Sender's URL - $from_phone$ % Sender's phone number - } - } - } - -\fancypagestyle{empty}{ - \fancyhf{} - \fancyhead[L]{ - \includegraphics[height=0.6in, keepaspectratio=true]{$from_institution_logo$} - } - \fancyhead[R]{$author$\\ - \footnotesize{ - $from_email$\\ % Sender's email address - % $from_personal_website$ \\ % Sender's URL - $from_phone$ % Sender's phone number - } - } - } - -%------------------------------------------------------------------------------ -\pagestyle{plain} - -\begin{document} - -%------------------------------------------------------------------------------ -% TO ADDRESS -%------------------------------------------------------------------------------ - -\begin{letter}{\recipientdetails} - -%------------------------------------------------------------------------------ -% LETTER CONTENT -%------------------------------------------------------------------------------ - -\opening{$opening_greeting$} -% \begin{doublespacing} - -$body$ - -% \end{doublespacing} -\closing{$closing_greeting$} - -%------------------------------------------------------------------------------ - -\end{letter} -\end{document} diff --git a/dwcl/inst b/dwcl/inst new file mode 120000 index 0000000..650ba8b --- /dev/null +++ b/dwcl/inst @@ -0,0 +1 @@ +_extensions/drwater/dwcl/inst \ No newline at end of file diff --git a/dwcl/inst/rceeslogo.png b/dwcl/inst/rceeslogo.png deleted file mode 100755 index f8cf1d5..0000000 Binary files a/dwcl/inst/rceeslogo.png and /dev/null differ diff --git a/dwcl/inst/rceeslonglogo.png b/dwcl/inst/rceeslonglogo.png deleted file mode 100755 index 5460fde..0000000 Binary files a/dwcl/inst/rceeslonglogo.png and /dev/null differ diff --git a/dwcl/inst/signms.png b/dwcl/inst/signms.png deleted file mode 100755 index ed103bc..0000000 Binary files a/dwcl/inst/signms.png and /dev/null differ diff --git a/dwcl/inst/signmy.png b/dwcl/inst/signmy.png deleted file mode 100755 index 1d57677..0000000 Binary files a/dwcl/inst/signmy.png and /dev/null differ diff --git a/dwcl/style.css b/dwcl/style.css deleted file mode 100755 index 0bbdcff..0000000 --- a/dwcl/style.css +++ /dev/null @@ -1,109 +0,0 @@ -.udot { - text-decoration-line: underline; - text-decoration-color: rgb(50, 50, 50); - text-decoration-style: dashed; - text-decoration-thickness: 1px; -} - -.good { - background-color: forestgreen; - color: lightyellow; -} - -.bad { - background-color: orangered; - color: lightyellow; -} - -.del { - text-decoration-line: line-through; - text-decoration-color: rgb(222 13 13); - text-decoration-style: initial; - text-decoration-thickness: 1.5px; -} - - -.todo { - background-color: darkorange; - color: lightyellow; -} - -.com { - background-color: #0025ff; - font-weight: bold; - color: lightyellow; -} - -.add { - text-decoration-line: underline; - text-decoration-color: rgb(222 13 13); - background-color: violet; - text-decoration-style: initial; - text-decoration-thickness: 2px; -} - - -del { - text-decoration-line: line-through; - text-decoration-color: rgb(222 13 13); - text-decoration-style: initial; - text-decoration-thickness: 1.0px; -} - - -ins { - text-decoration-color: rgb(222 93 93); - background-color: violet; - text-decoration-style: initial; - text-decoration-thickness: 2px; -} - -.clab { - background-color: rgb(255, 245, 240); -} - -.rem { - background-color: darkorange; - color: lightyellow; - text-decoration-thickness: 2px; -} - - -#criticnav { - position: fixed; - z-index: 1100; - top: 0; - right: 0; - width: 120px; - border-bottom: solid 1px #ffffff; - margin: 0; - padding: 10; - background-color: rgb(143 38 38 / 95%); - color: #ffffff; - font-size: 12px; - font-family: "Helvetica Neue", helvetica, arial, sans-serif !important -} - -#criticnav ul { - list-style-type: none; - width: 90%; - margin: 0 auto; - padding: 0 -} - -#criticnav ul li { - display: block; - width: 100px; - min-width: 80px; - text-align: center; - padding: 5px 0 3px !important; - margin: 5px 2px !important; - line-height: 1em; - float: center; - text-transform: uppercase; - cursor: pointer; - border-radius: 20px; - border: 3px solid rgba(255,255,255,0); - color: #fff !important -} - diff --git a/dwen/.gitignore b/dwen/.gitignore deleted file mode 100644 index eec3ab1..0000000 --- a/dwen/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -.Rproj.user -.Rhistory -.RData -.Ruserdata -site_libs/ -/.quarto/ -site_libs/ -BB/Ref.bib -_variables.yml -_freeze/ -www/ -.source_state diff --git a/dwen/_extension.yml b/dwen/_extension.yml deleted file mode 100644 index 1e5a4f7..0000000 --- a/dwen/_extension.yml +++ /dev/null @@ -1,15 +0,0 @@ -title: PrettyPDF -author: Nicola Rennie -version: 0.0.5 -contributes: - formats: - pdf: - documentclass: scrartcl - include-in-header: - - "header.tex" - include-before-body: - - "partials/before-body.tex" - toc: false - code-block-bg: light - linkcolor: highlight - urlcolor: highlight diff --git a/dwen/_extensions/drwater/dwen/_extension.yml b/dwen/_extensions/drwater/dwen/_extension.yml deleted file mode 100644 index 1e5a4f7..0000000 --- a/dwen/_extensions/drwater/dwen/_extension.yml +++ /dev/null @@ -1,15 +0,0 @@ -title: PrettyPDF -author: Nicola Rennie -version: 0.0.5 -contributes: - formats: - pdf: - documentclass: scrartcl - include-in-header: - - "header.tex" - include-before-body: - - "partials/before-body.tex" - toc: false - code-block-bg: light - linkcolor: highlight - urlcolor: highlight diff --git a/dwen/_extensions/drwater/dwen/header.tex b/dwen/_extensions/drwater/dwen/header.tex deleted file mode 100644 index 4a32d20..0000000 --- a/dwen/_extensions/drwater/dwen/header.tex +++ /dev/null @@ -1,59 +0,0 @@ -% load packages -\usepackage{geometry} -\usepackage{xcolor} -\usepackage{eso-pic} -\usepackage{fancyhdr} -\usepackage{sectsty} -\usepackage{fontspec} -\usepackage{titlesec} - -%% Set page size with a wider right margin -\geometry{a4paper, total={170mm,257mm}, left=20mm, top=20mm, bottom=20mm, right=50mm} - -%% Let's define some colours -\definecolor{light}{HTML}{ECF1EC} -\definecolor{highlight}{HTML}{800080} -\definecolor{dark}{HTML}{330033} - -\AddToShipoutPicture{% - % Add right sidebar - \AtPageLowerLeft{% - \put(\LenToUnit{\dimexpr\paperwidth-3cm},0){% - \color{light}\rule{3cm}{\paperheight}% - }% - }% - % Add logo - \AtPageLowerLeft{% - \put(\LenToUnit{\dimexpr\paperwidth-2.25cm},\LenToUnit{27.2cm}){% - \includegraphics[width=1.5cm]{_extensions/drwater/dwen/rceeslogo.png} - }% - }% -} - -%% Style the page number -\fancypagestyle{mystyle}{ - \fancyhf{} - \renewcommand\headrulewidth{0pt} - \fancyfoot[R]{\thepage} - \fancyfootoffset{3.5cm} -} -\setlength{\footskip}{20pt} - -%% style the chapter/section fonts -\chapterfont{\color{dark}\fontsize{20}{16.8}\selectfont} -\sectionfont{\color{dark}\fontsize{20}{16.8}\selectfont} -\subsectionfont{\color{dark}\fontsize{14}{16.8}\selectfont} -\titleformat{\subsection} - {\sffamily\Large\bfseries}{\thesection}{1em}{}[{\titlerule[0.8pt]}] - -% left align title -\makeatletter -\renewcommand{\maketitle}{\bgroup\setlength{\parindent}{0pt} -\begin{flushleft} - {\sffamily\huge\textbf{\MakeUppercase{\@title}}} \vspace{0.3cm} \newline - {\Large {\@subtitle}} \newline - \@author -\end{flushleft}\egroup -} -\makeatother - diff --git a/dwen/_extensions/drwater/dwen/partials/before-body.tex b/dwen/_extensions/drwater/dwen/partials/before-body.tex deleted file mode 100644 index 1a6c5f1..0000000 --- a/dwen/_extensions/drwater/dwen/partials/before-body.tex +++ /dev/null @@ -1 +0,0 @@ -\pagestyle{mystyle} \ No newline at end of file diff --git a/dwen/_extensions/drwater/dwen/rceeslogo.pdf b/dwen/_extensions/drwater/dwen/rceeslogo.pdf deleted file mode 100644 index e46e81c..0000000 Binary files a/dwen/_extensions/drwater/dwen/rceeslogo.pdf and /dev/null differ diff --git a/dwen/_extensions/drwater/dwen/rceeslogo.png b/dwen/_extensions/drwater/dwen/rceeslogo.png deleted file mode 100644 index 624d264..0000000 Binary files a/dwen/_extensions/drwater/dwen/rceeslogo.png and /dev/null differ diff --git a/dwen/_extensions/drwater/dwen/rceeslogo.svg b/dwen/_extensions/drwater/dwen/rceeslogo.svg deleted file mode 100644 index 44431ff..0000000 --- a/dwen/_extensions/drwater/dwen/rceeslogo.svg +++ /dev/null @@ -1,5 +0,0 @@ - - viewBox="0 0 621 690"> - - - diff --git a/dwen/header.tex b/dwen/header.tex deleted file mode 100644 index f879e69..0000000 --- a/dwen/header.tex +++ /dev/null @@ -1,59 +0,0 @@ -% load packages -\usepackage{geometry} -\usepackage{xcolor} -\usepackage{eso-pic} -\usepackage{fancyhdr} -\usepackage{sectsty} -\usepackage{fontspec} -\usepackage{titlesec} - -%% Set page size with a wider right margin -\geometry{a4paper, total={170mm,257mm}, left=20mm, top=20mm, bottom=20mm, right=50mm} - -%% Let's define some colours -\definecolor{light}{HTML}{ECF1EC} -\definecolor{highlight}{HTML}{800080} -\definecolor{dark}{HTML}{330033} - -\AddToShipoutPicture{% - % Add right sidebar - \AtPageLowerLeft{% - \put(\LenToUnit{\dimexpr\paperwidth-3cm},0){% - \color{light}\rule{3cm}{\paperheight}% - }% - }% - % Add logo - \AtPageLowerLeft{% - \put(\LenToUnit{\dimexpr\paperwidth-2.25cm},\LenToUnit{27.2cm}){% - \includegraphics[width=1.5cm,bb=0 0 100 100]{_extensions/drwater/dwen/rceeslogo.svg} - }% - }% -} - -%% Style the page number -\fancypagestyle{mystyle}{ - \fancyhf{} - \renewcommand\headrulewidth{0pt} - \fancyfoot[R]{\thepage} - \fancyfootoffset{3.5cm} -} -\setlength{\footskip}{20pt} - -%% style the chapter/section fonts -\chapterfont{\color{dark}\fontsize{20}{16.8}\selectfont} -\sectionfont{\color{dark}\fontsize{20}{16.8}\selectfont} -\subsectionfont{\color{dark}\fontsize{14}{16.8}\selectfont} -\titleformat{\subsection} - {\sffamily\Large\bfseries}{\thesection}{1em}{}[{\titlerule[0.8pt]}] - -% left align title -\makeatletter -\renewcommand{\maketitle}{\bgroup\setlength{\parindent}{0pt} -\begin{flushleft} - {\sffamily\huge\textbf{\MakeUppercase{\@title}}} \vspace{0.3cm} \newline - {\Large {\@subtitle}} \newline - \@author -\end{flushleft}\egroup -} -\makeatother - diff --git a/dwen/logo.png b/dwen/logo.png deleted file mode 100755 index f8cf1d5..0000000 Binary files a/dwen/logo.png and /dev/null differ diff --git a/dwen/partials/before-body.tex b/dwen/partials/before-body.tex deleted file mode 100644 index 1a6c5f1..0000000 --- a/dwen/partials/before-body.tex +++ /dev/null @@ -1 +0,0 @@ -\pagestyle{mystyle} \ No newline at end of file diff --git a/dwen/rceeslogo.pdf b/dwen/rceeslogo.pdf deleted file mode 100644 index 8dfb699..0000000 Binary files a/dwen/rceeslogo.pdf and /dev/null differ diff --git a/dwen/rceeslogo.svg b/dwen/rceeslogo.svg deleted file mode 100644 index 44431ff..0000000 --- a/dwen/rceeslogo.svg +++ /dev/null @@ -1,5 +0,0 @@ - - viewBox="0 0 621 690"> - - - diff --git a/dwen/template.pdf b/dwen/template.pdf deleted file mode 100644 index 844aa90..0000000 Binary files a/dwen/template.pdf and /dev/null differ diff --git a/dwen/template.qmd b/dwen/template.qmd deleted file mode 100644 index 821e6e0..0000000 --- a/dwen/template.qmd +++ /dev/null @@ -1,27 +0,0 @@ ---- -title: "Pretty PDFs with Quarto" -author: Ming Su -format: - dwen-pdf: default ---- - -# Quarto - -Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see . - -## Running Code - -When you click the **Render** button a document will be generated that includes both content and the output of embedded code. You can embed code like this: - -```{r} -1 + 1 -``` - -You can add options to executable code like this - -```{r} -#| echo: false -2 * 2 -``` - -The `echo: false` option disables the printing of code (only output is displayed). diff --git a/dwev/_extension.yml b/dwev/_extension.yml deleted file mode 100644 index faedb9e..0000000 --- a/dwev/_extension.yml +++ /dev/null @@ -1,7 +0,0 @@ -title: eisvogel template for drwater -author: Ming Su -version: 0.0.1 -contributes: - formats: - pdf: - template: dweisvogel.tex diff --git a/dwev/_extension.yml b/dwev/_extension.yml new file mode 120000 index 0000000..91595af --- /dev/null +++ b/dwev/_extension.yml @@ -0,0 +1 @@ +_extensions/drwater/dwev/_extension.yml \ No newline at end of file diff --git a/dwev/_extensions/drwater/dwev/inst b/dwev/_extensions/drwater/dwev/inst new file mode 120000 index 0000000..541d62c --- /dev/null +++ b/dwev/_extensions/drwater/dwev/inst @@ -0,0 +1 @@ +../../../../dwinst \ No newline at end of file diff --git a/dwev/dweisvogel.tex b/dwev/dweisvogel.tex deleted file mode 100644 index b06056e..0000000 --- a/dwev/dweisvogel.tex +++ /dev/null @@ -1,1323 +0,0 @@ -%% -% Copyright (c) 2017 - 2024, Pascal Wagler; -% Copyright (c) 2014 - 2024, John MacFarlane -% -% All rights reserved. -% -% Redistribution and use in source and binary forms, with or without -% modification, are permitted provided that the following conditions -% are met: -% -% - Redistributions of source code must retain the above copyright -% notice, this list of conditions and the following disclaimer. -% -% - Redistributions in binary form must reproduce the above copyright -% notice, this list of conditions and the following disclaimer in the -% documentation and/or other materials provided with the distribution. -% -% - Neither the name of John MacFarlane nor the names of other -% contributors may be used to endorse or promote products derived -% from this software without specific prior written permission. -% -% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -% "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -% LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -% FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -% COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -% INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -% BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -% LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -% CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -% LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -% ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -% POSSIBILITY OF SUCH DAMAGE. -%% - -%% -% This is the Eisvogel pandoc LaTeX template. -% -% For usage information and examples visit the official GitHub page: -% https://github.com/Wandmalfarbe/pandoc-latex-template -%% - -% Options for packages loaded elsewhere -\PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} -\PassOptionsToPackage{hyphens}{url} -\PassOptionsToPackage{dvipsnames,svgnames,x11names,table}{xcolor} -$if(CJKmainfont)$ -\PassOptionsToPackage{space}{xeCJK} -$endif$ -% -\documentclass[ -$if(fontsize)$ - $fontsize$, -$endif$ -$if(papersize)$ - $papersize$paper, -$else$ - paper=a4, -$endif$ -$if(beamer)$ - ignorenonframetext, -$if(handout)$ - handout, -$endif$ -$if(aspectratio)$ - aspectratio=$aspectratio$, -$endif$ -$if(babel-lang)$ - $babel-lang$, -$endif$ -$endif$ -$for(classoption)$ - $classoption$$sep$, -$endfor$ - ,captions=tableheading -]{$if(beamer)$$documentclass$$else$$if(book)$scrbook$else$scrartcl$endif$$endif$} -$if(beamer)$ -$if(background-image)$ -\usebackgroundtemplate{% - \includegraphics[width=\paperwidth]{$background-image$}% -} -% In beamer background-image does not work well when other images are used, so this is the workaround -\pgfdeclareimage[width=\paperwidth,height=\paperheight]{background}{$background-image$} -\usebackgroundtemplate{\pgfuseimage{background}} -$endif$ - -\usepackage{pgfpages} -\setbeamertemplate{caption}[numbered] -\setbeamertemplate{caption label separator}{: } -\setbeamercolor{caption name}{fg=normal text.fg} -\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$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]{section title} - \usebeamerfont{section title}\insertsection\par - \end{beamercolorbox} -} -\setbeamertemplate{subsection page}{ - \centering - \begin{beamercolorbox}[sep=8pt,center]{subsection 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 -$endif$ -\usepackage{amsmath,amssymb} -$if(linestretch)$ -\usepackage{setspace} -$else$ -% Use setspace anyway because we change the default line spacing. -% The spacing is changed early to affect the titlepage and the TOC. -\usepackage{setspace} -\setstretch{1.2} -$endif$ -\usepackage{iftex} -\ifPDFTeX - \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc} - \usepackage[utf8]{inputenc} - \usepackage{textcomp} % provide euro and other symbols -\else % if luatex or xetex -$if(mathspec)$ - \ifXeTeX - \usepackage{mathspec} % this also loads fontspec - \else - \usepackage{unicode-math} % this also loads fontspec - \fi -$else$ - \usepackage{unicode-math} % this also loads fontspec -$endif$ - \defaultfontfeatures{Scale=MatchLowercase}$-- must come before Beamer theme - \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1} -\fi -$if(fontfamily)$ -$else$ -$-- Set default font before Beamer theme so the theme can override it -\usepackage{lmodern} -$endif$ -$-- Set Beamer theme before user font settings so they can override theme -$if(beamer)$ -$if(theme)$ -\usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$} -$endif$ -$if(colortheme)$ -\usecolortheme{$colortheme$} -$endif$ -$if(fonttheme)$ -\usefonttheme{$fonttheme$} -$endif$ -$if(mainfont)$ -\usefonttheme{serif} % use mainfont rather than sansfont for slide text -$endif$ -$if(innertheme)$ -\useinnertheme{$innertheme$} -$endif$ -$if(outertheme)$ -\useoutertheme{$outertheme$} -$endif$ -$endif$ -$-- User font settings (must come after default font and Beamer theme) -$if(fontfamily)$ -\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$} -$endif$ -\ifPDFTeX\else - % xetex/luatex font selection -$if(mainfont)$ - $if(mainfontfallback)$ - \ifLuaTeX - \usepackage{luaotfload} - \directlua{luaotfload.add_fallback("mainfontfallback",{ - $for(mainfontfallback)$"$mainfontfallback$"$sep$,$endfor$ - })} - \fi - $endif$ - \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$$if(mainfontfallback)$,RawFeature={fallback=mainfontfallback}$endif$]{$mainfont$} -$endif$ -$if(sansfont)$ - $if(sansfontfallback)$ - \ifLuaTeX - \usepackage{luaotfload} - \directlua{luaotfload.add_fallback("sansfontfallback",{ - $for(sansfontfallback)$"$sansfontfallback$"$sep$,$endfor$ - })} - \fi - $endif$ - \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$$if(sansfontfallback)$,RawFeature={fallback=sansfontfallback}$endif$]{$sansfont$} -$endif$ -$if(monofont)$ - $if(monofontfallback)$ - \ifLuaTeX - \usepackage{luaotfload} - \directlua{luaotfload.add_fallback("monofontfallback",{ - $for(monofontfallback)$"$monofontfallback$"$sep$,$endfor$ - })} - \fi - $endif$ - \setmonofont[$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$if(monofontfallback)$,RawFeature={fallback=monofontfallback}$endif$]{$monofont$} -$endif$ -$for(fontfamilies)$ - \newfontfamily{$fontfamilies.name$}[$for(fontfamilies.options)$$fontfamilies.options$$sep$,$endfor$]{$fontfamilies.font$} -$endfor$ -$if(mathfont)$ -$if(mathspec)$ - \ifXeTeX - \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} - \else - \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} - \fi -$else$ - \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} -$endif$ -$endif$ -$if(CJKmainfont)$ - \ifXeTeX - \usepackage{xeCJK} - \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$} - $if(CJKsansfont)$ - \setCJKsansfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKsansfont$} - $endif$ - $if(CJKmonofont)$ - \setCJKmonofont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmonofont$} - $endif$ - \fi -$endif$ -$if(luatexjapresetoptions)$ - \ifLuaTeX - \usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset} - \fi -$endif$ -$if(CJKmainfont)$ - \ifLuaTeX - \usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec} - \setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$} - \fi -$endif$ -\fi -$if(zero-width-non-joiner)$ -%% Support for zero-width non-joiner characters. -\makeatletter -\def\zerowidthnonjoiner{% - % Prevent ligatures and adjust kerning, but still support hyphenating. - \texorpdfstring{% - \TextOrMath{\nobreak\discretionary{-}{}{\kern.03em}% - \ifvmode\else\nobreak\hskip\z@skip\fi}{}% - }{}% -} -\makeatother -\ifPDFTeX - \DeclareUnicodeCharacter{200C}{\zerowidthnonjoiner} -\else - \catcode`^^^^200c=\active - \protected\def ^^^^200c{\zerowidthnonjoiner} -\fi -%% End of ZWNJ support -$endif$ -% Use upquote if available, for straight quotes in verbatim environments -\IfFileExists{upquote.sty}{\usepackage{upquote}}{} -\IfFileExists{microtype.sty}{% use microtype if available - \usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype} - \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts -}{} -$if(indent)$ -$else$ -\makeatletter -\@ifundefined{KOMAClassName}{% if non-KOMA class - \IfFileExists{parskip.sty}{% - \usepackage{parskip} - }{% else - \setlength{\parindent}{0pt} - \setlength{\parskip}{6pt plus 2pt minus 1pt}} -}{% if KOMA class - \KOMAoptions{parskip=half}} -\makeatother -$endif$ -$if(verbatim-in-note)$ -\usepackage{fancyvrb} -$endif$ -\usepackage{xcolor} -\definecolor{default-linkcolor}{HTML}{A50000} -\definecolor{default-filecolor}{HTML}{A50000} -\definecolor{default-citecolor}{HTML}{4077C0} -\definecolor{default-urlcolor}{HTML}{4077C0} -$if(footnotes-pretty)$ -% load footmisc in order to customize footnotes (footmisc has to be loaded before hyperref, cf. https://tex.stackexchange.com/a/169124/144087) -\usepackage[hang,flushmargin,bottom,multiple]{footmisc} -\setlength{\footnotemargin}{0.8em} % set space between footnote nr and text -\setlength{\footnotesep}{\baselineskip} % set space between multiple footnotes -\setlength{\skip\footins}{0.3cm} % set space between page content and footnote -\setlength{\footskip}{0.9cm} % set space between footnote and page bottom -$endif$ -$if(geometry)$ -$if(beamer)$ -\geometry{$for(geometry)$$geometry$$sep$,$endfor$} -$else$ -\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} -$endif$ -$else$ -$if(beamer)$ -$else$ -\usepackage[margin=2.5cm,includehead=true,includefoot=true,centering,$for(geometry)$$geometry$$sep$,$endfor$]{geometry} -$endif$ -$endif$ -$if(titlepage-logo)$ -\usepackage[export]{adjustbox} -\usepackage{graphicx} -$endif$ -$if(beamer)$ -\newif\ifbibliography -$endif$ -$if(listings)$ -\usepackage{listings} -\newcommand{\passthrough}[1]{#1} -\lstset{defaultdialect=[5.3]Lua} -\lstset{defaultdialect=[x86masm]Assembler} -$endif$ -$if(listings-no-page-break)$ -\usepackage{etoolbox} -\BeforeBeginEnvironment{lstlisting}{\par\noindent\begin{minipage}{\linewidth}} -\AfterEndEnvironment{lstlisting}{\end{minipage}\par\addvspace{\topskip}} -$endif$ -$if(lhs)$ -\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} -$endif$ -$if(highlighting-macros)$ -$highlighting-macros$ - -% Workaround/bugfix from jannick0. -% See https://github.com/jgm/pandoc/issues/4302#issuecomment-360669013) -% or https://github.com/Wandmalfarbe/pandoc-latex-template/issues/2 -% -% Redefine the verbatim environment 'Highlighting' to break long lines (with -% the help of fvextra). Redefinition is necessary because it is unlikely that -% pandoc includes fvextra in the default template. -\usepackage{fvextra} -\DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,fontsize=$if(code-block-font-size)$$code-block-font-size$$else$\small$endif$,commandchars=\\\{\}} - -$endif$ - -% 为中文添加支持 by Ming Su -$if(CJK)$ -$if(book)$ -\usepackage{ctex} %调用中文字体宏包 -\usepackage{indentfirst} %调用首行缩进宏包 -\usepackage{ctex} % 确保中文字体支持 -\usepackage{zhnumber} -% 修改 chapter 格式为 "第X章" -% \renewcommand{\chapterformat}{第~\thechapter~章} -% \renewcommand{\chapterformat}{第\zhnumber{\thechapter}章} -\renewcommand{\chaptermarkformat}{第~\zhnumber{\thechapter}~章} -\renewcommand{\chapterformat}{第\zhnumber{\thechapter}章} -\renewcommand*{\chapterlinesformat}[3]{% - \parbox{\linewidth}{\centering #2~\quad~#3} % 居中 + "·" 分隔 - % 或改用冒号分隔: - % \parbox{\linewidth}{\centering #2:#3} -} -\RedeclareSectionCommand[ - beforeskip=1.5em plus 0.5em minus 0.5em, - afterskip=1em plus 0.2em, - font=\large\bfseries -]{section} -\usepackage{zhnumber} % 确保已加载(或直接用 ctex) -% 修改目录中的章节编号为中文 -\addtokomafont{chapterentry}{\normalfont} % 可选:调整目录字体 -\renewcommand*{\chapterformat}{第\zhnumber{\thechapter}章} % 正文标题格式 -\renewcommand*{\chaptermarkformat}{第\zhnumber{\thechapter}章\quad} % 页眉标题格式 -% 关键!覆盖目录中的章节编号 -\renewcommand{\addchaptertocentry}[2]{% - \addtocentrydefault{chapter}{第\zhnumber{#1}章}{#2}% -} -\RedeclareSectionCommand[ - tocentryindent=0pt, - tocentrynumwidth=3.5em % 确保编号区域足够宽 -]{chapter} -$endif$ -$endif$ - -$if(tables)$ -\usepackage{longtable,booktabs,array} -$if(multirow)$ -\usepackage{multirow} -$endif$ -\usepackage{calc} % for calculating minipage widths -$if(beamer)$ -\usepackage{caption} -% Make caption package work with longtable -\makeatletter -\def\fnum@table{\tablename~\thetable} -\makeatother -$else$ -% Correct order of tables after \paragraph or \subparagraph -\usepackage{etoolbox} -\makeatletter -\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{} -\makeatother -% Allow footnotes in longtable head/foot -\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} -\makesavenoteenv{longtable} -$endif$ -$endif$ -% add backlinks to footnote references, cf. https://tex.stackexchange.com/questions/302266/make-footnote-clickable-both-ways -$if(footnotes-disable-backlinks)$ -$else$ -\usepackage{footnotebackref} -$endif$ -$if(graphics)$ -\usepackage{graphicx} -\makeatletter -% \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} -% \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} -% \makeatother -% % Scale images if necessary, so that they will not overflow the page -% % margins by default, and it is still possible to overwrite the defaults -% % using explicit options in \includegraphics[width, height, ...]{} -% \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} -\newsavebox\pandoc@box -\newcommand*\pandocbounded[1]{% scales image to fit in text height/width - \sbox\pandoc@box{#1}% - \Gscale@div\@tempa{\textheight}{\dimexpr\ht\pandoc@box+\dp\pandoc@box\relax}% - \Gscale@div\@tempb{\linewidth}{\wd\pandoc@box}% - \ifdim\@tempb\p@<\@tempa\p@\let\@tempa\@tempb\fi% select the smaller of both - \ifdim\@tempa\p@<\p@\scalebox{\@tempa}{\usebox\pandoc@box}% - \else\usebox{\pandoc@box}% - \fi% -} -% Set default figure placement to htbp -\makeatletter -\def\fps@figure{htbp} -\makeatother -% \makeatletter Old options from template, replaced with quarto defaults above -% \newsavebox\pandoc@box -% \newcommand*\pandocbounded[1]{% scales image to fit in text height/width -% \sbox\pandoc@box{#1}% -% \Gscale@div\@tempa{\textheight}{\dimexpr\ht\pandoc@box+\dp\pandoc@box\relax}% -% \Gscale@div\@tempb{\linewidth}{\wd\pandoc@box}% -% \ifdim\@tempb\p@<\@tempa\p@\let\@tempa\@tempb\fi% select the smaller of both -% \ifdim\@tempa\p@<\p@\scalebox{\@tempa}{\usebox\pandoc@box}% -% \else\usebox{\pandoc@box}% -% \fi% -% } -% % Set default figure placement to htbp -% % Make use of float-package and set default placement for figures to H. -% % The option H means 'PUT IT HERE' (as opposed to the standard h option which means 'You may put it here if you like'). -% \usepackage{float} -% \floatplacement{figure}{$if(float-placement-figure)$$float-placement-figure$$else$H$endif$} -% \makeatother -$endif$ -$if(svg)$ -\usepackage{svg} -$endif$ -$if(strikeout)$ -$-- also used for underline -\ifLuaTeX - \usepackage{luacolor} - \usepackage[soul]{lua-ul} -\else -\usepackage{soul} -$if(beamer)$ - \makeatletter - \let\HL\hl - \renewcommand\hl{% fix for beamer highlighting - \let\set@color\beamerorig@set@color - \let\reset@color\beamerorig@reset@color - \HL} - \makeatother -$endif$ -$if(CJKmainfont)$ - \ifXeTeX - % soul's \st doesn't work for CJK: - \usepackage{xeCJKfntef} - \renewcommand{\st}[1]{\sout{#1}} - \fi -$endif$ -\fi -$endif$ -\setlength{\emergencystretch}{3em} % prevent overfull lines -\providecommand{\tightlist}{% - \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} -$if(numbersections)$ -\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$} -$else$ -\setcounter{secnumdepth}{-\maxdimen} % remove section numbering -$endif$ -$if(subfigure)$ -\usepackage{subcaption} -$endif$ -$if(beamer)$ -$else$ -$if(block-headings)$ -% Make \paragraph and \subparagraph free-standing -\makeatletter -\ifx\paragraph\undefined\else - \let\oldparagraph\paragraph - \renewcommand{\paragraph}{ - \@ifstar - \xxxParagraphStar - \xxxParagraphNoStar - } - \newcommand{\xxxParagraphStar}[1]{\oldparagraph*{#1}\mbox{}} - \newcommand{\xxxParagraphNoStar}[1]{\oldparagraph{#1}\mbox{}} -\fi -\ifx\subparagraph\undefined\else - \let\oldsubparagraph\subparagraph - \renewcommand{\subparagraph}{ - \@ifstar - \xxxSubParagraphStar - \xxxSubParagraphNoStar - } - \newcommand{\xxxSubParagraphStar}[1]{\oldsubparagraph*{#1}\mbox{}} - \newcommand{\xxxSubParagraphNoStar}[1]{\oldsubparagraph{#1}\mbox{}} -\fi -\makeatother -$endif$ -$endif$ -$if(pagestyle)$ -\pagestyle{$pagestyle$} -$endif$ -$if(csl-refs)$ -% definitions for citeproc citations -\NewDocumentCommand\citeproctext{}{} -\NewDocumentCommand\citeproc{mm}{% - \begingroup\def\citeproctext{#2}\cite{#1}\endgroup} -\makeatletter - % allow citations to break across lines - \let\@cite@ofmt\@firstofone - % avoid brackets around text for \cite: - \def\@biblabel#1{} - \def\@cite#1#2{{#1\if@tempswa , #2\fi}} -\makeatother -\newlength{\cslhangindent} -\setlength{\cslhangindent}{1.5em} -\newlength{\csllabelwidth} -\setlength{\csllabelwidth}{3em} -\newenvironment{CSLReferences}[2] % #1 hanging-indent, #2 entry-spacing - {\begin{list}{}{% - \setlength{\itemindent}{0pt} - \setlength{\leftmargin}{0pt} - \setlength{\parsep}{0pt} - % turn on hanging indent if param 1 is 1 - \ifodd #1 - \setlength{\leftmargin}{\cslhangindent} - \setlength{\itemindent}{-1\cslhangindent} - \fi - % set entry spacing - \setlength{\itemsep}{#2\baselineskip}}} - {\end{list}} -\usepackage{calc} -\newcommand{\CSLBlock}[1]{\hfill\break\parbox[t]{\linewidth}{\strut\ignorespaces#1\strut}} -\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{\strut#1\strut}} -\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{\strut#1\strut}} -\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} -$endif$ -$if(lang)$ -\ifLuaTeX -\usepackage[bidi=basic]{babel} -\else -\usepackage[bidi=default]{babel} -\fi -$if(babel-lang)$ -\babelprovide[main,import]{$babel-lang$} -$if(mainfont)$ -\ifPDFTeX -\else -\babelfont{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$$if(mainfontfallback)$,RawFeature={fallback=mainfontfallback}$endif$]{$mainfont$} -\fi -$endif$ -$endif$ -$for(babel-otherlangs)$ -\babelprovide[import]{$babel-otherlangs$} -$endfor$ -$for(babelfonts/pairs)$ -\babelfont[$babelfonts.key$]{rm}{$babelfonts.value$} -$endfor$ -% get rid of language-specific shorthands (see #6817): -\let\LanguageShortHands\languageshorthands -\def\languageshorthands#1{} -$if(selnolig-langs)$ -\ifLuaTeX - \usepackage[$for(selnolig-langs)$$it$$sep$,$endfor$]{selnolig} % disable illegal ligatures -\fi -$endif$ -$endif$ -$for(header-includes)$ -$header-includes$ -$endfor$ -$if(dir)$ -\ifPDFTeX - \TeXXeTstate=1 - \newcommand{\RL}[1]{\beginR #1\endR} - \newcommand{\LR}[1]{\beginL #1\endL} - \newenvironment{RTL}{\beginR}{\endR} - \newenvironment{LTR}{\beginL}{\endL} -\fi -$endif$ -$if(natbib)$ -\usepackage[$natbiboptions$]{natbib} -\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$} -$endif$ -$if(biblatex)$ -\usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex} -$for(bibliography)$ -\addbibresource{$bibliography$} -$endfor$ -$endif$ -$if(nocite-ids)$ -\nocite{$for(nocite-ids)$$it$$sep$, $endfor$} -$endif$ -$if(csquotes)$ -\usepackage{csquotes} -$endif$ -\usepackage{bookmark} -\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available -\urlstyle{$if(urlstyle)$$urlstyle$$else$same$endif$} -$if(links-as-notes)$ -% Make links footnotes instead of hotlinks: -\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}} -$endif$ -$if(verbatim-in-note)$ -\VerbatimFootnotes % allow verbatim text in footnotes -$endif$ -\hypersetup{ -$if(title-meta)$ - pdftitle={$title-meta$}, -$endif$ -$if(author-meta)$ - pdfauthor={$author-meta$}, -$endif$ -$if(lang)$ - pdflang={$lang$}, -$endif$ -$if(subject)$ -pdfsubject={$subject$}, -$endif$ -$if(keywords)$ - pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$}, -$endif$ -$if(colorlinks)$ - colorlinks=true, - linkcolor={$if(linkcolor)$$linkcolor$$else$default-linkcolor$endif$}, - filecolor={$if(filecolor)$$filecolor$$else$default-filecolor$endif$}, - citecolor={$if(citecolor)$$citecolor$$else$default-citecolor$endif$}, - urlcolor={$if(urlcolor)$$urlcolor$$else$default-urlcolor$endif$}, -$else$ -$if(boxlinks)$ -$else$ - hidelinks, -$endif$ -$endif$ - breaklinks=true, - pdfcreator={LaTeX via pandoc with the Eisvogel template}} -$if(title)$ -\title{$title$$if(thanks)$\thanks{$thanks$}$endif$} -$endif$ -$if(subtitle)$ -$if(beamer)$ -$else$ -\usepackage{etoolbox} -\makeatletter -\providecommand{\subtitle}[1]{% add subtitle to \maketitle - \apptocmd{\@title}{\par {\large #1 \par}}{}{} -} -\makeatother -$endif$ -\subtitle{$subtitle$} -$endif$ -\author{$for(author)$$author$$sep$ \and $endfor$} -\date{$date$} -$if(beamer)$ -$if(institute)$ -\institute{$for(institute)$$institute$$sep$ \and $endfor$} -$endif$ -$if(titlegraphic)$ -\titlegraphic{\includegraphics$if(titlegraphicoptions)$[$for(titlegraphicoptions)$$titlegraphicoptions$$sep$, $endfor$]$endif${$titlegraphic$}} -$endif$ -$if(logo)$ -\logo{\includegraphics{$logo$}} -$endif$ -$endif$ - - - -%% -%% added -%% - -$if(page-background)$ -\usepackage[pages=all]{background} -$endif$ - -% -% for the background color of the title page -% -$if(titlepage)$ -\usepackage{pagecolor} -\usepackage{afterpage} -$if(titlepage-background)$ -\usepackage{tikz} -$endif$ -$if(geometry)$ -$else$ -\usepackage[margin=2.5cm,includehead=true,includefoot=true,centering]{geometry} -$endif$ -$endif$ - -% -% break urls -% -\PassOptionsToPackage{hyphens}{url} - -% -% When using babel or polyglossia with biblatex, loading csquotes is recommended -% to ensure that quoted texts are typeset according to the rules of your main language. -% -\usepackage{csquotes} - -% -% captions -% -\definecolor{caption-color}{HTML}{777777} -$if(beamer)$ -$else$ -\usepackage[font={stretch=1.2}, textfont={color=caption-color}, position=top, skip=4mm, labelfont=bf, singlelinecheck=false, justification=$if(caption-justification)$$caption-justification$$else$raggedright$endif$]{caption} -\setcapindent{0em} -$endif$ - -% -% blockquote -% -\definecolor{blockquote-border}{RGB}{221,221,221} -\definecolor{blockquote-text}{RGB}{119,119,119} -\usepackage{mdframed} -\newmdenv[rightline=false,bottomline=false,topline=false,linewidth=3pt,linecolor=blockquote-border,skipabove=\parskip]{customblockquote} -\renewenvironment{quote}{\begin{customblockquote}\list{}{\rightmargin=0em\leftmargin=0em}% -\item\relax\color{blockquote-text}\ignorespaces}{\unskip\unskip\endlist\end{customblockquote}} - -% -% Source Sans Pro as the default font family -% Source Code Pro for monospace text -% -% 'default' option sets the default -% font family to Source Sans Pro, not \sfdefault. -% -\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex - $if(fontfamily)$ - $else$ - \usepackage[default]{sourcesanspro} - \usepackage{sourcecodepro} - $endif$ -\else % if not pdftex - $if(mainfont)$ - $else$ - \usepackage[default]{sourcesanspro} - \usepackage{sourcecodepro} - - % XeLaTeX specific adjustments for straight quotes: https://tex.stackexchange.com/a/354887 - % This issue is already fixed (see https://github.com/silkeh/latex-sourcecodepro/pull/5) but the - % fix is still unreleased. - % TODO: Remove this workaround when the new version of sourcecodepro is released on CTAN. - \ifxetex - \makeatletter - \defaultfontfeatures[\ttfamily] - { Numbers = \sourcecodepro@figurestyle, - Scale = \SourceCodePro@scale, - Extension = .otf } - \setmonofont - [ UprightFont = *-\sourcecodepro@regstyle, - ItalicFont = *-\sourcecodepro@regstyle It, - BoldFont = *-\sourcecodepro@boldstyle, - BoldItalicFont = *-\sourcecodepro@boldstyle It ] - {SourceCodePro} - \makeatother - \fi - $endif$ -\fi - - -% setup for chinese font, by Ming -\setCJKmainfont{$CJKmainfont$}[BoldFont=$CJKboldfont$, ItalicFont=$CJKitalicfont$] - -% -% heading color -% -\definecolor{heading-color}{RGB}{40,40,40} -$if(beamer)$ -$else$ -\addtokomafont{section}{\color{heading-color}} -$endif$ -% When using the classes report, scrreprt, book, -% scrbook or memoir, uncomment the following line. -%\addtokomafont{chapter}{\color{heading-color}} - -% -% variables for title, author and date -% -$if(beamer)$ -$else$ -\usepackage{titling} -\title{$title$} -\author{$for(author)$$author$$sep$, $endfor$} -\date{$date$} -$endif$ - -% -% tables -% -$if(tables)$ - -\definecolor{table-row-color}{HTML}{F5F5F5} -\definecolor{table-rule-color}{HTML}{999999} - -%\arrayrulecolor{black!40} -\arrayrulecolor{table-rule-color} % color of \toprule, \midrule, \bottomrule -\setlength\heavyrulewidth{0.3ex} % thickness of \toprule, \bottomrule -\renewcommand{\arraystretch}{1.3} % spacing (padding) - -$if(table-use-row-colors)$ -% Unfortunately the colored cells extend beyond the edge of the -% table because pandoc uses @-expressions (@{}) like so: -% -% \begin{longtable}[]{@{}ll@{}} -% \end{longtable} -% -% https://en.wikibooks.org/wiki/LaTeX/Tables#.40-expressions -\usepackage{etoolbox} -\AtBeginEnvironment{longtable}{\rowcolors{2}{}{table-row-color!100}} -\preto{\toprule}{\hiderowcolors}{}{} -\appto{\endhead}{\showrowcolors}{}{} -\appto{\endfirsthead}{\showrowcolors}{}{} -$endif$ -$endif$ - -% -% remove paragraph indentation -% -% \setlength{\parindent}{0pt} -$if(parindent)$ -\setlength{\parindent}{2em} %设置首行缩进为2字符 -$else$ -\setlength{\parindent}{0pt} -$endif$ -\setlength{\parskip}{6pt plus 2pt minus 1pt} -\setlength{\emergencystretch}{3em} % prevent overfull lines - - - -% -% -% Listings -% -% - -$if(listings)$ - -% -% general listing colors -% -\definecolor{listing-background}{HTML}{F7F7F7} -\definecolor{listing-rule}{HTML}{B3B2B3} -\definecolor{listing-numbers}{HTML}{B3B2B3} -\definecolor{listing-text-color}{HTML}{000000} -\definecolor{listing-keyword}{HTML}{435489} -\definecolor{listing-keyword-2}{HTML}{1284CA} % additional keywords -\definecolor{listing-keyword-3}{HTML}{9137CB} % additional keywords -\definecolor{listing-identifier}{HTML}{435489} -\definecolor{listing-string}{HTML}{00999A} -\definecolor{listing-comment}{HTML}{8E8E8E} - -\lstdefinestyle{eisvogel_listing_style}{ - language = java, -$if(listings-disable-line-numbers)$ - xleftmargin = 0.6em, - framexleftmargin = 0.4em, -$else$ - numbers = left, - xleftmargin = 2.7em, - framexleftmargin = 2.5em, -$endif$ - backgroundcolor = \color{listing-background}, - basicstyle = \color{listing-text-color}\linespread{1.0}% - \lst@ifdisplaystyle% - $if(code-block-font-size)$$code-block-font-size$$else$\small$endif$% - \fi\ttfamily{}, - breaklines = true, - frame = single, - framesep = 0.19em, - rulecolor = \color{listing-rule}, - frameround = ffff, - tabsize = 4, - numberstyle = \color{listing-numbers}, - aboveskip = 1.0em, - belowskip = 0.1em, - abovecaptionskip = 0em, - belowcaptionskip = 1.0em, - keywordstyle = {\color{listing-keyword}\bfseries}, - keywordstyle = {[2]\color{listing-keyword-2}\bfseries}, - keywordstyle = {[3]\color{listing-keyword-3}\bfseries\itshape}, - sensitive = true, - identifierstyle = \color{listing-identifier}, - commentstyle = \color{listing-comment}, - stringstyle = \color{listing-string}, - showstringspaces = false, - escapeinside = {/*@}{@*/}, % Allow LaTeX inside these special comments - literate = - {á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1 - {Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1 - {à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1 - {À}{{\`A}}1 {È}{{\`E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1 - {ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1 - {Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1 - {â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1 - {Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1 - {œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1 - {ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1 - {€}{{\EUR}}1 {£}{{\pounds}}1 {«}{{\guillemotleft}}1 - {»}{{\guillemotright}}1 {ñ}{{\~n}}1 {Ñ}{{\~N}}1 {¿}{{?`}}1 - {…}{{\ldots}}1 {≥}{{>=}}1 {≤}{{<=}}1 {„}{{\glqq}}1 {“}{{\grqq}}1 - {”}{{''}}1 -} -\lstset{style=eisvogel_listing_style} - -% -% Java (Java SE 12, 2019-06-22) -% -\lstdefinelanguage{Java}{ - morekeywords={ - % normal keywords (without data types) - abstract,assert,break,case,catch,class,continue,default, - do,else,enum,exports,extends,final,finally,for,if,implements, - import,instanceof,interface,module,native,new,package,private, - protected,public,requires,return,static,strictfp,super,switch, - synchronized,this,throw,throws,transient,try,volatile,while, - % var is an identifier - var - }, - morekeywords={[2] % data types - % primitive data types - boolean,byte,char,double,float,int,long,short, - % String - String, - % primitive wrapper types - Boolean,Byte,Character,Double,Float,Integer,Long,Short - % number types - Number,AtomicInteger,AtomicLong,BigDecimal,BigInteger,DoubleAccumulator,DoubleAdder,LongAccumulator,LongAdder,Short, - % other - Object,Void,void - }, - morekeywords={[3] % literals - % reserved words for literal values - null,true,false, - }, - sensitive, - morecomment = [l]//, - morecomment = [s]{/*}{*/}, - morecomment = [s]{/**}{*/}, - morestring = [b]", - morestring = [b]', -} - -\lstdefinelanguage{XML}{ - morestring = [b]", - moredelim = [s][\bfseries\color{listing-keyword}]{<}{\ }, - moredelim = [s][\bfseries\color{listing-keyword}]{}, - moredelim = [l][\bfseries\color{listing-keyword}]{/>}, - moredelim = [l][\bfseries\color{listing-keyword}]{>}, - morecomment = [s]{}, - morecomment = [s]{}, - commentstyle = \color{listing-comment}, - stringstyle = \color{listing-string}, - identifierstyle = \color{listing-identifier} -} -$endif$ - -% -% header and footer -% -$if(beamer)$ -$else$ -$if(disable-header-and-footer)$ -$else$ -\usepackage[headsepline,footsepline]{scrlayer-scrpage} - -\newpairofpagestyles{eisvogel-header-footer}{ - \clearpairofpagestyles - \ihead*{$if(header-left)$$header-left$$else$$title$$endif$} - \chead*{$if(header-center)$$header-center$$else$$endif$} - \ohead*{$if(header-right)$$header-right$$else$$date$$endif$} - \ifoot*{$if(footer-left)$$footer-left$$else$$for(author)$$author$$sep$, $endfor$$endif$} - \cfoot*{$if(footer-center)$$footer-center$$else$$endif$} - \ofoot*{$if(footer-right)$$footer-right$$else$\thepage$endif$} - \addtokomafont{pageheadfoot}{\upshape} -} -\pagestyle{eisvogel-header-footer} - -\newpairofpagestyles{eisvogel-chapterpage-header-footer}{ - \clearpairofpagestyles - \setheadtopline{0pt} % 移除页眉顶部的横线(如果有) - \setheadsepline{0pt} - \ifoot*{$if(footer-left)$$footer-left$$else$$for(author)$$author$$sep$, $endfor$$endif$} - \cfoot*{$if(footer-center)$$footer-center$$else$$endif$} - \ofoot*{$if(footer-right)$$footer-right$$else$\thepage$endif$} - \addtokomafont{pageheadfoot}{\upshape} -} - - -$if(book)$ -% \deftripstyle{ChapterStyle}{}{}{}{}{\pagemark}{} -% \renewcommand*{\chapterpagestyle}{ChapterStyle} -\renewcommand*{\chapterpagestyle}{eisvogel-chapterpage-header-footer} -$endif$ - - -$if(page-background)$ -\backgroundsetup{ -scale=1, -color=black, -opacity=$if(page-background-opacity)$$page-background-opacity$$else$0.2$endif$, -angle=0, -contents={% - \includegraphics[width=\paperwidth,height=\paperheight]{$page-background$} - }% -} -$endif$ -$endif$ -$endif$ - -% watermark -$if(watermark)$ -\usepackage{draftwatermark,xcolor} -\SetWatermarkText{\textcolor{$if(watermark-color)$$watermark-color$$else$gray!3$endif$}{$watermark$}} -\SetWatermarkScale{1.2} % 缩小水印尺寸(数值越小越密集) -\SetWatermarkAngle{45} % 斜角排列(经典水印样式) -\SetWatermarkLightness{0.99} % 亮度调节 -$endif$ - -%% -%% end added -%% - -\begin{document} - -%% -%% begin titlepage -%% -$if(beamer)$ -$else$ -$if(titlepage)$ -\begin{titlepage} -$if(titlepage-background)$ -\newgeometry{top=2cm, right=4cm, bottom=3cm, left=4cm} -$else$ -\newgeometry{left=2cm} -$endif$ -$if(titlepage-color)$ -\definecolor{titlepage-color}{HTML}{$titlepage-color$} -\newpagecolor{titlepage-color}\afterpage{\restorepagecolor} -$endif$ -$if(titlepage-background)$ -\tikz[remember picture,overlay] \node[inner sep=0pt] at (current page.center){\includegraphics[width=\paperwidth,height=\paperheight]{$titlepage-background$}}; -$endif$ -\newcommand{\colorRule}[3][black]{\textcolor[HTML]{#1}{\rule{#2}{#3}}} - -\NewDocumentEnvironment{dynalign}{} - {\begin{$if(titlepage-halign)$$titlepage-halign$$else$center$endif$}} - {\end{$if(titlepage-halign)$$titlepage-halign$$else$center$endif$}} - -\begin{dynalign} -\noindent -\\[-1em] -\color[HTML]{$if(titlepage-text-color)$$titlepage-text-color$$else$5F5F5F$endif$} -\makebox[0pt][l]{\colorRule[$if(titlepage-rule-color)$$titlepage-rule-color$$else$435488$endif$]{1.3\textwidth}{$if(titlepage-rule-height)$$titlepage-rule-height$$else$4$endif$pt}} -\par -\noindent - -$if(titlepage-logo)$ -\noindent -\vskip $if(logo-vskip)$$logo-vskip$$else$-8em$endif$ -\hskip $if(logo-hskip)$$logo-hskip$$else$-6em$endif$ -\includegraphics[width=$if(logo-width)$$logo-width$$else$35mm$endif$, left]{$titlepage-logo$} -$endif$ - -$if(titlepage-background)$ -% The titlepage with a background image has other text spacing and text size -{ - \setstretch{2} - \vfill - \vskip -8em - $if(title-vskip)$ - \vskip $title-vskip$ - $endif$ - $if(title-hskip)$ - \vskip $title-hskip$ - $endif$ - \noindent { - $if(title-size)$ - \$title-size$ - $else$ - \huge - $endif$ -\textbf{\textsf{$title$}}} - $if(subtitle)$ - \vskip 1em - { - $if(subtitle-size)$ - \$subtitle-size$ - $else$ - \Large - $endif$ - \textsf{$subtitle$}} - $endif$ - \vskip 2em - $if(author-vskip)$ - \vskip $author-vskip$ - $endif$ - \noindent { - $if(author-size)$ - $author-size$ - $else$ - \Large - $endif$ - -\textsf{$for(author)$$author$$sep$, $endfor$} -\vskip 0.6em - $if(date-vskip)$ - \vskip $date-vskip$ - $endif$ -{\textsf{$if(institute)$$institute$\vskip 0.6em$endif$$date$}} -} - \vfill -} -$else$ -{ - \setstretch{1.4} - \vfill - \vskip 8em - $if(title-vskip)$ - \vskip $title-vskip$ - $endif$ - $if(title-hskip)$ - \vskip $title-hskip$ - $endif$ - \noindent {\huge \textbf{\textsf{$title$}}} - $if(subtitle)$ - \vskip 1em - {\Large \textsf{$subtitle$}} - $endif$ - \vskip 4em - $if(author-vskip)$ - \vskip $author-vskip$ - $endif$ - \noindent { - $if(author-size)$ - $author-size$ - $else$ - \Large - $endif$ - -\textsf{$for(author)$$author$$sep$, $endfor$} -\vskip 0.6em - $if(date-vskip)$ - \vskip $date-vskip$ - $endif$ -} - \vfill -} -$endif$ - - -$if(titlepage-background)$ -$else$ - - $if(author-size)$ - $author-size$ - $else$ - \Large - $endif$ -{\textsf{$if(institute)$$institute$\vskip 0.6em$endif$$date$}} -$endif$ -\end{dynalign} -\end{titlepage} -\restoregeometry -\pagenumbering{arabic} -$endif$ -$endif$ - - - -%% -%% end titlepage -%% - -$if(has-frontmatter)$ -\frontmatter -$endif$ -$if(title)$ -$if(beamer)$ -\frame{\titlepage} -% don't generate the default title -% $else$ -% \maketitle -$endif$ -$if(abstract)$ -\begin{abstract} -$abstract$ -\end{abstract} -$endif$ -$endif$ - -$if(first-chapter)$ -\setcounter{chapter}{$first-chapter$} -\addtocounter{chapter}{-1} -$endif$ - -$for(include-before)$ -$include-before$ - -$endfor$ -$if(toc)$ -$if(toc-title)$ -\renewcommand*\contentsname{$toc-title$} -$endif$ -$if(beamer)$ -\begin{frame}[allowframebreaks] -$if(toc-title)$ - \frametitle{$toc-title$} -$endif$ - \setcounter{tocdepth}{$toc-depth$} - \tableofcontents -\end{frame} -$if(toc-own-page)$ -\newpage -$endif$ -$else$ -{ -$if(colorlinks)$ -\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$} -$endif$ -\setcounter{tocdepth}{$toc-depth$} -\tableofcontents -$if(toc-own-page)$ -\newpage -$endif$ -} -$endif$ -$endif$ -$if(lof)$ -\listoffigures -$endif$ -$if(lot)$ -\listoftables -$endif$ -$if(linestretch)$ -\setstretch{$linestretch$} -$endif$ -$if(has-frontmatter)$ -\mainmatter -$endif$ -$body$ - -$if(has-frontmatter)$ -\backmatter -$endif$ -$if(natbib)$ -$if(bibliography)$ -$if(biblio-title)$ -$if(has-chapters)$ -\renewcommand\bibname{$biblio-title$} -$else$ -\renewcommand\refname{$biblio-title$} -$endif$ -$endif$ -$if(beamer)$ -\begin{frame}[allowframebreaks]{$biblio-title$} - \bibliographytrue -$endif$ - \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$} -$if(beamer)$ -\end{frame} -$endif$ - -$endif$ -$endif$ -$if(biblatex)$ -$if(beamer)$ -\begin{frame}[allowframebreaks]{$biblio-title$} - \bibliographytrue - \printbibliography[heading=none] -\end{frame} -$else$ -\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$ -$endif$ - -$endif$ -$for(include-after)$ -$include-after$ - -$endfor$ -\end{document} diff --git a/dwev/dweisvogel.tex b/dwev/dweisvogel.tex new file mode 120000 index 0000000..14372ed --- /dev/null +++ b/dwev/dweisvogel.tex @@ -0,0 +1 @@ +_extensions/drwater/dwev/dweisvogel.tex \ No newline at end of file diff --git a/dwev/figure/fig-fig1-1.pdf b/dwev/figure/fig-fig1-1.pdf deleted file mode 100644 index 59f83ef..0000000 Binary files a/dwev/figure/fig-fig1-1.pdf and /dev/null differ diff --git a/dwev/inst b/dwev/inst new file mode 120000 index 0000000..6ecfa72 --- /dev/null +++ b/dwev/inst @@ -0,0 +1 @@ +_extensions/drwater/dwev/inst \ No newline at end of file diff --git a/dwev/inst/basic-example/build.sh b/dwev/inst/basic-example/build.sh deleted file mode 100644 index ee87a78..0000000 --- a/dwev/inst/basic-example/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings \ No newline at end of file diff --git a/dwev/inst/basic-example/document.md b/dwev/inst/basic-example/document.md deleted file mode 100644 index 8997fa6..0000000 --- a/dwev/inst/basic-example/document.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: "Example PDF" -author: [Author] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -lang: "en" -... - -# Vinaque sanguine metuenti cuiquam Alcyone fixus - -## Aesculeae domus vincemur et Veneris adsuetus lapsum - -Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab -esse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi **medias -commentaque virgine** anima tamen comitemque petis, sed. In Amphion vestros -hamos ire arceor mandere spicula, in licet aliquando. - -```java -public class Example implements LoremIpsum { - public static void main(String[] args) { - if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); - } - } // Obscura atque coniuge, per de coniunx -} -``` - -Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. -Laudat ille auditi; vertitur iura tum nepotis causa; motus. Diva virtus! Acrota -destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente -Pirithoi abstulit, lapides. - -## Lydia caelo recenti haerebat lacerum ratae at - -Te concepit pollice fugit vias alumno **oras** quam potest -[rursus](http://example.com#rursus) optat. Non evadere orbem equorum, spatiis, -vel pede inter si. - -1. De neque iura aquis -2. Frangitur gaudia mihi eo umor terrae quos -3. Recens diffudit ille tantum - -\begin{equation}\label{eq:neighbor-propability} - p_{ij}(t) = \frac{\ell_j(t) - \ell_i(t)}{\sum_{k \in N_i(t)}^{} \ell_k(t) - \ell_i(t)} -\end{equation} - -Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae -adessent arbor. Florente perque at condeturque saxa et ferarum promittis tendebat. Armos nisi obortas refugit me. - -> Et nepotes poterat, se qui. Euntem ego pater desuetaque aethera Maeandri, et -[Dardanio geminaque](http://example.com#Dardanio_geminaque) cernit. Lassaque poenas -nec, manifesta $\pi r^2$ mirantia captivarum prohibebant scelerato gradus unusque -dura. - -- Permulcens flebile simul -- Iura tum nepotis causa motus diva virtus Acrota. Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae adessent arbor. Florente perque at ire arcum. \ No newline at end of file diff --git a/dwev/inst/basic-example/document.pdf b/dwev/inst/basic-example/document.pdf deleted file mode 100644 index a2799b8..0000000 Binary files a/dwev/inst/basic-example/document.pdf and /dev/null differ diff --git a/dwev/inst/basic-example/preview.png b/dwev/inst/basic-example/preview.png deleted file mode 100644 index 09b5406..0000000 Binary files a/dwev/inst/basic-example/preview.png and /dev/null differ diff --git a/dwev/inst/beamer/build.sh b/dwev/inst/beamer/build.sh deleted file mode 100644 index f3dd669..0000000 --- a/dwev/inst/beamer/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --to beamer --template "../../eisvogel.tex" --listings \ No newline at end of file diff --git a/dwev/inst/beamer/document.md b/dwev/inst/beamer/document.md deleted file mode 100644 index 3c1f569..0000000 --- a/dwev/inst/beamer/document.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: "Example PDF" -author: [Author] -date: "2019-06-16" -subject: "Markdown" -keywords: [Markdown, Example] -lang: "en" -... - -# Vinaque sanguine metuenti cuiquam Alcyone fixus - -Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab -esse, obstat gravitate. - -```java -public class Example implements LoremIpsum { - public static void main(String[] args) { - if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); - } - } // Obscura atque coniuge, per de coniunx -} -``` - -# Obscura atque coniuge, per de coniunx - -- Vertitur iura tum nepotis causa motus. - -```html - - - - This is the title of the page. - - - This is an image. - - -``` - -# Scyrumve spiro subitusque mente - -```{.sql caption="Pallas nuper longusque cratere habuisse sepulcro pectore fertur."} -CREATE TYPE person_t AS ( - firstName VARCHAR(50) NOT NULL, - lastName VARCHAR(50) NOT NULL -); - -CREATE Or REPLACE FUNCTION getFormattedName(person) RETURNS text AS - $$ SELECT 'P: ' || initcap($1.firstName); $$ -LANGUAGE SQL; -``` \ No newline at end of file diff --git a/dwev/inst/beamer/document.pdf b/dwev/inst/beamer/document.pdf deleted file mode 100644 index 5792985..0000000 Binary files a/dwev/inst/beamer/document.pdf and /dev/null differ diff --git a/dwev/inst/beamer/preview.png b/dwev/inst/beamer/preview.png deleted file mode 100644 index fcd3b60..0000000 Binary files a/dwev/inst/beamer/preview.png and /dev/null differ diff --git a/dwev/inst/book/build.sh b/dwev/inst/book/build.sh deleted file mode 100644 index 9eaa123..0000000 --- a/dwev/inst/book/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings --top-level-division="chapter" \ No newline at end of file diff --git a/dwev/inst/book/document.md b/dwev/inst/book/document.md deleted file mode 100644 index 3936437..0000000 --- a/dwev/inst/book/document.md +++ /dev/null @@ -1,104 +0,0 @@ ---- -title: "Example PDF" -author: [Author] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -book: true -classoption: [oneside] -... - -# Crinis mixtaque factisque ille - -## Aut nunc furori ad latarumque Philomela - -Lorem markdownum includite volenti monticolae videre vocem hac sparsit puta -gelidis vestros egressus sex. Undis eris per auguris armis. Est saevior pater. -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. - -## Gaudet Silenus iuvenis - -Mulciber denique faces ingratus, in umeros umeri cum, iram ira custos non. -Pariterque admissa nubes, in ait ecce setae summis sacrorum me gaudete tellus. -Ille tu perire ille, artificis caede. - -```scala -def sumLeaves(t: Tree): Int = t match { - case Branch(l, r) => sumLeaves(l) + sumLeaves(r) - case Leaf(x) => x -} -``` - -Cephea rector minorque, quem corpora, -Argus. Superi hoc tenuavit timebant ossibus totque non serpere animo corpore -superas gelidae, comitate deus Iunonigenaeque -pectora. - -- Tuis Cereris armiferae fugiunt suus derepta vel -- Veniam mea cum sollertior arbore flore -- Ceae saecula -- Tamen est - -## Dies tunc in enim - -Gerunt urimur violaeque agricolis iussa locis puppis -simul cognita, vertentia Romana -obprobrium pignora superem est certe nondum suffuderat. Nox Pasiphaeia domo: -**abiit** catenas utro crimine gramina ingemuere mixtae. Quem trabibus etiamnum -orbe addita, eiaculatur videri cervo artus. Nutritur cupidine silentia Maeoniam -aere enim gemuit adgreditur, telasque *annis* nos cum Arctonque ingens lateri -cum iaculoque ferus. - -## Et dextra utque per lenius portus eburnae - -Cui vittas aris ibi putat dicere; factum sedere antiqua? Cognita Lyncides iuste -insuetum lacerum in sinamus arces; aves aevum spatiumque de utrumque moveret in? -Tertia ordine, Epidaurius, *has sed et* et novat: quod superare concubitusque -retia quoque, ne totiens. - -Est paenitet Cerealia sparsit; carne insignia in maris; tibi Nec, que Peleu meum -buxus. Propoetides formae magna auro ad gerat cohibentur facienda partem at -nunc, foret? **Ad stirpe**! Ut latius pararet: vestibus cumque pedibus ficta -prior summas cancer ipsa Marte Buten es -terruit. Opifex dixit oculos Oete quoque, quot silvarum abrepti nutrix concita -obsidis consistere fibula saxum, Antigonen minabitur tota. - -# Vagata eiectatamque sidera satis reducet - -## Talem ex aliquo ingemuit - -Lorem markdownum solus miserabile sitae. Tantum Syron limenque cupidine: litore -modo coniuge: in huc, illo crimen novena, vocisque gratia, quae. Sua manusque -patris nec meritorum pedibus hominis virgine, ruere tamen virtus aliter. Tunc -ego. Solitaque remittant fagus omnia eat. - -$$r_d^i(t+1) = \min\{r_s,\max\{0, r_d^i(t) + \beta(n_t - \lvert N_i(t)\rvert)\}\}$$ - -Obstitit silentia et novi non, huic metitur, coronantur lucos. Bracchia aura; -donis quod volucris illi futurae, ut -*venturorumque tellus* arma: saxumque. - -## Vera tum est putes adspicit noxque - -Hora et vidit figere tangi! Omni bis *prior nunc* capilli, pulsat tuam Pallante, -*suis*. Solae decore ipso armorum coitusque paro audita *viveret tibi* apparuit -flammasque lapides. Cursu anas usus eundo anticipata, intabescere quae concita -fallit. Dea corpore fabrae: nec Neptunus membris, falsa murice; fac Marte quam -in. - -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et. - -## Arachnes deus tum penetralia tempore aurea populante - -Lentae spissisque *carne*. Fixit inquit cautes et iugis novus sim quisquam nisi -haesurum vel deorum fetibus virgo. - -Sub nautae, tegebat clamat. Credas Parrhasio. Commemorat nescio liceatque -excipit! Uris clipeo ego visa amplexas meos ibitis condidit Taenaria, si. Tua -ora tempus patrio revulsos, tellus curru facies, Gange gemit agitata! - -Ruinam ipsaque sibi ovis Teucer Iovis tibi; erat versus neque victa attonitus -doque, quod! Dixit carmina, eo, per capillis quid lina, qua, ille. Siqua -caelestum flammas ferre super et saevissime inmisit quoque suis sic aspergine -vis praerupit. Et puellae summa eventu. -Placeat ut medio *plectrumque inferni* Talia; pertimui opem. diff --git a/dwev/inst/book/document.pdf b/dwev/inst/book/document.pdf deleted file mode 100644 index 9ec8efa..0000000 Binary files a/dwev/inst/book/document.pdf and /dev/null differ diff --git a/dwev/inst/book/preview.png b/dwev/inst/book/preview.png deleted file mode 100644 index b0bee1d..0000000 Binary files a/dwev/inst/book/preview.png and /dev/null differ diff --git a/dwev/inst/boxes-with-pandoc-latex-environment-and-awesomebox/build.sh b/dwev/inst/boxes-with-pandoc-latex-environment-and-awesomebox/build.sh deleted file mode 100644 index 3d461f0..0000000 --- a/dwev/inst/boxes-with-pandoc-latex-environment-and-awesomebox/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --filter pandoc-latex-environment --listings \ No newline at end of file diff --git a/dwev/inst/boxes-with-pandoc-latex-environment-and-awesomebox/document.md b/dwev/inst/boxes-with-pandoc-latex-environment-and-awesomebox/document.md deleted file mode 100644 index 944196f..0000000 --- a/dwev/inst/boxes-with-pandoc-latex-environment-and-awesomebox/document.md +++ /dev/null @@ -1,130 +0,0 @@ ---- -title: "Boxes with pandoc-latex-environment and awesomebox" -author: [Author] -date: "2020-01-01" -subject: "Markdown" -keywords: [Markdown, Example] -lang: "en" -colorlinks: true -header-includes: -- | - ```{=latex} - \usepackage{awesomebox} - ``` -pandoc-latex-environment: - noteblock: [note] - tipblock: [tip] - warningblock: [warning] - cautionblock: [caution] - importantblock: [important] -... - -# Boxes with `pandoc-latex-environment` and `awesomebox` - -This example demonstrates the use of the filter [`pandoc-latex-environments`] to create custom boxes with the [`awesomebox`] package. *pandoc-latex-environment* is a pandoc filter for adding LaTeX environment on specific HTML div tags. - - -## Box Types - -For a list of all available boxes and options visit the [`awesomebox` documentation](https://ctan.org/pkg/awesomebox). - -```markdown -::: note -Lorem ipsum dolor ... -::: -``` - -::: note -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet libero -quis lectus elementum fermentum. - -Fusce aliquet augue sapien, non efficitur mi ornare sed. Morbi at dictum -felis. Pellentesque tortor lacus, semper et neque vitae, egestas commodo nisl. -::: - -```markdown -::: tip -Lorem ipsum dolor ... -::: -``` - -::: tip -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet libero -quis lectus elementum fermentum. - -Fusce aliquet augue sapien, non efficitur mi ornare sed. Morbi at dictum -felis. Pellentesque tortor lacus, semper et neque vitae, egestas commodo nisl. -::: - -```markdown -::: warning -Lorem ipsum dolor ... -::: -``` - -::: warning -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet libero -quis lectus elementum fermentum. - -Fusce aliquet augue sapien, non efficitur mi ornare sed. Morbi at dictum -felis. Pellentesque tortor lacus, semper et neque vitae, egestas commodo nisl. -::: - -```markdown -::: caution -Lorem ipsum dolor ... -::: -``` - -::: caution -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet libero -quis lectus elementum fermentum. - -Fusce aliquet augue sapien, non efficitur mi ornare sed. Morbi at dictum -felis. Pellentesque tortor lacus, semper et neque vitae, egestas commodo nisl. -::: - -```markdown -::: important -Lorem ipsum dolor ... -::: -``` - -::: important -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet libero -quis lectus elementum fermentum. - -Fusce aliquet augue sapien, non efficitur mi ornare sed. Morbi at dictum -felis. Pellentesque tortor lacus, semper et neque vitae, egestas commodo nisl. -::: - -One can also use raw HTML `div` tags to create the custom environments. - -```markdown -
-Lorem ipsum dolor ... -
-``` - -
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet libero -quis lectus elementum fermentum. -
- -Markdown formatting inside the environments is supported. - -::: important -**Lorem ipsum dolor** sit amet, `consectetur adipiscing` elit. - -``` -if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); -} -``` - -*Nam aliquet libero -quis lectus elementum fermentum.* -::: - -[`pandoc-latex-environments`]: https://github.com/chdemko/pandoc-latex-environment/ -[`awesomebox`]: https://ctan.org/pkg/awesomebox \ No newline at end of file diff --git a/dwev/inst/boxes-with-pandoc-latex-environment-and-awesomebox/document.pdf b/dwev/inst/boxes-with-pandoc-latex-environment-and-awesomebox/document.pdf deleted file mode 100644 index 49b4de0..0000000 Binary files a/dwev/inst/boxes-with-pandoc-latex-environment-and-awesomebox/document.pdf and /dev/null differ diff --git a/dwev/inst/boxes-with-pandoc-latex-environment-and-awesomebox/preview.png b/dwev/inst/boxes-with-pandoc-latex-environment-and-awesomebox/preview.png deleted file mode 100644 index 455f855..0000000 Binary files a/dwev/inst/boxes-with-pandoc-latex-environment-and-awesomebox/preview.png and /dev/null differ diff --git a/dwev/inst/boxes-with-pandoc-latex-environment-and-tcolorbox/build.sh b/dwev/inst/boxes-with-pandoc-latex-environment-and-tcolorbox/build.sh deleted file mode 100644 index 3d461f0..0000000 --- a/dwev/inst/boxes-with-pandoc-latex-environment-and-tcolorbox/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --filter pandoc-latex-environment --listings \ No newline at end of file diff --git a/dwev/inst/boxes-with-pandoc-latex-environment-and-tcolorbox/document.md b/dwev/inst/boxes-with-pandoc-latex-environment-and-tcolorbox/document.md deleted file mode 100644 index 89eca98..0000000 --- a/dwev/inst/boxes-with-pandoc-latex-environment-and-tcolorbox/document.md +++ /dev/null @@ -1,78 +0,0 @@ ---- -title: "Boxes with pandoc-latex-environment and tcolorbox" -author: [Author] -date: "2020-01-01" -subject: "Markdown" -keywords: [Markdown, Example] -lang: "en" -colorlinks: true -header-includes: -- | - ```{=latex} - \usepackage{tcolorbox} - - \newtcolorbox{info-box}{colback=cyan!5!white,arc=0pt,outer arc=0pt,colframe=cyan!60!black} - \newtcolorbox{warning-box}{colback=orange!5!white,arc=0pt,outer arc=0pt,colframe=orange!80!black} - \newtcolorbox{error-box}{colback=red!5!white,arc=0pt,outer arc=0pt,colframe=red!75!black} - ``` -pandoc-latex-environment: - tcolorbox: [box] - info-box: [info] - warning-box: [warning] - error-box: [error] -... - -# Boxes with `pandoc-latex-environment` and `tcolorbox` - -This example demonstrates the use of the filter [`pandoc-latex-environments`] -to create custom boxes with the [`tcolorbox`] package. -*pandoc-latex-environment* is a pandoc filter for adding LaTeX environment on -specific HTML div tags. For a list of all available options visit the -[`tcolorbox` documentation](https://ctan.org/pkg/tcolorbox). - -## Simple Box - -::: box -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet libero -quis lectus elementum fermentum. -::: - -## Markdown inside the Box - -Markdown formatting inside the environment is supported. - -::: box -Lorem ipsum **dolor** sit amet, `consectetur adipiscing` elit. - -``` -if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); -} -``` - -*Nam aliquet libero -quis lectus elementum fermentum.* -::: - -## Custom Box - -One can define custom boxes in the LaTeX preamble with the variable -`header-includes` at the top of this document. - -::: info -**Info**: This is a custom box that may be used to show info messages in your -document. -::: - -::: warning -**Warning**: This is a custom box that may be used to show warning messages in -your document. -::: - -::: error -**Error**: This is a custom box that may be used to show error messages in your -document. -::: - -[`pandoc-latex-environments`]: https://github.com/chdemko/pandoc-latex-environment/ -[`tcolorbox`]: https://ctan.org/pkg/tcolorbox \ No newline at end of file diff --git a/dwev/inst/boxes-with-pandoc-latex-environment-and-tcolorbox/document.pdf b/dwev/inst/boxes-with-pandoc-latex-environment-and-tcolorbox/document.pdf deleted file mode 100644 index fe2f6b1..0000000 Binary files a/dwev/inst/boxes-with-pandoc-latex-environment-and-tcolorbox/document.pdf and /dev/null differ diff --git a/dwev/inst/boxes-with-pandoc-latex-environment-and-tcolorbox/preview.png b/dwev/inst/boxes-with-pandoc-latex-environment-and-tcolorbox/preview.png deleted file mode 100644 index f93827c..0000000 Binary files a/dwev/inst/boxes-with-pandoc-latex-environment-and-tcolorbox/preview.png and /dev/null differ diff --git a/dwev/inst/build-examples.sh b/dwev/inst/build-examples.sh deleted file mode 100644 index a1a399c..0000000 --- a/dwev/inst/build-examples.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -set -e - -echo "##" -echo "# building examples" -echo "##" -echo "" - -containsElement () { - local e match="$1" - shift - for e; do [[ "$e" == "$match" ]] && return 0; done - return 1 -} - -# these examples are skipped because they don't run in CI builds (for now) -skippedExamples=("language-chinese" "language-japanese") - -# loop all files in the current folder -for f in *; do - # run only for folders - if [ -d "$f" ]; then - - if containsElement "$f" "${skippedExamples[@]}"; then - echo "skipping '$f'" - echo "" - else - echo "building '$f'" - cd "$f" - echo " - running pandoc build script" - bash "$PWD/build.sh" - echo " - generating preview" - pdftoppm -r 150 -png "document.pdf" > "preview.png" - echo "" - cd ".." - fi - fi -done diff --git a/dwev/inst/code-blocks-listings/build.sh b/dwev/inst/code-blocks-listings/build.sh deleted file mode 100644 index ee87a78..0000000 --- a/dwev/inst/code-blocks-listings/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings \ No newline at end of file diff --git a/dwev/inst/code-blocks-listings/document.md b/dwev/inst/code-blocks-listings/document.md deleted file mode 100644 index 63883f7..0000000 --- a/dwev/inst/code-blocks-listings/document.md +++ /dev/null @@ -1,55 +0,0 @@ ---- -title: "Example PDF" -author: [Author] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -... - -# Vinaque sanguine metuenti cuiquam Alcyone fixus - -## Aesculeae domus vincemur et Veneris adsuetus lapsum - -Lorem markdownum Letoia, et alios -- "figurae flectentem annis aliquid Peneosque" ab -esse, 'obstat' gravitate. - -```java -public class Example implements LoremIpsum { - public static void main(String[] args) { - if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); - } - } // Obscura atque coniuge, per de coniunx -} -``` - -Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. Obscura atque coniuge, per de coniunx, sibi medias -commentaque virgine anima tamen comitemque petis, sed. - -```{.html caption="Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. Obscura atque coniuge, per de coniunx, sibi medias -commentaque virgine anima tamen comitemque petis, sed."} - - - - This is the title of the page. - - - This is a link. - This is an image. - - -``` - -Vertitur iura tum nepotis causa; motus. Diva virtus! Acrota -destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente -Pirithoi abstulit, lapides. - -```sql -CREATE TYPE person_t AS ( - firstName VARCHAR(50) NOT NULL, - lastName VARCHAR(50) NOT NULL -); -CREATE Or REPLACE FUNCTION getFormattedName(person) RETURNS text AS - $$ SELECT 'P: ' || initcap($1.firstName); $$ -LANGUAGE SQL; -``` \ No newline at end of file diff --git a/dwev/inst/code-blocks-listings/document.pdf b/dwev/inst/code-blocks-listings/document.pdf deleted file mode 100644 index ff3ce73..0000000 Binary files a/dwev/inst/code-blocks-listings/document.pdf and /dev/null differ diff --git a/dwev/inst/code-blocks-listings/preview.png b/dwev/inst/code-blocks-listings/preview.png deleted file mode 100644 index ec3b4cd..0000000 Binary files a/dwev/inst/code-blocks-listings/preview.png and /dev/null differ diff --git a/dwev/inst/code-blocks-without-listings/build.sh b/dwev/inst/code-blocks-without-listings/build.sh deleted file mode 100644 index f28e859..0000000 --- a/dwev/inst/code-blocks-without-listings/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --highlight-style kate \ No newline at end of file diff --git a/dwev/inst/code-blocks-without-listings/document.md b/dwev/inst/code-blocks-without-listings/document.md deleted file mode 100644 index f8848c5..0000000 --- a/dwev/inst/code-blocks-without-listings/document.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: "Example PDF" -author: [Author] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -lang: "en" -... - -# Vinaque sanguine metuenti cuiquam Alcyone fixus - -Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque -abesse obstat. - -```java -public class Example implements LoremIpsum { - public static void map(String[] sortedLeft, Long[] sortedRight, int splitIndex) { - if(sortedLeft == null || sortedRight == null) { - System.err.println("Lorem ipsum dolor sit amet"); - } - } // Obscura atque coniuge, per de coniunx -} -``` - -Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur -obscura atque coniuge. - -```html - - - - This is the title of the page. - - - This is a link. - This is an image. - - -``` - -Vertitur iura tum nepotis causa; motus. Diva virtus! Acrota destruitis vos -iubet quo et classis excessere. - -```sql -CREATE TYPE person_t AS ( - firstName VARCHAR(50) NOT NULL, -); - -CREATE Or REPLACE FUNCTION getFormattedName(person) RETURNS text AS - $$ SELECT 'P: ' || initcap($1.firstName); $$ -LANGUAGE SQL; -``` \ No newline at end of file diff --git a/dwev/inst/code-blocks-without-listings/document.pdf b/dwev/inst/code-blocks-without-listings/document.pdf deleted file mode 100644 index 2264b3d..0000000 Binary files a/dwev/inst/code-blocks-without-listings/document.pdf and /dev/null differ diff --git a/dwev/inst/code-blocks-without-listings/preview.png b/dwev/inst/code-blocks-without-listings/preview.png deleted file mode 100644 index 16fad36..0000000 Binary files a/dwev/inst/code-blocks-without-listings/preview.png and /dev/null differ diff --git a/dwev/inst/cover1.pdf b/dwev/inst/cover1.pdf deleted file mode 100644 index 9111c08..0000000 Binary files a/dwev/inst/cover1.pdf and /dev/null differ diff --git a/dwev/inst/cover2.pdf b/dwev/inst/cover2.pdf deleted file mode 100644 index 7b8b2a1..0000000 Binary files a/dwev/inst/cover2.pdf and /dev/null differ diff --git a/dwev/inst/cover3.pdf b/dwev/inst/cover3.pdf deleted file mode 100644 index 4bc55bf..0000000 Binary files a/dwev/inst/cover3.pdf and /dev/null differ diff --git a/dwev/inst/cover4.pdf b/dwev/inst/cover4.pdf deleted file mode 100644 index 2eaf27f..0000000 Binary files a/dwev/inst/cover4.pdf and /dev/null differ diff --git a/dwev/inst/covers.pdf b/dwev/inst/covers.pdf deleted file mode 100644 index 845d1f0..0000000 Binary files a/dwev/inst/covers.pdf and /dev/null differ diff --git a/dwev/inst/drwater-gray1.pdf b/dwev/inst/drwater-gray1.pdf deleted file mode 100644 index 7fa9b94..0000000 Binary files a/dwev/inst/drwater-gray1.pdf and /dev/null differ diff --git a/dwev/inst/drwater-green0.pdf b/dwev/inst/drwater-green0.pdf deleted file mode 100644 index 88b7fda..0000000 Binary files a/dwev/inst/drwater-green0.pdf and /dev/null differ diff --git a/dwev/inst/drwater-green1.pdf b/dwev/inst/drwater-green1.pdf deleted file mode 100644 index 091548e..0000000 Binary files a/dwev/inst/drwater-green1.pdf and /dev/null differ diff --git a/dwev/inst/drwater-greenline0.pdf b/dwev/inst/drwater-greenline0.pdf deleted file mode 100644 index 86786fa..0000000 Binary files a/dwev/inst/drwater-greenline0.pdf and /dev/null differ diff --git a/dwev/inst/drwater-white0.pdf b/dwev/inst/drwater-white0.pdf deleted file mode 100644 index ca69ef8..0000000 Binary files a/dwev/inst/drwater-white0.pdf and /dev/null differ diff --git a/dwev/inst/header-and-footer/build.sh b/dwev/inst/header-and-footer/build.sh deleted file mode 100644 index ee87a78..0000000 --- a/dwev/inst/header-and-footer/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings \ No newline at end of file diff --git a/dwev/inst/header-and-footer/document.md b/dwev/inst/header-and-footer/document.md deleted file mode 100644 index f9106f6..0000000 --- a/dwev/inst/header-and-footer/document.md +++ /dev/null @@ -1,62 +0,0 @@ ---- -title: "Example PDF" -author: [Author] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -header-left: "\\hspace{1cm}" -header-center: "\\leftmark" -header-right: "Page \\thepage" -footer-left: "\\thetitle" -footer-center: "This is \\LaTeX{}" -footer-right: "\\theauthor" -... - -# Vinaque sanguine metuenti cuiquam Alcyone fixus - -## Aesculeae domus vincemur et Veneris adsuetus lapsum - -Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab -esse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi **medias -commentaque virgine** anima tamen comitemque petis, sed. In Amphion vestros -hamos ire arceor mandere spicula, in licet aliquando. - -```java -public class Example implements LoremIpsum { - public static void main(String[] args) { - if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); - } - } // Obscura atque coniuge, per de coniunx -} -``` - -Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. -Laudat ille auditi; vertitur iura tum nepotis causa; motus. Diva virtus! Acrota -destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente -Pirithoi abstulit, lapides. - -## Lydia caelo recenti haerebat lacerum ratae at - -Te concepit pollice fugit vias alumno **oras** quam potest -[rursus](http://example.com#rursus) optat. Non evadere orbem equorum, spatiis, -vel pede inter si. - -1. De neque iura aquis -2. Frangitur gaudia mihi eo umor terrae quos -3. Recens diffudit ille tantum - -\begin{equation}\label{eq:neighbor-propability} - p_{ij}(t) = \frac{\ell_j(t) - \ell_i(t)}{\sum_{k \in N_i(t)}^{} \ell_k(t) - \ell_i(t)} -\end{equation} - -Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae -adessent arbor. Florente perque at condeturque saxa et ferarum promittis tendebat. Armos nisi obortas refugit me. - -> Et nepotes poterat, se qui. Euntem ego pater desuetaque aethera Maeandri, et -[Dardanio geminaque](http://example.com#Dardanio_geminaque) cernit. Lassaque poenas -nec, manifesta $\pi r^2$ mirantia captivarum prohibebant scelerato gradus unusque -dura. - -- Permulcens flebile simul -- Iura tum nepotis causa motus diva virtus Acrota. Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae adessent arbor. Florente perque at ire arcum. \ No newline at end of file diff --git a/dwev/inst/header-and-footer/document.pdf b/dwev/inst/header-and-footer/document.pdf deleted file mode 100644 index 495fe6f..0000000 Binary files a/dwev/inst/header-and-footer/document.pdf and /dev/null differ diff --git a/dwev/inst/header-and-footer/preview.png b/dwev/inst/header-and-footer/preview.png deleted file mode 100644 index 2df4748..0000000 Binary files a/dwev/inst/header-and-footer/preview.png and /dev/null differ diff --git a/dwev/inst/images-and-tables/build.sh b/dwev/inst/images-and-tables/build.sh deleted file mode 100644 index ee87a78..0000000 --- a/dwev/inst/images-and-tables/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings \ No newline at end of file diff --git a/dwev/inst/images-and-tables/document.md b/dwev/inst/images-and-tables/document.md deleted file mode 100644 index 395a711..0000000 --- a/dwev/inst/images-and-tables/document.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -title: "Example PDF" -author: [Author] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -lang: "en" -table-use-row-colors: false -... - -# Images and Tables - -## LaTeX Table with Caption - -At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr. - -\begin{longtable}[]{llllllll} -\caption[Nam liber tempor cum soluta nobis eleifend option congue.]{Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.} \\ -\toprule -Test Nr. & Position & Radius & Rot & Grün & Blau & -beste Fitness & Abweichung\tabularnewline -\midrule -\endhead -1 & 20 \% & 20 \% & 20 \% & 20 \% & 20 \% & 7,5219 & -0,9115\tabularnewline -2 & 0 \% & 25 \% & 25 \% & 25 \% & 25 \% & 8,0566 & -1,4462\tabularnewline -3 & 0 \% & 0 \% & 33 \% & 33 \% & 33 \% & 8,7402 & 2,1298\tabularnewline -4 & 50 \% & 20 \% & 10 \% & 10 \% & 10 \% & 6,6104 & -0,0000\tabularnewline -5 & 70 \% & 0 \% & 10 \% & 10 \% & 10 \% & 7,0696 & -0,4592\tabularnewline -6 & 20 \% & 50 \% & 10 \% & 10 \% & 10 \% & 7,0034 & -0,3930\tabularnewline -\bottomrule -\end{longtable} - -At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr. - -## Image with Caption - -![Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.](image.png) - -## Markdown Table without Caption - -Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque abesse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi medias -commentaque virgine anima tamen comitemque petis, sed. In Amphion vestros -hamos ire arceor mandere spicula, in licet aliquando. - -Test Nr. | Position | Radius | Rot | Grün | Blau | beste Fitness | Abweichung | -|---|---|---|---|---|---|---|---| -1 | 20 % | 20 % | 20 % | 20 % | 20 % | 7,5219 | 0,9115 | -2 | 0 % | 25 % | 25 % | 25 % | 25 % | 8,0566 | 1,4462 | -3 | 0 % | 0 % | 33 % | 33 % | 33 % | 8,7402 | 2,1298 | -4 | 50 % | 20 % | 10 % | 10 % | 10 % | 6,6104 | 0,0000 | -5 | 70 % | 0 % | 10 % | 10 % | 10 % | 7,0696 | 0,4592 | -6 | 20 % | 50 % | 10 % | 10 % | 10 % | 7,0034 | 0,3930 | -7 | 40 % | 15 % | 15 % | 15 % | 15 % | 6,9122 | 0,3018 | - -Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. -Laudat ille auditi; vertitur iura tum nepotis causa; motus. Diva virtus! Acrota destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente Pirithoi abstulit, lapides. - -## Image without Caption - -![](image.png) \ No newline at end of file diff --git a/dwev/inst/images-and-tables/document.pdf b/dwev/inst/images-and-tables/document.pdf deleted file mode 100644 index 793e641..0000000 Binary files a/dwev/inst/images-and-tables/document.pdf and /dev/null differ diff --git a/dwev/inst/images-and-tables/image.png b/dwev/inst/images-and-tables/image.png deleted file mode 100644 index 95a787c..0000000 Binary files a/dwev/inst/images-and-tables/image.png and /dev/null differ diff --git a/dwev/inst/images-and-tables/preview.png b/dwev/inst/images-and-tables/preview.png deleted file mode 100644 index 11ffe55..0000000 Binary files a/dwev/inst/images-and-tables/preview.png and /dev/null differ diff --git a/dwev/inst/language-chinese/build.sh b/dwev/inst/language-chinese/build.sh deleted file mode 100644 index 52dad0f..0000000 --- a/dwev/inst/language-chinese/build.sh +++ /dev/null @@ -1,2 +0,0 @@ -# No lang option (-V lang=zh) here because Chinese is unsupported in polyglossia and babel. -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings --pdf-engine "xelatex" -V CJKmainfont="HiraginoSans-W4" \ No newline at end of file diff --git a/dwev/inst/language-chinese/document.md b/dwev/inst/language-chinese/document.md deleted file mode 100644 index 99d1079..0000000 --- a/dwev/inst/language-chinese/document.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -title: "価備手述改陸夜数木田了転由。" -author: [作者日期] -date: "2019-01-10" -subject: "Markdown" -keywords: [Markdown, Example] -... - -# 陣委百三秋康経重示面合雪減背井足府迷根間。 - -陣委百三秋康経重示面合雪減背井足府迷根間。米式十良提馬紀研園要中募用刊。考稿協中写万捜寄三誠女文惑応担。動忍負陣表要回厳盛質属全任。意渡稿針当京注合在成唱皇月諸感丘売。業暮題武同海変公飯伝習真質期込者。読性聞点社質求庫勢応系飛。読有約求不政球県台却観展明来連使。暗双属場證北日増吉望団私録写日奈惑紙。 - -賞方広選付疑京将主豊祉歳兆。亮行災視民信軒全太当刑際大。設紙校系顔実困講将用求年作。禁査調線無聞銅案性約会有整兄名城敬番棋。催題趣蔵今権全演権専治整。記査調埼毎断読犬石川年実作問情設情経。地面観参軽地多愛提帯瀬面側天側。価備手述改陸夜数木田了転由。上転為護吾載何研防著取足調出声的与歯。 - -## 参街能業南達伊市無百兆無聞手覧常努団他。 - -参街能業南達伊市無百兆無聞手覧常努団他。応臨覧処面板施盛会同交展安期。善無継東約知紙地言展掲世起都幕紙仕。配稿理第心酸知月勝庭上図真全。本顕品毎信稿蓄秀神池課道。空米打資級油週報白受支写住文科権初航逮政。売打込箕長陳雪択選男真庭。改取確育迎田袴者豊尾京毎景終彦思。意試役能五子込宙転知校細。内速排索医林経一応係古測辺水。 - -紋正介市及早拒木霊記済複治中。了岐都援盛手価民選覧必庭温背木済円力治。年生算純投器小市系統出字明稚喫部秘集。背伝歳適虫解無集園意明属賞方社件。公紹情高無主考全度監授掲。三退新田面封一基会功康売詳夜増義芸。特積夫紀北赤子演載識顔産済再測質。新岐張年読原体畑住郎門当合止吹士天意藤。明延立派購新政医士定速農。 - -神図先名当揃存工紙広渡民晩記各面得続告増。将枝素実更造藤胞界投健記室申張講訴。店裁山党手政者校訓会清終定浪案。普大的比将響認経変度与合兄退景意経。歌池京割覧製断訳載割写載女作想用魂覚申。舞夜負亡古特在事準催進不全先自代上業後者。学上育手係真最芋本代定作供下能読分。 - -- 汁酬英性向竹室比著給稿刻学年機稿生写。投面記偏回必写際著危女競林思。対事管現馬打能夜月顧身最恵共谷盟社必出。事退問更理併裏少切写禁権丁金提限最写求。者打記舎作馬研作辞家地子無遠者情島。諸井訓団取転燃大広応毎断略並。力持極業育権者住今展線際玉。集政謙期伝変争一他拉方海話連委下混必。囲渡園早位形量英酒椅食始発児政。 -- 年京船装街論初維器送遂考都連。携訪後細断点洋再説月間必道休光事築河。聞直電原竹銭報発興埼校球米口暮定奨重芸聞。京和使検聞服運加航認著著真技事実。弘断機試勢感金換稼治山谷皇真人肥霧。夜需崎影書属葉総登抜見発養内日現際園。場小行評歳映徹浸力政中募暮日朝金子武東。映申地換方無次記暮動練供事惑部意喜半戦壇。 -- 勝技枝図辞決受温見会図休自意少帰質者栄。務単時幹典盟園先入販江紀聞択色務。逮人覇品努博関復際部給体寛明理。限袖住教催広州係響体回接決治過銀。世提応枝録少説営援紙遠勤災宿。試電重捕切譜練治真戦将東。在最真休治義地杉調掲参親平。必整能怒哲希存雪注気付終表転県横隊早。覧教夕徹八学然害犬米無調億立図平受受位編。 - -昌手挨一主要入削禁図送無高慕収後毎投業。感心台観道際町存更団打目今。生記投報重東点回際護高田独東。球野技検業大芸聞共最集飛禁。無黄手著凱縮産総智幕配示。名旧合提丼畿幅間任問場投悪変団。津地全真罪禁友容崩図新足連問完。域勲市録関写気意傷遣米安極漢。個疑調尾陸能案相浮接格校田新本下能。日銭信茶岡実締繰先分読独娘製商損真情。 \ No newline at end of file diff --git a/dwev/inst/language-chinese/document.pdf b/dwev/inst/language-chinese/document.pdf deleted file mode 100644 index a250906..0000000 Binary files a/dwev/inst/language-chinese/document.pdf and /dev/null differ diff --git a/dwev/inst/language-chinese/preview.png b/dwev/inst/language-chinese/preview.png deleted file mode 100644 index 89ca6e0..0000000 Binary files a/dwev/inst/language-chinese/preview.png and /dev/null differ diff --git a/dwev/inst/language-german/build.sh b/dwev/inst/language-german/build.sh deleted file mode 100644 index ee87a78..0000000 --- a/dwev/inst/language-german/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings \ No newline at end of file diff --git a/dwev/inst/language-german/document.md b/dwev/inst/language-german/document.md deleted file mode 100644 index c73b5da..0000000 --- a/dwev/inst/language-german/document.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: "Vinaque sanguine metuenti cuiquam Alcyone fixus" -author: [Author Name] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -lang: "de" -... - -# Vinaque sanguine metuenti cuiquam Alcyone fixus - -## Aesculeae domus vincemur et Veneris adsuetus lapsum - -Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab -esse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi **medias -commentaque virgine** anima tamen comitemque petis, sed. In Amphion vestros -hamos ire arceor mandere spicula, in licet aliquando. - -```java -public class Example implements LoremIpsum { - public static void main(String[] args) { - if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); - } - } // Obscura atque coniuge, per de coniunx -} -``` - -Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. -Laudat ille auditi; vertitur iura tum nepotis causa; motus. Diva virtus! Acrota -destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente -Pirithoi abstulit, lapides. - -## Lydia caelo recenti haerebat lacerum ratae at - -Te concepit pollice fugit vias alumno **oras** quam potest -[rursus](http://example.com#rursus) optat. Non evadere orbem equorum, spatiis, -vel pede inter si. - -1. De neque iura aquis -2. Frangitur gaudia mihi eo umor terrae quos -3. Recens diffudit ille tantum - -\begin{equation}\label{eq:neighbor-propability} - p_{ij}(t) = \frac{\ell_j(t) - \ell_i(t)}{\sum_{k \in N_i(t)}^{} \ell_k(t) - \ell_i(t)} -\end{equation} - -Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae -adessent arbor. Florente perque at condeturque saxa et ferarum promittis tendebat. Armos nisi obortas refugit me. - -Et nepotes poterat, se qui. Euntem ego pater desuetaque aethera Maeandri, et -[Dardanio geminaque](http://example.com#Dardanio_geminaque) cernit. Lassaque poenas -nec, manifesta $\pi r^2$ mirantia captivarum prohibebant scelerato gradus unusque -dura. - -- Permulcens flebile simul -- Iura tum nepotis causa motus diva virtus Acrota. Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae adessent arbor. Florente perque at ire arcum. \ No newline at end of file diff --git a/dwev/inst/language-german/document.pdf b/dwev/inst/language-german/document.pdf deleted file mode 100644 index 14e3ff5..0000000 Binary files a/dwev/inst/language-german/document.pdf and /dev/null differ diff --git a/dwev/inst/language-german/preview.png b/dwev/inst/language-german/preview.png deleted file mode 100644 index e2e4a85..0000000 Binary files a/dwev/inst/language-german/preview.png and /dev/null differ diff --git a/dwev/inst/language-japanese/build.sh b/dwev/inst/language-japanese/build.sh deleted file mode 100644 index 5b7f640..0000000 --- a/dwev/inst/language-japanese/build.sh +++ /dev/null @@ -1,2 +0,0 @@ -# No lang option (-V lang=jp) here because Japanese unsupported in polyglossia. -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings --pdf-engine "xelatex" -V CJKmainfont="HiraginoSans-W4" \ No newline at end of file diff --git a/dwev/inst/language-japanese/document.md b/dwev/inst/language-japanese/document.md deleted file mode 100644 index 942126b..0000000 --- a/dwev/inst/language-japanese/document.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: "よ派にへたひ素ヘムナフュてるあてっはれねね区露。巣擢" -author: [むて絵ヤイヤ手津絵] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -... - -# よ派にへたひ素ヘムナフュてるあてっはれねね区露。巣擢 - - -もに氏留列阿ゃけんリヌョソュろまけやほこまネクフコテユうめね瀬雲舳目ょ舳鵜みやいみま。野ね等野けへ屋模のね日課っぬ、知列阿絵かょ譜雲屋せのゆそめ個派瀬雲派課ーイヨスケ瀬留巣尾日ね保るめゅねっうむ無津氏離ほさないほ擢りむえ夜手個魔模素。 - -よ派にへたひ素ヘムナフュてるあてっはれねね区露。巣擢。むて絵ヤイヤ手津絵舳ふち屋区根っクキオ氏露すムフヘゅ二遊むねれみらなまそ瀬ぬゆたヘクアウはてとしまる知。 - -むゆくら雲津手都あもは日遊れりゅへらっ日保留鵜絵す。の露日無ゆ遊二日りスツ毛留御遊擢御無模無ょやゆ樹毛阿留等、樹ルキテひょとて区列屋。うかるゃええま二擢きかしあんつ擢、っさく遊手名区列手ウヌマ区根以擢模擢素けせのれひんほおはよこふきなろ樹舳野尾尾ゃほふ列擢瀬舳名個区等こに名津、根夜、お。ろやほ保素根列らゆやしえろむっンサハラオ。 - -## とほ知他え目絵樹せ津素舳雲巣魔氏派夜列魔 - -まの課譜都手、やいゆぬてほめてよかおそふおょこ尾夜く阿差課根ぬナヒメケ舳二しけやろこち譜は巣津やれま、ネョセカあきあメシみ根根るあ、ろへ離都課ろうらくぬさにせぬ尾模等せ樹魔いそょ毛もし御名氏知。 - -課瀬毛御都列ヒャマナカフモ絵区区遊譜ほ、ほすゃもキウぬノサクサめろそなる他他津ふまお、譜阿手派夜っ他個かたか舳鵜日魔日雲派二離、にひ巣氏めすおひふめへな区っ鵜名瀬むう。ヨツミメ区素他都めすそか課区なうよ以遊へ。いり他譜けっへつ。保阿模野列魔てえ。以区素。 - -離擢留舳区クツコこつろと魔、ょもさよ尾うとほ知他え目絵樹せ津素舳雲巣魔氏派夜列魔氏絵夜課阿ふ知知区擢魔野さうにりよりうゅ個課列野ゃす毛二絵手ぬえ派尾樹屋夜。夜絵毛毛すりおいし遊手夜毛無とゆ瀬野毛名個ふふえゃ無都名無他氏等ふこたも。 - -以たろきお都ゆし阿列鵜擢おんか、ッロマオゅ露他野列せ譜模ョー鵜尾野手毛素、ひす素野ろ氏御氏屋ほはもらりむふ離個とろいそつむ差手こつけっとへせっ。りぬ目無舳めむや離離ょほんく阿せえのんやや離雲雲魔はゃれひ。りそさ無阿樹さかん屋絵氏、つ区差。しレヨオキホテゆもお尾巣けのすもめきむやひけ。尾御津区列列課都雲り樹めぬやむては、舳名夜ッラチユ列都、保露、魔鵜。 - -1. りぬ目無舳めむや離離ょほんく阿せえのんやや離雲雲魔はゃれひ。りそさ無阿樹さかん屋絵氏、つ区差。しレヨオキホテゆもお -2. へ舳列っに「屋素留御以根」露派差離鵜けきうっ雲目以ナシ。日氏すゅともむ樹留素ふりう氏日夜れと -3. 他根かかぬ、くきれみけおへえほん保派絵くけよ譜モヌッアアウカ留譜絵目課離根以名阿さ樹他クッカクラ無課課瀬めつ列氏課そ目知屋舳手らへ舳列っに「屋素留御以根」露派差離鵜けきうっ雲目以ナシ。日氏すゅともむ樹留素ふりう氏日夜れとせさ鵜知めっゃ瀬露めゅむに遊雲舳野ひひよやめほくさめう舳名都とにてめは無めもはすにちひ遊モシルもねたらやょや。知以ほ以名さきにまむろせちょったか毛御差巣夜氏、きまむこ列模模阿。 - -阿瀬鵜屋さねや、う他列舳ヤマりれえんか、尾瀬カコノヒ名課巣鵜津せやおひく知二保手、そ派毛遊へろへよ。みす派毛はうよ樹二御派派等メノコせ区さ巣屋名のせ野毛。 \ No newline at end of file diff --git a/dwev/inst/language-japanese/document.pdf b/dwev/inst/language-japanese/document.pdf deleted file mode 100644 index 5a64daf..0000000 Binary files a/dwev/inst/language-japanese/document.pdf and /dev/null differ diff --git a/dwev/inst/language-japanese/preview.png b/dwev/inst/language-japanese/preview.png deleted file mode 100644 index 6e3a8d4..0000000 Binary files a/dwev/inst/language-japanese/preview.png and /dev/null differ diff --git a/dwev/inst/page-background/backgrounds/background1.pdf b/dwev/inst/page-background/backgrounds/background1.pdf deleted file mode 100644 index c0850b1..0000000 --- a/dwev/inst/page-background/backgrounds/background1.pdf +++ /dev/null @@ -1,70 +0,0 @@ -%PDF-1.5 -% -3 0 obj -<< /Length 4 0 R - /Filter /FlateDecode ->> -stream -xeA@Es -. #.OѤiؐ* cw]B#X;\~JMb}j: {1mB -endstream -endobj -4 0 obj - 162 -endobj -2 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -5 0 obj -<< /Type /Page - /Parent 1 0 R - /MediaBox [ 0 0 595.275574 841.889771 ] - /Contents 3 0 R - /Group << - /Type /Group - /S /Transparency - /I true - /CS /DeviceRGB - >> - /Resources 2 0 R ->> -endobj -1 0 obj -<< /Type /Pages - /Kids [ 5 0 R ] - /Count 1 ->> -endobj -6 0 obj -<< /Creator (cairo 1.14.8 (http://cairographics.org)) - /Producer (cairo 1.14.8 (http://cairographics.org)) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000576 00000 n -0000000276 00000 n -0000000015 00000 n -0000000254 00000 n -0000000348 00000 n -0000000641 00000 n -0000000768 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -820 -%%EOF diff --git a/dwev/inst/page-background/backgrounds/background10.pdf b/dwev/inst/page-background/backgrounds/background10.pdf deleted file mode 100644 index 709be17..0000000 --- a/dwev/inst/page-background/backgrounds/background10.pdf +++ /dev/null @@ -1,69 +0,0 @@ -%PDF-1.5 -% -3 0 obj -<< /Length 4 0 R - /Filter /FlateDecode ->> -stream -xeK@@s -. 8GpaE]Od4,=^x wS\=@CeykBsXp1LH*a rլVUb/LP1D -endstream -endobj -4 0 obj - 150 -endobj -2 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -5 0 obj -<< /Type /Page - /Parent 1 0 R - /MediaBox [ 0 0 595.275574 841.889771 ] - /Contents 3 0 R - /Group << - /Type /Group - /S /Transparency - /I true - /CS /DeviceRGB - >> - /Resources 2 0 R ->> -endobj -1 0 obj -<< /Type /Pages - /Kids [ 5 0 R ] - /Count 1 ->> -endobj -6 0 obj -<< /Creator (cairo 1.14.8 (http://cairographics.org)) - /Producer (cairo 1.14.8 (http://cairographics.org)) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000564 00000 n -0000000264 00000 n -0000000015 00000 n -0000000242 00000 n -0000000336 00000 n -0000000629 00000 n -0000000756 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -808 -%%EOF diff --git a/dwev/inst/page-background/backgrounds/background11.pdf b/dwev/inst/page-background/backgrounds/background11.pdf deleted file mode 100644 index 946cd45..0000000 Binary files a/dwev/inst/page-background/backgrounds/background11.pdf and /dev/null differ diff --git a/dwev/inst/page-background/backgrounds/background2.pdf b/dwev/inst/page-background/backgrounds/background2.pdf deleted file mode 100644 index 054baf7..0000000 Binary files a/dwev/inst/page-background/backgrounds/background2.pdf and /dev/null differ diff --git a/dwev/inst/page-background/backgrounds/background3.pdf b/dwev/inst/page-background/backgrounds/background3.pdf deleted file mode 100644 index b8aef37..0000000 Binary files a/dwev/inst/page-background/backgrounds/background3.pdf and /dev/null differ diff --git a/dwev/inst/page-background/backgrounds/background4.pdf b/dwev/inst/page-background/backgrounds/background4.pdf deleted file mode 100644 index 604b06e..0000000 --- a/dwev/inst/page-background/backgrounds/background4.pdf +++ /dev/null @@ -1,69 +0,0 @@ -%PDF-1.5 -% -3 0 obj -<< /Length 4 0 R - /Filter /FlateDecode ->> -stream -xeN 0 { -/'v`=eX("== +^]+V(K\g-Ie ^9ufwqqcUHOhl9JSrj]H$O6{ʥ_<_IHa 368;s+Ck -endstream -endobj -4 0 obj - 158 -endobj -2 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -5 0 obj -<< /Type /Page - /Parent 1 0 R - /MediaBox [ 0 0 595.275574 841.889771 ] - /Contents 3 0 R - /Group << - /Type /Group - /S /Transparency - /I true - /CS /DeviceRGB - >> - /Resources 2 0 R ->> -endobj -1 0 obj -<< /Type /Pages - /Kids [ 5 0 R ] - /Count 1 ->> -endobj -6 0 obj -<< /Creator (cairo 1.14.8 (http://cairographics.org)) - /Producer (cairo 1.14.8 (http://cairographics.org)) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000572 00000 n -0000000272 00000 n -0000000015 00000 n -0000000250 00000 n -0000000344 00000 n -0000000637 00000 n -0000000764 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -816 -%%EOF diff --git a/dwev/inst/page-background/backgrounds/background5.pdf b/dwev/inst/page-background/backgrounds/background5.pdf deleted file mode 100644 index f7839c3..0000000 --- a/dwev/inst/page-background/backgrounds/background5.pdf +++ /dev/null @@ -1,70 +0,0 @@ -%PDF-1.5 -% -3 0 obj -<< /Length 4 0 R - /Filter /FlateDecode ->> -stream -xm;@ D=/18 K삢D -rƯ0f|%߅ 1Dg,7 -!ijҔP /chpxr‰1W^Qd%q!9ZDj UѪApr$&]x_ʑȽIW?fr)6EU -endstream -endobj -4 0 obj - 168 -endobj -2 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -5 0 obj -<< /Type /Page - /Parent 1 0 R - /MediaBox [ 0 0 595.275574 841.889771 ] - /Contents 3 0 R - /Group << - /Type /Group - /S /Transparency - /I true - /CS /DeviceRGB - >> - /Resources 2 0 R ->> -endobj -1 0 obj -<< /Type /Pages - /Kids [ 5 0 R ] - /Count 1 ->> -endobj -6 0 obj -<< /Creator (cairo 1.14.8 (http://cairographics.org)) - /Producer (cairo 1.14.8 (http://cairographics.org)) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000582 00000 n -0000000282 00000 n -0000000015 00000 n -0000000260 00000 n -0000000354 00000 n -0000000647 00000 n -0000000774 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -826 -%%EOF diff --git a/dwev/inst/page-background/backgrounds/background6.pdf b/dwev/inst/page-background/backgrounds/background6.pdf deleted file mode 100644 index 41702d0..0000000 Binary files a/dwev/inst/page-background/backgrounds/background6.pdf and /dev/null differ diff --git a/dwev/inst/page-background/backgrounds/background7.pdf b/dwev/inst/page-background/backgrounds/background7.pdf deleted file mode 100644 index c7f3354..0000000 --- a/dwev/inst/page-background/backgrounds/background7.pdf +++ /dev/null @@ -1,68 +0,0 @@ -%PDF-1.5 -% -3 0 obj -<< /Length 4 0 R - /Filter /FlateDecode ->> -stream -x1nAE908"qR@+mh==nNp , .φA2 $࠙ҐF1}7\v9Κvf_":eRijҎ*ف}FSVel~-%K{t'khXK"qg6lX -endstream -endobj -4 0 obj - 198 -endobj -2 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -5 0 obj -<< /Type /Page - /Parent 1 0 R - /MediaBox [ 0 0 595.275574 841.889771 ] - /Contents 3 0 R - /Group << - /Type /Group - /S /Transparency - /I true - /CS /DeviceRGB - >> - /Resources 2 0 R ->> -endobj -1 0 obj -<< /Type /Pages - /Kids [ 5 0 R ] - /Count 1 ->> -endobj -6 0 obj -<< /Creator (cairo 1.14.8 (http://cairographics.org)) - /Producer (cairo 1.14.8 (http://cairographics.org)) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000612 00000 n -0000000312 00000 n -0000000015 00000 n -0000000290 00000 n -0000000384 00000 n -0000000677 00000 n -0000000804 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -856 -%%EOF diff --git a/dwev/inst/page-background/backgrounds/background8.pdf b/dwev/inst/page-background/backgrounds/background8.pdf deleted file mode 100644 index 06efe81..0000000 Binary files a/dwev/inst/page-background/backgrounds/background8.pdf and /dev/null differ diff --git a/dwev/inst/page-background/backgrounds/background9.pdf b/dwev/inst/page-background/backgrounds/background9.pdf deleted file mode 100644 index da3a1ef..0000000 --- a/dwev/inst/page-background/backgrounds/background9.pdf +++ /dev/null @@ -1,69 +0,0 @@ -%PDF-1.5 -% -3 0 obj -<< /Length 4 0 R - /Filter /FlateDecode ->> -stream -xPKn1\`(`0p!Lh_QHEwcJp6Pƈ`mb@6bL턃 `!$bM5CFvrGneu;zu&e̿v 9vQFֻZ]e7e)+G' -4?Ivi/XG -endstream -endobj -4 0 obj - 195 -endobj -2 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -5 0 obj -<< /Type /Page - /Parent 1 0 R - /MediaBox [ 0 0 595.275574 841.889771 ] - /Contents 3 0 R - /Group << - /Type /Group - /S /Transparency - /I true - /CS /DeviceRGB - >> - /Resources 2 0 R ->> -endobj -1 0 obj -<< /Type /Pages - /Kids [ 5 0 R ] - /Count 1 ->> -endobj -6 0 obj -<< /Creator (cairo 1.14.8 (http://cairographics.org)) - /Producer (cairo 1.14.8 (http://cairographics.org)) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000609 00000 n -0000000309 00000 n -0000000015 00000 n -0000000287 00000 n -0000000381 00000 n -0000000674 00000 n -0000000801 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -853 -%%EOF diff --git a/dwev/inst/page-background/build.sh b/dwev/inst/page-background/build.sh deleted file mode 100644 index ee87a78..0000000 --- a/dwev/inst/page-background/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings \ No newline at end of file diff --git a/dwev/inst/page-background/document.md b/dwev/inst/page-background/document.md deleted file mode 100644 index ff460e5..0000000 --- a/dwev/inst/page-background/document.md +++ /dev/null @@ -1,59 +0,0 @@ ---- -title: "Vinaque sanguine metuenti cuiquam Alcyone fixus" -author: [Author Name] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -subtitle: "Aesculeae domus vincemur et Veneris adsuetus lapsum" -lang: "en" -page-background: "backgrounds/background1.pdf" -... - -# Vinaque sanguine metuenti cuiquam Alcyone fixus - -## Aesculeae domus vincemur et Veneris adsuetus lapsum - -Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab -esse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi **medias -commentaque virgine** anima tamen comitemque petis, sed. In Amphion vestros -hamos ire arceor mandere spicula, in licet aliquando. - -```java -public class Example implements LoremIpsum { - public static void main(String[] args) { - if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); - } - } // Obscura atque coniuge, per de coniunx -} -``` - -Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. -Laudat ille auditi; vertitur iura tum nepotis causa; motus. Diva virtus! Acrota -destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente -Pirithoi abstulit, lapides. - -## Lydia caelo recenti haerebat lacerum ratae at - -Te concepit pollice fugit vias alumno **oras** quam potest -[rursus](http://example.com#rursus) optat. Non evadere orbem equorum, spatiis, -vel pede inter si. - -1. De neque iura aquis -2. Frangitur gaudia mihi eo umor terrae quos -3. Recens diffudit ille tantum - -\begin{equation}\label{eq:neighbor-propability} - p_{ij}(t) = \frac{\ell_j(t) - \ell_i(t)}{\sum_{k \in N_i(t)}^{} \ell_k(t) - \ell_i(t)} -\end{equation} - -Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae -adessent arbor. Florente perque at condeturque saxa et ferarum promittis tendebat. Armos nisi obortas refugit me. - -Et nepotes poterat, se qui. Euntem ego pater desuetaque aethera Maeandri, et -[Dardanio geminaque](http://example.com#Dardanio_geminaque) cernit. Lassaque poenas -nec, manifesta $\pi r^2$ mirantia captivarum prohibebant scelerato gradus unusque -dura. - -- Permulcens flebile simul -- Iura tum nepotis causa motus diva virtus Acrota. Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae adessent arbor. Florente perque at ire arcum. \ No newline at end of file diff --git a/dwev/inst/page-background/document.pdf b/dwev/inst/page-background/document.pdf deleted file mode 100644 index b4f9154..0000000 Binary files a/dwev/inst/page-background/document.pdf and /dev/null differ diff --git a/dwev/inst/page-background/preview.png b/dwev/inst/page-background/preview.png deleted file mode 100644 index f9fb9e4..0000000 Binary files a/dwev/inst/page-background/preview.png and /dev/null differ diff --git a/dwev/inst/rceeslogo.pdf b/dwev/inst/rceeslogo.pdf deleted file mode 100644 index 51d1a45..0000000 Binary files a/dwev/inst/rceeslogo.pdf and /dev/null differ diff --git a/dwev/inst/rceeslogo.svg b/dwev/inst/rceeslogo.svg deleted file mode 100644 index 44431ff..0000000 --- a/dwev/inst/rceeslogo.svg +++ /dev/null @@ -1,5 +0,0 @@ - - viewBox="0 0 621 690"> - - - diff --git a/dwev/inst/table-of-contents/build.sh b/dwev/inst/table-of-contents/build.sh deleted file mode 100644 index a2080cf..0000000 --- a/dwev/inst/table-of-contents/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" \ No newline at end of file diff --git a/dwev/inst/table-of-contents/document.md b/dwev/inst/table-of-contents/document.md deleted file mode 100644 index da93460..0000000 --- a/dwev/inst/table-of-contents/document.md +++ /dev/null @@ -1,59 +0,0 @@ ---- -title: "Example PDF" -author: [Author] -date: "2022-03-04" -subject: "Markdown" -keywords: [Markdown, Example] -lang: "en" -toc: true -toc-own-page: true -... - -# Vinaque sanguine metuenti cuiquam Alcyone fixus - -## Aesculeae domus vincemur et Veneris adsuetus lapsum - -Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab -esse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi **medias -commentaque virgine** anima tamen comitemque petis, sed. In Amphion vestros -hamos ire arceor mandere spicula, in licet aliquando. - -```java -public class Example implements LoremIpsum { - public static void main(String[] args) { - if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); - } - } // Obscura atque coniuge, per de coniunx -} -``` - -Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. -Laudat ille auditi; vertitur iura tum nepotis causa; motus. Diva virtus! Acrota -destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente -Pirithoi abstulit, lapides. - -## Lydia caelo recenti haerebat lacerum ratae at - -Te concepit pollice fugit vias alumno **oras** quam potest -[rursus](http://example.com#rursus) optat. Non evadere orbem equorum, spatiis, -vel pede inter si. - -1. De neque iura aquis -2. Frangitur gaudia mihi eo umor terrae quos -3. Recens diffudit ille tantum - -\begin{equation}\label{eq:neighbor-propability} - p_{ij}(t) = \frac{\ell_j(t) - \ell_i(t)}{\sum_{k \in N_i(t)}^{} \ell_k(t) - \ell_i(t)} -\end{equation} - -Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae -adessent arbor. Florente perque at condeturque saxa et ferarum promittis tendebat. Armos nisi obortas refugit me. - -> Et nepotes poterat, se qui. Euntem ego pater desuetaque aethera Maeandri, et -[Dardanio geminaque](http://example.com#Dardanio_geminaque) cernit. Lassaque poenas -nec, manifesta $\pi r^2$ mirantia captivarum prohibebant scelerato gradus unusque -dura. - -- Permulcens flebile simul -- Iura tum nepotis causa motus diva virtus Acrota. Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae adessent arbor. Florente perque at ire arcum. \ No newline at end of file diff --git a/dwev/inst/table-of-contents/document.pdf b/dwev/inst/table-of-contents/document.pdf deleted file mode 100644 index bbb78f3..0000000 Binary files a/dwev/inst/table-of-contents/document.pdf and /dev/null differ diff --git a/dwev/inst/table-of-contents/preview.png b/dwev/inst/table-of-contents/preview.png deleted file mode 100644 index 80a0dbf..0000000 Binary files a/dwev/inst/table-of-contents/preview.png and /dev/null differ diff --git a/dwev/inst/title-page-background/backgrounds/background1.pdf b/dwev/inst/title-page-background/backgrounds/background1.pdf deleted file mode 100644 index c0850b1..0000000 --- a/dwev/inst/title-page-background/backgrounds/background1.pdf +++ /dev/null @@ -1,70 +0,0 @@ -%PDF-1.5 -% -3 0 obj -<< /Length 4 0 R - /Filter /FlateDecode ->> -stream -xeA@Es -. #.OѤiؐ* cw]B#X;\~JMb}j: {1mB -endstream -endobj -4 0 obj - 162 -endobj -2 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -5 0 obj -<< /Type /Page - /Parent 1 0 R - /MediaBox [ 0 0 595.275574 841.889771 ] - /Contents 3 0 R - /Group << - /Type /Group - /S /Transparency - /I true - /CS /DeviceRGB - >> - /Resources 2 0 R ->> -endobj -1 0 obj -<< /Type /Pages - /Kids [ 5 0 R ] - /Count 1 ->> -endobj -6 0 obj -<< /Creator (cairo 1.14.8 (http://cairographics.org)) - /Producer (cairo 1.14.8 (http://cairographics.org)) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000576 00000 n -0000000276 00000 n -0000000015 00000 n -0000000254 00000 n -0000000348 00000 n -0000000641 00000 n -0000000768 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -820 -%%EOF diff --git a/dwev/inst/title-page-background/backgrounds/background10.pdf b/dwev/inst/title-page-background/backgrounds/background10.pdf deleted file mode 100644 index 709be17..0000000 --- a/dwev/inst/title-page-background/backgrounds/background10.pdf +++ /dev/null @@ -1,69 +0,0 @@ -%PDF-1.5 -% -3 0 obj -<< /Length 4 0 R - /Filter /FlateDecode ->> -stream -xeK@@s -. 8GpaE]Od4,=^x wS\=@CeykBsXp1LH*a rլVUb/LP1D -endstream -endobj -4 0 obj - 150 -endobj -2 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -5 0 obj -<< /Type /Page - /Parent 1 0 R - /MediaBox [ 0 0 595.275574 841.889771 ] - /Contents 3 0 R - /Group << - /Type /Group - /S /Transparency - /I true - /CS /DeviceRGB - >> - /Resources 2 0 R ->> -endobj -1 0 obj -<< /Type /Pages - /Kids [ 5 0 R ] - /Count 1 ->> -endobj -6 0 obj -<< /Creator (cairo 1.14.8 (http://cairographics.org)) - /Producer (cairo 1.14.8 (http://cairographics.org)) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000564 00000 n -0000000264 00000 n -0000000015 00000 n -0000000242 00000 n -0000000336 00000 n -0000000629 00000 n -0000000756 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -808 -%%EOF diff --git a/dwev/inst/title-page-background/backgrounds/background11.pdf b/dwev/inst/title-page-background/backgrounds/background11.pdf deleted file mode 100644 index 946cd45..0000000 Binary files a/dwev/inst/title-page-background/backgrounds/background11.pdf and /dev/null differ diff --git a/dwev/inst/title-page-background/backgrounds/background2.pdf b/dwev/inst/title-page-background/backgrounds/background2.pdf deleted file mode 100644 index 054baf7..0000000 Binary files a/dwev/inst/title-page-background/backgrounds/background2.pdf and /dev/null differ diff --git a/dwev/inst/title-page-background/backgrounds/background3.pdf b/dwev/inst/title-page-background/backgrounds/background3.pdf deleted file mode 100644 index b8aef37..0000000 Binary files a/dwev/inst/title-page-background/backgrounds/background3.pdf and /dev/null differ diff --git a/dwev/inst/title-page-background/backgrounds/background4.pdf b/dwev/inst/title-page-background/backgrounds/background4.pdf deleted file mode 100644 index 604b06e..0000000 --- a/dwev/inst/title-page-background/backgrounds/background4.pdf +++ /dev/null @@ -1,69 +0,0 @@ -%PDF-1.5 -% -3 0 obj -<< /Length 4 0 R - /Filter /FlateDecode ->> -stream -xeN 0 { -/'v`=eX("== +^]+V(K\g-Ie ^9ufwqqcUHOhl9JSrj]H$O6{ʥ_<_IHa 368;s+Ck -endstream -endobj -4 0 obj - 158 -endobj -2 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -5 0 obj -<< /Type /Page - /Parent 1 0 R - /MediaBox [ 0 0 595.275574 841.889771 ] - /Contents 3 0 R - /Group << - /Type /Group - /S /Transparency - /I true - /CS /DeviceRGB - >> - /Resources 2 0 R ->> -endobj -1 0 obj -<< /Type /Pages - /Kids [ 5 0 R ] - /Count 1 ->> -endobj -6 0 obj -<< /Creator (cairo 1.14.8 (http://cairographics.org)) - /Producer (cairo 1.14.8 (http://cairographics.org)) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000572 00000 n -0000000272 00000 n -0000000015 00000 n -0000000250 00000 n -0000000344 00000 n -0000000637 00000 n -0000000764 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -816 -%%EOF diff --git a/dwev/inst/title-page-background/backgrounds/background5.pdf b/dwev/inst/title-page-background/backgrounds/background5.pdf deleted file mode 100644 index f7839c3..0000000 --- a/dwev/inst/title-page-background/backgrounds/background5.pdf +++ /dev/null @@ -1,70 +0,0 @@ -%PDF-1.5 -% -3 0 obj -<< /Length 4 0 R - /Filter /FlateDecode ->> -stream -xm;@ D=/18 K삢D -rƯ0f|%߅ 1Dg,7 -!ijҔP /chpxr‰1W^Qd%q!9ZDj UѪApr$&]x_ʑȽIW?fr)6EU -endstream -endobj -4 0 obj - 168 -endobj -2 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -5 0 obj -<< /Type /Page - /Parent 1 0 R - /MediaBox [ 0 0 595.275574 841.889771 ] - /Contents 3 0 R - /Group << - /Type /Group - /S /Transparency - /I true - /CS /DeviceRGB - >> - /Resources 2 0 R ->> -endobj -1 0 obj -<< /Type /Pages - /Kids [ 5 0 R ] - /Count 1 ->> -endobj -6 0 obj -<< /Creator (cairo 1.14.8 (http://cairographics.org)) - /Producer (cairo 1.14.8 (http://cairographics.org)) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000582 00000 n -0000000282 00000 n -0000000015 00000 n -0000000260 00000 n -0000000354 00000 n -0000000647 00000 n -0000000774 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -826 -%%EOF diff --git a/dwev/inst/title-page-background/backgrounds/background6.pdf b/dwev/inst/title-page-background/backgrounds/background6.pdf deleted file mode 100644 index 41702d0..0000000 Binary files a/dwev/inst/title-page-background/backgrounds/background6.pdf and /dev/null differ diff --git a/dwev/inst/title-page-background/backgrounds/background7.pdf b/dwev/inst/title-page-background/backgrounds/background7.pdf deleted file mode 100644 index c7f3354..0000000 --- a/dwev/inst/title-page-background/backgrounds/background7.pdf +++ /dev/null @@ -1,68 +0,0 @@ -%PDF-1.5 -% -3 0 obj -<< /Length 4 0 R - /Filter /FlateDecode ->> -stream -x1nAE908"qR@+mh==nNp , .φA2 $࠙ҐF1}7\v9Κvf_":eRijҎ*ف}FSVel~-%K{t'khXK"qg6lX -endstream -endobj -4 0 obj - 198 -endobj -2 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -5 0 obj -<< /Type /Page - /Parent 1 0 R - /MediaBox [ 0 0 595.275574 841.889771 ] - /Contents 3 0 R - /Group << - /Type /Group - /S /Transparency - /I true - /CS /DeviceRGB - >> - /Resources 2 0 R ->> -endobj -1 0 obj -<< /Type /Pages - /Kids [ 5 0 R ] - /Count 1 ->> -endobj -6 0 obj -<< /Creator (cairo 1.14.8 (http://cairographics.org)) - /Producer (cairo 1.14.8 (http://cairographics.org)) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000612 00000 n -0000000312 00000 n -0000000015 00000 n -0000000290 00000 n -0000000384 00000 n -0000000677 00000 n -0000000804 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -856 -%%EOF diff --git a/dwev/inst/title-page-background/backgrounds/background8.pdf b/dwev/inst/title-page-background/backgrounds/background8.pdf deleted file mode 100644 index 06efe81..0000000 Binary files a/dwev/inst/title-page-background/backgrounds/background8.pdf and /dev/null differ diff --git a/dwev/inst/title-page-background/backgrounds/background9.pdf b/dwev/inst/title-page-background/backgrounds/background9.pdf deleted file mode 100644 index da3a1ef..0000000 --- a/dwev/inst/title-page-background/backgrounds/background9.pdf +++ /dev/null @@ -1,69 +0,0 @@ -%PDF-1.5 -% -3 0 obj -<< /Length 4 0 R - /Filter /FlateDecode ->> -stream -xPKn1\`(`0p!Lh_QHEwcJp6Pƈ`mb@6bL턃 `!$bM5CFvrGneu;zu&e̿v 9vQFֻZ]e7e)+G' -4?Ivi/XG -endstream -endobj -4 0 obj - 195 -endobj -2 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -5 0 obj -<< /Type /Page - /Parent 1 0 R - /MediaBox [ 0 0 595.275574 841.889771 ] - /Contents 3 0 R - /Group << - /Type /Group - /S /Transparency - /I true - /CS /DeviceRGB - >> - /Resources 2 0 R ->> -endobj -1 0 obj -<< /Type /Pages - /Kids [ 5 0 R ] - /Count 1 ->> -endobj -6 0 obj -<< /Creator (cairo 1.14.8 (http://cairographics.org)) - /Producer (cairo 1.14.8 (http://cairographics.org)) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000609 00000 n -0000000309 00000 n -0000000015 00000 n -0000000287 00000 n -0000000381 00000 n -0000000674 00000 n -0000000801 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -853 -%%EOF diff --git a/dwev/inst/title-page-background/build.sh b/dwev/inst/title-page-background/build.sh deleted file mode 100644 index ee87a78..0000000 --- a/dwev/inst/title-page-background/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings \ No newline at end of file diff --git a/dwev/inst/title-page-background/document.md b/dwev/inst/title-page-background/document.md deleted file mode 100644 index 82647b3..0000000 --- a/dwev/inst/title-page-background/document.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: "Vinaque sanguine metuenti cuiquam Alcyone fixus" -author: [Author Name] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -subtitle: "Aesculeae domus vincemur et Veneris adsuetus lapsum" -lang: "en" -titlepage: true, -titlepage-rule-color: "360049" -titlepage-background: "backgrounds/background1.pdf" -... - -# Vinaque sanguine metuenti cuiquam Alcyone fixus - -## Aesculeae domus vincemur et Veneris adsuetus lapsum - -Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab -esse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi **medias -commentaque virgine** anima tamen comitemque petis, sed. In Amphion vestros -hamos ire arceor mandere spicula, in licet aliquando. - -```java -public class Example implements LoremIpsum { - public static void main(String[] args) { - if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); - } - } // Obscura atque coniuge, per de coniunx -} -``` - -Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. -Laudat ille auditi; vertitur iura tum nepotis causa; motus. Diva virtus! Acrota -destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente -Pirithoi abstulit, lapides. - -## Lydia caelo recenti haerebat lacerum ratae at - -Te concepit pollice fugit vias alumno **oras** quam potest -[rursus](http://example.com#rursus) optat. Non evadere orbem equorum, spatiis, -vel pede inter si. - -1. De neque iura aquis -2. Frangitur gaudia mihi eo umor terrae quos -3. Recens diffudit ille tantum - -\begin{equation}\label{eq:neighbor-propability} - p_{ij}(t) = \frac{\ell_j(t) - \ell_i(t)}{\sum_{k \in N_i(t)}^{} \ell_k(t) - \ell_i(t)} -\end{equation} - -Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae -adessent arbor. Florente perque at condeturque saxa et ferarum promittis tendebat. Armos nisi obortas refugit me. - -Et nepotes poterat, se qui. Euntem ego pater desuetaque aethera Maeandri, et -[Dardanio geminaque](http://example.com#Dardanio_geminaque) cernit. Lassaque poenas -nec, manifesta $\pi r^2$ mirantia captivarum prohibebant scelerato gradus unusque -dura. - -- Permulcens flebile simul -- Iura tum nepotis causa motus diva virtus Acrota. Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae adessent arbor. Florente perque at ire arcum. \ No newline at end of file diff --git a/dwev/inst/title-page-background/document.pdf b/dwev/inst/title-page-background/document.pdf deleted file mode 100644 index 0652c79..0000000 Binary files a/dwev/inst/title-page-background/document.pdf and /dev/null differ diff --git a/dwev/inst/title-page-background/preview.png b/dwev/inst/title-page-background/preview.png deleted file mode 100644 index c8d83bd..0000000 Binary files a/dwev/inst/title-page-background/preview.png and /dev/null differ diff --git a/dwev/inst/title-page-custom/background.pdf b/dwev/inst/title-page-custom/background.pdf deleted file mode 100644 index 6c8ed29..0000000 --- a/dwev/inst/title-page-custom/background.pdf +++ /dev/null @@ -1,70 +0,0 @@ -%PDF-1.5 -% -4 0 obj -<< /Length 5 0 R - /Filter /FlateDecode ->> -stream -xe 0FJcU$v?QȒ 㙁9q0f %=!W9(pWzُbif1R/YgX֗O0cbl]Kfz] -gd.➾Jw s [C - q0cbHNK2 -endstream -endobj -5 0 obj - 181 -endobj -3 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -2 0 obj -<< /Type /Page % 1 - /Parent 1 0 R - /MediaBox [ 0 0 595.275574 841.889771 ] - /Contents 4 0 R - /Group << - /Type /Group - /S /Transparency - /I true - /CS /DeviceRGB - >> - /Resources 3 0 R ->> -endobj -1 0 obj -<< /Type /Pages - /Kids [ 2 0 R ] - /Count 1 ->> -endobj -6 0 obj -<< /Producer (cairo 1.16.0 (https://cairographics.org)) - /CreationDate (D:20190804184551+02'00) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000599 00000 n -0000000367 00000 n -0000000295 00000 n -0000000015 00000 n -0000000273 00000 n -0000000664 00000 n -0000000780 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -832 -%%EOF diff --git a/dwev/inst/title-page-custom/build.sh b/dwev/inst/title-page-custom/build.sh deleted file mode 100644 index ee87a78..0000000 --- a/dwev/inst/title-page-custom/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings \ No newline at end of file diff --git a/dwev/inst/title-page-custom/document.md b/dwev/inst/title-page-custom/document.md deleted file mode 100644 index cf73e26..0000000 --- a/dwev/inst/title-page-custom/document.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -title: "Vinaque sanguine metuenti cuiquam Alcyone fixus" -author: [Author Name] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -subtitle: "Aesculeae domus vincemur et Veneris adsuetus lapsum" -lang: "en" -titlepage: true, -titlepage-text-color: "FFFFFF" -titlepage-rule-color: "360049" -titlepage-rule-height: 0 -titlepage-background: "background.pdf" -... - -# Vinaque sanguine metuenti cuiquam Alcyone fixus - -## Aesculeae domus vincemur et Veneris adsuetus lapsum - -Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab -esse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi **medias -commentaque virgine** anima tamen comitemque petis, sed. In Amphion vestros -hamos ire arceor mandere spicula, in licet aliquando. - -```java -public class Example implements LoremIpsum { - public static void main(String[] args) { - if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); - } - } // Obscura atque coniuge, per de coniunx -} -``` - -Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. -Laudat ille auditi; vertitur iura tum nepotis causa; motus. Diva virtus! Acrota -destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente -Pirithoi abstulit, lapides. - -## Lydia caelo recenti haerebat lacerum ratae at - -Te concepit pollice fugit vias alumno **oras** quam potest -[rursus](http://example.com#rursus) optat. Non evadere orbem equorum, spatiis, -vel pede inter si. - -1. De neque iura aquis -2. Frangitur gaudia mihi eo umor terrae quos -3. Recens diffudit ille tantum - -\begin{equation}\label{eq:neighbor-propability} - p_{ij}(t) = \frac{\ell_j(t) - \ell_i(t)}{\sum_{k \in N_i(t)}^{} \ell_k(t) - \ell_i(t)} -\end{equation} - -Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae -adessent arbor. Florente perque at condeturque saxa et ferarum promittis tendebat. Armos nisi obortas refugit me. - -Et nepotes poterat, se qui. Euntem ego pater desuetaque aethera Maeandri, et -[Dardanio geminaque](http://example.com#Dardanio_geminaque) cernit. Lassaque poenas -nec, manifesta $\pi r^2$ mirantia captivarum prohibebant scelerato gradus unusque -dura. - -- Permulcens flebile simul -- Iura tum nepotis causa motus diva virtus Acrota. Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae adessent arbor. Florente perque at ire arcum. \ No newline at end of file diff --git a/dwev/inst/title-page-custom/document.pdf b/dwev/inst/title-page-custom/document.pdf deleted file mode 100644 index 9b56e7d..0000000 Binary files a/dwev/inst/title-page-custom/document.pdf and /dev/null differ diff --git a/dwev/inst/title-page-custom/logo-inverted.pdf b/dwev/inst/title-page-custom/logo-inverted.pdf deleted file mode 100644 index 2a7d392..0000000 Binary files a/dwev/inst/title-page-custom/logo-inverted.pdf and /dev/null differ diff --git a/dwev/inst/title-page-custom/logo-inverted.svg b/dwev/inst/title-page-custom/logo-inverted.svg deleted file mode 100644 index ebea227..0000000 --- a/dwev/inst/title-page-custom/logo-inverted.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/dwev/inst/title-page-custom/preview.png b/dwev/inst/title-page-custom/preview.png deleted file mode 100644 index 41a27ba..0000000 Binary files a/dwev/inst/title-page-custom/preview.png and /dev/null differ diff --git a/dwev/inst/title-page-default/build.sh b/dwev/inst/title-page-default/build.sh deleted file mode 100644 index ee87a78..0000000 --- a/dwev/inst/title-page-default/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings \ No newline at end of file diff --git a/dwev/inst/title-page-default/document.md b/dwev/inst/title-page-default/document.md deleted file mode 100644 index 83844e2..0000000 --- a/dwev/inst/title-page-default/document.md +++ /dev/null @@ -1,59 +0,0 @@ ---- -title: "Vinaque sanguine metuenti cuiquam Alcyone fixus" -author: [Author Name] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -subtitle: "Aesculeae domus vincemur et Veneris adsuetus lapsum" -lang: "en" -titlepage: true -... - -# Vinaque sanguine metuenti cuiquam Alcyone fixus - -## Aesculeae domus vincemur et Veneris adsuetus lapsum - -Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab -esse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi **medias -commentaque virgine** anima tamen comitemque petis, sed. In Amphion vestros -hamos ire arceor mandere spicula, in licet aliquando. - -```java -public class Example implements LoremIpsum { - public static void main(String[] args) { - if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); - } - } // Obscura atque coniuge, per de coniunx -} -``` - -Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. -Laudat ille auditi; vertitur iura tum nepotis causa; motus. Diva virtus! Acrota -destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente -Pirithoi abstulit, lapides. - -## Lydia caelo recenti haerebat lacerum ratae at - -Te concepit pollice fugit vias alumno **oras** quam potest -[rursus](http://example.com#rursus) optat. Non evadere orbem equorum, spatiis, -vel pede inter si. - -1. De neque iura aquis -2. Frangitur gaudia mihi eo umor terrae quos -3. Recens diffudit ille tantum - -\begin{equation}\label{eq:neighbor-propability} - p_{ij}(t) = \frac{\ell_j(t) - \ell_i(t)}{\sum_{k \in N_i(t)}^{} \ell_k(t) - \ell_i(t)} -\end{equation} - -Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae -adessent arbor. Florente perque at condeturque saxa et ferarum promittis tendebat. Armos nisi obortas refugit me. - -Et nepotes poterat, se qui. Euntem ego pater desuetaque aethera Maeandri, et -[Dardanio geminaque](http://example.com#Dardanio_geminaque) cernit. Lassaque poenas -nec, manifesta $\pi r^2$ mirantia captivarum prohibebant scelerato gradus unusque -dura. - -- Permulcens flebile simul -- Iura tum nepotis causa motus diva virtus Acrota. Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae adessent arbor. Florente perque at ire arcum. \ No newline at end of file diff --git a/dwev/inst/title-page-default/document.pdf b/dwev/inst/title-page-default/document.pdf deleted file mode 100644 index 3b761cb..0000000 Binary files a/dwev/inst/title-page-default/document.pdf and /dev/null differ diff --git a/dwev/inst/title-page-default/preview.png b/dwev/inst/title-page-default/preview.png deleted file mode 100644 index ce094ce..0000000 Binary files a/dwev/inst/title-page-default/preview.png and /dev/null differ diff --git a/dwev/inst/title-page-green/build.sh b/dwev/inst/title-page-green/build.sh deleted file mode 100644 index ee87a78..0000000 --- a/dwev/inst/title-page-green/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings \ No newline at end of file diff --git a/dwev/inst/title-page-green/document.md b/dwev/inst/title-page-green/document.md deleted file mode 100644 index 7b6778b..0000000 --- a/dwev/inst/title-page-green/document.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -title: "Vinaque sanguine metuenti cuiquam Alcyone fixus" -author: [Author Name] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -subtitle: "Aesculeae domus vincemur et Veneris adsuetus lapsum" -lang: "en" -titlepage: true -titlepage-color: "3C9F53" -titlepage-text-color: "FFFFFF" -titlepage-rule-color: "FFFFFF" -titlepage-rule-height: 2 -... - -# Vinaque sanguine metuenti cuiquam Alcyone fixus - -## Aesculeae domus vincemur et Veneris adsuetus lapsum - -Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab -esse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi **medias -commentaque virgine** anima tamen comitemque petis, sed. In Amphion vestros -hamos ire arceor mandere spicula, in licet aliquando. - -```java -public class Example implements LoremIpsum { - public static void main(String[] args) { - if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); - } - } // Obscura atque coniuge, per de coniunx -} -``` - -Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. -Laudat ille auditi; vertitur iura tum nepotis causa; motus. Diva virtus! Acrota -destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente -Pirithoi abstulit, lapides. - -## Lydia caelo recenti haerebat lacerum ratae at - -Te concepit pollice fugit vias alumno **oras** quam potest -[rursus](http://example.com#rursus) optat. Non evadere orbem equorum, spatiis, -vel pede inter si. - -1. De neque iura aquis -2. Frangitur gaudia mihi eo umor terrae quos -3. Recens diffudit ille tantum - -\begin{equation}\label{eq:neighbor-propability} - p_{ij}(t) = \frac{\ell_j(t) - \ell_i(t)}{\sum_{k \in N_i(t)}^{} \ell_k(t) - \ell_i(t)} -\end{equation} - -Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae -adessent arbor. Florente perque at condeturque saxa et ferarum promittis tendebat. Armos nisi obortas refugit me. - -Et nepotes poterat, se qui. Euntem ego pater desuetaque aethera Maeandri, et -[Dardanio geminaque](http://example.com#Dardanio_geminaque) cernit. Lassaque poenas -nec, manifesta $\pi r^2$ mirantia captivarum prohibebant scelerato gradus unusque -dura. - -- Permulcens flebile simul -- Iura tum nepotis causa motus diva virtus Acrota. Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae adessent arbor. Florente perque at ire arcum. \ No newline at end of file diff --git a/dwev/inst/title-page-green/document.pdf b/dwev/inst/title-page-green/document.pdf deleted file mode 100644 index 6f7342c..0000000 Binary files a/dwev/inst/title-page-green/document.pdf and /dev/null differ diff --git a/dwev/inst/title-page-green/preview.png b/dwev/inst/title-page-green/preview.png deleted file mode 100644 index 3ff8e6b..0000000 Binary files a/dwev/inst/title-page-green/preview.png and /dev/null differ diff --git a/dwev/inst/title-page-logo/build.sh b/dwev/inst/title-page-logo/build.sh deleted file mode 100644 index ee87a78..0000000 --- a/dwev/inst/title-page-logo/build.sh +++ /dev/null @@ -1 +0,0 @@ -pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings \ No newline at end of file diff --git a/dwev/inst/title-page-logo/document.md b/dwev/inst/title-page-logo/document.md deleted file mode 100644 index df8dfa5..0000000 --- a/dwev/inst/title-page-logo/document.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -title: "Vinaque sanguine metuenti cuiquam Alcyone fixus" -author: [Author Name] -date: "2017-02-20" -subject: "Markdown" -keywords: [Markdown, Example] -subtitle: "Aesculeae domus vincemur et Veneris adsuetus lapsum" -lang: "en" -titlepage: true -titlepage-text-color: "7137C8" -titlepage-rule-color: "7137C8" -titlepage-rule-height: 2 -titlepage-logo: "logo.pdf" -logo-width: 30mm -... - -# Vinaque sanguine metuenti cuiquam Alcyone fixus - -## Aesculeae domus vincemur et Veneris adsuetus lapsum - -Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab -esse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi **medias -commentaque virgine** anima tamen comitemque petis, sed. In Amphion vestros -hamos ire arceor mandere spicula, in licet aliquando. - -```java -public class Example implements LoremIpsum { - public static void main(String[] args) { - if(args.length < 2) { - System.out.println("Lorem ipsum dolor sit amet"); - } - } // Obscura atque coniuge, per de coniunx -} -``` - -Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. -Laudat ille auditi; vertitur iura tum nepotis causa; motus. Diva virtus! Acrota -destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente -Pirithoi abstulit, lapides. - -## Lydia caelo recenti haerebat lacerum ratae at - -Te concepit pollice fugit vias alumno **oras** quam potest -[rursus](http://example.com#rursus) optat. Non evadere orbem equorum, spatiis, -vel pede inter si. - -1. De neque iura aquis -2. Frangitur gaudia mihi eo umor terrae quos -3. Recens diffudit ille tantum - -\begin{equation}\label{eq:neighbor-propability} - p_{ij}(t) = \frac{\ell_j(t) - \ell_i(t)}{\sum_{k \in N_i(t)}^{} \ell_k(t) - \ell_i(t)} -\end{equation} - -Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae -adessent arbor. Florente perque at condeturque saxa et ferarum promittis tendebat. Armos nisi obortas refugit me. - -Et nepotes poterat, se qui. Euntem ego pater desuetaque aethera Maeandri, et -[Dardanio geminaque](http://example.com#Dardanio_geminaque) cernit. Lassaque poenas -nec, manifesta $\pi r^2$ mirantia captivarum prohibebant scelerato gradus unusque -dura. - -- Permulcens flebile simul -- Iura tum nepotis causa motus diva virtus Acrota. Tamen condeturque saxa Pallorque num et ferarum promittis inveni lilia iuvencae adessent arbor. Florente perque at ire arcum. \ No newline at end of file diff --git a/dwev/inst/title-page-logo/document.pdf b/dwev/inst/title-page-logo/document.pdf deleted file mode 100644 index 92a55bc..0000000 Binary files a/dwev/inst/title-page-logo/document.pdf and /dev/null differ diff --git a/dwev/inst/title-page-logo/logo.pdf b/dwev/inst/title-page-logo/logo.pdf deleted file mode 100644 index f6804f3..0000000 Binary files a/dwev/inst/title-page-logo/logo.pdf and /dev/null differ diff --git a/dwev/inst/title-page-logo/logo.svg b/dwev/inst/title-page-logo/logo.svg deleted file mode 100644 index 6fe84b7..0000000 --- a/dwev/inst/title-page-logo/logo.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/dwev/inst/title-page-logo/preview.png b/dwev/inst/title-page-logo/preview.png deleted file mode 100644 index 1b1d562..0000000 Binary files a/dwev/inst/title-page-logo/preview.png and /dev/null differ diff --git a/dwev/template.qmd b/dwev/template.qmd index fd12ca5..288f157 100644 --- a/dwev/template.qmd +++ b/dwev/template.qmd @@ -22,7 +22,7 @@ keep-tex: false titlepage-rule-color: "360049" titlepage-text-color: "360049" titlepage-rule-height: 0 -titlepage-background: "inst/cover1.pdf" +titlepage-background: "_extensions/drwater/dwev/inst/cover1.pdf" titlepage-halign: "center" # flushleft | flushright title-vskip: -30em title-size: "Huge" @@ -44,7 +44,7 @@ header-left: "\\leftmark" header-center: "\\hspace{1cm}" header-right: "第\\thepage 页" footer-left: "\\hspace{1cm}" # \\thetitle -footer-center: "\\includegraphics[height=1.5em]{inst/drwater-gray1.pdf}" +footer-center: "\\includegraphics[height=1.5em]{_extensions/drwater/dwev/inst/drwater-gray1.pdf}" footer-right: "\\hspace{1cm}" toc: true toc-own-page: true diff --git a/dwhm/README.md b/dwhm/README.md deleted file mode 100644 index 4e2a124..0000000 --- a/dwhm/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# <%= title %> Format - -## Installing - -*TODO*: Replace the `` with your GitHub organization. - -```bash -quarto use template /<%= filesafename %> -``` - -This will install the extension and create an example qmd file that you can use as a starting place for your article. - -## Using - -*TODO*: Describe how to use your format. - -## Format Options - -*TODO*: If your format has options that can be set via document metadata, describe them. - -## Example - -Here is the source code for a minimal sample document: [example.qmd](example.qmd). diff --git a/dwhm/_extension.yml b/dwhm/_extension.yml deleted file mode 100644 index d9e3179..0000000 --- a/dwhm/_extension.yml +++ /dev/null @@ -1,9 +0,0 @@ -title: html -author: ming -version: 1.0.0 -quarto-required: ">=1.7.0" -contributes: - formats: - html: - toc: true - css: _extensions/drwater/dwhm/dwhm.css diff --git a/dwhm/_extension.yml b/dwhm/_extension.yml new file mode 120000 index 0000000..e40da75 --- /dev/null +++ b/dwhm/_extension.yml @@ -0,0 +1 @@ +_extensions/drwater/dwhm/_extension.yml \ No newline at end of file diff --git a/dwhm/_extensions/dwhm/_extension.yml b/dwhm/_extensions/drwater/dwhm/_extension.yml similarity index 70% rename from dwhm/_extensions/dwhm/_extension.yml rename to dwhm/_extensions/drwater/dwhm/_extension.yml index d9e3179..8a7f42f 100644 --- a/dwhm/_extensions/dwhm/_extension.yml +++ b/dwhm/_extensions/drwater/dwhm/_extension.yml @@ -6,4 +6,4 @@ contributes: formats: html: toc: true - css: _extensions/drwater/dwhm/dwhm.css + css: _extensions/drwater/dwhm/inst/dwhm.css diff --git a/dwhm/_extensions/drwater/dwhm/inst/dwhm.css b/dwhm/_extensions/drwater/dwhm/inst/dwhm.css new file mode 120000 index 0000000..0ab43be --- /dev/null +++ b/dwhm/_extensions/drwater/dwhm/inst/dwhm.css @@ -0,0 +1 @@ +../../../../../dwinst/dwhm.css \ No newline at end of file diff --git a/dwhm/dwhm.css b/dwhm/dwhm.css deleted file mode 100755 index 0bbdcff..0000000 --- a/dwhm/dwhm.css +++ /dev/null @@ -1,109 +0,0 @@ -.udot { - text-decoration-line: underline; - text-decoration-color: rgb(50, 50, 50); - text-decoration-style: dashed; - text-decoration-thickness: 1px; -} - -.good { - background-color: forestgreen; - color: lightyellow; -} - -.bad { - background-color: orangered; - color: lightyellow; -} - -.del { - text-decoration-line: line-through; - text-decoration-color: rgb(222 13 13); - text-decoration-style: initial; - text-decoration-thickness: 1.5px; -} - - -.todo { - background-color: darkorange; - color: lightyellow; -} - -.com { - background-color: #0025ff; - font-weight: bold; - color: lightyellow; -} - -.add { - text-decoration-line: underline; - text-decoration-color: rgb(222 13 13); - background-color: violet; - text-decoration-style: initial; - text-decoration-thickness: 2px; -} - - -del { - text-decoration-line: line-through; - text-decoration-color: rgb(222 13 13); - text-decoration-style: initial; - text-decoration-thickness: 1.0px; -} - - -ins { - text-decoration-color: rgb(222 93 93); - background-color: violet; - text-decoration-style: initial; - text-decoration-thickness: 2px; -} - -.clab { - background-color: rgb(255, 245, 240); -} - -.rem { - background-color: darkorange; - color: lightyellow; - text-decoration-thickness: 2px; -} - - -#criticnav { - position: fixed; - z-index: 1100; - top: 0; - right: 0; - width: 120px; - border-bottom: solid 1px #ffffff; - margin: 0; - padding: 10; - background-color: rgb(143 38 38 / 95%); - color: #ffffff; - font-size: 12px; - font-family: "Helvetica Neue", helvetica, arial, sans-serif !important -} - -#criticnav ul { - list-style-type: none; - width: 90%; - margin: 0 auto; - padding: 0 -} - -#criticnav ul li { - display: block; - width: 100px; - min-width: 80px; - text-align: center; - padding: 5px 0 3px !important; - margin: 5px 2px !important; - line-height: 1em; - float: center; - text-transform: uppercase; - cursor: pointer; - border-radius: 20px; - border: 3px solid rgba(255,255,255,0); - color: #fff !important -} - diff --git a/dwhm/inst b/dwhm/inst new file mode 120000 index 0000000..8715d96 --- /dev/null +++ b/dwhm/inst @@ -0,0 +1 @@ +_extensions/drwater/dwhm/inst \ No newline at end of file diff --git a/dwinst/.gitignore b/dwinst/.gitignore new file mode 100644 index 0000000..6b55381 --- /dev/null +++ b/dwinst/.gitignore @@ -0,0 +1,7 @@ +demo/*.pdf +/*_files +/figure/ +/*.pdf + + + diff --git a/inst/word/MS.docx b/dwinst/MS.docx similarity index 100% rename from inst/word/MS.docx rename to dwinst/MS.docx diff --git a/inst/word/RN.docx b/dwinst/RN.docx similarity index 100% rename from inst/word/RN.docx rename to dwinst/RN.docx diff --git a/inst/tex/american-chemical-society.csl b/dwinst/american-chemical-society.csl similarity index 100% rename from inst/tex/american-chemical-society.csl rename to dwinst/american-chemical-society.csl diff --git a/inst/tex/china-national-standard-gb-t-7714-2015-numeric.csl b/dwinst/china-national-standard-gb-t-7714-2015-numeric.csl similarity index 100% rename from inst/tex/china-national-standard-gb-t-7714-2015-numeric.csl rename to dwinst/china-national-standard-gb-t-7714-2015-numeric.csl diff --git a/dwev/inst/covers.pptx b/dwinst/covers.pptx similarity index 100% rename from dwev/inst/covers.pptx rename to dwinst/covers.pptx diff --git a/inst/word/cv.docx b/dwinst/cv.docx similarity index 100% rename from inst/word/cv.docx rename to dwinst/cv.docx diff --git a/dwev/inst/drwater-gray1.svg b/dwinst/drwater-gray1.svg similarity index 100% rename from dwev/inst/drwater-gray1.svg rename to dwinst/drwater-gray1.svg diff --git a/dwev/inst/drwater-green0.svg b/dwinst/drwater-green0.svg similarity index 100% rename from dwev/inst/drwater-green0.svg rename to dwinst/drwater-green0.svg diff --git a/dwev/inst/drwater-green1.svg b/dwinst/drwater-green1.svg similarity index 100% rename from dwev/inst/drwater-green1.svg rename to dwinst/drwater-green1.svg diff --git a/dwev/inst/drwater-greenline0.svg b/dwinst/drwater-greenline0.svg similarity index 100% rename from dwev/inst/drwater-greenline0.svg rename to dwinst/drwater-greenline0.svg diff --git a/dwev/inst/drwater-white0.svg b/dwinst/drwater-white0.svg similarity index 100% rename from dwev/inst/drwater-white0.svg rename to dwinst/drwater-white0.svg diff --git a/dwinst/dweisvogel.tex b/dwinst/dweisvogel.tex new file mode 100644 index 0000000..b06056e --- /dev/null +++ b/dwinst/dweisvogel.tex @@ -0,0 +1,1323 @@ +%% +% Copyright (c) 2017 - 2024, Pascal Wagler; +% Copyright (c) 2014 - 2024, John MacFarlane +% +% All rights reserved. +% +% Redistribution and use in source and binary forms, with or without +% modification, are permitted provided that the following conditions +% are met: +% +% - Redistributions of source code must retain the above copyright +% notice, this list of conditions and the following disclaimer. +% +% - Redistributions in binary form must reproduce the above copyright +% notice, this list of conditions and the following disclaimer in the +% documentation and/or other materials provided with the distribution. +% +% - Neither the name of John MacFarlane nor the names of other +% contributors may be used to endorse or promote products derived +% from this software without specific prior written permission. +% +% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +% "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +% LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +% FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +% COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +% INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +% BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +% LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +% CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +% LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +% ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +% POSSIBILITY OF SUCH DAMAGE. +%% + +%% +% This is the Eisvogel pandoc LaTeX template. +% +% For usage information and examples visit the official GitHub page: +% https://github.com/Wandmalfarbe/pandoc-latex-template +%% + +% Options for packages loaded elsewhere +\PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} +\PassOptionsToPackage{hyphens}{url} +\PassOptionsToPackage{dvipsnames,svgnames,x11names,table}{xcolor} +$if(CJKmainfont)$ +\PassOptionsToPackage{space}{xeCJK} +$endif$ +% +\documentclass[ +$if(fontsize)$ + $fontsize$, +$endif$ +$if(papersize)$ + $papersize$paper, +$else$ + paper=a4, +$endif$ +$if(beamer)$ + ignorenonframetext, +$if(handout)$ + handout, +$endif$ +$if(aspectratio)$ + aspectratio=$aspectratio$, +$endif$ +$if(babel-lang)$ + $babel-lang$, +$endif$ +$endif$ +$for(classoption)$ + $classoption$$sep$, +$endfor$ + ,captions=tableheading +]{$if(beamer)$$documentclass$$else$$if(book)$scrbook$else$scrartcl$endif$$endif$} +$if(beamer)$ +$if(background-image)$ +\usebackgroundtemplate{% + \includegraphics[width=\paperwidth]{$background-image$}% +} +% In beamer background-image does not work well when other images are used, so this is the workaround +\pgfdeclareimage[width=\paperwidth,height=\paperheight]{background}{$background-image$} +\usebackgroundtemplate{\pgfuseimage{background}} +$endif$ + +\usepackage{pgfpages} +\setbeamertemplate{caption}[numbered] +\setbeamertemplate{caption label separator}{: } +\setbeamercolor{caption name}{fg=normal text.fg} +\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$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]{section title} + \usebeamerfont{section title}\insertsection\par + \end{beamercolorbox} +} +\setbeamertemplate{subsection page}{ + \centering + \begin{beamercolorbox}[sep=8pt,center]{subsection 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 +$endif$ +\usepackage{amsmath,amssymb} +$if(linestretch)$ +\usepackage{setspace} +$else$ +% Use setspace anyway because we change the default line spacing. +% The spacing is changed early to affect the titlepage and the TOC. +\usepackage{setspace} +\setstretch{1.2} +$endif$ +\usepackage{iftex} +\ifPDFTeX + \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc} + \usepackage[utf8]{inputenc} + \usepackage{textcomp} % provide euro and other symbols +\else % if luatex or xetex +$if(mathspec)$ + \ifXeTeX + \usepackage{mathspec} % this also loads fontspec + \else + \usepackage{unicode-math} % this also loads fontspec + \fi +$else$ + \usepackage{unicode-math} % this also loads fontspec +$endif$ + \defaultfontfeatures{Scale=MatchLowercase}$-- must come before Beamer theme + \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1} +\fi +$if(fontfamily)$ +$else$ +$-- Set default font before Beamer theme so the theme can override it +\usepackage{lmodern} +$endif$ +$-- Set Beamer theme before user font settings so they can override theme +$if(beamer)$ +$if(theme)$ +\usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$} +$endif$ +$if(colortheme)$ +\usecolortheme{$colortheme$} +$endif$ +$if(fonttheme)$ +\usefonttheme{$fonttheme$} +$endif$ +$if(mainfont)$ +\usefonttheme{serif} % use mainfont rather than sansfont for slide text +$endif$ +$if(innertheme)$ +\useinnertheme{$innertheme$} +$endif$ +$if(outertheme)$ +\useoutertheme{$outertheme$} +$endif$ +$endif$ +$-- User font settings (must come after default font and Beamer theme) +$if(fontfamily)$ +\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$} +$endif$ +\ifPDFTeX\else + % xetex/luatex font selection +$if(mainfont)$ + $if(mainfontfallback)$ + \ifLuaTeX + \usepackage{luaotfload} + \directlua{luaotfload.add_fallback("mainfontfallback",{ + $for(mainfontfallback)$"$mainfontfallback$"$sep$,$endfor$ + })} + \fi + $endif$ + \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$$if(mainfontfallback)$,RawFeature={fallback=mainfontfallback}$endif$]{$mainfont$} +$endif$ +$if(sansfont)$ + $if(sansfontfallback)$ + \ifLuaTeX + \usepackage{luaotfload} + \directlua{luaotfload.add_fallback("sansfontfallback",{ + $for(sansfontfallback)$"$sansfontfallback$"$sep$,$endfor$ + })} + \fi + $endif$ + \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$$if(sansfontfallback)$,RawFeature={fallback=sansfontfallback}$endif$]{$sansfont$} +$endif$ +$if(monofont)$ + $if(monofontfallback)$ + \ifLuaTeX + \usepackage{luaotfload} + \directlua{luaotfload.add_fallback("monofontfallback",{ + $for(monofontfallback)$"$monofontfallback$"$sep$,$endfor$ + })} + \fi + $endif$ + \setmonofont[$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$if(monofontfallback)$,RawFeature={fallback=monofontfallback}$endif$]{$monofont$} +$endif$ +$for(fontfamilies)$ + \newfontfamily{$fontfamilies.name$}[$for(fontfamilies.options)$$fontfamilies.options$$sep$,$endfor$]{$fontfamilies.font$} +$endfor$ +$if(mathfont)$ +$if(mathspec)$ + \ifXeTeX + \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} + \else + \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} + \fi +$else$ + \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} +$endif$ +$endif$ +$if(CJKmainfont)$ + \ifXeTeX + \usepackage{xeCJK} + \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$} + $if(CJKsansfont)$ + \setCJKsansfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKsansfont$} + $endif$ + $if(CJKmonofont)$ + \setCJKmonofont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmonofont$} + $endif$ + \fi +$endif$ +$if(luatexjapresetoptions)$ + \ifLuaTeX + \usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset} + \fi +$endif$ +$if(CJKmainfont)$ + \ifLuaTeX + \usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec} + \setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$} + \fi +$endif$ +\fi +$if(zero-width-non-joiner)$ +%% Support for zero-width non-joiner characters. +\makeatletter +\def\zerowidthnonjoiner{% + % Prevent ligatures and adjust kerning, but still support hyphenating. + \texorpdfstring{% + \TextOrMath{\nobreak\discretionary{-}{}{\kern.03em}% + \ifvmode\else\nobreak\hskip\z@skip\fi}{}% + }{}% +} +\makeatother +\ifPDFTeX + \DeclareUnicodeCharacter{200C}{\zerowidthnonjoiner} +\else + \catcode`^^^^200c=\active + \protected\def ^^^^200c{\zerowidthnonjoiner} +\fi +%% End of ZWNJ support +$endif$ +% Use upquote if available, for straight quotes in verbatim environments +\IfFileExists{upquote.sty}{\usepackage{upquote}}{} +\IfFileExists{microtype.sty}{% use microtype if available + \usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype} + \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts +}{} +$if(indent)$ +$else$ +\makeatletter +\@ifundefined{KOMAClassName}{% if non-KOMA class + \IfFileExists{parskip.sty}{% + \usepackage{parskip} + }{% else + \setlength{\parindent}{0pt} + \setlength{\parskip}{6pt plus 2pt minus 1pt}} +}{% if KOMA class + \KOMAoptions{parskip=half}} +\makeatother +$endif$ +$if(verbatim-in-note)$ +\usepackage{fancyvrb} +$endif$ +\usepackage{xcolor} +\definecolor{default-linkcolor}{HTML}{A50000} +\definecolor{default-filecolor}{HTML}{A50000} +\definecolor{default-citecolor}{HTML}{4077C0} +\definecolor{default-urlcolor}{HTML}{4077C0} +$if(footnotes-pretty)$ +% load footmisc in order to customize footnotes (footmisc has to be loaded before hyperref, cf. https://tex.stackexchange.com/a/169124/144087) +\usepackage[hang,flushmargin,bottom,multiple]{footmisc} +\setlength{\footnotemargin}{0.8em} % set space between footnote nr and text +\setlength{\footnotesep}{\baselineskip} % set space between multiple footnotes +\setlength{\skip\footins}{0.3cm} % set space between page content and footnote +\setlength{\footskip}{0.9cm} % set space between footnote and page bottom +$endif$ +$if(geometry)$ +$if(beamer)$ +\geometry{$for(geometry)$$geometry$$sep$,$endfor$} +$else$ +\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} +$endif$ +$else$ +$if(beamer)$ +$else$ +\usepackage[margin=2.5cm,includehead=true,includefoot=true,centering,$for(geometry)$$geometry$$sep$,$endfor$]{geometry} +$endif$ +$endif$ +$if(titlepage-logo)$ +\usepackage[export]{adjustbox} +\usepackage{graphicx} +$endif$ +$if(beamer)$ +\newif\ifbibliography +$endif$ +$if(listings)$ +\usepackage{listings} +\newcommand{\passthrough}[1]{#1} +\lstset{defaultdialect=[5.3]Lua} +\lstset{defaultdialect=[x86masm]Assembler} +$endif$ +$if(listings-no-page-break)$ +\usepackage{etoolbox} +\BeforeBeginEnvironment{lstlisting}{\par\noindent\begin{minipage}{\linewidth}} +\AfterEndEnvironment{lstlisting}{\end{minipage}\par\addvspace{\topskip}} +$endif$ +$if(lhs)$ +\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} +$endif$ +$if(highlighting-macros)$ +$highlighting-macros$ + +% Workaround/bugfix from jannick0. +% See https://github.com/jgm/pandoc/issues/4302#issuecomment-360669013) +% or https://github.com/Wandmalfarbe/pandoc-latex-template/issues/2 +% +% Redefine the verbatim environment 'Highlighting' to break long lines (with +% the help of fvextra). Redefinition is necessary because it is unlikely that +% pandoc includes fvextra in the default template. +\usepackage{fvextra} +\DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,fontsize=$if(code-block-font-size)$$code-block-font-size$$else$\small$endif$,commandchars=\\\{\}} + +$endif$ + +% 为中文添加支持 by Ming Su +$if(CJK)$ +$if(book)$ +\usepackage{ctex} %调用中文字体宏包 +\usepackage{indentfirst} %调用首行缩进宏包 +\usepackage{ctex} % 确保中文字体支持 +\usepackage{zhnumber} +% 修改 chapter 格式为 "第X章" +% \renewcommand{\chapterformat}{第~\thechapter~章} +% \renewcommand{\chapterformat}{第\zhnumber{\thechapter}章} +\renewcommand{\chaptermarkformat}{第~\zhnumber{\thechapter}~章} +\renewcommand{\chapterformat}{第\zhnumber{\thechapter}章} +\renewcommand*{\chapterlinesformat}[3]{% + \parbox{\linewidth}{\centering #2~\quad~#3} % 居中 + "·" 分隔 + % 或改用冒号分隔: + % \parbox{\linewidth}{\centering #2:#3} +} +\RedeclareSectionCommand[ + beforeskip=1.5em plus 0.5em minus 0.5em, + afterskip=1em plus 0.2em, + font=\large\bfseries +]{section} +\usepackage{zhnumber} % 确保已加载(或直接用 ctex) +% 修改目录中的章节编号为中文 +\addtokomafont{chapterentry}{\normalfont} % 可选:调整目录字体 +\renewcommand*{\chapterformat}{第\zhnumber{\thechapter}章} % 正文标题格式 +\renewcommand*{\chaptermarkformat}{第\zhnumber{\thechapter}章\quad} % 页眉标题格式 +% 关键!覆盖目录中的章节编号 +\renewcommand{\addchaptertocentry}[2]{% + \addtocentrydefault{chapter}{第\zhnumber{#1}章}{#2}% +} +\RedeclareSectionCommand[ + tocentryindent=0pt, + tocentrynumwidth=3.5em % 确保编号区域足够宽 +]{chapter} +$endif$ +$endif$ + +$if(tables)$ +\usepackage{longtable,booktabs,array} +$if(multirow)$ +\usepackage{multirow} +$endif$ +\usepackage{calc} % for calculating minipage widths +$if(beamer)$ +\usepackage{caption} +% Make caption package work with longtable +\makeatletter +\def\fnum@table{\tablename~\thetable} +\makeatother +$else$ +% Correct order of tables after \paragraph or \subparagraph +\usepackage{etoolbox} +\makeatletter +\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{} +\makeatother +% Allow footnotes in longtable head/foot +\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} +\makesavenoteenv{longtable} +$endif$ +$endif$ +% add backlinks to footnote references, cf. https://tex.stackexchange.com/questions/302266/make-footnote-clickable-both-ways +$if(footnotes-disable-backlinks)$ +$else$ +\usepackage{footnotebackref} +$endif$ +$if(graphics)$ +\usepackage{graphicx} +\makeatletter +% \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} +% \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} +% \makeatother +% % Scale images if necessary, so that they will not overflow the page +% % margins by default, and it is still possible to overwrite the defaults +% % using explicit options in \includegraphics[width, height, ...]{} +% \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} +\newsavebox\pandoc@box +\newcommand*\pandocbounded[1]{% scales image to fit in text height/width + \sbox\pandoc@box{#1}% + \Gscale@div\@tempa{\textheight}{\dimexpr\ht\pandoc@box+\dp\pandoc@box\relax}% + \Gscale@div\@tempb{\linewidth}{\wd\pandoc@box}% + \ifdim\@tempb\p@<\@tempa\p@\let\@tempa\@tempb\fi% select the smaller of both + \ifdim\@tempa\p@<\p@\scalebox{\@tempa}{\usebox\pandoc@box}% + \else\usebox{\pandoc@box}% + \fi% +} +% Set default figure placement to htbp +\makeatletter +\def\fps@figure{htbp} +\makeatother +% \makeatletter Old options from template, replaced with quarto defaults above +% \newsavebox\pandoc@box +% \newcommand*\pandocbounded[1]{% scales image to fit in text height/width +% \sbox\pandoc@box{#1}% +% \Gscale@div\@tempa{\textheight}{\dimexpr\ht\pandoc@box+\dp\pandoc@box\relax}% +% \Gscale@div\@tempb{\linewidth}{\wd\pandoc@box}% +% \ifdim\@tempb\p@<\@tempa\p@\let\@tempa\@tempb\fi% select the smaller of both +% \ifdim\@tempa\p@<\p@\scalebox{\@tempa}{\usebox\pandoc@box}% +% \else\usebox{\pandoc@box}% +% \fi% +% } +% % Set default figure placement to htbp +% % Make use of float-package and set default placement for figures to H. +% % The option H means 'PUT IT HERE' (as opposed to the standard h option which means 'You may put it here if you like'). +% \usepackage{float} +% \floatplacement{figure}{$if(float-placement-figure)$$float-placement-figure$$else$H$endif$} +% \makeatother +$endif$ +$if(svg)$ +\usepackage{svg} +$endif$ +$if(strikeout)$ +$-- also used for underline +\ifLuaTeX + \usepackage{luacolor} + \usepackage[soul]{lua-ul} +\else +\usepackage{soul} +$if(beamer)$ + \makeatletter + \let\HL\hl + \renewcommand\hl{% fix for beamer highlighting + \let\set@color\beamerorig@set@color + \let\reset@color\beamerorig@reset@color + \HL} + \makeatother +$endif$ +$if(CJKmainfont)$ + \ifXeTeX + % soul's \st doesn't work for CJK: + \usepackage{xeCJKfntef} + \renewcommand{\st}[1]{\sout{#1}} + \fi +$endif$ +\fi +$endif$ +\setlength{\emergencystretch}{3em} % prevent overfull lines +\providecommand{\tightlist}{% + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} +$if(numbersections)$ +\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$} +$else$ +\setcounter{secnumdepth}{-\maxdimen} % remove section numbering +$endif$ +$if(subfigure)$ +\usepackage{subcaption} +$endif$ +$if(beamer)$ +$else$ +$if(block-headings)$ +% Make \paragraph and \subparagraph free-standing +\makeatletter +\ifx\paragraph\undefined\else + \let\oldparagraph\paragraph + \renewcommand{\paragraph}{ + \@ifstar + \xxxParagraphStar + \xxxParagraphNoStar + } + \newcommand{\xxxParagraphStar}[1]{\oldparagraph*{#1}\mbox{}} + \newcommand{\xxxParagraphNoStar}[1]{\oldparagraph{#1}\mbox{}} +\fi +\ifx\subparagraph\undefined\else + \let\oldsubparagraph\subparagraph + \renewcommand{\subparagraph}{ + \@ifstar + \xxxSubParagraphStar + \xxxSubParagraphNoStar + } + \newcommand{\xxxSubParagraphStar}[1]{\oldsubparagraph*{#1}\mbox{}} + \newcommand{\xxxSubParagraphNoStar}[1]{\oldsubparagraph{#1}\mbox{}} +\fi +\makeatother +$endif$ +$endif$ +$if(pagestyle)$ +\pagestyle{$pagestyle$} +$endif$ +$if(csl-refs)$ +% definitions for citeproc citations +\NewDocumentCommand\citeproctext{}{} +\NewDocumentCommand\citeproc{mm}{% + \begingroup\def\citeproctext{#2}\cite{#1}\endgroup} +\makeatletter + % allow citations to break across lines + \let\@cite@ofmt\@firstofone + % avoid brackets around text for \cite: + \def\@biblabel#1{} + \def\@cite#1#2{{#1\if@tempswa , #2\fi}} +\makeatother +\newlength{\cslhangindent} +\setlength{\cslhangindent}{1.5em} +\newlength{\csllabelwidth} +\setlength{\csllabelwidth}{3em} +\newenvironment{CSLReferences}[2] % #1 hanging-indent, #2 entry-spacing + {\begin{list}{}{% + \setlength{\itemindent}{0pt} + \setlength{\leftmargin}{0pt} + \setlength{\parsep}{0pt} + % turn on hanging indent if param 1 is 1 + \ifodd #1 + \setlength{\leftmargin}{\cslhangindent} + \setlength{\itemindent}{-1\cslhangindent} + \fi + % set entry spacing + \setlength{\itemsep}{#2\baselineskip}}} + {\end{list}} +\usepackage{calc} +\newcommand{\CSLBlock}[1]{\hfill\break\parbox[t]{\linewidth}{\strut\ignorespaces#1\strut}} +\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{\strut#1\strut}} +\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{\strut#1\strut}} +\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} +$endif$ +$if(lang)$ +\ifLuaTeX +\usepackage[bidi=basic]{babel} +\else +\usepackage[bidi=default]{babel} +\fi +$if(babel-lang)$ +\babelprovide[main,import]{$babel-lang$} +$if(mainfont)$ +\ifPDFTeX +\else +\babelfont{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$$if(mainfontfallback)$,RawFeature={fallback=mainfontfallback}$endif$]{$mainfont$} +\fi +$endif$ +$endif$ +$for(babel-otherlangs)$ +\babelprovide[import]{$babel-otherlangs$} +$endfor$ +$for(babelfonts/pairs)$ +\babelfont[$babelfonts.key$]{rm}{$babelfonts.value$} +$endfor$ +% get rid of language-specific shorthands (see #6817): +\let\LanguageShortHands\languageshorthands +\def\languageshorthands#1{} +$if(selnolig-langs)$ +\ifLuaTeX + \usepackage[$for(selnolig-langs)$$it$$sep$,$endfor$]{selnolig} % disable illegal ligatures +\fi +$endif$ +$endif$ +$for(header-includes)$ +$header-includes$ +$endfor$ +$if(dir)$ +\ifPDFTeX + \TeXXeTstate=1 + \newcommand{\RL}[1]{\beginR #1\endR} + \newcommand{\LR}[1]{\beginL #1\endL} + \newenvironment{RTL}{\beginR}{\endR} + \newenvironment{LTR}{\beginL}{\endL} +\fi +$endif$ +$if(natbib)$ +\usepackage[$natbiboptions$]{natbib} +\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$} +$endif$ +$if(biblatex)$ +\usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex} +$for(bibliography)$ +\addbibresource{$bibliography$} +$endfor$ +$endif$ +$if(nocite-ids)$ +\nocite{$for(nocite-ids)$$it$$sep$, $endfor$} +$endif$ +$if(csquotes)$ +\usepackage{csquotes} +$endif$ +\usepackage{bookmark} +\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available +\urlstyle{$if(urlstyle)$$urlstyle$$else$same$endif$} +$if(links-as-notes)$ +% Make links footnotes instead of hotlinks: +\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}} +$endif$ +$if(verbatim-in-note)$ +\VerbatimFootnotes % allow verbatim text in footnotes +$endif$ +\hypersetup{ +$if(title-meta)$ + pdftitle={$title-meta$}, +$endif$ +$if(author-meta)$ + pdfauthor={$author-meta$}, +$endif$ +$if(lang)$ + pdflang={$lang$}, +$endif$ +$if(subject)$ +pdfsubject={$subject$}, +$endif$ +$if(keywords)$ + pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$}, +$endif$ +$if(colorlinks)$ + colorlinks=true, + linkcolor={$if(linkcolor)$$linkcolor$$else$default-linkcolor$endif$}, + filecolor={$if(filecolor)$$filecolor$$else$default-filecolor$endif$}, + citecolor={$if(citecolor)$$citecolor$$else$default-citecolor$endif$}, + urlcolor={$if(urlcolor)$$urlcolor$$else$default-urlcolor$endif$}, +$else$ +$if(boxlinks)$ +$else$ + hidelinks, +$endif$ +$endif$ + breaklinks=true, + pdfcreator={LaTeX via pandoc with the Eisvogel template}} +$if(title)$ +\title{$title$$if(thanks)$\thanks{$thanks$}$endif$} +$endif$ +$if(subtitle)$ +$if(beamer)$ +$else$ +\usepackage{etoolbox} +\makeatletter +\providecommand{\subtitle}[1]{% add subtitle to \maketitle + \apptocmd{\@title}{\par {\large #1 \par}}{}{} +} +\makeatother +$endif$ +\subtitle{$subtitle$} +$endif$ +\author{$for(author)$$author$$sep$ \and $endfor$} +\date{$date$} +$if(beamer)$ +$if(institute)$ +\institute{$for(institute)$$institute$$sep$ \and $endfor$} +$endif$ +$if(titlegraphic)$ +\titlegraphic{\includegraphics$if(titlegraphicoptions)$[$for(titlegraphicoptions)$$titlegraphicoptions$$sep$, $endfor$]$endif${$titlegraphic$}} +$endif$ +$if(logo)$ +\logo{\includegraphics{$logo$}} +$endif$ +$endif$ + + + +%% +%% added +%% + +$if(page-background)$ +\usepackage[pages=all]{background} +$endif$ + +% +% for the background color of the title page +% +$if(titlepage)$ +\usepackage{pagecolor} +\usepackage{afterpage} +$if(titlepage-background)$ +\usepackage{tikz} +$endif$ +$if(geometry)$ +$else$ +\usepackage[margin=2.5cm,includehead=true,includefoot=true,centering]{geometry} +$endif$ +$endif$ + +% +% break urls +% +\PassOptionsToPackage{hyphens}{url} + +% +% When using babel or polyglossia with biblatex, loading csquotes is recommended +% to ensure that quoted texts are typeset according to the rules of your main language. +% +\usepackage{csquotes} + +% +% captions +% +\definecolor{caption-color}{HTML}{777777} +$if(beamer)$ +$else$ +\usepackage[font={stretch=1.2}, textfont={color=caption-color}, position=top, skip=4mm, labelfont=bf, singlelinecheck=false, justification=$if(caption-justification)$$caption-justification$$else$raggedright$endif$]{caption} +\setcapindent{0em} +$endif$ + +% +% blockquote +% +\definecolor{blockquote-border}{RGB}{221,221,221} +\definecolor{blockquote-text}{RGB}{119,119,119} +\usepackage{mdframed} +\newmdenv[rightline=false,bottomline=false,topline=false,linewidth=3pt,linecolor=blockquote-border,skipabove=\parskip]{customblockquote} +\renewenvironment{quote}{\begin{customblockquote}\list{}{\rightmargin=0em\leftmargin=0em}% +\item\relax\color{blockquote-text}\ignorespaces}{\unskip\unskip\endlist\end{customblockquote}} + +% +% Source Sans Pro as the default font family +% Source Code Pro for monospace text +% +% 'default' option sets the default +% font family to Source Sans Pro, not \sfdefault. +% +\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex + $if(fontfamily)$ + $else$ + \usepackage[default]{sourcesanspro} + \usepackage{sourcecodepro} + $endif$ +\else % if not pdftex + $if(mainfont)$ + $else$ + \usepackage[default]{sourcesanspro} + \usepackage{sourcecodepro} + + % XeLaTeX specific adjustments for straight quotes: https://tex.stackexchange.com/a/354887 + % This issue is already fixed (see https://github.com/silkeh/latex-sourcecodepro/pull/5) but the + % fix is still unreleased. + % TODO: Remove this workaround when the new version of sourcecodepro is released on CTAN. + \ifxetex + \makeatletter + \defaultfontfeatures[\ttfamily] + { Numbers = \sourcecodepro@figurestyle, + Scale = \SourceCodePro@scale, + Extension = .otf } + \setmonofont + [ UprightFont = *-\sourcecodepro@regstyle, + ItalicFont = *-\sourcecodepro@regstyle It, + BoldFont = *-\sourcecodepro@boldstyle, + BoldItalicFont = *-\sourcecodepro@boldstyle It ] + {SourceCodePro} + \makeatother + \fi + $endif$ +\fi + + +% setup for chinese font, by Ming +\setCJKmainfont{$CJKmainfont$}[BoldFont=$CJKboldfont$, ItalicFont=$CJKitalicfont$] + +% +% heading color +% +\definecolor{heading-color}{RGB}{40,40,40} +$if(beamer)$ +$else$ +\addtokomafont{section}{\color{heading-color}} +$endif$ +% When using the classes report, scrreprt, book, +% scrbook or memoir, uncomment the following line. +%\addtokomafont{chapter}{\color{heading-color}} + +% +% variables for title, author and date +% +$if(beamer)$ +$else$ +\usepackage{titling} +\title{$title$} +\author{$for(author)$$author$$sep$, $endfor$} +\date{$date$} +$endif$ + +% +% tables +% +$if(tables)$ + +\definecolor{table-row-color}{HTML}{F5F5F5} +\definecolor{table-rule-color}{HTML}{999999} + +%\arrayrulecolor{black!40} +\arrayrulecolor{table-rule-color} % color of \toprule, \midrule, \bottomrule +\setlength\heavyrulewidth{0.3ex} % thickness of \toprule, \bottomrule +\renewcommand{\arraystretch}{1.3} % spacing (padding) + +$if(table-use-row-colors)$ +% Unfortunately the colored cells extend beyond the edge of the +% table because pandoc uses @-expressions (@{}) like so: +% +% \begin{longtable}[]{@{}ll@{}} +% \end{longtable} +% +% https://en.wikibooks.org/wiki/LaTeX/Tables#.40-expressions +\usepackage{etoolbox} +\AtBeginEnvironment{longtable}{\rowcolors{2}{}{table-row-color!100}} +\preto{\toprule}{\hiderowcolors}{}{} +\appto{\endhead}{\showrowcolors}{}{} +\appto{\endfirsthead}{\showrowcolors}{}{} +$endif$ +$endif$ + +% +% remove paragraph indentation +% +% \setlength{\parindent}{0pt} +$if(parindent)$ +\setlength{\parindent}{2em} %设置首行缩进为2字符 +$else$ +\setlength{\parindent}{0pt} +$endif$ +\setlength{\parskip}{6pt plus 2pt minus 1pt} +\setlength{\emergencystretch}{3em} % prevent overfull lines + + + +% +% +% Listings +% +% + +$if(listings)$ + +% +% general listing colors +% +\definecolor{listing-background}{HTML}{F7F7F7} +\definecolor{listing-rule}{HTML}{B3B2B3} +\definecolor{listing-numbers}{HTML}{B3B2B3} +\definecolor{listing-text-color}{HTML}{000000} +\definecolor{listing-keyword}{HTML}{435489} +\definecolor{listing-keyword-2}{HTML}{1284CA} % additional keywords +\definecolor{listing-keyword-3}{HTML}{9137CB} % additional keywords +\definecolor{listing-identifier}{HTML}{435489} +\definecolor{listing-string}{HTML}{00999A} +\definecolor{listing-comment}{HTML}{8E8E8E} + +\lstdefinestyle{eisvogel_listing_style}{ + language = java, +$if(listings-disable-line-numbers)$ + xleftmargin = 0.6em, + framexleftmargin = 0.4em, +$else$ + numbers = left, + xleftmargin = 2.7em, + framexleftmargin = 2.5em, +$endif$ + backgroundcolor = \color{listing-background}, + basicstyle = \color{listing-text-color}\linespread{1.0}% + \lst@ifdisplaystyle% + $if(code-block-font-size)$$code-block-font-size$$else$\small$endif$% + \fi\ttfamily{}, + breaklines = true, + frame = single, + framesep = 0.19em, + rulecolor = \color{listing-rule}, + frameround = ffff, + tabsize = 4, + numberstyle = \color{listing-numbers}, + aboveskip = 1.0em, + belowskip = 0.1em, + abovecaptionskip = 0em, + belowcaptionskip = 1.0em, + keywordstyle = {\color{listing-keyword}\bfseries}, + keywordstyle = {[2]\color{listing-keyword-2}\bfseries}, + keywordstyle = {[3]\color{listing-keyword-3}\bfseries\itshape}, + sensitive = true, + identifierstyle = \color{listing-identifier}, + commentstyle = \color{listing-comment}, + stringstyle = \color{listing-string}, + showstringspaces = false, + escapeinside = {/*@}{@*/}, % Allow LaTeX inside these special comments + literate = + {á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1 + {Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1 + {à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1 + {À}{{\`A}}1 {È}{{\`E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1 + {ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1 + {Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1 + {â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1 + {Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1 + {œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1 + {ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1 + {€}{{\EUR}}1 {£}{{\pounds}}1 {«}{{\guillemotleft}}1 + {»}{{\guillemotright}}1 {ñ}{{\~n}}1 {Ñ}{{\~N}}1 {¿}{{?`}}1 + {…}{{\ldots}}1 {≥}{{>=}}1 {≤}{{<=}}1 {„}{{\glqq}}1 {“}{{\grqq}}1 + {”}{{''}}1 +} +\lstset{style=eisvogel_listing_style} + +% +% Java (Java SE 12, 2019-06-22) +% +\lstdefinelanguage{Java}{ + morekeywords={ + % normal keywords (without data types) + abstract,assert,break,case,catch,class,continue,default, + do,else,enum,exports,extends,final,finally,for,if,implements, + import,instanceof,interface,module,native,new,package,private, + protected,public,requires,return,static,strictfp,super,switch, + synchronized,this,throw,throws,transient,try,volatile,while, + % var is an identifier + var + }, + morekeywords={[2] % data types + % primitive data types + boolean,byte,char,double,float,int,long,short, + % String + String, + % primitive wrapper types + Boolean,Byte,Character,Double,Float,Integer,Long,Short + % number types + Number,AtomicInteger,AtomicLong,BigDecimal,BigInteger,DoubleAccumulator,DoubleAdder,LongAccumulator,LongAdder,Short, + % other + Object,Void,void + }, + morekeywords={[3] % literals + % reserved words for literal values + null,true,false, + }, + sensitive, + morecomment = [l]//, + morecomment = [s]{/*}{*/}, + morecomment = [s]{/**}{*/}, + morestring = [b]", + morestring = [b]', +} + +\lstdefinelanguage{XML}{ + morestring = [b]", + moredelim = [s][\bfseries\color{listing-keyword}]{<}{\ }, + moredelim = [s][\bfseries\color{listing-keyword}]{}, + moredelim = [l][\bfseries\color{listing-keyword}]{/>}, + moredelim = [l][\bfseries\color{listing-keyword}]{>}, + morecomment = [s]{}, + morecomment = [s]{}, + commentstyle = \color{listing-comment}, + stringstyle = \color{listing-string}, + identifierstyle = \color{listing-identifier} +} +$endif$ + +% +% header and footer +% +$if(beamer)$ +$else$ +$if(disable-header-and-footer)$ +$else$ +\usepackage[headsepline,footsepline]{scrlayer-scrpage} + +\newpairofpagestyles{eisvogel-header-footer}{ + \clearpairofpagestyles + \ihead*{$if(header-left)$$header-left$$else$$title$$endif$} + \chead*{$if(header-center)$$header-center$$else$$endif$} + \ohead*{$if(header-right)$$header-right$$else$$date$$endif$} + \ifoot*{$if(footer-left)$$footer-left$$else$$for(author)$$author$$sep$, $endfor$$endif$} + \cfoot*{$if(footer-center)$$footer-center$$else$$endif$} + \ofoot*{$if(footer-right)$$footer-right$$else$\thepage$endif$} + \addtokomafont{pageheadfoot}{\upshape} +} +\pagestyle{eisvogel-header-footer} + +\newpairofpagestyles{eisvogel-chapterpage-header-footer}{ + \clearpairofpagestyles + \setheadtopline{0pt} % 移除页眉顶部的横线(如果有) + \setheadsepline{0pt} + \ifoot*{$if(footer-left)$$footer-left$$else$$for(author)$$author$$sep$, $endfor$$endif$} + \cfoot*{$if(footer-center)$$footer-center$$else$$endif$} + \ofoot*{$if(footer-right)$$footer-right$$else$\thepage$endif$} + \addtokomafont{pageheadfoot}{\upshape} +} + + +$if(book)$ +% \deftripstyle{ChapterStyle}{}{}{}{}{\pagemark}{} +% \renewcommand*{\chapterpagestyle}{ChapterStyle} +\renewcommand*{\chapterpagestyle}{eisvogel-chapterpage-header-footer} +$endif$ + + +$if(page-background)$ +\backgroundsetup{ +scale=1, +color=black, +opacity=$if(page-background-opacity)$$page-background-opacity$$else$0.2$endif$, +angle=0, +contents={% + \includegraphics[width=\paperwidth,height=\paperheight]{$page-background$} + }% +} +$endif$ +$endif$ +$endif$ + +% watermark +$if(watermark)$ +\usepackage{draftwatermark,xcolor} +\SetWatermarkText{\textcolor{$if(watermark-color)$$watermark-color$$else$gray!3$endif$}{$watermark$}} +\SetWatermarkScale{1.2} % 缩小水印尺寸(数值越小越密集) +\SetWatermarkAngle{45} % 斜角排列(经典水印样式) +\SetWatermarkLightness{0.99} % 亮度调节 +$endif$ + +%% +%% end added +%% + +\begin{document} + +%% +%% begin titlepage +%% +$if(beamer)$ +$else$ +$if(titlepage)$ +\begin{titlepage} +$if(titlepage-background)$ +\newgeometry{top=2cm, right=4cm, bottom=3cm, left=4cm} +$else$ +\newgeometry{left=2cm} +$endif$ +$if(titlepage-color)$ +\definecolor{titlepage-color}{HTML}{$titlepage-color$} +\newpagecolor{titlepage-color}\afterpage{\restorepagecolor} +$endif$ +$if(titlepage-background)$ +\tikz[remember picture,overlay] \node[inner sep=0pt] at (current page.center){\includegraphics[width=\paperwidth,height=\paperheight]{$titlepage-background$}}; +$endif$ +\newcommand{\colorRule}[3][black]{\textcolor[HTML]{#1}{\rule{#2}{#3}}} + +\NewDocumentEnvironment{dynalign}{} + {\begin{$if(titlepage-halign)$$titlepage-halign$$else$center$endif$}} + {\end{$if(titlepage-halign)$$titlepage-halign$$else$center$endif$}} + +\begin{dynalign} +\noindent +\\[-1em] +\color[HTML]{$if(titlepage-text-color)$$titlepage-text-color$$else$5F5F5F$endif$} +\makebox[0pt][l]{\colorRule[$if(titlepage-rule-color)$$titlepage-rule-color$$else$435488$endif$]{1.3\textwidth}{$if(titlepage-rule-height)$$titlepage-rule-height$$else$4$endif$pt}} +\par +\noindent + +$if(titlepage-logo)$ +\noindent +\vskip $if(logo-vskip)$$logo-vskip$$else$-8em$endif$ +\hskip $if(logo-hskip)$$logo-hskip$$else$-6em$endif$ +\includegraphics[width=$if(logo-width)$$logo-width$$else$35mm$endif$, left]{$titlepage-logo$} +$endif$ + +$if(titlepage-background)$ +% The titlepage with a background image has other text spacing and text size +{ + \setstretch{2} + \vfill + \vskip -8em + $if(title-vskip)$ + \vskip $title-vskip$ + $endif$ + $if(title-hskip)$ + \vskip $title-hskip$ + $endif$ + \noindent { + $if(title-size)$ + \$title-size$ + $else$ + \huge + $endif$ +\textbf{\textsf{$title$}}} + $if(subtitle)$ + \vskip 1em + { + $if(subtitle-size)$ + \$subtitle-size$ + $else$ + \Large + $endif$ + \textsf{$subtitle$}} + $endif$ + \vskip 2em + $if(author-vskip)$ + \vskip $author-vskip$ + $endif$ + \noindent { + $if(author-size)$ + $author-size$ + $else$ + \Large + $endif$ + +\textsf{$for(author)$$author$$sep$, $endfor$} +\vskip 0.6em + $if(date-vskip)$ + \vskip $date-vskip$ + $endif$ +{\textsf{$if(institute)$$institute$\vskip 0.6em$endif$$date$}} +} + \vfill +} +$else$ +{ + \setstretch{1.4} + \vfill + \vskip 8em + $if(title-vskip)$ + \vskip $title-vskip$ + $endif$ + $if(title-hskip)$ + \vskip $title-hskip$ + $endif$ + \noindent {\huge \textbf{\textsf{$title$}}} + $if(subtitle)$ + \vskip 1em + {\Large \textsf{$subtitle$}} + $endif$ + \vskip 4em + $if(author-vskip)$ + \vskip $author-vskip$ + $endif$ + \noindent { + $if(author-size)$ + $author-size$ + $else$ + \Large + $endif$ + +\textsf{$for(author)$$author$$sep$, $endfor$} +\vskip 0.6em + $if(date-vskip)$ + \vskip $date-vskip$ + $endif$ +} + \vfill +} +$endif$ + + +$if(titlepage-background)$ +$else$ + + $if(author-size)$ + $author-size$ + $else$ + \Large + $endif$ +{\textsf{$if(institute)$$institute$\vskip 0.6em$endif$$date$}} +$endif$ +\end{dynalign} +\end{titlepage} +\restoregeometry +\pagenumbering{arabic} +$endif$ +$endif$ + + + +%% +%% end titlepage +%% + +$if(has-frontmatter)$ +\frontmatter +$endif$ +$if(title)$ +$if(beamer)$ +\frame{\titlepage} +% don't generate the default title +% $else$ +% \maketitle +$endif$ +$if(abstract)$ +\begin{abstract} +$abstract$ +\end{abstract} +$endif$ +$endif$ + +$if(first-chapter)$ +\setcounter{chapter}{$first-chapter$} +\addtocounter{chapter}{-1} +$endif$ + +$for(include-before)$ +$include-before$ + +$endfor$ +$if(toc)$ +$if(toc-title)$ +\renewcommand*\contentsname{$toc-title$} +$endif$ +$if(beamer)$ +\begin{frame}[allowframebreaks] +$if(toc-title)$ + \frametitle{$toc-title$} +$endif$ + \setcounter{tocdepth}{$toc-depth$} + \tableofcontents +\end{frame} +$if(toc-own-page)$ +\newpage +$endif$ +$else$ +{ +$if(colorlinks)$ +\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$} +$endif$ +\setcounter{tocdepth}{$toc-depth$} +\tableofcontents +$if(toc-own-page)$ +\newpage +$endif$ +} +$endif$ +$endif$ +$if(lof)$ +\listoffigures +$endif$ +$if(lot)$ +\listoftables +$endif$ +$if(linestretch)$ +\setstretch{$linestretch$} +$endif$ +$if(has-frontmatter)$ +\mainmatter +$endif$ +$body$ + +$if(has-frontmatter)$ +\backmatter +$endif$ +$if(natbib)$ +$if(bibliography)$ +$if(biblio-title)$ +$if(has-chapters)$ +\renewcommand\bibname{$biblio-title$} +$else$ +\renewcommand\refname{$biblio-title$} +$endif$ +$endif$ +$if(beamer)$ +\begin{frame}[allowframebreaks]{$biblio-title$} + \bibliographytrue +$endif$ + \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$} +$if(beamer)$ +\end{frame} +$endif$ + +$endif$ +$endif$ +$if(biblatex)$ +$if(beamer)$ +\begin{frame}[allowframebreaks]{$biblio-title$} + \bibliographytrue + \printbibliography[heading=none] +\end{frame} +$else$ +\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$ +$endif$ + +$endif$ +$for(include-after)$ +$include-after$ + +$endfor$ +\end{document} diff --git a/dwhm/_extensions/dwhm/dwhm.css b/dwinst/dwhm.css similarity index 100% rename from dwhm/_extensions/dwhm/dwhm.css rename to dwinst/dwhm.css diff --git a/inst/tex/elsevier-harvard.csl b/dwinst/elsevier-harvard.csl similarity index 100% rename from inst/tex/elsevier-harvard.csl rename to dwinst/elsevier-harvard.csl diff --git a/inst/word/manu.docx b/dwinst/manu.docx similarity index 100% rename from inst/word/manu.docx rename to dwinst/manu.docx diff --git a/inst/tex/nature-biotechnology.csl b/dwinst/nature-biotechnology.csl similarity index 100% rename from inst/tex/nature-biotechnology.csl rename to dwinst/nature-biotechnology.csl diff --git a/inst/tex/nature.csl b/dwinst/nature.csl similarity index 100% rename from inst/tex/nature.csl rename to dwinst/nature.csl diff --git a/dwbk/_extensions/drwater/dwbk/rceeslogo.svg b/dwinst/rceeslogo.svg similarity index 100% rename from dwbk/_extensions/drwater/dwbk/rceeslogo.svg rename to dwinst/rceeslogo.svg diff --git a/dwinst/rceeslonglogo.svg b/dwinst/rceeslonglogo.svg new file mode 100644 index 0000000..013b69d --- /dev/null +++ b/dwinst/rceeslonglogo.svg @@ -0,0 +1,352 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/inst/word/repcn.docx b/dwinst/repcn.docx similarity index 100% rename from inst/word/repcn.docx rename to dwinst/repcn.docx diff --git a/dwinst/signms.png b/dwinst/signms.png new file mode 100644 index 0000000..c292ad6 Binary files /dev/null and b/dwinst/signms.png differ diff --git a/dwinst/signms.pptx b/dwinst/signms.pptx new file mode 100644 index 0000000..94e54f5 Binary files /dev/null and b/dwinst/signms.pptx differ diff --git a/dwinst/signms.svg b/dwinst/signms.svg new file mode 100644 index 0000000..1218831 --- /dev/null +++ b/dwinst/signms.svg @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dwinst/signmy.png b/dwinst/signmy.png new file mode 100755 index 0000000..325b81a Binary files /dev/null and b/dwinst/signmy.png differ diff --git a/dwinst/signmy.pptx b/dwinst/signmy.pptx new file mode 100644 index 0000000..0a8c283 Binary files /dev/null and b/dwinst/signmy.pptx differ diff --git a/dwinst/signmy.svg b/dwinst/signmy.svg new file mode 100644 index 0000000..308039c --- /dev/null +++ b/dwinst/signmy.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/inst/tex/the-isme-j.csl b/dwinst/the-isme-j.csl similarity index 100% rename from inst/tex/the-isme-j.csl rename to dwinst/the-isme-j.csl diff --git a/dwms/_extension.yml b/dwms/_extension.yml deleted file mode 100644 index 825fba6..0000000 --- a/dwms/_extension.yml +++ /dev/null @@ -1,41 +0,0 @@ -title: dwms-pdf-quarto -author: Ming Su -version: 0.0.1 -quarto-required: ">=1.3.0" -contributes: - formats: - common: - knitr: - opts_chunk: - echo: false - message: false - warning: false - pdf: - documentclass: article - toc: false - papersize: letter - fontsize: 12pt - geometry: margin=1in - fig-height: 4 # smaller fig heights make floating easier - fig-width: 7.5 # set to the (full width - margins) of letter - fig-pos: "!t" - colorlinks: true - urlcolor: blue - sansfont: "Gill Sans" - sansfontoptions: - - Color=39729E - mainfont: "Source Sans 3" #| Verdana (fontsize: 11pt) # Source Sans 3 | Times New Roman| Helvetica | PT Sans - monofont: "JetBrains Mono" - mathfont: "Cambria Math" - CJKmainfont: SimHei - block-headings: false # to deal with titlesec problems - include-in-header: header.tex - template-partials: - - "partials/title.tex" - - "partials/before-body.tex" - - "partials/after-body.tex" -filters: - - latex-environment - - authoraffil.lua -lightbox: auto -commands: [clab] diff --git a/dwms/_extension.yml b/dwms/_extension.yml new file mode 120000 index 0000000..c6daaa8 --- /dev/null +++ b/dwms/_extension.yml @@ -0,0 +1 @@ +_extensions/drwater/dwms/_extension.yml \ No newline at end of file diff --git a/dwms/_extensions/dwms/_extension.yml b/dwms/_extensions/drwater/dwms/_extension.yml similarity index 100% rename from dwms/_extensions/dwms/_extension.yml rename to dwms/_extensions/drwater/dwms/_extension.yml diff --git a/dwms/_extensions/dwms/header.tex b/dwms/_extensions/drwater/dwms/header.tex similarity index 100% rename from dwms/_extensions/dwms/header.tex rename to dwms/_extensions/drwater/dwms/header.tex diff --git a/dwbk/partials/after-body.tex b/dwms/_extensions/drwater/dwms/partials/after-body.tex similarity index 100% rename from dwbk/partials/after-body.tex rename to dwms/_extensions/drwater/dwms/partials/after-body.tex diff --git a/dwbk/partials/before-body.tex b/dwms/_extensions/drwater/dwms/partials/before-body.tex similarity index 100% rename from dwbk/partials/before-body.tex rename to dwms/_extensions/drwater/dwms/partials/before-body.tex diff --git a/dwbk/partials/title.tex b/dwms/_extensions/drwater/dwms/partials/title.tex similarity index 100% rename from dwbk/partials/title.tex rename to dwms/_extensions/drwater/dwms/partials/title.tex diff --git a/dwms/_extensions/dwms/partials/after-body.tex b/dwms/_extensions/dwms/partials/after-body.tex deleted file mode 100644 index e69de29..0000000 diff --git a/dwms/_extensions/dwms/partials/before-body.tex b/dwms/_extensions/dwms/partials/before-body.tex deleted file mode 100644 index 9a0f30e..0000000 --- a/dwms/_extensions/dwms/partials/before-body.tex +++ /dev/null @@ -1,33 +0,0 @@ -$-- Implements the frontmatter, title page, and abstract. - -% for some reason this does not work in header -\renewcommand{\abstractname}{Abstract.} - -% add the short title to the fancy header -$if(shorttitle)$ -\fancyhead[R]{$shorttitle$} -$endif$ -$if(shortauthors)$ -\fancyhead[L]{$shortauthors$} -$endif$ - -$if(has-frontmatter)$ -\frontmatter -$endif$ -$if(title)$ -\maketitle -%\noindent \rule{\linewidth}{.5pt} -$if(abstract)$ -\begin{abstract} -$abstract$ -\end{abstract} -$if(keywords)$ -\begin{keywords} -\def\sep{;\ } -$for(keywords/allbutlast)$$keywords$\sep $endfor$ -$for(keywords/last)$$keywords$$endfor$ -\end{keywords} -$endif$ -$endif$ -%\noindent \rule{\linewidth}{.5pt} -$endif$ \ No newline at end of file diff --git a/dwms/_extensions/dwms/partials/title.tex b/dwms/_extensions/dwms/partials/title.tex deleted file mode 100644 index b86298e..0000000 --- a/dwms/_extensions/dwms/partials/title.tex +++ /dev/null @@ -1,15 +0,0 @@ -$if(title)$ -\title{$title$$if(thanks)$\thanks{$thanks$}$endif$} -$endif$ -$if(subtitle)$ -\usepackage{etoolbox} -\makeatletter -\providecommand{\subtitle}[1]{% add subtitle to \maketitle - \apptocmd{\@title}{\par {\large\sffamily\bfseries #1 \par}}{}{} -} -\makeatother -\subtitle{$subtitle$} -$endif$ -$-- This supports Quarto's authors normalization -\author{$for(authors)$\footnotesize $it.name.literal$$sep$ \and $endfor$} -\date{$date$} diff --git a/dwms/header.tex b/dwms/header.tex deleted file mode 100644 index bf33a39..0000000 --- a/dwms/header.tex +++ /dev/null @@ -1,133 +0,0 @@ -% ----------------------- -% CUSTOM PREAMBLE STUFF -% ----------------------- -\usepackage{enumitem} -\usepackage{fontspec} -\usepackage{float} -\usepackage[normalem]{ulem} -\usepackage{hyperref} -\usepackage{nameref} %needed by zref-xr -\usepackage{zref-xr,zref-hyperref,zref-user} -\usepackage{xr-hyper} -\usepackage[normalem]{ulem} -\usepackage{setspace} -\usepackage{lineno} -\usepackage{caption} -\captionsetup{singlelinecheck=off} -\usepackage[UTF8, scheme=plain]{ctex} -\usepackage{orcidlink} - -% \setkomafont{author}{\normalsize} - -% for revision -\usepackage{adjustbox} -% \usepackage{xcolor} -\usepackage{mdframed} -\newmdenv[topline=false, - leftline=true, - bottomline=false, - rightline=false, - linewidth=3pt, - %backgroundcolor=lightgray, - linecolor=gray!30, - backgroundcolor=gray!5, - skipabove=\topsep, - skipbelow=\topsep, - leftmargin=0pt, - rightmargin=0pt, - innertopmargin=0pt, - innerbottommargin=0pt - ]{refquote} -\newmdenv[topline=false, - leftline=true, - bottomline=false, - rightline=false, - linewidth=3pt, - %backgroundcolor=lightgray, - backgroundcolor=red!3!white, - linecolor=red!30!white, - skipabove=\topsep, - skipbelow=\topsep, - leftmargin=0pt, - rightmargin=0pt, - innertopmargin=10pt, - innerbottommargin=10pt - ]{question} -% setup hyperlink for page and line number -\def\msname{MS} -\def\smname{SM} -\setenumerate{labelsep=*, leftmargin=1.0pc} -%\zexternaldocument*{ManuscriptNew\veraa} -\zexternaldocument*{\msname} -\zexternaldocument*{\smname} -\newcommand{\hlabel}[1]{\label{#1}\hypertarget{#1}{ - \linelabel{line:#1}}} -%\externaldocument[si-]{\smname\veraa}[\smname\veraa.pdf] -\makeatletter -\newcommand{\clab}[2][]{ - \protected@write\@auxout{\let\clab\@secondoftwo}{ - \string\newlabel{r:#1}{{#2}{}}}% - \hlabel{#1}#2\hlabel{#1end}} -\makeatother -\newcommand{\zhypera}[1]{\href[pdfnewwindow]{\msname.pdf\##1}{\\[1ex]\textbf{Page \zpageref{#1}, Line -\zref{line:#1}--\zref{line:#1end}:}\\}} -\newcommand{\cref}[1]{\begin{refquote}\zhypera{#1}{\zref{r:#1}}\\[-0.5ex]\end{refquote}} -% \newenvironment{ra}[1][\unskip]{\par \noindent \\[-1ex] \textbf{Response/Action:}\par\bf}{\ \\} -\renewenvironment{quote}{\begin{question}}{\end{question}} -% \renewenvironment{verbatim}{\begin{ra}}{\end{ra}} - - - - -% ----------------- -% Title block stuff -% ----------------- - -% Title -\makeatletter -\renewcommand{\title}[1]{\gdef\@title{\large\textbf{#1}}} % Adjust \Huge or other font commands -\makeatother - - -% ------------------ -% Section headings -% ------------------ -\usepackage{titlesec} -\titleformat*{\section}{\Large\sffamily\bfseries\raggedright} -\titleformat*{\subsection}{\large\sffamily\bfseries\raggedright} -\titleformat*{\subsubsection}{\normalsize\sffamily\bfseries\raggedright} -\titleformat*{\paragraph}{\small\sffamily\bfseries\raggedright} - -%\titlespacing{}{}{}{} -% Starred version removes indentation in following paragraph -\titlespacing*{\section}{0em}{2em}{0.1em} -\titlespacing*{\subsection}{0em}{1.25em}{0.1em} -\titlespacing*{\subsubsection}{0em}{0.75em}{0em} - -% ------------------ -% Headers/Footers -% ------------------ -% \usepackage{fancyhdr} -% \pagestyle{fancy} -% \fancyhf{} -% \fancyhead[L,C,R]{} -% \fancyfoot[L,C]{} -% \fancyfoot[R]{\thepage} -% \renewcommand{\headrulewidth}{1pt} -% \fancypagestyle{plain}{% -% \renewcommand{\headrulewidth}{0pt}% -% \fancyhf{}% -% \fancyfoot[R]{\thepage}% -% } -% \renewcommand\footnoterule{\rule{\linewidth}{0.1pt}\vspace{5pt}} - -% ------------------ -% Captions -% ------------------ -\usepackage[labelfont=bf,labelsep=period]{caption} -\captionsetup[figure]{font=footnotesize,justification=raggedright,singlelinecheck=false,format=hang} - - -% --------------------------- -% END CUSTOM PREAMBLE STUFF -% --------------------------- diff --git a/dwms/header.tex b/dwms/header.tex new file mode 120000 index 0000000..ce3319c --- /dev/null +++ b/dwms/header.tex @@ -0,0 +1 @@ +_extensions/drwater/dwms/header.tex \ No newline at end of file diff --git a/dwms/partials b/dwms/partials new file mode 120000 index 0000000..22a55ac --- /dev/null +++ b/dwms/partials @@ -0,0 +1 @@ +_extensions/drwater/dwms/partials \ No newline at end of file diff --git a/dwms/partials/after-body.tex b/dwms/partials/after-body.tex deleted file mode 100644 index e69de29..0000000 diff --git a/dwms/partials/before-body.tex b/dwms/partials/before-body.tex deleted file mode 100644 index 9a0f30e..0000000 --- a/dwms/partials/before-body.tex +++ /dev/null @@ -1,33 +0,0 @@ -$-- Implements the frontmatter, title page, and abstract. - -% for some reason this does not work in header -\renewcommand{\abstractname}{Abstract.} - -% add the short title to the fancy header -$if(shorttitle)$ -\fancyhead[R]{$shorttitle$} -$endif$ -$if(shortauthors)$ -\fancyhead[L]{$shortauthors$} -$endif$ - -$if(has-frontmatter)$ -\frontmatter -$endif$ -$if(title)$ -\maketitle -%\noindent \rule{\linewidth}{.5pt} -$if(abstract)$ -\begin{abstract} -$abstract$ -\end{abstract} -$if(keywords)$ -\begin{keywords} -\def\sep{;\ } -$for(keywords/allbutlast)$$keywords$\sep $endfor$ -$for(keywords/last)$$keywords$$endfor$ -\end{keywords} -$endif$ -$endif$ -%\noindent \rule{\linewidth}{.5pt} -$endif$ \ No newline at end of file diff --git a/dwms/partials/title.tex b/dwms/partials/title.tex deleted file mode 100644 index b86298e..0000000 --- a/dwms/partials/title.tex +++ /dev/null @@ -1,15 +0,0 @@ -$if(title)$ -\title{$title$$if(thanks)$\thanks{$thanks$}$endif$} -$endif$ -$if(subtitle)$ -\usepackage{etoolbox} -\makeatletter -\providecommand{\subtitle}[1]{% add subtitle to \maketitle - \apptocmd{\@title}{\par {\large\sffamily\bfseries #1 \par}}{}{} -} -\makeatother -\subtitle{$subtitle$} -$endif$ -$-- This supports Quarto's authors normalization -\author{$for(authors)$\footnotesize $it.name.literal$$sep$ \and $endfor$} -\date{$date$} diff --git a/dwsd/_extension.yml b/dwsd/_extension.yml deleted file mode 100644 index 2299656..0000000 --- a/dwsd/_extension.yml +++ /dev/null @@ -1,23 +0,0 @@ -title: revealjs format for drwater -author: Ming Su -version: 1.0.0 -quarto-required: ">=1.3.0" -contributes: - formats: - revealjs: - theme: [default, dwsd.css] - slide-number: true - date-format: long - logo: rceeslogo.png - format-resources: ["rceeslogo.png"] - chalkboard: - buttons: true - preview-links: auto - lang: zh - toc: true - toc-depth: 1 - toc-title: 大纲 - pointer: - key: "p" - color: "#32cd32" - pointerSize: 18 diff --git a/dwsd/_extension.yml b/dwsd/_extension.yml new file mode 120000 index 0000000..9ffd03d --- /dev/null +++ b/dwsd/_extension.yml @@ -0,0 +1 @@ +_extensions/drwater/dwsd/_extension.yml \ No newline at end of file diff --git a/dwsd/_extensions/drwater/dwsd/_extension.yml b/dwsd/_extensions/drwater/dwsd/_extension.yml index 2299656..2b3ee46 100644 --- a/dwsd/_extensions/drwater/dwsd/_extension.yml +++ b/dwsd/_extensions/drwater/dwsd/_extension.yml @@ -9,7 +9,7 @@ contributes: slide-number: true date-format: long logo: rceeslogo.png - format-resources: ["rceeslogo.png"] + format-resources: ["rceeslogo.pdf"] chalkboard: buttons: true preview-links: auto diff --git a/dwsd/_extensions/drwater/dwsd/_extensions/_extension.yml b/dwsd/_extensions/drwater/dwsd/_extensions/_extension.yml deleted file mode 100644 index 2299656..0000000 --- a/dwsd/_extensions/drwater/dwsd/_extensions/_extension.yml +++ /dev/null @@ -1,23 +0,0 @@ -title: revealjs format for drwater -author: Ming Su -version: 1.0.0 -quarto-required: ">=1.3.0" -contributes: - formats: - revealjs: - theme: [default, dwsd.css] - slide-number: true - date-format: long - logo: rceeslogo.png - format-resources: ["rceeslogo.png"] - chalkboard: - buttons: true - preview-links: auto - lang: zh - toc: true - toc-depth: 1 - toc-title: 大纲 - pointer: - key: "p" - color: "#32cd32" - pointerSize: 18 diff --git a/dwsd/_extensions/drwater/dwsd/_extensions/dwsd.css b/dwsd/_extensions/drwater/dwsd/_extensions/dwsd.css deleted file mode 100644 index 320a2dd..0000000 --- a/dwsd/_extensions/drwater/dwsd/_extensions/dwsd.css +++ /dev/null @@ -1,345 +0,0 @@ -:root { - --r-background-color: #fff; - --r-main-font: Source Sans Pro, simhei, microsoft yahei; - --r-main-font-size: 28px; - --r-main-color: #222; - --r-block-margin: 12px; - --r-heading-margin: 0 0 12px 0; - --r-heading-font: Source Sans Pro, microsoft yahei, simhei; - --r-heading-color: #0c4c8a; - --r-heading-line-height: 1.2em; - --r-heading-letter-spacing: normal; - --r-heading-text-transform: none; - --r-heading-text-shadow: none; - --r-heading-font-weight: 900; - --r-heading1-text-shadow: none; - --r-heading1-size: 2.5em; - --r-heading2-size: 1.6em; - --r-heading3-size: 1.3em; - --r-heading4-size: 1em; - --r-code-font: SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, - Courier New, monospace; - --r-link-color: #ef562d; - --r-link-color-dark: #ef562d; - --r-link-color-hover: #d13076; - --r-selection-background-color: #98bdef; - --r-selection-color: #fff; - --quarto-hl-fu-color: #c53800; -} - -.reveal .title-slide h1 { - text-align: center; - line-height: var(--r-heading-line-height); -} - -section#title-slide p.author, -section#title-slide p.institute, -section#title-slide p.date { - font-size: var(--r-heading2-size); - color: gray; -} - -section#title-slide h1.title:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -section#title-slide p.subtitle { - font-size: var(--r-heading3-size); - text-decoration: underline; - color: gray; -} - -section#title-slide a { - color: gray; -} - -.reveal .slide-number a { - color: #bbbbbb; - font-size: 10pt; -} - -section#title-slide a:hover { - color: var(--r-link-color-hover); -} - -.reveal[data-navigation-mode="linear"] .title-slide h1 { - font-size: var(--r-heading2-size); -} - -section#TOC { - vertical-align: middle; - text-align: center; -} - -section#TOC h2 { - font-size: var(--r-heading2-size); - font-weight: bold; - text-align: center; -} - -section#TOC h2:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -section#TOC ul { - text-align: left; - vertical-align: middle; - margin-top: 3em; - line-height: 1.6em; -} - -section#TOC ol li { - font-size: var(--r-heading3-size); - font-weight: bold; - color: gray; - list-style-type: number; - line-height: 1.6em; -} - -section#TOC strong, -section#TOC b { - color: black; -} - -section#TOC ul li { - font-size: var(--r-heading3-size); - font-weight: bold; - color: gray; - list-style-type: circle; - line-height: 1.6em; -} - -section#TOC a { - color: black; -} - -section#TOC a:hover { - color: var(--r-link-color-hover); -} - -.reveal h2 { - text-align: left; - margin-top: 0px; - line-height: var(--r-heading-line-height); -} - -.reveal .title-slide h1:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -.reveal h2:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, var(--r-heading-color), white) 1; - border-radius: 1px; -} - -.reveal ul { - list-style-type: circle; -} - -li:hover { - font-weight: bold; -} - -.reveal p:hover { - font-weight: bold; -} - -.reveal ul li { - line-height: 1.2em; -} - -.reveal .thank h2 { - font-size: var(--r-heading1-size); - line-height: var(--r-heading-line-height); -} - -.reveal .thank { - text-align: center; -} - -.reveal .thank h2:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -.panel-tabset [role="tab"] { - border-bottom: 1px solid red; -} - -.panel-tabset [role="tab"][aria-selected="true"] { - background-color: #ffdddd; - border-bottom: 1px solid red; -} - -.white { - color: #ffffff; -} -.orange { - color: #e09a25; -} -.green { - color: #006e51; -} -.pink { - color: #d13076; -} - -.dusty { - color: #ad5d5d; -} - -.flame { - color: #ef562d; -} -.kale { - color: #5c7148; -} -.blue { - color: #0c4c8a; -} -.red { - color: #b93a32; -} -.clay { - color: #9e4624; -} -.bodacious { - color: #b76ba3; -} -.serenity { - color: #91a8d0; -} - -.cognac { - color: #60413c; -} -.sangria { - color: #760030; -} - -.alumium { - color: #75796a; -} - -.marsala { - color: #964f4c; -} -.purple { - color: #702fa8; -} - -.blank { - background-color: "Yellow"; - width: 100%; - color: red; -} - -.reveal .slide aside { - position: absolute; - margin: 0 auto; - left: 2%; - font-size: 0.7em; - text-align: end; - max-width: 90%; - width: fit-content; - color: gray; - bottom: -6%; -} - -.ref { - position: absolute; - margin: 0 auto; - right: 2%; - font-size: 1em; - text-align: end; - max-width: 90%; - width: fit-content; - color: gray; - bottom: -6%; -} - -.con { - position: absolute; - margin: 0 auto; - font-size: 1.4em; - text-align: center; - font-family: inherit; - max-width: 100%; - width: fit-content; - color: #023047; - bottom: -2%; -} - -.center { - text-align: center; -} - -.tiny { - font-size: 60%; -} - -figure > figcaption { - margin-top: -0.5em; -} - -.reveal .slide figure > figcaption, -.reveal .slide img.stretch + p.caption, -.reveal .slide img.r-stretch + p.caption { - font-size: 0.9em; - text-align: center; -} - -.reveal strong, .reveal b { - font-weight: bold; - color: crimson; -} - -.reveal pre code { - background-color: #554433; - line-height: 1.2em; - color: #fff; - /* font-size: x-large; */ -} - -.reveal pre code:hover{ - font-size: x-large; - line-height: 120%; -} - -section#title-slide p.subtitle { - font-size: var(--r-heading3-size); - text-decoration: none; - color: gray; -} - -.reveal div.sourceCode pre code { - background-color: #002233; - min-height: 100%; - /* font-size: x-large; */ -} - -.reveal div.sourceCode pre code:hover { - font-size: x-large; -} \ No newline at end of file diff --git a/dwsd/_extensions/drwater/dwsd/_extensions/rceeslogo.png b/dwsd/_extensions/drwater/dwsd/_extensions/rceeslogo.png deleted file mode 100755 index f8cf1d5..0000000 Binary files a/dwsd/_extensions/drwater/dwsd/_extensions/rceeslogo.png and /dev/null differ diff --git a/dwsd/_extensions/drwater/dwsd/_extensions/rceeslonglogo.png b/dwsd/_extensions/drwater/dwsd/_extensions/rceeslonglogo.png deleted file mode 100755 index 5460fde..0000000 Binary files a/dwsd/_extensions/drwater/dwsd/_extensions/rceeslonglogo.png and /dev/null differ diff --git a/dwsd/_extensions/drwater/dwsd/dwsd.css b/dwsd/_extensions/drwater/dwsd/dwsd.css deleted file mode 100644 index 027d271..0000000 --- a/dwsd/_extensions/drwater/dwsd/dwsd.css +++ /dev/null @@ -1,374 +0,0 @@ -/*-- scss:defaults --*/ - -/* Modified version of the metropolis theme ported into Quarto by Patrick Schwartz */ - -// fonts -@import url("https://fonts.googleapis.com/css?family=Fira+Sans:300,300i,400,400i,500,500i,700,700i"); -@import url("https://fonts.googleapis.com/css?family=Fira+Code:300,300i,400,400i,500,500i,700,700i"); -@import url("https://fonts.googleapis.com/css?family=Roboto+Mono|JetBrains+Mono&display=swap"); -@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"); - -$font-family-sans-serif: "Fira Sans", "Roboto", "Droid Serif", serif !default; -$font-family-monospace: "Fira Code", "JetBrains Mono", monospace; -$presentation-font-size-root: 32px; -$presentation-line-height: 1.5em; -$presentation-heading-font-weight: 400; - -// colors -$body-bg: #fafafa !default; -$body-color: #000 !default; -// $link-color: #EB811B !default; -$selection-bg: #26351c; - -// headings -// $presentation-heading-font: "Palatino Linotype", "Book Antiqua", Palatino, -// FreeSerif, serif !default; -// $presentation-heading-color: #383d3d !default; - -/*-- scss:rules --*/ - -:root { - --r-background-color: #fff; - --r-main-font: Source Sans Pro, simhei, microsoft yahei; - --r-main-font-size: 28px; - --r-main-color: #222; - --r-block-margin: 12px; - --r-heading-margin: 0 0 12px 0; - --r-heading-font: Source Sans Pro, microsoft yahei, simhei; - --r-heading-color: #0c4c8a; - --r-heading-line-height: 1.2em; - --r-heading-letter-spacing: normal; - --r-heading-text-transform: none; - --r-heading-text-shadow: none; - --r-heading-font-weight: 900; - --r-heading1-text-shadow: none; - --r-heading1-size: 2.5em; - --r-heading2-size: 1.6em; - --r-heading3-size: 1.3em; - --r-heading4-size: 1em; - --r-code-font: SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, - Courier New, monospace; - --r-link-color: #ef562d; - --r-link-color-dark: #ef562d; - --r-link-color-hover: #d13076; - --r-selection-background-color: #98bdef; - --r-selection-color: #fff; - --quarto-hl-fu-color: #c53800; -} - -.reveal .title-slide h1 { - text-align: center; - line-height: var(--r-heading-line-height); -} - -section#title-slide p.author, -section#title-slide p.institute, -section#title-slide p.date { - font-size: var(--r-heading2-size); - color: gray; -} - -section#title-slide h1.title:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -section#title-slide p.subtitle { - font-size: var(--r-heading3-size); - text-decoration: underline; - color: gray; -} - -section#title-slide a { - color: gray; -} - -.reveal .slide-number a { - color: #bbbbbb; - font-size: 10pt; -} - -section#title-slide a:hover { - color: var(--r-link-color-hover); -} - -.reveal[data-navigation-mode="linear"] .title-slide h1 { - font-size: var(--r-heading2-size); -} - -section#TOC { - vertical-align: middle; - text-align: center; -} - -section#TOC h2 { - font-size: var(--r-heading2-size); - font-weight: bold; - text-align: center; -} - -section#TOC h2:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -section#TOC ul { - text-align: left; - vertical-align: middle; - margin-top: 3em; - line-height: 1.6em; -} - -section#TOC ol li { - font-size: var(--r-heading3-size); - font-weight: bold; - color: gray; - list-style-type: number; - line-height: 1.6em; -} - -section#TOC strong, -section#TOC b { - color: black; -} - -section#TOC ul li { - font-size: var(--r-heading3-size); - font-weight: bold; - color: gray; - list-style-type: circle; - line-height: 1.6em; -} - -section#TOC a { - color: black; -} - -section#TOC a:hover { - color: var(--r-link-color-hover); -} - -.reveal h2 { - text-align: left; - margin-top: 0px; - line-height: var(--r-heading-line-height); -} - -.reveal .title-slide h1:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -.reveal h2:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, var(--r-heading-color), white) 1; - border-radius: 1px; -} - -.reveal ul { - list-style-type: circle; -} - -li:hover { - font-weight: bold; -} - -.reveal p:hover { - font-weight: bold; -} - -.reveal ul li { - line-height: 1.2em; -} - -.reveal .thank h2 { - font-size: var(--r-heading1-size); - line-height: var(--r-heading-line-height); -} - -.reveal .thank { - text-align: center; -} - -.reveal .thank h2:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -.panel-tabset [role="tab"] { - border-bottom: 1px solid red; -} - -.panel-tabset [role="tab"][aria-selected="true"] { - background-color: #ffdddd; - border-bottom: 1px solid red; -} - -.white { - color: #ffffff; -} -.orange { - color: #e09a25; -} -.green { - color: #006e51; -} -.pink { - color: #d13076; -} - -.dusty { - color: #ad5d5d; -} - -.flame { - color: #ef562d; -} -.kale { - color: #5c7148; -} -.blue { - color: #0c4c8a; -} -.red { - color: #b93a32; -} -.clay { - color: #9e4624; -} -.bodacious { - color: #b76ba3; -} -.serenity { - color: #91a8d0; -} - -.cognac { - color: #60413c; -} -.sangria { - color: #760030; -} - -.alumium { - color: #75796a; -} - -.marsala { - color: #964f4c; -} -.purple { - color: #702fa8; -} - -.blank { - background-color: "Yellow"; - width: 100%; - color: red; -} - -.reveal .slide aside { - position: absolute; - margin: 0 auto; - left: 2%; - font-size: 0.7em; - text-align: end; - max-width: 90%; - width: fit-content; - color: gray; - bottom: -6%; -} - -.ref { - position: absolute; - margin: 0 auto; - right: 2%; - font-size: 1em; - text-align: end; - max-width: 90%; - width: fit-content; - color: gray; - bottom: -6%; -} - -.con { - position: absolute; - margin: 0 auto; - font-size: 1.4em; - text-align: center; - font-family: inherit; - max-width: 100%; - width: fit-content; - color: #023047; - bottom: -2%; -} - -.center { - text-align: center; -} - -.tiny { - font-size: 60%; -} - -figure > figcaption { - margin-top: -0.5em; -} - -.reveal .slide figure > figcaption, -.reveal .slide img.stretch + p.caption, -.reveal .slide img.r-stretch + p.caption { - font-size: 0.9em; - text-align: center; -} - -.reveal strong, .reveal b { - font-weight: bold; - color: crimson; -} - -.reveal pre code { - background-color: #554433; - line-height: 1.2em; - color: #fff; - /* font-size: x-large; */ -} - -.reveal pre code:hover{ - font-size: x-large; - line-height: 120%; -} - -section#title-slide p.subtitle { - font-size: var(--r-heading3-size); - text-decoration: none; - color: gray; -} - -.reveal div.sourceCode pre code { - background-color: #002233; - min-height: 100%; - /* font-size: x-large; */ -} - -.reveal div.sourceCode pre code:hover { - font-size: x-large; -} diff --git a/dwsd/_extensions/drwater/dwsd/inst b/dwsd/_extensions/drwater/dwsd/inst new file mode 120000 index 0000000..541d62c --- /dev/null +++ b/dwsd/_extensions/drwater/dwsd/inst @@ -0,0 +1 @@ +../../../../dwinst \ No newline at end of file diff --git a/dwsd/_extensions/drwater/dwsd/rceeslogo.png b/dwsd/_extensions/drwater/dwsd/rceeslogo.png deleted file mode 100755 index f8cf1d5..0000000 Binary files a/dwsd/_extensions/drwater/dwsd/rceeslogo.png and /dev/null differ diff --git a/dwsd/_extensions/drwater/dwsd/rceeslonglogo.png b/dwsd/_extensions/drwater/dwsd/rceeslonglogo.png deleted file mode 100755 index 5460fde..0000000 Binary files a/dwsd/_extensions/drwater/dwsd/rceeslonglogo.png and /dev/null differ diff --git a/dwsd/_quarto_internal_scss_error.scss b/dwsd/_quarto_internal_scss_error.scss deleted file mode 100644 index 4d2256e..0000000 --- a/dwsd/_quarto_internal_scss_error.scss +++ /dev/null @@ -1,3190 +0,0 @@ -// quarto-scss-analysis-annotation { "quarto-version": "1.7.29" } - -// quarto-scss-analysis-annotation { "origin": "'use' section from format" } - - - -// quarto-scss-analysis-annotation { "origin": "'use' section from Quarto" } - -@use "sass:color" as quarto-color; -@use "sass:map" as quarto-map; -@use "sass:math" as quarto-math; - - -// this file is currently intentionally empty - - -// quarto-scss-analysis-annotation { "origin": "'use' section from user-defined SCSS" } - - - -// quarto-scss-analysis-annotation { "origin": "'functions' section from format" } - - - -// quarto-scss-analysis-annotation { "origin": "'functions' section from Quarto" } - -@function colorToRGB($color) { - @return "rgb(" + red($color) + ", " + green($color) + ", " + blue($color) + - ")"; -} - -@function colorToRGBA($color) { - @return "rgba(" + red($color) + ", " + green($color) + ", " + blue($color) + - ", " + alpha($color) + ")"; -} - -@function str-replace($string, $search, $replace: "") { - $index: str-index($string, $search); - @if $index { - @return str-slice($string, 1, $index - 1) + $replace + - str-replace( - str-slice($string, $index + str-length($search)), - $search, - $replace - ); - } - @return $string; -} - - -@function colorToRGB($color) { - @return "rgb(" + red($color) + ", " + green($color) + ", " + blue($color) + - ")"; -} - -@function tint-color($color, $weight) { - @return mix(white, $color, $weight); -} - -@function shade-color($color, $weight) { - @return mix(black, $color, $weight); -} - -@function shift-color($color, $weight) { - @return if( - $weight > 0, - shade-color($color, $weight), - tint-color($color, -$weight) - ); -} - - -// quarto-scss-analysis-annotation { "origin": "'functions' section from user-defined SCSS" } - - - -// quarto-scss-analysis-annotation { "origin": "Defaults from user-defined SCSS" } - - -/* Modified version of the metropolis theme ported into Quarto by Patrick Schwartz */ - -// fonts -@import url("https://fonts.googleapis.com/css?family=Fira+Sans:300,300i,400,400i,500,500i,700,700i"); -@import url("https://fonts.googleapis.com/css?family=Fira+Code:300,300i,400,400i,500,500i,700,700i"); -@import url("https://fonts.googleapis.com/css?family=Roboto+Mono|JetBrains+Mono&display=swap"); -@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"); - -$font-family-sans-serif: "Fira Sans", "Roboto", "Droid Serif", serif !default; -$font-family-monospace: "Fira Code", "JetBrains Mono", monospace; -$presentation-font-size-root: 32px; -$presentation-line-height: 1.5em; -$presentation-heading-font-weight: 400; - -// colors -$body-bg: #fafafa !default; -$body-color: #000 !default; -// $link-color: #EB811B !default; -$selection-bg: #26351c; - -// headings -// $presentation-heading-font: "Palatino Linotype", "Book Antiqua", Palatino, -// FreeSerif, serif !default; -// $presentation-heading-color: #383d3d !default; - - -// quarto-scss-analysis-annotation { "origin": "Defaults from Quarto's SCSS" } - - -@import url(./fonts/source-sans-pro/source-sans-pro.css); - -// fonts -$font-family-sans-serif: "Source Sans Pro", Helvetica, sans-serif !default; -$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, - "Liberation Mono", "Courier New", monospace !default; -$presentation-font-size-root: 40px !default; -$presentation-font-smaller: 0.7 !default; -$presentation-line-height: 1.3 !default; - -// Default variables which exist in bootstrap themes -// and are here to simplify the implementation of _brand.yml and -// user theming customization in general -$font-weight-base: 400 !default; -$code-font-size: 1em !default; -$font-family-monospace-block: $font-family-monospace !default; -$font-family-monospace-inline: $font-family-monospace !default; -$link-weight: $font-weight-base !default; -$link-color-bg: transparent !default; -$link-decoration: inherit !default; -$font-weight-monospace: $font-weight-base !default; -$font-weight-monospace-block: $font-weight-monospace !default; -$font-weight-monospace-inline: $font-weight-monospace !default; - -// main colors -$body-bg: #fff !default; -$body-color: #222 !default; -$text-muted: lighten($body-color, 30%) !default; - -// grey colors (like in bootstrap) -$gray-200: #e9ecef !default; -$gray-100: #f8f9fa !default; -$gray-900: #212529 !default; - -// link colors -$primary: #2a76dd !default; -$link-color: $primary !default; -$link-color-hover: lighten($link-color, 10%) !default; - -// selection colors -$selection-bg: lighten($link-color, 25%) !default; -$selection-color: $body-bg !default; - -// border colors -$border-color: lighten($body-color, 30%) !default; -$border-width: 1px !default; -$border-radius: 4px !default; - -// headings -$presentation-heading-font: $font-family-sans-serif !default; -$presentation-heading-color: $body-color !default; -$presentation-heading-line-height: 1.2 !default; -$presentation-heading-letter-spacing: normal !default; -$presentation-heading-text-transform: none !default; -$presentation-heading-text-shadow: none !default; -$presentation-h1-text-shadow: none !default; -$presentation-heading-font-weight: 600 !default; -$presentation-h1-font-size: 2.5em !default; -$presentation-h2-font-size: 1.6em !default; -$presentation-h3-font-size: 1.3em !default; -$presentation-h4-font-size: 1em !default; - -// margins -$presentation-block-margin: 12px !default; - -// text alignment -$presentation-slide-text-align: left !default; -$presentation-title-slide-text-align: center !default; -$reveal-slide-text-align: $presentation-slide-text-align !default; -$reveal-title-slide-text-align: $presentation-title-slide-text-align !default; - -// Lists -$presentation-list-bullet-color: $body-color !default; - -// code blocks -$code-block-bg: $body-bg !default; -$code-block-border-color: lighten($body-color, 60%) !default; -$code-block-font-size: $code-font-size * 0.55 !default; -$code-block-height: 500px !default; -$code-block-theme-dark-threshhold: 40% !default; -$code-block-line-height: $presentation-line-height !default; -$code-block-color: $body-color !default; - -// inline code -$code-inline-font-size: $code-font-size * 0.875 !default; -$code-color: var(--quarto-hl-fu-color) !default; -$code-bg: transparent !default; - -// tabset -$tabset-border-color: $code-block-border-color !default; - -// table -$table-border-color: $code-block-border-color !default; - -// input panel -$input-panel-border-color: $code-block-border-color !default; -$input-panel-border-width: $border-width !default; -$input-panel-border-radius: $border-radius !default; -$input-panel-bg: rgba(248, 249, 250, 1) !default; - -// Callouts -$callout-border-width: 0.3rem !default; -$callout-border-scale: 0% !default; -$callout-icon-scale: 10% !default; -$callout-margin-top: 1rem !default; -$callout-margin-bottom: 1rem !default; -$callout-color-note: #0d6efd !default; -$callout-color-tip: #198754 !default; -$callout-color-important: #dc3545 !default; -$callout-color-caution: #fd7e14 !default; -$callout-color-warning: #ffc107 !default; - -// alternate colors for when the background changes -$light-bg-text-color: #222 !default; -$dark-bg-text-color: #fff !default; -$light-bg-link-color: #2a76dd !default; -$dark-bg-link-color: #42affa !default; -$light-bg-code-color: #4758ab !default; -$dark-bg-code-color: #ffa07a !default; - -// KBD variables -$kbd-padding-y: 0.4rem !default; -$kbd-padding-x: 0.4rem !default; -$kbd-font-size: $presentation-font-size-root !default; -$kbd-color: $body-color !default; -$kbd-bg: $gray-100 !default; // like in bootstrap style - -// --- derive reveal versions of presentation variables for finer-grained override --- - -$revealjs-font-size-root: $presentation-font-size-root !default; -$revealjs-h1-font-size: $presentation-h1-font-size !default; -$revealjs-h2-font-size: $presentation-h2-font-size !default; -$revealjs-h3-font-size: $presentation-h3-font-size !default; -$revealjs-h4-font-size: $presentation-h4-font-size !default; -$revealjs-heading-font: $presentation-heading-font !default; -$revealjs-heading-color: $presentation-heading-color !default; -$revealjs-heading-line-height: $presentation-heading-line-height !default; -$revealjs-heading-letter-spacing: $presentation-heading-letter-spacing !default; -$revealjs-heading-text-transform: $presentation-heading-text-transform !default; -$revealjs-heading-text-shadow: $presentation-heading-text-shadow !default; -$revealjs-h1-text-shadow: $presentation-h1-text-shadow !default; - -$revealjs-heading-font-weight: $presentation-heading-font-weight !default; -$revealjs-block-margin: $presentation-block-margin !default; -$revealjs-line-height: $presentation-line-height !default; -$revealjs-list-bullet-color: $presentation-list-bullet-color !default; - -$revealjs-code-inline-font-size: $code-inline-font-size !default; -$revealjs-code-block-font-size: $code-block-font-size !default; - -// ---- map to reveal scss variables --- -// ---- This is based from the revealjs setting.scss -// -- START setting.scss -- -// Background of the presentation -$backgroundColor: $body-bg !default; - -// Primary/body text -$mainFont: $font-family-sans-serif !default; -$mainFontSize: $revealjs-font-size-root !default; -$mainColor: $body-color !default; - -// Vertical spacing between blocks of text -$blockMargin: $revealjs-block-margin !default; - -// Headings -$headingMargin: 0 0 $blockMargin 0 !default; -$headingFont: $revealjs-heading-font !default; -$headingColor: $revealjs-heading-color !default; -$headingLineHeight: $revealjs-heading-line-height !default; -$headingLetterSpacing: $revealjs-heading-letter-spacing !default; -$headingTextTransform: $revealjs-heading-text-transform !default; -$headingTextShadow: $revealjs-heading-text-shadow !default; -$heading1TextShadow: $revealjs-h1-text-shadow !default; -$headingFontWeight: $revealjs-heading-font-weight !default; - -$heading1Size: $revealjs-h1-font-size !default; -$heading2Size: $revealjs-h2-font-size !default; -$heading3Size: $revealjs-h3-font-size !default; -$heading4Size: $revealjs-h4-font-size !default; - -$codeFont: $font-family-monospace !default; - -// Links and actions -$linkColor: $link-color !default; -$linkColorHover: $link-color-hover !default; - -// Text selection -$selectionBackgroundColor: $selection-bg !default; -$selectionColor: $selection-color !default; - -// Colors used for UI elements that are overlaid on top of -// the presentation -$overlayElementBgColor: 240, 240, 240 !default; -$overlayElementFgColor: 0, 0, 0 !default; - -// -- END setting.scss -- - -$code-copy-selector: "pre.sourceCode:hover > " !default; -$code-white-space: pre !default; -$tbl-cap-location: top !default; -// main colors -$body-bg: #fff !default; -$body-color: #222 !default; -$text-muted: lighten($body-color, 30%) !default; - -// border colors -$border-color: lighten($body-color, 30%) !default; -$table-border-color: $border-color !default; -$border-width: 1px !default; -$border-radius: 4px !default; - -// code block colors -$btn-code-copy-color: if( - variable-exists(text-muted), - $text-muted, - if(variable-exists(body-color), $body-color, $gray-900) -) !default; - -$btn-code-copy-color-active: if( - variable-exists(link-color), - $link-color, - #0d6efd -) !default; - - -// quarto-scss-analysis-annotation { "origin": "Defaults from the format SCSS" } - - - -// quarto-scss-analysis-annotation { "origin": "'mixins' section from format" } - -@mixin vertical-gradient( $top, $bottom ) { - background: $top; - background: -moz-linear-gradient( top, $top 0%, $bottom 100% ); - background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) ); - background: -webkit-linear-gradient( top, $top 0%, $bottom 100% ); - background: -o-linear-gradient( top, $top 0%, $bottom 100% ); - background: -ms-linear-gradient( top, $top 0%, $bottom 100% ); - background: linear-gradient( top, $top 0%, $bottom 100% ); -} - -@mixin horizontal-gradient( $top, $bottom ) { - background: $top; - background: -moz-linear-gradient( left, $top 0%, $bottom 100% ); - background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) ); - background: -webkit-linear-gradient( left, $top 0%, $bottom 100% ); - background: -o-linear-gradient( left, $top 0%, $bottom 100% ); - background: -ms-linear-gradient( left, $top 0%, $bottom 100% ); - background: linear-gradient( left, $top 0%, $bottom 100% ); -} - -@mixin radial-gradient( $outer, $inner, $type: circle ) { - background: $outer; - background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); - background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) ); - background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); - background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); - background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); - background: radial-gradient( center, $type cover, $inner 0%, $outer 100% ); -} - -@mixin light-bg-text-color( $color ) { - section.has-light-background { - &, h1, h2, h3, h4, h5, h6 { - color: $color; - } - } -} - -@mixin dark-bg-text-color( $color ) { - section.has-dark-background { - &, h1, h2, h3, h4, h5, h6 { - color: $color; - } - } -} - -// quarto-scss-analysis-annotation { "origin": "'mixins' section from Quarto" } - - -@mixin shift_to_dark($property, $colorDark, $colorLight) { - @if ( - quarto-color.blackness($backgroundColor) > $code-block-theme-dark-threshhold - ) { - #{$property}: $colorDark; - } @else { - #{$property}: $colorLight; - } -} - -// Make the font size smaller by a factor of $times -// Useful for font-size defined in px inside smaller font size controled by em -// as they would not be impacted by the smaller font size -@mixin make-smaller-font-size($element, $times: 1) { - font-size: calc( - #{$element} * #{quarto-math.pow($presentation-font-smaller, $times)} - ); -} - -// Undo the smaller font size -// Useful for font-size in em already that should not be impacted by smaller font size controled by em -@mixin undo-smaller-font-size($element) { - font-size: calc(#{$element} / #{$presentation-font-smaller}); -} - -// -- START setting.scss -- - -// Generates the presentation background, can be overridden -// to return a background image or gradient -@mixin bodyBackground() { - background: $backgroundColor; -} - -// -- END setting.scss -- - - -// quarto-scss-analysis-annotation { "origin": "'mixins' section from user-defined SCSS" } - - - -// quarto-scss-analysis-annotation { "origin": "'rules' section from format" } - -// Base theme template for reveal.js - -/********************************************* - * GLOBAL STYLES - *********************************************/ - -@import "./exposer"; - -.reveal-viewport { - @include bodyBackground(); - background-color: var(--r-background-color); -} - -.reveal { - font-family: var(--r-main-font); - font-size: var(--r-main-font-size); - font-weight: normal; - color: var(--r-main-color); -} - -.reveal ::selection { - color: var(--r-selection-color); - background: var(--r-selection-background-color); - text-shadow: none; -} - -.reveal ::-moz-selection { - color: var(--r-selection-color); - background: var(--r-selection-background-color); - text-shadow: none; -} - -.reveal .slides section, -.reveal .slides section>section { - line-height: 1.3; - font-weight: inherit; -} - -/********************************************* - * HEADERS - *********************************************/ - -.reveal h1, -.reveal h2, -.reveal h3, -.reveal h4, -.reveal h5, -.reveal h6 { - margin: var(--r-heading-margin); - color: var(--r-heading-color); - - font-family: var(--r-heading-font); - font-weight: var(--r-heading-font-weight); - line-height: var(--r-heading-line-height); - letter-spacing: var(--r-heading-letter-spacing); - - text-transform: var(--r-heading-text-transform); - text-shadow: var(--r-heading-text-shadow); - - word-wrap: break-word; -} - -.reveal h1 {font-size: var(--r-heading1-size); } -.reveal h2 {font-size: var(--r-heading2-size); } -.reveal h3 {font-size: var(--r-heading3-size); } -.reveal h4 {font-size: var(--r-heading4-size); } - -.reveal h1 { - text-shadow: var(--r-heading1-text-shadow); -} - - -/********************************************* - * OTHER - *********************************************/ - -.reveal p { - margin: var(--r-block-margin) 0; - line-height: 1.3; -} - -/* Remove trailing margins after titles */ -.reveal h1:last-child, -.reveal h2:last-child, -.reveal h3:last-child, -.reveal h4:last-child, -.reveal h5:last-child, -.reveal h6:last-child { - margin-bottom: 0; -} - -/* Ensure certain elements are never larger than the slide itself */ -.reveal img, -.reveal video, -.reveal iframe { - max-width: 95%; - max-height: 95%; -} -.reveal strong, -.reveal b { - font-weight: bold; -} - -.reveal em { - font-style: italic; -} - -.reveal ol, -.reveal dl, -.reveal ul { - display: inline-block; - - text-align: left; - margin: 0 0 0 1em; -} - -.reveal ol { - list-style-type: decimal; -} - -.reveal ul { - list-style-type: disc; -} - -.reveal ul ul { - list-style-type: square; -} - -.reveal ul ul ul { - list-style-type: circle; -} - -.reveal ul ul, -.reveal ul ol, -.reveal ol ol, -.reveal ol ul { - display: block; - margin-left: 40px; -} - -.reveal dt { - font-weight: bold; -} - -.reveal dd { - margin-left: 40px; -} - -.reveal blockquote { - display: block; - position: relative; - width: 70%; - margin: var(--r-block-margin) auto; - padding: 5px; - - font-style: italic; - background: rgba(255, 255, 255, 0.05); - box-shadow: 0px 0px 2px rgba(0,0,0,0.2); -} - .reveal blockquote p:first-child, - .reveal blockquote p:last-child { - display: inline-block; - } - -.reveal q { - font-style: italic; -} - -.reveal pre { - display: block; - position: relative; - width: 90%; - margin: var(--r-block-margin) auto; - - text-align: left; - font-size: 0.55em; - font-family: var(--r-code-font); - line-height: 1.2em; - - word-wrap: break-word; - - box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); -} - -.reveal code { - font-family: var(--r-code-font); - text-transform: none; - tab-size: 2; -} - -.reveal pre code { - display: block; - padding: 5px; - overflow: auto; - max-height: 400px; - word-wrap: normal; -} - -.reveal .code-wrapper { - white-space: normal; -} - -.reveal .code-wrapper code { - white-space: pre; -} - -.reveal table { - margin: auto; - border-collapse: collapse; - border-spacing: 0; -} - -.reveal table th { - font-weight: bold; -} - -.reveal table th, -.reveal table td { - text-align: left; - padding: 0.2em 0.5em 0.2em 0.5em; - border-bottom: 1px solid; -} - -.reveal table th[align="center"], -.reveal table td[align="center"] { - text-align: center; -} - -.reveal table th[align="right"], -.reveal table td[align="right"] { - text-align: right; -} - -.reveal table tbody tr:last-child th, -.reveal table tbody tr:last-child td { - border-bottom: none; -} - -.reveal sup { - vertical-align: super; - font-size: smaller; -} -.reveal sub { - vertical-align: sub; - font-size: smaller; -} - -.reveal small { - display: inline-block; - font-size: 0.6em; - line-height: 1.2em; - vertical-align: top; -} - -.reveal small * { - vertical-align: top; -} - -.reveal img { - margin: var(--r-block-margin) 0; -} - - -/********************************************* - * LINKS - *********************************************/ - -.reveal a { - color: var(--r-link-color); - text-decoration: none; - transition: color .15s ease; -} - .reveal a:hover { - color: var(--r-link-color-hover); - text-shadow: none; - border: none; - } - -.reveal .roll span:after { - color: #fff; - // background: darken( var(--r-link-color), 15% ); - background: var(--r-link-color-dark); - -} - - -/********************************************* - * Frame helper - *********************************************/ - -.reveal .r-frame { - border: 4px solid var(--r-main-color); - box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); -} - -.reveal a .r-frame { - transition: all .15s linear; -} - -.reveal a:hover .r-frame { - border-color: var(--r-link-color); - box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); -} - - -/********************************************* - * NAVIGATION CONTROLS - *********************************************/ - -.reveal .controls { - color: var(--r-link-color); -} - - -/********************************************* - * PROGRESS BAR - *********************************************/ - -.reveal .progress { - background: rgba(0,0,0,0.2); - color: var(--r-link-color); -} - -/********************************************* - * PRINT BACKGROUND - *********************************************/ - @media print { - .backgrounds { - background-color: var(--r-background-color); - } -} - - -// quarto-scss-analysis-annotation { "origin": "'rules' section from Quarto" } - -// floating - -.top-right { - position: absolute; - top: 1em; - right: 1em; -} - -// hidden - -// https://github.com/quarto-dev/quarto-cli/issues/5403#issuecomment-1533791947 -.visually-hidden { - border: 0; - clip: rect(0 0 0 0); - height: auto; - margin: 0; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; - white-space: nowrap; -} - -.hidden { - display: none !important; -} - -.zindex-bottom { - z-index: -1 !important; -} - -// layout and figures - -figure.figure { - display: block; -} - -.quarto-layout-panel { - margin-bottom: 1em; -} - -.quarto-layout-panel > figure { - width: 100%; -} -.quarto-layout-panel > figure > figcaption, -.quarto-layout-panel > .panel-caption { - margin-top: 10pt; -} - -.quarto-layout-panel > .table-caption { - margin-top: 0px; -} - -.table-caption p { - margin-bottom: 0.5em; -} - -.quarto-layout-row { - display: flex; - flex-direction: row; - align-items: flex-start; -} -.quarto-layout-valign-top { - align-items: flex-start; -} -.quarto-layout-valign-bottom { - align-items: flex-end; -} -.quarto-layout-valign-center { - align-items: center; -} -.quarto-layout-cell { - position: relative; - margin-right: 20px; -} -.quarto-layout-cell:last-child { - margin-right: 0; -} -.quarto-layout-cell figure, -.quarto-layout-cell > p { - margin: 0.2em; -} -.quarto-layout-cell img { - max-width: 100%; -} -.quarto-layout-cell .html-widget { - width: 100% !important; -} -.quarto-layout-cell div figure p { - margin: 0; -} -.quarto-layout-cell figure { - display: block; - margin-inline-start: 0; - margin-inline-end: 0; -} -.quarto-layout-cell table { - display: inline-table; -} -.quarto-layout-cell-subref figcaption, -figure .quarto-layout-row figure figcaption { - text-align: center; - font-style: italic; -} -.quarto-figure { - position: relative; - margin-bottom: 1em; -} - -.quarto-figure > figure { - width: 100%; - margin-bottom: 0; -} -.quarto-figure-left > figure > p, -.quarto-figure-left > figure > div /* for mermaid and dot diagrams */ { - text-align: left; -} -.quarto-figure-center > figure > p, -.quarto-figure-center > figure > div /* for mermaid and dot diagrams */ { - text-align: center; -} -.quarto-figure-right > figure > p, -.quarto-figure-right > figure > div /* for mermaid and dot diagrams */ { - text-align: right; -} - -.quarto-figure > figure > div.cell-annotation, -.quarto-figure > figure > div code { - text-align: left; /* override align center for code blocks */ -} - -figure > p:empty { - display: none; -} -figure > p:first-child { - margin-top: 0; - margin-bottom: 0; -} - -figure > figcaption.quarto-float-caption-bottom { - margin-bottom: 0.5em; -} -figure > figcaption.quarto-float-caption-top { - margin-top: 0.5em; -} - -// anchor - -// anchor js - -div[id^="tbl-"] { - position: relative; -} - -.quarto-figure > .anchorjs-link { - position: absolute; - top: 0.6em; - right: 0.5em; -} - -div[id^="tbl-"] > .anchorjs-link { - position: absolute; - top: 0.7em; - right: 0.3em; -} - -/* workaround for anchorjs not hitting on generic :hover selector */ -.quarto-figure:hover > .anchorjs-link, -div[id^="tbl-"]:hover > .anchorjs-link, -h2:hover > .anchorjs-link, -h3:hover > .anchorjs-link, -h4:hover > .anchorjs-link, -h5:hover > .anchorjs-link, -h6:hover > .anchorjs-link, -.reveal-anchorjs-link > .anchorjs-link { - opacity: 1; -} - -#title-block-header { - margin-block-end: 1rem; - position: relative; - margin-top: -1px; // Chrome draws 1px white line between navbar and title block -} - -#title-block-header .abstract { - margin-block-start: 1rem; -} - -#title-block-header .abstract .abstract-title { - font-weight: 600; -} - -#title-block-header a { - text-decoration: none; -} - -#title-block-header .author, -#title-block-header .date, -#title-block-header .doi { - margin-block-end: 0.2rem; -} - -#title-block-header .quarto-title-block > div { - display: flex; -} - -#title-block-header .quarto-title-block > div > h1 { - flex-grow: 1; -} - -#title-block-header .quarto-title-block > div > button { - flex-shrink: 0; - height: 2.25rem; - margin-top: 0; -} - -#title-block-header .quarto-title-block > div > button { - @if mixin-exists(media-breakpoint-up) { - @include media-breakpoint-up(lg) { - margin-top: 5px; - } - } -} - -// (Remove bottom margin from paragraphs in table headers) -tr.header > th > p:last-of-type { - margin-bottom: 0px; -} - -table, -table.table { - margin-top: 0.5rem; - margin-bottom: 0.5rem; -} - -caption, -.table-caption { - padding-top: 0.5rem; - padding-bottom: 0.5rem; - text-align: center; -} - -figure.quarto-float-tbl figcaption.quarto-float-caption-top { - margin-top: 0.5rem; - margin-bottom: 0.25rem; - text-align: center; -} - -figure.quarto-float-tbl figcaption.quarto-float-caption-bottom { - padding-top: 0.25rem; - margin-bottom: 0.5rem; - text-align: center; -} - -// utterances -.utterances { - max-width: none; - margin-left: -8px; -} - -// iframe -iframe { - margin-bottom: 1em; -} - -// details -details { - margin-bottom: 1em; -} -details[show] { - margin-bottom: 0; -} - -details > summary { - @if variable-exists(text-muted) { - color: $text-muted; - } -} - -details > summary > p:only-child { - display: inline; -} - -// codeCopy -pre.sourceCode, -code.sourceCode { - position: relative; -} - -// Inline code should wrap -// See https://github.com/quarto-dev/quarto-cli/issues/2649 -dd code:not(.sourceCode), -p code:not(.sourceCode) { - white-space: pre-wrap; -} - -// default to scrolling output rather than wrapping, since -// multi-column tabular output (very common for R & Python) is -// unreadable when wrapped. -code { - white-space: pre; -} -@media print { - code { - white-space: pre-wrap; - } -} -pre > code { - display: block; -} - -pre > code.sourceCode { - white-space: $code-white-space; -} - -pre > code.sourceCode > span > a:first-child::before { - text-decoration: none; -} - -pre.code-overflow-wrap > code.sourceCode { - white-space: pre-wrap; -} - -pre.code-overflow-scroll > code.sourceCode { - white-space: pre; -} - -// code linking (pkgdown style) -code a:any-link { - color: inherit; - text-decoration: none; -} -code a:hover { - color: inherit; - text-decoration: underline; -} - -// task lists -ul.task-list { - padding-left: 1em; -} - -// tippy - -[data-tippy-root] { - display: inline-block; -} - -.tippy-content .footnote-back { - display: none; -} - -.footnote-back { - margin-left: 0.2em; -} - -.tippy-content { - overflow-x: auto; -} - -// embedded source code -.quarto-embedded-source-code { - display: none; -} - -// unresolved crossrefs -.quarto-unresolved-ref { - font-weight: 600; -} - -// html cover image injection -.quarto-cover-image { - max-width: 35%; - float: right; - margin-left: 30px; -} - -// provide margin below jupyter widgets -.cell-output-display .widget-subarea { - margin-bottom: 1em; -} - -// fix for selectize inputs getting their contents clipped -// this also works for knitr sql cells (see github issue #3497) -.cell-output-display:not(.no-overflow-x), -.knitsql-table:not(.no-overflow-x) { - overflow-x: auto; -} - -.panel-input { - margin-bottom: 1em; -} - -.panel-input > div, -.panel-input > div > div { - display: inline-block; - vertical-align: top; - padding-right: 12px; -} - -.panel-input > p:last-child { - margin-bottom: 0; -} - -.layout-sidebar { - margin-bottom: 1em; -} - -.layout-sidebar .tab-content { - border: none; -} - -.tab-content > .page-columns.active { - display: grid; -} - -// default styling for .code-preview=".." iframes -div.sourceCode > iframe { - width: 100%; - height: 300px; - - // this negative-margin hack works around the rendering issue with - // iframes and parent elements with rounded corners if the border - // radius for (eg) div.sourceCode is changed, this is likely going - // to need changing as well. - @if variable-exists(code-preview-margin-bottom) { - margin-bottom: $code-preview-margin-bottom; - } @else { - margin-bottom: -0.5em; - } - @if variable-exists(code-preview-border-color) { - border: $code-preview-border-color; - } -} - -// link styling -a { - text-underline-offset: 3px; -} - -/* Callout styling */ - -.callout pre.sourceCode { - padding-left: 0; -} - -// ansi escaping -div.ansi-escaped-output { - font-family: monospace; - display: block; -} - -/*! -* -* ansi colors from IPython notebook's -* -* we also add `bright-[color]-` synonyms for the `-[color]-intense` classes since -* that seems to be what ansi_up emits -* -*/ -/* CSS font colors for translated ANSI escape sequences */ -/* The color values are a mix of - http://www.xcolors.net/dl/baskerville-ivorylight and - http://www.xcolors.net/dl/euphrasia */ -.ansi-black-fg { - color: #3e424d; -} -.ansi-black-bg { - background-color: #3e424d; -} -.ansi-black-intense-black, -.ansi-bright-black-fg { - color: #282c36; -} -.ansi-black-intense-black, -.ansi-bright-black-bg { - background-color: #282c36; -} -.ansi-red-fg { - color: #e75c58; -} -.ansi-red-bg { - background-color: #e75c58; -} -.ansi-red-intense-red, -.ansi-bright-red-fg { - color: #b22b31; -} -.ansi-red-intense-red, -.ansi-bright-red-bg { - background-color: #b22b31; -} -.ansi-green-fg { - color: #00a250; -} -.ansi-green-bg { - background-color: #00a250; -} -.ansi-green-intense-green, -.ansi-bright-green-fg { - color: #007427; -} -.ansi-green-intense-green, -.ansi-bright-green-bg { - background-color: #007427; -} -.ansi-yellow-fg { - color: #ddb62b; -} -.ansi-yellow-bg { - background-color: #ddb62b; -} -.ansi-yellow-intense-yellow, -.ansi-bright-yellow-fg { - color: #b27d12; -} -.ansi-yellow-intense-yellow, -.ansi-bright-yellow-bg { - background-color: #b27d12; -} -.ansi-blue-fg { - color: #208ffb; -} -.ansi-blue-bg { - background-color: #208ffb; -} -.ansi-blue-intense-blue, -.ansi-bright-blue-fg { - color: #0065ca; -} -.ansi-blue-intense-blue, -.ansi-bright-blue-bg { - background-color: #0065ca; -} -.ansi-magenta-fg { - color: #d160c4; -} -.ansi-magenta-bg { - background-color: #d160c4; -} -.ansi-magenta-intense-magenta, -.ansi-bright-magenta-fg { - color: #a03196; -} -.ansi-magenta-intense-magenta, -.ansi-bright-magenta-bg { - background-color: #a03196; -} -.ansi-cyan-fg { - color: #60c6c8; -} -.ansi-cyan-bg { - background-color: #60c6c8; -} -.ansi-cyan-intense-cyan, -.ansi-bright-cyan-fg { - color: #258f8f; -} -.ansi-cyan-intense-cyan, -.ansi-bright-cyan-bg { - background-color: #258f8f; -} -.ansi-white-fg { - color: #c5c1b4; -} -.ansi-white-bg { - background-color: #c5c1b4; -} -.ansi-white-intense-white, -.ansi-bright-white-fg { - color: #a1a6b2; -} -.ansi-white-intense-white, -.ansi-bright-white-bg { - background-color: #a1a6b2; -} -.ansi-default-inverse-fg { - color: #ffffff; -} -.ansi-default-inverse-bg { - background-color: #000000; -} -.ansi-bold { - font-weight: bold; -} -.ansi-underline { - text-decoration: underline; -} - -:root { - --quarto-body-bg: #{$body-bg}; - --quarto-body-color: #{$body-color}; - --quarto-text-muted: #{$text-muted}; - --quarto-border-color: #{$table-border-color}; - --quarto-border-width: #{$border-width}; - @if not variable-exists(enable-rounded) or $enable-rounded == true { - --quarto-border-radius: #{$border-radius}; - } -} - -/* rules to support GT table styling */ -table.gt_table { - color: var(--quarto-body-color); - font-size: 1em; - width: 100%; // to match other table styling - background-color: transparent; - border-top-width: inherit; - border-bottom-width: inherit; - border-color: var(--quarto-border-color); -} - -table.gt_table th.gt_column_spanner_outer { - color: var(--quarto-body-color); - background-color: transparent; - border-top-width: inherit; - border-bottom-width: inherit; - border-color: var(--quarto-border-color); -} - -table.gt_table th.gt_col_heading { - color: var(--quarto-body-color); - font-weight: bold; - background-color: transparent; -} - -table.gt_table thead.gt_col_headings { - border-bottom: 1px solid currentColor; - border-top-width: inherit; - border-top-color: var(--quarto-border-color); -} - -table.gt_table thead.gt_col_headings:not(:first-child) { - border-top-width: 1px; - border-top-color: var(--quarto-border-color); -} - -table.gt_table td.gt_row { - border-bottom-width: 1px; - border-bottom-color: var(--quarto-border-color); - border-top-width: 0px; -} - -table.gt_table tbody.gt_table_body { - border-top-width: 1px; - border-bottom-width: 1px; - border-bottom-color: var(--quarto-border-color); - border-top-color: currentColor; -} - -/* restore previous pandoc columns behavior - (too many reports of slide layout breaking) - see https://github.com/jgm/pandoc/pull/8237 -*/ -div.columns { - display: initial; - gap: initial; -} -div.column { - display: inline-block; - overflow-x: initial; - vertical-align: top; - width: 50%; -} - -// Code Annotation LayoutBoot -.code-annotation-tip-content { - word-wrap: break-word; -} - -.code-annotation-container-hidden { - display: none !important; -} - -dl.code-annotation-container-grid { - display: grid; - grid-template-columns: min-content auto; - dt { - grid-column: 1; - } - dd { - grid-column: 2; - } -} - -pre.sourceCode.code-annotation-code { - padding-right: 0; -} - -code.sourceCode .code-annotation-anchor { - z-index: 100; - position: relative; - float: right; - background-color: transparent; -} - -// Add a bit of margin to the right of a checkbox -// https://github.com/quarto-dev/quarto-cli/issues/6627 -input[type="checkbox"] { - margin-right: 0.5ch; -} - -// Mermaid Theming -// if none come from theme, we need these -$body-color: #222 !default; -$body-bg: #fff !default; -$primary: #468 !default; -$secondary: #999 !default; -$font-family-sans-serif: sans-serif !default; -$font-weight-base: 400 !default; - -/* SCSS variables - - These are documented in quarto-cli/quarto-web:docs/authoring/_mermaid-theming.qmd - - Make sure to update the docs if you change these. -*/ -$mermaid-bg-color: $body-bg !default; -$mermaid-edge-color: $secondary !default; -$mermaid-node-fg-color: $body-color !default; -$mermaid-fg-color: $body-color !default; -$mermaid-fg-color--lighter: lighten($body-color, 10%) !default; -$mermaid-fg-color--lightest: lighten($body-color, 20%) !default; -$mermaid-font-family: $font-family-sans-serif !default; -$mermaid-font-weight: $font-weight-base !default; -$mermaid-label-bg-color: $body-bg !default; -$mermaid-label-fg-color: $primary !default; -$mermaid-node-bg-color: rgba($primary, 0.1) !default; -$mermaid-node-fg-color: $primary !default; - -/* CSS variables */ -:root { - --mermaid-bg-color: #{$mermaid-bg-color}; - --mermaid-edge-color: #{$mermaid-edge-color}; - --mermaid-node-fg-color: #{$mermaid-node-fg-color}; - --mermaid-fg-color: #{$mermaid-fg-color}; - --mermaid-fg-color--lighter: #{$mermaid-fg-color--lighter}; - --mermaid-fg-color--lightest: #{$mermaid-fg-color--lightest}; - --mermaid-font-family: #{$mermaid-font-family}; - --mermaid-label-bg-color: #{$mermaid-label-bg-color}; - --mermaid-label-fg-color: #{$mermaid-label-fg-color}; - --mermaid-node-bg-color: #{$mermaid-node-bg-color}; - --mermaid-node-fg-color: #{$mermaid-node-fg-color}; -} - -@media print { - :root { - font-size: 11pt; - } - #quarto-sidebar, - #TOC, - .nav-page { - display: none; - } - .page-columns .content { - grid-column-start: page-start; - } - .fixed-top { - position: relative; - } - .panel-caption, - .figure-caption, - figcaption { - color: #666; - } -} - -.code-copy-button { - position: absolute; - top: 0; - right: 0; - border: 0; - margin-top: 5px; - margin-right: 5px; - background-color: transparent; - z-index: 3; -} - -.code-copy-button-tooltip { - font-size: 0.75em; -} - -#{$code-copy-selector} .code-copy-button > .bi::before { - display: inline-block; - height: 1rem; - width: 1rem; - content: ""; - vertical-align: -0.125em; - @if variable-exists(btn-code-copy-color) { - background-image: url('data:image/svg+xml,'); - } @else { - background-image: url('data:image/svg+xml,'); - } - background-repeat: no-repeat; - background-size: 1rem 1rem; -} - -#{$code-copy-selector} .code-copy-button-checked > .bi::before { - @if variable-exists(btn-code-copy-color) { - background-image: url('data:image/svg+xml,'); - } @else { - background-image: url('data:image/svg+xml,'); - } -} - -@if variable-exists(btn-code-copy-color-active) { - #{$code-copy-selector} .code-copy-button:hover > .bi::before { - background-image: url('data:image/svg+xml,'); - } - #{$code-copy-selector} .code-copy-button-checked:hover > .bi::before { - background-image: url('data:image/svg+xml,'); - } -} - -$body-bg: #fff !default; -$tabset-border-color: rgb(222, 226, 230) !default; - -.panel-tabset [role="tablist"] { - border-bottom: 1px solid $tabset-border-color; - list-style: none; - margin: 0; - padding: 0; - width: 100%; -} - -.panel-tabset [role="tablist"] * { - -webkit-box-sizing: border-box; - box-sizing: border-box; -} - -@media (min-width: 30em) { - .panel-tabset [role="tablist"] li { - display: inline-block; - } -} - -.panel-tabset [role="tab"] { - border: 1px solid transparent; - border-top-color: $tabset-border-color; - display: block; - padding: 0.5em 1em; - text-decoration: none; -} - -@media (min-width: 30em) { - .panel-tabset [role="tab"] { - border-top-color: transparent; - display: inline-block; - margin-bottom: -1px; - } -} - -.panel-tabset [role="tab"][aria-selected="true"] { - background-color: $tabset-border-color; -} - -@media (min-width: 30em) { - .panel-tabset [role="tab"][aria-selected="true"] { - background-color: transparent; - border: 1px solid $tabset-border-color; - border-bottom-color: $body-bg; - } -} - -@media (min-width: 30em) { - .panel-tabset [role="tab"]:hover:not([aria-selected="true"]) { - border: 1px solid $tabset-border-color; - } -} - -.code-with-filename .code-with-filename-file { - margin-bottom: 0; - padding-bottom: 2px; - padding-top: 2px; - padding-left: 0.7em; - border: var(--quarto-border-width) solid var(--quarto-border-color); - border-radius: var(--quarto-border-radius); - border-bottom: 0; - border-bottom-left-radius: 0%; - border-bottom-right-radius: 0%; -} - -.code-with-filename div.sourceCode, -.reveal .code-with-filename div.sourceCode { - margin-top: 0; - border-top-left-radius: 0%; - border-top-right-radius: 0%; -} - -.code-with-filename .code-with-filename-file pre { - margin-bottom: 0; -} - -.code-with-filename .code-with-filename-file { - background-color: rgba(219, 219, 219, 0.8); -} - -.quarto-dark .code-with-filename .code-with-filename-file { - background-color: #555; -} - -.code-with-filename .code-with-filename-file strong { - font-weight: 400; -} - - -.reveal.center .slide aside, -.reveal.center .slide div.aside { - position: initial; -} - -section.has-light-background { - &, - h1, - h2, - h3, - h4, - h5, - h6 { - color: $light-bg-text-color; - } - a, - a:hover { - color: $light-bg-link-color; - } - code { - color: $light-bg-code-color; - } -} - -section.has-dark-background { - &, - h1, - h2, - h3, - h4, - h5, - h6 { - color: $dark-bg-text-color; - } - a, - a:hover { - color: $dark-bg-link-color; - } - code { - color: $dark-bg-code-color; - } -} - -#title-slide, -/* for when hash-type: number as identifier removed*/ -div.reveal div.slides section.quarto-title-block { - text-align: $presentation-title-slide-text-align; - .subtitle { - margin-bottom: 2.5rem; - } -} - -.reveal .slides { - text-align: $reveal-slide-text-align; -} - -.reveal .title-slide h1 { - font-size: $revealjs-h2-font-size; -} - -.reveal[data-navigation-mode="linear"] .title-slide h1 { - font-size: $revealjs-h1-font-size; -} - -.reveal div.sourceCode { - border: $border-width solid $code-block-border-color; - border-radius: $border-radius; -} - -.reveal pre { - width: 100%; - box-shadow: none; - background-color: $code-block-bg; - border: none; - margin: 0; - font-size: $revealjs-code-block-font-size; - line-height: $code-block-line-height; - font-family: $font-family-monospace-block; - - code { - background-color: $body-bg; // Insure we color output and code cell differently - font-size: inherit; - color: $code-block-color; - font-family: inherit; - } - - &.sourceCode code { - color: $code-block-color; - font-size: inherit; - background-color: inherit; - white-space: pre; - font-family: inherit; - padding: 6px 9px; - max-height: $code-block-height; - } -} - -// Inside code-file-name div, we want to use the same background color as decorated codeblock header -// https://github.com/quarto-dev/quarto-cli/issues/9560 -.reveal .code-with-filename .code-with-filename-file pre { - background-color: unset; -} - -.reveal code { - color: $code-color; - font-size: $revealjs-code-inline-font-size; - background-color: $code-bg; - white-space: pre-wrap; - font-family: $font-family-monospace-inline; -} - -.reveal .column-output-location { - display: flex; - align-items: stretch; -} - -.reveal .column-output-location .column:first-of-type div.sourceCode { - height: 100%; - background-color: $code-block-bg; -} - -.reveal blockquote { - display: block; - position: relative; - color: $border-color; - width: unset; - margin: var(--r-block-margin) auto; - padding: 0.625rem 1.75rem; - border-left: 0.25rem solid $text-muted; - font-style: normal; - background: none; - box-shadow: none; -} -.reveal blockquote p:first-child, -.reveal blockquote p:last-child { - display: block; -} - -.reveal .slide aside, -.reveal .slide div.aside { - position: absolute; - bottom: 20px; - font-size: #{$presentation-font-smaller}em; - color: $text-muted; -} - -.reveal .slide sup { - font-size: #{$presentation-font-smaller}em; -} - -.reveal .slide.scrollable aside, -.reveal .slide.scrollable div.aside { - position: relative; - margin-top: 1em; -} - -.reveal .slide aside .aside-footnotes { - margin-bottom: 0; -} - -.reveal .slide aside .aside-footnotes li:first-of-type { - margin-top: 0; -} - -$panel-sidebar-width: 270px; -$panel-sidebar-padding: 0.5em; - -.reveal .layout-sidebar { - display: flex; - width: 100%; - margin-top: 0.8em; -} - -.reveal .layout-sidebar .panel-sidebar { - width: $panel-sidebar-width; -} - -.reveal .layout-sidebar-left .panel-sidebar { - margin-right: calc(#{$panel-sidebar-padding} * 2); -} - -.reveal .layout-sidebar-right .panel-sidebar { - margin-left: calc(#{$panel-sidebar-padding} * 2); -} - -.reveal .layout-sidebar .panel-fill, -.reveal .layout-sidebar .panel-center, -.reveal .layout-sidebar .panel-tabset { - flex: 1; -} - -.reveal .panel-input, -.reveal .panel-sidebar { - font-size: 0.5em; - padding: $panel-sidebar-padding; - border-style: solid; - border-color: $input-panel-border-color; - border-width: $input-panel-border-width; - border-radius: $input-panel-border-radius; - background-color: $input-panel-bg; -} - -.reveal .panel-sidebar :first-child, -.reveal .panel-fill :first-child { - margin-top: 0; -} - -.reveal .panel-sidebar :last-child, -.reveal .panel-fill :last-child { - margin-bottom: 0; -} - -.panel-input > div, -.panel-input > div > div { - vertical-align: middle; - padding-right: 1em; -} - -.reveal p, -.reveal .slides section, -.reveal .slides section > section { - line-height: $revealjs-line-height; -} - -// Smaller font size logic -.reveal { - // When smaller is set globally - &.smaller { - .slides { - // We make the all slide font-size smaller by a factor of $presentation-font-smaller - section { - font-size: #{$presentation-font-smaller}em; - - // avoid applying twice the reduction when using nested section - section { - font-size: inherit; - } - } - - // But we don't want headers to change size and they are in em - h1 { - @include undo-smaller-font-size($revealjs-h1-font-size); - } - h2 { - @include undo-smaller-font-size($revealjs-h2-font-size); - } - h3 { - @include undo-smaller-font-size($revealjs-h3-font-size); - } - } - } - - .slides section { - // when smaller is set on slide - &.smaller { - font-size: #{$presentation-font-smaller}em; - - // But we don't want headers to change size and they are in em - h1 { - @include undo-smaller-font-size($revealjs-h1-font-size); - } - h2 { - @include undo-smaller-font-size($revealjs-h2-font-size); - } - h3 { - @include undo-smaller-font-size($revealjs-h3-font-size); - } - } - - // On callout we want to make the font-size smaller too - div.callout { - font-size: #{$presentation-font-smaller}em; - - // But we don't want headers to change size and they are in em - h1 { - @include undo-smaller-font-size($revealjs-h1-font-size); - } - h2 { - @include undo-smaller-font-size($revealjs-h2-font-size); - } - h3 { - @include undo-smaller-font-size($revealjs-h3-font-size); - } - } - } -} - -.reveal .columns > .column > :not(ul, ol) { - margin-left: 0.25rem; - margin-right: 0.25rem; -} - -.reveal .columns > .column:first-child > :not(ul, ol) { - margin-right: 0.5rem; - margin-left: 0; -} -.reveal .columns > .column:last-child > :not(ul, ol) { - margin-right: 0; - margin-left: 0.5rem; -} - -.reveal .slide-number { - color: $linkColorHover; - background-color: $body-bg; -} - -.reveal .footer { - color: $text-muted; - - a { - color: $linkColor; - } - - &.has-dark-background { - color: quarto-color.scale($dark-bg-text-color, $whiteness: 30%); - - a { - color: quarto-color.scale($dark-bg-link-color, $whiteness: 30%); - } - } - - &.has-light-background { - color: quarto-color.scale($light-bg-text-color, $whiteness: 30%); - - a { - color: quarto-color.scale($light-bg-link-color, $whiteness: 30%); - } - } -} - -.reveal .slide-number { - color: $text-muted; - - &.has-dark-background { - color: quarto-color.scale($dark-bg-text-color, $whiteness: 30%); - } - - &.has-light-background { - color: quarto-color.scale($light-bg-text-color, $whiteness: 30%); - } -} - -// handle caption for figures -.reveal .slide { - figure > figcaption, - img.stretch + p.caption, - img.r-stretch + p.caption { - font-size: #{$presentation-font-smaller}em; - } -} - -@media screen and (min-width: 500px) { - $arrow-spacing: 0.2em; - $control-arrow-spacing: 1.4em; - - .reveal .controls[data-controls-layout="edges"] .navigate-left { - left: $arrow-spacing; - } - - .reveal .controls[data-controls-layout="edges"] .navigate-right { - right: $arrow-spacing; - } - - .reveal .controls[data-controls-layout="edges"] .navigate-up { - top: $arrow-spacing * 2; - } - - .reveal .controls[data-controls-layout="edges"] .navigate-down { - bottom: $arrow-spacing - $control-arrow-spacing + 3.5em; - } -} - -.tippy-box[data-theme~="light-border"] { - background-color: $backgroundColor; - color: $mainColor; - border-radius: $border-radius; - border: solid $border-width $border-color; - font-size: 0.6em; -} - -.tippy-box[data-theme~="light-border"] .tippy-arrow { - color: $border-color; -} - -.tippy-box[data-placement^="bottom"] > .tippy-content { - padding: 7px 10px; - z-index: 1; -} - -.reveal .panel-tabset [role="tab"] { - padding: 0.25em 0.7em; -} - -.reveal .slide-menu-button .fa-bars::before { - background-image: url('data:image/svg+xml,'); -} - -.reveal .slide-chalkboard-buttons .fa-easel2::before { - background-image: url('data:image/svg+xml,'); -} - -.reveal .slide-chalkboard-buttons .fa-brush::before { - background-image: url('data:image/svg+xml,'); -} - -// This is a sentinel value that renderers can use to determine -// whether the theme is dark or light -@if ( - quarto-color.blackness($backgroundColor) > $code-block-theme-dark-threshhold -) { - /*! dark */ -} @else { - /*! light */ -} - -/* override theme.scss style for the default styles - - Note the need for both the case sensitive flag and the - case-oblivious selectors. This is a workaround for what's - apparently a Chrome and Safari bug: - - https://github.com/quarto-dev/quarto-cli/issues/1902#issuecomment-1219783059 - */ - -.reveal ol[type="a"] { - list-style-type: lower-alpha; -} - -.reveal ol[type="a" s] { - list-style-type: lower-alpha; -} - -.reveal ol[type="A" s] { - list-style-type: upper-alpha; -} - -.reveal ol[type="i"] { - list-style-type: lower-roman; -} - -.reveal ol[type="i" s] { - list-style-type: lower-roman; -} - -.reveal ol[type="I" s] { - list-style-type: upper-roman; -} - -.reveal ol[type="1"] { - list-style-type: decimal; -} - -// https://github.com/quarto-dev/quarto-cli/issues/2834 -// temporary workaround while we come up with a pure CSS solution - -.reveal ul.task-list { - list-style: none; -} -.reveal ul.task-list li input[type="checkbox"] { - width: 2em; - height: 2em; - margin: 0 1em 0.5em -1.6em; - vertical-align: middle; -} - -// https://github.com/quarto-dev/quarto-cli/issues/3380 - -div.cell-output-display div.pagedtable-wrapper table.table { - font-size: 0.6em; -} - -.reveal .code-annotation-container-hidden { - display: none; -} - -.reveal code.sourceCode button.code-annotation-anchor, -.reveal code.sourceCode .code-annotation-anchor { - font-family: $font-family-monospace; - color: var(--quarto-hl-co-color); - border: solid var(--quarto-hl-co-color) 1px; - border-radius: 50%; - font-size: 0.7em; - line-height: 1.2em; - margin-top: 2px; - user-select: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - -o-user-select: none; -} - -.reveal code.sourceCode button.code-annotation-anchor { - cursor: pointer; -} - -.reveal code.sourceCode a.code-annotation-anchor { - text-align: center; - vertical-align: middle; - text-decoration: none; - cursor: default; - height: 1.2em; - width: 1.2em; -} - -.reveal code.sourceCode.fragment a.code-annotation-anchor { - left: auto; -} - -.reveal #code-annotation-line-highlight-gutter { - width: 100%; - border-top: solid var(--quarto-hl-co-color) 1px; - border-bottom: solid var(--quarto-hl-co-color) 1px; - z-index: 2; -} - -.reveal #code-annotation-line-highlight { - margin-left: -8em; - width: calc(100% + 4em); - border-top: solid var(--quarto-hl-co-color) 1px; - border-bottom: solid var(--quarto-hl-co-color) 1px; - z-index: 2; - margin-bottom: -2px; -} - -.reveal code.sourceCode .code-annotation-anchor.code-annotation-active { - background-color: var(--quarto-hl-normal-color, #aaaaaa); - border: solid var(--quarto-hl-normal-color, #aaaaaa) 1px; - color: rgb(red($code-block-bg), green($code-block-bg), blue($code-block-bg)); - font-weight: bolder; -} - -.reveal pre.code-annotation-code { - padding-top: 0; - padding-bottom: 0; - code { - z-index: 3; - padding-left: 0px; - } -} - -.reveal dl.code-annotation-container-grid { - margin-left: 0.1em; - dt { - margin-top: 0.65rem; - font-family: $font-family-monospace; - border: solid $body-color 1px; - border-radius: 50%; - height: 1.3em; - width: 1.3em; - line-height: 1.3em; - font-size: 0.5em; - text-align: center; - vertical-align: middle; - - text-decoration: none; - } - - dd { - margin-left: 0.25em; - } -} - -/* - - https://github.com/quarto-dev/quarto-cli/issues/4283 - - The trick itself is from here: - - https://stackoverflow.com/questions/8720931/can-css-detect-the-number-of-children-an-element-has - -*/ - -.reveal .scrollable ol li:first-child:nth-last-child(n + 10), -.reveal .scrollable ol li:first-child:nth-last-child(n + 10) ~ li { - margin-left: 1em; -} - -/* kbd rules */ - -kbd { - font-family: $font-family-monospace; - font-size: $kbd-font-size; - color: $kbd-color; - @include shift_to_dark( - "background-color", - shift-color($kbd-bg, 70%), - $kbd-bg - ); - border: 1px solid; - border-color: $code-block-border-color; - border-radius: 5px; - padding: $kbd-padding-y $kbd-padding-x; -} - -:root { - --r-inline-code-font: #{$font-family-monospace-inline}; - --r-block-code-font: #{$font-family-monospace-block}; - --r-inline-code-font-size: #{$revealjs-code-inline-font-size}; - --r-block-code-font-size: #{$revealjs-code-block-font-size}; -} - -// _brand.yml rules - -.reveal a { - font-weight: $link-weight; - background-color: $link-color-bg; - text-decoration: $link-decoration; -} - -/* Callout styles */ - -.reveal div.callout { - margin-top: $callout-margin-top; - margin-bottom: $callout-margin-bottom; - border-radius: $border-radius; - overflow-wrap: break-word; - - // Rules for both styles - &.callout-style-simple, - &.callout-style-default { - border-left: $callout-border-width solid #acacac; - border-right: solid 1px $table-border-color; - border-top: solid 1px $table-border-color; - border-bottom: solid 1px $table-border-color; - - div { - &.callout-body, - &.callout-title { - // Font size is inherited from the parent div.callout - // which is scaled down like .smaller - font-size: inherit; - border-bottom: none; - font-weight: 600; - } - - &.callout-title { - display: flex; - align-items: center; - - p { - margin-top: 0.5em; - margin-bottom: 0.5em; - color: var(--r-main-color); - } - } - } - - .callout-icon::before { - height: 1.25em; - width: 1.25em; - background-size: 1.25em 1.25em; - } - - &.callout-titled { - .callout-body { - > .callout-content { - > :last-child { - margin-bottom: var(--r-block-margin); - } - > :last-child:not(div.sourceCode) { - padding-bottom: 0.5rem; - margin-bottom: 0; - } - } - } - .callout-icon::before { - margin-top: 0.25em; - padding-right: 0.25em; - } - } - - &.no-icon::before { - display: none !important; - } - } - - // Apply only to simple callout style which could have - // - a title or not - // - an icon or not - &.callout-style-simple { - padding: 0em 0.5em; - display: flex; - - &.callout-titled { - .callout-body { - margin-top: 0.2em; - } - &:not(.no-icon) { - .callout-content { - padding-left: 1.6em; - } - } - .callout-content { - p { - margin-top: 0; - } - } - } - - &:not(.callout-titled) { - .callout-body { - display: flex; - } - .callout-icon::before { - margin-top: var(--r-block-margin); - padding-right: 0.5em; - } - .callout-body { - > .callout-content { - // Margin needs to be added when last child is div.sourceCode - // Other code cell border is mixed with callout border - > div.sourceCode:last-child { - margin-bottom: 1rem; - } - > :first-child { - margin-top: var(--r-block-margin); - } - } - } - } - - .callout-icon::before { - display: inline-block; - content: ""; - background-repeat: no-repeat; - } - - div { - &.callout-title { - opacity: 75%; - } - &.callout-body { - font-weight: 400; - } - } - } - - // Apply only to default callout style which could have - // - a title (can't have no title) - // - an icon or not - &.callout-style-default { - &.callout-titled { - .callout-content { - p { - margin-top: 0.7em; - } - } - } - - .callout-icon::before { - display: inline-block; - content: ""; - background-repeat: no-repeat; - } - - div { - &.callout-body { - font-weight: 400; - } - &.callout-title { - opacity: 85%; - padding-left: 0.5em; - padding-right: 0.5em; - } - &.callout-content { - padding-left: 0.5em; - padding-right: 0.5em; - } - } - } - - // FIXME: There is no body-container in revealjs so remove but before find what it was suppose to do - .callout-body-container { - flex-grow: 1; - } -} - -/* Callout Types */ - -// Generate per callout type css to customize their appearance -// Define the callouts for which we should define styles -$callouts: ( - // NOTE - "note": - ( - "color": $callout-color-note, - "icon": - '', - ), - // TIP - "tip": - ( - "color": $callout-color-tip, - "icon": - '', - ), - // WARNING - "warning": - ( - "color": $callout-color-warning, - "icon": - '', - ), - // CAUTION - "caution": - ( - "color": $callout-color-caution, - "icon": - '', - ), - // IMPORTANT - "important": - ( - "color": $callout-color-important, - "icon": - '', - ) -); - -@each $name, $info in $callouts { - $shifted-color: #{shift-color( - quarto-map.get($info, "color"), - $callout-icon-scale - )}; - $shifted-color-svg: str-replace($shifted-color, "#", "%23"); - - .reveal div.callout { - &.callout-#{$name} { - border-left-color: shift-color( - quarto-map.get($info, "color"), - $callout-border-scale - ); - &.callout-style-default { - .callout-title { - @include shift_to_dark( - "background-color", - shift-color(quarto-map.get($info, "color"), 70%), - shift-color(quarto-map.get($info, "color"), -90%) - ); - } - } - .callout-icon::before { - background-image: #{"url('data:image/svg+xml," + - str-replace( - quarto-map.get($info, "icon"), - 'fill="currentColor"', - 'style="fill: #{$shifted-color-svg}"' - ) + - "');"}; - } - } - } -} - - -// quarto-scss-analysis-annotation { "origin": "'rules' section from user-defined SCSS" } - -$presentation-author-block-padding-left: if( - $presentation-title-slide-text-align != left, - 0.5em, - 0 -); -$presentation-author-block-padding-right: if( - $presentation-title-slide-text-align != right, - 0.5em, - 0 -); - -.reveal { - .quarto-title-block { - .quarto-title-authors { - display: flex; - justify-content: $presentation-title-slide-text-align; - - .quarto-title-author { - padding-left: $presentation-author-block-padding-left; - padding-right: $presentation-author-block-padding-right; - - a, - a:hover, - a:visited, - a:active { - color: inherit; - text-decoration: none; - } - - .quarto-title-author-name { - margin-bottom: 0.1rem; - } - - .quarto-title-author-email { - margin-top: 0px; - margin-bottom: 0.4em; - font-size: 0.6em; - } - - .quarto-title-author-orcid { - img { - margin-bottom: 4px; - } - } - - .quarto-title-affiliation { - font-size: 0.7em; - margin-top: 0px; - margin-bottom: 8px; - } - - .quarto-title-affiliation:first { - margin-top: 12px; - } - } - } - } -} - - -.reveal a { - line-height: 1.5em; - color: #e84a27; - font-weight: 300; -} - -.reveal .footer a { - color: #e84a27 !important; -} - -.reveal p { - font-weight: 300; -} - -.reveal .slide ul li, -.reveal .slide ol li { - font-weight: 300; -} - -// maximum height of code blocks before scrolling is used -.reveal pre.sourceCode code { - max-height: 700px; // default 500 -} - -// title slide -.title-slide { - background-color: #fafafa; - //border-top: 80px solid #fafafa; // do not change this, it implements a bumper -} - -h1.title { - color: #1a292c; - font-size: 45px; - text-shadow: none; - font-weight: 400; - text-align: left; - margin-left: 15px; - // padding-top: 80px; // not a huge fan of the 80px drop -} -p.subtitle { - // margin-top: -10px; - // padding-bottom: -20px; - color: #1a292c; - text-shadow: none; - font-weight: 300; - font-size: 40px; - text-align: left; - margin-left: 15px; -} -p.author { - color: #1a292c; - text-shadow: none; - font-weight: 300; - font-size: 30px; - text-align: left; - margin-left: 15px; - margin-bottom: -10px; - margin-top: 0px; -} - -p.date { - color: #1a292c; - text-shadow: none; - font-weight: 300; - font-size: 30px; - text-align: left; - margin-left: 15px; - // margin-bottom: -30px; -} - -p.subtitle:after { - content: ""; - display: block; - border: none; - background-color: #eb811b; - color: #eb811b; - height: 1px; - margin: 25px 0 25px; -} - -// Section break slide -hr, -h1::after { - content: ""; - display: block; - border: none; - background-color: #eb811b; - color: #eb811b; - height: 1px; - margin: 1em 10px 0 10px; -} - -// Override h1 style for title slide (remove section break slide style) -hr, -h1.title::after { - content: ""; - display: block; - border: none; - background-color: transparent !important; - color: transparent !important; - height: 0px; - margin: 0px !important; -} - -// Custom class to allow for blank slides -.empty h1::after, .empty h2 { - content: ""; - display: none; - border: none; - // background-color: #eb811b; - // color: #eb811b; - height: 0px; - margin: 0 auto; //reset -} - -h2::after.title { - margin: 10px 15px 35px 0; -} - -.reveal .slide-number a { - font-size: 120%; - background-color: #fafafa; - border-radius: 12px; - padding: 5px; -} - -// inline -.reveal code { - font-size: 70%; - background-color: #afb8c133; - color: #000; - padding: 4px; - border-radius: 6px; -} - -// code blocks -.reveal div.sourceCode pre code { - font-size: 100%; -} - -// code output -.reveal pre code { - font-size: 100%; - padding-top: 15px; -} - -.colored-column { - border: 2px solid red; - border-radius: 6px !important; - padding: 10px; - margin: 5px; -} - -.column { - // #column; - // border: 2px solid red; - border-radius: 10px !important; - padding: 10px; - margin: 5px; - // background-color: #ededed; - // background-color: #eeeeee; // not background color in columns -} - -.reveal h2 { - background-color: #13294b; //#23373b; - padding: 5px 0px 5px 10px; - color: #fafafa; - //border-radius: 12px; // not a fan of rounded borders -} - -.reveal h2:before { - position: absolute; - content: ""; - height: 35px; - width: 120px; - top: 18px; - right: -75px; - background-image: url(../../../../../logo-illinois-block-i.png); /* Better than using an absolute path, though this can't be the best way to include an image! */ - background-repeat: no-repeat; - background-size: contain; -} - -/* Add special removal classes */ -h2.heading-output.removed:before{ - position: absolute; - content: ""; - height: 0; - width: 0; - top: 0; - right: 0; - background-image: none; -} - -h2.heading-output.removed{ - background-color: transparent; - padding: 0px; - color: #000000; -} - -h1.heading-output.removed::after { - content: ""; - display: block; - border: none; - background-color: transparent; - color: #000000; - height: 0px; - margin: 0; -} - -/* Custom size */ -h5.heading-output { - font-size: 0.7em; -} - -h6.heading-output { - font-size: 0.4em; -} - -.small-font { - font-size: 70%; -} - -iframe { - display: block; - margin-right: auto; - margin-left: auto; -} - -.center { - text-align: center; -} - -// Custom hack to center contents of the table cell in the middle.background; -.reveal table td { - vertical-align: middle; -} - -// -.reveal .slide-menu-button .fa-bars::before { - background-image: url('data:image/svg+xml,'); -} - -.reveal .slide-chalkboard-buttons .fa-easel2::before { - padding-bottom: 6px; - background-image: url('data:image/svg+xml,'); -} - -.reveal .slide-chalkboard-buttons .fa-brush::before { - padding-bottom: 6px; - background-image: url('data:image/svg+xml,'); -} - -.reveal .progress { - color: #23373b; -} -:root { - --r-background-color: #fff; - --r-main-font: Source Sans Pro, simhei, microsoft yahei; - --r-main-font-size: 28px; - --r-main-color: #222; - --r-block-margin: 12px; - --r-heading-margin: 0 0 12px 0; - --r-heading-font: Source Sans Pro, microsoft yahei, simhei; - --r-heading-color: #0c4c8a; - --r-heading-line-height: 1.2em; - --r-heading-letter-spacing: normal; - --r-heading-text-transform: none; - --r-heading-text-shadow: none; - --r-heading-font-weight: 900; - --r-heading1-text-shadow: none; - --r-heading1-size: 2.5em; - --r-heading2-size: 1.6em; - --r-heading3-size: 1.3em; - --r-heading4-size: 1em; - --r-code-font: SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, - Courier New, monospace; - --r-link-color: #ef562d; - --r-link-color-dark: #ef562d; - --r-link-color-hover: #d13076; - --r-selection-background-color: #98bdef; - --r-selection-color: #fff; - --quarto-hl-fu-color: #c53800; -} - -.reveal .title-slide h1 { - text-align: center; - line-height: var(--r-heading-line-height); -} - -section#title-slide p.author, -section#title-slide p.institute, -section#title-slide p.date { - font-size: var(--r-heading2-size); - color: gray; -} - -section#title-slide h1.title:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -section#title-slide p.subtitle { - font-size: var(--r-heading3-size); - text-decoration: underline; - color: gray; -} - -section#title-slide a { - color: gray; -} - -.reveal .slide-number a { - color: #bbbbbb; - font-size: 10pt; -} - -section#title-slide a:hover { - color: var(--r-link-color-hover); -} - -.reveal[data-navigation-mode="linear"] .title-slide h1 { - font-size: var(--r-heading2-size); -} - -section#TOC { - vertical-align: middle; - text-align: center; -} - -section#TOC h2 { - font-size: var(--r-heading2-size); - font-weight: bold; - text-align: center; -} - -section#TOC h2:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -section#TOC ul { - text-align: left; - vertical-align: middle; - margin-top: 3em; - line-height: 1.6em; -} - -section#TOC ol li { - font-size: var(--r-heading3-size); - font-weight: bold; - color: gray; - list-style-type: number; - line-height: 1.6em; -} - -section#TOC strong, -section#TOC b { - color: black; -} - -section#TOC ul li { - font-size: var(--r-heading3-size); - font-weight: bold; - color: gray; - list-style-type: circle; - line-height: 1.6em; -} - -section#TOC a { - color: black; -} - -section#TOC a:hover { - color: var(--r-link-color-hover); -} - -.reveal h2 { - text-align: left; - margin-top: 0px; - line-height: var(--r-heading-line-height); -} - -.reveal .title-slide h1:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -.reveal h2:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, var(--r-heading-color), white) 1; - border-radius: 1px; -} - -.reveal ul { - list-style-type: circle; -} - -li:hover { - font-weight: bold; -} - -.reveal p:hover { - font-weight: bold; -} - -.reveal ul li { - line-height: 1.2em; -} - -.reveal .thank h2 { - font-size: var(--r-heading1-size); - line-height: var(--r-heading-line-height); -} - -.reveal .thank { - text-align: center; -} - -.reveal .thank h2:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -.panel-tabset [role="tab"] { - border-bottom: 1px solid red; -} - -.panel-tabset [role="tab"][aria-selected="true"] { - background-color: #ffdddd; - border-bottom: 1px solid red; -} - -.white { - color: #ffffff; -} -.orange { - color: #e09a25; -} -.green { - color: #006e51; -} -.pink { - color: #d13076; -} - -.dusty { - color: #ad5d5d; -} - -.flame { - color: #ef562d; -} -.kale { - color: #5c7148; -} -.blue { - color: #0c4c8a; -} -.red { - color: #b93a32; -} -.clay { - color: #9e4624; -} -.bodacious { - color: #b76ba3; -} -.serenity { - color: #91a8d0; -} - -.cognac { - color: #60413c; -} -.sangria { - color: #760030; -} - -.alumium { - color: #75796a; -} - -.marsala { - color: #964f4c; -} -.purple { - color: #702fa8; -} - -.blank { - background-color: "Yellow"; - width: 100%; - color: red; -} - -.reveal .slide aside { - position: absolute; - margin: 0 auto; - left: 2%; - font-size: 0.7em; - text-align: end; - max-width: 90%; - width: fit-content; - color: gray; - bottom: -6%; -} - -.ref { - position: absolute; - margin: 0 auto; - right: 2%; - font-size: 1em; - text-align: end; - max-width: 90%; - width: fit-content; - color: gray; - bottom: -6%; -} - -.con { - position: absolute; - margin: 0 auto; - font-size: 1.4em; - text-align: center; - font-family: inherit; - max-width: 100%; - width: fit-content; - color: #023047; - bottom: -2%; -} - -.center { - text-align: center; -} - -.tiny { - font-size: 60%; -} - -figure > figcaption { - margin-top: -0.5em; -} - -.reveal .slide figure > figcaption, -.reveal .slide img.stretch + p.caption, -.reveal .slide img.r-stretch + p.caption { - font-size: 0.9em; - text-align: center; -} - -.reveal strong, .reveal b { - font-weight: bold; - color: crimson; -} - -.reveal pre code { - background-color: #554433; - line-height: 1.2em; - color: #fff; - /* font-size: x-large; */ -} - -.reveal pre code:hover{ - font-size: x-large; - line-height: 120%; -} - -section#title-slide p.subtitle { - font-size: var(--r-heading3-size); - text-decoration: none; - color: gray; -} - -.reveal div.sourceCode pre code { - background-color: #002233; - min-height: 100%; - /* font-size: x-large; */ -} - -.reveal div.sourceCode pre code:hover { - font-size: x-large; -} - - -// quarto-scss-analysis-annotation { "origin": null } \ No newline at end of file diff --git a/dwsd/dwsd.css b/dwsd/dwsd.css deleted file mode 100644 index 027d271..0000000 --- a/dwsd/dwsd.css +++ /dev/null @@ -1,374 +0,0 @@ -/*-- scss:defaults --*/ - -/* Modified version of the metropolis theme ported into Quarto by Patrick Schwartz */ - -// fonts -@import url("https://fonts.googleapis.com/css?family=Fira+Sans:300,300i,400,400i,500,500i,700,700i"); -@import url("https://fonts.googleapis.com/css?family=Fira+Code:300,300i,400,400i,500,500i,700,700i"); -@import url("https://fonts.googleapis.com/css?family=Roboto+Mono|JetBrains+Mono&display=swap"); -@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"); - -$font-family-sans-serif: "Fira Sans", "Roboto", "Droid Serif", serif !default; -$font-family-monospace: "Fira Code", "JetBrains Mono", monospace; -$presentation-font-size-root: 32px; -$presentation-line-height: 1.5em; -$presentation-heading-font-weight: 400; - -// colors -$body-bg: #fafafa !default; -$body-color: #000 !default; -// $link-color: #EB811B !default; -$selection-bg: #26351c; - -// headings -// $presentation-heading-font: "Palatino Linotype", "Book Antiqua", Palatino, -// FreeSerif, serif !default; -// $presentation-heading-color: #383d3d !default; - -/*-- scss:rules --*/ - -:root { - --r-background-color: #fff; - --r-main-font: Source Sans Pro, simhei, microsoft yahei; - --r-main-font-size: 28px; - --r-main-color: #222; - --r-block-margin: 12px; - --r-heading-margin: 0 0 12px 0; - --r-heading-font: Source Sans Pro, microsoft yahei, simhei; - --r-heading-color: #0c4c8a; - --r-heading-line-height: 1.2em; - --r-heading-letter-spacing: normal; - --r-heading-text-transform: none; - --r-heading-text-shadow: none; - --r-heading-font-weight: 900; - --r-heading1-text-shadow: none; - --r-heading1-size: 2.5em; - --r-heading2-size: 1.6em; - --r-heading3-size: 1.3em; - --r-heading4-size: 1em; - --r-code-font: SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, - Courier New, monospace; - --r-link-color: #ef562d; - --r-link-color-dark: #ef562d; - --r-link-color-hover: #d13076; - --r-selection-background-color: #98bdef; - --r-selection-color: #fff; - --quarto-hl-fu-color: #c53800; -} - -.reveal .title-slide h1 { - text-align: center; - line-height: var(--r-heading-line-height); -} - -section#title-slide p.author, -section#title-slide p.institute, -section#title-slide p.date { - font-size: var(--r-heading2-size); - color: gray; -} - -section#title-slide h1.title:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -section#title-slide p.subtitle { - font-size: var(--r-heading3-size); - text-decoration: underline; - color: gray; -} - -section#title-slide a { - color: gray; -} - -.reveal .slide-number a { - color: #bbbbbb; - font-size: 10pt; -} - -section#title-slide a:hover { - color: var(--r-link-color-hover); -} - -.reveal[data-navigation-mode="linear"] .title-slide h1 { - font-size: var(--r-heading2-size); -} - -section#TOC { - vertical-align: middle; - text-align: center; -} - -section#TOC h2 { - font-size: var(--r-heading2-size); - font-weight: bold; - text-align: center; -} - -section#TOC h2:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -section#TOC ul { - text-align: left; - vertical-align: middle; - margin-top: 3em; - line-height: 1.6em; -} - -section#TOC ol li { - font-size: var(--r-heading3-size); - font-weight: bold; - color: gray; - list-style-type: number; - line-height: 1.6em; -} - -section#TOC strong, -section#TOC b { - color: black; -} - -section#TOC ul li { - font-size: var(--r-heading3-size); - font-weight: bold; - color: gray; - list-style-type: circle; - line-height: 1.6em; -} - -section#TOC a { - color: black; -} - -section#TOC a:hover { - color: var(--r-link-color-hover); -} - -.reveal h2 { - text-align: left; - margin-top: 0px; - line-height: var(--r-heading-line-height); -} - -.reveal .title-slide h1:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -.reveal h2:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, var(--r-heading-color), white) 1; - border-radius: 1px; -} - -.reveal ul { - list-style-type: circle; -} - -li:hover { - font-weight: bold; -} - -.reveal p:hover { - font-weight: bold; -} - -.reveal ul li { - line-height: 1.2em; -} - -.reveal .thank h2 { - font-size: var(--r-heading1-size); - line-height: var(--r-heading-line-height); -} - -.reveal .thank { - text-align: center; -} - -.reveal .thank h2:after { - content: " "; - display: block; - border: 3px solid; - border-image: linear-gradient(to right, white, var(--r-heading-color), white) - 1; - border-radius: 1px; -} - -.panel-tabset [role="tab"] { - border-bottom: 1px solid red; -} - -.panel-tabset [role="tab"][aria-selected="true"] { - background-color: #ffdddd; - border-bottom: 1px solid red; -} - -.white { - color: #ffffff; -} -.orange { - color: #e09a25; -} -.green { - color: #006e51; -} -.pink { - color: #d13076; -} - -.dusty { - color: #ad5d5d; -} - -.flame { - color: #ef562d; -} -.kale { - color: #5c7148; -} -.blue { - color: #0c4c8a; -} -.red { - color: #b93a32; -} -.clay { - color: #9e4624; -} -.bodacious { - color: #b76ba3; -} -.serenity { - color: #91a8d0; -} - -.cognac { - color: #60413c; -} -.sangria { - color: #760030; -} - -.alumium { - color: #75796a; -} - -.marsala { - color: #964f4c; -} -.purple { - color: #702fa8; -} - -.blank { - background-color: "Yellow"; - width: 100%; - color: red; -} - -.reveal .slide aside { - position: absolute; - margin: 0 auto; - left: 2%; - font-size: 0.7em; - text-align: end; - max-width: 90%; - width: fit-content; - color: gray; - bottom: -6%; -} - -.ref { - position: absolute; - margin: 0 auto; - right: 2%; - font-size: 1em; - text-align: end; - max-width: 90%; - width: fit-content; - color: gray; - bottom: -6%; -} - -.con { - position: absolute; - margin: 0 auto; - font-size: 1.4em; - text-align: center; - font-family: inherit; - max-width: 100%; - width: fit-content; - color: #023047; - bottom: -2%; -} - -.center { - text-align: center; -} - -.tiny { - font-size: 60%; -} - -figure > figcaption { - margin-top: -0.5em; -} - -.reveal .slide figure > figcaption, -.reveal .slide img.stretch + p.caption, -.reveal .slide img.r-stretch + p.caption { - font-size: 0.9em; - text-align: center; -} - -.reveal strong, .reveal b { - font-weight: bold; - color: crimson; -} - -.reveal pre code { - background-color: #554433; - line-height: 1.2em; - color: #fff; - /* font-size: x-large; */ -} - -.reveal pre code:hover{ - font-size: x-large; - line-height: 120%; -} - -section#title-slide p.subtitle { - font-size: var(--r-heading3-size); - text-decoration: none; - color: gray; -} - -.reveal div.sourceCode pre code { - background-color: #002233; - min-height: 100%; - /* font-size: x-large; */ -} - -.reveal div.sourceCode pre code:hover { - font-size: x-large; -} diff --git a/dwsd/inst b/dwsd/inst new file mode 120000 index 0000000..f5813b9 --- /dev/null +++ b/dwsd/inst @@ -0,0 +1 @@ +_extensions/drwater/dwsd/inst \ No newline at end of file diff --git a/inst/css/style.css b/inst/css/style.css deleted file mode 100755 index 0bbdcff..0000000 --- a/inst/css/style.css +++ /dev/null @@ -1,109 +0,0 @@ -.udot { - text-decoration-line: underline; - text-decoration-color: rgb(50, 50, 50); - text-decoration-style: dashed; - text-decoration-thickness: 1px; -} - -.good { - background-color: forestgreen; - color: lightyellow; -} - -.bad { - background-color: orangered; - color: lightyellow; -} - -.del { - text-decoration-line: line-through; - text-decoration-color: rgb(222 13 13); - text-decoration-style: initial; - text-decoration-thickness: 1.5px; -} - - -.todo { - background-color: darkorange; - color: lightyellow; -} - -.com { - background-color: #0025ff; - font-weight: bold; - color: lightyellow; -} - -.add { - text-decoration-line: underline; - text-decoration-color: rgb(222 13 13); - background-color: violet; - text-decoration-style: initial; - text-decoration-thickness: 2px; -} - - -del { - text-decoration-line: line-through; - text-decoration-color: rgb(222 13 13); - text-decoration-style: initial; - text-decoration-thickness: 1.0px; -} - - -ins { - text-decoration-color: rgb(222 93 93); - background-color: violet; - text-decoration-style: initial; - text-decoration-thickness: 2px; -} - -.clab { - background-color: rgb(255, 245, 240); -} - -.rem { - background-color: darkorange; - color: lightyellow; - text-decoration-thickness: 2px; -} - - -#criticnav { - position: fixed; - z-index: 1100; - top: 0; - right: 0; - width: 120px; - border-bottom: solid 1px #ffffff; - margin: 0; - padding: 10; - background-color: rgb(143 38 38 / 95%); - color: #ffffff; - font-size: 12px; - font-family: "Helvetica Neue", helvetica, arial, sans-serif !important -} - -#criticnav ul { - list-style-type: none; - width: 90%; - margin: 0 auto; - padding: 0 -} - -#criticnav ul li { - display: block; - width: 100px; - min-width: 80px; - text-align: center; - padding: 5px 0 3px !important; - margin: 5px 2px !important; - line-height: 1em; - float: center; - text-transform: uppercase; - cursor: pointer; - border-radius: 20px; - border: 3px solid rgba(255,255,255,0); - color: #fff !important -} - diff --git a/inst/img/rceeslogo.png b/inst/img/rceeslogo.png deleted file mode 100755 index f8cf1d5..0000000 Binary files a/inst/img/rceeslogo.png and /dev/null differ diff --git a/inst/img/rceeslonglogo.png b/inst/img/rceeslonglogo.png deleted file mode 100755 index 5460fde..0000000 Binary files a/inst/img/rceeslonglogo.png and /dev/null differ diff --git a/inst/img/signms.png b/inst/img/signms.png deleted file mode 100755 index ed103bc..0000000 Binary files a/inst/img/signms.png and /dev/null differ diff --git a/inst/img/signmy.png b/inst/img/signmy.png deleted file mode 100755 index 1d57677..0000000 Binary files a/inst/img/signmy.png and /dev/null differ diff --git a/inst/tex/cv.tex b/inst/tex/cv.tex deleted file mode 100755 index d35a19a..0000000 --- a/inst/tex/cv.tex +++ /dev/null @@ -1,240 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Academic Letter LaTeX and RMarkdown Structure % -% Author: Pedro Henrique Pereira Braga % -% % -% License: % -% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/) % -% % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -% Set the font size (11pt, for now) and paper size (e.g. letterpaper, a4paper) -\documentclass[11pt, letterpaper]{letter} - -%---------------------------------------------------------------------- -% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS -%---------------------------------------------------------------------- - -\usepackage{graphicx} % Required for including pictures -\usepackage{fancyhdr} % Allows the use of fancy headers and footers - -\usepackage{microtype} % For typography improvement - -\usepackage{url} % Allows the use of hyperlinks -\urlstyle{same} % Allows hyperlink fonts to be the same as the mainfont -\usepackage[hidelinks]{hyperref} % Allows the use of hyperlinks and -% removes the blue boxes around the link - -\pagestyle{empty} % Removes headers and footers - -\usepackage{setspace} % Allows the use of double spacing in the letter body - -\setlength\parindent{1cm} % Paragraph indentation - -% Create a new command for the horizontal rule in the document which allows -% thickness specification -\makeatletter - \def\@texttop{} % force the address to start above -\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress - \thispagestyle{firstpage}% - {\raggedleft\@date\par}% - \else % home address - \thispagestyle{empty}% - {\raggedleft\begin{tabular}{l@{}}\ignorespaces - \fromaddress \\*[2\parskip]% - \@date \end{tabular}\par}% - \fi - %\vspace{2\parskip}% <-- Removed - %{\raggedright \toname \\ \toaddress \par}% <-- Removed - %\vspace{2\parskip}% <-- Removed - #1\par\nobreak} -\let\ps@empty\ps@plain -\let\ps@firstpage\ps@plain -\makeatother - -%-------------------------------------------------------------------------- -% FONTS -%-------------------------------------------------------------------------- - -\usepackage[T1]{fontenc} % Output font encoding for international characters -% \usepackage[utf8]{inputenc} % Required for inputting international characters -\usepackage[quiet]{fontspec} % Allows the use of fontspec -\setmainfont{Calibri} -% \usepackage{txfonts} % Allows the use of Lato fonts - - -%---------------------------------------------------------------------------- -% DOCUMENT MARGINS -%---------------------------------------------------------------------------- - -\usepackage{geometry} % Required for adjusting page dimensions - -\geometry{ - headheight = 0.7in, % Header height - top=1.5in, % Top margin - bottom=1.5cm, % Bottom margin - left=3cm, % Left margin - right=3cm, % Right margin - % showframe, % Uncomment to show how the type block is set on the page -} - -%----------------------------------------------------------------------------- -% AUTHOR AND RECIPIENTS NEW COMMANDS AND DETAILS STRUCTURE -%----------------------------------------------------------------------------- - -\newcommand{\authordetails}[1]{\renewcommand{\authordetails}{#1}} -\newcommand{\recipientdetails}[1]{\renewcommand{\recipientdetails}{#1}} - -%----------------------------------------------------------------------------- -% HEADER STRUCTURE -%----------------------------------------------------------------------------- - -\address{ - % Include the author's details on the right side of the page under the line - \raggedleft{ - \footnotesize{ % Use a smaller font size - $author$\\ % Author name - \authordetails\\ - \hspace{1mm} - } - } - \vspace{-0.05\textheight} % Move the date and letter content up -} - -%------------------------------------------------------------------------------ -% COMPOSE THE ENTIRE HEADER -%------------------------------------------------------------------------------ - -\renewcommand{\opening}[1]{ - {\fromaddress - \vspace{0.05\textheight}\\ % Print the sender's address here and add some whitespace to allow the printing of the date - \raggedleft{$date$} % Include the date, aligned to the right - \par % par - } - {\raggedright - \toname\\ - \toaddress - \par} % Print the recipient's name and adress - \vspace{0.25cm} % White vertical space after recipient's address - \noindent #1 % Following this, insert the opening info -} - -%------------------------------------------------------------------------------ -% SIGNATURE STRUCTURE -%------------------------------------------------------------------------------ -% The signature is a combination of the author's name, title and institution -\signature{$author$, on behalf of all authors\\ - Email: $from_email$} - -% I will later combine the option of inserting a signature within it - -\renewcommand{\closing}[1]{ - \vspace{2.5mm} % Some whitespace after the letter content and before the signature - \noindent % Stop paragraph indentation - % \hspace*{\longindentation} % Move the signature right to the value of \longindentation - \parbox{\indentedwidth}{ - \raggedright - #1 % Print the signature text - % \vskip 1.65cm % Whitespace between the closing text and author's name for a physical signature - \\\includegraphics[height=0.6in, keepaspectratio=true]{$from_sign$}\\ - \fromsig % Prints the value of \signature{}, i.e. author name and title - } -} - -%------------------------------------------------------------------------------- -% AUTHOR'S INFORMATION -%------------------------------------------------------------------------------- - -\authordetails{ - $from_position$\\ - $from_department$\\ % Sender's department/institution - $from_institution$\\ - $from_address$ % Sender's address - % $from_city$, $from_state_province$\\ % Sender's city, state or province, - % $from_postalcode$\\ % postal code - % $from_country$ -} - -%------------------------------------------------------------------------------ -% RECIPIENT'S INFORMATION -%------------------------------------------------------------------------------ - -\recipientdetails{ -$to_professional_title$ $to_name$\\ - $if(to_journal)$ -\textit{$to_journal$} -$endif$ -} - -%------------------------------------------------------------------------------ -% HEADER CONTENTS -%------------------------------------------------------------------------------ - -\fancypagestyle{firstpage}{ - \fancyhf{} - \fancyhead[L]{ - \includegraphics[height=0.6in, keepaspectratio=true]{$from_institution_logo$} - } - \fancyhead[R]{$author$\\ - \footnotesize{ - $from_email$\\ % Sender's email address - % $from_personal_website$ \\ % Sender's URL - $from_phone$ % Sender's phone number - } - } - } - -\fancypagestyle{plain}{ - \fancyhf{} - \fancyhead[L]{ - \includegraphics[height=0.6in, keepaspectratio=true]{$from_institution_logo$} - } - \fancyhead[R]{$author$\\ - \footnotesize{ - $from_email$\\ % Sender's email address - % $from_personal_website$ \\ % Sender's URL - $from_phone$ % Sender's phone number - } - } - } - -\fancypagestyle{empty}{ - \fancyhf{} - \fancyhead[L]{ - \includegraphics[height=0.6in, keepaspectratio=true]{$from_institution_logo$} - } - \fancyhead[R]{$author$\\ - \footnotesize{ - $from_email$\\ % Sender's email address - % $from_personal_website$ \\ % Sender's URL - $from_phone$ % Sender's phone number - } - } - } - -%------------------------------------------------------------------------------ -\pagestyle{plain} - -\begin{document} - -%------------------------------------------------------------------------------ -% TO ADDRESS -%------------------------------------------------------------------------------ - -\begin{letter}{\recipientdetails} - -%------------------------------------------------------------------------------ -% LETTER CONTENT -%------------------------------------------------------------------------------ - -\opening{$opening_greeting$} -% \begin{doublespacing} - -$body$ - -% \end{doublespacing} -\closing{$closing_greeting$} - -%------------------------------------------------------------------------------ - -\end{letter} -\end{document} diff --git a/inst/tex/els.tex b/inst/tex/els.tex deleted file mode 100755 index 197540d..0000000 --- a/inst/tex/els.tex +++ /dev/null @@ -1,426 +0,0 @@ -$-- Keeping in template layout for backward compatibility -\documentclass[$if(layout)$$layout$$else$$for(classoption)$$classoption$$sep$,$endfor$$endif$]{elsarticle} %review=doublespace preprint=single 5p=2 column -%%% Begin My package additions %%%%%%%%%%%%%%%%%%% -\usepackage[hyphens]{url} -$if(journal)$ -\journal{$journal$} % Sets Journal name -$endif$ -\usepackage{lineno} % add -$if(linenumbers)$ -\linenumbers % turns line numbering on -$endif$ -\usepackage{graphicx} -\usepackage{xstring} -\usepackage[table]{xcolor} -%%%%%%%%%%%%%%%% end my additions to header -\usepackage[T1]{fontenc} -\usepackage{lmodern} -\usepackage{amssymb,amsmath} -\usepackage{ifxetex,ifluatex} -\usepackage{fixltx2e} % provides \textsubscript -% use upquote if available, for straight quotes in verbatim environments -\IfFileExists{upquote.sty}{\usepackage{upquote}}{} -\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex - \usepackage[utf8]{inputenc} - $if(euro)$ - \usepackage{eurosym} - $endif$ -\else % if luatex or xelatex - \usepackage{fontspec} - \ifxetex - \usepackage{xltxtra,xunicode} - \fi - \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} - \newcommand{\euro}{€} - $if(mainfont)$ - \setmainfont{$mainfont$} - $endif$ - $if(sansfont)$ - \setsansfont{$sansfont$} - $endif$ - $if(monofont)$ - \setmonofont{$monofont$} - $endif$ - $if(mathfont)$ - \setmathfont{$mathfont$} - $endif$ -\fi -% use microtype if available -\IfFileExists{microtype.sty}{\usepackage{microtype}}{} -$if(geometry)$ -\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} -$endif$ -$if(natbib)$ -\usepackage{natbib} -\setcitestyle{$natbiboptions$} -\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$} -$endif$ -$if(listings)$ -\usepackage{listings} -$endif$ -$if(lhs)$ -\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} -$endif$ -$if(verbatim-in-note)$ -\usepackage{fancyvrb} -$endif$ -$if(graphics)$ -\usepackage{graphicx} -$endif$ -\ifxetex - \usepackage[setpagesize=false, % page size defined by xetex - unicode=false, % unicode breaks when used with xetex - xetex]{hyperref} -\else - \usepackage[unicode=true]{hyperref} -\fi -\hypersetup{breaklinks=true, - bookmarks=true, - pdfauthor={$author-meta$}, - pdftitle={$title-meta$}, - colorlinks=$if(colorlinks)$true$else$false$endif$, - urlcolor=$if(urlcolor)$$urlcolor$$else$blue$endif$, - linkcolor=$if(linkcolor)$$linkcolor$$else$magenta$endif$, - pdfborder={0 0 0}} -\urlstyle{same} % don't use monospace font for urls -$if(links-as-notes)$ -% Make links footnotes instead of hotlinks: -\renewcommand{\href}[2]{#2\footnote{\url{#1}}} -$endif$ -$if(strikeout)$ -\usepackage[normalem]{ulem} -% avoid problems with \sout in headers with hyperref: -\pdfstringdefDisableCommands{\renewcommand{\sout}{}} -$endif$ -$if(numbersections)$ -\setcounter{secnumdepth}{5} -$else$ -\setcounter{secnumdepth}{0} -$endif$ -$if(verbatim-in-note)$ -\VerbatimFootnotes % allows verbatim text in footnotes -$endif$ -$if(lang)$ -\ifxetex - \usepackage{polyglossia} - \setmainlanguage{$mainlang$} -\else - \usepackage[$lang$]{babel} -\fi -$endif$ -% Pandoc toggle for numbering sections (defaults to be off) -$if(numbersections)$ -$else$ -\setcounter{secnumdepth}{0} -$endif$ -$if(highlighting-macros)$ -% Pandoc syntax highlighting -$highlighting-macros$ -$endif$ -% tightlist command for lists without linebreak -\providecommand{\tightlist}{% - \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} -$if(tables)$ -% From pandoc table feature -\usepackage{longtable,booktabs,array} -$if(multirow)$ -\usepackage{multirow} -$endif$ -\usepackage{calc} % for calculating minipage widths -% Correct order of tables after \paragraph or \subparagraph -\usepackage{etoolbox} -\makeatletter -\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{} -\makeatother -% Allow footnotes in longtable head/foot -\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} -\makesavenoteenv{longtable} -$endif$ -$if(csl-refs)$ -% Pandoc citation processing -\newlength{\cslhangindent} -\setlength{\cslhangindent}{1.5em} -\newlength{\csllabelwidth} -\setlength{\csllabelwidth}{3em} -\newlength{\cslentryspacingunit} % times entry-spacing -\setlength{\cslentryspacingunit}{\parskip} -% for Pandoc 2.8 to 2.10.1 -\newenvironment{cslreferences}% - {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}% - \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}% - {\par} -% For Pandoc 2.11+ -\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing -{% don't indent paragraphs - \setlength{\parindent}{0pt} - % turn on hanging indent if param 1 is 1 - \ifodd #1 - \let\oldpar\par - \def\par{\hangindent=\cslhangindent\oldpar} - \fi - % set entry spacing - \setlength{\parskip}{#2\cslentryspacingunit} - }% -{} -\usepackage{calc} -\newcommand{\CSLBlock}[1]{#1\hfill\break} -\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}} -\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break} -\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} -$endif$ -$for(header-includes)$ -$header-includes$ -$endfor$ - -\usepackage{xifthen} -% set special color for EST -\ifthenelse{\equal{$journal$}{Environmental Science \& Technology}} -{\definecolor{seccol}{RGB}{56, 95, 66}} -{\definecolor{seccol}{RGB}{0, 0, 0}} - -$if(uppersections)$ -\usepackage{titlesec} -\titleformat{\section} -{\color{seccol}\large\bfseries\MakeUppercase}{\thesection}{1em}{} -$endif$ -$if(sectiononnewpage)$ -\AddToHook{cmd/section/before}{\clearpage} -$endif$ - -\usepackage{enumitem} -\usepackage{fontspec} -\usepackage{float} -\setmainfont{Helvetica} -\usepackage[normalem]{ulem} -\usepackage{hyperref} -\usepackage{nameref} %needed by zref-xr -\usepackage{zref-xr,zref-hyperref,zref-user} -\usepackage{xr-hyper} - -% force to use \zref -$if(msname)$ -\def\msname{$msname$} -\zexternaldocument*{\msname} -\renewcommand{\ref}{\zref} -$endif$ -$if(smname)$ -\def\smname{$smname$} -\zexternaldocument*{\smname} -$endif$ - -\zxrsetup{toltxlabel=true} -{\catcode`\#=12 \gdef\hashchar{#1}} -\makeatletter -\newcommand\hzref[1]{\edef\next{% - \noexpand\href{% - \zref@extractdefault{#1}{url}{}% - \zref@ifrefcontainsprop{#1}{anchor}{% - \hashchar\zref@extract{#1}{anchor}}{}}% - {\noexpand\zref{#1}}}\next} -\makeatother - - - -$if(revision)$ -% \usepackage{xcolor} -\usepackage{adjustbox} -\usepackage{mdframed} -\newmdenv[topline=false, - leftline=true, - bottomline=false, - rightline=false, - linewidth=3pt, - %backgroundcolor=lightgray, - linecolor=gray!30, - backgroundcolor=gray!5, - skipabove=\topsep, - skipbelow=\topsep, - leftmargin=0pt, - rightmargin=0pt, - innertopmargin=0pt, - innerbottommargin=0pt - ]{refquote} -\newmdenv[topline=false, - leftline=true, - bottomline=false, - rightline=false, - linewidth=3pt, - %backgroundcolor=lightgray, - backgroundcolor=red!3!white, - linecolor=red!30!white, - skipabove=\topsep, - skipbelow=\topsep, - leftmargin=0pt, - rightmargin=0pt, - innertopmargin=10pt, - innerbottommargin=10pt - ]{question} -\setenumerate{labelsep=*, leftmargin=1.0pc} -% setup hyperlink for page and line number -\def\msname{$if(msname)$$msname$$else$MS$endif$} -\def\smname{$if(smname)$$smname$$else$SM$endif$} -\setenumerate{labelsep=*, leftmargin=1.0pc} -%\zexternaldocument*{ManuscriptNew\veraa} -\zexternaldocument*{\msname} -\zexternaldocument*{\smname} -\newcommand{\hlabel}[1]{\label{#1}\hypertarget{#1}{ - \linelabel{line:#1}}} -%\externaldocument[si-]{\smname\veraa}[\smname\veraa.pdf] -\makeatletter - \newcommand{\clab}[2]{% - \protected@write\@auxout{\let\clab\@secondoftwo}{ - \string\newlabel{r:#1}{{#2}{}}}% - \hlabel{#1}#2\hlabel{#1end}} -\makeatother -\newcommand{\zhypera}[1]{\href[pdfnewwindow]{\msname.pdf\##1}{\\[1ex]\textbf{Page \zpageref{#1}, Line -\zref{line:#1}--\zref{line:#1end}:}\\}} -\newcommand{\cref}[1]{\begin{refquote}\zhypera{#1}{\zref{r:#1}}\\[-0.5ex]\end{refquote}} -% \newenvironment{ra}[1][\unskip]{\par \noindent \\[-1ex] \textbf{Response/Action:}\par\bf}{\ \\} -\renewenvironment{quote}{\begin{question}}{\end{question}} -% \renewenvironment{verbatim}{\begin{ra}}{\end{ra}} -$endif$ - -% def default corresponding authors and equal contributing authors variables -\def\hascorr{0} -\def\haseqc{0} -% check if corresponding author(s) and equal contributing authors are available -$for(author)$$if(author.correspondence)$\def\hascorr{1}$endif$$if(author.equal-contributor)$\def\haseqc{1}$endif$ $endfor$ - -\newcommand{\getcorrauthinfo}{ - \subsection{Corresponding Author(s)} - \def\a{} \def\b{} \def\c{} - \hspace{-2.2em} - $for(author)$ - $if(author.correspondence)$ - \textbf{$author.name$:} - \vspace{-1em} - \begin{enumerate}[labelindent=-12pt,label=\arabic*.,itemindent=0em,leftmargin=!, itemsep = -10pt] - $for(author.institute)$ \def\a{$author.institute$} - $for(institute)$ \def\b{$institute.id$} \def\c{$institute.name$} - \ifx \a\b \item \c; \fi - $endfor$ - $endfor$ - $if(author.email)$\item email: $author.email$;$endif$ - $if(author.orcid)$\item orcid: $author.orcid$;$endif$ - $if(author.tel)$\item Tel: $author.tel$;$endif$ - $if(author.fax)$\item Fax: $author.fax$$endif$ - \end{enumerate} - $endif$ - $endfor$ -} - -\newcommand{\getotherauthinfo}{ - \subsection{Author(s)} - \def\a{} \def\b{} \def\c{} - \hspace{-2.2em} - $for(author)$ - $if(author.correspondence)$ - $else$ - \textbf{$author.name$:} - \vspace{-1em} - \begin{enumerate}[labelindent=-12pt,label=\arabic*.,itemindent=0em,leftmargin=!, itemsep = -10pt] - $for(author.institute)$ \def\a{$author.institute$} $for(institute)$ \def\b{$institute.id$} \def\c{$institute.name$} - \ifx \a\b \item \c; \fi - $endfor$ - $endfor$ - $if(author.email)$\item email: $author.email$;$endif$ - $if(author.orcid)$\item orcid: $author.orcid$;$endif$ - $if(author.tel)$\item Tel: $author.tel$;$endif$ - $if(author.fax)$\item Fax: $author.fax$$endif$ - \end{enumerate} - $endif$ - $endfor$ -} - -$preamble$ - -% remove the two line around Abstract -$if(abstract)$ -$else$ -\makeatletter -\renewcommand{\MaketitleBox}{% - \resetTitleCounters - \def\baselinestretch{1}% - \begin{center} - \def\baselinestretch{1}% - \large \@title \par - \vskip 18pt - \normalsize\elsauthors \par - \vskip 30pt - \footnotesize \itshape \elsaddress \par - \end{center} - \vskip 12pt -} -\makeatother -$endif$ - -\begin{document} -$for(include-before)$ -$include-before$ -$endfor$ -\begin{frontmatter} - - \title{$title$$if(subtitle)$\\\Large{$subtitle$}$endif$} - $for(author)$\author$if(authorwithinstitute)$[$for(author.institute)$$author.institute$$sep$,$endfor$]$endif${$author.name$$if(author.correspondence)$\corref{corrauth}$endif$$if(author.equal-contributor)$\corref{eqcon}$endif$ $if(author.footnote)$\fnref{$author.footnote$}$endif$}$if(author.email)$\ead{$author.email$}$endif$$endfor$ - $if(authorwithinstitute)$ $for(institute)$ \address[$institute.id$]{$institute.name$} $endfor$ $endif$ - % generate corresponding authors. - % \StrBehind is from xstring package - \ifnum \hascorr=1 - \def\corrauths{ - $for(author)$$if(author.correspondence)$and $author.name$ ($author.email$) $endif$$endfor$} - \cortext[corrauth]{Corresponding to \StrBehind*{\corrauths}{and }.} - \fi - - % generate equal contributing authors. - \ifnum \haseqc=1 - \def\eqa{$for(author)$$if(author.equal-contributor)$and $author.name$ $endif$$endfor$} - \cortext[eqcon]{\StrBehind*{\eqa}{and } are equally contributed to this work.} - \fi - - $for(footnote)$ - \fntext[$footnote.id$]{$footnote.text$} - $endfor$ - - $if(abstract)$ - \begin{abstract} - $abstract$ - \end{abstract} - $if(keywords)$ - \begin{keyword} - $for(keywords/allbutlast)$$keywords$ \sep $endfor$ - $for(keywords/last)$$keywords$$endfor$ - \end{keyword} - $endif$ - $endif$ -\end{frontmatter} - -$body$ - -$if(authorwithinstitute)$ -$else$ -\section{Author Information} - -\getcorrauthinfo{} - -\getotherauthinfo{} - -$endif$ - - -$if(natbib)$ -$if(bibliography)$ -$if(biblio-title)$ -$if(book-class)$ -\renewcommand\bibname{$biblio-title$} -$else$ -\renewcommand\refname{$biblio-title$} -$endif$ -$endif$ -\bibliography{$bibliography$} -$endif$ -$endif$ - -$for(include-after)$ -$include-after$ -$endfor$ -\end{document} diff --git a/inst/tex/header.tex b/inst/tex/header.tex deleted file mode 100755 index a10af4d..0000000 --- a/inst/tex/header.tex +++ /dev/null @@ -1,74 +0,0 @@ -\usepackage{enumitem} -\usepackage{fontspec} -\usepackage{float} -\usepackage[normalem]{ulem} -\usepackage{hyperref} -\usepackage{nameref} %needed by zref-xr -\usepackage{zref-xr,zref-hyperref,zref-user} -\usepackage{xr-hyper} - - -\setkomafont{author}{\normalsize} - -\makeatletter -\renewcommand{\title}[1]{\gdef\@title{\large\textbf{#1}}} % Adjust \Huge or other font commands -% \renewcommand{\author}[1]{\gdef\@author{\normalsize\textrm{#1}}} % Adjust \Huge or other font commands -% \renewcommand{\author}[1]{\normalsize\textit{#1}} % Use \normalsize and \textit for customization -\makeatother - -\usepackage{adjustbox} -% \usepackage{xcolor} -\usepackage{mdframed} -\newmdenv[topline=false, - leftline=true, - bottomline=false, - rightline=false, - linewidth=3pt, - %backgroundcolor=lightgray, - linecolor=gray!30, - backgroundcolor=gray!5, - skipabove=\topsep, - skipbelow=\topsep, - leftmargin=0pt, - rightmargin=0pt, - innertopmargin=0pt, - innerbottommargin=0pt - ]{refquote} -\newmdenv[topline=false, - leftline=true, - bottomline=false, - rightline=false, - linewidth=3pt, - %backgroundcolor=lightgray, - backgroundcolor=red!3!white, - linecolor=red!30!white, - skipabove=\topsep, - skipbelow=\topsep, - leftmargin=0pt, - rightmargin=0pt, - innertopmargin=10pt, - innerbottommargin=10pt - ]{question} -% setup hyperlink for page and line number -\def\msname{MS} -\def\smname{SM} -\setenumerate{labelsep=*, leftmargin=1.0pc} -%\zexternaldocument*{ManuscriptNew\veraa} -\zexternaldocument*{\msname} -\zexternaldocument*{\smname} -\newcommand{\hlabel}[1]{\label{#1}\hypertarget{#1}{ - \linelabel{line:#1}}} -%\externaldocument[si-]{\smname\veraa}[\smname\veraa.pdf] -\makeatletter -\newcommand{\clab}[2][]{ - \protected@write\@auxout{\let\clab\@secondoftwo}{ - \string\newlabel{r:#1}{{#2}{}}}% - \hlabel{#1}#2\hlabel{#1end}} -\makeatother -\newcommand{\zhypera}[1]{\href[pdfnewwindow]{\msname.pdf\##1}{\\[1ex]\textbf{Page \zpageref{#1}, Line -\zref{line:#1}--\zref{line:#1end}:}\\}} -\newcommand{\cref}[1]{\begin{refquote}\zhypera{#1}{\zref{r:#1}}\\[-0.5ex]\end{refquote}} -% \newenvironment{ra}[1][\unskip]{\par \noindent \\[-1ex] \textbf{Response/Action:}\par\bf}{\ \\} -\renewenvironment{quote}{\begin{question}}{\end{question}} -% \renewenvironment{verbatim}{\begin{ra}}{\end{ra}} - diff --git a/inst/tex/supp.cls b/inst/tex/supp.cls deleted file mode 100755 index c7c1e9e..0000000 --- a/inst/tex/supp.cls +++ /dev/null @@ -1,1359 +0,0 @@ -%% -%% This is file `supp.cls', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% supp.dtx (with options: `class') -%% -%% Copyright 2007-2020 Elsevier Ltd -%% -%% This file is part of the 'supp Bundle'. -%% ------------------------------------------- -%% -%% It may be distributed under the conditions of the LaTeX Project Public -%% License, either version 1.2 of this license or (at your option) any -%% later version. The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.2 or later is part of all distributions of LaTeX -%% version 1999/12/01 or later. -%% -%% The list of all files belonging to the 'supp Bundle' is -%% given in the file `manifest.txt'. -%% -%% -%% -%% - \def\RCSfile{supp}% - \def\RCSversion{3.3}% - \def\RCSdate{2020/11/20}% - \def\@shortjnl{\relax} - \def\@journal{Elsevier Ltd} - \def\@company{Elsevier Ltd} - \def\@issn{000-0000} - \def\@shortjid{supp} -\NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesClass{\@shortjid}[\RCSdate, \RCSversion: \@journal] -\def\ABD{\AtBeginDocument} -\newif\ifpreprint \preprintfalse -\newif\ifnonatbib \nonatbibfalse -\newif\iflongmktitle \longmktitlefalse -\newif\ifnopreprintline \nopreprintlinefalse -\newif\ifdoubleblind \doubleblindfalse - -\newif\ifuseexplthreefunctions \useexplthreefunctionsfalse - -\IfFileExists{expl3.sty}{% - \global\useexplthreefunctionstrue% - \RequirePackage{expl3}}{} -\ifuseexplthreefunctions\relax% -\IfFileExists{xparse.sty}{\RequirePackage{xparse}}{} -\IfFileExists{etoolbox.sty}{\RequirePackage{etoolbox}}{} -\fi - -\def\@blstr{1} -\newdimen\@bls -\@bls=\baselineskip - -\def\@finalWarning{% - *****************************************************\MessageBreak - This document is typeset in the CRC style which\MessageBreak - is not suitable for submission.\MessageBreak - \MessageBreak - Please typeset again using 'preprint' option\MessageBreak - for creating PDF suitable for submission.\MessageBreak - ******************************************************\MessageBreak -} - -\DeclareOption{preprint}{\global\preprinttrue - \gdef\@blstr{1}\xdef\jtype{0}% - \AtBeginDocument{\@twosidefalse\@mparswitchfalse}} -\DeclareOption{nopreprintline}{\global\nopreprintlinetrue} -\DeclareOption{final}{\gdef\@blstr{1}\global\preprintfalse} -\DeclareOption{review}{\global\preprinttrue\gdef\@blstr{1.5}} -\DeclareOption{authoryear}{\xdef\@biboptions{round,authoryear}} -\DeclareOption{number}{\xdef\@biboptions{numbers}} -\DeclareOption{numbers}{\xdef\@biboptions{numbers}} -\DeclareOption{nonatbib}{\global\nonatbibtrue} -\DeclareOption{longtitle}{\global\longmktitletrue} -\DeclareOption{5p}{\xdef\jtype{5}\global\preprintfalse - \ExecuteOptions{twocolumn}} - \def\jtype{0} -\DeclareOption{3p}{\xdef\jtype{3}\global\preprintfalse} -\DeclareOption{1p}{\xdef\jtype{1}\global\preprintfalse - \AtBeginDocument{\@twocolumnfalse}} -\DeclareOption{times}{\IfFileExists{txfonts.sty}% - {\AtEndOfClass{\RequirePackage{txfonts}% - \gdef\ttdefault{cmtt}% - \let\iint\relax - \let\iiint\relax - \let\iiiint\relax - \let\idotsint\relax - \let\openbox\relax}}{\AtEndOfClass{\RequirePackage{times}}}} - -\DeclareOption{endfloat}{\IfFileExists{endfloat.sty} - {\AtEndOfClass{\RequirePackage[markers]{endfloat}}}{}} -\DeclareOption{endfloats}{\IfFileExists{endfloat.sty} - {\AtEndOfClass{\RequirePackage[markers]{endfloat}}}{}} -\DeclareOption{numafflabel} - {\AtBeginDocument{\def\theaffn{\arabic{affn}}}} %*% -\DeclareOption{lefttitle} - {\AtBeginDocument{\def\supptitlealign{flushleft}}} %*% -\DeclareOption{centertitle} - {\AtBeginDocument{\def\supptitlealign{center}}} %*% -\DeclareOption{reversenotenum} - {\AtBeginDocument{\def\theaffn{\arabic{affn}} - \def\thefnote{\alph{fnote}}}} -\DeclareOption{doubleblind}{\doubleblindtrue} - -\ExecuteOptions{a4paper,10pt,oneside,onecolumn,number,preprint,centertitle} -\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} -\ProcessOptions -\LoadClass{article} -\RequirePackage{graphicx} -\let\comma\@empty -\let\tnotesep\@empty -\let\@title\@empty - -\def\useelstitle{} - -\def\title#1{\g@addto@macro\@title{#1% - \global\let\tnoteref\@gobble}% - \g@addto@macro\useelstitle{#1}} - -\def\elsLabel#1{\@bsphack\protected@write\@auxout{}% - {\string\Newlabel{#1}{\@currentlabel}}\@esphack} -\def\Newlabel#1#2{\expandafter\xdef\csname X@#1\endcsname{#2}} - -\def\elsRef#1{\@ifundefined{X@#1}{0}{\csname X@#1\endcsname}} - -\let\@tnotemark\@empty - -\ifdoubleblind - \def\tnotemark[#1]{} -\else - \def\tnotemark[#1]{\@for\mytmark:=#1\do{% - \expandafter\ifcase\elsRef{\mytmark}\or$^{\star}$\or - $^{,\star\star}$\fi - }% -} -\fi - -\def\tnoteref#1{\tnotemark[{#1}]} -\let\@tnotes\@empty -\newcounter{tnote} -\def\tnotetext[#1]#2{\g@addto@macro\@tnotes{% - \stepcounter{tnote}\elsLabel{#1}% - \def\thefootnote{\ifcase\c@tnote\or$\star$\or$\star\star$\fi}% - \footnotetext{#2}}} - -\let\@nonumnotes\@empty -\def\nonumnote#1{\g@addto@macro\@nonumnotes{% - \let\thefootnote\relax\footnotetext{#1}}} - -\newcounter{fnote} -\def\thefnote{\arabic{fnote}} -\def\fnmark[#1]{\let\comma\@empty - \def\@fnmark{\@for\@@fnmark:=#1\do{% - \edef\fnotenum{\@ifundefined{X@\@@fnmark}{1}{\elsRef{\@@fnmark}}}% - \unskip\comma\fnotenum\let\comma,}}% -} - -\def\fnref#1{\fnmark[#1]} - -\let\@fnotes\@empty\let\@fnmark\@empty -\def\fntext[#1]#2{\g@addto@macro\@fnotes{% - \refstepcounter{fnote}\elsLabel{#1}% - \def\thefootnote{\c@fnote}% - \global\setcounter{footnote}{\c@fnote}% - \footnotetext{#2}}} - -\def\cormark[#1]{\edef\cnotenum{\elsRef{#1}}% - \unskip\textsuperscript{\sep\ifcase\cnotenum\or - $\ast$\or$\ast\ast$\fi\hspace{-1pt}}\let\sep=,} - -\let\@cormark\@empty -\let\@cornotes\@empty -\newcounter{cnote} -\def\cortext[#1]#2{\g@addto@macro\@cornotes{% - \refstepcounter{cnote}\elsLabel{#1}% - \def\thefootnote{\ifcase\thecnote\or$\ast$\or - $\ast\ast$\fi}% - \footnotetext{#2}}} - -\let\@corref\@empty -\def\corref#1{\edef\cnotenum{\elsRef{#1}}% - \edef\@corref{\ifcase\cnotenum\or - $\ast$\or$\ast\ast$\fi\hskip-1pt}} - -\def\resetTitleCounters{\c@cnote=0 - \c@fnote=0 \c@tnote=0 \c@footnote=0} - -\let\eadsep\@empty -\def\@elseads{} -\let\@elsuads\@empty -\let\@cormark\@empty -\def\hashchar{\expandafter\@gobble\string\~} -\def\underscorechar{\expandafter\@gobble\string\_} -\def\lbracechar{\expandafter\@gobble\string\{} -\def\rbracechar{\expandafter\@gobble\string\}} - -\gdef\ead{\@ifnextchar[{\@uad}{\@ead}} -\gdef\@ead#1{\bgroup - \def\_{\underscorechar}% - \def\{{\lbracechar}% - \def~{\hashchar}% - \def\}{\rbracechar}% - \edef\tmp{\the\@eadauthor}% - \immediate\write\@auxout{\string\emailauthor - {#1}{\expandafter\strip@prefix\meaning\tmp}}% - \egroup -} -\newcounter{ead} -\gdef\emailauthor#1#2{\stepcounter{ead}% - \g@addto@macro\@elseads{\raggedright% - \let\corref\@gobble\def\@@tmp{#1}% - \eadsep{\ttfamily\expandafter\strip@prefix\meaning\@@tmp} - (#2)\def\eadsep{\unskip,\space}}% -} -\gdef\@uad[#1]#2{\bgroup - \def~{\hashchar}% - \def\_{\underscorechar}% - \def~{\hashchar}% - \def\}{\rbracechar}% - \edef\tmp{\the\@eadauthor} - \immediate\write\@auxout{\string\urlauthor - {#2}{\expandafter\strip@prefix\meaning\tmp}}% - \egroup -} -\gdef\urlauthor#1#2{\g@addto@macro\@elsuads{\let\corref\@gobble% - \def\@@tmp{#1}\raggedright\eadsep - {\ttfamily\expandafter\strip@prefix\meaning\@@tmp}\space(#2)% - \def\eadsep{\unskip,\space}}% -} - -\def\elsauthors{} -\def\useauthors{} -\def\elsprelimauthors{} - -\def\pprinttitle{} -\let\authorsep\@empty -\let\prelimauthorsep\@empty -\let\sep\@empty -\newcounter{author} -\def\author{\@ifnextchar[{\@@author}{\@author}} - -\newtoks\@eadauthor -\def\@@author[#1]#2{% - \g@addto@macro\elsprelimauthors{% - \prelimauthorsep#2% - \def\prelimauthorsep{\unskip,\space}}% - \g@addto@macro\elsauthors{% - \def\baselinestretch{1}% - \authorsep#2\unskip\textsuperscript{%#1% - \@for\@@affmark:=#1\do{% - \edef\affnum{\@ifundefined{X@\@@affmark}{1}{\elsRef{\@@affmark}}}% - \unskip\sep\affnum\let\sep=,}% - \ifx\@fnmark\@empty\else\unskip\sep\@fnmark\let\sep=,\fi - \ifx\@corref\@empty\else\unskip\sep\@corref\let\sep=,\fi - }% - \def\authorsep{\unskip,\space}% - \global\let\sep\@empty\global\let\@corref\@empty - \global\let\@fnmark\@empty}% - \@eadauthor={#2}% - \g@addto@macro\useauthors{#2; }% -} - -\def\@author#1{% - \g@addto@macro\elsprelimauthors{% - \prelimauthorsep#1% - \def\prelimauthorsep{\unskip,\space}}% - \g@addto@macro\elsauthors{\normalsize% - \def\baselinestretch{1}% - \upshape\authorsep#1\unskip\textsuperscript{% - \ifx\@fnmark\@empty\else\unskip\sep\@fnmark\let\sep=,\fi - \ifx\@corref\@empty\else\unskip\sep\@corref\let\sep=,\fi - }% - \def\authorsep{\unskip,\space}% - \global\let\@fnmark\@empty - \global\let\@corref\@empty \global\let\sep\@empty}% - \@eadauthor={#1}% - \g@addto@macro\useauthors{#1; }% -} - -\AtBeginDocument{% - \@ifpackageloaded{hyperref}{% - \expandafter\gdef\csname Hy@title\endcsname{\useelstitle}% - \expandafter\gdef\csname Hy@author\endcsname{\useauthors}% - }{} -} - -\def\elsaddress{} -\def\addsep{\par\vskip6pt} - -\def\@alph#1{% - \ifcase#1\or a\or b\or c\or d\or e\or f\or g\or h\or i\or j\or k\or - l\or m\or n\or o\or p\or q\or r\or s\or t\or u\or v\or w\or x\or - y\or z% - \or aa\or ab\or ac\or ad\or ae\or af\or ag\or ah\or ai\or aj\or - ak\or al\or am\or an\or ao\or ap\or aq\or ar\or as\or at\or au\or - av\or aw\or ax\or ay\or az% - \or ba\or bb\or bc\or bd\or be\or bf\or bg\or bh\or bi\or bj\or - bk\or bl\or bm\or bn\or bo\or bp\or bq\or br\or bs\or bt\or bu\or - bv\or bw\or bx\or by\or bz% - \or ca\or cb\or cc\or cd\or ce\or cf\or cg\or ch\or ci\or cj\or - ck\or cl\or cm\or cn\or co\or cp\or cq\or cr\or cs\or ct\or cu\or - cv\or cw\or cx\or cy\or cz% - \or da\or db\or dc\or dd\or de\or df\or dg\or dh\or di\or dj\or - dk\or dl\or dm\or dn\or do\or dp\or dq\or dr\or ds\or dt\or du\or - dv\or dw\or dx\or dy\or dz% - \or ea\or eb\or ec\or ed\or ee\or ef\or eg\or eh\or ei\or ej\or - ek\or el\or em\or en\or eo\or ep\or eq\or er\or es\or et\or eu\or - ev\or ew\or ex\or ey\or ez% - \or fa\or fb\or fc\or fd\or fe\or ff\or fg\or fh\or fi\or fj\or - fk\or fl\or fm\or fn\or fo\or fp\or fq\or fr\or fs\or ft\or fu\or - fv\or fw\or fx\or fy\or fz% - \or ga\or gb\or gc\or gd\or ge\or gf\or gg\or gh\or gi\or gj\or - gk\or gl\or gm\or gn\or go\or gp\or gq\or gr\or gs\or gt\or gu\or - gv\or gw\or gx\or gy\or gz% - \else\@ctrerr\fi} - -\newcounter{affn} -\renewcommand\theaffn{\alph{affn}} - -\ifuseexplthreefunctions\relax% - \ExplSyntaxOn - \def\ca_affitem_postskip{\mbox{~}\unskip\ignorespaces} - %%Author Address - \DeclareDocumentCommand \ca_organization { O{,} m } - { - % #2 #1\mbox{~}\unskip\ignorespaces - \csgappto { ca_affiliation_values } { #2 #1\ca_affitem_postskip } - } - \DeclareDocumentCommand \ca_postal_code { O{,} m } - { - % #2 #1\mbox{~}\unskip\ignorespaces - \csgappto { ca_affiliation_values } { #2 #1\ca_affitem_postskip } - } - \DeclareDocumentCommand \ca_aff_city { O{,} m } - { - % #2 #1\mbox{~}\unskip\ignorespaces - \csgappto { ca_affiliation_values } { #2 #1\ca_affitem_postskip } - } - \DeclareDocumentCommand \ca_address_line { O{,}m } - { - % #2 #1\mbox{~}\unskip\ignorespaces - \csgappto { ca_affiliation_values } { #2 #1\ca_affitem_postskip } - } - \DeclareDocumentCommand \ca_state { O{,} m } - { - % #2 #1\mbox{~}\unskip\ignorespaces - \csgappto { ca_affiliation_values } { #2 #1\ca_affitem_postskip } - } - \DeclareDocumentCommand \ca_country { O{ } m } - { - % #2 #1 - \csgappto { ca_affiliation_values } { #2 #1 } - } - - \DeclareDocumentCommand \ca_stm_organization { O{,} m } - { - #2 #1\ca_affitem_postskip - } - \DeclareDocumentCommand \ca_stm_postal_code { O{,} m } - { - #2 #1\ca_affitem_postskip - } - \DeclareDocumentCommand \ca_stm_aff_city { O{,} m } - { - #2 #1\ca_affitem_postskip - } - \DeclareDocumentCommand \ca_stm_aff_address_line { O{,}m } - { - #2 #1\ca_affitem_postskip - } - \DeclareDocumentCommand \ca_stm_state { O{,} m } - { - #2 #1\ca_affitem_postskip - } - \DeclareDocumentCommand \ca_stm_country { O{ } m } - { - #2 #1 - } - - \keys_define:nn { stm / affiliation } - { - op .tl_set_x:N = \l_organization_punc_tl, - oraganizationsep .tl_set_x:N = \l_organization_punc_tl, - ap .tl_set_x:N = \l_address_line_punc_tl, - addresslinesep .tl_set_x:N = \l_address_line_punc_tl, - cp .tl_set_x:N = \l_city_punc_tl, - citysep .tl_set_x:N = \l_city_punc_tl, - pp .tl_set_x:N = \l_postal_code_punc_tl, - postcodesep .tl_set_x:N = \l_postal_code_punc_tl, - sp .tl_set_x:N = \l_state_punc_tl, - statesep .tl_set_x:N = \l_state_punc_tl, - o .code:n = { \ca_organization[\l_organization_punc_tl]{#1} }, - organization .code:n = { \ca_organization[\l_organization_punc_tl]{#1} }, - a .code:n = { \ca_address_line[\l_address_line_punc_tl]{#1} }, - addressline .code:n = { \ca_address_line[\l_address_line_punc_tl]{#1} }, - c .code:n = { \ca_aff_city[\l_city_punc_tl]{#1} }, - city .code:n = { \ca_aff_city[\l_city_punc_tl]{#1} }, - p .code:n = { \ca_postal_code[\l_postal_code_punc_tl]{#1} }, - postcode .code:n = { \ca_postal_code[\l_postal_code_punc_tl]{#1} }, - s .code:n = { \ca_state[\l_state_punc_tl]{#1} }, - state .code:n = { \ca_state[\l_state_punc_tl]{#1} }, - orp .tl_set_x:N = \l_organization_punc_tl, - adp .tl_set_x:N = \l_address_line_punc_tl, - cip .tl_set_x:N = \l_city_punc_tl, - pcp .tl_set_x:N = \l_postal_code_punc_tl, - stp .tl_set_x:N = \l_state_punc_tl, - cyp .tl_set_x:N = \l_country_punc_tl, - or .code:n = { \ca_organization[\l_organization_punc_tl]{#1} }, - ad .code:n = { \ca_address_line[\l_address_line_punc_tl]{#1} }, - ci .code:n = { \ca_aff_city[\l_city_punc_tl]{#1} }, - pc .code:n = { \ca_postal_code[\l_postal_code_punc_tl]{#1} }, - st .code:n = { \ca_state[\l_state_punc_tl]{#1} }, - cy .code:n = { \ca_country[\l_country_punc_tl]{#1} }, - country .code:n = { \ca_country[\l_country_punc_tl]{#1} }, - unknown .code:n = { - \ifstrempty { #1 } { - \csxappto { ca_affiliation_values } - { {\l_keys_key_tl}~ } - } { - \csxappto { ca_affiliation_values } - { {#1}~ } - } - } - } - - \cs_set:Npn \__reset_affiliation: - { - \tl_gset:Nn \l_organization_punc_tl { , } - \tl_gset:Nn \l_address_line_punc_tl { , } - \tl_gset:Nn \l_city_punc_tl { , } - \tl_gset:Nn \l_postal_code_punc_tl { , } - \tl_gset:Nn \l_state_punc_tl { , } - \tl_gset:Nn \l_country_punc_tl { } - } - - \DeclareDocumentCommand\affiliation{ o m }{ - \__reset_affiliation: - \csgdef { ca_affiliation_values } { } - \IfNoValueTF { #2 } - { } - { - \keys_set:nn { stm / affiliation } { #2 } - } - \csgappto{elsaddress}{ - \def\baselinestretch{1}% - \refstepcounter{affn} - \xdef\@currentlabel{\theaffn} - \IfNoValueTF { #1 } - { } - { \elsLabel{#1} } - \textsuperscript{\theaffn}} - \csxappto{elsaddress}{ - \csuse { ca_affiliation_values } - \par - } - } - \ExplSyntaxOff - \else% - \def\caaffitempostskip{\space} - - \DeclareRobustCommand\caorganization[2][,]{% - \g@addto@macro\caaffiliationvalues{#2#1\caaffitempostskip}% - } - \DeclareRobustCommand\capostalcode[2][,]{% - \g@addto@macro\caaffiliationvalues{#2#1\caaffitempostskip}% - } - \DeclareRobustCommand\caaffcity[2][,]{% - \g@addto@macro\caaffiliationvalues{#2#1\caaffitempostskip}% - } - \DeclareRobustCommand\caaddressline[2][,]{% - \g@addto@macro\caaffiliationvalues{#2#1\caaffitempostskip}% - } - \DeclareRobustCommand\castate[2][,]{% - \g@addto@macro\caaffiliationvalues{#2#1\caaffitempostskip}% - } - \DeclareRobustCommand\cacountry[2][,]{% - \g@addto@macro\caaffiliationvalues{#2#1\caaffitempostskip}% - } - \DeclareRobustCommand\castmorganization[2][,]{% - #2#1\caaffitempostskip% - } - \DeclareRobustCommand\castmpostalcode[2][,]{% - #2#1\caaffitempostskip% - } - \DeclareRobustCommand\castmaffcity[2][,]{% - #2#1\caaffitempostskip% - } - \DeclareRobustCommand\castmaddressline[2][,]{% - #2#1\caaffitempostskip% - } - \DeclareRobustCommand\castmstate[2][,]{% - #2#1\caaffitempostskip% - } - \DeclareRobustCommand\castmcountry[2][,]{% - #2#1\caaffitempostskip% - } - - \define@key{affiliation}{op}{\xdef\@organizationpunc{#1}} - \define@key{affiliation}{orp}{\xdef\@organizationpunc{#1}} - \define@key{affiliation}{organizationsep}{\xdef\@organizationpunc{#1}} - \define@key{affiliation}{ap}{\xdef\@addresslinepunc{#1}} - \define@key{affiliation}{adp}{\xdef\@addresslinepunc{#1}} - \define@key{affiliation}{addresslinesep}{\xdef\@addresslinepunc{#1}} - \define@key{affiliation}{cp}{\xdef\@citypunc{#1}} - \define@key{affiliation}{cip}{\xdef\@citypunc{#1}} - \define@key{affiliation}{cyp}{\xdef\@countrypunc{#1}} - \define@key{affiliation}{citysep}{\xdef\@citypunc{#1}} - \define@key{affiliation}{pp}{\xdef\@postcodepunc{#1}} - \define@key{affiliation}{pop}{\xdef\@postcodepunc{#1}} - \define@key{affiliation}{postcodesep}{\xdef\@postcodepunc{#1}} - \define@key{affiliation}{sp}{\xdef\@statepunc{#1}} - \define@key{affiliation}{stp}{\xdef\@statepunc{#1}} - \define@key{affiliation}{statesep}{\xdef\@statepunc{#1}} - \define@key{affiliation}{countrysep}{\xdef\@countrypunc{#1}} - - \define@key{affiliation}{organization}{% - \caorganization[\@organizationpunc]{#1}} - \define@key{affiliation}{addressline}{% - \caaddressline[\@addresslinepunc]{#1}} - \define@key{affiliation}{city}{% - \caaffcity[\@citypunc]{#1}} - \define@key{affiliation}{postcode}{% - \capostalcode[\@postcodepunc]{#1}} - \define@key{affiliation}{state}{% - \castate[\@statepunc]{#1}} - \define@key{affiliation}{or}{% - \caorganization[\@organizationpunc]{#1}} - \define@key{affiliation}{ad}{% - \caaddressline[\@addresslinepunc]{#1}} - \define@key{affiliation}{ci}{% - \caaffcity[\@citypunc]{#1}} - \define@key{affiliation}{po}{% - \capostalcode[\@postcodepunc]{#1}} - \define@key{affiliation}{st}{% - \castate[\@statepunc]{#1}} - \define@key{affiliation}{o}{% - \caorganization[\@organizationpunc]{#1}} - \define@key{affiliation}{a}{% - \caaddressline[\@addresslinepunc]{#1}} - \define@key{affiliation}{c}{% - \cacity[\@citypunc]{#1}} - \define@key{affiliation}{p}{% - \capostcode[\@postcodepunc]{#1}} - \define@key{affiliation}{s}{% - \castate[\@statepunc]{#1}} - \define@key{affiliation}{cy}{% - \cacountry[\@countrypunc]{#1}} - \define@key{affiliation}{country}{% - \cacountry[\@countrypunc]{#1}} - - \gdef\@resetaffiliation{% - \gdef\@organizationpunc{,}% - \gdef\@addresslinepunc{,}% - \gdef\@citypunc{,}% - \gdef\@statepunc{,}% - \gdef\@postcodepunc{,}% - \gdef\@countrypunc{}% - } - - \def\affiliation{\@ifnextchar[{\@@affiliation}{\@affiliation}} - - \newcommand*{\newstmrobustcmd}{} - \protected\def\newstmrobustcmd{\@star@or@long\stmetb@new@command} - - \def\stmetb@new@command#1{\@testopt{\stmetb@newcommand#1}0} - - \def\stmetb@newcommand#1[#2]{% - \@ifnextchar[%] - {\stmetb@xargdef#1[#2]} - {\ifx\l@ngrel@x\relax - \let\l@ngrel@x\protected - \else - \protected\def\l@ngrel@x{\protected\long}% - \fi - \@argdef#1[#2]}} - - \long\def\stmetb@xargdef#1[#2][#3]#4{% - \@ifdefinable#1{% - \expandafter\protected - \expandafter\def - \expandafter#1% - \expandafter{% - \expandafter\@testopt - \csname\string#1\endcsname{#3}}% - \expandafter\@yargdef\csname\string#1\endcsname\tw@{#2}{#4}}} - % - \newcommand{\ifstmundef}[1]{% - \ifdefined#1% - \ifx#1\relax - \expandafter\expandafter - \expandafter\@firstoftwo - \else - \expandafter\expandafter - \expandafter\@secondoftwo - \fi - \else - \expandafter\@firstoftwo - \fi} - \newcommand{\stmexpandonce}[1]{% - \unexpanded\expandafter{#1}} - \newstmrobustcmd{\gstmappto}[2]{% - \ifundef{#1} - {\xdef#1{\unexpanded{#2}}} - {\xdef#1{\stmexpandonce#1\unexpanded{#2}}}} - \newstmrobustcmd{\xstmappto}[2]{% - \ifstmundef{#1} - {\xdef#1{#2}} - {\xdef#1{\stmexpandonce#1#2}}} - - \long\def\@@affiliation[#1]#2{% - \@resetaffiliation% - \gdef\caaffiliationvalues{}% - \elsLabel{#1}% - \setkeys{affiliation}{#2}% - \g@addto@macro\elsaddress{% - \def\baselinestretch{1}% - \refstepcounter{affn}% - \xdef\@currentlabel{\theaffn}% - \elsLabel{#1}% - \textsuperscript{\theaffn}} - \xstmappto\elsaddress{\caaffiliationvalues\par}} - - \long\def\@affiliation#1{% - \@resetaffiliation% - \gdef\caaffiliationvalues{}% - \setkeys{affiliation}{#1}% - \g@addto@macro\elsauthors{% - \def\baselinestretch{1}}% - \xstmappto\elsaddress{\caaffiliationvalues\par}} -\fi - -\def\address{\@ifnextchar[{\@@address}{\@address}} - -\long\def\@@address[#1]#2{\g@addto@macro\elsaddress{% - \def\baselinestretch{1}% - \refstepcounter{affn} - \xdef\@currentlabel{\theaffn} - \elsLabel{#1}% - \textsuperscript{\theaffn}#2\par}} - -\long\def\@address#1{\g@addto@macro\elsauthors{% - \def\baselinestretch{1}% - \addsep\footnotesize\itshape#1\def\addsep{\par\vskip6pt}% - \def\authorsep{\par\vskip8pt}}} - -\newbox\absbox -\renewenvironment{abstract}{\global\setbox\absbox=\vbox\bgroup - \hsize=\textwidth\def\baselinestretch{1}% - \noindent\unskip\textbf{\@suppabstitle} %*% - \par\medskip\noindent\unskip\ignorespaces} - {\egroup} - -\newbox\supphighlightsbox -\newbox\suppgrabsbox -\def\@supphighlightstitle{Highlights} -\def\@suppgrabstitle{Graphical Abstract} -\newif\ifelsprelimpagegrabs\global\elsprelimpagegrabsfalse -\newif\ifelsprelimpagehl\global\elsprelimpagehlfalse -\def\suppprelims{% - \ifelsprelimpagegrabs\relax% - \thispagestyle{empty}% - \unvbox\suppgrabsbox% - \pagebreak\clearpage% - \fi% - \ifelsprelimpagehl\relax% - \thispagestyle{empty} - \unvbox\supphighlightsbox% - \pagebreak\clearpage% - \setcounter{page}{1}% - \fi% -} -\newenvironment{highlights}{% - \global\elsprelimpagehltrue% - \global\setbox\supphighlightsbox=\vbox\bgroup - \hsize=\textwidth\def\baselinestretch{1}% - \noindent\unskip{\Large\@supphighlightstitle}%*% - \par\vskip12pt\noindent\unskip\ignorespaces\textbf{\@title}% - \ifx\elsprelimauthors\@empty\relax\else% - \par\vskip6pt\noindent\unskip\ignorespaces\elsprelimauthors% - \fi% - \par\medskip\noindent\unskip\ignorespaces - \begin{itemize} - } - {\end{itemize} - \egroup} -\newenvironment{graphicalabstract}{% - \global\elsprelimpagegrabstrue% - \global\setbox\suppgrabsbox=\vbox\bgroup - \hsize=\textwidth\def\baselinestretch{1}% - \noindent\unskip{\Large\@suppgrabstitle}%*% - \par\vskip12pt\noindent\unskip\ignorespaces\textbf{\@title}% - \ifx\elsprelimauthors\@empty\relax\else% - \par\vskip6pt\noindent\unskip\ignorespaces\elsprelimauthors% - \fi% - \par\medskip\noindent\unskip\ignorespaces} - {\egroup} - -\newbox\keybox -\let\@suppkwdtitle\@empty %*% -\def\keywordtitle#1{\gdef\@suppkwdtitle{#1}} %*% -\def\keywordtitlesep#1{\gdef\@suppkeywordtitlesep{#1}} %*% -\keywordtitle{Keywords} %*% -\keywordtitlesep{:\ } -\def\keyword{% - \def\sep{\unskip, }% - \def\MSC{\@ifnextchar[{\@MSC}{\@MSC[2000]}} - \def\@MSC[##1]{\par\leavevmode\hbox {\it ##1~MSC:\space}}% - \def\PACS{\par\leavevmode\hbox {\it PACS:\space}}% - \def\JEL{\par\leavevmode\hbox {\it JEL:\space}}% - \global\setbox\keybox=\vbox\bgroup\hsize=\textwidth - \normalsize\normalfont\def\baselinestretch{1} - \parskip\z@ - \noindent\textit{\@suppkwdtitle\@elsarticlekeywordtitlesep} - \raggedright % Keywords are not justified. - \ignorespaces} -\def\endkeyword{\par \egroup} - -\newdimen\Columnwidth -\Columnwidth=\columnwidth - -\def\printFirstPageNotes{% - \iflongmktitle - \let\columnwidth=\textwidth - \fi -\ifdoubleblind -\else - \ifx\@tnotes\@empty\else\@tnotes\fi - \ifx\@nonumnotes\@empty\else\@nonumnotes\fi - \ifx\@cornotes\@empty\else\@cornotes\fi - \ifx\@elseads\@empty\relax\else - \let\thefootnote\relax - \footnotetext{\ifnum\theead=1\relax - \textit{Email address:\space}\else - \textit{Email addresses:\space}\fi - \@elseads}\fi - \ifx\@elsuads\@empty\relax\else - \let\thefootnote\relax - \footnotetext{\textit{URL:\space}% - \@elsuads}\fi -\fi - \ifx\@fnotes\@empty\else\@fnotes\fi - \iflongmktitle\if@twocolumn - \let\columnwidth=\Columnwidth\fi\fi -} - -%% Pushing text to begin on newpage %*% -\def\newpage@after@title{title} -\def\newpage@after@author{author} -\def\newpage@after@abstract{abstract} -\def\newpageafter#1% - {\gdef\@suppnewpageafter{#1}} - -\long\def\pprintMaketitle{\clearpage - \iflongmktitle\if@twocolumn\let\columnwidth=\textwidth\fi\fi - \resetTitleCounters - \def\baselinestretch{1}% - \printFirstPageNotes - \begin{\supptitlealign}% - \thispagestyle{pprintTitle}% - \def\baselinestretch{1}% - \Large\@title\par\vskip18pt% - \ifx\@suppnewpageafter\newpage@after@title% %*% - \newpage - \fi% - \ifdoubleblind - \vspace*{2pc} - \else - \normalsize\elsauthors\par\vskip10pt - \footnotesize\itshape\elsaddress\par\vskip36pt - \fi - \ifx\@suppnewpageafter\newpage@after@author% %*% - \newpage - \fi% - \hrule\vskip12pt - \ifvoid\absbox\else\unvbox\absbox\par\vskip10pt\fi - \ifvoid\keybox\else\unvbox\keybox\par\vskip10pt\fi - \hrule\vskip12pt - \ifx\@suppnewpageafter\newpage@after@abstract% %*% - \newpage - \fi% - \end{\supptitlealign}% - \gdef\thefootnote{\arabic{footnote}}% - } - -\def\printWarning{% - \mbox{}\par\vfill\par\bgroup - \fboxsep12pt\fboxrule1pt - \hspace*{.18\textwidth} - \fcolorbox{gray50}{gray10}{\box\warnbox} - \egroup\par\vfill\thispagestyle{empty} - \setcounter{page}{0} - \clearpage} - -\long\def\finalMaketitle{% - \resetTitleCounters - \def\baselinestretch{1}% - \MaketitleBox - \thispagestyle{pprintTitle}% - \gdef\thefootnote{\arabic{footnote}}% - } - -\long\def\MaketitleBox{% - \resetTitleCounters - \def\baselinestretch{1}% - \begin{\supptitlealign}% - \def\baselinestretch{1}% - \Large\@title\par\vskip18pt - \ifdoubleblind - \vspace*{2pc} - \else - \normalsize\elsauthors\par\vskip10pt - \footnotesize\itshape\elsaddress\par\vskip36pt - \fi - \hrule\vskip12pt - \ifvoid\absbox\else\unvbox\absbox\par\vskip10pt\fi - \ifvoid\keybox\else\unvbox\keybox\par\vskip10pt\fi - \hrule\vskip12pt - \end{\supptitlealign}% -} - -\def\FNtext#1{\par\bgroup\footnotesize#1\egroup} -\newdimen\space@left -\def\alarm#1{\typeout{******************************}% - \typeout{#1}% - \typeout{******************************}% -} - -\def\titlespancalculator#1#2#3#4{% - % break count - \@tempcnta=#4\relax% - % pagebreakcount increment - \advance\@tempcnta by 1\relax% - % title page height - \@tempdima=#1\relax% - % Page height - title page notes height (only for first break) - % Page height - textheight (for remaining breaks) - % Page height - title page notes height - \@tempdimb=#2\relax% - % Remaining title page height - \advance\@tempdima -\the\@tempdimb% - % Checks if remaining title page - % height less than textheight - \ifdim\the\@tempdima>#3\relax% - \titlespancalculator% - {\the\@tempdima}{#3}{#3}{\the\@tempcnta}%Break again - \else% - % Save break count and exit. - \xdef\savetitlepagespan{\the\@tempcnta}% - \fi% -}% - -\long\def\myfor#1#2#3{% - \@tempcnta=#1\relax% - \ifnum#1<#2\relax% - \advance\@tempcnta by 1\relax% - #3% - \myfor{\the\@tempcnta}{#2}{#3}% - \fi} - -\long\def\getSpaceLeft{%\global\@twocolumnfalse% - \global\setbox0=\vbox{\hsize=\textwidth\MaketitleBox}% - \global\setbox1=\vbox{\hsize=\textwidth - \let\footnotetext\FNtext - \printFirstPageNotes}% - \xdef\noteheight{\the\ht1}% - \xdef\titleheight{\the\ht0}% - \@tempdima=\vsize - \advance\@tempdima-\noteheight - \advance\@tempdima-1\baselineskip - \xdef\savefpageheight{\the\@tempdima}% - \setbox2=\vbox{\titlespancalculator{\titleheight}% - {\savefpageheight}{\textheight}{0}}% -} - - \skip\footins=24pt - -\newbox\els@boxa -\newbox\els@boxb - -\ifpreprint - \def\maketitle{\suppprelims\pprintMaketitle} - \else - \ifnum\jtype=1 - \def\maketitle{% - \suppprelims% - \iflongmktitle\getSpaceLeft - \ifdim\noteheight>0pt% - \advance\@tempdima-1.35\baselineskip - \fi% - \global\setbox\els@boxa=\vsplit0 to \@tempdima - \box\els@boxa\par\resetTitleCounters - \thispagestyle{pprintTitle}% - \printFirstPageNotes - \ifnum\savetitlepagespan>1\relax% - \myfor{2}{\savetitlepagespan}{% - \global\setbox\els@boxb=\vsplit0 to \textheight%\@tempdima - \box\els@boxb} - \else% - \fi% - \box0% - \else - \finalMaketitle\printFirstPageNotes - \fi - \gdef\thefootnote{\arabic{footnote}}}% - \else - \ifnum\jtype=5 - \def\maketitle{% - \suppprelims% - \iflongmktitle\getSpaceLeft - \ifdim\noteheight>0pt% - \advance\@tempdima-1.35\baselineskip - \fi% - \global\setbox\els@boxa=\vsplit0 to \@tempdima - \box\els@boxa\par\resetTitleCounters - \thispagestyle{pprintTitle}% - \printFirstPageNotes - \ifnum\savetitlepagespan>1\relax% - \myfor{2}{\savetitlepagespan}{% - \global\setbox\els@boxb=\vsplit0 to \textheight%\@tempdima - \twocolumn[\box\els@boxb]} - \else% - \fi% - \twocolumn[\box0]%\printFirstPageNotes - \else - \twocolumn[\finalMaketitle]\printFirstPageNotes - \fi - \gdef\thefootnote{\arabic{footnote}}} - \else - \if@twocolumn - \def\maketitle{% - \suppprelims% - \iflongmktitle\getSpaceLeft - \ifdim\noteheight>0pt% - \advance\@tempdima-1.35\baselineskip - \fi% - \global\setbox\els@boxa=\vsplit0 to \@tempdima - \box\els@boxa\par\resetTitleCounters - \thispagestyle{pprintTitle}% - \printFirstPageNotes - \ifnum\savetitlepagespan>1\relax% - \myfor{2}{\savetitlepagespan}{% - \global\setbox\els@boxb=\vsplit0 to \textheight%\@tempdima - \twocolumn[\box\els@boxb]} - \else% - \fi% - \twocolumn[\box0]% - \else - \twocolumn[\finalMaketitle]\printFirstPageNotes - \fi - \gdef\thefootnote{\arabic{footnote}}}% - \else - \def\maketitle{% - \suppprelims% - \iflongmktitle\getSpaceLeft - \ifdim\noteheight>0pt% - \advance\@tempdima-1.35\baselineskip - \fi% - \global\setbox\els@boxa=\vsplit0 to \@tempdima - \box\els@boxa\par\resetTitleCounters - \thispagestyle{pprintTitle}% - \printFirstPageNotes - \ifnum\savetitlepagespan>1\relax% - \myfor{2}{\savetitlepagespan}{% - \global\setbox\els@boxb=\vsplit0 to \textheight%\@tempdima - \box\els@boxb} - \else% - \fi% - \box0% - \else - \suppprelims% - \finalMaketitle\printFirstPageNotes - \fi - \gdef\thefootnote{\arabic{footnote}}}% - \fi - \fi - \fi -\fi - -\let\@suppmyfooter\@empty -\let\@suppmyfooteralign\@empty -\def\@suppmyfooteralignleft{L} -\def\@suppmyfooteralignright{R} -\def\@suppmyfooteraligncenter{C} - -\def\myfooter[#1]#2 %*% - {\gdef\@suppmyfooteralign{#1} - \gdef\@suppmyfooter{#2}} - -\def\myfooterfont#1{\gdef\@myfooterfont{#1}} -\myfooterfont{\footnotesize\itshape} -\def\ps@pprintTitle{% - \let\@oddhead\@empty - \let\@evenhead\@empty - \def\@oddfoot{\footnotesize\itshape - \ifx\@journal\@empty - \else\@journal\fi\hfill}% - \let\@evenfoot\@oddfoot} - -\def\@seccntDot{.} -\def\@seccntformat#1{\csname the#1\endcsname\@seccntDot\hskip 0.5em} - -\renewcommand\section{\@startsection {section}{1}{\z@}% - {18\p@ \@plus 6\p@ \@minus 3\p@}% - {9\p@ \@plus 6\p@ \@minus 3\p@}% - {\normalsize\bfseries\boldmath}} -\renewcommand\subsection{\@startsection{subsection}{2}{\z@}% - {12\p@ \@plus 6\p@ \@minus 3\p@}% - {3\p@ \@plus 6\p@ \@minus 3\p@}% - {\normalfont\normalsize\itshape}} -\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% - {12\p@ \@plus 6\p@ \@minus 3\p@}% - {\p@}% - {\normalfont\normalsize\itshape}} - -\def\paragraph{\secdef{\els@aparagraph}{\els@bparagraph}} -\def\els@aparagraph[#1]#2{\elsparagraph[#1]{#2.}} -\def\els@bparagraph#1{\elsparagraph*{#1.}} - -\newcommand\elsparagraph{\@startsection{paragraph}{4}{0\z@}% - {10\p@ \@plus 6\p@ \@minus 3\p@}% - {-6\p@}% - {\normalfont\itshape}} -\newdimen\leftMargin -\leftMargin=2em -\newtoks\@enLab %\newtoks\@enfont -\def\@enQmark{?} -\def\@enLabel#1#2{% - \edef\@enThe{\noexpand#1{\@enumctr}}% - \@enLab\expandafter{\the\@enLab\csname the\@enumctr\endcsname}% - \@enloop} -\def\@enSpace{\afterassignment\@enSp@ce\let\@tempa= } -\def\@enSp@ce{\@enLab\expandafter{\the\@enLab\space}\@enloop} -\def\@enGroup#1{\@enLab\expandafter{\the\@enLab{#1}}\@enloop} -\def\@enOther#1{\@enLab\expandafter{\the\@enLab#1}\@enloop} -\def\@enloop{\futurelet\@entemp\@enloop@} -\def\@enloop@{% - \ifx A\@entemp \def\@tempa{\@enLabel\Alph }\else - \ifx a\@entemp \def\@tempa{\@enLabel\alph }\else - \ifx i\@entemp \def\@tempa{\@enLabel\roman }\else - \ifx I\@entemp \def\@tempa{\@enLabel\Roman }\else - \ifx 1\@entemp \def\@tempa{\@enLabel\arabic}\else - \ifx \@sptoken\@entemp \let\@tempa\@enSpace \else - \ifx \bgroup\@entemp \let\@tempa\@enGroup \else - \ifx \@enum@\@entemp \let\@tempa\@gobble \else - \let\@tempa\@enOther - \fi\fi\fi\fi\fi\fi\fi\fi - \@tempa} -\newlength{\@sep} \newlength{\@@sep} -\setlength{\@sep}{.5\baselineskip plus.2\baselineskip - minus.2\baselineskip} -\setlength{\@@sep}{.1\baselineskip plus.01\baselineskip - minus.05\baselineskip} -\providecommand{\sfbc}{\rmfamily\upshape} -\providecommand{\sfn}{\rmfamily\upshape} -\def\@enfont{\ifnum \@enumdepth >1\let\@nxt\sfn \else\let\@nxt\sfbc \fi\@nxt} -\def\enumerate{% - \ifnum \@enumdepth >3 \@toodeep\else - \advance\@enumdepth \@ne - \edef\@enumctr{enum\romannumeral\the\@enumdepth}\fi - \@ifnextchar[{\@@enum@}{\@enum@}} -\def\@@enum@[#1]{% - \@enLab{}\let\@enThe\@enQmark - \@enloop#1\@enum@ - \ifx\@enThe\@enQmark\@warning{The counter will not be printed.% - ^^J\space\@spaces\@spaces\@spaces The label is: \the\@enLab}\fi - \expandafter\edef\csname label\@enumctr\endcsname{\the\@enLab}% - \expandafter\let\csname the\@enumctr\endcsname\@enThe - \csname c@\@enumctr\endcsname7 - \expandafter\settowidth - \csname leftmargin\romannumeral\@enumdepth\endcsname - {\the\@enLab\hskip\labelsep}% - \@enum@} -\def\@enum@{\list{{\@enfont\csname label\@enumctr\endcsname}}% - {\usecounter{\@enumctr}\def\makelabel##1{\hss\llap{##1}}% - \ifnum \@enumdepth>1\setlength{\topsep}{\@@sep}\else - \setlength{\topsep}{\@sep}\fi - \ifnum \@enumdepth>1\setlength{\itemsep}{0pt plus1pt minus1pt}% - \else \setlength{\itemsep}{\@@sep}\fi - %\setlength\leftmargin{\leftMargin}%%%{1.8em} - \setlength{\parsep}{0pt plus1pt minus1pt}% - \setlength{\parskip}{0pt plus1pt minus1pt} - }} - -\def\endenumerate{\par\ifnum \@enumdepth >1\addvspace{\@@sep}\else - \addvspace{\@sep}\fi \endlist} - -\def\sitem{\@noitemargtrue\@item[\@itemlabel *]} - -\def\itemize{\@ifnextchar[{\@Itemize}{\@Itemize[]}} - -\def\@Itemize[#1]{\def\next{#1}% - \ifnum \@itemdepth >\thr@@\@toodeep\else - \advance\@itemdepth\@ne - \ifx\next\@empty\else\expandafter\def\csname - labelitem\romannumeral\the\@itemdepth\endcsname{#1}\fi% - \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}% - \expandafter\list\csname\@itemitem\endcsname - {\def\makelabel##1{\hss\llap{##1}}}% - \fi} -\def\newdefinition#1{% - \@ifnextchar[{\@odfn{#1}}{\@ndfn{#1}}}%] -\def\@ndfn#1#2{% - \@ifnextchar[{\@xndfn{#1}{#2}}{\@yndfn{#1}{#2}}} -\def\@xndfn#1#2[#3]{% - \expandafter\@ifdefinable\csname #1\endcsname - {\@definecounter{#1}\@newctr{#1}[#3]% - \expandafter\xdef\csname the#1\endcsname{% - \expandafter\noexpand\csname the#3\endcsname \@dfncountersep - \@dfncounter{#1}}% - \global\@namedef{#1}{\@dfn{#1}{#2}}% - \global\@namedef{end#1}{\@enddefinition}}} -\def\@yndfn#1#2{% - \expandafter\@ifdefinable\csname #1\endcsname - {\@definecounter{#1}% - \expandafter\xdef\csname the#1\endcsname{\@dfncounter{#1}}% - \global\@namedef{#1}{\@dfn{#1}{#2}}% - \global\@namedef{end#1}{\@enddefinition}}} -\def\@odfn#1[#2]#3{% - \@ifundefined{c@#2}{\@nocounterr{#2}}% - {\expandafter\@ifdefinable\csname #1\endcsname - {\global\@namedef{the#1}{\@nameuse{the#2}} - \global\@namedef{#1}{\@dfn{#2}{#3}}% - \global\@namedef{end#1}{\@enddefinition}}}} -\def\@dfn#1#2{% - \refstepcounter{#1}% - \@ifnextchar[{\@ydfn{#1}{#2}}{\@xdfn{#1}{#2}}} -\def\@xdfn#1#2{% - \@begindefinition{#2}{\csname the#1\endcsname}\ignorespaces} -\def\@ydfn#1#2[#3]{% - \@opargbegindefinition{#2}{\csname the#1\endcsname}{#3}\ignorespaces} -\def\@dfncounter#1{\noexpand\arabic{#1}} -\def\@dfncountersep{.} -\def\@begindefinition#1#2{\trivlist - \item[\hskip\labelsep{\bfseries #1\ #2.}]\upshape} -\def\@opargbegindefinition#1#2#3{\trivlist - \item[\hskip\labelsep{\bfseries #1\ #2\ (#3).}]\upshape} -\def\@enddefinition{\endtrivlist} - -\def\@begintheorem#1#2{\trivlist - \let\baselinestretch\@blstr - \item[\hskip \labelsep{\bfseries #1\ #2.}]\itshape} -\def\@opargbegintheorem#1#2#3{\trivlist - \let\baselinestretch\@blstr - \item[\hskip \labelsep{\bfseries #1\ #2\ (#3).}]\itshape} - -\def\newproof#1{% - \@ifnextchar[{\@oprf{#1}}{\@nprf{#1}}} -\def\@nprf#1#2{% - \@ifnextchar[{\@xnprf{#1}{#2}}{\@ynprf{#1}{#2}}} -\def\@xnprf#1#2[#3]{% - \expandafter\@ifdefinable\csname #1\endcsname - {\@definecounter{#1}\@newctr{#1}[#3]% - \expandafter\xdef\csname the#1\endcsname{% - \expandafter\noexpand\csname the#3\endcsname \@prfcountersep - \@prfcounter{#1}}% - \global\@namedef{#1}{\@prf{#1}{#2}}% - \global\@namedef{end#1}{\@endproof}}} -\def\@ynprf#1#2{% - \expandafter\@ifdefinable\csname #1\endcsname - {\@definecounter{#1}% - \expandafter\xdef\csname the#1\endcsname{\@prfcounter{#1}}% - \global\@namedef{#1}{\@prf{#1}{#2}}% - \global\@namedef{end#1}{\@endproof}}} -\def\@oprf#1[#2]#3{% - \@ifundefined{c@#2}{\@nocounterr{#2}}% - {\expandafter\@ifdefinable\csname #1\endcsname - {\global\@namedef{the#1}{\@nameuse{the#2}}% - \global\@namedef{#1}{\@prf{#2}{#3}}% - \global\@namedef{end#1}{\@endproof}}}} -\def\@prf#1#2{% - \refstepcounter{#1}% - \@ifnextchar[{\@yprf{#1}{#2}}{\@xprf{#1}{#2}}} -\def\@xprf#1#2{% - \@beginproof{#2}{\csname the#1\endcsname}\ignorespaces} -\def\@yprf#1#2[#3]{% - \@opargbeginproof{#2}{\csname the#1\endcsname}{#3}\ignorespaces} -\def\@prfcounter#1{\noexpand\arabic{#1}} -\def\@prfcountersep{.} -\def\@beginproof#1#2{\trivlist\let\baselinestretch\@blstr - \item[\hskip \labelsep{\scshape #1.}]\rmfamily} -\def\@opargbeginproof#1#2#3{\trivlist\let\baselinestretch\@blstr - \item[\hskip \labelsep{\scshape #1\ (#3).}]\rmfamily} -\def\@endproof{\endtrivlist} -\newcommand*{\qed}{\hbox{}\hfill$\Box$} - -\@ifundefined{@biboptions}{\xdef\@biboptions{numbers}}{} -\InputIfFileExists{\jobname.spl}{}{} -\ifnonatbib\relax\else - \RequirePackage[\@biboptions]{natbib} -\fi -\newwrite\splwrite -\immediate\openout\splwrite=\jobname.spl -\def\biboptions#1{\def\next{#1}\immediate\write\splwrite{% - \string\g@addto@macro\string\@biboptions{% - ,\expandafter\strip@prefix\meaning\next}}} - -\let\baselinestretch=\@blstr -\ifnum\jtype=1 - \RequirePackage{geometry} - \geometry{twoside, - paperwidth=210mm, - paperheight=297mm, - textheight=562pt, - textwidth=384pt, - centering, - headheight=50pt, - headsep=12pt, - footskip=12pt, - footnotesep=24pt plus 2pt minus 12pt, - } - \global\let\bibfont=\footnotesize - \global\bibsep=0pt - \if@twocolumn\global\@twocolumnfalse\fi -\else\ifnum\jtype=3 - \RequirePackage{geometry} - \geometry{twoside, - paperwidth=210mm, - paperheight=297mm, - textheight=622pt, - textwidth=468pt, - centering, - headheight=50pt, - headsep=12pt, - footskip=18pt, - footnotesep=24pt plus 2pt minus 12pt, - columnsep=2pc - } - \global\let\bibfont=\footnotesize - \global\bibsep=0pt - \if@twocolumn\input{fleqn.clo}\fi -\else\ifnum\jtype=5 - \RequirePackage{geometry} - \geometry{twoside, - paperwidth=210mm, - paperheight=297mm, - textheight=682pt, - textwidth=522pt, - centering, - headheight=50pt, - headsep=12pt, - footskip=18pt, - footnotesep=24pt plus 2pt minus 12pt, - columnsep=18pt - }% - \global\let\bibfont=\footnotesize - \global\bibsep=0pt - \input{fleqn.clo} - \global\@twocolumntrue -%% -%% End of option '5p' -%% -\fi\fi\fi -\def\journal#1{\gdef\@journal{#1}} - \let\@journal\@empty -\newenvironment{frontmatter}{}{\maketitle} - -\long\def\@makecaption#1#2{% - \vskip\abovecaptionskip\footnotesize - \sbox\@tempboxa{#1: #2}% - \ifdim \wd\@tempboxa >\hsize - #1: #2\par - \else - \global \@minipagefalse - \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% - \fi - \vskip\belowcaptionskip} - -\AtBeginDocument{\@ifpackageloaded{hyperref} - {\def\@linkcolor{blue} - \def\@anchorcolor{blue} - \def\@citecolor{blue} - \def\@filecolor{blue} - \def\@urlcolor{blue} - \def\@menucolor{blue} - \def\@pagecolor{blue} -\begingroup - \@makeother\`% - \@makeother\=% - \edef\x{% - \edef\noexpand\x{% - \endgroup - \noexpand\toks@{% - \catcode 96=\noexpand\the\catcode`\noexpand\`\relax - \catcode 61=\noexpand\the\catcode`\noexpand\=\relax - }% - }% - \noexpand\x - }% -\x -\@makeother\` -\@makeother\= -}{}} -%% -\def\appendixname{Appendix } -\renewcommand\appendix{\par - \setcounter{section}{0}% - \setcounter{subsection}{0}% - \setcounter{equation}{0} - \gdef\thefigure{\@Alph\c@section.\arabic{figure}}% - \gdef\thetable{\@Alph\c@section.\arabic{table}}% - \gdef\thesection{\appendixname~\@Alph\c@section}% - \@addtoreset{equation}{section}% - \gdef\theequation{\@Alph\c@section.\arabic{equation}}% - \addtocontents{toc}{\string\let\string\numberline\string\tmptocnumberline}{}{} -} - -%%%% \numberline width calculation for appendix. -\newdimen\appnamewidth -\def\tmptocnumberline#1{% - \setbox0=\hbox{\appendixname} - \appnamewidth=\wd0 - \addtolength\appnamewidth{2.5pc} - \hb@xt@\appnamewidth{#1\hfill} -} - -%% Added for work with amsrefs.sty - -\@ifpackageloaded{amsrefs}% - {} - {%\let\bibsection\relax% - \AtBeginDocument{\def\cites@b#1#2,#3{% - \begingroup[% - \toks@{\InnerCite{#2}#1}% - \ifx\@empty#3\@xp\@gobble\fi - \cites@c#3% -}}} -%% -%% Added for avoiding clash with cleveref.sty -\@ifpackageloaded{cleveref}% - {} - {\def\tnotetext[#1]#2{\g@addto@macro\@tnotes{% - \refstepcounter{tnote}% - \immediate\write\@auxout{\string\Newlabel{#1}{\thetnote}} - \def\thefootnote{\ifcase\c@tnote\or$\star$\or$\star\star$\fi}% - \footnotetext{#2}}} -%%% - \def\fntext[#1]#2{\g@addto@macro\@fnotes{% - \refstepcounter{fnote}% - \immediate\write\@auxout{\string\Newlabel{#1}{\thefnote}} - \def\thefootnote{\thefnote}% - \global\setcounter{footnote}{\c@fnote}% - \footnotetext{#2}}} -%%% - \def\cortext[#1]#2{\g@addto@macro\@cornotes{% - \refstepcounter{cnote}% - \immediate\write\@auxout{\string\Newlabel{#1}{\thecnote}} - \def\thefootnote{\ifcase\c@cnote\or$\ast$\or - $\ast\ast$\fi}% - \footnotetext{#2}}} -} - -\def\textmarker#1#2{\textcolor{#1}{#2}}%*% -\endinput -%% -%% End of file `supp.cls'. diff --git a/inst/tex/supp.tex b/inst/tex/supp.tex deleted file mode 100755 index 5ceb998..0000000 --- a/inst/tex/supp.tex +++ /dev/null @@ -1,432 +0,0 @@ -$-- Keeping in template layout for backward compatibility -\documentclass[$if(layout)$$layout$$else$$for(classoption)$$classoption$$sep$,$endfor$$endif$]{_extensions/inst/tex/supp} %review=doublespace preprint=single 5p=2 column -%%% Begin My package additions %%%%%%%%%%%%%%%%%%% -\usepackage[hyphens]{url} -$if(journal)$ -\journal{$journal$} % Sets Journal name -$endif$ -\usepackage{lineno} % add -$if(linenumbers)$ -\linenumbers % turns line numbering on -$endif$ -\usepackage{graphicx} -\usepackage{xstring} -\usepackage{xcolor} -%%%%%%%%%%%%%%%% end my additions to header -\usepackage[T1]{fontenc} -\usepackage{lmodern} -\usepackage{amssymb,amsmath} -\usepackage{ifxetex,ifluatex} -\usepackage{fixltx2e} % provides \textsubscript -% use upquote if available, for straight quotes in verbatim environments -\IfFileExists{upquote.sty}{\usepackage{upquote}}{} -\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex - \usepackage[utf8]{inputenc} - $if(euro)$ - \usepackage{eurosym} - $endif$ -\else % if luatex or xelatex - \usepackage{fontspec} - \ifxetex - \usepackage{xltxtra,xunicode} - \fi - \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} - \newcommand{\euro}{€} - $if(mainfont)$ - \setmainfont{$mainfont$} - $endif$ - $if(sansfont)$ - \setsansfont{$sansfont$} - $endif$ - $if(monofont)$ - \setmonofont{$monofont$} - $endif$ - $if(mathfont)$ - \setmathfont{$mathfont$} - $endif$ -\fi -% use microtype if available -\IfFileExists{microtype.sty}{\usepackage{microtype}}{} -$if(geometry)$ -\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} -$endif$ -$if(natbib)$ -\usepackage{natbib} -\setcitestyle{$natbiboptions$} -\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$} -$endif$ -$if(listings)$ -\usepackage{listings} -$endif$ -$if(lhs)$ -\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} -$endif$ -$if(verbatim-in-note)$ -\usepackage{fancyvrb} -$endif$ -$if(graphics)$ -\usepackage{graphicx} -$endif$ -\ifxetex - \usepackage[setpagesize=false, % page size defined by xetex - unicode=false, % unicode breaks when used with xetex - xetex]{hyperref} -\else - \usepackage[unicode=true]{hyperref} -\fi -\hypersetup{breaklinks=true, - bookmarks=true, - pdfauthor={$author-meta$}, - pdftitle={$title-meta$}, - colorlinks=$if(colorlinks)$true$else$false$endif$, - urlcolor=$if(urlcolor)$$urlcolor$$else$blue$endif$, - linkcolor=$if(linkcolor)$$linkcolor$$else$magenta$endif$, - pdfborder={0 0 0}} -\urlstyle{same} % don't use monospace font for urls -$if(links-as-notes)$ -% Make links footnotes instead of hotlinks: -\renewcommand{\href}[2]{#2\footnote{\url{#1}}} -$endif$ -$if(strikeout)$ -\usepackage[normalem]{ulem} -% avoid problems with \sout in headers with hyperref: -\pdfstringdefDisableCommands{\renewcommand{\sout}{}} -$endif$ -$if(numbersections)$ -\setcounter{secnumdepth}{5} -$else$ -\setcounter{secnumdepth}{0} -$endif$ -$if(verbatim-in-note)$ -\VerbatimFootnotes % allows verbatim text in footnotes -$endif$ -$if(lang)$ -\ifxetex - \usepackage{polyglossia} - \setmainlanguage{$mainlang$} -\else - \usepackage[$lang$]{babel} -\fi -$endif$ -% Pandoc toggle for numbering sections (defaults to be off) -$if(numbersections)$ -$else$ -\setcounter{secnumdepth}{0} -$endif$ -$if(highlighting-macros)$ -% Pandoc syntax highlighting -$highlighting-macros$ -$endif$ -% tightlist command for lists without linebreak -\providecommand{\tightlist}{% - \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} -$if(tables)$ -% From pandoc table feature -\usepackage{longtable,booktabs,array} -$if(multirow)$ -\usepackage{multirow} -$endif$ -\usepackage{calc} % for calculating minipage widths -% Correct order of tables after \paragraph or \subparagraph -\usepackage{etoolbox} -\makeatletter -\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{} -\makeatother -% Allow footnotes in longtable head/foot -\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} -\makesavenoteenv{longtable} -$endif$ -$if(csl-refs)$ -% Pandoc citation processing -\newlength{\cslhangindent} -\setlength{\cslhangindent}{1.5em} -\newlength{\csllabelwidth} -\setlength{\csllabelwidth}{3em} -\newlength{\cslentryspacingunit} % times entry-spacing -\setlength{\cslentryspacingunit}{\parskip} -% for Pandoc 2.8 to 2.10.1 -\newenvironment{cslreferences}% - {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}% - \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}% - {\par} -% For Pandoc 2.11+ -\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing -{% don't indent paragraphs - \setlength{\parindent}{0pt} - % turn on hanging indent if param 1 is 1 - \ifodd #1 - \let\oldpar\par - \def\par{\hangindent=\cslhangindent\oldpar} - \fi - % set entry spacing - \setlength{\parskip}{#2\cslentryspacingunit} - }% -{} -\usepackage{calc} -\newcommand{\CSLBlock}[1]{#1\hfill\break} -\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}} -\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break} -\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} -$endif$ -$for(header-includes)$ -$header-includes$ -$endfor$ - - -\usepackage{xifthen} -% set special color for EST -\ifthenelse{\equal{$journal$}{Environmental Science \& Technology}} -{\definecolor{seccol}{RGB}{56, 95, 66}} -{\definecolor{seccol}{RGB}{0, 0, 0}} - -$if(uppersections)$ -\usepackage{titlesec} -\titleformat{\section} -{\color{seccol}\large\bfseries\MakeUppercase}{\thesection}{1em}{} -$endif$ -$if(sectiononnewpage)$ -\AddToHook{cmd/section/before}{\clearpage} -$endif$ - -\usepackage{enumitem} -\usepackage{fontspec} -\usepackage{float} -\setmainfont{Helvetica} -\usepackage[normalem]{ulem} -\usepackage{hyperref} -\usepackage{nameref} %needed by zref-xr -\usepackage{zref-xr,zref-hyperref,zref-user} -\usepackage{xr-hyper} - -% force to use \zref -$if(msname)$ -\def\msname{$msname$} -\zexternaldocument*{\msname} -\renewcommand{\ref}{\zref} -$endif$ -$if(smname)$ -\def\smname{$smname$} -\zexternaldocument*{\smname} -$endif$ - -\zxrsetup{toltxlabel=true} -{\catcode`\#=12 \gdef\hashchar{#1}} -\makeatletter -\newcommand\hzref[1]{\edef\next{% - \noexpand\href{% - \zref@extractdefault{#1}{url}{}% - \zref@ifrefcontainsprop{#1}{anchor}{% - \hashchar\zref@extract{#1}{anchor}}{}}% - {\noexpand\zref{#1}}}\next} -\makeatother - - - -$if(revision)$ -% \usepackage{xcolor} -\usepackage{adjustbox} -\usepackage{mdframed} -\newmdenv[topline=false, - leftline=true, - bottomline=false, - rightline=false, - linewidth=3pt, - %backgroundcolor=lightgray, - linecolor=gray!30, - backgroundcolor=gray!5, - skipabove=\topsep, - skipbelow=\topsep, - leftmargin=0pt, - rightmargin=0pt, - innertopmargin=0pt, - innerbottommargin=0pt - ]{refquote} -\newmdenv[topline=false, - leftline=true, - bottomline=false, - rightline=false, - linewidth=3pt, - %backgroundcolor=lightgray, - backgroundcolor=red!3!white, - linecolor=red!30!white, - skipabove=\topsep, - skipbelow=\topsep, - leftmargin=0pt, - rightmargin=0pt, - innertopmargin=10pt, - innerbottommargin=10pt - ]{question} -\setenumerate{labelsep=*, leftmargin=1.0pc} -% setup hyperlink for page and line number -\def\msname{$if(msname)$$msname$$else$MS$endif$} -\def\smname{$if(smname)$$smname$$else$SM$endif$} -\setenumerate{labelsep=*, leftmargin=1.0pc} -%\zexternaldocument*{ManuscriptNew\veraa} -\zexternaldocument*{\msname} -\zexternaldocument*{\smname} -\newcommand{\hlabel}[1]{\label{#1}\hypertarget{#1}{ - \linelabel{line:#1}}} -%\externaldocument[si-]{\smname\veraa}[\smname\veraa.pdf] -\makeatletter - \newcommand{\clab}[2]{% - \protected@write\@auxout{\let\clab\@secondoftwo}{ - \string\newlabel{r:#1}{{#2}{}}}% - \hlabel{#1}#2\hlabel{#1end}} -\makeatother -\newcommand{\zhypera}[1]{\href[pdfnewwindow]{\msname.pdf\##1}{\\[1ex]\textbf{Page \zpageref{#1}, Line -\zref{line:#1}--\zref{line:#1end}:}\\}} -\newcommand{\cref}[1]{\begin{refquote}\zhypera{#1}{\zref{r:#1}}\\[-0.5ex]\end{refquote}} -% \newenvironment{ra}[1][\unskip]{\par \noindent \\[-1ex] \textbf{Response/Action:}\par\bf}{\ \\} -\renewenvironment{quote}{\begin{question}}{\end{question}} -% \renewenvironment{verbatim}{\begin{ra}}{\end{ra}} -$endif$ - - -% def default corresponding authors and equal contributing authors variables -\def\hascorr{0} -\def\haseqc{0} -% check if corresponding author(s) and equal contributing authors are available -$for(author)$$if(author.correspondence)$\def\hascorr{1}$endif$$if(author.equalcontribution)$\def\haseqc{1}$endif$ $endfor$ - -\newcommand{\getcorrauthinfo}{ - \subsection{Corresponding Author(s)} - \def\a{} \def\b{} \def\c{} - \hspace{-2.2em} - $for(author)$ - $if(author.correspondence)$ - \textbf{$author.name$:} - \vspace{-1em} - \begin{enumerate}[labelindent=-12pt,label=\arabic*.,itemindent=0em,leftmargin=!, itemsep = -10pt] - $for(author.institute)$ \def\a{$author.institute$} - $for(institute)$ \def\b{$institute.id$} \def\c{$institute.name$} - \ifx \a\b \item \c; \fi - $endfor$ - $endfor$ - $if(author.email)$\item email: $author.email$;$endif$ - $if(author.orcid)$\item orcid: $author.orcid$;$endif$ - $if(author.tel)$\item Tel: $author.tel$;$endif$ - $if(author.fax)$\item Fax: $author.fax$$endif$ - \end{enumerate} - $endif$ - $endfor$ -} - -\newcommand{\getotherauthinfo}{ - \subsection{Author(s)} - \def\a{} \def\b{} \def\c{} - \hspace{-2.2em} - $for(author)$ - $if(author.correspondence)$ - $else$ - \textbf{$author.name$:} - \vspace{-1em} - \begin{enumerate}[labelindent=-12pt,label=\arabic*.,itemindent=0em,leftmargin=!, itemsep = -10pt] - $for(author.institute)$ \def\a{$author.institute$} $for(institute)$ \def\b{$institute.id$} \def\c{$institute.name$} - \ifx \a\b \item \c; \fi - $endfor$ - $endfor$ - $if(author.email)$\item email: $author.email$;$endif$ - $if(author.orcid)$\item orcid: $author.orcid$;$endif$ - $if(author.tel)$\item Tel: $author.tel$;$endif$ - $if(author.fax)$\item Fax: $author.fax$$endif$ - \end{enumerate} - $endif$ - $endfor$ -} - -$preamble$ - -% remove the two line around Abstract -$if(abstract)$ -$else$ -\makeatletter -\renewcommand{\MaketitleBox}{% - \resetTitleCounters - \def\baselinestretch{1}% - \begin{center} - \def\baselinestretch{1}% - \large \@title \par - \vskip 18pt - \normalsize\elsauthors \par - \vskip 30pt - \footnotesize \itshape \elsaddress \par - \end{center} - \vskip 12pt -} -\makeatother -$endif$ - -\begin{document} -$for(include-before)$ -$include-before$ -$endfor$ -\begin{frontmatter} - - \title{$title$$if(subtitle)$\\\Large{$subtitle$}$endif$} - $for(author)$\author$if(authorwithinstitute)$[$for(author.institute)$$author.institute$$sep$,$endfor$]$endif${$author.name$$if(author.correspondence)$\corref{corrauth}$endif$$if(author.equalcontribution)$\corref{eqcon}$endif$ $if(author.footnote)$\fnref{$author.footnote$}$endif$}$if(author.email)$\ead{$author.email$}$endif$$endfor$ - $if(authorwithinstitute)$ $for(institute)$ \address[$institute.id$]{$institute.name$} $endfor$ $endif$ - % generate corresponding authors. - % \StrBehind is from xstring package - \ifnum \hascorr=1 - \def\corrauths{ - $for(author)$$if(author.correspondence)$and $author.name$ ($author.email$) $endif$$endfor$} - \cortext[corrauth]{Corresponding to \StrBehind*{\corrauths}{and }.} - \fi - - % generate equal contributing authors. - \ifnum \haseqc=1 - \def\eqa{$for(author)$$if(author.equalcontribution)$and $author.name$ $endif$$endfor$} - \cortext[eqcon]{\StrBehind*{\eqa}{and } are equally contributed to this work.} - \fi - - $for(footnote)$ - \fntext[$footnote.id$]{$footnote.text$} - $endfor$ - - $if(abstract)$ - \begin{abstract} - $abstract$ - \end{abstract} - $if(keywords)$ - \begin{keyword} - $for(keywords/allbutlast)$$keywords$ \sep $endfor$ - $for(keywords/last)$$keywords$$endfor$ - \end{keyword} - $endif$ - $endif$ -\end{frontmatter} - -$body$ - -$if(authorwithinstitute)$ -$else$ -\section{Author Information} - -\getcorrauthinfo{} - -\getotherauthinfo{} - -\section{Notes} - -The authors declare no competing financial interest. - -$endif$ - - -$if(natbib)$ -$if(bibliography)$ -$if(biblio-title)$ -$if(book-class)$ -\renewcommand\bibname{$biblio-title$} -$else$ -\renewcommand\refname{$biblio-title$} -$endif$ -$endif$ -\bibliography{$bibliography$} -$endif$ -$endif$ - -$for(include-after)$ -$include-after$ -$endfor$ -\end{document} diff --git a/texnative/.gitignore b/texnative/.gitignore deleted file mode 100644 index fcbaabe..0000000 --- a/texnative/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -bgdark.jpg -bgwhite.jpg -cover-ill.png diff --git a/texnative/LICENSE b/texnative/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/texnative/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/texnative/README.md b/texnative/README.md deleted file mode 100644 index 9b0c078..0000000 --- a/texnative/README.md +++ /dev/null @@ -1,95 +0,0 @@ -# TexNative Format - -Modern customizable Business Document Format for creating clean Reports, -Quotations, Letters etc... - -## Installing - -```bash -quarto use template wearetechnative/texnative -``` - -This will install the extension and create an example qmd file that you can use -as a starting place for your article. - -## Features - -- modern business document -- white and dark background -- custom letterhead en frontpage images -- filter to create modern looking tables - -![](Screenshot-TexNative.png) - -![](Screenshot-white.png) - -## Using - -Include this in your front matter. - -```yaml -format: texnative-pdf -filters: - - texnative -``` - -Have a look at the `temlate.qmd`. This generates [this pdf](template.pdf). - -## Optional Frontmatter - -When set, these values are used in the cover page. - -```yaml -subtitle: Agreement for a typical business case -author: Jane Dean -date: last-modified -type: Report -document_version: 1 -document_number: ABC013 -``` - -## Format Options - -```yaml -# DOCUMENT DEFAULT CONFIGURATION -toc: true # show table of contents -toc-title: Contents # title of table of contents -cover_page: true # generate cover page -letterhead: true # use a letterhead background -dark_background: true # use the dark bg or letterhead with white text -page_numbers: true # show page numbers -paragraph_numbers: true # show paragraph numbers before headers -papersize: a4 -letterhead_img: bgwhite.jpg # path to background image -letterhead_img_darkbg: bgdark.jpg # path to background image for dark background -cover_illustration_img: cover-ill.png # path to cover page illustration image -cover_illustration_img_darkbg: cover-ill.png # path to cover page illustration image for dark background -disable_justify: false # true: justify left and right, false: only justify left; -``` - -## Custom letterhead - -Change `letterhead_img`, `letterhead_img_darkbg`, `cover_illustration_img` and -`cover_illustration_img_darkbg` with images which fit your Corporate Identity. -At TechNative we use an extra internal extension which provides all assets -with our corporate identity. - -Our `_quarto.yml` looks like this: - -```yaml -filters: - - quarto - - texnative -dark_background: true -disable_justify: true -format: texnative-pdf -toc-depth: 4 -letterhead_img: _extensions/technative-internal/quarto-technative-branding/letterhead-technative.png -letterhead_img_darkbg: _extensions/technative-internal/letterhead-technative-dia.png -cover_illustration_img: _extensions/technative-internal/quarto-technative-branding/unleash_white.jpg -cover_illustration_img_darkbg: _extensions/technative-internal/quarto-technative-branding/unleash.jpg -``` - -## Credits - -Illustration is created by Illustrations.co from the 'Life' collection. diff --git a/texnative/_extensions/texnative/_extension.yml b/texnative/_extensions/texnative/_extension.yml deleted file mode 100644 index b4a3a37..0000000 --- a/texnative/_extensions/texnative/_extension.yml +++ /dev/null @@ -1,50 +0,0 @@ -title: TexNative -author: Pim Snel -version: 1.0.0 -contributes: - - filters: - - texnative.lua - - formats: - pdf: - # DOCUMENT DEFAULT CONFIGURATION - toc: true # show table of contents - toc-title: Contents # title of table of contents - cover_page: true # generate cover page - letterhead: true # use a letterhead background - dark_background: true # use the dark bg or letterhead with white text - - urlcolor: magenta - linkcolor: magenta - colorlinks: true - - page_numbers: true # show page numbers - paragraph_numbers: true # show paragraph numbers before headers - papersize: a4 - disable_justify: false # true: justify left and right, false: only justify left; - geometry: - - top=60mm - letterhead_img: bgwhite.jpg # path to background image - letterhead_img_darkbg: bgdark.jpg # path to background image for dark background - cover_illustration_img: cover-ill.png # path to cover page illustration image - cover_illustration_img_darkbg: cover-ill.png # path to cover page illustration image for dark background - - # DON'T CHANGE THESE - classoption: table - format-resources: - - "images/bgdark.jpg" - - "images/bgwhite.jpg" - - "images/cover-ill.png" - template-partials: - - "partials/document-colors.tex" - - "partials/document-background.tex" - - "partials/document-header-footer.tex" - - "partials/document-text-style.tex" - - "partials/page-cover.tex" - - "partials/page-title.tex" - - "partials/page-cover.tex" - - "partials/page-title.tex" - - "before-body.tex" - - "pandoc.tex" - - "toc.tex" diff --git a/texnative/_extensions/texnative/before-body.tex b/texnative/_extensions/texnative/before-body.tex deleted file mode 100644 index 8fdbd55..0000000 --- a/texnative/_extensions/texnative/before-body.tex +++ /dev/null @@ -1,19 +0,0 @@ -$if(has-frontmatter)$ - \frontmatter -$endif$ - -$if(title)$ - - $if(beamer)$ - \frame{\titlepage} - $else$ - $page-title.tex()$ - $endif$ - - $if(abstract)$ - \begin{abstract} - $abstract$ - \end{abstract} - $endif$ - -$endif$ diff --git a/texnative/_extensions/texnative/header.tex b/texnative/_extensions/texnative/header.tex deleted file mode 100644 index cc1050f..0000000 --- a/texnative/_extensions/texnative/header.tex +++ /dev/null @@ -1 +0,0 @@ -% TODO: Add custom LaTeX header directives here \ No newline at end of file diff --git a/texnative/_extensions/texnative/images/bgwhite2.jpg b/texnative/_extensions/texnative/images/bgwhite2.jpg deleted file mode 100644 index a474953..0000000 Binary files a/texnative/_extensions/texnative/images/bgwhite2.jpg and /dev/null differ diff --git a/texnative/_extensions/texnative/images/cover-i.png b/texnative/_extensions/texnative/images/cover-i.png deleted file mode 100644 index 8749284..0000000 Binary files a/texnative/_extensions/texnative/images/cover-i.png and /dev/null differ diff --git a/texnative/_extensions/texnative/images/texnative-artwork.pdf b/texnative/_extensions/texnative/images/texnative-artwork.pdf deleted file mode 100644 index 83b7732..0000000 Binary files a/texnative/_extensions/texnative/images/texnative-artwork.pdf and /dev/null differ diff --git a/texnative/_extensions/texnative/images/texnative-artwork.png b/texnative/_extensions/texnative/images/texnative-artwork.png deleted file mode 100644 index 326d9d0..0000000 Binary files a/texnative/_extensions/texnative/images/texnative-artwork.png and /dev/null differ diff --git a/texnative/_extensions/texnative/images/texnative-artwork.svg b/texnative/_extensions/texnative/images/texnative-artwork.svg deleted file mode 100644 index e76fae2..0000000 --- a/texnative/_extensions/texnative/images/texnative-artwork.svg +++ /dev/null @@ -1,388 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/texnative/_extensions/texnative/pandoc.tex b/texnative/_extensions/texnative/pandoc.tex deleted file mode 100644 index 2ee33a0..0000000 --- a/texnative/_extensions/texnative/pandoc.tex +++ /dev/null @@ -1,38 +0,0 @@ -\usepackage{setspace} -\usepackage[nodayofweek]{datetime} -\usepackage{multicol} -% \usepackage{fontawesome} -\usepackage{textpos} -\usepackage{makecell} -% \usepackage{typearea} % This package causes many margin problems. Do we need this?!? -\usepackage{longtable} -\usepackage{lipsum} -\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} - -$if(disable_justify)$ -\usepackage[document]{ragged2e} -$endif$ - - -$document-colors.tex()$ -$document-background.tex()$ -$document-header-footer.tex()$ -$document-text-style.tex()$ - -$if(paragraph_numbers)$ - \renewcommand{\theparagraph}{\S\arabic{paragraph}} - \setcounter{secnumdepth}{4} -$endif$ - -$if(highlighting-macros)$ - $highlighting-macros$ -$endif$ - -$tightlist.tex()$ -$tables.tex()$ -$graphics.tex()$ -$citations.tex()$ - -$for(header-includes)$ - $header-includes$ -$endfor$ diff --git a/texnative/_extensions/texnative/partials/document-background.tex b/texnative/_extensions/texnative/partials/document-background.tex deleted file mode 100644 index 163010e..0000000 --- a/texnative/_extensions/texnative/partials/document-background.tex +++ /dev/null @@ -1,31 +0,0 @@ -$if(dark_background)$ - \color{white} - \pagecolor{backgroundcolor} - - $if(letterhead)$ - \usepackage{background} - \backgroundsetup{ - scale=1, - angle=0, - opacity=1.0, - position=current page.center, - contents={\includegraphics[width=\paperwidth,height=\paperheight]{$letterhead_img_darkbg$}} - } - $endif$ - -$else$ - - $if(letterhead)$ - \usepackage{background} - \backgroundsetup{ - scale=1, - angle=0, - opacity=1.0, - position=current page.center, - contents={\includegraphics[width=\paperwidth,height=\paperheight]{$letterhead_img$}} - } - $endif$ - -$endif$ - - diff --git a/texnative/_extensions/texnative/partials/document-colors.tex b/texnative/_extensions/texnative/partials/document-colors.tex deleted file mode 100644 index f31e3cf..0000000 --- a/texnative/_extensions/texnative/partials/document-colors.tex +++ /dev/null @@ -1,10 +0,0 @@ -$if(dark_background)$ - \definecolor{backgroundcolor}{HTML}{112f41} - \definecolor{tableheadercolor}{RGB}{13,35,48} -$else$ - \definecolor{backgroundcolor}{HTML}{ffffff} - \definecolor{tableheadercolor}{RGB}{221,221,221} -$endif$ - - - diff --git a/texnative/_extensions/texnative/partials/document-header-footer.tex b/texnative/_extensions/texnative/partials/document-header-footer.tex deleted file mode 100644 index 997a211..0000000 --- a/texnative/_extensions/texnative/partials/document-header-footer.tex +++ /dev/null @@ -1,22 +0,0 @@ -\usepackage{fancyhdr} -\usepackage{lastpage} -\pagestyle{fancy} - -\renewcommand{\headrulewidth}{0pt} % NO LINE AT TOP OF PAGE - -\rhead[]{} -\chead[]{} -\lhead[]{} -\rfoot[]{} -\cfoot[]{} -\lfoot[]{} - -$if(page_numbers)$ - $if(dark_background)$ - \lhead{\color{gray!60}Page \thepage\ of \pageref*{LastPage}} - $else$ - \lhead{\color{gray}Page \thepage\ of \pageref*{LastPage}} - $endif$ -$endif$ - -\renewcommand{\footrulewidth}{0pt} % NO LINE AT TOP OF PAGE diff --git a/texnative/_extensions/texnative/partials/document-text-style.tex b/texnative/_extensions/texnative/partials/document-text-style.tex deleted file mode 100644 index e5acc3d..0000000 --- a/texnative/_extensions/texnative/partials/document-text-style.tex +++ /dev/null @@ -1,4 +0,0 @@ -\usepackage{fontspec} -\setmainfont{Source Sans 3} -\linespread{1.2} % SPACE BETWEEN LINES - diff --git a/texnative/_extensions/texnative/partials/page-cover.tex b/texnative/_extensions/texnative/partials/page-cover.tex deleted file mode 100644 index 99dcf4a..0000000 --- a/texnative/_extensions/texnative/partials/page-cover.tex +++ /dev/null @@ -1,64 +0,0 @@ -\begin{titlepage} - -% \vspace*{0.12\textheight} -% \vspace*{-3cm} -\begin{spacing}{2.0} - -\noindent -\\ -{\huge {\MakeUppercase{$title$}}}\\ -{\Large {$subtitle$}}\\ -\end{spacing} - -\newdateformat{mydate}{\twodigit{\THEDAY}{ }\shortmonthname[\THEMONTH], \THEYEAR} - -\setlength\extrarowheight{3pt} -\begin{flushleft} -\noindent\begin{tabular}{@{}l l } - -$if(client)$ -{\bf Client:} & $client.name$ \\ -$endif$ - -$if(contact_person)$ - {\bf Contact Person:} & $contact_person$ \\ -$endif$ - -$if(author)$ -{\bf By: } & $author$ \\ -$endif$ - -$if(date)$ -{\bf Date: } & $date$ \\ -$endif$ - -$if(tex_last_changed)$ -{\bf Last change:} & \today \\ -$endif$ - -$if(type)$ - $if(document_number)$ - {\bf $type$:} & $document_number$ \\ - $endif$ -$endif$ - -$if(document_version)$ -{\bf Version:} & $document_version$ \\ -$endif$ - -\end{tabular} -\end{flushleft} - -\vspace*{3cm} - -\begin{center} - $if(dark_background)$ - \includegraphics[width=0.8\columnwidth]{$cover_illustration_img_darkbg$} - $else$ - \includegraphics[width=0.8\columnwidth]{$cover_illustration_img$} - $endif$ -\end{center} - - -\end{titlepage} - diff --git a/texnative/_extensions/texnative/partials/page-title.tex b/texnative/_extensions/texnative/partials/page-title.tex deleted file mode 100644 index 6210f0f..0000000 --- a/texnative/_extensions/texnative/partials/page-title.tex +++ /dev/null @@ -1,27 +0,0 @@ -% COVER - -\hyphenpenalty=10000\exhyphenpenalty=10000 -%\sloppy -%\raggedright - -$if(cover_page)$ - $page-cover.tex()$ -$else$ - -$if(no_title)$ - -$else$ -\begin{spacing}{2.0} -\noindent -{\huge {\MakeUppercase{$title$}}}\\ -{\Large {$subtitle$}} -\end{spacing} - -$endif$ %EIND IF NOTITLE - -$endif$ %EIND IF COVER - -\hyphenpenalty=3000\exhyphenpenalty=3000 -%\fussy -%\maketitle - diff --git a/texnative/_extensions/texnative/texnative.lua b/texnative/_extensions/texnative/texnative.lua deleted file mode 100644 index 0cf75a2..0000000 --- a/texnative/_extensions/texnative/texnative.lua +++ /dev/null @@ -1,119 +0,0 @@ - --- FILTERS/DATE-FORMAT.LUA -function Meta(meta) - if meta.date then - local format = "(%d+)-(%d+)-(%d+)" - local y, m, d = pandoc.utils.stringify(meta.date):match(format) - local date = os.time({ - year = y, - month = m, - day = d, - }) - local date_string = os.date("%d %b %Y", date) - - meta.date = pandoc.Str(date_string) - return meta - end -end - - -local function get_rows_data(rows, cell_color, strong) - - local latex_cell_color = '' - local strong_begin = '' - local strong_end = '' - - if(cell_color ~='') then - latex_cell_color = '\\cellcolor{'..cell_color..'}' - end - if(strong) then - strong_begin = "\\bf{" - strong_end = "}" - end - local data = '' - for _, row in ipairs(rows) do - - for k, cell in ipairs(row.cells) do - data = data .. latex_cell_color .. strong_begin .. pandoc.utils.stringify(cell.contents) .. strong_end - if (k == #row.cells) then - data = data .. ' \\\\ \n' - else - data = data .. ' & ' - end - - -- CHANGE % INTO \% HACK - data = data:gsub('([^\\])%%', '%1\\%%') - data = data:gsub('^%%', '\\%%') - end - data = data ..'\n \\hline \n' - - end - return data -end - - -local function generate_tabularray(tbl) - -local caption = pandoc.utils.stringify(tbl.caption.long) -local caption_content = caption:match("{(.-)}") -if caption_content then - caption = caption:gsub("{.-}", "") -end - - -- COLSPECS - local col_specs = tbl.colspecs - local col_specs_latex = '| ' - - for i, col_spec in ipairs(col_specs) do - local align = col_spec[1] - local width = col_spec[2] - - if align == 'AlignLeft' then - col_specs_latex = col_specs_latex .. 'l |' - elseif align == 'AlignRight' then - col_specs_latex = col_specs_latex .. 'r |' - else - col_specs_latex = col_specs_latex .. 'c |' - end - - end - - -- If there's caption data, we override previous data - if caption_content then - - local dict = {} - for key, value in string.gmatch(caption_content, '(%w+)=([^%s]+)') do - dict[key] = value - end - - end - - local result = pandoc.List:new{pandoc.RawBlock("latex", '\\renewcommand{\\arraystretch}{1.5}\n\\begin{tabular}{ '.. col_specs_latex .. ' } \n \\hline')} - - -- HEADER - local header_latex = get_rows_data(tbl.head.rows, 'tableheadercolor', false) - result = result .. pandoc.List:new{pandoc.RawBlock("latex", header_latex)} - - -- ROWS - local rows_latex = '' - for _, tablebody in ipairs(tbl.bodies) do - rows_latex = get_rows_data(tablebody.body, '', false) - end - result = result .. pandoc.List:new{pandoc.RawBlock("latex", rows_latex)} - - -- FOOTER - local footer_latex = get_rows_data(tbl.foot.rows, '', false) - result = result .. pandoc.List:new{pandoc.RawBlock("latex", footer_latex)} - - result = result .. pandoc.List:new{pandoc.RawBlock("latex", '\\end{tabular}')} - - return result -end - -if FORMAT:match 'latex' then - - function Table (tbl) - return generate_tabularray(tbl) - end - -end diff --git a/texnative/_extensions/texnative/toc.tex b/texnative/_extensions/texnative/toc.tex deleted file mode 100644 index a5434ec..0000000 --- a/texnative/_extensions/texnative/toc.tex +++ /dev/null @@ -1,29 +0,0 @@ -$if(toc)$ -$if(toc-title)$ -\renewcommand*\contentsname{$toc-title$} -$endif$ -$if(beamer)$ -\begin{frame}[allowframebreaks] -$if(toc-title)$ - \frametitle{$toc-title$} -$endif$ - \tableofcontents[hideallsubsections] -\end{frame} -$else$ -{ -$if(colorlinks)$ -\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$} -$endif$ -\setcounter{tocdepth}{$toc-depth$} -\tableofcontents -} -$endif$ -$endif$ -$if(lof)$ -\listoffigures -$endif$ -$if(lot)$ -\listoftables -$endif$ - -\newpage diff --git a/texnative/bgwhite2.jpg b/texnative/bgwhite2.jpg deleted file mode 100644 index a474953..0000000 Binary files a/texnative/bgwhite2.jpg and /dev/null differ diff --git a/texnative/bgwhite2.pdf b/texnative/bgwhite2.pdf deleted file mode 100644 index 3f844e0..0000000 Binary files a/texnative/bgwhite2.pdf and /dev/null differ diff --git a/texnative/cover-i.png b/texnative/cover-i.png deleted file mode 100644 index 8749284..0000000 Binary files a/texnative/cover-i.png and /dev/null differ diff --git a/texnative/template.pdf b/texnative/template.pdf deleted file mode 100644 index 04d1a2c..0000000 Binary files a/texnative/template.pdf and /dev/null differ diff --git a/texnative/template.qmd b/texnative/template.qmd deleted file mode 100644 index 883cc46..0000000 --- a/texnative/template.qmd +++ /dev/null @@ -1,97 +0,0 @@ ---- -title: "Some Agreement about stuff" -subtitle: Agreement for a typical business case -author: Jane Dean -date: last-modified - -client: - name: Cool Customer Limited - short_name: Cool Customer - contact_person: Joe Johnson - address: Somewhereroad 1, Marslands - -format: texnative-pdf -type: Report -document_version: 1 -document_number: ABC013 -filters: - - texnative - -# DOCUMENT DEFAULT CONFIGURATION -toc: true # show table of contents -toc-title: Contents # title of table of contents -cover_page: true # generate cover page -letterhead: true # use a letterhead background -dark_background: false # use the dark bg or letterhead with white text -page_numbers: true # show page numbers -paragraph_numbers: true # show paragraph numbers before headers -papersize: a4 -letterhead_img: bgwhite.jpg # path to background image -letterhead_img_darkbg: bgdark.jpg # path to background image for dark background -cover_illustration_img: cover-i.png # path to cover page illustration image -cover_illustration_img_darkbg: cover-ill.png # path to cover page illustration image for dark background - ---- - -# Parties - -My Company Limited, based at Dataroad 14, 33333 Livington, The World, -represented by Jane Dean, referred to in this document as "My Company". - -And, - -{{< meta client.name >}}, represented by {{< meta client.contact_person >}} established -and office-accommodated at: {{< meta client.address >}}, referred to in -this document as "{{< meta client.short_name>}}". - -Hereafter jointly referred to as: “We”, both agree they have entered into a -managed services agreement to which the following conditions apply: - - -# Solid Table - -| Head 1 | Head 2 | Head 3 | -|:-------|:-------:|-------:| -| Alpha | Beta | Gamma | -| Delta | Epsilon | Zeta | -| Eta | Theta | Iota | - -# Agreement - -## Chapter - -1. Some tasks - -2. More tasks we have agreed on. - -## Chapter - -Yet more tasks - -\newpage - -# Confirmation - -As we agreed,\ - -\mbox{~~~~~~~~~~~~~~~}{Starting date agreement:}\ -\ -\mbox{~~~~~~~~~~~~~~~}{ {{< meta date >}} }\ -\mbox{~~~~~~~~~~~~~~~}{ \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ } \ - -\ - -\ - -Representing {{< meta client.name >}}Namens de opdrachtgever:\ - -\mbox{~~~~~~~~~~~~~~~}{Date}\ -\ - -\mbox{~~~~~~~~~~~~~~~}{ \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\mbox{~~~~~}\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ } \ -\ - -\mbox{~~~~~~~~~~~~~~~}{Name and signature:}\ -\ - -\mbox{~~~~~~~~~~~~~~~}{ \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\mbox{~~~~~}\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ } \ diff --git a/texnative/texnative-artwork.pdf b/texnative/texnative-artwork.pdf deleted file mode 100644 index 83b7732..0000000 Binary files a/texnative/texnative-artwork.pdf and /dev/null differ diff --git a/texnative/texnative-artwork.png b/texnative/texnative-artwork.png deleted file mode 100644 index 326d9d0..0000000 Binary files a/texnative/texnative-artwork.png and /dev/null differ diff --git a/texnative/texnative-artwork.svg b/texnative/texnative-artwork.svg deleted file mode 100644 index e76fae2..0000000 --- a/texnative/texnative-artwork.svg +++ /dev/null @@ -1,388 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -