diff options
Diffstat (limited to 'macros')
723 files changed, 2873 insertions, 26077 deletions
diff --git a/macros/generic/markdown/LICENSE b/macros/generic/markdown/LICENSE deleted file mode 100644 index 72d52c06d9..0000000000 --- a/macros/generic/markdown/LICENSE +++ /dev/null @@ -1,42 +0,0 @@ -Copyright (C) 2009-2016 John MacFarlane, Hans Hagen - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Copyright (C) 2016-2018 Vít Novotný - -This work may be distributed and/or modified under the -conditions of the LaTeX Project Public License, either version 1.3 -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.3 or later is part of all distributions of LaTeX -version 2005/12/01 or later. - -This work has the LPPL maintenance status `maintained'. -The Current Maintainer of this work is Vít Novotný. - -Send bug reports, requests for additions and questions -either to the GitHub issue tracker at - - https://github.com/witiko/markdown/issues - -or to the e-mail address <witiko@mail.muni.cz>. diff --git a/macros/generic/markdown/Makefile b/macros/generic/markdown/Makefile deleted file mode 100644 index 5c210f83e4..0000000000 --- a/macros/generic/markdown/Makefile +++ /dev/null @@ -1,130 +0,0 @@ -.PHONY: all clean implode dist test examples -AUXFILES=markdown.bbl markdown.cb markdown.cb2 markdown.glo markdown.bbl \ - markdown.run.xml markdown.bib markdown.markdown.in markdown.markdown.lua \ - markdown.markdown.out -AUXDIRS=_minted-markdown _markdown_markdown -TDSARCHIVE=markdown.tds.zip -CTANARCHIVE=markdown.ctan.zip -DISTARCHIVE=markdown.zip -ARCHIVES=$(TDSARCHIVE) $(CTANARCHIVE) $(DISTARCHIVE) -EXAMPLES_RESOURCES=examples/example.md examples/scientists.csv -EXAMPLES_SOURCES=examples/context.tex examples/latex.tex -EXAMPLES=examples/context-mkii.pdf examples/context-mkiv.pdf \ - examples/latex-pdftex.pdf examples/latex-luatex.pdf examples/latex-xetex.pdf -TESTS=tests/test.sh tests/support/*.tex tests/templates/*/*.tex.m4 \ - tests/templates/*/COMMANDS.m4 tests/testfiles/*/*.test -MAKES=Makefile $(addsuffix /Makefile, $(SUBDIRECTORIES)) latexmkrc -READMES=README.md LICENSE examples/README.md tests/README.md \ - tests/support/README.md tests/templates/README.md tests/testfiles/README.md \ - tests/templates/*/README.md tests/testfiles/*/README.md -DTXARCHIVE=markdown.dtx -VERSION=$(shell sed -rn '/^\\def\\markdownVersion\{/s/[^{]*\{(.*)\}.*/\1/p' <$(DTXARCHIVE)) -LASTMODIFIED=$(shell sed -rn '/^\\def\\markdownLastModified\{/s/[^{]*\{(.*)\}.*/\1/p' <$(DTXARCHIVE)) -INSTALLER=markdown.ins docstrip.cfg -TECHNICAL_DOCUMENTATION=markdown.pdf -MARKDOWN_USER_MANUAL=markdown.md markdown.css -HTML_USER_MANUAL=markdown.html markdown.css -USER_MANUAL=$(MARKDOWN_USER_MANUAL) $(HTML_USER_MANUAL) -DOCUMENTATION=$(TECHNICAL_DOCUMENTATION) $(USER_MANUAL) -INSTALLABLES=markdown.lua markdown-cli.lua markdown.tex markdown.sty t-markdown.tex -MAKEABLES=$(TECHNICAL_DOCUMENTATION) $(USER_MANUAL) $(INSTALLABLES) $(EXAMPLES) -RESOURCES=$(DOCUMENTATION) $(EXAMPLES_RESOURCES) $(EXAMPLES_SOURCES) $(EXAMPLES) \ - $(MAKES) $(READMES) $(INSTALLER) $(DTXARCHIVE) $(TESTS) -EVERYTHING=$(RESOURCES) $(INSTALLABLES) - -# This is the default pseudo-target. It typesets the manual, -# the examples, and extracts the package files. -all: $(MAKEABLES) - $(MAKE) clean - -# This target extracts the source files out of the DTX archive. -$(INSTALLABLES) $(MARKDOWN_USER_MANUAL): $(INSTALLER) $(DTXARCHIVE) - xetex $< - -# This target typesets the manual. -$(TECHNICAL_DOCUMENTATION): $(DTXARCHIVE) $(INSTALLABLES) - latexmk -interaction=nonstopmode $< - -# These targets typeset the examples. -$(EXAMPLES): $(EXAMPLE_SOURCES) examples/example.tex $(INSTALLABLES) - $(MAKE) -C examples $(notdir $@) - -examples/example.tex: $(INSTALLABLES) - $(MAKE) -C examples $(notdir $@) - -# This target converts the markdown user manual to an HTML page. -%.html: %.md %.css - awk '{ \ - filename = gensub(/^\/(.*\.md)$$/, "\\1", "g"); \ - if(filename != $$0) \ - system("cat " filename); \ - else \ - print($$0); \ - }' <$< | \ - sed -e 's#\\markdownVersion{}#$(VERSION)#g' \ - -e 's#\\markdownLastModified{}#$(LASTMODIFIED)#g' \ - -e 's#\\TeX{}#<span class="tex">T<sub>e</sub>X</span>#g' \ - -e 's#\\LaTeX{}#<span class="latex">L<sup>a</sup>T<sub>e</sub>X</span>#g' \ - -e 's#\\Hologo{ConTeXt}#Con<span class="tex">T<sub>e</sub>X</span>t#g' \ - -e 's#\\Opt{\([^}]*\)}#**`\1`**#g' -e 's#\\,# #g' \ - -e 's#\\meta{\([^}]*\)}#\⟨*\1*\⟩#g' \ - -e 's#\\acro{\([^}]*\)}#<abbr>\1</abbr>#g' \ - -e 's#;-)#<i class="em em-wink"></i>#g' \ - -e 's#\\envm{\([^}]*\)}#`\1`#g' -e 's#\\envmdef{\([^}]*\)}#`\1`#g' \ - -e 's#\\m{\([^}]*\)}#`\\\1`#g' -e 's#\\mdef{\([^}]*\)}#`\\\1`#g' | \ - pandoc -f markdown -t html -N -s --toc --toc-depth=3 --css=$(word 2, $^) >$@ - -# This pseudo-target runs all the tests in the `tests/` directory. -test: - $(MAKE) -C tests - -# This pseudo-target produces the distribution archives. -dist: implode - $(MAKE) $(ARCHIVES) - $(MAKE) clean - -# This target produces the TeX directory structure archive. -$(TDSARCHIVE): $(DTXARCHIVE) $(INSTALLABLES) $(DOCUMENTATION) - @# Installing the macro package. - mkdir -p tex/generic/markdown tex/luatex/markdown tex/latex/markdown \ - tex/context/third/markdown scripts/markdown - cp markdown.lua tex/luatex/markdown/ - cp markdown-cli.lua scripts/markdown/ - cp markdown.sty tex/latex/markdown/ - cp markdown.tex tex/generic/markdown/ - cp t-markdown.tex tex/context/third/markdown/ - @# Installing the documentation. - mkdir -p doc/generic/markdown doc/latex/markdown/examples \ - doc/context/third/markdown/examples - cp $(DOCUMENTATION) doc/generic/markdown/ - cp examples/context.tex $(EXAMPLES_RESOURCES) doc/context/third/markdown/examples/ - cp examples/latex.tex $(EXAMPLES_RESOURCES) doc/latex/markdown/examples/ - @# Installing the sources. - mkdir -p source/generic/markdown - cp $(DTXARCHIVE) $(INSTALLER) source/generic/markdown - zip -r -v -nw $@ doc scripts source tex - rm -rf doc scripts source tex - -# This target produces the distribution archive. -$(DISTARCHIVE): $(EVERYTHING) $(TDSARCHIVE) - -ln -s . markdown - zip -MM -r -v -nw $@ $(addprefix markdown/,$(EVERYTHING)) $(TDSARCHIVE) - rm -f markdown - -# This target produces the CTAN archive. -$(CTANARCHIVE): $(RESOURCES) $(TDSARCHIVE) - -ln -s . markdown - zip -MM -r -v -nw $@ $(addprefix markdown/,$(RESOURCES)) $(TDSARCHIVE) - rm -f markdown - -# This pseudo-target removes any existing auxiliary files and directories. -clean: - latexmk -c $(DTXARCHIVE) - rm -f $(AUXFILES) - rm -rf ${AUXDIRS} - $(MAKE) -C examples clean - -# This pseudo-target removes any makeable files. -implode: clean - rm -f $(MAKEABLES) $(ARCHIVES) - $(MAKE) -C examples implode diff --git a/macros/generic/markdown/README.md b/macros/generic/markdown/README.md index 44c963a2da..d29e20c875 100644 --- a/macros/generic/markdown/README.md +++ b/macros/generic/markdown/README.md @@ -10,8 +10,9 @@ The Markdown package converts [markdown][] markup to TeX commands. The functionality is provided both as a Lua module, and as plain TeX, LaTeX, and ConTeXt macro packages that can be used to directly typeset TeX documents containing markdown markup. Unlike other convertors, the Markdown package -makes it easy to redefine how each and every markdown element is rendered. -Creative abuse of the markdown syntax is encouraged. 😉 +does not require any external programs, and makes it easy to redefine how each +and every markdown element is rendered. Creative abuse of the markdown syntax +is encouraged. 😉 [markdown]: https://daringfireball.net/projects/markdown/basics/ "Daring Fireball: Markdown Basics" @@ -38,6 +39,8 @@ For further information, consult one of the following: 4. My journal articles published by [TUGboat][]: - [Using Markdown inside TeX documents][tb119], and - [Markdown 2.7.0: Towards lightweight markup in TeX][tb124]. +5. My journal articles published by [CSTUG][] (in Czech): + - [Rendering Markdown inside TeX Documents][10.5300/2016-1-4/78]. [overleaf-1]: https://www.overleaf.com/learn/latex/Articles/How_to_write_in_Markdown_on_Overleaf "How to write in Markdown on Overleaf" [overleaf-2]: https://www.overleaf.com/learn/latex/Articles/Markdown_into_LaTeX_with_Style "Markdown into LaTeX with Style" @@ -47,7 +50,9 @@ For further information, consult one of the following: [overleaf-6]: https://www.overleaf.com/latex/examples/using-markdown-in-latex-documents/whdrnpcpnwrm "Using Markdown in LaTeX documents" [tb119]: https://www.tug.org/members/TUGboat/tb38-2/tb119novotny.pdf "Using Markdown inside TeX documents" - [tb124]: https://www.tug.org/TUGboat/production/40-1/tb124novotny-markdown.pdf "Markdown 2.7.0: Towards lightweight markup in TeX" + [tb124]: https://www.tug.org/members/TUGboat/tb40-1/tb124novotny-markdown.pdf "Markdown 2.7.0: Towards lightweight markup in TeX" + + [10.5300/2016-1-4/78]: https://doi.org/10.5300/2016-1-4/78 "Rendering Markdown inside TeX Documents" [install]: http://mirrors.ctan.org/macros/generic/markdown/markdown.html#installation "Markdown Package User Manual" [liantze]: http://liantze.penguinattack.org/ "Rants from the Lab" @@ -55,18 +60,40 @@ For further information, consult one of the following: [overleaf]: https://www.overleaf.com/ "Overleaf: Real-time Collaborative Writing and Publishing Tools with Integrated PDF Preview" [techdoc]: http://mirrors.ctan.org/macros/generic/markdown/markdown.pdf "A Markdown Interpreter for TeX" [tugboat]: https://www.tug.org/tugboat/ "TUGboat - Communications of the TeX Users Group" + [cstug]: https://www.cstug.cz/ "Československé sdružení uživatelů TeXu" + +Acknowledgements +---------------- + +| Logo | Acknowledgement | +| ------------- | ------------- | +| [<img width="150" src="https://www.fi.muni.cz/images/fi-logo.png">][fimu] | I gratefully acknowledge the funding from the [Faculty of Informatics][fimu] at the [Masaryk University][mu] in Brno, Czech Republic, for the development of the Markdown package. | +| [<img width="150" src="https://cdn.overleaf.com/img/ol-brand/overleaf_og_logo.png">][overleaf] | Extensive user documentation for the Markdown package was kindly written by [Lian Tze Lim][liantze] and published by [Overleaf][]. | +| [<img width="150" src="https://pbs.twimg.com/profile_images/1004769879319334912/6Bh1UthD.jpg">][omedym] | Support for content slicing (Lua options [`shiftHeadings`][option-shift-headings] and [`slice`][option-slice]) and pipe tables (Lua options [`pipeTables`][option-pipe-tables] and [`tableCaptions`][option-table-captions]) was graciously sponsored by [David Vins][dvins] and [Omedym][]. | + + [dvins]: https://github.com/dvins "David Vins" + [fimu]: https://www.fi.muni.cz/index.html.en "Faculty of Informatics, Masaryk University" + [mu]: https://www.muni.cz/en "Masaryk University" + [Omedym]: https://www.omedym.com/ "Omedym" + + [option-pipe-tables]: http://mirrors.ctan.org/macros/generic/markdown/markdown.html#pipe-tables "Markdown Package User Manual" + [option-shift-headings]: http://mirrors.ctan.org/macros/generic/markdown/markdown.html#option-shiftheadings "Markdown Package User Manual" + [option-slice]: http://mirrors.ctan.org/macros/generic/markdown/markdown.html#slice "Markdown Package User Manual" + [option-table-captions]: http://mirrors.ctan.org/macros/generic/markdown/markdown.html#option-tablecaptions "Markdown Package User Manual" Contributing ------------ -Apart from the example markdown documents and tests, which are placed in the -`examples/` and `tests/` directories, the complete source code and -documentation of the package are placed in the `markdown.dtx` document -following the literate programming paradigm. +Apart from the example markdown documents, tests, and continuous integration, +which are placed in the `examples/`, `tests/`, and `.circleci/` directories, +the complete source code and documentation of the package are placed in the +`markdown.dtx` document following the [literate programming][] paradigm. +Some useful commands, such as building the release archives and typesetting +the documentation, are placed in the `Makefile` file for ease of maintenance. When the file `markdown.ins` is interpreted using a Unicode-aware TeX engine, such as XeTeX (`xetex markdown.ins`) or LuaTeX (`luatex markdown.ins`), several files are produced from the `markdown.dtx` document. In `markdown.dtx`, the -boundaries between the produced files are marked up using a XML-like syntax +boundaries between the produced files are marked up using an XML-like syntax provided by the [DocStrip][] plain TeX package. Running the [LaTeXMK][] tool on the `markdown.dtx` file @@ -76,25 +103,8 @@ documentation is placed inside TeX comments and marked up using the [ltxdockit][] LaTeX document class. Support for typesetting the documentation is provided by the [doc][] LaTeX package. - [doc]: https://ctan.org/pkg/doc "doc – Format LaTeX documentation" - [DocStrip]: https://ctan.org/pkg/docstrip "docstrip – Remove comments from file" - [LaTeXMK]: https://ctan.org/pkg/latexmk "latexmk – Fully automated LaTeX document generation" - [ltxdockit]: https://ctan.org/pkg/ltxdockit "ltxdockit – Documentation support" - -Acknowledgements ----------------- -I gratefully acknowledge the funding from the [Faculty of Informatics][fimu] -at the [Masaryk University][mu] in Brno, Czech Republic, for the development of -the Markdown package. - -Support for content slicing (Lua options `shiftHeadings` and `slice`) and pipe -tables (Lua options `pipeTables` and `tableCaptions`) was graciously sponsored -by [David Vins][dvins] and [Omedym][]. - -Extensive user documentation of the Markdown package was kindly written by -[Lian Tze Lim][liantze] and published by [Overleaf][]. - - [dvins]: https://github.com/dvins "David Vins" - [fimu]: https://www.fi.muni.cz/index.html.en "Faculty of Informatics, Masaryk University" - [mu]: https://www.muni.cz/en "Masaryk University" - [Omedym]: https://www.omedym.com/ "Omedym" + [doc]: https://ctan.org/pkg/doc "doc – Format LaTeX documentation" + [DocStrip]: https://ctan.org/pkg/docstrip "docstrip – Remove comments from file" + [LaTeXMK]: https://ctan.org/pkg/latexmk "latexmk – Fully automated LaTeX document generation" + [literate programming]: https://en.wikipedia.org/wiki/Literate_programming "Literate programming" + [ltxdockit]: https://ctan.org/pkg/ltxdockit "ltxdockit – Documentation support" diff --git a/macros/generic/markdown/docstrip.cfg b/macros/generic/markdown/docstrip.cfg index a03b51c87b..60f15d3935 100644 --- a/macros/generic/markdown/docstrip.cfg +++ b/macros/generic/markdown/docstrip.cfg @@ -22,7 +22,7 @@ -- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE^^J% -- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.^^J% -- ^^J% --- Copyright (C) 2016-2019 Vít Novotný^^J% +-- Copyright (C) 2016-2020 Vít Novotný^^J% -- ^^J% -- This work may be distributed and/or modified under the^^J% -- conditions of the LaTeX Project Public License, either version 1.3^^J% @@ -62,7 +62,7 @@ \let\luapostamble\empty \declarepreamble\texpreamble -Copyright (C) 2016-2019 Vít Novotný +Copyright (C) 2016-2020 Vít Novotný This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 diff --git a/macros/generic/markdown/examples/README.md b/macros/generic/markdown/examples/README.md deleted file mode 100644 index 0d32d16ec4..0000000000 --- a/macros/generic/markdown/examples/README.md +++ /dev/null @@ -1,7 +0,0 @@ -This directory contains example LaTeX and ConTeXt documents. These documents -can be typeset by running the GNU `make` program in this directory. It is -expected that your TeX installation contains the `pdflatex`, `xelatex`, -`lualatex`, `texexec`, and `context` executables. - -The `markdown.dtx` file in the root directory contains documentation in the -markdown language and can also serve as an example LaTeX document. diff --git a/macros/generic/markdown/examples/context-mkii.pdf b/macros/generic/markdown/examples/context-mkii.pdf Binary files differdeleted file mode 100644 index a17e5fc469..0000000000 --- a/macros/generic/markdown/examples/context-mkii.pdf +++ /dev/null diff --git a/macros/generic/markdown/examples/context-mkiv.pdf b/macros/generic/markdown/examples/context-mkiv.pdf Binary files differdeleted file mode 100644 index ad965f37fe..0000000000 --- a/macros/generic/markdown/examples/context-mkiv.pdf +++ /dev/null diff --git a/macros/generic/markdown/examples/example.md b/macros/generic/markdown/examples/example.md index 8aeb423a20..f0be0cddfa 100644 --- a/macros/generic/markdown/examples/example.md +++ b/macros/generic/markdown/examples/example.md @@ -15,7 +15,7 @@ This is a text paragraph containing an ellipsis ... and followed by a horizontal This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. -  +  /scientists.csv (The great minds of the 19th century rendered via a content block) diff --git a/macros/generic/markdown/examples/latex-luatex.pdf b/macros/generic/markdown/examples/latex-luatex.pdf Binary files differdeleted file mode 100644 index 1ce6e43d49..0000000000 --- a/macros/generic/markdown/examples/latex-luatex.pdf +++ /dev/null diff --git a/macros/generic/markdown/examples/latex-pdftex.pdf b/macros/generic/markdown/examples/latex-pdftex.pdf Binary files differdeleted file mode 100644 index f5eca2597a..0000000000 --- a/macros/generic/markdown/examples/latex-pdftex.pdf +++ /dev/null diff --git a/macros/generic/markdown/examples/latex-xetex.pdf b/macros/generic/markdown/examples/latex-xetex.pdf Binary files differdeleted file mode 100644 index 3c9f0ff75d..0000000000 --- a/macros/generic/markdown/examples/latex-xetex.pdf +++ /dev/null diff --git a/macros/generic/markdown/latexmkrc b/macros/generic/markdown/latexmkrc deleted file mode 100644 index 34d796211e..0000000000 --- a/macros/generic/markdown/latexmkrc +++ /dev/null @@ -1,4 +0,0 @@ -$pdflatex = 'lualatex --shell-escape %O %S'; -$pdf_mode = 1; -$postscript_mode = 0; -$dvi_mode = 0; diff --git a/macros/generic/markdown/markdown.dtx b/macros/generic/markdown/markdown.dtx index 71c06b8154..0cf9f4f9ac 100644 --- a/macros/generic/markdown/markdown.dtx +++ b/macros/generic/markdown/markdown.dtx @@ -535,8 +535,9 @@ The [Markdown package][pkg] converts [markdown][] markup to \TeX{} commands. The functionality is provided both as a Lua module and as plain \TeX{}, \LaTeX{}, and \Hologo{ConTeXt} macro packages that can be used to directly typeset \TeX documents containing markdown markup. Unlike other convertors, the Markdown package -makes it easy to redefine how each and every markdown element is rendered. -Creative abuse of the markdown syntax is encouraged. ;-) +does not require any external programs, and makes it easy to redefine how each +and every markdown element is rendered. Creative abuse of the markdown +syntax is encouraged. ;-) [markdown]: https://daringfireball.net/projects/markdown/basics/ (Daring Fireball: Markdown Basics) @@ -569,11 +570,11 @@ documentation][techdoc]. % \fi % \begin{macrocode} local metadata = { - version = "2.8.1", + version = "2.8.2", comment = "A module for the conversion from markdown to plain TeX", author = "John MacFarlane, Hans Hagen, Vít Novotný", copyright = {"2009-2016 John MacFarlane, Hans Hagen", - "2016-2019 Vít Novotný"}, + "2016-2020 Vít Novotný"}, license = "LPPL 1.3" } @@ -5659,8 +5660,8 @@ pdftex --shell-escape document.tex % % \end{markdown} % \begin{macrocode} -\def\markdownLastModified{2019/04/30}% -\def\markdownVersion{2.8.1}% +\def\markdownLastModified{2020/03/20}% +\def\markdownVersion{2.8.2}% % \end{macrocode} % \par % \begin{markdown} @@ -5796,7 +5797,7 @@ interfaces. % of the document being typeset. % % The expansion of this macro must not contain quotation marks (`"`) or -% backslash symbols (`extbackslash`). Mind that \TeX{} engines tend to +% backslash symbols (`\`). Mind that \TeX{} engines tend to % put quotation marks around \m{jobname}, when it contains spaces. % % \end{markdown} @@ -6939,6 +6940,8 @@ following content: \catcode`\^^A=14 \global\def\markdownRendererImage#1#2#3#4{^^A \immediate\write18{^^A +``` +``` sh if printf '%s' "#3" | grep -q ^http; then OUTPUT="$(printf '%s' "#3" | md5sum | cut -d' ' -f1).^^A $(printf '%s' "#3" | sed 's/.*[.]//')"; @@ -6950,6 +6953,8 @@ following content: else printf '%s%%' "#3" > \jobname.fetched; fi^^A +``` +``` tex }^^A {^^A \everyeof={\noexpand}^^A @@ -13701,6 +13706,7 @@ function M.writer.new(options) % \begin{macrocode} function self.verbatim(s) if not self.is_writing then return "" end + s = string.gsub(s, '[\r\n%s]*$', '') local name = util.cache(options.cacheDir, s, nil, nil, ".verbatim") return {"\\markdownRendererInputVerbatim{",name,"}"} end @@ -13716,6 +13722,7 @@ function M.writer.new(options) % \begin{macrocode} function self.fencedCode(i, s) if not self.is_writing then return "" end + s = string.gsub(s, '[\r\n%s]*$', '') local name = util.cache(options.cacheDir, s, nil, nil, ".verbatim") return {"\\markdownRendererInputFencedCode{",name,"}{",i,"}"} end @@ -14978,7 +14985,8 @@ larsers.PipeTable = Ct(larsers.table_row * parsers.newline % % \end{markdown} % \begin{macrocode} - larsers.Str = parsers.normalchar^1 / writer.string + larsers.Str = (parsers.normalchar * (parsers.normalchar + parsers.at)^0) + / writer.string larsers.Symbol = (parsers.specialchar - parsers.tightblocksep) / writer.string @@ -15650,7 +15658,14 @@ if metadata.version ~= md.metadata.version then "markdown.lua " .. md.metadata.version .. ".") end local convert = md.new(options) -local output = convert(input:gsub("\r\n?", "\n")) +% \end{macrocode} +% \begin{markdown} +% Since the Lua converter expects \acro{unix} line endings, normalize the +% input. Also add a line ending at the end of the file in case the input file +% has none. +% \end{markdown} +% \begin{macrocode} +local output = convert(input:gsub("\r\n?", "\n") .. "\n") if output_filename then local output_file = io.open(output_filename, "w") @@ -16016,7 +16031,10 @@ local convert = md.new(\markdownLuaOptions) |markdownInfo{The ending token sequence was found}@ |immediate|closeout|markdownOutputFileStream@ |endgroup@ - |markdownInput|markdownOptionInputTempFileName@ + |markdownInput{@ + |markdownOptionOutputDir@ + /|markdownOptionInputTempFileName@ + }@ #2}@ |fi@ % \end{macrocode} @@ -16285,16 +16303,15 @@ local convert = md.new(\markdownLuaOptions) |closein|markdownInputFileStream |markdownLuaExecute{% |markdownPrepare - local input = assert(io.open("% - |markdownOptionOutputDir - /#1", "r"):read("*a")) + local input = assert(io.open("#1", "r"):read("*a")) % \end{macrocode} % \begin{markdown} % Since the Lua converter expects \acro{unix} line endings, normalize the -% input. +% input. Also add a line ending at the end of the file in case the input file +% has none. % \end{markdown} % \begin{macrocode} - print(convert(input:gsub("\r\n?", "\n")))}}% + print(convert(input:gsub("\r\n?", "\n") .. "\n"))}}% |endgroup % \end{macrocode} % \iffalse diff --git a/macros/generic/markdown/markdown.html b/macros/generic/markdown/markdown.html index e6ed568bff..cc1c9fe59f 100644 --- a/macros/generic/markdown/markdown.html +++ b/macros/generic/markdown/markdown.html @@ -86,7 +86,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni <header> <h1 class="title">Markdown Package User Manual</h1> <p class="author">Vít Novotný</p> -<p class="date">v2.8.1 (2019/04/30)</p> +<p class="date">v2.8.2 (2020/03/20)</p> </header> <nav id="TOC"> <ul> @@ -123,7 +123,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni </nav> <p><link href="https://afeld.github.io/emoji-css/emoji.css" rel="stylesheet" /></p> <h1 id="introduction"><span class="header-section-number">1</span> Introduction</h1> -<p>The <a href="https://ctan.org/pkg/markdown" title="CTAN: Package markdown">Markdown package</a> converts <a href="https://daringfireball.net/projects/markdown/basics/" title="Daring Fireball: Markdown Basics">markdown</a> markup to <span class="tex">T<sub>e</sub>X</span> commands. The functionality is provided both as a Lua module and as plain <span class="tex">T<sub>e</sub>X</span>, <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span>, and Con<span class="tex">T<sub>e</sub>X</span>t macro packages that can be used to directly typeset documents containing markdown markup. Unlike other convertors, the Markdown package makes it easy to redefine how each and every markdown element is rendered. Creative abuse of the markdown syntax is encouraged. <i class="em em-wink"></i></p> +<p>The <a href="https://ctan.org/pkg/markdown" title="CTAN: Package markdown">Markdown package</a> converts <a href="https://daringfireball.net/projects/markdown/basics/" title="Daring Fireball: Markdown Basics">markdown</a> markup to <span class="tex">T<sub>e</sub>X</span> commands. The functionality is provided both as a Lua module and as plain <span class="tex">T<sub>e</sub>X</span>, <span class="latex">L<sup>a</sup>T<sub>e</sub>X</span>, and Con<span class="tex">T<sub>e</sub>X</span>t macro packages that can be used to directly typeset documents containing markdown markup. Unlike other convertors, the Markdown package does not require any external programs, and makes it easy to redefine how each and every markdown element is rendered. Creative abuse of the markdown syntax is encouraged. <i class="em em-wink"></i></p> <p>This document is a user manual for the <a href="https://ctan.org/pkg/markdown" title="CTAN: Package markdown">Markdown package</a>. It provides tutorials and code examples. For an in-depth description of the package requirements, interfaces, and implementation, please refer to the <a href="http://mirrors.ctan.org/macros/generic/markdown/markdown.pdf" title="A Markdown Interpreter for <span class="tex">T<sub>e</sub>X</span>">technical documentation</a>.</p> <h2 id="requirements"><span class="header-section-number">1.1</span> Requirements</h2> <p>The package requires a working <span class="tex">T<sub>e</sub>X</span> distribution. <a href="https://www.tug.org/texlive/" title="TeX Live - TeX Users Group"><span class="tex">T<sub>e</sub>X</span> Live</a> ≥ 2013 is known to work and so are recent installation of <a href="https://miktex.org/" title="Home - MiKTeXorg">Mik<span class="tex">T<sub>e</sub>X</span></a>. If you are using a minimal installation of a <span class="tex">T<sub>e</sub>X</span> distribution, please consult the <a href="http://mirrors.ctan.org/macros/generic/markdown/markdown.pdf" title="A Markdown Interpreter for <span class="tex">T<sub>e</sub>X</span>">technical documentation</a> for a detailed list of required packages.</p> @@ -3766,33 +3766,33 @@ multiple paragraphs</li> <a class="sourceLine" id="cb301-5" data-line-number="5"><span class="fu">\catcode</span>`<span class="fu">\%</span>=12</a> <a class="sourceLine" id="cb301-6" data-line-number="6"><span class="fu">\catcode</span>`<span class="fu">\^</span>^A=14</a> <a class="sourceLine" id="cb301-7" data-line-number="7"><span class="fu">\global\def</span>\markdownRendererImage#1#2#3#4{^^A</a> -<a class="sourceLine" id="cb301-8" data-line-number="8"> \immediate\write18{^^A</a> -<a class="sourceLine" id="cb301-9" data-line-number="9"> if printf '<span class="co">%s' "#3" | grep -q ^http; then</span></a> -<a class="sourceLine" id="cb301-10" data-line-number="10"> OUTPUT="$(printf '<span class="co">%s' "#3" | md5sum | cut -d' ' -f1).^^A</span></a> -<a class="sourceLine" id="cb301-11" data-line-number="11"> $(printf '<span class="co">%s' "#3" | sed 's/.*[.]//')";</span></a> -<a class="sourceLine" id="cb301-12" data-line-number="12"> if ! [ -e "$OUTPUT" ]; then</a> -<a class="sourceLine" id="cb301-13" data-line-number="13"> wget -O "$OUTPUT" '#3' || rm "$OUTPUT";</a> -<a class="sourceLine" id="cb301-14" data-line-number="14"> convert "$OUTPUT" png:"$OUTPUT";</a> -<a class="sourceLine" id="cb301-15" data-line-number="15"> fi;</a> -<a class="sourceLine" id="cb301-16" data-line-number="16"> printf '<span class="co">%s%%' "$OUTPUT" > \jobname.fetched;</span></a> -<a class="sourceLine" id="cb301-17" data-line-number="17"> else</a> -<a class="sourceLine" id="cb301-18" data-line-number="18"> printf '<span class="co">%s%%' "#3" > \jobname.fetched;</span></a> -<a class="sourceLine" id="cb301-19" data-line-number="19"> fi^^A</a> -<a class="sourceLine" id="cb301-20" data-line-number="20"> }^^A</a> -<a class="sourceLine" id="cb301-21" data-line-number="21"> {^^A</a> -<a class="sourceLine" id="cb301-22" data-line-number="22"> \everyeof={\noexpand}^^A</a> -<a class="sourceLine" id="cb301-23" data-line-number="23"> \edef\filename{\@@input"\jobname.fetched" }^^A</a> -<a class="sourceLine" id="cb301-24" data-line-number="24"> \includegraphics[width=\textwidth]{\filename}^^A</a> -<a class="sourceLine" id="cb301-25" data-line-number="25"> }^^A</a> -<a class="sourceLine" id="cb301-26" data-line-number="26">}</a> -<a class="sourceLine" id="cb301-27" data-line-number="27"><span class="fu">\endgroup</span></a> -<a class="sourceLine" id="cb301-28" data-line-number="28"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb301-29" data-line-number="29"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb301-30" data-line-number="30"></a> -<a class="sourceLine" id="cb301-31" data-line-number="31"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb301-32" data-line-number="32"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb302"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb302-1" data-line-number="1"><span class="ex">lualatex</span> --shell-escape document.tex</a></code></pre></div> +<a class="sourceLine" id="cb301-8" data-line-number="8"> \immediate\write18{^^A</a></code></pre></div> +<div class="sourceCode" id="cb302"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb302-1" data-line-number="1"> <span class="kw">if</span> <span class="bu">printf</span> <span class="st">'%s'</span> <span class="st">"#3"</span> <span class="kw">|</span> <span class="fu">grep</span> -q ^http<span class="kw">;</span> <span class="kw">then</span></a> +<a class="sourceLine" id="cb302-2" data-line-number="2"> <span class="va">OUTPUT=</span><span class="st">"</span><span class="va">$(</span><span class="bu">printf</span> <span class="st">'%s'</span> <span class="st">"#3"</span> <span class="kw">|</span> <span class="ex">md5sum</span> <span class="kw">|</span> <span class="fu">cut</span> -d<span class="st">' '</span> -f1<span class="va">)</span><span class="st">.^^A</span></a> +<a class="sourceLine" id="cb302-3" data-line-number="3"><span class="st"> </span><span class="va">$(</span><span class="bu">printf</span> <span class="st">'%s'</span> <span class="st">"#3"</span> <span class="kw">|</span> <span class="fu">sed</span> <span class="st">'s/.*[.]//'</span><span class="va">)</span><span class="st">"</span>;</a> +<a class="sourceLine" id="cb302-4" data-line-number="4"> <span class="kw">if</span> !<span class="bu"> [</span> <span class="ot">-e</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span><span class="bu"> ]</span>; <span class="kw">then</span></a> +<a class="sourceLine" id="cb302-5" data-line-number="5"> <span class="fu">wget</span> -O <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span> <span class="st">'#3'</span> <span class="kw">||</span> <span class="fu">rm</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span><span class="kw">;</span></a> +<a class="sourceLine" id="cb302-6" data-line-number="6"> <span class="ex">convert</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span> png:<span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span><span class="kw">;</span></a> +<a class="sourceLine" id="cb302-7" data-line-number="7"> <span class="kw">fi</span>;</a> +<a class="sourceLine" id="cb302-8" data-line-number="8"> <span class="bu">printf</span> <span class="st">'%s%%'</span> <span class="st">"</span><span class="va">$OUTPUT</span><span class="st">"</span> <span class="op">></span> \jobname.fetched<span class="kw">;</span></a> +<a class="sourceLine" id="cb302-9" data-line-number="9"> <span class="kw">else</span></a> +<a class="sourceLine" id="cb302-10" data-line-number="10"> <span class="bu">printf</span> <span class="st">'%s%%'</span> <span class="st">"#3"</span> <span class="op">></span> \jobname.fetched<span class="kw">;</span></a> +<a class="sourceLine" id="cb302-11" data-line-number="11"> <span class="kw">fi</span>^^<span class="ex">A</span></a></code></pre></div> +<div class="sourceCode" id="cb303"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb303-1" data-line-number="1"> }^^A</a> +<a class="sourceLine" id="cb303-2" data-line-number="2"> {^^A</a> +<a class="sourceLine" id="cb303-3" data-line-number="3"> <span class="fu">\everyeof</span>={<span class="fu">\noexpand</span>}^^A</a> +<a class="sourceLine" id="cb303-4" data-line-number="4"> <span class="fu">\edef</span>\filename{\@@input"\jobname.fetched" }^^A</a> +<a class="sourceLine" id="cb303-5" data-line-number="5"> <span class="bu">\includegraphics</span>[width=<span class="fu">\textwidth</span>]{<span class="fu">\filename</span>}^^A</a> +<a class="sourceLine" id="cb303-6" data-line-number="6"> }^^A</a> +<a class="sourceLine" id="cb303-7" data-line-number="7">}</a> +<a class="sourceLine" id="cb303-8" data-line-number="8"><span class="fu">\endgroup</span></a> +<a class="sourceLine" id="cb303-9" data-line-number="9"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb303-10" data-line-number="10"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb303-11" data-line-number="11"></a> +<a class="sourceLine" id="cb303-12" data-line-number="12"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb303-13" data-line-number="13"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb304"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb304-1" data-line-number="1"><span class="ex">lualatex</span> --shell-escape document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following content. This assumes that you use a Unix-like operating system with Bourne or Bourne again shell as the default shell of the current user. It also assumes that the <code>md5sum</code>, <code>wget</code>, and <code>convert</code> binaries are installed and that the <span class="tex">T<sub>e</sub>X</span> engine has shell access.</p> <blockquote> <p><img src="https://tug.org/tugboat/noword.jpg" title="The Communications of the TeX Users Group" /></p> @@ -3804,30 +3804,30 @@ multiple paragraphs</li> <p>Note that you will need to place place a <code>markdown-languages.json</code> file inside your working directory or inside your local <span class="tex">T<sub>e</sub>X</span> directory structure. In this file, you will define a mapping between filename extensions and the language names recognized by your favorite syntax highlighter; there may exist other creative uses beside syntax highlighting. <a href="https://github.com/iainc/Markdown-Content-Blocks" title="File transclusion syntax for Markdown">The <code>Languages.json</code> file provided by Anton Sotkov</a> is a good starting point.</p> <h5 id="plain-tex-example-18" class="unnumbered">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb303"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb303-1" data-line-number="1"><span class="fu">\input</span> markdown</a> -<a class="sourceLine" id="cb303-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionContentBlocks{true}</a> -<a class="sourceLine" id="cb303-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererContentBlock#1#2#3#4{<span class="co">%</span></a> -<a class="sourceLine" id="cb303-4" data-line-number="4"> This is {\tt #2}, #4.</a> -<a class="sourceLine" id="cb303-5" data-line-number="5">}</a> -<a class="sourceLine" id="cb303-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererContentBlockOnlineImage#1#2#3#4{<span class="co">%</span></a> -<a class="sourceLine" id="cb303-7" data-line-number="7"> This is the image {\tt #2}, #4.</a> -<a class="sourceLine" id="cb303-8" data-line-number="8">}</a> -<a class="sourceLine" id="cb303-9" data-line-number="9"><span class="fu">\def</span>\markdownRendererContentBlockCode#1#2#3#4#5{<span class="co">%</span></a> -<a class="sourceLine" id="cb303-10" data-line-number="10"> This is the #2 (\uppercase{#1}) document {\tt #3}, #5.</a> -<a class="sourceLine" id="cb303-11" data-line-number="11">}</a> -<a class="sourceLine" id="cb303-12" data-line-number="12"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb303-13" data-line-number="13">/document.tex (the document that we are currently typesetting)</a> -<a class="sourceLine" id="cb303-14" data-line-number="14">/markdown-languages.json (the mapping between filename extensions</a> -<a class="sourceLine" id="cb303-15" data-line-number="15"> and programming language names)</a> -<a class="sourceLine" id="cb303-16" data-line-number="16">https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</a> -<a class="sourceLine" id="cb303-17" data-line-number="17"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb303-18" data-line-number="18"><span class="fu">\bye</span></a></code></pre></div> +<div class="sourceCode" id="cb305"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb305-1" data-line-number="1"><span class="fu">\input</span> markdown</a> +<a class="sourceLine" id="cb305-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionContentBlocks{true}</a> +<a class="sourceLine" id="cb305-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererContentBlock#1#2#3#4{<span class="co">%</span></a> +<a class="sourceLine" id="cb305-4" data-line-number="4"> This is {\tt #2}, #4.</a> +<a class="sourceLine" id="cb305-5" data-line-number="5">}</a> +<a class="sourceLine" id="cb305-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererContentBlockOnlineImage#1#2#3#4{<span class="co">%</span></a> +<a class="sourceLine" id="cb305-7" data-line-number="7"> This is the image {\tt #2}, #4.</a> +<a class="sourceLine" id="cb305-8" data-line-number="8">}</a> +<a class="sourceLine" id="cb305-9" data-line-number="9"><span class="fu">\def</span>\markdownRendererContentBlockCode#1#2#3#4#5{<span class="co">%</span></a> +<a class="sourceLine" id="cb305-10" data-line-number="10"> This is the #2 (\uppercase{#1}) document {\tt #3}, #5.</a> +<a class="sourceLine" id="cb305-11" data-line-number="11">}</a> +<a class="sourceLine" id="cb305-12" data-line-number="12"><span class="fu">\markdownBegin</span></a> +<a class="sourceLine" id="cb305-13" data-line-number="13">/document.tex (the document that we are currently typesetting)</a> +<a class="sourceLine" id="cb305-14" data-line-number="14">/markdown-languages.json (the mapping between filename extensions</a> +<a class="sourceLine" id="cb305-15" data-line-number="15"> and programming language names)</a> +<a class="sourceLine" id="cb305-16" data-line-number="16">https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</a> +<a class="sourceLine" id="cb305-17" data-line-number="17"><span class="fu">\markdownEnd</span></a> +<a class="sourceLine" id="cb305-18" data-line-number="18"><span class="fu">\bye</span></a></code></pre></div> <p>Create also a text document named <code>markdown-languages.json</code> with the following content:</p> -<div class="sourceCode" id="cb304"><pre class="sourceCode js"><code class="sourceCode javascript"><a class="sourceLine" id="cb304-1" data-line-number="1"><span class="op">{</span></a> -<a class="sourceLine" id="cb304-2" data-line-number="2"> <span class="st">"json"</span><span class="op">:</span> <span class="st">"JavaScript Object Notation"</span><span class="op">,</span></a> -<a class="sourceLine" id="cb304-3" data-line-number="3"><span class="op">}</span></a></code></pre></div> +<div class="sourceCode" id="cb306"><pre class="sourceCode js"><code class="sourceCode javascript"><a class="sourceLine" id="cb306-1" data-line-number="1"><span class="op">{</span></a> +<a class="sourceLine" id="cb306-2" data-line-number="2"> <span class="st">"json"</span><span class="op">:</span> <span class="st">"JavaScript Object Notation"</span><span class="op">,</span></a> +<a class="sourceLine" id="cb306-3" data-line-number="3"><span class="op">}</span></a></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb305"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb305-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb307"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb307-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is <code>document.tex</code>, the document that we are currently typesetting.</p> @@ -3836,33 +3836,33 @@ multiple paragraphs</li> </blockquote> <h5 id="latex-example-33" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb306"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb306-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> -<a class="sourceLine" id="cb306-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">filecontents</span>}</a> -<a class="sourceLine" id="cb306-3" data-line-number="3"><span class="kw">\begin</span>{<span class="ex">filecontents*</span>}{markdown-languages.json}</a> -<a class="sourceLine" id="cb306-4" data-line-number="4">{</a> -<a class="sourceLine" id="cb306-5" data-line-number="5"> "json": "JavaScript Object Notation",</a> -<a class="sourceLine" id="cb306-6" data-line-number="6">}</a> -<a class="sourceLine" id="cb306-7" data-line-number="7"><span class="kw">\end</span>{<span class="ex">filecontents*</span>}</a> -<a class="sourceLine" id="cb306-8" data-line-number="8"><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb306-9" data-line-number="9"><span class="fu">\markdownSetup</span>{</a> -<a class="sourceLine" id="cb306-10" data-line-number="10"> renderers = {</a> -<a class="sourceLine" id="cb306-11" data-line-number="11"> contentBlock = {This is <span class="fu">\texttt</span>{#2}, #4.},</a> -<a class="sourceLine" id="cb306-12" data-line-number="12"> contentBlockOnlineImage = {This is the image <span class="fu">\texttt</span>{#2}, #4.},</a> -<a class="sourceLine" id="cb306-13" data-line-number="13"> contentBlockCode = {<span class="co">%</span></a> -<a class="sourceLine" id="cb306-14" data-line-number="14"> This is the #2 (<span class="fu">\MakeUppercase</span>{#1}) document <span class="fu">\texttt</span>{#3}, #5.</a> -<a class="sourceLine" id="cb306-15" data-line-number="15"> },</a> -<a class="sourceLine" id="cb306-16" data-line-number="16"> },</a> -<a class="sourceLine" id="cb306-17" data-line-number="17">}</a> -<a class="sourceLine" id="cb306-18" data-line-number="18"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb306-19" data-line-number="19"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb306-20" data-line-number="20">/document.tex (the document that we are currently typesetting)</a> -<a class="sourceLine" id="cb306-21" data-line-number="21">/markdown-languages.json (the mapping between filename extensions</a> -<a class="sourceLine" id="cb306-22" data-line-number="22"> and programming language names)</a> -<a class="sourceLine" id="cb306-23" data-line-number="23">https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</a> -<a class="sourceLine" id="cb306-24" data-line-number="24"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb306-25" data-line-number="25"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb307"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb307-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb308"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb308-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> +<a class="sourceLine" id="cb308-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">filecontents</span>}</a> +<a class="sourceLine" id="cb308-3" data-line-number="3"><span class="kw">\begin</span>{<span class="ex">filecontents*</span>}{markdown-languages.json}</a> +<a class="sourceLine" id="cb308-4" data-line-number="4">{</a> +<a class="sourceLine" id="cb308-5" data-line-number="5"> "json": "JavaScript Object Notation",</a> +<a class="sourceLine" id="cb308-6" data-line-number="6">}</a> +<a class="sourceLine" id="cb308-7" data-line-number="7"><span class="kw">\end</span>{<span class="ex">filecontents*</span>}</a> +<a class="sourceLine" id="cb308-8" data-line-number="8"><span class="bu">\usepackage</span>[contentBlocks]{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb308-9" data-line-number="9"><span class="fu">\markdownSetup</span>{</a> +<a class="sourceLine" id="cb308-10" data-line-number="10"> renderers = {</a> +<a class="sourceLine" id="cb308-11" data-line-number="11"> contentBlock = {This is <span class="fu">\texttt</span>{#2}, #4.},</a> +<a class="sourceLine" id="cb308-12" data-line-number="12"> contentBlockOnlineImage = {This is the image <span class="fu">\texttt</span>{#2}, #4.},</a> +<a class="sourceLine" id="cb308-13" data-line-number="13"> contentBlockCode = {<span class="co">%</span></a> +<a class="sourceLine" id="cb308-14" data-line-number="14"> This is the #2 (<span class="fu">\MakeUppercase</span>{#1}) document <span class="fu">\texttt</span>{#3}, #5.</a> +<a class="sourceLine" id="cb308-15" data-line-number="15"> },</a> +<a class="sourceLine" id="cb308-16" data-line-number="16"> },</a> +<a class="sourceLine" id="cb308-17" data-line-number="17">}</a> +<a class="sourceLine" id="cb308-18" data-line-number="18"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb308-19" data-line-number="19"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb308-20" data-line-number="20">/document.tex (the document that we are currently typesetting)</a> +<a class="sourceLine" id="cb308-21" data-line-number="21">/markdown-languages.json (the mapping between filename extensions</a> +<a class="sourceLine" id="cb308-22" data-line-number="22"> and programming language names)</a> +<a class="sourceLine" id="cb308-23" data-line-number="23">https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</a> +<a class="sourceLine" id="cb308-24" data-line-number="24"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb308-25" data-line-number="25"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb309"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb309-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is <code>document.tex</code>, the document that we are currently typesetting.</p> @@ -3871,31 +3871,31 @@ multiple paragraphs</li> </blockquote> <h5 id="context-example-28" class="unnumbered">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb308"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb308-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> -<a class="sourceLine" id="cb308-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionContentBlocks{true}</a> -<a class="sourceLine" id="cb308-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererContentBlock#1#2#3#4{<span class="co">%</span></a> -<a class="sourceLine" id="cb308-4" data-line-number="4"> This is {\tt #2}, #4.</a> -<a class="sourceLine" id="cb308-5" data-line-number="5">}</a> -<a class="sourceLine" id="cb308-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererContentBlockOnlineImage#1#2#3#4{<span class="co">%</span></a> -<a class="sourceLine" id="cb308-7" data-line-number="7"> This is the image {\tt #2}, #4.</a> -<a class="sourceLine" id="cb308-8" data-line-number="8">}</a> -<a class="sourceLine" id="cb308-9" data-line-number="9"><span class="fu">\def</span>\markdownRendererContentBlockCode#1#2#3#4#5{<span class="co">%</span></a> -<a class="sourceLine" id="cb308-10" data-line-number="10"> This is the #2 (\uppercase{#1}) document {\tt #3}, #5.</a> -<a class="sourceLine" id="cb308-11" data-line-number="11">}</a> -<a class="sourceLine" id="cb308-12" data-line-number="12"><span class="fu">\starttext</span></a> -<a class="sourceLine" id="cb308-13" data-line-number="13"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb308-14" data-line-number="14">/document.tex (the document that we are currently typesetting)</a> -<a class="sourceLine" id="cb308-15" data-line-number="15">/markdown-languages.json (the mapping between filename extensions</a> -<a class="sourceLine" id="cb308-16" data-line-number="16"> and programming language names)</a> -<a class="sourceLine" id="cb308-17" data-line-number="17">https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</a> -<a class="sourceLine" id="cb308-18" data-line-number="18"><span class="fu">\stopmarkdown</span></a> -<a class="sourceLine" id="cb308-19" data-line-number="19"><span class="fu">\stoptext</span></a></code></pre></div> +<div class="sourceCode" id="cb310"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb310-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> +<a class="sourceLine" id="cb310-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionContentBlocks{true}</a> +<a class="sourceLine" id="cb310-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererContentBlock#1#2#3#4{<span class="co">%</span></a> +<a class="sourceLine" id="cb310-4" data-line-number="4"> This is {\tt #2}, #4.</a> +<a class="sourceLine" id="cb310-5" data-line-number="5">}</a> +<a class="sourceLine" id="cb310-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererContentBlockOnlineImage#1#2#3#4{<span class="co">%</span></a> +<a class="sourceLine" id="cb310-7" data-line-number="7"> This is the image {\tt #2}, #4.</a> +<a class="sourceLine" id="cb310-8" data-line-number="8">}</a> +<a class="sourceLine" id="cb310-9" data-line-number="9"><span class="fu">\def</span>\markdownRendererContentBlockCode#1#2#3#4#5{<span class="co">%</span></a> +<a class="sourceLine" id="cb310-10" data-line-number="10"> This is the #2 (\uppercase{#1}) document {\tt #3}, #5.</a> +<a class="sourceLine" id="cb310-11" data-line-number="11">}</a> +<a class="sourceLine" id="cb310-12" data-line-number="12"><span class="fu">\starttext</span></a> +<a class="sourceLine" id="cb310-13" data-line-number="13"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb310-14" data-line-number="14">/document.tex (the document that we are currently typesetting)</a> +<a class="sourceLine" id="cb310-15" data-line-number="15">/markdown-languages.json (the mapping between filename extensions</a> +<a class="sourceLine" id="cb310-16" data-line-number="16"> and programming language names)</a> +<a class="sourceLine" id="cb310-17" data-line-number="17">https://tug.org/tugboat/noword.jpg (the logotype of TUGboat)</a> +<a class="sourceLine" id="cb310-18" data-line-number="18"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb310-19" data-line-number="19"><span class="fu">\stoptext</span></a></code></pre></div> <p>Create also a text document named <code>markdown-languages.json</code> with the following content:</p> -<div class="sourceCode" id="cb309"><pre class="sourceCode js"><code class="sourceCode javascript"><a class="sourceLine" id="cb309-1" data-line-number="1"><span class="op">{</span></a> -<a class="sourceLine" id="cb309-2" data-line-number="2"> <span class="st">"json"</span><span class="op">:</span> <span class="st">"JavaScript Object Notation"</span><span class="op">,</span></a> -<a class="sourceLine" id="cb309-3" data-line-number="3"><span class="op">}</span></a></code></pre></div> +<div class="sourceCode" id="cb311"><pre class="sourceCode js"><code class="sourceCode javascript"><a class="sourceLine" id="cb311-1" data-line-number="1"><span class="op">{</span></a> +<a class="sourceLine" id="cb311-2" data-line-number="2"> <span class="st">"json"</span><span class="op">:</span> <span class="st">"JavaScript Object Notation"</span><span class="op">,</span></a> +<a class="sourceLine" id="cb311-3" data-line-number="3"><span class="op">}</span></a></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb310"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb310-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb312"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb312-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is <code>document.tex</code>, the document that we are currently typesetting.</p> @@ -3911,50 +3911,50 @@ multiple paragraphs</li> <p>The <code>\markdownRendererUlEndTight</code> macro represents the end of a bulleted list that contains no item with several paragraphs of text (the list is tight). This macro will only be produced, when the <strong><code>tightLists</code></strong> option is <code>false</code>. The macro receives no arguments.</p> <h5 id="plain-tex-example-19" class="unnumbered">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb311"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb311-1" data-line-number="1"><span class="fu">\input</span> markdown</a> -<a class="sourceLine" id="cb311-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionTightLists{true}</a> -<a class="sourceLine" id="cb311-3" data-line-number="3"></a> -<a class="sourceLine" id="cb311-4" data-line-number="4"><span class="fu">\def</span>\markdownRendererInterblockSeparator{}</a> -<a class="sourceLine" id="cb311-5" data-line-number="5"><span class="fu">\def</span>\markdownRendererUlBeginTight{ (}</a> -<a class="sourceLine" id="cb311-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererUlItem{<span class="co">%</span></a> -<a class="sourceLine" id="cb311-7" data-line-number="7"> \def\markdownRendererUlItem{<span class="co">%</span></a> -<a class="sourceLine" id="cb311-8" data-line-number="8"> ,</a> -<a class="sourceLine" id="cb311-9" data-line-number="9"> \def\markdownRendererUlItem{, and }<span class="co">%</span></a> -<a class="sourceLine" id="cb311-10" data-line-number="10"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb311-11" data-line-number="11">}</a> -<a class="sourceLine" id="cb311-12" data-line-number="12"><span class="fu">\def</span>\markdownRendererUlItemEnd{}</a> -<a class="sourceLine" id="cb311-13" data-line-number="13"><span class="fu">\def</span>\markdownRendererUlEndTight{).}</a> -<a class="sourceLine" id="cb311-14" data-line-number="14"></a> -<a class="sourceLine" id="cb311-15" data-line-number="15"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb311-16" data-line-number="16">This is a tight list</a> -<a class="sourceLine" id="cb311-17" data-line-number="17"></a> -<a class="sourceLine" id="cb311-18" data-line-number="18">- the first item</a> -<a class="sourceLine" id="cb311-19" data-line-number="19">- the second item</a> -<a class="sourceLine" id="cb311-20" data-line-number="20">- the third item</a> -<a class="sourceLine" id="cb311-21" data-line-number="21"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb311-22" data-line-number="22"></a> -<a class="sourceLine" id="cb311-23" data-line-number="23"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> -<a class="sourceLine" id="cb311-24" data-line-number="24"> :\par</a> -<a class="sourceLine" id="cb311-25" data-line-number="25"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> -<a class="sourceLine" id="cb311-26" data-line-number="26">}</a> -<a class="sourceLine" id="cb311-27" data-line-number="27"><span class="fu">\def</span>\markdownRendererUlBegin{}</a> -<a class="sourceLine" id="cb311-28" data-line-number="28"><span class="fu">\def</span>\markdownRendererUlItem{--\kern 0.5em}</a> -<a class="sourceLine" id="cb311-29" data-line-number="29"><span class="fu">\def</span>\markdownRendererUlItemEnd{.\par}</a> -<a class="sourceLine" id="cb311-30" data-line-number="30"><span class="fu">\def</span>\markdownRendererUlEnd{}</a> -<a class="sourceLine" id="cb311-31" data-line-number="31"></a> -<a class="sourceLine" id="cb311-32" data-line-number="32"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb311-33" data-line-number="33">This is a loose list</a> -<a class="sourceLine" id="cb311-34" data-line-number="34"></a> -<a class="sourceLine" id="cb311-35" data-line-number="35">- This is the first item</a> -<a class="sourceLine" id="cb311-36" data-line-number="36"></a> -<a class="sourceLine" id="cb311-37" data-line-number="37">- This is the second item</a> -<a class="sourceLine" id="cb311-38" data-line-number="38"></a> -<a class="sourceLine" id="cb311-39" data-line-number="39">- This is the third item</a> -<a class="sourceLine" id="cb311-40" data-line-number="40"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb311-41" data-line-number="41"></a> -<a class="sourceLine" id="cb311-42" data-line-number="42"><span class="fu">\bye</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb312"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb312-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb313"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb313-1" data-line-number="1"><span class="fu">\input</span> markdown</a> +<a class="sourceLine" id="cb313-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionTightLists{true}</a> +<a class="sourceLine" id="cb313-3" data-line-number="3"></a> +<a class="sourceLine" id="cb313-4" data-line-number="4"><span class="fu">\def</span>\markdownRendererInterblockSeparator{}</a> +<a class="sourceLine" id="cb313-5" data-line-number="5"><span class="fu">\def</span>\markdownRendererUlBeginTight{ (}</a> +<a class="sourceLine" id="cb313-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererUlItem{<span class="co">%</span></a> +<a class="sourceLine" id="cb313-7" data-line-number="7"> \def\markdownRendererUlItem{<span class="co">%</span></a> +<a class="sourceLine" id="cb313-8" data-line-number="8"> ,</a> +<a class="sourceLine" id="cb313-9" data-line-number="9"> \def\markdownRendererUlItem{, and }<span class="co">%</span></a> +<a class="sourceLine" id="cb313-10" data-line-number="10"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb313-11" data-line-number="11">}</a> +<a class="sourceLine" id="cb313-12" data-line-number="12"><span class="fu">\def</span>\markdownRendererUlItemEnd{}</a> +<a class="sourceLine" id="cb313-13" data-line-number="13"><span class="fu">\def</span>\markdownRendererUlEndTight{).}</a> +<a class="sourceLine" id="cb313-14" data-line-number="14"></a> +<a class="sourceLine" id="cb313-15" data-line-number="15"><span class="fu">\markdownBegin</span></a> +<a class="sourceLine" id="cb313-16" data-line-number="16">This is a tight list</a> +<a class="sourceLine" id="cb313-17" data-line-number="17"></a> +<a class="sourceLine" id="cb313-18" data-line-number="18">- the first item</a> +<a class="sourceLine" id="cb313-19" data-line-number="19">- the second item</a> +<a class="sourceLine" id="cb313-20" data-line-number="20">- the third item</a> +<a class="sourceLine" id="cb313-21" data-line-number="21"><span class="fu">\markdownEnd</span></a> +<a class="sourceLine" id="cb313-22" data-line-number="22"></a> +<a class="sourceLine" id="cb313-23" data-line-number="23"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> +<a class="sourceLine" id="cb313-24" data-line-number="24"> :\par</a> +<a class="sourceLine" id="cb313-25" data-line-number="25"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> +<a class="sourceLine" id="cb313-26" data-line-number="26">}</a> +<a class="sourceLine" id="cb313-27" data-line-number="27"><span class="fu">\def</span>\markdownRendererUlBegin{}</a> +<a class="sourceLine" id="cb313-28" data-line-number="28"><span class="fu">\def</span>\markdownRendererUlItem{--\kern 0.5em}</a> +<a class="sourceLine" id="cb313-29" data-line-number="29"><span class="fu">\def</span>\markdownRendererUlItemEnd{.\par}</a> +<a class="sourceLine" id="cb313-30" data-line-number="30"><span class="fu">\def</span>\markdownRendererUlEnd{}</a> +<a class="sourceLine" id="cb313-31" data-line-number="31"></a> +<a class="sourceLine" id="cb313-32" data-line-number="32"><span class="fu">\markdownBegin</span></a> +<a class="sourceLine" id="cb313-33" data-line-number="33">This is a loose list</a> +<a class="sourceLine" id="cb313-34" data-line-number="34"></a> +<a class="sourceLine" id="cb313-35" data-line-number="35">- This is the first item</a> +<a class="sourceLine" id="cb313-36" data-line-number="36"></a> +<a class="sourceLine" id="cb313-37" data-line-number="37">- This is the second item</a> +<a class="sourceLine" id="cb313-38" data-line-number="38"></a> +<a class="sourceLine" id="cb313-39" data-line-number="39">- This is the third item</a> +<a class="sourceLine" id="cb313-40" data-line-number="40"><span class="fu">\markdownEnd</span></a> +<a class="sourceLine" id="cb313-41" data-line-number="41"></a> +<a class="sourceLine" id="cb313-42" data-line-number="42"><span class="fu">\bye</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb314"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb314-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is a tight list (the first item, the second item, and the third item).</p> @@ -3967,55 +3967,55 @@ multiple paragraphs</li> </blockquote> <h5 id="latex-example-34" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb313"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb313-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> -<a class="sourceLine" id="cb313-2" data-line-number="2"><span class="bu">\usepackage</span>[tightLists]{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb313-3" data-line-number="3"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb313-4" data-line-number="4"></a> -<a class="sourceLine" id="cb313-5" data-line-number="5"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> -<a class="sourceLine" id="cb313-6" data-line-number="6"> renderers = {</a> -<a class="sourceLine" id="cb313-7" data-line-number="7"> interblockSeparator = {},</a> -<a class="sourceLine" id="cb313-8" data-line-number="8"> ulBeginTight = { (},</a> -<a class="sourceLine" id="cb313-9" data-line-number="9"> ulItem = {<span class="co">%</span></a> -<a class="sourceLine" id="cb313-10" data-line-number="10"> <span class="fu">\def</span>\markdownRendererUlItem{<span class="co">%</span></a> -<a class="sourceLine" id="cb313-11" data-line-number="11"> ,</a> -<a class="sourceLine" id="cb313-12" data-line-number="12"> \def\markdownRendererUlItem{, and }<span class="co">%</span></a> -<a class="sourceLine" id="cb313-13" data-line-number="13"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb313-14" data-line-number="14"> },</a> -<a class="sourceLine" id="cb313-15" data-line-number="15"> ulItemEnd = {},</a> -<a class="sourceLine" id="cb313-16" data-line-number="16"> ulEndTight = {).},</a> -<a class="sourceLine" id="cb313-17" data-line-number="17"> },</a> -<a class="sourceLine" id="cb313-18" data-line-number="18">}</a> -<a class="sourceLine" id="cb313-19" data-line-number="19">This is a tight list</a> -<a class="sourceLine" id="cb313-20" data-line-number="20"></a> -<a class="sourceLine" id="cb313-21" data-line-number="21">- the first item</a> -<a class="sourceLine" id="cb313-22" data-line-number="22">- the second item</a> -<a class="sourceLine" id="cb313-23" data-line-number="23">- the third item</a> -<a class="sourceLine" id="cb313-24" data-line-number="24"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> -<a class="sourceLine" id="cb313-25" data-line-number="25"></a> -<a class="sourceLine" id="cb313-26" data-line-number="26"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> -<a class="sourceLine" id="cb313-27" data-line-number="27"> renderers = {</a> -<a class="sourceLine" id="cb313-28" data-line-number="28"> interblockSeparator = {<span class="co">%</span></a> -<a class="sourceLine" id="cb313-29" data-line-number="29"> :<span class="fu">\par</span></a> -<a class="sourceLine" id="cb313-30" data-line-number="30"> <span class="fu">\def</span>\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> -<a class="sourceLine" id="cb313-31" data-line-number="31"> },</a> -<a class="sourceLine" id="cb313-32" data-line-number="32"> ulBeginTight = {<span class="kw">\begin</span>{<span class="ex">itemize</span>}},</a> -<a class="sourceLine" id="cb313-33" data-line-number="33"> ulItem = {<span class="fu">\item</span>},</a> -<a class="sourceLine" id="cb313-34" data-line-number="34"> ulItemEnd = {.},</a> -<a class="sourceLine" id="cb313-35" data-line-number="35"> ulEnd = {<span class="kw">\end</span>{<span class="ex">itemize</span>}},</a> -<a class="sourceLine" id="cb313-36" data-line-number="36"> },</a> -<a class="sourceLine" id="cb313-37" data-line-number="37">}</a> -<a class="sourceLine" id="cb313-38" data-line-number="38">This is a loose list</a> -<a class="sourceLine" id="cb313-39" data-line-number="39"></a> -<a class="sourceLine" id="cb313-40" data-line-number="40">- This is the first item</a> -<a class="sourceLine" id="cb313-41" data-line-number="41"></a> -<a class="sourceLine" id="cb313-42" data-line-number="42">- This is the second item</a> -<a class="sourceLine" id="cb313-43" data-line-number="43"></a> -<a class="sourceLine" id="cb313-44" data-line-number="44">- This is the third item</a> -<a class="sourceLine" id="cb313-45" data-line-number="45"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> -<a class="sourceLine" id="cb313-46" data-line-number="46"></a> -<a class="sourceLine" id="cb313-47" data-line-number="47"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb314"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb314-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb315"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb315-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> +<a class="sourceLine" id="cb315-2" data-line-number="2"><span class="bu">\usepackage</span>[tightLists]{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb315-3" data-line-number="3"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb315-4" data-line-number="4"></a> +<a class="sourceLine" id="cb315-5" data-line-number="5"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> +<a class="sourceLine" id="cb315-6" data-line-number="6"> renderers = {</a> +<a class="sourceLine" id="cb315-7" data-line-number="7"> interblockSeparator = {},</a> +<a class="sourceLine" id="cb315-8" data-line-number="8"> ulBeginTight = { (},</a> +<a class="sourceLine" id="cb315-9" data-line-number="9"> ulItem = {<span class="co">%</span></a> +<a class="sourceLine" id="cb315-10" data-line-number="10"> <span class="fu">\def</span>\markdownRendererUlItem{<span class="co">%</span></a> +<a class="sourceLine" id="cb315-11" data-line-number="11"> ,</a> +<a class="sourceLine" id="cb315-12" data-line-number="12"> \def\markdownRendererUlItem{, and }<span class="co">%</span></a> +<a class="sourceLine" id="cb315-13" data-line-number="13"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb315-14" data-line-number="14"> },</a> +<a class="sourceLine" id="cb315-15" data-line-number="15"> ulItemEnd = {},</a> +<a class="sourceLine" id="cb315-16" data-line-number="16"> ulEndTight = {).},</a> +<a class="sourceLine" id="cb315-17" data-line-number="17"> },</a> +<a class="sourceLine" id="cb315-18" data-line-number="18">}</a> +<a class="sourceLine" id="cb315-19" data-line-number="19">This is a tight list</a> +<a class="sourceLine" id="cb315-20" data-line-number="20"></a> +<a class="sourceLine" id="cb315-21" data-line-number="21">- the first item</a> +<a class="sourceLine" id="cb315-22" data-line-number="22">- the second item</a> +<a class="sourceLine" id="cb315-23" data-line-number="23">- the third item</a> +<a class="sourceLine" id="cb315-24" data-line-number="24"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> +<a class="sourceLine" id="cb315-25" data-line-number="25"></a> +<a class="sourceLine" id="cb315-26" data-line-number="26"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> +<a class="sourceLine" id="cb315-27" data-line-number="27"> renderers = {</a> +<a class="sourceLine" id="cb315-28" data-line-number="28"> interblockSeparator = {<span class="co">%</span></a> +<a class="sourceLine" id="cb315-29" data-line-number="29"> :<span class="fu">\par</span></a> +<a class="sourceLine" id="cb315-30" data-line-number="30"> <span class="fu">\def</span>\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> +<a class="sourceLine" id="cb315-31" data-line-number="31"> },</a> +<a class="sourceLine" id="cb315-32" data-line-number="32"> ulBeginTight = {<span class="kw">\begin</span>{<span class="ex">itemize</span>}},</a> +<a class="sourceLine" id="cb315-33" data-line-number="33"> ulItem = {<span class="fu">\item</span>},</a> +<a class="sourceLine" id="cb315-34" data-line-number="34"> ulItemEnd = {.},</a> +<a class="sourceLine" id="cb315-35" data-line-number="35"> ulEnd = {<span class="kw">\end</span>{<span class="ex">itemize</span>}},</a> +<a class="sourceLine" id="cb315-36" data-line-number="36"> },</a> +<a class="sourceLine" id="cb315-37" data-line-number="37">}</a> +<a class="sourceLine" id="cb315-38" data-line-number="38">This is a loose list</a> +<a class="sourceLine" id="cb315-39" data-line-number="39"></a> +<a class="sourceLine" id="cb315-40" data-line-number="40">- This is the first item</a> +<a class="sourceLine" id="cb315-41" data-line-number="41"></a> +<a class="sourceLine" id="cb315-42" data-line-number="42">- This is the second item</a> +<a class="sourceLine" id="cb315-43" data-line-number="43"></a> +<a class="sourceLine" id="cb315-44" data-line-number="44">- This is the third item</a> +<a class="sourceLine" id="cb315-45" data-line-number="45"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> +<a class="sourceLine" id="cb315-46" data-line-number="46"></a> +<a class="sourceLine" id="cb315-47" data-line-number="47"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb316"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb316-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is a tight list (the first item, the second item, and the third item).</p> @@ -4028,51 +4028,51 @@ multiple paragraphs</li> </blockquote> <h5 id="context-example-29" class="unnumbered">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb315"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb315-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> -<a class="sourceLine" id="cb315-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionTightLists{true}</a> -<a class="sourceLine" id="cb315-3" data-line-number="3"><span class="fu">\starttext</span></a> -<a class="sourceLine" id="cb315-4" data-line-number="4"></a> -<a class="sourceLine" id="cb315-5" data-line-number="5"><span class="fu">\def</span>\markdownRendererInterblockSeparator{}</a> -<a class="sourceLine" id="cb315-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererUlBeginTight{ (}</a> -<a class="sourceLine" id="cb315-7" data-line-number="7"><span class="fu">\def</span>\markdownRendererUlItem{<span class="co">%</span></a> -<a class="sourceLine" id="cb315-8" data-line-number="8"> \def\markdownRendererUlItem{<span class="co">%</span></a> -<a class="sourceLine" id="cb315-9" data-line-number="9"> ,</a> -<a class="sourceLine" id="cb315-10" data-line-number="10"> \def\markdownRendererUlItem{, and }<span class="co">%</span></a> -<a class="sourceLine" id="cb315-11" data-line-number="11"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb315-12" data-line-number="12">}</a> -<a class="sourceLine" id="cb315-13" data-line-number="13"><span class="fu">\def</span>\markdownRendererUlItemEnd{}</a> -<a class="sourceLine" id="cb315-14" data-line-number="14"><span class="fu">\def</span>\markdownRendererUlEndTight{).}</a> -<a class="sourceLine" id="cb315-15" data-line-number="15"></a> -<a class="sourceLine" id="cb315-16" data-line-number="16"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb315-17" data-line-number="17">This is a tight list</a> -<a class="sourceLine" id="cb315-18" data-line-number="18"></a> -<a class="sourceLine" id="cb315-19" data-line-number="19">- the first item</a> -<a class="sourceLine" id="cb315-20" data-line-number="20">- the second item</a> -<a class="sourceLine" id="cb315-21" data-line-number="21">- the third item</a> -<a class="sourceLine" id="cb315-22" data-line-number="22"><span class="fu">\stopmarkdown</span></a> -<a class="sourceLine" id="cb315-23" data-line-number="23"></a> -<a class="sourceLine" id="cb315-24" data-line-number="24"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> -<a class="sourceLine" id="cb315-25" data-line-number="25"> :\par</a> -<a class="sourceLine" id="cb315-26" data-line-number="26"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> -<a class="sourceLine" id="cb315-27" data-line-number="27">}</a> -<a class="sourceLine" id="cb315-28" data-line-number="28"><span class="fu">\def</span>\markdownRendererUlBegin{\startitemize}</a> -<a class="sourceLine" id="cb315-29" data-line-number="29"><span class="fu">\def</span>\markdownRendererUlItem{\item}</a> -<a class="sourceLine" id="cb315-30" data-line-number="30"><span class="fu">\def</span>\markdownRendererUlItemEnd{.}</a> -<a class="sourceLine" id="cb315-31" data-line-number="31"><span class="fu">\def</span>\markdownRendererUlEnd{\stopitemize}</a> -<a class="sourceLine" id="cb315-32" data-line-number="32"></a> -<a class="sourceLine" id="cb315-33" data-line-number="33"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb315-34" data-line-number="34">This is a loose list</a> -<a class="sourceLine" id="cb315-35" data-line-number="35"></a> -<a class="sourceLine" id="cb315-36" data-line-number="36">- This is the first item</a> -<a class="sourceLine" id="cb315-37" data-line-number="37"></a> -<a class="sourceLine" id="cb315-38" data-line-number="38">- This is the second item</a> -<a class="sourceLine" id="cb315-39" data-line-number="39"></a> -<a class="sourceLine" id="cb315-40" data-line-number="40">- This is the third item</a> -<a class="sourceLine" id="cb315-41" data-line-number="41"><span class="fu">\stopmarkdown</span></a> -<a class="sourceLine" id="cb315-42" data-line-number="42"></a> -<a class="sourceLine" id="cb315-43" data-line-number="43"><span class="fu">\stoptext</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb316"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb316-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb317"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb317-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> +<a class="sourceLine" id="cb317-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionTightLists{true}</a> +<a class="sourceLine" id="cb317-3" data-line-number="3"><span class="fu">\starttext</span></a> +<a class="sourceLine" id="cb317-4" data-line-number="4"></a> +<a class="sourceLine" id="cb317-5" data-line-number="5"><span class="fu">\def</span>\markdownRendererInterblockSeparator{}</a> +<a class="sourceLine" id="cb317-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererUlBeginTight{ (}</a> +<a class="sourceLine" id="cb317-7" data-line-number="7"><span class="fu">\def</span>\markdownRendererUlItem{<span class="co">%</span></a> +<a class="sourceLine" id="cb317-8" data-line-number="8"> \def\markdownRendererUlItem{<span class="co">%</span></a> +<a class="sourceLine" id="cb317-9" data-line-number="9"> ,</a> +<a class="sourceLine" id="cb317-10" data-line-number="10"> \def\markdownRendererUlItem{, and }<span class="co">%</span></a> +<a class="sourceLine" id="cb317-11" data-line-number="11"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb317-12" data-line-number="12">}</a> +<a class="sourceLine" id="cb317-13" data-line-number="13"><span class="fu">\def</span>\markdownRendererUlItemEnd{}</a> +<a class="sourceLine" id="cb317-14" data-line-number="14"><span class="fu">\def</span>\markdownRendererUlEndTight{).}</a> +<a class="sourceLine" id="cb317-15" data-line-number="15"></a> +<a class="sourceLine" id="cb317-16" data-line-number="16"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb317-17" data-line-number="17">This is a tight list</a> +<a class="sourceLine" id="cb317-18" data-line-number="18"></a> +<a class="sourceLine" id="cb317-19" data-line-number="19">- the first item</a> +<a class="sourceLine" id="cb317-20" data-line-number="20">- the second item</a> +<a class="sourceLine" id="cb317-21" data-line-number="21">- the third item</a> +<a class="sourceLine" id="cb317-22" data-line-number="22"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb317-23" data-line-number="23"></a> +<a class="sourceLine" id="cb317-24" data-line-number="24"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> +<a class="sourceLine" id="cb317-25" data-line-number="25"> :\par</a> +<a class="sourceLine" id="cb317-26" data-line-number="26"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> +<a class="sourceLine" id="cb317-27" data-line-number="27">}</a> +<a class="sourceLine" id="cb317-28" data-line-number="28"><span class="fu">\def</span>\markdownRendererUlBegin{\startitemize}</a> +<a class="sourceLine" id="cb317-29" data-line-number="29"><span class="fu">\def</span>\markdownRendererUlItem{\item}</a> +<a class="sourceLine" id="cb317-30" data-line-number="30"><span class="fu">\def</span>\markdownRendererUlItemEnd{.}</a> +<a class="sourceLine" id="cb317-31" data-line-number="31"><span class="fu">\def</span>\markdownRendererUlEnd{\stopitemize}</a> +<a class="sourceLine" id="cb317-32" data-line-number="32"></a> +<a class="sourceLine" id="cb317-33" data-line-number="33"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb317-34" data-line-number="34">This is a loose list</a> +<a class="sourceLine" id="cb317-35" data-line-number="35"></a> +<a class="sourceLine" id="cb317-36" data-line-number="36">- This is the first item</a> +<a class="sourceLine" id="cb317-37" data-line-number="37"></a> +<a class="sourceLine" id="cb317-38" data-line-number="38">- This is the second item</a> +<a class="sourceLine" id="cb317-39" data-line-number="39"></a> +<a class="sourceLine" id="cb317-40" data-line-number="40">- This is the third item</a> +<a class="sourceLine" id="cb317-41" data-line-number="41"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb317-42" data-line-number="42"></a> +<a class="sourceLine" id="cb317-43" data-line-number="43"><span class="fu">\stoptext</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb318"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb318-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is a tight list (the first item, the second item, and the third item).</p> @@ -4093,68 +4093,68 @@ multiple paragraphs</li> <p>The <code>\markdownRendererOlEndTight</code> macro represents the end of an ordered list that contains no item with several paragraphs of text (the list is tight). This macro will only be produced, when the <strong><code>tightLists</code></strong> option is <code>false</code>. The macro receives no arguments.</p> <h5 id="plain-tex-example-20" class="unnumbered">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb317"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb317-1" data-line-number="1"><span class="fu">\input</span> markdown</a> -<a class="sourceLine" id="cb317-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionTightLists{true}</a> -<a class="sourceLine" id="cb317-3" data-line-number="3"><span class="fu">\def</span>\markdownOptionStartNumber{true}</a> -<a class="sourceLine" id="cb317-4" data-line-number="4"></a> -<a class="sourceLine" id="cb317-5" data-line-number="5"><span class="fu">\def</span>\markdownRendererInterblockSeparator{}</a> -<a class="sourceLine" id="cb317-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererOlBeginTight{ (}</a> -<a class="sourceLine" id="cb317-7" data-line-number="7"><span class="fu">\def</span>\markdownRendererOlItemWithNumber#1{<span class="co">%</span></a> -<a class="sourceLine" id="cb317-8" data-line-number="8"> \ifnum #1=1\relax</a> -<a class="sourceLine" id="cb317-9" data-line-number="9"> the first</a> -<a class="sourceLine" id="cb317-10" data-line-number="10"> \else</a> -<a class="sourceLine" id="cb317-11" data-line-number="11"> \ifnum #1=2\relax</a> -<a class="sourceLine" id="cb317-12" data-line-number="12"> , the second</a> -<a class="sourceLine" id="cb317-13" data-line-number="13"> \else</a> -<a class="sourceLine" id="cb317-14" data-line-number="14"> , and the third</a> -<a class="sourceLine" id="cb317-15" data-line-number="15"> \fi</a> -<a class="sourceLine" id="cb317-16" data-line-number="16"> \fi</a> -<a class="sourceLine" id="cb317-17" data-line-number="17">}</a> -<a class="sourceLine" id="cb317-18" data-line-number="18"><span class="fu">\def</span>\markdownRendererOlItemEnd{}</a> -<a class="sourceLine" id="cb317-19" data-line-number="19"><span class="fu">\def</span>\markdownRendererOlEndTight{).}</a> -<a class="sourceLine" id="cb317-20" data-line-number="20"></a> -<a class="sourceLine" id="cb317-21" data-line-number="21"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb317-22" data-line-number="22">This is a tight list</a> -<a class="sourceLine" id="cb317-23" data-line-number="23"></a> -<a class="sourceLine" id="cb317-24" data-line-number="24">1. item</a> -<a class="sourceLine" id="cb317-25" data-line-number="25">2. item</a> -<a class="sourceLine" id="cb317-26" data-line-number="26">3. item</a> -<a class="sourceLine" id="cb317-27" data-line-number="27"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb317-28" data-line-number="28"></a> -<a class="sourceLine" id="cb317-29" data-line-number="29"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> -<a class="sourceLine" id="cb317-30" data-line-number="30"> :\par</a> -<a class="sourceLine" id="cb317-31" data-line-number="31"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> -<a class="sourceLine" id="cb317-32" data-line-number="32">}</a> -<a class="sourceLine" id="cb317-33" data-line-number="33"><span class="fu">\def</span>\markdownRendererOlBegin{}</a> -<a class="sourceLine" id="cb317-34" data-line-number="34"><span class="fu">\def</span>\markdownRendererOlItemWithNumber#1{<span class="co">%</span></a> -<a class="sourceLine" id="cb317-35" data-line-number="35"> #1.\kern 0.5em<span class="co">%</span></a> -<a class="sourceLine" id="cb317-36" data-line-number="36"> This is the</a> -<a class="sourceLine" id="cb317-37" data-line-number="37"> \ifnum #1=1\relax</a> -<a class="sourceLine" id="cb317-38" data-line-number="38"> first</a> -<a class="sourceLine" id="cb317-39" data-line-number="39"> \else</a> -<a class="sourceLine" id="cb317-40" data-line-number="40"> \ifnum #1=2\relax</a> -<a class="sourceLine" id="cb317-41" data-line-number="41"> second</a> -<a class="sourceLine" id="cb317-42" data-line-number="42"> \else</a> -<a class="sourceLine" id="cb317-43" data-line-number="43"> third</a> -<a class="sourceLine" id="cb317-44" data-line-number="44"> \fi</a> -<a class="sourceLine" id="cb317-45" data-line-number="45"> \fi</a> -<a class="sourceLine" id="cb317-46" data-line-number="46">}</a> -<a class="sourceLine" id="cb317-47" data-line-number="47"><span class="fu">\def</span>\markdownRendererOlItemEnd{.\par}</a> -<a class="sourceLine" id="cb317-48" data-line-number="48"><span class="fu">\def</span>\markdownRendererOlEnd{}</a> -<a class="sourceLine" id="cb317-49" data-line-number="49"></a> -<a class="sourceLine" id="cb317-50" data-line-number="50"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb317-51" data-line-number="51">This is a loose list</a> -<a class="sourceLine" id="cb317-52" data-line-number="52"></a> -<a class="sourceLine" id="cb317-53" data-line-number="53">1. item</a> -<a class="sourceLine" id="cb317-54" data-line-number="54"></a> -<a class="sourceLine" id="cb317-55" data-line-number="55">2. item</a> -<a class="sourceLine" id="cb317-56" data-line-number="56"></a> -<a class="sourceLine" id="cb317-57" data-line-number="57">3. item</a> -<a class="sourceLine" id="cb317-58" data-line-number="58"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb317-59" data-line-number="59"></a> -<a class="sourceLine" id="cb317-60" data-line-number="60"><span class="fu">\bye</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb318"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb318-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb319"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb319-1" data-line-number="1"><span class="fu">\input</span> markdown</a> +<a class="sourceLine" id="cb319-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionTightLists{true}</a> +<a class="sourceLine" id="cb319-3" data-line-number="3"><span class="fu">\def</span>\markdownOptionStartNumber{true}</a> +<a class="sourceLine" id="cb319-4" data-line-number="4"></a> +<a class="sourceLine" id="cb319-5" data-line-number="5"><span class="fu">\def</span>\markdownRendererInterblockSeparator{}</a> +<a class="sourceLine" id="cb319-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererOlBeginTight{ (}</a> +<a class="sourceLine" id="cb319-7" data-line-number="7"><span class="fu">\def</span>\markdownRendererOlItemWithNumber#1{<span class="co">%</span></a> +<a class="sourceLine" id="cb319-8" data-line-number="8"> \ifnum #1=1\relax</a> +<a class="sourceLine" id="cb319-9" data-line-number="9"> the first</a> +<a class="sourceLine" id="cb319-10" data-line-number="10"> \else</a> +<a class="sourceLine" id="cb319-11" data-line-number="11"> \ifnum #1=2\relax</a> +<a class="sourceLine" id="cb319-12" data-line-number="12"> , the second</a> +<a class="sourceLine" id="cb319-13" data-line-number="13"> \else</a> +<a class="sourceLine" id="cb319-14" data-line-number="14"> , and the third</a> +<a class="sourceLine" id="cb319-15" data-line-number="15"> \fi</a> +<a class="sourceLine" id="cb319-16" data-line-number="16"> \fi</a> +<a class="sourceLine" id="cb319-17" data-line-number="17">}</a> +<a class="sourceLine" id="cb319-18" data-line-number="18"><span class="fu">\def</span>\markdownRendererOlItemEnd{}</a> +<a class="sourceLine" id="cb319-19" data-line-number="19"><span class="fu">\def</span>\markdownRendererOlEndTight{).}</a> +<a class="sourceLine" id="cb319-20" data-line-number="20"></a> +<a class="sourceLine" id="cb319-21" data-line-number="21"><span class="fu">\markdownBegin</span></a> +<a class="sourceLine" id="cb319-22" data-line-number="22">This is a tight list</a> +<a class="sourceLine" id="cb319-23" data-line-number="23"></a> +<a class="sourceLine" id="cb319-24" data-line-number="24">1. item</a> +<a class="sourceLine" id="cb319-25" data-line-number="25">2. item</a> +<a class="sourceLine" id="cb319-26" data-line-number="26">3. item</a> +<a class="sourceLine" id="cb319-27" data-line-number="27"><span class="fu">\markdownEnd</span></a> +<a class="sourceLine" id="cb319-28" data-line-number="28"></a> +<a class="sourceLine" id="cb319-29" data-line-number="29"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> +<a class="sourceLine" id="cb319-30" data-line-number="30"> :\par</a> +<a class="sourceLine" id="cb319-31" data-line-number="31"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> +<a class="sourceLine" id="cb319-32" data-line-number="32">}</a> +<a class="sourceLine" id="cb319-33" data-line-number="33"><span class="fu">\def</span>\markdownRendererOlBegin{}</a> +<a class="sourceLine" id="cb319-34" data-line-number="34"><span class="fu">\def</span>\markdownRendererOlItemWithNumber#1{<span class="co">%</span></a> +<a class="sourceLine" id="cb319-35" data-line-number="35"> #1.\kern 0.5em<span class="co">%</span></a> +<a class="sourceLine" id="cb319-36" data-line-number="36"> This is the</a> +<a class="sourceLine" id="cb319-37" data-line-number="37"> \ifnum #1=1\relax</a> +<a class="sourceLine" id="cb319-38" data-line-number="38"> first</a> +<a class="sourceLine" id="cb319-39" data-line-number="39"> \else</a> +<a class="sourceLine" id="cb319-40" data-line-number="40"> \ifnum #1=2\relax</a> +<a class="sourceLine" id="cb319-41" data-line-number="41"> second</a> +<a class="sourceLine" id="cb319-42" data-line-number="42"> \else</a> +<a class="sourceLine" id="cb319-43" data-line-number="43"> third</a> +<a class="sourceLine" id="cb319-44" data-line-number="44"> \fi</a> +<a class="sourceLine" id="cb319-45" data-line-number="45"> \fi</a> +<a class="sourceLine" id="cb319-46" data-line-number="46">}</a> +<a class="sourceLine" id="cb319-47" data-line-number="47"><span class="fu">\def</span>\markdownRendererOlItemEnd{.\par}</a> +<a class="sourceLine" id="cb319-48" data-line-number="48"><span class="fu">\def</span>\markdownRendererOlEnd{}</a> +<a class="sourceLine" id="cb319-49" data-line-number="49"></a> +<a class="sourceLine" id="cb319-50" data-line-number="50"><span class="fu">\markdownBegin</span></a> +<a class="sourceLine" id="cb319-51" data-line-number="51">This is a loose list</a> +<a class="sourceLine" id="cb319-52" data-line-number="52"></a> +<a class="sourceLine" id="cb319-53" data-line-number="53">1. item</a> +<a class="sourceLine" id="cb319-54" data-line-number="54"></a> +<a class="sourceLine" id="cb319-55" data-line-number="55">2. item</a> +<a class="sourceLine" id="cb319-56" data-line-number="56"></a> +<a class="sourceLine" id="cb319-57" data-line-number="57">3. item</a> +<a class="sourceLine" id="cb319-58" data-line-number="58"><span class="fu">\markdownEnd</span></a> +<a class="sourceLine" id="cb319-59" data-line-number="59"></a> +<a class="sourceLine" id="cb319-60" data-line-number="60"><span class="fu">\bye</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb320"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb320-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is a tight list (the first item, the second item, and the third item).</p> @@ -4167,71 +4167,71 @@ multiple paragraphs</li> </blockquote> <h5 id="latex-example-35" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb319"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb319-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> -<a class="sourceLine" id="cb319-2" data-line-number="2"><span class="bu">\usepackage</span>[tightLists, startNumber]{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb319-3" data-line-number="3"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb319-4" data-line-number="4"></a> -<a class="sourceLine" id="cb319-5" data-line-number="5"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> -<a class="sourceLine" id="cb319-6" data-line-number="6"> renderers = {</a> -<a class="sourceLine" id="cb319-7" data-line-number="7"> interblockSeparator = {},</a> -<a class="sourceLine" id="cb319-8" data-line-number="8"> olBeginTight = { (},</a> -<a class="sourceLine" id="cb319-9" data-line-number="9"> olItemWithNumber = {<span class="co">%</span></a> -<a class="sourceLine" id="cb319-10" data-line-number="10"> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></a> -<a class="sourceLine" id="cb319-11" data-line-number="11"> the first</a> -<a class="sourceLine" id="cb319-12" data-line-number="12"> <span class="fu">\else</span></a> -<a class="sourceLine" id="cb319-13" data-line-number="13"> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></a> -<a class="sourceLine" id="cb319-14" data-line-number="14"> , the second</a> -<a class="sourceLine" id="cb319-15" data-line-number="15"> <span class="fu">\else</span></a> -<a class="sourceLine" id="cb319-16" data-line-number="16"> , and the third</a> -<a class="sourceLine" id="cb319-17" data-line-number="17"> <span class="fu">\fi</span></a> -<a class="sourceLine" id="cb319-18" data-line-number="18"> <span class="fu">\fi</span></a> -<a class="sourceLine" id="cb319-19" data-line-number="19"> },</a> -<a class="sourceLine" id="cb319-20" data-line-number="20"> olItemEnd = {},</a> -<a class="sourceLine" id="cb319-21" data-line-number="21"> olEndTight = {).},</a> -<a class="sourceLine" id="cb319-22" data-line-number="22"> },</a> -<a class="sourceLine" id="cb319-23" data-line-number="23">}</a> -<a class="sourceLine" id="cb319-24" data-line-number="24">This is a tight list</a> -<a class="sourceLine" id="cb319-25" data-line-number="25"></a> -<a class="sourceLine" id="cb319-26" data-line-number="26">1. item</a> -<a class="sourceLine" id="cb319-27" data-line-number="27">2. item</a> -<a class="sourceLine" id="cb319-28" data-line-number="28">3. item</a> -<a class="sourceLine" id="cb319-29" data-line-number="29"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> -<a class="sourceLine" id="cb319-30" data-line-number="30"></a> -<a class="sourceLine" id="cb319-31" data-line-number="31"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> -<a class="sourceLine" id="cb319-32" data-line-number="32"> renderers = {</a> -<a class="sourceLine" id="cb319-33" data-line-number="33"> interblockSeparator = {<span class="co">%</span></a> -<a class="sourceLine" id="cb319-34" data-line-number="34"> :<span class="fu">\par</span></a> -<a class="sourceLine" id="cb319-35" data-line-number="35"> <span class="fu">\def</span>\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> -<a class="sourceLine" id="cb319-36" data-line-number="36"> },</a> -<a class="sourceLine" id="cb319-37" data-line-number="37"> olBeginTight = {<span class="kw">\begin</span>{<span class="ex">enumerate</span>}},</a> -<a class="sourceLine" id="cb319-38" data-line-number="38"> olItemWithNumber = {<span class="co">%</span></a> -<a class="sourceLine" id="cb319-39" data-line-number="39"> <span class="fu">\item</span> This is the</a> -<a class="sourceLine" id="cb319-40" data-line-number="40"> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></a> -<a class="sourceLine" id="cb319-41" data-line-number="41"> first</a> -<a class="sourceLine" id="cb319-42" data-line-number="42"> <span class="fu">\else</span></a> -<a class="sourceLine" id="cb319-43" data-line-number="43"> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></a> -<a class="sourceLine" id="cb319-44" data-line-number="44"> second</a> -<a class="sourceLine" id="cb319-45" data-line-number="45"> <span class="fu">\else</span></a> -<a class="sourceLine" id="cb319-46" data-line-number="46"> third</a> -<a class="sourceLine" id="cb319-47" data-line-number="47"> <span class="fu">\fi</span></a> -<a class="sourceLine" id="cb319-48" data-line-number="48"> <span class="fu">\fi</span></a> -<a class="sourceLine" id="cb319-49" data-line-number="49"> },</a> -<a class="sourceLine" id="cb319-50" data-line-number="50"> olItemEnd = {.},</a> -<a class="sourceLine" id="cb319-51" data-line-number="51"> olEnd = {<span class="kw">\end</span>{<span class="ex">enumerate</span>}},</a> -<a class="sourceLine" id="cb319-52" data-line-number="52"> },</a> -<a class="sourceLine" id="cb319-53" data-line-number="53">}</a> -<a class="sourceLine" id="cb319-54" data-line-number="54">This is a loose list</a> -<a class="sourceLine" id="cb319-55" data-line-number="55"></a> -<a class="sourceLine" id="cb319-56" data-line-number="56">1. item</a> -<a class="sourceLine" id="cb319-57" data-line-number="57"></a> -<a class="sourceLine" id="cb319-58" data-line-number="58">2. item</a> -<a class="sourceLine" id="cb319-59" data-line-number="59"></a> -<a class="sourceLine" id="cb319-60" data-line-number="60">3. item</a> -<a class="sourceLine" id="cb319-61" data-line-number="61"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> -<a class="sourceLine" id="cb319-62" data-line-number="62"></a> -<a class="sourceLine" id="cb319-63" data-line-number="63"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb320"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb320-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb321"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb321-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> +<a class="sourceLine" id="cb321-2" data-line-number="2"><span class="bu">\usepackage</span>[tightLists, startNumber]{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb321-3" data-line-number="3"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb321-4" data-line-number="4"></a> +<a class="sourceLine" id="cb321-5" data-line-number="5"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> +<a class="sourceLine" id="cb321-6" data-line-number="6"> renderers = {</a> +<a class="sourceLine" id="cb321-7" data-line-number="7"> interblockSeparator = {},</a> +<a class="sourceLine" id="cb321-8" data-line-number="8"> olBeginTight = { (},</a> +<a class="sourceLine" id="cb321-9" data-line-number="9"> olItemWithNumber = {<span class="co">%</span></a> +<a class="sourceLine" id="cb321-10" data-line-number="10"> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></a> +<a class="sourceLine" id="cb321-11" data-line-number="11"> the first</a> +<a class="sourceLine" id="cb321-12" data-line-number="12"> <span class="fu">\else</span></a> +<a class="sourceLine" id="cb321-13" data-line-number="13"> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></a> +<a class="sourceLine" id="cb321-14" data-line-number="14"> , the second</a> +<a class="sourceLine" id="cb321-15" data-line-number="15"> <span class="fu">\else</span></a> +<a class="sourceLine" id="cb321-16" data-line-number="16"> , and the third</a> +<a class="sourceLine" id="cb321-17" data-line-number="17"> <span class="fu">\fi</span></a> +<a class="sourceLine" id="cb321-18" data-line-number="18"> <span class="fu">\fi</span></a> +<a class="sourceLine" id="cb321-19" data-line-number="19"> },</a> +<a class="sourceLine" id="cb321-20" data-line-number="20"> olItemEnd = {},</a> +<a class="sourceLine" id="cb321-21" data-line-number="21"> olEndTight = {).},</a> +<a class="sourceLine" id="cb321-22" data-line-number="22"> },</a> +<a class="sourceLine" id="cb321-23" data-line-number="23">}</a> +<a class="sourceLine" id="cb321-24" data-line-number="24">This is a tight list</a> +<a class="sourceLine" id="cb321-25" data-line-number="25"></a> +<a class="sourceLine" id="cb321-26" data-line-number="26">1. item</a> +<a class="sourceLine" id="cb321-27" data-line-number="27">2. item</a> +<a class="sourceLine" id="cb321-28" data-line-number="28">3. item</a> +<a class="sourceLine" id="cb321-29" data-line-number="29"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> +<a class="sourceLine" id="cb321-30" data-line-number="30"></a> +<a class="sourceLine" id="cb321-31" data-line-number="31"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> +<a class="sourceLine" id="cb321-32" data-line-number="32"> renderers = {</a> +<a class="sourceLine" id="cb321-33" data-line-number="33"> interblockSeparator = {<span class="co">%</span></a> +<a class="sourceLine" id="cb321-34" data-line-number="34"> :<span class="fu">\par</span></a> +<a class="sourceLine" id="cb321-35" data-line-number="35"> <span class="fu">\def</span>\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> +<a class="sourceLine" id="cb321-36" data-line-number="36"> },</a> +<a class="sourceLine" id="cb321-37" data-line-number="37"> olBeginTight = {<span class="kw">\begin</span>{<span class="ex">enumerate</span>}},</a> +<a class="sourceLine" id="cb321-38" data-line-number="38"> olItemWithNumber = {<span class="co">%</span></a> +<a class="sourceLine" id="cb321-39" data-line-number="39"> <span class="fu">\item</span> This is the</a> +<a class="sourceLine" id="cb321-40" data-line-number="40"> <span class="fu">\ifnum</span> #1=1<span class="fu">\relax</span></a> +<a class="sourceLine" id="cb321-41" data-line-number="41"> first</a> +<a class="sourceLine" id="cb321-42" data-line-number="42"> <span class="fu">\else</span></a> +<a class="sourceLine" id="cb321-43" data-line-number="43"> <span class="fu">\ifnum</span> #1=2<span class="fu">\relax</span></a> +<a class="sourceLine" id="cb321-44" data-line-number="44"> second</a> +<a class="sourceLine" id="cb321-45" data-line-number="45"> <span class="fu">\else</span></a> +<a class="sourceLine" id="cb321-46" data-line-number="46"> third</a> +<a class="sourceLine" id="cb321-47" data-line-number="47"> <span class="fu">\fi</span></a> +<a class="sourceLine" id="cb321-48" data-line-number="48"> <span class="fu">\fi</span></a> +<a class="sourceLine" id="cb321-49" data-line-number="49"> },</a> +<a class="sourceLine" id="cb321-50" data-line-number="50"> olItemEnd = {.},</a> +<a class="sourceLine" id="cb321-51" data-line-number="51"> olEnd = {<span class="kw">\end</span>{<span class="ex">enumerate</span>}},</a> +<a class="sourceLine" id="cb321-52" data-line-number="52"> },</a> +<a class="sourceLine" id="cb321-53" data-line-number="53">}</a> +<a class="sourceLine" id="cb321-54" data-line-number="54">This is a loose list</a> +<a class="sourceLine" id="cb321-55" data-line-number="55"></a> +<a class="sourceLine" id="cb321-56" data-line-number="56">1. item</a> +<a class="sourceLine" id="cb321-57" data-line-number="57"></a> +<a class="sourceLine" id="cb321-58" data-line-number="58">2. item</a> +<a class="sourceLine" id="cb321-59" data-line-number="59"></a> +<a class="sourceLine" id="cb321-60" data-line-number="60">3. item</a> +<a class="sourceLine" id="cb321-61" data-line-number="61"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> +<a class="sourceLine" id="cb321-62" data-line-number="62"></a> +<a class="sourceLine" id="cb321-63" data-line-number="63"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb322"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb322-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is a tight list (the first item, the second item, and the third item).</p> @@ -4244,69 +4244,69 @@ multiple paragraphs</li> </blockquote> <h5 id="context-example-30" class="unnumbered">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb321"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb321-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> -<a class="sourceLine" id="cb321-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionTightLists{true}</a> -<a class="sourceLine" id="cb321-3" data-line-number="3"><span class="fu">\def</span>\markdownOptionStartNumber{true}</a> -<a class="sourceLine" id="cb321-4" data-line-number="4"><span class="fu">\starttext</span></a> -<a class="sourceLine" id="cb321-5" data-line-number="5"></a> -<a class="sourceLine" id="cb321-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererInterblockSeparator{}</a> -<a class="sourceLine" id="cb321-7" data-line-number="7"><span class="fu">\def</span>\markdownRendererOlBeginTight{ (}</a> -<a class="sourceLine" id="cb321-8" data-line-number="8"><span class="fu">\def</span>\markdownRendererOlItemWithNumber#1{<span class="co">%</span></a> -<a class="sourceLine" id="cb321-9" data-line-number="9"> \ifnum #1=1\relax</a> -<a class="sourceLine" id="cb321-10" data-line-number="10"> the first</a> -<a class="sourceLine" id="cb321-11" data-line-number="11"> \else</a> -<a class="sourceLine" id="cb321-12" data-line-number="12"> \ifnum #1=2\relax</a> -<a class="sourceLine" id="cb321-13" data-line-number="13"> , the second</a> -<a class="sourceLine" id="cb321-14" data-line-number="14"> \else</a> -<a class="sourceLine" id="cb321-15" data-line-number="15"> , and the third</a> -<a class="sourceLine" id="cb321-16" data-line-number="16"> \fi</a> -<a class="sourceLine" id="cb321-17" data-line-number="17"> \fi</a> -<a class="sourceLine" id="cb321-18" data-line-number="18">}</a> -<a class="sourceLine" id="cb321-19" data-line-number="19"><span class="fu">\def</span>\markdownRendererOlItemEnd{}</a> -<a class="sourceLine" id="cb321-20" data-line-number="20"><span class="fu">\def</span>\markdownRendererOlEndTight{).}</a> -<a class="sourceLine" id="cb321-21" data-line-number="21"></a> -<a class="sourceLine" id="cb321-22" data-line-number="22"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb321-23" data-line-number="23">This is a tight list</a> -<a class="sourceLine" id="cb321-24" data-line-number="24"></a> -<a class="sourceLine" id="cb321-25" data-line-number="25">1. item</a> -<a class="sourceLine" id="cb321-26" data-line-number="26">2. item</a> -<a class="sourceLine" id="cb321-27" data-line-number="27">3. item</a> -<a class="sourceLine" id="cb321-28" data-line-number="28"><span class="fu">\stopmarkdown</span></a> -<a class="sourceLine" id="cb321-29" data-line-number="29"></a> -<a class="sourceLine" id="cb321-30" data-line-number="30"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> -<a class="sourceLine" id="cb321-31" data-line-number="31"> :\par</a> -<a class="sourceLine" id="cb321-32" data-line-number="32"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> -<a class="sourceLine" id="cb321-33" data-line-number="33">}</a> -<a class="sourceLine" id="cb321-34" data-line-number="34"><span class="fu">\def</span>\markdownRendererOlBegin{\startitemize}</a> -<a class="sourceLine" id="cb321-35" data-line-number="35"><span class="fu">\def</span>\markdownRendererOlItemWithNumber#1{<span class="co">%</span></a> -<a class="sourceLine" id="cb321-36" data-line-number="36"> \sym{#1.}</a> -<a class="sourceLine" id="cb321-37" data-line-number="37"> This is the</a> -<a class="sourceLine" id="cb321-38" data-line-number="38"> \ifnum #1=1\relax</a> -<a class="sourceLine" id="cb321-39" data-line-number="39"> first</a> -<a class="sourceLine" id="cb321-40" data-line-number="40"> \else</a> -<a class="sourceLine" id="cb321-41" data-line-number="41"> \ifnum #1=2\relax</a> -<a class="sourceLine" id="cb321-42" data-line-number="42"> second</a> -<a class="sourceLine" id="cb321-43" data-line-number="43"> \else</a> -<a class="sourceLine" id="cb321-44" data-line-number="44"> third</a> -<a class="sourceLine" id="cb321-45" data-line-number="45"> \fi</a> -<a class="sourceLine" id="cb321-46" data-line-number="46"> \fi</a> -<a class="sourceLine" id="cb321-47" data-line-number="47">}</a> -<a class="sourceLine" id="cb321-48" data-line-number="48"><span class="fu">\def</span>\markdownRendererOlItemEnd{.\par}</a> -<a class="sourceLine" id="cb321-49" data-line-number="49"><span class="fu">\def</span>\markdownRendererOlEnd{\stopitemize}</a> -<a class="sourceLine" id="cb321-50" data-line-number="50"></a> -<a class="sourceLine" id="cb321-51" data-line-number="51"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb321-52" data-line-number="52">This is a loose list</a> -<a class="sourceLine" id="cb321-53" data-line-number="53"></a> -<a class="sourceLine" id="cb321-54" data-line-number="54">1. item</a> -<a class="sourceLine" id="cb321-55" data-line-number="55"></a> -<a class="sourceLine" id="cb321-56" data-line-number="56">2. item</a> -<a class="sourceLine" id="cb321-57" data-line-number="57"></a> -<a class="sourceLine" id="cb321-58" data-line-number="58">3. item</a> -<a class="sourceLine" id="cb321-59" data-line-number="59"><span class="fu">\stopmarkdown</span></a> -<a class="sourceLine" id="cb321-60" data-line-number="60"></a> -<a class="sourceLine" id="cb321-61" data-line-number="61"><span class="fu">\stoptext</span></a></code></pre></div> +<div class="sourceCode" id="cb323"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb323-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> +<a class="sourceLine" id="cb323-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionTightLists{true}</a> +<a class="sourceLine" id="cb323-3" data-line-number="3"><span class="fu">\def</span>\markdownOptionStartNumber{true}</a> +<a class="sourceLine" id="cb323-4" data-line-number="4"><span class="fu">\starttext</span></a> +<a class="sourceLine" id="cb323-5" data-line-number="5"></a> +<a class="sourceLine" id="cb323-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererInterblockSeparator{}</a> +<a class="sourceLine" id="cb323-7" data-line-number="7"><span class="fu">\def</span>\markdownRendererOlBeginTight{ (}</a> +<a class="sourceLine" id="cb323-8" data-line-number="8"><span class="fu">\def</span>\markdownRendererOlItemWithNumber#1{<span class="co">%</span></a> +<a class="sourceLine" id="cb323-9" data-line-number="9"> \ifnum #1=1\relax</a> +<a class="sourceLine" id="cb323-10" data-line-number="10"> the first</a> +<a class="sourceLine" id="cb323-11" data-line-number="11"> \else</a> +<a class="sourceLine" id="cb323-12" data-line-number="12"> \ifnum #1=2\relax</a> +<a class="sourceLine" id="cb323-13" data-line-number="13"> , the second</a> +<a class="sourceLine" id="cb323-14" data-line-number="14"> \else</a> +<a class="sourceLine" id="cb323-15" data-line-number="15"> , and the third</a> +<a class="sourceLine" id="cb323-16" data-line-number="16"> \fi</a> +<a class="sourceLine" id="cb323-17" data-line-number="17"> \fi</a> +<a class="sourceLine" id="cb323-18" data-line-number="18">}</a> +<a class="sourceLine" id="cb323-19" data-line-number="19"><span class="fu">\def</span>\markdownRendererOlItemEnd{}</a> +<a class="sourceLine" id="cb323-20" data-line-number="20"><span class="fu">\def</span>\markdownRendererOlEndTight{).}</a> +<a class="sourceLine" id="cb323-21" data-line-number="21"></a> +<a class="sourceLine" id="cb323-22" data-line-number="22"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb323-23" data-line-number="23">This is a tight list</a> +<a class="sourceLine" id="cb323-24" data-line-number="24"></a> +<a class="sourceLine" id="cb323-25" data-line-number="25">1. item</a> +<a class="sourceLine" id="cb323-26" data-line-number="26">2. item</a> +<a class="sourceLine" id="cb323-27" data-line-number="27">3. item</a> +<a class="sourceLine" id="cb323-28" data-line-number="28"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb323-29" data-line-number="29"></a> +<a class="sourceLine" id="cb323-30" data-line-number="30"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> +<a class="sourceLine" id="cb323-31" data-line-number="31"> :\par</a> +<a class="sourceLine" id="cb323-32" data-line-number="32"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> +<a class="sourceLine" id="cb323-33" data-line-number="33">}</a> +<a class="sourceLine" id="cb323-34" data-line-number="34"><span class="fu">\def</span>\markdownRendererOlBegin{\startitemize}</a> +<a class="sourceLine" id="cb323-35" data-line-number="35"><span class="fu">\def</span>\markdownRendererOlItemWithNumber#1{<span class="co">%</span></a> +<a class="sourceLine" id="cb323-36" data-line-number="36"> \sym{#1.}</a> +<a class="sourceLine" id="cb323-37" data-line-number="37"> This is the</a> +<a class="sourceLine" id="cb323-38" data-line-number="38"> \ifnum #1=1\relax</a> +<a class="sourceLine" id="cb323-39" data-line-number="39"> first</a> +<a class="sourceLine" id="cb323-40" data-line-number="40"> \else</a> +<a class="sourceLine" id="cb323-41" data-line-number="41"> \ifnum #1=2\relax</a> +<a class="sourceLine" id="cb323-42" data-line-number="42"> second</a> +<a class="sourceLine" id="cb323-43" data-line-number="43"> \else</a> +<a class="sourceLine" id="cb323-44" data-line-number="44"> third</a> +<a class="sourceLine" id="cb323-45" data-line-number="45"> \fi</a> +<a class="sourceLine" id="cb323-46" data-line-number="46"> \fi</a> +<a class="sourceLine" id="cb323-47" data-line-number="47">}</a> +<a class="sourceLine" id="cb323-48" data-line-number="48"><span class="fu">\def</span>\markdownRendererOlItemEnd{.\par}</a> +<a class="sourceLine" id="cb323-49" data-line-number="49"><span class="fu">\def</span>\markdownRendererOlEnd{\stopitemize}</a> +<a class="sourceLine" id="cb323-50" data-line-number="50"></a> +<a class="sourceLine" id="cb323-51" data-line-number="51"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb323-52" data-line-number="52">This is a loose list</a> +<a class="sourceLine" id="cb323-53" data-line-number="53"></a> +<a class="sourceLine" id="cb323-54" data-line-number="54">1. item</a> +<a class="sourceLine" id="cb323-55" data-line-number="55"></a> +<a class="sourceLine" id="cb323-56" data-line-number="56">2. item</a> +<a class="sourceLine" id="cb323-57" data-line-number="57"></a> +<a class="sourceLine" id="cb323-58" data-line-number="58">3. item</a> +<a class="sourceLine" id="cb323-59" data-line-number="59"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb323-60" data-line-number="60"></a> +<a class="sourceLine" id="cb323-61" data-line-number="61"><span class="fu">\stoptext</span></a></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb322"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb322-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb324"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb324-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is a tight list (the first item, the second item, and the third item).</p> @@ -4329,132 +4329,33 @@ multiple paragraphs</li> <p>The <code>\markdownRendererDlEndTight</code> macro represents the end of a definition list that contains no item with several paragraphs of text (the list is tight). This macro will only be produced, when the <strong><code>tightLists</code></strong> option is <code>false</code>. The macro receives no arguments.</p> <h5 id="plain-tex-example-21" class="unnumbered">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb323"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb323-1" data-line-number="1"><span class="fu">\input</span> markdown</a> -<a class="sourceLine" id="cb323-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionDefinitionLists{true}</a> -<a class="sourceLine" id="cb323-3" data-line-number="3"><span class="fu">\def</span>\markdownOptionTightLists{true}</a> -<a class="sourceLine" id="cb323-4" data-line-number="4"></a> -<a class="sourceLine" id="cb323-5" data-line-number="5"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> -<a class="sourceLine" id="cb323-6" data-line-number="6"> :<span class="co">%</span></a> -<a class="sourceLine" id="cb323-7" data-line-number="7"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> -<a class="sourceLine" id="cb323-8" data-line-number="8">}</a> -<a class="sourceLine" id="cb323-9" data-line-number="9"><span class="fu">\def</span>\markdownRendererDlBeginTight{<span class="co">%</span></a> -<a class="sourceLine" id="cb323-10" data-line-number="10"> \begingroup</a> -<a class="sourceLine" id="cb323-11" data-line-number="11"> \parindent=0pt</a> -<a class="sourceLine" id="cb323-12" data-line-number="12">}</a> -<a class="sourceLine" id="cb323-13" data-line-number="13"><span class="fu">\def</span>\markdownRendererDlItem#1{<span class="co">%</span></a> -<a class="sourceLine" id="cb323-14" data-line-number="14"> \par{\bf#1}<span class="co">%</span></a> -<a class="sourceLine" id="cb323-15" data-line-number="15"> \def\markdownRendererDlDefinitionEnd{<span class="co">%</span></a> -<a class="sourceLine" id="cb323-16" data-line-number="16"> ,</a> -<a class="sourceLine" id="cb323-17" data-line-number="17"> \def\markdownRendererDlDefinitionEnd{<span class="co">%</span></a> -<a class="sourceLine" id="cb323-18" data-line-number="18"> , and</a> -<a class="sourceLine" id="cb323-19" data-line-number="19"> \def\markdownRendererDlDefinitionEnd{.}<span class="co">%</span></a> -<a class="sourceLine" id="cb323-20" data-line-number="20"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb323-21" data-line-number="21"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb323-22" data-line-number="22">}</a> -<a class="sourceLine" id="cb323-23" data-line-number="23"><span class="fu">\def</span>\markdownRendererDlItemEnd{}</a> -<a class="sourceLine" id="cb323-24" data-line-number="24"><span class="fu">\def</span>\markdownRendererDlDefinitionBegin{\par--\kern 0.5em}</a> -<a class="sourceLine" id="cb323-25" data-line-number="25"><span class="fu">\def</span>\markdownRendererDlEndTight{\endgroup}</a> -<a class="sourceLine" id="cb323-26" data-line-number="26"></a> -<a class="sourceLine" id="cb323-27" data-line-number="27"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb323-28" data-line-number="28">This is a tight definition list</a> -<a class="sourceLine" id="cb323-29" data-line-number="29"></a> -<a class="sourceLine" id="cb323-30" data-line-number="30">Coffee</a> -<a class="sourceLine" id="cb323-31" data-line-number="31">: black hot drink</a> -<a class="sourceLine" id="cb323-32" data-line-number="32">: prepared from roasted coffee beans</a> -<a class="sourceLine" id="cb323-33" data-line-number="33">: one of the most traded agricultural commodities in the world</a> -<a class="sourceLine" id="cb323-34" data-line-number="34"></a> -<a class="sourceLine" id="cb323-35" data-line-number="35">Milk</a> -<a class="sourceLine" id="cb323-36" data-line-number="36">: white cold drink</a> -<a class="sourceLine" id="cb323-37" data-line-number="37">: nutrient-rich</a> -<a class="sourceLine" id="cb323-38" data-line-number="38">: produced on an industrial scale</a> -<a class="sourceLine" id="cb323-39" data-line-number="39"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb323-40" data-line-number="40"></a> -<a class="sourceLine" id="cb323-41" data-line-number="41"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> -<a class="sourceLine" id="cb323-42" data-line-number="42"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> -<a class="sourceLine" id="cb323-43" data-line-number="43">}</a> -<a class="sourceLine" id="cb323-44" data-line-number="44"><span class="fu">\def</span>\markdownRendererDlBegin{}</a> -<a class="sourceLine" id="cb323-45" data-line-number="45"><span class="fu">\def</span>\markdownRendererDlItem#1{<span class="co">%</span></a> -<a class="sourceLine" id="cb323-46" data-line-number="46"> . #1 is a</a> -<a class="sourceLine" id="cb323-47" data-line-number="47"> \def\markdownRendererDlDefinitionBegin{<span class="co">%</span></a> -<a class="sourceLine" id="cb323-48" data-line-number="48"> \def\markdownRendererDlDefinitionBegin{<span class="co">%</span></a> -<a class="sourceLine" id="cb323-49" data-line-number="49"> ,</a> -<a class="sourceLine" id="cb323-50" data-line-number="50"> \def\markdownRendererDlDefinitionBegin{, and }<span class="co">%</span></a> -<a class="sourceLine" id="cb323-51" data-line-number="51"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb323-52" data-line-number="52"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb323-53" data-line-number="53">}</a> -<a class="sourceLine" id="cb323-54" data-line-number="54"><span class="fu">\def</span>\markdownRendererDlItemEnd{}</a> -<a class="sourceLine" id="cb323-55" data-line-number="55"><span class="fu">\def</span>\markdownRendererDlDefinitionEnd{}</a> -<a class="sourceLine" id="cb323-56" data-line-number="56"><span class="fu">\def</span>\markdownRendererDlEnd{.}</a> -<a class="sourceLine" id="cb323-57" data-line-number="57"></a> -<a class="sourceLine" id="cb323-58" data-line-number="58"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb323-59" data-line-number="59">This is a loose definition list</a> -<a class="sourceLine" id="cb323-60" data-line-number="60"></a> -<a class="sourceLine" id="cb323-61" data-line-number="61">Coffee</a> -<a class="sourceLine" id="cb323-62" data-line-number="62"></a> -<a class="sourceLine" id="cb323-63" data-line-number="63">: black hot drink</a> -<a class="sourceLine" id="cb323-64" data-line-number="64"></a> -<a class="sourceLine" id="cb323-65" data-line-number="65">: prepared from roasted coffee beans</a> -<a class="sourceLine" id="cb323-66" data-line-number="66"></a> -<a class="sourceLine" id="cb323-67" data-line-number="67">: one of the most traded agricultural commodities in the world</a> -<a class="sourceLine" id="cb323-68" data-line-number="68"></a> -<a class="sourceLine" id="cb323-69" data-line-number="69">Milk</a> -<a class="sourceLine" id="cb323-70" data-line-number="70"></a> -<a class="sourceLine" id="cb323-71" data-line-number="71">: white cold drink</a> -<a class="sourceLine" id="cb323-72" data-line-number="72"></a> -<a class="sourceLine" id="cb323-73" data-line-number="73">: nutrient-rich</a> -<a class="sourceLine" id="cb323-74" data-line-number="74"></a> -<a class="sourceLine" id="cb323-75" data-line-number="75">: produced on an industrial scale</a> -<a class="sourceLine" id="cb323-76" data-line-number="76"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb323-77" data-line-number="77"></a> -<a class="sourceLine" id="cb323-78" data-line-number="78"><span class="fu">\bye</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb324"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb324-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> -<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> -<blockquote> -<p>This is a tight definition list:</p> -<p><strong>Coffee</strong></p> -<ul> -<li>black hot drink,</li> -<li>prepared from roasted coffee beans, and</li> -<li>one of the most traded agricultural commodities in the world.</li> -</ul> -<p><strong>Milk</strong></p> -<ul> -<li>white cold drink,</li> -<li>nutrient-rich, and</li> -<li>produced on an industrial scale.</li> -</ul> -<p>This is a loose definition list. Coffee is a black hot drink, prepared from roasted coffee beans, and one of the most traded agricultural commodities in the world. Milk is a white cold drink, nutrient-rich, and produced on an industrial scale.</p> -</blockquote> -<h5 id="latex-example-36" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> -<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb325"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb325-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> -<a class="sourceLine" id="cb325-2" data-line-number="2"><span class="bu">\usepackage</span>[definitionLists, tightLists]{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb325-3" data-line-number="3"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<div class="sourceCode" id="cb325"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb325-1" data-line-number="1"><span class="fu">\input</span> markdown</a> +<a class="sourceLine" id="cb325-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionDefinitionLists{true}</a> +<a class="sourceLine" id="cb325-3" data-line-number="3"><span class="fu">\def</span>\markdownOptionTightLists{true}</a> <a class="sourceLine" id="cb325-4" data-line-number="4"></a> -<a class="sourceLine" id="cb325-5" data-line-number="5"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> -<a class="sourceLine" id="cb325-6" data-line-number="6"> renderers = {</a> -<a class="sourceLine" id="cb325-7" data-line-number="7"> interblockSeparator = {<span class="co">%</span></a> -<a class="sourceLine" id="cb325-8" data-line-number="8"> :<span class="co">%</span></a> -<a class="sourceLine" id="cb325-9" data-line-number="9"> <span class="fu">\def</span>\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> -<a class="sourceLine" id="cb325-10" data-line-number="10"> },</a> -<a class="sourceLine" id="cb325-11" data-line-number="11"> dlBeginTight = {<span class="kw">\begin</span>{<span class="ex">description</span>}},</a> -<a class="sourceLine" id="cb325-12" data-line-number="12"> dlItem = {<span class="co">%</span></a> -<a class="sourceLine" id="cb325-13" data-line-number="13"> <span class="fu">\item</span>[#1]</a> -<a class="sourceLine" id="cb325-14" data-line-number="14"> <span class="kw">\begin</span>{<span class="ex">itemize</span>}</a> -<a class="sourceLine" id="cb325-15" data-line-number="15"> <span class="fu">\def</span>\markdownRendererDlDefinitionEnd{<span class="co">%</span></a> -<a class="sourceLine" id="cb325-16" data-line-number="16"> ,</a> -<a class="sourceLine" id="cb325-17" data-line-number="17"> \def\markdownRendererDlDefinitionEnd{<span class="co">%</span></a> -<a class="sourceLine" id="cb325-18" data-line-number="18"> , and</a> -<a class="sourceLine" id="cb325-19" data-line-number="19"> \def\markdownRendererDlDefinitionEnd{.}<span class="co">%</span></a> -<a class="sourceLine" id="cb325-20" data-line-number="20"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb325-21" data-line-number="21"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb325-22" data-line-number="22"> },</a> -<a class="sourceLine" id="cb325-23" data-line-number="23"> dlItemEnd = {<span class="kw">\end</span>{<span class="ex">itemize</span>}},</a> -<a class="sourceLine" id="cb325-24" data-line-number="24"> dlDefinitionBegin = <span class="fu">\item</span>,</a> -<a class="sourceLine" id="cb325-25" data-line-number="25"> dlEndTight = {<span class="kw">\end</span>{<span class="ex">description</span>}},</a> -<a class="sourceLine" id="cb325-26" data-line-number="26"> },</a> -<a class="sourceLine" id="cb325-27" data-line-number="27">}</a> +<a class="sourceLine" id="cb325-5" data-line-number="5"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> +<a class="sourceLine" id="cb325-6" data-line-number="6"> :<span class="co">%</span></a> +<a class="sourceLine" id="cb325-7" data-line-number="7"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> +<a class="sourceLine" id="cb325-8" data-line-number="8">}</a> +<a class="sourceLine" id="cb325-9" data-line-number="9"><span class="fu">\def</span>\markdownRendererDlBeginTight{<span class="co">%</span></a> +<a class="sourceLine" id="cb325-10" data-line-number="10"> \begingroup</a> +<a class="sourceLine" id="cb325-11" data-line-number="11"> \parindent=0pt</a> +<a class="sourceLine" id="cb325-12" data-line-number="12">}</a> +<a class="sourceLine" id="cb325-13" data-line-number="13"><span class="fu">\def</span>\markdownRendererDlItem#1{<span class="co">%</span></a> +<a class="sourceLine" id="cb325-14" data-line-number="14"> \par{\bf#1}<span class="co">%</span></a> +<a class="sourceLine" id="cb325-15" data-line-number="15"> \def\markdownRendererDlDefinitionEnd{<span class="co">%</span></a> +<a class="sourceLine" id="cb325-16" data-line-number="16"> ,</a> +<a class="sourceLine" id="cb325-17" data-line-number="17"> \def\markdownRendererDlDefinitionEnd{<span class="co">%</span></a> +<a class="sourceLine" id="cb325-18" data-line-number="18"> , and</a> +<a class="sourceLine" id="cb325-19" data-line-number="19"> \def\markdownRendererDlDefinitionEnd{.}<span class="co">%</span></a> +<a class="sourceLine" id="cb325-20" data-line-number="20"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb325-21" data-line-number="21"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb325-22" data-line-number="22">}</a> +<a class="sourceLine" id="cb325-23" data-line-number="23"><span class="fu">\def</span>\markdownRendererDlItemEnd{}</a> +<a class="sourceLine" id="cb325-24" data-line-number="24"><span class="fu">\def</span>\markdownRendererDlDefinitionBegin{\par--\kern 0.5em}</a> +<a class="sourceLine" id="cb325-25" data-line-number="25"><span class="fu">\def</span>\markdownRendererDlEndTight{\endgroup}</a> +<a class="sourceLine" id="cb325-26" data-line-number="26"></a> +<a class="sourceLine" id="cb325-27" data-line-number="27"><span class="fu">\markdownBegin</span></a> <a class="sourceLine" id="cb325-28" data-line-number="28">This is a tight definition list</a> <a class="sourceLine" id="cb325-29" data-line-number="29"></a> <a class="sourceLine" id="cb325-30" data-line-number="30">Coffee</a> @@ -4466,50 +4367,48 @@ multiple paragraphs</li> <a class="sourceLine" id="cb325-36" data-line-number="36">: white cold drink</a> <a class="sourceLine" id="cb325-37" data-line-number="37">: nutrient-rich</a> <a class="sourceLine" id="cb325-38" data-line-number="38">: produced on an industrial scale</a> -<a class="sourceLine" id="cb325-39" data-line-number="39"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> +<a class="sourceLine" id="cb325-39" data-line-number="39"><span class="fu">\markdownEnd</span></a> <a class="sourceLine" id="cb325-40" data-line-number="40"></a> -<a class="sourceLine" id="cb325-41" data-line-number="41"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> -<a class="sourceLine" id="cb325-42" data-line-number="42"> renderers = {</a> -<a class="sourceLine" id="cb325-43" data-line-number="43"> interblockSeparator = {<span class="co">%</span></a> -<a class="sourceLine" id="cb325-44" data-line-number="44"> <span class="fu">\def</span>\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> -<a class="sourceLine" id="cb325-45" data-line-number="45"> },</a> -<a class="sourceLine" id="cb325-46" data-line-number="46"> dlBegin = {},</a> -<a class="sourceLine" id="cb325-47" data-line-number="47"> dlItem = {<span class="co">%</span></a> -<a class="sourceLine" id="cb325-48" data-line-number="48"> . #1 is a</a> -<a class="sourceLine" id="cb325-49" data-line-number="49"> <span class="fu">\def</span>\markdownRendererDlDefinitionBegin{<span class="co">%</span></a> -<a class="sourceLine" id="cb325-50" data-line-number="50"> \def\markdownRendererDlDefinitionBegin{<span class="co">%</span></a> -<a class="sourceLine" id="cb325-51" data-line-number="51"> ,</a> -<a class="sourceLine" id="cb325-52" data-line-number="52"> \def\markdownRendererDlDefinitionBegin{, and }<span class="co">%</span></a> -<a class="sourceLine" id="cb325-53" data-line-number="53"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb325-54" data-line-number="54"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb325-55" data-line-number="55"> },</a> -<a class="sourceLine" id="cb325-56" data-line-number="56"> dlItemEnd = {},</a> -<a class="sourceLine" id="cb325-57" data-line-number="57"> dlDefinitionEnd = {},</a> -<a class="sourceLine" id="cb325-58" data-line-number="58"> dlEnd = {.},</a> -<a class="sourceLine" id="cb325-59" data-line-number="59"> },</a> -<a class="sourceLine" id="cb325-60" data-line-number="60">}</a> -<a class="sourceLine" id="cb325-61" data-line-number="61">This is a loose definition list</a> +<a class="sourceLine" id="cb325-41" data-line-number="41"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> +<a class="sourceLine" id="cb325-42" data-line-number="42"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> +<a class="sourceLine" id="cb325-43" data-line-number="43">}</a> +<a class="sourceLine" id="cb325-44" data-line-number="44"><span class="fu">\def</span>\markdownRendererDlBegin{}</a> +<a class="sourceLine" id="cb325-45" data-line-number="45"><span class="fu">\def</span>\markdownRendererDlItem#1{<span class="co">%</span></a> +<a class="sourceLine" id="cb325-46" data-line-number="46"> . #1 is a</a> +<a class="sourceLine" id="cb325-47" data-line-number="47"> \def\markdownRendererDlDefinitionBegin{<span class="co">%</span></a> +<a class="sourceLine" id="cb325-48" data-line-number="48"> \def\markdownRendererDlDefinitionBegin{<span class="co">%</span></a> +<a class="sourceLine" id="cb325-49" data-line-number="49"> ,</a> +<a class="sourceLine" id="cb325-50" data-line-number="50"> \def\markdownRendererDlDefinitionBegin{, and }<span class="co">%</span></a> +<a class="sourceLine" id="cb325-51" data-line-number="51"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb325-52" data-line-number="52"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb325-53" data-line-number="53">}</a> +<a class="sourceLine" id="cb325-54" data-line-number="54"><span class="fu">\def</span>\markdownRendererDlItemEnd{}</a> +<a class="sourceLine" id="cb325-55" data-line-number="55"><span class="fu">\def</span>\markdownRendererDlDefinitionEnd{}</a> +<a class="sourceLine" id="cb325-56" data-line-number="56"><span class="fu">\def</span>\markdownRendererDlEnd{.}</a> +<a class="sourceLine" id="cb325-57" data-line-number="57"></a> +<a class="sourceLine" id="cb325-58" data-line-number="58"><span class="fu">\markdownBegin</span></a> +<a class="sourceLine" id="cb325-59" data-line-number="59">This is a loose definition list</a> +<a class="sourceLine" id="cb325-60" data-line-number="60"></a> +<a class="sourceLine" id="cb325-61" data-line-number="61">Coffee</a> <a class="sourceLine" id="cb325-62" data-line-number="62"></a> -<a class="sourceLine" id="cb325-63" data-line-number="63">Coffee</a> +<a class="sourceLine" id="cb325-63" data-line-number="63">: black hot drink</a> <a class="sourceLine" id="cb325-64" data-line-number="64"></a> -<a class="sourceLine" id="cb325-65" data-line-number="65">: black hot drink</a> +<a class="sourceLine" id="cb325-65" data-line-number="65">: prepared from roasted coffee beans</a> <a class="sourceLine" id="cb325-66" data-line-number="66"></a> -<a class="sourceLine" id="cb325-67" data-line-number="67">: prepared from roasted coffee beans</a> +<a class="sourceLine" id="cb325-67" data-line-number="67">: one of the most traded agricultural commodities in the world</a> <a class="sourceLine" id="cb325-68" data-line-number="68"></a> -<a class="sourceLine" id="cb325-69" data-line-number="69">: one of the most traded agricultural commodities in the world</a> +<a class="sourceLine" id="cb325-69" data-line-number="69">Milk</a> <a class="sourceLine" id="cb325-70" data-line-number="70"></a> -<a class="sourceLine" id="cb325-71" data-line-number="71">Milk</a> +<a class="sourceLine" id="cb325-71" data-line-number="71">: white cold drink</a> <a class="sourceLine" id="cb325-72" data-line-number="72"></a> -<a class="sourceLine" id="cb325-73" data-line-number="73">: white cold drink</a> +<a class="sourceLine" id="cb325-73" data-line-number="73">: nutrient-rich</a> <a class="sourceLine" id="cb325-74" data-line-number="74"></a> -<a class="sourceLine" id="cb325-75" data-line-number="75">: nutrient-rich</a> -<a class="sourceLine" id="cb325-76" data-line-number="76"></a> -<a class="sourceLine" id="cb325-77" data-line-number="77">: produced on an industrial scale</a> -<a class="sourceLine" id="cb325-78" data-line-number="78"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> -<a class="sourceLine" id="cb325-79" data-line-number="79"></a> -<a class="sourceLine" id="cb325-80" data-line-number="80"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb326"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb326-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<a class="sourceLine" id="cb325-75" data-line-number="75">: produced on an industrial scale</a> +<a class="sourceLine" id="cb325-76" data-line-number="76"><span class="fu">\markdownEnd</span></a> +<a class="sourceLine" id="cb325-77" data-line-number="77"></a> +<a class="sourceLine" id="cb325-78" data-line-number="78"><span class="fu">\bye</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb326"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb326-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is a tight definition list:</p> @@ -4527,87 +4426,188 @@ multiple paragraphs</li> </ul> <p>This is a loose definition list. Coffee is a black hot drink, prepared from roasted coffee beans, and one of the most traded agricultural commodities in the world. Milk is a white cold drink, nutrient-rich, and produced on an industrial scale.</p> </blockquote> -<h5 id="context-example-31" class="unnumbered">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5> +<h5 id="latex-example-36" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb327"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb327-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> -<a class="sourceLine" id="cb327-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionDefinitionLists{true}</a> -<a class="sourceLine" id="cb327-3" data-line-number="3"><span class="fu">\def</span>\markdownOptionTightLists{true}</a> -<a class="sourceLine" id="cb327-4" data-line-number="4"><span class="fu">\starttext</span></a> -<a class="sourceLine" id="cb327-5" data-line-number="5"></a> -<a class="sourceLine" id="cb327-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> -<a class="sourceLine" id="cb327-7" data-line-number="7"> :<span class="co">%</span></a> -<a class="sourceLine" id="cb327-8" data-line-number="8"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> -<a class="sourceLine" id="cb327-9" data-line-number="9">}</a> -<a class="sourceLine" id="cb327-10" data-line-number="10"><span class="fu">\def</span>\markdownRendererDlBeginTight{}</a> -<a class="sourceLine" id="cb327-11" data-line-number="11"><span class="fu">\def</span>\markdownRendererDlItem#1{<span class="co">%</span></a> -<a class="sourceLine" id="cb327-12" data-line-number="12"> \par{\bf#1}<span class="co">%</span></a> -<a class="sourceLine" id="cb327-13" data-line-number="13"> \startitemize</a> -<a class="sourceLine" id="cb327-14" data-line-number="14"> \def\markdownRendererDlDefinitionEnd{<span class="co">%</span></a> -<a class="sourceLine" id="cb327-15" data-line-number="15"> ,</a> -<a class="sourceLine" id="cb327-16" data-line-number="16"> \def\markdownRendererDlDefinitionEnd{<span class="co">%</span></a> -<a class="sourceLine" id="cb327-17" data-line-number="17"> , and</a> -<a class="sourceLine" id="cb327-18" data-line-number="18"> \def\markdownRendererDlDefinitionEnd{.}<span class="co">%</span></a> -<a class="sourceLine" id="cb327-19" data-line-number="19"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb327-20" data-line-number="20"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb327-21" data-line-number="21">}</a> -<a class="sourceLine" id="cb327-22" data-line-number="22"><span class="fu">\def</span>\markdownRendererDlItemEnd{\stopitemize}</a> -<a class="sourceLine" id="cb327-23" data-line-number="23"><span class="fu">\def</span>\markdownRendererDlDefinitionBegin{\item}</a> -<a class="sourceLine" id="cb327-24" data-line-number="24"><span class="fu">\def</span>\markdownRendererDlEndTight{}</a> -<a class="sourceLine" id="cb327-25" data-line-number="25"></a> -<a class="sourceLine" id="cb327-26" data-line-number="26"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb327-27" data-line-number="27">This is a tight definition list</a> -<a class="sourceLine" id="cb327-28" data-line-number="28"></a> -<a class="sourceLine" id="cb327-29" data-line-number="29">Coffee</a> -<a class="sourceLine" id="cb327-30" data-line-number="30">: black hot drink</a> -<a class="sourceLine" id="cb327-31" data-line-number="31">: prepared from roasted coffee beans</a> -<a class="sourceLine" id="cb327-32" data-line-number="32">: one of the most traded agricultural commodities in the world</a> -<a class="sourceLine" id="cb327-33" data-line-number="33"></a> -<a class="sourceLine" id="cb327-34" data-line-number="34">Milk</a> -<a class="sourceLine" id="cb327-35" data-line-number="35">: white cold drink</a> -<a class="sourceLine" id="cb327-36" data-line-number="36">: nutrient-rich</a> -<a class="sourceLine" id="cb327-37" data-line-number="37">: produced on an industrial scale</a> -<a class="sourceLine" id="cb327-38" data-line-number="38"><span class="fu">\stopmarkdown</span></a> -<a class="sourceLine" id="cb327-39" data-line-number="39"></a> -<a class="sourceLine" id="cb327-40" data-line-number="40"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> -<a class="sourceLine" id="cb327-41" data-line-number="41"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> -<a class="sourceLine" id="cb327-42" data-line-number="42">}</a> -<a class="sourceLine" id="cb327-43" data-line-number="43"><span class="fu">\def</span>\markdownRendererDlBegin{}</a> -<a class="sourceLine" id="cb327-44" data-line-number="44"><span class="fu">\def</span>\markdownRendererDlItem#1{<span class="co">%</span></a> -<a class="sourceLine" id="cb327-45" data-line-number="45"> . #1 is a</a> -<a class="sourceLine" id="cb327-46" data-line-number="46"> \def\markdownRendererDlDefinitionBegin{<span class="co">%</span></a> -<a class="sourceLine" id="cb327-47" data-line-number="47"> \def\markdownRendererDlDefinitionBegin{<span class="co">%</span></a> -<a class="sourceLine" id="cb327-48" data-line-number="48"> ,</a> -<a class="sourceLine" id="cb327-49" data-line-number="49"> \def\markdownRendererDlDefinitionBegin{, and }<span class="co">%</span></a> -<a class="sourceLine" id="cb327-50" data-line-number="50"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb327-51" data-line-number="51"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb327-52" data-line-number="52">}</a> -<a class="sourceLine" id="cb327-53" data-line-number="53"><span class="fu">\def</span>\markdownRendererDlItemEnd{}</a> -<a class="sourceLine" id="cb327-54" data-line-number="54"><span class="fu">\def</span>\markdownRendererDlDefinitionEnd{}</a> -<a class="sourceLine" id="cb327-55" data-line-number="55"><span class="fu">\def</span>\markdownRendererDlEnd{.}</a> -<a class="sourceLine" id="cb327-56" data-line-number="56"></a> -<a class="sourceLine" id="cb327-57" data-line-number="57"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb327-58" data-line-number="58">This is a loose definition list</a> -<a class="sourceLine" id="cb327-59" data-line-number="59"></a> -<a class="sourceLine" id="cb327-60" data-line-number="60">Coffee</a> -<a class="sourceLine" id="cb327-61" data-line-number="61"></a> -<a class="sourceLine" id="cb327-62" data-line-number="62">: black hot drink</a> -<a class="sourceLine" id="cb327-63" data-line-number="63"></a> -<a class="sourceLine" id="cb327-64" data-line-number="64">: prepared from roasted coffee beans</a> -<a class="sourceLine" id="cb327-65" data-line-number="65"></a> -<a class="sourceLine" id="cb327-66" data-line-number="66">: one of the most traded agricultural commodities in the world</a> -<a class="sourceLine" id="cb327-67" data-line-number="67"></a> -<a class="sourceLine" id="cb327-68" data-line-number="68">Milk</a> -<a class="sourceLine" id="cb327-69" data-line-number="69"></a> -<a class="sourceLine" id="cb327-70" data-line-number="70">: white cold drink</a> -<a class="sourceLine" id="cb327-71" data-line-number="71"></a> -<a class="sourceLine" id="cb327-72" data-line-number="72">: nutrient-rich</a> -<a class="sourceLine" id="cb327-73" data-line-number="73"></a> -<a class="sourceLine" id="cb327-74" data-line-number="74">: produced on an industrial scale</a> -<a class="sourceLine" id="cb327-75" data-line-number="75"><span class="fu">\stopmarkdown</span></a> +<div class="sourceCode" id="cb327"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb327-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> +<a class="sourceLine" id="cb327-2" data-line-number="2"><span class="bu">\usepackage</span>[definitionLists, tightLists]{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb327-3" data-line-number="3"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb327-4" data-line-number="4"></a> +<a class="sourceLine" id="cb327-5" data-line-number="5"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> +<a class="sourceLine" id="cb327-6" data-line-number="6"> renderers = {</a> +<a class="sourceLine" id="cb327-7" data-line-number="7"> interblockSeparator = {<span class="co">%</span></a> +<a class="sourceLine" id="cb327-8" data-line-number="8"> :<span class="co">%</span></a> +<a class="sourceLine" id="cb327-9" data-line-number="9"> <span class="fu">\def</span>\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> +<a class="sourceLine" id="cb327-10" data-line-number="10"> },</a> +<a class="sourceLine" id="cb327-11" data-line-number="11"> dlBeginTight = {<span class="kw">\begin</span>{<span class="ex">description</span>}},</a> +<a class="sourceLine" id="cb327-12" data-line-number="12"> dlItem = {<span class="co">%</span></a> +<a class="sourceLine" id="cb327-13" data-line-number="13"> <span class="fu">\item</span>[#1]</a> +<a class="sourceLine" id="cb327-14" data-line-number="14"> <span class="kw">\begin</span>{<span class="ex">itemize</span>}</a> +<a class="sourceLine" id="cb327-15" data-line-number="15"> <span class="fu">\def</span>\markdownRendererDlDefinitionEnd{<span class="co">%</span></a> +<a class="sourceLine" id="cb327-16" data-line-number="16"> ,</a> +<a class="sourceLine" id="cb327-17" data-line-number="17"> \def\markdownRendererDlDefinitionEnd{<span class="co">%</span></a> +<a class="sourceLine" id="cb327-18" data-line-number="18"> , and</a> +<a class="sourceLine" id="cb327-19" data-line-number="19"> \def\markdownRendererDlDefinitionEnd{.}<span class="co">%</span></a> +<a class="sourceLine" id="cb327-20" data-line-number="20"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb327-21" data-line-number="21"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb327-22" data-line-number="22"> },</a> +<a class="sourceLine" id="cb327-23" data-line-number="23"> dlItemEnd = {<span class="kw">\end</span>{<span class="ex">itemize</span>}},</a> +<a class="sourceLine" id="cb327-24" data-line-number="24"> dlDefinitionBegin = <span class="fu">\item</span>,</a> +<a class="sourceLine" id="cb327-25" data-line-number="25"> dlEndTight = {<span class="kw">\end</span>{<span class="ex">description</span>}},</a> +<a class="sourceLine" id="cb327-26" data-line-number="26"> },</a> +<a class="sourceLine" id="cb327-27" data-line-number="27">}</a> +<a class="sourceLine" id="cb327-28" data-line-number="28">This is a tight definition list</a> +<a class="sourceLine" id="cb327-29" data-line-number="29"></a> +<a class="sourceLine" id="cb327-30" data-line-number="30">Coffee</a> +<a class="sourceLine" id="cb327-31" data-line-number="31">: black hot drink</a> +<a class="sourceLine" id="cb327-32" data-line-number="32">: prepared from roasted coffee beans</a> +<a class="sourceLine" id="cb327-33" data-line-number="33">: one of the most traded agricultural commodities in the world</a> +<a class="sourceLine" id="cb327-34" data-line-number="34"></a> +<a class="sourceLine" id="cb327-35" data-line-number="35">Milk</a> +<a class="sourceLine" id="cb327-36" data-line-number="36">: white cold drink</a> +<a class="sourceLine" id="cb327-37" data-line-number="37">: nutrient-rich</a> +<a class="sourceLine" id="cb327-38" data-line-number="38">: produced on an industrial scale</a> +<a class="sourceLine" id="cb327-39" data-line-number="39"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> +<a class="sourceLine" id="cb327-40" data-line-number="40"></a> +<a class="sourceLine" id="cb327-41" data-line-number="41"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> +<a class="sourceLine" id="cb327-42" data-line-number="42"> renderers = {</a> +<a class="sourceLine" id="cb327-43" data-line-number="43"> interblockSeparator = {<span class="co">%</span></a> +<a class="sourceLine" id="cb327-44" data-line-number="44"> <span class="fu">\def</span>\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> +<a class="sourceLine" id="cb327-45" data-line-number="45"> },</a> +<a class="sourceLine" id="cb327-46" data-line-number="46"> dlBegin = {},</a> +<a class="sourceLine" id="cb327-47" data-line-number="47"> dlItem = {<span class="co">%</span></a> +<a class="sourceLine" id="cb327-48" data-line-number="48"> . #1 is a</a> +<a class="sourceLine" id="cb327-49" data-line-number="49"> <span class="fu">\def</span>\markdownRendererDlDefinitionBegin{<span class="co">%</span></a> +<a class="sourceLine" id="cb327-50" data-line-number="50"> \def\markdownRendererDlDefinitionBegin{<span class="co">%</span></a> +<a class="sourceLine" id="cb327-51" data-line-number="51"> ,</a> +<a class="sourceLine" id="cb327-52" data-line-number="52"> \def\markdownRendererDlDefinitionBegin{, and }<span class="co">%</span></a> +<a class="sourceLine" id="cb327-53" data-line-number="53"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb327-54" data-line-number="54"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb327-55" data-line-number="55"> },</a> +<a class="sourceLine" id="cb327-56" data-line-number="56"> dlItemEnd = {},</a> +<a class="sourceLine" id="cb327-57" data-line-number="57"> dlDefinitionEnd = {},</a> +<a class="sourceLine" id="cb327-58" data-line-number="58"> dlEnd = {.},</a> +<a class="sourceLine" id="cb327-59" data-line-number="59"> },</a> +<a class="sourceLine" id="cb327-60" data-line-number="60">}</a> +<a class="sourceLine" id="cb327-61" data-line-number="61">This is a loose definition list</a> +<a class="sourceLine" id="cb327-62" data-line-number="62"></a> +<a class="sourceLine" id="cb327-63" data-line-number="63">Coffee</a> +<a class="sourceLine" id="cb327-64" data-line-number="64"></a> +<a class="sourceLine" id="cb327-65" data-line-number="65">: black hot drink</a> +<a class="sourceLine" id="cb327-66" data-line-number="66"></a> +<a class="sourceLine" id="cb327-67" data-line-number="67">: prepared from roasted coffee beans</a> +<a class="sourceLine" id="cb327-68" data-line-number="68"></a> +<a class="sourceLine" id="cb327-69" data-line-number="69">: one of the most traded agricultural commodities in the world</a> +<a class="sourceLine" id="cb327-70" data-line-number="70"></a> +<a class="sourceLine" id="cb327-71" data-line-number="71">Milk</a> +<a class="sourceLine" id="cb327-72" data-line-number="72"></a> +<a class="sourceLine" id="cb327-73" data-line-number="73">: white cold drink</a> +<a class="sourceLine" id="cb327-74" data-line-number="74"></a> +<a class="sourceLine" id="cb327-75" data-line-number="75">: nutrient-rich</a> <a class="sourceLine" id="cb327-76" data-line-number="76"></a> -<a class="sourceLine" id="cb327-77" data-line-number="77"><span class="fu">\stoptext</span></a></code></pre></div> +<a class="sourceLine" id="cb327-77" data-line-number="77">: produced on an industrial scale</a> +<a class="sourceLine" id="cb327-78" data-line-number="78"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> +<a class="sourceLine" id="cb327-79" data-line-number="79"></a> +<a class="sourceLine" id="cb327-80" data-line-number="80"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb328"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb328-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb328"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb328-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> +<blockquote> +<p>This is a tight definition list:</p> +<p><strong>Coffee</strong></p> +<ul> +<li>black hot drink,</li> +<li>prepared from roasted coffee beans, and</li> +<li>one of the most traded agricultural commodities in the world.</li> +</ul> +<p><strong>Milk</strong></p> +<ul> +<li>white cold drink,</li> +<li>nutrient-rich, and</li> +<li>produced on an industrial scale.</li> +</ul> +<p>This is a loose definition list. Coffee is a black hot drink, prepared from roasted coffee beans, and one of the most traded agricultural commodities in the world. Milk is a white cold drink, nutrient-rich, and produced on an industrial scale.</p> +</blockquote> +<h5 id="context-example-31" class="unnumbered">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5> +<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> +<div class="sourceCode" id="cb329"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb329-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> +<a class="sourceLine" id="cb329-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionDefinitionLists{true}</a> +<a class="sourceLine" id="cb329-3" data-line-number="3"><span class="fu">\def</span>\markdownOptionTightLists{true}</a> +<a class="sourceLine" id="cb329-4" data-line-number="4"><span class="fu">\starttext</span></a> +<a class="sourceLine" id="cb329-5" data-line-number="5"></a> +<a class="sourceLine" id="cb329-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> +<a class="sourceLine" id="cb329-7" data-line-number="7"> :<span class="co">%</span></a> +<a class="sourceLine" id="cb329-8" data-line-number="8"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> +<a class="sourceLine" id="cb329-9" data-line-number="9">}</a> +<a class="sourceLine" id="cb329-10" data-line-number="10"><span class="fu">\def</span>\markdownRendererDlBeginTight{}</a> +<a class="sourceLine" id="cb329-11" data-line-number="11"><span class="fu">\def</span>\markdownRendererDlItem#1{<span class="co">%</span></a> +<a class="sourceLine" id="cb329-12" data-line-number="12"> \par{\bf#1}<span class="co">%</span></a> +<a class="sourceLine" id="cb329-13" data-line-number="13"> \startitemize</a> +<a class="sourceLine" id="cb329-14" data-line-number="14"> \def\markdownRendererDlDefinitionEnd{<span class="co">%</span></a> +<a class="sourceLine" id="cb329-15" data-line-number="15"> ,</a> +<a class="sourceLine" id="cb329-16" data-line-number="16"> \def\markdownRendererDlDefinitionEnd{<span class="co">%</span></a> +<a class="sourceLine" id="cb329-17" data-line-number="17"> , and</a> +<a class="sourceLine" id="cb329-18" data-line-number="18"> \def\markdownRendererDlDefinitionEnd{.}<span class="co">%</span></a> +<a class="sourceLine" id="cb329-19" data-line-number="19"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb329-20" data-line-number="20"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb329-21" data-line-number="21">}</a> +<a class="sourceLine" id="cb329-22" data-line-number="22"><span class="fu">\def</span>\markdownRendererDlItemEnd{\stopitemize}</a> +<a class="sourceLine" id="cb329-23" data-line-number="23"><span class="fu">\def</span>\markdownRendererDlDefinitionBegin{\item}</a> +<a class="sourceLine" id="cb329-24" data-line-number="24"><span class="fu">\def</span>\markdownRendererDlEndTight{}</a> +<a class="sourceLine" id="cb329-25" data-line-number="25"></a> +<a class="sourceLine" id="cb329-26" data-line-number="26"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb329-27" data-line-number="27">This is a tight definition list</a> +<a class="sourceLine" id="cb329-28" data-line-number="28"></a> +<a class="sourceLine" id="cb329-29" data-line-number="29">Coffee</a> +<a class="sourceLine" id="cb329-30" data-line-number="30">: black hot drink</a> +<a class="sourceLine" id="cb329-31" data-line-number="31">: prepared from roasted coffee beans</a> +<a class="sourceLine" id="cb329-32" data-line-number="32">: one of the most traded agricultural commodities in the world</a> +<a class="sourceLine" id="cb329-33" data-line-number="33"></a> +<a class="sourceLine" id="cb329-34" data-line-number="34">Milk</a> +<a class="sourceLine" id="cb329-35" data-line-number="35">: white cold drink</a> +<a class="sourceLine" id="cb329-36" data-line-number="36">: nutrient-rich</a> +<a class="sourceLine" id="cb329-37" data-line-number="37">: produced on an industrial scale</a> +<a class="sourceLine" id="cb329-38" data-line-number="38"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb329-39" data-line-number="39"></a> +<a class="sourceLine" id="cb329-40" data-line-number="40"><span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> +<a class="sourceLine" id="cb329-41" data-line-number="41"> \def\markdownRendererInterblockSeparator{\par}<span class="co">%</span></a> +<a class="sourceLine" id="cb329-42" data-line-number="42">}</a> +<a class="sourceLine" id="cb329-43" data-line-number="43"><span class="fu">\def</span>\markdownRendererDlBegin{}</a> +<a class="sourceLine" id="cb329-44" data-line-number="44"><span class="fu">\def</span>\markdownRendererDlItem#1{<span class="co">%</span></a> +<a class="sourceLine" id="cb329-45" data-line-number="45"> . #1 is a</a> +<a class="sourceLine" id="cb329-46" data-line-number="46"> \def\markdownRendererDlDefinitionBegin{<span class="co">%</span></a> +<a class="sourceLine" id="cb329-47" data-line-number="47"> \def\markdownRendererDlDefinitionBegin{<span class="co">%</span></a> +<a class="sourceLine" id="cb329-48" data-line-number="48"> ,</a> +<a class="sourceLine" id="cb329-49" data-line-number="49"> \def\markdownRendererDlDefinitionBegin{, and }<span class="co">%</span></a> +<a class="sourceLine" id="cb329-50" data-line-number="50"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb329-51" data-line-number="51"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb329-52" data-line-number="52">}</a> +<a class="sourceLine" id="cb329-53" data-line-number="53"><span class="fu">\def</span>\markdownRendererDlItemEnd{}</a> +<a class="sourceLine" id="cb329-54" data-line-number="54"><span class="fu">\def</span>\markdownRendererDlDefinitionEnd{}</a> +<a class="sourceLine" id="cb329-55" data-line-number="55"><span class="fu">\def</span>\markdownRendererDlEnd{.}</a> +<a class="sourceLine" id="cb329-56" data-line-number="56"></a> +<a class="sourceLine" id="cb329-57" data-line-number="57"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb329-58" data-line-number="58">This is a loose definition list</a> +<a class="sourceLine" id="cb329-59" data-line-number="59"></a> +<a class="sourceLine" id="cb329-60" data-line-number="60">Coffee</a> +<a class="sourceLine" id="cb329-61" data-line-number="61"></a> +<a class="sourceLine" id="cb329-62" data-line-number="62">: black hot drink</a> +<a class="sourceLine" id="cb329-63" data-line-number="63"></a> +<a class="sourceLine" id="cb329-64" data-line-number="64">: prepared from roasted coffee beans</a> +<a class="sourceLine" id="cb329-65" data-line-number="65"></a> +<a class="sourceLine" id="cb329-66" data-line-number="66">: one of the most traded agricultural commodities in the world</a> +<a class="sourceLine" id="cb329-67" data-line-number="67"></a> +<a class="sourceLine" id="cb329-68" data-line-number="68">Milk</a> +<a class="sourceLine" id="cb329-69" data-line-number="69"></a> +<a class="sourceLine" id="cb329-70" data-line-number="70">: white cold drink</a> +<a class="sourceLine" id="cb329-71" data-line-number="71"></a> +<a class="sourceLine" id="cb329-72" data-line-number="72">: nutrient-rich</a> +<a class="sourceLine" id="cb329-73" data-line-number="73"></a> +<a class="sourceLine" id="cb329-74" data-line-number="74">: produced on an industrial scale</a> +<a class="sourceLine" id="cb329-75" data-line-number="75"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb329-76" data-line-number="76"></a> +<a class="sourceLine" id="cb329-77" data-line-number="77"><span class="fu">\stoptext</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb330"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb330-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is a tight definition list:</p> @@ -4629,17 +4629,17 @@ multiple paragraphs</li> <p>The <code>\markdownRendererEmphasis</code> macro represents an emphasized span of text. The macro receives a single argument that corresponds to the emphasized span of text.</p> <h5 id="plain-tex-example-22" class="unnumbered">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb329"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb329-1" data-line-number="1"><span class="fu">\input</span> markdown</a> -<a class="sourceLine" id="cb329-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererEmphasis#1{{\it#1}}</a> -<a class="sourceLine" id="cb329-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererStrongEmphasis#1{{\bf#1}}</a> -<a class="sourceLine" id="cb329-4" data-line-number="4"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb329-5" data-line-number="5">This is *emphasis*.</a> -<a class="sourceLine" id="cb329-6" data-line-number="6"></a> -<a class="sourceLine" id="cb329-7" data-line-number="7">This is **strong emphasis**.</a> -<a class="sourceLine" id="cb329-8" data-line-number="8"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb329-9" data-line-number="9"><span class="fu">\bye</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb330"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb330-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb331"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb331-1" data-line-number="1"><span class="fu">\input</span> markdown</a> +<a class="sourceLine" id="cb331-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererEmphasis#1{{\it#1}}</a> +<a class="sourceLine" id="cb331-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererStrongEmphasis#1{{\bf#1}}</a> +<a class="sourceLine" id="cb331-4" data-line-number="4"><span class="fu">\markdownBegin</span></a> +<a class="sourceLine" id="cb331-5" data-line-number="5">This is *emphasis*.</a> +<a class="sourceLine" id="cb331-6" data-line-number="6"></a> +<a class="sourceLine" id="cb331-7" data-line-number="7">This is **strong emphasis**.</a> +<a class="sourceLine" id="cb331-8" data-line-number="8"><span class="fu">\markdownEnd</span></a> +<a class="sourceLine" id="cb331-9" data-line-number="9"><span class="fu">\bye</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb332"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb332-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is <em>emphasis</em>.</p> @@ -4647,23 +4647,23 @@ multiple paragraphs</li> </blockquote> <h5 id="latex-example-37" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb331"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb331-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> -<a class="sourceLine" id="cb331-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb331-3" data-line-number="3"><span class="fu">\markdownSetup</span>{</a> -<a class="sourceLine" id="cb331-4" data-line-number="4"> renderers = {</a> -<a class="sourceLine" id="cb331-5" data-line-number="5"> emphasis = {<span class="fu">\emph</span>{#1}},</a> -<a class="sourceLine" id="cb331-6" data-line-number="6"> strongEmphasis = {<span class="fu">\textbf</span>{#1}},</a> -<a class="sourceLine" id="cb331-7" data-line-number="7"> },</a> -<a class="sourceLine" id="cb331-8" data-line-number="8">}</a> -<a class="sourceLine" id="cb331-9" data-line-number="9"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb331-10" data-line-number="10"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb331-11" data-line-number="11">This is *emphasis*.</a> -<a class="sourceLine" id="cb331-12" data-line-number="12"></a> -<a class="sourceLine" id="cb331-13" data-line-number="13">This is **strong emphasis**.</a> -<a class="sourceLine" id="cb331-14" data-line-number="14"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb331-15" data-line-number="15"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb332"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb332-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb333"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb333-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> +<a class="sourceLine" id="cb333-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb333-3" data-line-number="3"><span class="fu">\markdownSetup</span>{</a> +<a class="sourceLine" id="cb333-4" data-line-number="4"> renderers = {</a> +<a class="sourceLine" id="cb333-5" data-line-number="5"> emphasis = {<span class="fu">\emph</span>{#1}},</a> +<a class="sourceLine" id="cb333-6" data-line-number="6"> strongEmphasis = {<span class="fu">\textbf</span>{#1}},</a> +<a class="sourceLine" id="cb333-7" data-line-number="7"> },</a> +<a class="sourceLine" id="cb333-8" data-line-number="8">}</a> +<a class="sourceLine" id="cb333-9" data-line-number="9"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb333-10" data-line-number="10"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb333-11" data-line-number="11">This is *emphasis*.</a> +<a class="sourceLine" id="cb333-12" data-line-number="12"></a> +<a class="sourceLine" id="cb333-13" data-line-number="13">This is **strong emphasis**.</a> +<a class="sourceLine" id="cb333-14" data-line-number="14"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb333-15" data-line-number="15"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb334"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb334-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is <em>emphasis</em>.</p> @@ -4671,18 +4671,18 @@ multiple paragraphs</li> </blockquote> <h5 id="context-example-32" class="unnumbered">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb333"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb333-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> -<a class="sourceLine" id="cb333-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererEmphasis#1{\emph{#1}}</a> -<a class="sourceLine" id="cb333-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererStrongEmphasis#1{\bold{#1}}</a> -<a class="sourceLine" id="cb333-4" data-line-number="4"><span class="fu">\starttext</span></a> -<a class="sourceLine" id="cb333-5" data-line-number="5"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb333-6" data-line-number="6">This is *emphasis*.</a> -<a class="sourceLine" id="cb333-7" data-line-number="7"></a> -<a class="sourceLine" id="cb333-8" data-line-number="8">This is **strong emphasis**.</a> -<a class="sourceLine" id="cb333-9" data-line-number="9"><span class="fu">\stopmarkdown</span></a> -<a class="sourceLine" id="cb333-10" data-line-number="10"><span class="fu">\stoptext</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb334"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb334-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb335"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb335-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> +<a class="sourceLine" id="cb335-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererEmphasis#1{\emph{#1}}</a> +<a class="sourceLine" id="cb335-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererStrongEmphasis#1{\bold{#1}}</a> +<a class="sourceLine" id="cb335-4" data-line-number="4"><span class="fu">\starttext</span></a> +<a class="sourceLine" id="cb335-5" data-line-number="5"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb335-6" data-line-number="6">This is *emphasis*.</a> +<a class="sourceLine" id="cb335-7" data-line-number="7"></a> +<a class="sourceLine" id="cb335-8" data-line-number="8">This is **strong emphasis**.</a> +<a class="sourceLine" id="cb335-9" data-line-number="9"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb335-10" data-line-number="10"><span class="fu">\stoptext</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb336"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb336-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is <em>emphasis</em>.</p> @@ -4693,29 +4693,29 @@ multiple paragraphs</li> <p>The <code>\markdownRendererBlockQuoteBegin</code> macro represents the beginning of a block quote. The macro receives no arguments.</p> <h5 id="plain-tex-example-23" class="unnumbered">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb335"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb335-1" data-line-number="1"><span class="fu">\input</span> markdown</a> -<a class="sourceLine" id="cb335-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererBlockQuoteBegin{<span class="co">%</span></a> -<a class="sourceLine" id="cb335-3" data-line-number="3"> \begingroup</a> -<a class="sourceLine" id="cb335-4" data-line-number="4"> \vskip\parindent</a> -<a class="sourceLine" id="cb335-5" data-line-number="5"> \leftskip=2\parindent</a> -<a class="sourceLine" id="cb335-6" data-line-number="6"> \parindent=0pt</a> -<a class="sourceLine" id="cb335-7" data-line-number="7">}</a> -<a class="sourceLine" id="cb335-8" data-line-number="8"><span class="fu">\def</span>\markdownRendererBlockQuoteEnd{<span class="co">%</span></a> -<a class="sourceLine" id="cb335-9" data-line-number="9"> \par</a> -<a class="sourceLine" id="cb335-10" data-line-number="10"> \vskip\parindent</a> -<a class="sourceLine" id="cb335-11" data-line-number="11"> \endgroup</a> -<a class="sourceLine" id="cb335-12" data-line-number="12">}</a> -<a class="sourceLine" id="cb335-13" data-line-number="13"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb335-14" data-line-number="14">A quote from William Shakespeare's King Lear:</a> -<a class="sourceLine" id="cb335-15" data-line-number="15"></a> -<a class="sourceLine" id="cb335-16" data-line-number="16">> This is the excellent foppery of the world that when we are</a> -<a class="sourceLine" id="cb335-17" data-line-number="17">> sick in fortune---often the surfeit of our own behavior---we</a> -<a class="sourceLine" id="cb335-18" data-line-number="18">> make guilty of our disasters the sun, the moon, and the</a> -<a class="sourceLine" id="cb335-19" data-line-number="19">> stars [...]</a> -<a class="sourceLine" id="cb335-20" data-line-number="20"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb335-21" data-line-number="21"><span class="fu">\bye</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb336"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb336-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb337"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb337-1" data-line-number="1"><span class="fu">\input</span> markdown</a> +<a class="sourceLine" id="cb337-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererBlockQuoteBegin{<span class="co">%</span></a> +<a class="sourceLine" id="cb337-3" data-line-number="3"> \begingroup</a> +<a class="sourceLine" id="cb337-4" data-line-number="4"> \vskip\parindent</a> +<a class="sourceLine" id="cb337-5" data-line-number="5"> \leftskip=2\parindent</a> +<a class="sourceLine" id="cb337-6" data-line-number="6"> \parindent=0pt</a> +<a class="sourceLine" id="cb337-7" data-line-number="7">}</a> +<a class="sourceLine" id="cb337-8" data-line-number="8"><span class="fu">\def</span>\markdownRendererBlockQuoteEnd{<span class="co">%</span></a> +<a class="sourceLine" id="cb337-9" data-line-number="9"> \par</a> +<a class="sourceLine" id="cb337-10" data-line-number="10"> \vskip\parindent</a> +<a class="sourceLine" id="cb337-11" data-line-number="11"> \endgroup</a> +<a class="sourceLine" id="cb337-12" data-line-number="12">}</a> +<a class="sourceLine" id="cb337-13" data-line-number="13"><span class="fu">\markdownBegin</span></a> +<a class="sourceLine" id="cb337-14" data-line-number="14">A quote from William Shakespeare's King Lear:</a> +<a class="sourceLine" id="cb337-15" data-line-number="15"></a> +<a class="sourceLine" id="cb337-16" data-line-number="16">> This is the excellent foppery of the world that when we are</a> +<a class="sourceLine" id="cb337-17" data-line-number="17">> sick in fortune---often the surfeit of our own behavior---we</a> +<a class="sourceLine" id="cb337-18" data-line-number="18">> make guilty of our disasters the sun, the moon, and the</a> +<a class="sourceLine" id="cb337-19" data-line-number="19">> stars [...]</a> +<a class="sourceLine" id="cb337-20" data-line-number="20"><span class="fu">\markdownEnd</span></a> +<a class="sourceLine" id="cb337-21" data-line-number="21"><span class="fu">\bye</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb338"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb338-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>A quote from William Shakespeare’s King Lear:</p> @@ -4725,26 +4725,26 @@ multiple paragraphs</li> </blockquote> <h5 id="latex-example-38" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb337"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb337-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> -<a class="sourceLine" id="cb337-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb337-3" data-line-number="3"><span class="fu">\markdownSetup</span>{</a> -<a class="sourceLine" id="cb337-4" data-line-number="4"> renderers = {</a> -<a class="sourceLine" id="cb337-5" data-line-number="5"> blockQuoteBegin = {<span class="kw">\begin</span>{<span class="ex">quote</span>}},</a> -<a class="sourceLine" id="cb337-6" data-line-number="6"> blockQuoteEnd = {<span class="kw">\end</span>{<span class="ex">quote</span>}},</a> -<a class="sourceLine" id="cb337-7" data-line-number="7"> },</a> -<a class="sourceLine" id="cb337-8" data-line-number="8">}</a> -<a class="sourceLine" id="cb337-9" data-line-number="9"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb337-10" data-line-number="10"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb337-11" data-line-number="11">A quote from William Shakespeare's King Lear:</a> -<a class="sourceLine" id="cb337-12" data-line-number="12"></a> -<a class="sourceLine" id="cb337-13" data-line-number="13">> This is the excellent foppery of the world that when we are</a> -<a class="sourceLine" id="cb337-14" data-line-number="14">> sick in fortune---often the surfeit of our own behavior---we</a> -<a class="sourceLine" id="cb337-15" data-line-number="15">> make guilty of our disasters the sun, the moon, and the</a> -<a class="sourceLine" id="cb337-16" data-line-number="16">> stars [...]</a> -<a class="sourceLine" id="cb337-17" data-line-number="17"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb337-18" data-line-number="18"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb338"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb338-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb339"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb339-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> +<a class="sourceLine" id="cb339-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb339-3" data-line-number="3"><span class="fu">\markdownSetup</span>{</a> +<a class="sourceLine" id="cb339-4" data-line-number="4"> renderers = {</a> +<a class="sourceLine" id="cb339-5" data-line-number="5"> blockQuoteBegin = {<span class="kw">\begin</span>{<span class="ex">quote</span>}},</a> +<a class="sourceLine" id="cb339-6" data-line-number="6"> blockQuoteEnd = {<span class="kw">\end</span>{<span class="ex">quote</span>}},</a> +<a class="sourceLine" id="cb339-7" data-line-number="7"> },</a> +<a class="sourceLine" id="cb339-8" data-line-number="8">}</a> +<a class="sourceLine" id="cb339-9" data-line-number="9"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb339-10" data-line-number="10"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb339-11" data-line-number="11">A quote from William Shakespeare's King Lear:</a> +<a class="sourceLine" id="cb339-12" data-line-number="12"></a> +<a class="sourceLine" id="cb339-13" data-line-number="13">> This is the excellent foppery of the world that when we are</a> +<a class="sourceLine" id="cb339-14" data-line-number="14">> sick in fortune---often the surfeit of our own behavior---we</a> +<a class="sourceLine" id="cb339-15" data-line-number="15">> make guilty of our disasters the sun, the moon, and the</a> +<a class="sourceLine" id="cb339-16" data-line-number="16">> stars [...]</a> +<a class="sourceLine" id="cb339-17" data-line-number="17"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb339-18" data-line-number="18"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb340"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb340-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>A quote from William Shakespeare’s King Lear:</p> @@ -4754,21 +4754,21 @@ multiple paragraphs</li> </blockquote> <h5 id="context-example-33" class="unnumbered">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb339"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb339-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> -<a class="sourceLine" id="cb339-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererBlockQuoteBegin{\startquotation}</a> -<a class="sourceLine" id="cb339-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererBlockQuoteEnd{\stopquotation}</a> -<a class="sourceLine" id="cb339-4" data-line-number="4"><span class="fu">\starttext</span></a> -<a class="sourceLine" id="cb339-5" data-line-number="5"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb339-6" data-line-number="6">A quote from William Shakespeare's King Lear:</a> -<a class="sourceLine" id="cb339-7" data-line-number="7"></a> -<a class="sourceLine" id="cb339-8" data-line-number="8">> This is the excellent foppery of the world that when we are</a> -<a class="sourceLine" id="cb339-9" data-line-number="9">> sick in fortune---often the surfeit of our own behavior---we</a> -<a class="sourceLine" id="cb339-10" data-line-number="10">> make guilty of our disasters the sun, the moon, and the</a> -<a class="sourceLine" id="cb339-11" data-line-number="11">> stars [...]</a> -<a class="sourceLine" id="cb339-12" data-line-number="12"><span class="fu">\stopmarkdown</span></a> -<a class="sourceLine" id="cb339-13" data-line-number="13"><span class="fu">\stoptext</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb340"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb340-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb341"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb341-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> +<a class="sourceLine" id="cb341-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererBlockQuoteBegin{\startquotation}</a> +<a class="sourceLine" id="cb341-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererBlockQuoteEnd{\stopquotation}</a> +<a class="sourceLine" id="cb341-4" data-line-number="4"><span class="fu">\starttext</span></a> +<a class="sourceLine" id="cb341-5" data-line-number="5"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb341-6" data-line-number="6">A quote from William Shakespeare's King Lear:</a> +<a class="sourceLine" id="cb341-7" data-line-number="7"></a> +<a class="sourceLine" id="cb341-8" data-line-number="8">> This is the excellent foppery of the world that when we are</a> +<a class="sourceLine" id="cb341-9" data-line-number="9">> sick in fortune---often the surfeit of our own behavior---we</a> +<a class="sourceLine" id="cb341-10" data-line-number="10">> make guilty of our disasters the sun, the moon, and the</a> +<a class="sourceLine" id="cb341-11" data-line-number="11">> stars [...]</a> +<a class="sourceLine" id="cb341-12" data-line-number="12"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb341-13" data-line-number="13"><span class="fu">\stoptext</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb342"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb342-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>A quote from William Shakespeare’s King Lear:</p> @@ -4782,71 +4782,71 @@ multiple paragraphs</li> <p>The <code>\markdownRendererInputFencedCode</code> macro represents a fenced code block. This macro will only be produced, when the <strong><code>fencedCode</code></strong> option is <code>true</code>. The macro receives two arguments that correspond to the filename of a file contaning the code block contents and to the code fence infostring.</p> <h5 id="latex-example-39" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb341"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb341-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> -<a class="sourceLine" id="cb341-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">verbatim</span>}</a> -<a class="sourceLine" id="cb341-3" data-line-number="3"><span class="bu">\usepackage</span>[hyphens]{<span class="ex">url</span>}</a> -<a class="sourceLine" id="cb341-4" data-line-number="4"><span class="bu">\usepackage</span>[fencedCode]{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb341-5" data-line-number="5"><span class="fu">\markdownSetup</span>{</a> -<a class="sourceLine" id="cb341-6" data-line-number="6"> renderers = {</a> -<a class="sourceLine" id="cb341-7" data-line-number="7"> interblockSeparator = {</a> -<a class="sourceLine" id="cb341-8" data-line-number="8"> <span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> -<a class="sourceLine" id="cb341-9" data-line-number="9"> \par</a> -<a class="sourceLine" id="cb341-10" data-line-number="10"> \def\markdownRendererInterblockSeparator{<span class="co">%</span></a> -<a class="sourceLine" id="cb341-11" data-line-number="11"> \def\markdownRendererInterblockSeparator{<span class="co">%</span></a> -<a class="sourceLine" id="cb341-12" data-line-number="12"> \par</a> -<a class="sourceLine" id="cb341-13" data-line-number="13"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb341-14" data-line-number="14"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb341-15" data-line-number="15"> }<span class="co">%</span></a> -<a class="sourceLine" id="cb341-16" data-line-number="16"> },</a> -<a class="sourceLine" id="cb341-17" data-line-number="17"> inputVerbatim = {</a> -<a class="sourceLine" id="cb341-18" data-line-number="18"> is contained in file <span class="fu">\url</span>{#1}:<span class="co">%</span></a> -<a class="sourceLine" id="cb341-19" data-line-number="19"> <span class="fu">\verbatiminput</span>{#1}<span class="co">%</span></a> -<a class="sourceLine" id="cb341-20" data-line-number="20"> },</a> -<a class="sourceLine" id="cb341-21" data-line-number="21"> inputFencedCode = {</a> -<a class="sourceLine" id="cb341-22" data-line-number="22"> in #2 <span class="fu">\markdownRendererInputVerbatim</span>{#1}<span class="co">%</span></a> -<a class="sourceLine" id="cb341-23" data-line-number="23"> },</a> -<a class="sourceLine" id="cb341-24" data-line-number="24"> },</a> -<a class="sourceLine" id="cb341-25" data-line-number="25">}</a> -<a class="sourceLine" id="cb341-26" data-line-number="26"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb341-27" data-line-number="27"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb341-28" data-line-number="28">The following code</a> -<a class="sourceLine" id="cb341-29" data-line-number="29"></a> -<a class="sourceLine" id="cb341-30" data-line-number="30"> def foo(bar):</a> -<a class="sourceLine" id="cb341-31" data-line-number="31"> if len(bar) <= 1:</a> -<a class="sourceLine" id="cb341-32" data-line-number="32"> return bar[0]</a> -<a class="sourceLine" id="cb341-33" data-line-number="33"> elif len(bar) == 2:</a> -<a class="sourceLine" id="cb341-34" data-line-number="34"> return sorted(bar)</a> -<a class="sourceLine" id="cb341-35" data-line-number="35"> else:</a> -<a class="sourceLine" id="cb341-36" data-line-number="36"> baz = len(bar) // 2</a> -<a class="sourceLine" id="cb341-37" data-line-number="37"> return foo(bar[baz:], bar[:baz])</a> -<a class="sourceLine" id="cb341-38" data-line-number="38"></a> -<a class="sourceLine" id="cb341-39" data-line-number="39">The following code</a> -<a class="sourceLine" id="cb341-40" data-line-number="40"></a> -<a class="sourceLine" id="cb341-41" data-line-number="41">~~~ Python</a> -<a class="sourceLine" id="cb341-42" data-line-number="42">>>> foo([4, 2, 1, 3])</a> -<a class="sourceLine" id="cb341-43" data-line-number="43">[1, 2, 3, 4]</a> -<a class="sourceLine" id="cb341-44" data-line-number="44">~~~~~~~~~~</a> -<a class="sourceLine" id="cb341-45" data-line-number="45"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb341-46" data-line-number="46"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb342"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb342-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb343"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb343-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> +<a class="sourceLine" id="cb343-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">verbatim</span>}</a> +<a class="sourceLine" id="cb343-3" data-line-number="3"><span class="bu">\usepackage</span>[hyphens]{<span class="ex">url</span>}</a> +<a class="sourceLine" id="cb343-4" data-line-number="4"><span class="bu">\usepackage</span>[fencedCode]{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb343-5" data-line-number="5"><span class="fu">\markdownSetup</span>{</a> +<a class="sourceLine" id="cb343-6" data-line-number="6"> renderers = {</a> +<a class="sourceLine" id="cb343-7" data-line-number="7"> interblockSeparator = {</a> +<a class="sourceLine" id="cb343-8" data-line-number="8"> <span class="fu">\def</span>\markdownRendererInterblockSeparator{<span class="co">%</span></a> +<a class="sourceLine" id="cb343-9" data-line-number="9"> \par</a> +<a class="sourceLine" id="cb343-10" data-line-number="10"> \def\markdownRendererInterblockSeparator{<span class="co">%</span></a> +<a class="sourceLine" id="cb343-11" data-line-number="11"> \def\markdownRendererInterblockSeparator{<span class="co">%</span></a> +<a class="sourceLine" id="cb343-12" data-line-number="12"> \par</a> +<a class="sourceLine" id="cb343-13" data-line-number="13"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb343-14" data-line-number="14"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb343-15" data-line-number="15"> }<span class="co">%</span></a> +<a class="sourceLine" id="cb343-16" data-line-number="16"> },</a> +<a class="sourceLine" id="cb343-17" data-line-number="17"> inputVerbatim = {</a> +<a class="sourceLine" id="cb343-18" data-line-number="18"> is contained in file <span class="fu">\url</span>{#1}:<span class="co">%</span></a> +<a class="sourceLine" id="cb343-19" data-line-number="19"> <span class="fu">\verbatiminput</span>{#1}<span class="co">%</span></a> +<a class="sourceLine" id="cb343-20" data-line-number="20"> },</a> +<a class="sourceLine" id="cb343-21" data-line-number="21"> inputFencedCode = {</a> +<a class="sourceLine" id="cb343-22" data-line-number="22"> in #2 <span class="fu">\markdownRendererInputVerbatim</span>{#1}<span class="co">%</span></a> +<a class="sourceLine" id="cb343-23" data-line-number="23"> },</a> +<a class="sourceLine" id="cb343-24" data-line-number="24"> },</a> +<a class="sourceLine" id="cb343-25" data-line-number="25">}</a> +<a class="sourceLine" id="cb343-26" data-line-number="26"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb343-27" data-line-number="27"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb343-28" data-line-number="28">The following code</a> +<a class="sourceLine" id="cb343-29" data-line-number="29"></a> +<a class="sourceLine" id="cb343-30" data-line-number="30"> def foo(bar):</a> +<a class="sourceLine" id="cb343-31" data-line-number="31"> if len(bar) <= 1:</a> +<a class="sourceLine" id="cb343-32" data-line-number="32"> return bar[0]</a> +<a class="sourceLine" id="cb343-33" data-line-number="33"> elif len(bar) == 2:</a> +<a class="sourceLine" id="cb343-34" data-line-number="34"> return sorted(bar)</a> +<a class="sourceLine" id="cb343-35" data-line-number="35"> else:</a> +<a class="sourceLine" id="cb343-36" data-line-number="36"> baz = len(bar) // 2</a> +<a class="sourceLine" id="cb343-37" data-line-number="37"> return foo(bar[baz:], bar[:baz])</a> +<a class="sourceLine" id="cb343-38" data-line-number="38"></a> +<a class="sourceLine" id="cb343-39" data-line-number="39">The following code</a> +<a class="sourceLine" id="cb343-40" data-line-number="40"></a> +<a class="sourceLine" id="cb343-41" data-line-number="41">~~~ Python</a> +<a class="sourceLine" id="cb343-42" data-line-number="42">>>> foo([4, 2, 1, 3])</a> +<a class="sourceLine" id="cb343-43" data-line-number="43">[1, 2, 3, 4]</a> +<a class="sourceLine" id="cb343-44" data-line-number="44">~~~~~~~~~~</a> +<a class="sourceLine" id="cb343-45" data-line-number="45"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb343-46" data-line-number="46"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb344"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb344-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text except for the filename, which may differ:</p> <blockquote> <p>The following code is contained in file <code>./_markdown_document/882453149edcf288976647f6fe147ada.verbatim</code>:</p> -<div class="sourceCode" id="cb343"><pre class="sourceCode py"><code class="sourceCode python"><a class="sourceLine" id="cb343-1" data-line-number="1"><span class="kw">def</span> foo(bar):</a> -<a class="sourceLine" id="cb343-2" data-line-number="2"> <span class="cf">if</span> <span class="bu">len</span>(bar) <span class="op"><=</span> <span class="dv">1</span>:</a> -<a class="sourceLine" id="cb343-3" data-line-number="3"> <span class="cf">return</span> bar[:<span class="dv">1</span>]</a> -<a class="sourceLine" id="cb343-4" data-line-number="4"> <span class="cf">elif</span> <span class="bu">len</span>(bar) <span class="op">==</span> <span class="dv">2</span>:</a> -<a class="sourceLine" id="cb343-5" data-line-number="5"> <span class="cf">return</span> <span class="bu">sorted</span>(bar)</a> -<a class="sourceLine" id="cb343-6" data-line-number="6"> <span class="cf">else</span>:</a> -<a class="sourceLine" id="cb343-7" data-line-number="7"> baz <span class="op">=</span> bar[<span class="bu">len</span>(bar) <span class="op">//</span> <span class="dv">2</span>]</a> -<a class="sourceLine" id="cb343-8" data-line-number="8"> <span class="cf">return</span> (</a> -<a class="sourceLine" id="cb343-9" data-line-number="9"> foo([qux <span class="cf">for</span> qux <span class="kw">in</span> bar <span class="cf">if</span> qux <span class="op"><</span> baz]) <span class="op">+</span> [baz] <span class="op">+</span></a> -<a class="sourceLine" id="cb343-10" data-line-number="10"> foo([qux <span class="cf">for</span> qux <span class="kw">in</span> bar <span class="cf">if</span> qux <span class="op">></span> baz])</a> -<a class="sourceLine" id="cb343-11" data-line-number="11"> )</a></code></pre></div> +<div class="sourceCode" id="cb345"><pre class="sourceCode py"><code class="sourceCode python"><a class="sourceLine" id="cb345-1" data-line-number="1"><span class="kw">def</span> foo(bar):</a> +<a class="sourceLine" id="cb345-2" data-line-number="2"> <span class="cf">if</span> <span class="bu">len</span>(bar) <span class="op"><=</span> <span class="dv">1</span>:</a> +<a class="sourceLine" id="cb345-3" data-line-number="3"> <span class="cf">return</span> bar[:<span class="dv">1</span>]</a> +<a class="sourceLine" id="cb345-4" data-line-number="4"> <span class="cf">elif</span> <span class="bu">len</span>(bar) <span class="op">==</span> <span class="dv">2</span>:</a> +<a class="sourceLine" id="cb345-5" data-line-number="5"> <span class="cf">return</span> <span class="bu">sorted</span>(bar)</a> +<a class="sourceLine" id="cb345-6" data-line-number="6"> <span class="cf">else</span>:</a> +<a class="sourceLine" id="cb345-7" data-line-number="7"> baz <span class="op">=</span> bar[<span class="bu">len</span>(bar) <span class="op">//</span> <span class="dv">2</span>]</a> +<a class="sourceLine" id="cb345-8" data-line-number="8"> <span class="cf">return</span> (</a> +<a class="sourceLine" id="cb345-9" data-line-number="9"> foo([qux <span class="cf">for</span> qux <span class="kw">in</span> bar <span class="cf">if</span> qux <span class="op"><</span> baz]) <span class="op">+</span> [baz] <span class="op">+</span></a> +<a class="sourceLine" id="cb345-10" data-line-number="10"> foo([qux <span class="cf">for</span> qux <span class="kw">in</span> bar <span class="cf">if</span> qux <span class="op">></span> baz])</a> +<a class="sourceLine" id="cb345-11" data-line-number="11"> )</a></code></pre></div> <p>The following code in Python contained in file <code>./_markdown_document/cf2a96e2120cef5b1fae5fea36fcc27b.verbatim</code>:</p> -<div class="sourceCode" id="cb344"><pre class="sourceCode py"><code class="sourceCode python"><a class="sourceLine" id="cb344-1" data-line-number="1"><span class="op">>>></span> foo([<span class="dv">4</span>, <span class="dv">2</span>, <span class="dv">1</span>, <span class="dv">3</span>])</a> -<a class="sourceLine" id="cb344-2" data-line-number="2">[<span class="dv">1</span>, <span class="dv">2</span>, <span class="dv">3</span>, <span class="dv">4</span>]</a></code></pre></div> +<div class="sourceCode" id="cb346"><pre class="sourceCode py"><code class="sourceCode python"><a class="sourceLine" id="cb346-1" data-line-number="1"><span class="op">>>></span> foo([<span class="dv">4</span>, <span class="dv">2</span>, <span class="dv">1</span>, <span class="dv">3</span>])</a> +<a class="sourceLine" id="cb346-2" data-line-number="2">[<span class="dv">1</span>, <span class="dv">2</span>, <span class="dv">3</span>, <span class="dv">4</span>]</a></code></pre></div> </blockquote> <h4 id="heading-renderers"><span class="header-section-number">2.3.1.16</span> Heading Renderers</h4> <p>The <code>\markdownRendererHeadingOne</code> macro represents a first level heading. The macro receives a single argument that corresponds to the heading text.</p> @@ -4857,79 +4857,79 @@ multiple paragraphs</li> <p>The <code>\markdownRendererHeadingSix</code> macro represents a sixth level heading. The macro receives a single argument that corresponds to the heading text.</p> <h5 id="plain-tex-example-24" class="unnumbered">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb345"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb345-1" data-line-number="1"><span class="fu">\input</span> markdown</a> -<a class="sourceLine" id="cb345-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererInterblockSeparator{}</a> -<a class="sourceLine" id="cb345-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererHeadingOne{1}</a> -<a class="sourceLine" id="cb345-4" data-line-number="4"><span class="fu">\def</span>\markdownRendererHeadingTwo{2}</a> -<a class="sourceLine" id="cb345-5" data-line-number="5"><span class="fu">\def</span>\markdownRendererHeadingThree{3}</a> -<a class="sourceLine" id="cb345-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererHeadingFour{4}</a> -<a class="sourceLine" id="cb345-7" data-line-number="7"><span class="fu">\def</span>\markdownRendererHeadingFive{5}</a> -<a class="sourceLine" id="cb345-8" data-line-number="8"><span class="fu">\def</span>\markdownRendererHeadingSix{6}</a> -<a class="sourceLine" id="cb345-9" data-line-number="9"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb345-10" data-line-number="10">######</a> -<a class="sourceLine" id="cb345-11" data-line-number="11">#####</a> -<a class="sourceLine" id="cb345-12" data-line-number="12">#####</a> -<a class="sourceLine" id="cb345-13" data-line-number="13">###</a> -<a class="sourceLine" id="cb345-14" data-line-number="14">######</a> -<a class="sourceLine" id="cb345-15" data-line-number="15"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb345-16" data-line-number="16"><span class="fu">\bye</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb346"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb346-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb347"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb347-1" data-line-number="1"><span class="fu">\input</span> markdown</a> +<a class="sourceLine" id="cb347-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererInterblockSeparator{}</a> +<a class="sourceLine" id="cb347-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererHeadingOne{1}</a> +<a class="sourceLine" id="cb347-4" data-line-number="4"><span class="fu">\def</span>\markdownRendererHeadingTwo{2}</a> +<a class="sourceLine" id="cb347-5" data-line-number="5"><span class="fu">\def</span>\markdownRendererHeadingThree{3}</a> +<a class="sourceLine" id="cb347-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererHeadingFour{4}</a> +<a class="sourceLine" id="cb347-7" data-line-number="7"><span class="fu">\def</span>\markdownRendererHeadingFive{5}</a> +<a class="sourceLine" id="cb347-8" data-line-number="8"><span class="fu">\def</span>\markdownRendererHeadingSix{6}</a> +<a class="sourceLine" id="cb347-9" data-line-number="9"><span class="fu">\markdownBegin</span></a> +<a class="sourceLine" id="cb347-10" data-line-number="10">######</a> +<a class="sourceLine" id="cb347-11" data-line-number="11">#####</a> +<a class="sourceLine" id="cb347-12" data-line-number="12">#####</a> +<a class="sourceLine" id="cb347-13" data-line-number="13">###</a> +<a class="sourceLine" id="cb347-14" data-line-number="14">######</a> +<a class="sourceLine" id="cb347-15" data-line-number="15"><span class="fu">\markdownEnd</span></a> +<a class="sourceLine" id="cb347-16" data-line-number="16"><span class="fu">\bye</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb348"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb348-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>65536</p> </blockquote> <h5 id="latex-example-40" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb347"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb347-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> -<a class="sourceLine" id="cb347-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb347-3" data-line-number="3"><span class="fu">\markdownSetup</span>{</a> -<a class="sourceLine" id="cb347-4" data-line-number="4"> renderers = {</a> -<a class="sourceLine" id="cb347-5" data-line-number="5"> interblockSeparator = {},</a> -<a class="sourceLine" id="cb347-6" data-line-number="6"> headingOne = 1,</a> -<a class="sourceLine" id="cb347-7" data-line-number="7"> headingTwo = 2,</a> -<a class="sourceLine" id="cb347-8" data-line-number="8"> headingThree = 3,</a> -<a class="sourceLine" id="cb347-9" data-line-number="9"> headingFour = 4,</a> -<a class="sourceLine" id="cb347-10" data-line-number="10"> headingFive = 5,</a> -<a class="sourceLine" id="cb347-11" data-line-number="11"> headingSix = 6,</a> -<a class="sourceLine" id="cb347-12" data-line-number="12"> },</a> -<a class="sourceLine" id="cb347-13" data-line-number="13">}</a> -<a class="sourceLine" id="cb347-14" data-line-number="14"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb347-15" data-line-number="15"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb347-16" data-line-number="16">######</a> -<a class="sourceLine" id="cb347-17" data-line-number="17">#####</a> -<a class="sourceLine" id="cb347-18" data-line-number="18">#####</a> -<a class="sourceLine" id="cb347-19" data-line-number="19">###</a> -<a class="sourceLine" id="cb347-20" data-line-number="20">######</a> -<a class="sourceLine" id="cb347-21" data-line-number="21"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb347-22" data-line-number="22"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb348"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb348-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb349"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb349-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> +<a class="sourceLine" id="cb349-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb349-3" data-line-number="3"><span class="fu">\markdownSetup</span>{</a> +<a class="sourceLine" id="cb349-4" data-line-number="4"> renderers = {</a> +<a class="sourceLine" id="cb349-5" data-line-number="5"> interblockSeparator = {},</a> +<a class="sourceLine" id="cb349-6" data-line-number="6"> headingOne = 1,</a> +<a class="sourceLine" id="cb349-7" data-line-number="7"> headingTwo = 2,</a> +<a class="sourceLine" id="cb349-8" data-line-number="8"> headingThree = 3,</a> +<a class="sourceLine" id="cb349-9" data-line-number="9"> headingFour = 4,</a> +<a class="sourceLine" id="cb349-10" data-line-number="10"> headingFive = 5,</a> +<a class="sourceLine" id="cb349-11" data-line-number="11"> headingSix = 6,</a> +<a class="sourceLine" id="cb349-12" data-line-number="12"> },</a> +<a class="sourceLine" id="cb349-13" data-line-number="13">}</a> +<a class="sourceLine" id="cb349-14" data-line-number="14"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb349-15" data-line-number="15"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb349-16" data-line-number="16">######</a> +<a class="sourceLine" id="cb349-17" data-line-number="17">#####</a> +<a class="sourceLine" id="cb349-18" data-line-number="18">#####</a> +<a class="sourceLine" id="cb349-19" data-line-number="19">###</a> +<a class="sourceLine" id="cb349-20" data-line-number="20">######</a> +<a class="sourceLine" id="cb349-21" data-line-number="21"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb349-22" data-line-number="22"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb350"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb350-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>65536</p> </blockquote> <h5 id="context-example-34" class="unnumbered">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb349"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb349-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> -<a class="sourceLine" id="cb349-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererInterblockSeparator{}</a> -<a class="sourceLine" id="cb349-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererHeadingOne{1}</a> -<a class="sourceLine" id="cb349-4" data-line-number="4"><span class="fu">\def</span>\markdownRendererHeadingTwo{2}</a> -<a class="sourceLine" id="cb349-5" data-line-number="5"><span class="fu">\def</span>\markdownRendererHeadingThree{3}</a> -<a class="sourceLine" id="cb349-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererHeadingFour{4}</a> -<a class="sourceLine" id="cb349-7" data-line-number="7"><span class="fu">\def</span>\markdownRendererHeadingFive{5}</a> -<a class="sourceLine" id="cb349-8" data-line-number="8"><span class="fu">\def</span>\markdownRendererHeadingSix{6}</a> -<a class="sourceLine" id="cb349-9" data-line-number="9"><span class="fu">\starttext</span></a> -<a class="sourceLine" id="cb349-10" data-line-number="10"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb349-11" data-line-number="11">######</a> -<a class="sourceLine" id="cb349-12" data-line-number="12">#####</a> -<a class="sourceLine" id="cb349-13" data-line-number="13">#####</a> -<a class="sourceLine" id="cb349-14" data-line-number="14">###</a> -<a class="sourceLine" id="cb349-15" data-line-number="15">######</a> -<a class="sourceLine" id="cb349-16" data-line-number="16"><span class="fu">\stopmarkdown</span></a> -<a class="sourceLine" id="cb349-17" data-line-number="17"><span class="fu">\stoptext</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb350"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb350-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb351"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb351-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> +<a class="sourceLine" id="cb351-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererInterblockSeparator{}</a> +<a class="sourceLine" id="cb351-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererHeadingOne{1}</a> +<a class="sourceLine" id="cb351-4" data-line-number="4"><span class="fu">\def</span>\markdownRendererHeadingTwo{2}</a> +<a class="sourceLine" id="cb351-5" data-line-number="5"><span class="fu">\def</span>\markdownRendererHeadingThree{3}</a> +<a class="sourceLine" id="cb351-6" data-line-number="6"><span class="fu">\def</span>\markdownRendererHeadingFour{4}</a> +<a class="sourceLine" id="cb351-7" data-line-number="7"><span class="fu">\def</span>\markdownRendererHeadingFive{5}</a> +<a class="sourceLine" id="cb351-8" data-line-number="8"><span class="fu">\def</span>\markdownRendererHeadingSix{6}</a> +<a class="sourceLine" id="cb351-9" data-line-number="9"><span class="fu">\starttext</span></a> +<a class="sourceLine" id="cb351-10" data-line-number="10"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb351-11" data-line-number="11">######</a> +<a class="sourceLine" id="cb351-12" data-line-number="12">#####</a> +<a class="sourceLine" id="cb351-13" data-line-number="13">#####</a> +<a class="sourceLine" id="cb351-14" data-line-number="14">###</a> +<a class="sourceLine" id="cb351-15" data-line-number="15">######</a> +<a class="sourceLine" id="cb351-16" data-line-number="16"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb351-17" data-line-number="17"><span class="fu">\stoptext</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb352"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb352-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>65536</p> @@ -4938,18 +4938,18 @@ multiple paragraphs</li> <p>The <code>\markdownRendererHorizontalRule</code> macro represents a horizontal rule. The macro receives no arguments.</p> <h5 id="plain-tex-example-25" class="unnumbered">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb351"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb351-1" data-line-number="1"><span class="fu">\input</span> markdown</a> -<a class="sourceLine" id="cb351-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererHorizontalRule{\vfil\break}</a> -<a class="sourceLine" id="cb351-3" data-line-number="3"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb351-4" data-line-number="4">This is the first page.</a> -<a class="sourceLine" id="cb351-5" data-line-number="5"></a> -<a class="sourceLine" id="cb351-6" data-line-number="6">***</a> -<a class="sourceLine" id="cb351-7" data-line-number="7"></a> -<a class="sourceLine" id="cb351-8" data-line-number="8">This is the second page.</a> -<a class="sourceLine" id="cb351-9" data-line-number="9"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb351-10" data-line-number="10"><span class="fu">\bye</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb352"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb352-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb353"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb353-1" data-line-number="1"><span class="fu">\input</span> markdown</a> +<a class="sourceLine" id="cb353-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererHorizontalRule{\vfil\break}</a> +<a class="sourceLine" id="cb353-3" data-line-number="3"><span class="fu">\markdownBegin</span></a> +<a class="sourceLine" id="cb353-4" data-line-number="4">This is the first page.</a> +<a class="sourceLine" id="cb353-5" data-line-number="5"></a> +<a class="sourceLine" id="cb353-6" data-line-number="6">***</a> +<a class="sourceLine" id="cb353-7" data-line-number="7"></a> +<a class="sourceLine" id="cb353-8" data-line-number="8">This is the second page.</a> +<a class="sourceLine" id="cb353-9" data-line-number="9"><span class="fu">\markdownEnd</span></a> +<a class="sourceLine" id="cb353-10" data-line-number="10"><span class="fu">\bye</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb354"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb354-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is the first page.</p> @@ -4958,24 +4958,24 @@ multiple paragraphs</li> </blockquote> <h5 id="latex-example-41" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb353"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb353-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> -<a class="sourceLine" id="cb353-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb353-3" data-line-number="3"><span class="fu">\markdownSetup</span>{</a> -<a class="sourceLine" id="cb353-4" data-line-number="4"> renderers = {</a> -<a class="sourceLine" id="cb353-5" data-line-number="5"> horizontalRule = <span class="fu">\newpage</span>,</a> -<a class="sourceLine" id="cb353-6" data-line-number="6"> },</a> -<a class="sourceLine" id="cb353-7" data-line-number="7">}</a> -<a class="sourceLine" id="cb353-8" data-line-number="8"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb353-9" data-line-number="9"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb353-10" data-line-number="10">This is the first page.</a> -<a class="sourceLine" id="cb353-11" data-line-number="11"></a> -<a class="sourceLine" id="cb353-12" data-line-number="12">***</a> -<a class="sourceLine" id="cb353-13" data-line-number="13"></a> -<a class="sourceLine" id="cb353-14" data-line-number="14">This is the second page.</a> -<a class="sourceLine" id="cb353-15" data-line-number="15"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb353-16" data-line-number="16"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb354"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb354-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb355"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb355-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> +<a class="sourceLine" id="cb355-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb355-3" data-line-number="3"><span class="fu">\markdownSetup</span>{</a> +<a class="sourceLine" id="cb355-4" data-line-number="4"> renderers = {</a> +<a class="sourceLine" id="cb355-5" data-line-number="5"> horizontalRule = <span class="fu">\newpage</span>,</a> +<a class="sourceLine" id="cb355-6" data-line-number="6"> },</a> +<a class="sourceLine" id="cb355-7" data-line-number="7">}</a> +<a class="sourceLine" id="cb355-8" data-line-number="8"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb355-9" data-line-number="9"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb355-10" data-line-number="10">This is the first page.</a> +<a class="sourceLine" id="cb355-11" data-line-number="11"></a> +<a class="sourceLine" id="cb355-12" data-line-number="12">***</a> +<a class="sourceLine" id="cb355-13" data-line-number="13"></a> +<a class="sourceLine" id="cb355-14" data-line-number="14">This is the second page.</a> +<a class="sourceLine" id="cb355-15" data-line-number="15"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb355-16" data-line-number="16"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb356"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb356-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is the first page.</p> @@ -4984,19 +4984,19 @@ multiple paragraphs</li> </blockquote> <h5 id="context-example-35" class="unnumbered">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb355"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb355-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> -<a class="sourceLine" id="cb355-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererHorizontalRule{\page[yes]}</a> -<a class="sourceLine" id="cb355-3" data-line-number="3"><span class="fu">\starttext</span></a> -<a class="sourceLine" id="cb355-4" data-line-number="4"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb355-5" data-line-number="5">This is the first page.</a> -<a class="sourceLine" id="cb355-6" data-line-number="6"></a> -<a class="sourceLine" id="cb355-7" data-line-number="7">***</a> -<a class="sourceLine" id="cb355-8" data-line-number="8"></a> -<a class="sourceLine" id="cb355-9" data-line-number="9">This is the second page.</a> -<a class="sourceLine" id="cb355-10" data-line-number="10"><span class="fu">\stopmarkdown</span></a> -<a class="sourceLine" id="cb355-11" data-line-number="11"><span class="fu">\stoptext</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb356"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb356-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb357"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb357-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> +<a class="sourceLine" id="cb357-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererHorizontalRule{\page[yes]}</a> +<a class="sourceLine" id="cb357-3" data-line-number="3"><span class="fu">\starttext</span></a> +<a class="sourceLine" id="cb357-4" data-line-number="4"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb357-5" data-line-number="5">This is the first page.</a> +<a class="sourceLine" id="cb357-6" data-line-number="6"></a> +<a class="sourceLine" id="cb357-7" data-line-number="7">***</a> +<a class="sourceLine" id="cb357-8" data-line-number="8"></a> +<a class="sourceLine" id="cb357-9" data-line-number="9">This is the second page.</a> +<a class="sourceLine" id="cb357-10" data-line-number="10"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb357-11" data-line-number="11"><span class="fu">\stoptext</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb358"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb358-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is the first page.</p> @@ -5007,63 +5007,63 @@ multiple paragraphs</li> <p>The <code>\markdownRendererFootnote</code> macro represents a footnote. This macro will only be produced, when the <strong><code>footnotes</code></strong> option is <code>true</code>. The macro receives a single argument that corresponds to the footnote text.</p> <h5 id="plain-tex-example-26" class="unnumbered">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb357"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb357-1" data-line-number="1"><span class="fu">\input</span> markdown</a> -<a class="sourceLine" id="cb357-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionFootnotes{true}</a> -<a class="sourceLine" id="cb357-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererFootnote#1{ (and \lowercase{#1})}</a> -<a class="sourceLine" id="cb357-4" data-line-number="4"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb357-5" data-line-number="5">This is some text[^1] and this is some other text[^2].</a> -<a class="sourceLine" id="cb357-6" data-line-number="6"></a> -<a class="sourceLine" id="cb357-7" data-line-number="7"> [^1]: this is a footnote</a> -<a class="sourceLine" id="cb357-8" data-line-number="8"></a> -<a class="sourceLine" id="cb357-9" data-line-number="9"> [^2]: this is some other footnote</a> -<a class="sourceLine" id="cb357-10" data-line-number="10"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb357-11" data-line-number="11"><span class="fu">\bye</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb358"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb358-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb359"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb359-1" data-line-number="1"><span class="fu">\input</span> markdown</a> +<a class="sourceLine" id="cb359-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionFootnotes{true}</a> +<a class="sourceLine" id="cb359-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererFootnote#1{ (and \lowercase{#1})}</a> +<a class="sourceLine" id="cb359-4" data-line-number="4"><span class="fu">\markdownBegin</span></a> +<a class="sourceLine" id="cb359-5" data-line-number="5">This is some text[^1] and this is some other text[^2].</a> +<a class="sourceLine" id="cb359-6" data-line-number="6"></a> +<a class="sourceLine" id="cb359-7" data-line-number="7"> [^1]: this is a footnote</a> +<a class="sourceLine" id="cb359-8" data-line-number="8"></a> +<a class="sourceLine" id="cb359-9" data-line-number="9"> [^2]: this is some other footnote</a> +<a class="sourceLine" id="cb359-10" data-line-number="10"><span class="fu">\markdownEnd</span></a> +<a class="sourceLine" id="cb359-11" data-line-number="11"><span class="fu">\bye</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb360"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb360-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is some text (and this is a footnote) and this is some other text (and this is some other footnote).</p> </blockquote> <h5 id="latex-example-42" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb359"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb359-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> -<a class="sourceLine" id="cb359-2" data-line-number="2"><span class="bu">\usepackage</span>[footnotes]{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb359-3" data-line-number="3"><span class="fu">\markdownSetup</span>{</a> -<a class="sourceLine" id="cb359-4" data-line-number="4"> renderers = {</a> -<a class="sourceLine" id="cb359-5" data-line-number="5"> footnote = { (and <span class="fu">\MakeLowercase</span>{#1})},</a> -<a class="sourceLine" id="cb359-6" data-line-number="6"> },</a> -<a class="sourceLine" id="cb359-7" data-line-number="7">}</a> -<a class="sourceLine" id="cb359-8" data-line-number="8"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb359-9" data-line-number="9"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb359-10" data-line-number="10">This is some text[^1] and this is some other text[^2].</a> -<a class="sourceLine" id="cb359-11" data-line-number="11"></a> -<a class="sourceLine" id="cb359-12" data-line-number="12"> [^1]: this is a footnote</a> -<a class="sourceLine" id="cb359-13" data-line-number="13"></a> -<a class="sourceLine" id="cb359-14" data-line-number="14"> [^2]: this is some other footnote</a> -<a class="sourceLine" id="cb359-15" data-line-number="15"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb359-16" data-line-number="16"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb360"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb360-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb361"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb361-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> +<a class="sourceLine" id="cb361-2" data-line-number="2"><span class="bu">\usepackage</span>[footnotes]{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb361-3" data-line-number="3"><span class="fu">\markdownSetup</span>{</a> +<a class="sourceLine" id="cb361-4" data-line-number="4"> renderers = {</a> +<a class="sourceLine" id="cb361-5" data-line-number="5"> footnote = { (and <span class="fu">\MakeLowercase</span>{#1})},</a> +<a class="sourceLine" id="cb361-6" data-line-number="6"> },</a> +<a class="sourceLine" id="cb361-7" data-line-number="7">}</a> +<a class="sourceLine" id="cb361-8" data-line-number="8"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb361-9" data-line-number="9"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb361-10" data-line-number="10">This is some text[^1] and this is some other text[^2].</a> +<a class="sourceLine" id="cb361-11" data-line-number="11"></a> +<a class="sourceLine" id="cb361-12" data-line-number="12"> [^1]: this is a footnote</a> +<a class="sourceLine" id="cb361-13" data-line-number="13"></a> +<a class="sourceLine" id="cb361-14" data-line-number="14"> [^2]: this is some other footnote</a> +<a class="sourceLine" id="cb361-15" data-line-number="15"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb361-16" data-line-number="16"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb362"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb362-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is some text (and this is a footnote) and this is some other text (and this is some other footnote).</p> </blockquote> <h5 id="context-example-36" class="unnumbered">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb361"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb361-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> -<a class="sourceLine" id="cb361-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionFootnotes{true}</a> -<a class="sourceLine" id="cb361-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererFootnote#1{ (and \lowercase{#1})}</a> -<a class="sourceLine" id="cb361-4" data-line-number="4"><span class="fu">\starttext</span></a> -<a class="sourceLine" id="cb361-5" data-line-number="5"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb361-6" data-line-number="6">This is some text[^1] and this is some other text[^2].</a> -<a class="sourceLine" id="cb361-7" data-line-number="7"></a> -<a class="sourceLine" id="cb361-8" data-line-number="8"> [^1]: this is a footnote</a> -<a class="sourceLine" id="cb361-9" data-line-number="9"></a> -<a class="sourceLine" id="cb361-10" data-line-number="10"> [^2]: this is some other footnote</a> -<a class="sourceLine" id="cb361-11" data-line-number="11"><span class="fu">\stopmarkdown</span></a> -<a class="sourceLine" id="cb361-12" data-line-number="12"><span class="fu">\stoptext</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb362"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb362-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb363"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb363-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> +<a class="sourceLine" id="cb363-2" data-line-number="2"><span class="fu">\def</span>\markdownOptionFootnotes{true}</a> +<a class="sourceLine" id="cb363-3" data-line-number="3"><span class="fu">\def</span>\markdownRendererFootnote#1{ (and \lowercase{#1})}</a> +<a class="sourceLine" id="cb363-4" data-line-number="4"><span class="fu">\starttext</span></a> +<a class="sourceLine" id="cb363-5" data-line-number="5"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb363-6" data-line-number="6">This is some text[^1] and this is some other text[^2].</a> +<a class="sourceLine" id="cb363-7" data-line-number="7"></a> +<a class="sourceLine" id="cb363-8" data-line-number="8"> [^1]: this is a footnote</a> +<a class="sourceLine" id="cb363-9" data-line-number="9"></a> +<a class="sourceLine" id="cb363-10" data-line-number="10"> [^2]: this is some other footnote</a> +<a class="sourceLine" id="cb363-11" data-line-number="11"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb363-12" data-line-number="12"><span class="fu">\stoptext</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb364"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb364-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is some text (and this is a footnote) and this is some other text (and this is some other footnote).</p> @@ -5072,63 +5072,13 @@ multiple paragraphs</li> <p>The <code>\markdownRendererCite</code> macro represents a string of one or more parenthetical citations. This macro will only be produced, when the <strong><code>citations</code></strong> option is <code>true</code>. The macro receives the parameter <code>{</code>⟨<em>number of citations</em>⟩<code>}</code> followed by <code>{</code>⟨<em>prenote</em>⟩<code>}{</code>⟨<em>postnote</em>⟩<code>}{</code>⟨<em>name</em>⟩<code>}</code> repeated ⟨<em>number of citations</em>⟩ times. The ⟨<em>suppress author</em>⟩ parameter is either the token <code>-</code>, when the author’s name is to be suppressed, or <code>+</code> otherwise.</p> <h5 id="latex-example-43" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb363"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb363-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> -<a class="sourceLine" id="cb363-2" data-line-number="2"><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb363-3" data-line-number="3"><span class="fu">\newcount\citationsCounter</span></a> -<a class="sourceLine" id="cb363-4" data-line-number="4"><span class="fu">\newcount\citationsTotal</span></a> -<a class="sourceLine" id="cb363-5" data-line-number="5"><span class="fu">\makeatletter</span></a> -<a class="sourceLine" id="cb363-6" data-line-number="6"><span class="fu">\def</span>\citations#1#2#3#4{<span class="co">%</span></a> -<a class="sourceLine" id="cb363-7" data-line-number="7"> a parenthesized citation \emph{#4}</a> -<a class="sourceLine" id="cb363-8" data-line-number="8"> \advance\citationsCounter by 1\relax</a> -<a class="sourceLine" id="cb363-9" data-line-number="9"> \ifx\relax#2\relax</a> -<a class="sourceLine" id="cb363-10" data-line-number="10"> \ifx\relax#3\relax\else</a> -<a class="sourceLine" id="cb363-11" data-line-number="11"> with a postfix \emph{#3}<span class="co">%</span></a> -<a class="sourceLine" id="cb363-12" data-line-number="12"> \fi</a> -<a class="sourceLine" id="cb363-13" data-line-number="13"> \else</a> -<a class="sourceLine" id="cb363-14" data-line-number="14"> with a prefix \emph{#2}<span class="co">%</span></a> -<a class="sourceLine" id="cb363-15" data-line-number="15"> \ifx\relax#3\relax\else</a> -<a class="sourceLine" id="cb363-16" data-line-number="16"> \ and a postfix \emph{#3}<span class="co">%</span></a> -<a class="sourceLine" id="cb363-17" data-line-number="17"> \fi</a> -<a class="sourceLine" id="cb363-18" data-line-number="18"> \fi</a> -<a class="sourceLine" id="cb363-19" data-line-number="19"> \ifnum\citationsCounter>\citationsTotal\relax</a> -<a class="sourceLine" id="cb363-20" data-line-number="20"> .<span class="co">%</span></a> -<a class="sourceLine" id="cb363-21" data-line-number="21"> \expandafter\@gobble</a> -<a class="sourceLine" id="cb363-22" data-line-number="22"> \else</a> -<a class="sourceLine" id="cb363-23" data-line-number="23"> , and</a> -<a class="sourceLine" id="cb363-24" data-line-number="24"> \fi\citations}</a> -<a class="sourceLine" id="cb363-25" data-line-number="25"><span class="fu">\makeatother</span></a> -<a class="sourceLine" id="cb363-26" data-line-number="26"><span class="fu">\markdownSetup</span>{</a> -<a class="sourceLine" id="cb363-27" data-line-number="27"> renderers = {</a> -<a class="sourceLine" id="cb363-28" data-line-number="28"> cite = {<span class="co">%</span></a> -<a class="sourceLine" id="cb363-29" data-line-number="29"> <span class="fu">\citationsCounter</span>=1<span class="co">%</span></a> -<a class="sourceLine" id="cb363-30" data-line-number="30"> <span class="fu">\citationsTotal</span>=#1<span class="co">%</span></a> -<a class="sourceLine" id="cb363-31" data-line-number="31"> This is</a> -<a class="sourceLine" id="cb363-32" data-line-number="32"> <span class="fu">\expandafter\citations</span></a> -<a class="sourceLine" id="cb363-33" data-line-number="33"> },</a> -<a class="sourceLine" id="cb363-34" data-line-number="34"> },</a> -<a class="sourceLine" id="cb363-35" data-line-number="35">}</a> -<a class="sourceLine" id="cb363-36" data-line-number="36"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb363-37" data-line-number="37"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb363-38" data-line-number="38">[see @abrahams90, pp. 12; @eijkhout91, pp. 34]</a> -<a class="sourceLine" id="cb363-39" data-line-number="39"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb363-40" data-line-number="40"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb364"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb364-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> -<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> -<blockquote> -<p>This is a parenthesized citation <em>abrahams90</em> with a prefix see and a postfix <em>pp. > 12</em>, and a citation <em>eijkhout91</em> with a postfix <em>pp. 34</em>.</p> -</blockquote> -<h4 id="text-citations-renderer"><span class="header-section-number">2.3.1.20</span> Text Citations Renderer</h4> -<p>The <code>\markdownRendererTextCite</code> macro represents a string of one or more text citations. This macro will only be produced, when the <strong><code>citations</code></strong> option is <code>true</code>. The macro receives parameters in the same format as the <code>\markdownRendererCite</code> macro.</p> -<h5 id="latex-example-44" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> -<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> <div class="sourceCode" id="cb365"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb365-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> <a class="sourceLine" id="cb365-2" data-line-number="2"><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</a> <a class="sourceLine" id="cb365-3" data-line-number="3"><span class="fu">\newcount\citationsCounter</span></a> <a class="sourceLine" id="cb365-4" data-line-number="4"><span class="fu">\newcount\citationsTotal</span></a> <a class="sourceLine" id="cb365-5" data-line-number="5"><span class="fu">\makeatletter</span></a> <a class="sourceLine" id="cb365-6" data-line-number="6"><span class="fu">\def</span>\citations#1#2#3#4{<span class="co">%</span></a> -<a class="sourceLine" id="cb365-7" data-line-number="7"> a text citation \emph{#4}</a> +<a class="sourceLine" id="cb365-7" data-line-number="7"> a parenthesized citation \emph{#4}</a> <a class="sourceLine" id="cb365-8" data-line-number="8"> \advance\citationsCounter by 1\relax</a> <a class="sourceLine" id="cb365-9" data-line-number="9"> \ifx\relax#2\relax</a> <a class="sourceLine" id="cb365-10" data-line-number="10"> \ifx\relax#3\relax\else</a> @@ -5149,7 +5099,7 @@ multiple paragraphs</li> <a class="sourceLine" id="cb365-25" data-line-number="25"><span class="fu">\makeatother</span></a> <a class="sourceLine" id="cb365-26" data-line-number="26"><span class="fu">\markdownSetup</span>{</a> <a class="sourceLine" id="cb365-27" data-line-number="27"> renderers = {</a> -<a class="sourceLine" id="cb365-28" data-line-number="28"> textCite = {<span class="co">%</span></a> +<a class="sourceLine" id="cb365-28" data-line-number="28"> cite = {<span class="co">%</span></a> <a class="sourceLine" id="cb365-29" data-line-number="29"> <span class="fu">\citationsCounter</span>=1<span class="co">%</span></a> <a class="sourceLine" id="cb365-30" data-line-number="30"> <span class="fu">\citationsTotal</span>=#1<span class="co">%</span></a> <a class="sourceLine" id="cb365-31" data-line-number="31"> This is</a> @@ -5159,13 +5109,63 @@ multiple paragraphs</li> <a class="sourceLine" id="cb365-35" data-line-number="35">}</a> <a class="sourceLine" id="cb365-36" data-line-number="36"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> <a class="sourceLine" id="cb365-37" data-line-number="37"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb365-38" data-line-number="38">@abrahams90 [pp. 12; also @eijkhout91]</a> +<a class="sourceLine" id="cb365-38" data-line-number="38">[see @abrahams90, pp. 12; @eijkhout91, pp. 34]</a> <a class="sourceLine" id="cb365-39" data-line-number="39"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> <a class="sourceLine" id="cb365-40" data-line-number="40"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> <p>Next, invoke LuaTeX from the terminal:</p> <div class="sourceCode" id="cb366"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb366-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> +<p>This is a parenthesized citation <em>abrahams90</em> with a prefix see and a postfix <em>pp. > 12</em>, and a citation <em>eijkhout91</em> with a postfix <em>pp. 34</em>.</p> +</blockquote> +<h4 id="text-citations-renderer"><span class="header-section-number">2.3.1.20</span> Text Citations Renderer</h4> +<p>The <code>\markdownRendererTextCite</code> macro represents a string of one or more text citations. This macro will only be produced, when the <strong><code>citations</code></strong> option is <code>true</code>. The macro receives parameters in the same format as the <code>\markdownRendererCite</code> macro.</p> +<h5 id="latex-example-44" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> +<p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> +<div class="sourceCode" id="cb367"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb367-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> +<a class="sourceLine" id="cb367-2" data-line-number="2"><span class="bu">\usepackage</span>[citations]{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb367-3" data-line-number="3"><span class="fu">\newcount\citationsCounter</span></a> +<a class="sourceLine" id="cb367-4" data-line-number="4"><span class="fu">\newcount\citationsTotal</span></a> +<a class="sourceLine" id="cb367-5" data-line-number="5"><span class="fu">\makeatletter</span></a> +<a class="sourceLine" id="cb367-6" data-line-number="6"><span class="fu">\def</span>\citations#1#2#3#4{<span class="co">%</span></a> +<a class="sourceLine" id="cb367-7" data-line-number="7"> a text citation \emph{#4}</a> +<a class="sourceLine" id="cb367-8" data-line-number="8"> \advance\citationsCounter by 1\relax</a> +<a class="sourceLine" id="cb367-9" data-line-number="9"> \ifx\relax#2\relax</a> +<a class="sourceLine" id="cb367-10" data-line-number="10"> \ifx\relax#3\relax\else</a> +<a class="sourceLine" id="cb367-11" data-line-number="11"> with a postfix \emph{#3}<span class="co">%</span></a> +<a class="sourceLine" id="cb367-12" data-line-number="12"> \fi</a> +<a class="sourceLine" id="cb367-13" data-line-number="13"> \else</a> +<a class="sourceLine" id="cb367-14" data-line-number="14"> with a prefix \emph{#2}<span class="co">%</span></a> +<a class="sourceLine" id="cb367-15" data-line-number="15"> \ifx\relax#3\relax\else</a> +<a class="sourceLine" id="cb367-16" data-line-number="16"> \ and a postfix \emph{#3}<span class="co">%</span></a> +<a class="sourceLine" id="cb367-17" data-line-number="17"> \fi</a> +<a class="sourceLine" id="cb367-18" data-line-number="18"> \fi</a> +<a class="sourceLine" id="cb367-19" data-line-number="19"> \ifnum\citationsCounter>\citationsTotal\relax</a> +<a class="sourceLine" id="cb367-20" data-line-number="20"> .<span class="co">%</span></a> +<a class="sourceLine" id="cb367-21" data-line-number="21"> \expandafter\@gobble</a> +<a class="sourceLine" id="cb367-22" data-line-number="22"> \else</a> +<a class="sourceLine" id="cb367-23" data-line-number="23"> , and</a> +<a class="sourceLine" id="cb367-24" data-line-number="24"> \fi\citations}</a> +<a class="sourceLine" id="cb367-25" data-line-number="25"><span class="fu">\makeatother</span></a> +<a class="sourceLine" id="cb367-26" data-line-number="26"><span class="fu">\markdownSetup</span>{</a> +<a class="sourceLine" id="cb367-27" data-line-number="27"> renderers = {</a> +<a class="sourceLine" id="cb367-28" data-line-number="28"> textCite = {<span class="co">%</span></a> +<a class="sourceLine" id="cb367-29" data-line-number="29"> <span class="fu">\citationsCounter</span>=1<span class="co">%</span></a> +<a class="sourceLine" id="cb367-30" data-line-number="30"> <span class="fu">\citationsTotal</span>=#1<span class="co">%</span></a> +<a class="sourceLine" id="cb367-31" data-line-number="31"> This is</a> +<a class="sourceLine" id="cb367-32" data-line-number="32"> <span class="fu">\expandafter\citations</span></a> +<a class="sourceLine" id="cb367-33" data-line-number="33"> },</a> +<a class="sourceLine" id="cb367-34" data-line-number="34"> },</a> +<a class="sourceLine" id="cb367-35" data-line-number="35">}</a> +<a class="sourceLine" id="cb367-36" data-line-number="36"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb367-37" data-line-number="37"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb367-38" data-line-number="38">@abrahams90 [pp. 12; also @eijkhout91]</a> +<a class="sourceLine" id="cb367-39" data-line-number="39"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb367-40" data-line-number="40"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb368"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb368-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> +<blockquote> <p>This is a text citation <em>abrahams90</em> with a postfix <em>pp. 12</em>, and a citation <em>eijkhout91</em> with a prefix <em>also</em>.</p> </blockquote> <h4 id="table-renderer"><span class="header-section-number">2.3.1.21</span> Table Renderer</h4> @@ -5178,67 +5178,67 @@ multiple paragraphs</li> </ul> <h5 id="latex-example-45" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb367"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb367-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> -<a class="sourceLine" id="cb367-2" data-line-number="2"><span class="bu">\usepackage</span>[pipeTables, tableCaptions]{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb367-3" data-line-number="3"><span class="fu">\newcount\rowCounter</span></a> -<a class="sourceLine" id="cb367-4" data-line-number="4"><span class="fu">\newcount\columnCounter</span></a> -<a class="sourceLine" id="cb367-5" data-line-number="5"><span class="fu">\makeatletter</span></a> -<a class="sourceLine" id="cb367-6" data-line-number="6"><span class="fu">\def</span>\processRow#1{<span class="co">%</span></a> -<a class="sourceLine" id="cb367-7" data-line-number="7"> \columnCounter=1<span class="co">%</span></a> -<a class="sourceLine" id="cb367-8" data-line-number="8"> \ifnum\rowCounter=0\relax</a> -<a class="sourceLine" id="cb367-9" data-line-number="9"> As for the alignment,</a> -<a class="sourceLine" id="cb367-10" data-line-number="10"> \else</a> -<a class="sourceLine" id="cb367-11" data-line-number="11"> In row \the\rowCounter,</a> -<a class="sourceLine" id="cb367-12" data-line-number="12"> \fi</a> -<a class="sourceLine" id="cb367-13" data-line-number="13"> \processColumn#1</a> -<a class="sourceLine" id="cb367-14" data-line-number="14"> \advance\rowCounter by 1\relax</a> -<a class="sourceLine" id="cb367-15" data-line-number="15"> \ifnum\rowCounter>\rowTotal\relax</a> -<a class="sourceLine" id="cb367-16" data-line-number="16"> \expandafter\@gobble</a> -<a class="sourceLine" id="cb367-17" data-line-number="17"> \fi\processRow}<span class="co">%</span></a> -<a class="sourceLine" id="cb367-18" data-line-number="18"><span class="fu">\def</span>\processColumn#1{<span class="co">%</span></a> -<a class="sourceLine" id="cb367-19" data-line-number="19"> column number \the\columnCounter{}</a> -<a class="sourceLine" id="cb367-20" data-line-number="20"> \ifnum\rowCounter=0\relax</a> -<a class="sourceLine" id="cb367-21" data-line-number="21"> \if#1d{}has default alignment\fi</a> -<a class="sourceLine" id="cb367-22" data-line-number="22"> \if#1l{}is left-aligned\fi</a> -<a class="sourceLine" id="cb367-23" data-line-number="23"> \if#1c{}is centered\fi</a> -<a class="sourceLine" id="cb367-24" data-line-number="24"> \if#1r{}is right-aligned\fi</a> -<a class="sourceLine" id="cb367-25" data-line-number="25"> \else</a> -<a class="sourceLine" id="cb367-26" data-line-number="26"> says \emph{#1}<span class="co">%</span></a> -<a class="sourceLine" id="cb367-27" data-line-number="27"> \fi</a> -<a class="sourceLine" id="cb367-28" data-line-number="28"> \advance\columnCounter by 1\relax</a> -<a class="sourceLine" id="cb367-29" data-line-number="29"> \ifnum\columnCounter<\columnTotal\relax, \fi</a> -<a class="sourceLine" id="cb367-30" data-line-number="30"> \ifnum\columnCounter=\columnTotal\relax, and \fi</a> -<a class="sourceLine" id="cb367-31" data-line-number="31"> \ifnum\columnCounter>\columnTotal\relax</a> -<a class="sourceLine" id="cb367-32" data-line-number="32"> .\expandafter\@gobble</a> -<a class="sourceLine" id="cb367-33" data-line-number="33"> \fi\processColumn}<span class="co">%</span></a> -<a class="sourceLine" id="cb367-34" data-line-number="34"><span class="fu">\makeatother</span></a> -<a class="sourceLine" id="cb367-35" data-line-number="35"><span class="fu">\markdownSetup</span>{</a> -<a class="sourceLine" id="cb367-36" data-line-number="36"> renderers = {</a> -<a class="sourceLine" id="cb367-37" data-line-number="37"> table = {<span class="co">%</span></a> -<a class="sourceLine" id="cb367-38" data-line-number="38"> This is a table with caption <span class="fu">\emph</span>{#1} that is #3 colums wide</a> -<a class="sourceLine" id="cb367-39" data-line-number="39"> and #2 rows long.</a> -<a class="sourceLine" id="cb367-40" data-line-number="40"> <span class="fu">\rowCounter</span>=0<span class="co">%</span></a> -<a class="sourceLine" id="cb367-41" data-line-number="41"> <span class="fu">\def</span>\rowTotal{#2}<span class="co">%</span></a> -<a class="sourceLine" id="cb367-42" data-line-number="42"> <span class="fu">\def</span>\columnTotal{#3}<span class="co">%</span></a> -<a class="sourceLine" id="cb367-43" data-line-number="43"> <span class="fu">\processRow</span></a> -<a class="sourceLine" id="cb367-44" data-line-number="44"> },</a> -<a class="sourceLine" id="cb367-45" data-line-number="45"> },</a> -<a class="sourceLine" id="cb367-46" data-line-number="46">}</a> -<a class="sourceLine" id="cb367-47" data-line-number="47"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb367-48" data-line-number="48"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb367-49" data-line-number="49">| Right | Left | Default | Center |</a> -<a class="sourceLine" id="cb367-50" data-line-number="50">|------:|:-----|---------|:------:|</a> -<a class="sourceLine" id="cb367-51" data-line-number="51">| 12 | 12 | 12 | 12 |</a> -<a class="sourceLine" id="cb367-52" data-line-number="52">| 123 | 123 | 123 | 123 |</a> -<a class="sourceLine" id="cb367-53" data-line-number="53">| 1 | 1 | 1 | 1 |</a> -<a class="sourceLine" id="cb367-54" data-line-number="54"></a> -<a class="sourceLine" id="cb367-55" data-line-number="55"> : Demonstration of pipe table syntax</a> -<a class="sourceLine" id="cb367-56" data-line-number="56"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb367-57" data-line-number="57"><span class="kw">\end</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb367-58" data-line-number="58"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb367-59" data-line-number="59"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb368"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb368-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb369"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb369-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> +<a class="sourceLine" id="cb369-2" data-line-number="2"><span class="bu">\usepackage</span>[pipeTables, tableCaptions]{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb369-3" data-line-number="3"><span class="fu">\newcount\rowCounter</span></a> +<a class="sourceLine" id="cb369-4" data-line-number="4"><span class="fu">\newcount\columnCounter</span></a> +<a class="sourceLine" id="cb369-5" data-line-number="5"><span class="fu">\makeatletter</span></a> +<a class="sourceLine" id="cb369-6" data-line-number="6"><span class="fu">\def</span>\processRow#1{<span class="co">%</span></a> +<a class="sourceLine" id="cb369-7" data-line-number="7"> \columnCounter=1<span class="co">%</span></a> +<a class="sourceLine" id="cb369-8" data-line-number="8"> \ifnum\rowCounter=0\relax</a> +<a class="sourceLine" id="cb369-9" data-line-number="9"> As for the alignment,</a> +<a class="sourceLine" id="cb369-10" data-line-number="10"> \else</a> +<a class="sourceLine" id="cb369-11" data-line-number="11"> In row \the\rowCounter,</a> +<a class="sourceLine" id="cb369-12" data-line-number="12"> \fi</a> +<a class="sourceLine" id="cb369-13" data-line-number="13"> \processColumn#1</a> +<a class="sourceLine" id="cb369-14" data-line-number="14"> \advance\rowCounter by 1\relax</a> +<a class="sourceLine" id="cb369-15" data-line-number="15"> \ifnum\rowCounter>\rowTotal\relax</a> +<a class="sourceLine" id="cb369-16" data-line-number="16"> \expandafter\@gobble</a> +<a class="sourceLine" id="cb369-17" data-line-number="17"> \fi\processRow}<span class="co">%</span></a> +<a class="sourceLine" id="cb369-18" data-line-number="18"><span class="fu">\def</span>\processColumn#1{<span class="co">%</span></a> +<a class="sourceLine" id="cb369-19" data-line-number="19"> column number \the\columnCounter{}</a> +<a class="sourceLine" id="cb369-20" data-line-number="20"> \ifnum\rowCounter=0\relax</a> +<a class="sourceLine" id="cb369-21" data-line-number="21"> \if#1d{}has default alignment\fi</a> +<a class="sourceLine" id="cb369-22" data-line-number="22"> \if#1l{}is left-aligned\fi</a> +<a class="sourceLine" id="cb369-23" data-line-number="23"> \if#1c{}is centered\fi</a> +<a class="sourceLine" id="cb369-24" data-line-number="24"> \if#1r{}is right-aligned\fi</a> +<a class="sourceLine" id="cb369-25" data-line-number="25"> \else</a> +<a class="sourceLine" id="cb369-26" data-line-number="26"> says \emph{#1}<span class="co">%</span></a> +<a class="sourceLine" id="cb369-27" data-line-number="27"> \fi</a> +<a class="sourceLine" id="cb369-28" data-line-number="28"> \advance\columnCounter by 1\relax</a> +<a class="sourceLine" id="cb369-29" data-line-number="29"> \ifnum\columnCounter<\columnTotal\relax, \fi</a> +<a class="sourceLine" id="cb369-30" data-line-number="30"> \ifnum\columnCounter=\columnTotal\relax, and \fi</a> +<a class="sourceLine" id="cb369-31" data-line-number="31"> \ifnum\columnCounter>\columnTotal\relax</a> +<a class="sourceLine" id="cb369-32" data-line-number="32"> .\expandafter\@gobble</a> +<a class="sourceLine" id="cb369-33" data-line-number="33"> \fi\processColumn}<span class="co">%</span></a> +<a class="sourceLine" id="cb369-34" data-line-number="34"><span class="fu">\makeatother</span></a> +<a class="sourceLine" id="cb369-35" data-line-number="35"><span class="fu">\markdownSetup</span>{</a> +<a class="sourceLine" id="cb369-36" data-line-number="36"> renderers = {</a> +<a class="sourceLine" id="cb369-37" data-line-number="37"> table = {<span class="co">%</span></a> +<a class="sourceLine" id="cb369-38" data-line-number="38"> This is a table with caption <span class="fu">\emph</span>{#1} that is #3 colums wide</a> +<a class="sourceLine" id="cb369-39" data-line-number="39"> and #2 rows long.</a> +<a class="sourceLine" id="cb369-40" data-line-number="40"> <span class="fu">\rowCounter</span>=0<span class="co">%</span></a> +<a class="sourceLine" id="cb369-41" data-line-number="41"> <span class="fu">\def</span>\rowTotal{#2}<span class="co">%</span></a> +<a class="sourceLine" id="cb369-42" data-line-number="42"> <span class="fu">\def</span>\columnTotal{#3}<span class="co">%</span></a> +<a class="sourceLine" id="cb369-43" data-line-number="43"> <span class="fu">\processRow</span></a> +<a class="sourceLine" id="cb369-44" data-line-number="44"> },</a> +<a class="sourceLine" id="cb369-45" data-line-number="45"> },</a> +<a class="sourceLine" id="cb369-46" data-line-number="46">}</a> +<a class="sourceLine" id="cb369-47" data-line-number="47"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb369-48" data-line-number="48"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb369-49" data-line-number="49">| Right | Left | Default | Center |</a> +<a class="sourceLine" id="cb369-50" data-line-number="50">|------:|:-----|---------|:------:|</a> +<a class="sourceLine" id="cb369-51" data-line-number="51">| 12 | 12 | 12 | 12 |</a> +<a class="sourceLine" id="cb369-52" data-line-number="52">| 123 | 123 | 123 | 123 |</a> +<a class="sourceLine" id="cb369-53" data-line-number="53">| 1 | 1 | 1 | 1 |</a> +<a class="sourceLine" id="cb369-54" data-line-number="54"></a> +<a class="sourceLine" id="cb369-55" data-line-number="55"> : Demonstration of pipe table syntax</a> +<a class="sourceLine" id="cb369-56" data-line-number="56"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb369-57" data-line-number="57"><span class="kw">\end</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb369-58" data-line-number="58"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb369-59" data-line-number="59"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb370"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb370-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>This is a table with caption <em>Demonstration of pipe table syntax</em> that is 4 colums wide and 4 rows long. As for the alignment, column number 1 is right-aligned, column number 2 is left-aligned, column number 3 has default alignment, and column number 4 is centered. In row 1, column number 1 says <em>Right</em>, column number 2 says <em>Left</em>, column number 3 says <em>Default</em>, and column number 4 says <em>Center</em>. In row 2, column number 1 says <em>12</em>, column number 2 says <em>12</em>, column number 3 says <em>12</em>, and column number 4 says <em>12</em>. In row 3, column number 1 says <em>123</em>, column number 2 says <em>123</em>, column number 3 says <em>123</em>, and column number 4 says <em>123</em>. In row 4, column number 1 says <em>1</em>, column number 2 says <em>1</em>, column number 3 says <em>1</em>, and column number 4 says <em>1</em>.</p> @@ -5247,23 +5247,23 @@ multiple paragraphs</li> <p>By default, token renderers point to package-defined <span class="tex">T<sub>e</sub>X</span> macros, further referred to as <em>prototypes</em>, which provide useful default definitions.</p> <h5 id="plain-tex-example-27" class="unnumbered">Plain <span class="tex">T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb369"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb369-1" data-line-number="1"><span class="fu">\input</span> markdown</a> -<a class="sourceLine" id="cb369-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererTildePrototype{<span class="co">%</span></a> -<a class="sourceLine" id="cb369-3" data-line-number="3"> Packages can specify token renderer prototypes.<span class="co">%</span></a> -<a class="sourceLine" id="cb369-4" data-line-number="4">}</a> -<a class="sourceLine" id="cb369-5" data-line-number="5"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb369-6" data-line-number="6">~</a> -<a class="sourceLine" id="cb369-7" data-line-number="7"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb369-8" data-line-number="8"></a> -<a class="sourceLine" id="cb369-9" data-line-number="9"><span class="fu">\def</span>\markdownRendererTilde{<span class="co">%</span></a> -<a class="sourceLine" id="cb369-10" data-line-number="10"> User-defined token renderers take precedence.<span class="co">%</span></a> -<a class="sourceLine" id="cb369-11" data-line-number="11">}</a> -<a class="sourceLine" id="cb369-12" data-line-number="12"><span class="fu">\markdownBegin</span></a> -<a class="sourceLine" id="cb369-13" data-line-number="13">~</a> -<a class="sourceLine" id="cb369-14" data-line-number="14"><span class="fu">\markdownEnd</span></a> -<a class="sourceLine" id="cb369-15" data-line-number="15"><span class="fu">\bye</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb370"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb370-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb371"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb371-1" data-line-number="1"><span class="fu">\input</span> markdown</a> +<a class="sourceLine" id="cb371-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererTildePrototype{<span class="co">%</span></a> +<a class="sourceLine" id="cb371-3" data-line-number="3"> Packages can specify token renderer prototypes.<span class="co">%</span></a> +<a class="sourceLine" id="cb371-4" data-line-number="4">}</a> +<a class="sourceLine" id="cb371-5" data-line-number="5"><span class="fu">\markdownBegin</span></a> +<a class="sourceLine" id="cb371-6" data-line-number="6">~</a> +<a class="sourceLine" id="cb371-7" data-line-number="7"><span class="fu">\markdownEnd</span></a> +<a class="sourceLine" id="cb371-8" data-line-number="8"></a> +<a class="sourceLine" id="cb371-9" data-line-number="9"><span class="fu">\def</span>\markdownRendererTilde{<span class="co">%</span></a> +<a class="sourceLine" id="cb371-10" data-line-number="10"> User-defined token renderers take precedence.<span class="co">%</span></a> +<a class="sourceLine" id="cb371-11" data-line-number="11">}</a> +<a class="sourceLine" id="cb371-12" data-line-number="12"><span class="fu">\markdownBegin</span></a> +<a class="sourceLine" id="cb371-13" data-line-number="13">~</a> +<a class="sourceLine" id="cb371-14" data-line-number="14"><span class="fu">\markdownEnd</span></a> +<a class="sourceLine" id="cb371-15" data-line-number="15"><span class="fu">\bye</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb372"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb372-1" data-line-number="1"><span class="ex">luatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>Packages can specify token renderer prototypes.</p> @@ -5271,28 +5271,28 @@ multiple paragraphs</li> </blockquote> <h5 id="latex-example-46" class="unnumbered"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb371"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb371-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> -<a class="sourceLine" id="cb371-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb371-3" data-line-number="3"><span class="fu">\markdownSetup</span>{</a> -<a class="sourceLine" id="cb371-4" data-line-number="4"> rendererPrototypes = {</a> -<a class="sourceLine" id="cb371-5" data-line-number="5"> tilde = {Packages can specify token renderer prototypes.},</a> -<a class="sourceLine" id="cb371-6" data-line-number="6"> },</a> -<a class="sourceLine" id="cb371-7" data-line-number="7">}</a> -<a class="sourceLine" id="cb371-8" data-line-number="8"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> -<a class="sourceLine" id="cb371-9" data-line-number="9"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb371-10" data-line-number="10">~</a> -<a class="sourceLine" id="cb371-11" data-line-number="11"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> -<a class="sourceLine" id="cb371-12" data-line-number="12"></a> -<a class="sourceLine" id="cb371-13" data-line-number="13"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> -<a class="sourceLine" id="cb371-14" data-line-number="14"> renderers = {</a> -<a class="sourceLine" id="cb371-15" data-line-number="15"> tilde = {User-defined token renderers take precedence.},</a> -<a class="sourceLine" id="cb371-16" data-line-number="16"> },</a> -<a class="sourceLine" id="cb371-17" data-line-number="17">}</a> -<a class="sourceLine" id="cb371-18" data-line-number="18">~</a> -<a class="sourceLine" id="cb371-19" data-line-number="19"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> -<a class="sourceLine" id="cb371-20" data-line-number="20"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb372"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb372-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb373"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb373-1" data-line-number="1"><span class="bu">\documentclass</span>{<span class="ex">article</span>}</a> +<a class="sourceLine" id="cb373-2" data-line-number="2"><span class="bu">\usepackage</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb373-3" data-line-number="3"><span class="fu">\markdownSetup</span>{</a> +<a class="sourceLine" id="cb373-4" data-line-number="4"> rendererPrototypes = {</a> +<a class="sourceLine" id="cb373-5" data-line-number="5"> tilde = {Packages can specify token renderer prototypes.},</a> +<a class="sourceLine" id="cb373-6" data-line-number="6"> },</a> +<a class="sourceLine" id="cb373-7" data-line-number="7">}</a> +<a class="sourceLine" id="cb373-8" data-line-number="8"><span class="kw">\begin</span>{<span class="ex">document</span>}</a> +<a class="sourceLine" id="cb373-9" data-line-number="9"><span class="kw">\begin</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb373-10" data-line-number="10">~</a> +<a class="sourceLine" id="cb373-11" data-line-number="11"><span class="kw">\end</span>{<span class="ex">markdown</span>}</a> +<a class="sourceLine" id="cb373-12" data-line-number="12"></a> +<a class="sourceLine" id="cb373-13" data-line-number="13"><span class="kw">\begin</span>{<span class="ex">markdown*</span>}{</a> +<a class="sourceLine" id="cb373-14" data-line-number="14"> renderers = {</a> +<a class="sourceLine" id="cb373-15" data-line-number="15"> tilde = {User-defined token renderers take precedence.},</a> +<a class="sourceLine" id="cb373-16" data-line-number="16"> },</a> +<a class="sourceLine" id="cb373-17" data-line-number="17">}</a> +<a class="sourceLine" id="cb373-18" data-line-number="18">~</a> +<a class="sourceLine" id="cb373-19" data-line-number="19"><span class="kw">\end</span>{<span class="ex">markdown*</span>}</a> +<a class="sourceLine" id="cb373-20" data-line-number="20"><span class="kw">\end</span>{<span class="ex">document</span>}</a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb374"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb374-1" data-line-number="1"><span class="ex">lualatex</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>Packages can specify token renderer prototypes.</p> @@ -5300,24 +5300,24 @@ multiple paragraphs</li> </blockquote> <h5 id="context-example-37" class="unnumbered">Con<span class="tex">T<sub>e</sub>X</span>t Example</h5> <p>Using a text editor, create a text document named <code>document.tex</code> with the following content:</p> -<div class="sourceCode" id="cb373"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb373-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> -<a class="sourceLine" id="cb373-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererTildePrototype{<span class="co">%</span></a> -<a class="sourceLine" id="cb373-3" data-line-number="3"> Packages can specify token renderer prototypes.<span class="co">%</span></a> -<a class="sourceLine" id="cb373-4" data-line-number="4">}</a> -<a class="sourceLine" id="cb373-5" data-line-number="5"><span class="fu">\starttext</span></a> -<a class="sourceLine" id="cb373-6" data-line-number="6"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb373-7" data-line-number="7">~</a> -<a class="sourceLine" id="cb373-8" data-line-number="8"><span class="fu">\stopmarkdown</span></a> -<a class="sourceLine" id="cb373-9" data-line-number="9"></a> -<a class="sourceLine" id="cb373-10" data-line-number="10"><span class="fu">\def</span>\markdownRendererTilde{<span class="co">%</span></a> -<a class="sourceLine" id="cb373-11" data-line-number="11"> User-defined token renderers take precedence.<span class="co">%</span></a> -<a class="sourceLine" id="cb373-12" data-line-number="12">}</a> -<a class="sourceLine" id="cb373-13" data-line-number="13"><span class="fu">\startmarkdown</span></a> -<a class="sourceLine" id="cb373-14" data-line-number="14">~</a> -<a class="sourceLine" id="cb373-15" data-line-number="15"><span class="fu">\stopmarkdown</span></a> -<a class="sourceLine" id="cb373-16" data-line-number="16"><span class="fu">\stoptext</span></a></code></pre></div> -<p>Next, invoke LuaTeX from the terminal:</p> -<div class="sourceCode" id="cb374"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb374-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> +<div class="sourceCode" id="cb375"><pre class="sourceCode tex"><code class="sourceCode latex"><a class="sourceLine" id="cb375-1" data-line-number="1"><span class="fu">\usemodule</span>[t][markdown]</a> +<a class="sourceLine" id="cb375-2" data-line-number="2"><span class="fu">\def</span>\markdownRendererTildePrototype{<span class="co">%</span></a> +<a class="sourceLine" id="cb375-3" data-line-number="3"> Packages can specify token renderer prototypes.<span class="co">%</span></a> +<a class="sourceLine" id="cb375-4" data-line-number="4">}</a> +<a class="sourceLine" id="cb375-5" data-line-number="5"><span class="fu">\starttext</span></a> +<a class="sourceLine" id="cb375-6" data-line-number="6"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb375-7" data-line-number="7">~</a> +<a class="sourceLine" id="cb375-8" data-line-number="8"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb375-9" data-line-number="9"></a> +<a class="sourceLine" id="cb375-10" data-line-number="10"><span class="fu">\def</span>\markdownRendererTilde{<span class="co">%</span></a> +<a class="sourceLine" id="cb375-11" data-line-number="11"> User-defined token renderers take precedence.<span class="co">%</span></a> +<a class="sourceLine" id="cb375-12" data-line-number="12">}</a> +<a class="sourceLine" id="cb375-13" data-line-number="13"><span class="fu">\startmarkdown</span></a> +<a class="sourceLine" id="cb375-14" data-line-number="14">~</a> +<a class="sourceLine" id="cb375-15" data-line-number="15"><span class="fu">\stopmarkdown</span></a> +<a class="sourceLine" id="cb375-16" data-line-number="16"><span class="fu">\stoptext</span></a></code></pre></div> +<p>Next, invoke LuaTeX from the terminal:</p> +<div class="sourceCode" id="cb376"><pre class="sourceCode sh"><code class="sourceCode bash"><a class="sourceLine" id="cb376-1" data-line-number="1"><span class="ex">context</span> document.tex</a></code></pre></div> <p>A PDF document named <code>document.pdf</code> should be produced and contain the following text:</p> <blockquote> <p>Packages can specify token renderer prototypes.</p> diff --git a/macros/generic/markdown/markdown.md b/macros/generic/markdown/markdown.md index ddd8c67dcd..2a184c3f25 100644 --- a/macros/generic/markdown/markdown.md +++ b/macros/generic/markdown/markdown.md @@ -14,8 +14,9 @@ The [Markdown package][pkg] converts [markdown][] markup to \TeX{} commands. The functionality is provided both as a Lua module and as plain \TeX{}, \LaTeX{}, and \Hologo{ConTeXt} macro packages that can be used to directly typeset \TeX documents containing markdown markup. Unlike other convertors, the Markdown package -makes it easy to redefine how each and every markdown element is rendered. -Creative abuse of the markdown syntax is encouraged. ;-) +does not require any external programs, and makes it easy to redefine how each +and every markdown element is rendered. Creative abuse of the markdown +syntax is encouraged. ;-) [markdown]: https://daringfireball.net/projects/markdown/basics/ (Daring Fireball: Markdown Basics) diff --git a/macros/generic/markdown/markdown.pdf b/macros/generic/markdown/markdown.pdf Binary files differindex d166468833..4d8394cebd 100644 --- a/macros/generic/markdown/markdown.pdf +++ b/macros/generic/markdown/markdown.pdf diff --git a/macros/generic/markdown/tests/README.md b/macros/generic/markdown/tests/README.md deleted file mode 100644 index 53db58776b..0000000000 --- a/macros/generic/markdown/tests/README.md +++ /dev/null @@ -1,17 +0,0 @@ -This directory contains the testing framework of the Markdown package. Tests -act as an ensurance that changes to the package did not introduce new bugs. - -The `test.sh` shell script is used to run the individual tests. To run one or -more tests, execute the `test.sh` script with the pathnames of one or more test -files as the arguments. Test files can be recognized by the `.test` suffix and -reside inside the `testfiles/` directory. The Markdown package needs to be -[installed][install] before running the tests. - - [install]: http://mirrors.ctan.org/macros/generic/markdown/markdown.html#installation "Markdown Package User Manual" - -Each time a commit is made to the Git repository of the project, this test -suite is ran by a continuous integration service. -The current status is: -[][CircleCI] - - [CircleCI]: https://circleci.com/gh/Witiko/markdown/tree/master (CircleCI) diff --git a/macros/generic/markdown/tests/support/README.md b/macros/generic/markdown/tests/support/README.md deleted file mode 100644 index d06e40a921..0000000000 --- a/macros/generic/markdown/tests/support/README.md +++ /dev/null @@ -1,4 +0,0 @@ -This directory contains support files. Support files should be available to the -TeX source code that is being typeset during a test. These are mainly files -containing TeX source code that is common for all the TeX source code -templates. diff --git a/macros/generic/markdown/tests/support/latex-setup.tex b/macros/generic/markdown/tests/support/latex-setup.tex deleted file mode 100644 index be002d6ec8..0000000000 --- a/macros/generic/markdown/tests/support/latex-setup.tex +++ /dev/null @@ -1,162 +0,0 @@ -renderers = {% - interblockSeparator = {% - \TYPE{interblockSeparator}% - \GOBBLE}, - lineBreak = {% - \TYPE{lineBreak}% - \GOBBLE}, - ellipsis = {% - \TYPE{ellipsis}% - \GOBBLE}, - nbsp = {% - \TYPE{nbsp}% - \GOBBLE}, - leftBrace = {% - \TYPE{leftBrace}% - \GOBBLE}, - rightBrace = {% - \TYPE{rightBrace}% - \GOBBLE}, - dollarSign = {% - \TYPE{dollarSign}% - \GOBBLE}, - percentSign = {% - \TYPE{percentSign}% - \GOBBLE}, - ampersand = {% - \TYPE{ampersand}% - \GOBBLE}, - underscore = {% - \TYPE{underscore}% - \GOBBLE}, - hash = {% - \TYPE{hash}% - \GOBBLE}, - circumflex = {% - \TYPE{circumflex}% - \GOBBLE}, - backslash = {% - \TYPE{backslash}% - \GOBBLE}, - tilde = {% - \TYPE{tilde}% - \GOBBLE}, - pipe = {% - \TYPE{pipe}% - \GOBBLE}, - codeSpan = {% - \TYPE{codeSpan: #1}}, - link = {% - \TYPE{BEGIN link}% - \TYPE{- label: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END link}}, - image = {% - \TYPE{BEGIN image}% - \TYPE{- label: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END image}}, - contentBlock = {% - \TYPE{BEGIN contentBlock}% - \TYPE{- suffix: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END contentBlock}% - }, - contentBlockOnlineImage = {% - \TYPE{BEGIN contentBlockOnlineImage}% - \TYPE{- suffix: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END contentBlockOnlineImage}% - }, - contentBlockCode = {% - \TYPE{BEGIN contentBlockCode}% - \TYPE{- suffix: #1}% - \TYPE{- language: #2}% - \TYPE{- URI: #3}% - \TYPE{- title: #5}% - \TYPE{END contentBlockCode}% - }, - ulBegin = {% - \TYPE{ulBegin}}, - ulBeginTight = {% - \TYPE{ulBeginTight}}, - ulItem = {% - \TYPE{ulItem}}, - ulItemEnd = {% - \TYPE{ulItemEnd}}, - ulEnd = {% - \TYPE{ulEnd}}, - ulEndTight = {% - \TYPE{ulEndTight}}, - olBegin = {% - \TYPE{olBegin}}, - olBeginTight = {% - \TYPE{olBeginTight}}, - olItem = {% - \TYPE{olItem}}, - olItemEnd = {% - \TYPE{olItemEnd}}, - olItemWithNumber = {% - \TYPE{olItemWithNumber: #1}}, - olEnd = {% - \TYPE{olEnd}}, - olEndTight = {% - \TYPE{olEndTight}}, - dlBegin = {% - \TYPE{dlBegin}}, - dlBeginTight = {% - \TYPE{dlBeginTight}}, - dlItem = {% - \TYPE{dlItem: #1}}, - dlItemEnd = {% - \TYPE{dlItemEnd}}, - dlDefinitionBegin = {% - \TYPE{dlDefinitionBegin}}, - dlDefinitionEnd = {% - \TYPE{dlDefinitionEnd}}, - dlEnd = {% - \TYPE{dlEnd}}, - dlEndTight = {% - \TYPE{dlEndTight}}, - emphasis = {% - \TYPE{emphasis: #1}}, - strongEmphasis = {% - \TYPE{strongEmphasis: #1}}, - blockQuoteBegin = {% - \TYPE{blockQuoteBegin}}, - blockQuoteEnd = {% - \TYPE{blockQuoteEnd}}, - inputVerbatim = {% - \TYPE{inputVerbatim: #1}}, - inputFencedCode = {% - \TYPE{BEGIN fencedCode}% - \TYPE{- src: #1}% - \TYPE{- infostring: #2}% - \TYPE{END fencedCode}}, - headingOne = {% - \TYPE{headingOne: #1}}, - headingTwo = {% - \TYPE{headingTwo: #1}}, - headingThree = {% - \TYPE{headingThree: #1}}, - headingFour = {% - \TYPE{headingFour: #1}}, - headingFive = {% - \TYPE{headingFive: #1}}, - headingSix = {% - \TYPE{headingSix: #1}}, - horizontalRule = {% - \TYPE{horizontalRule}}, - footnote = {% - \TYPE{footnote: #1}}, - cite = {% - \CITATIONS{#1}}, - textCite = {% - \TEXTCITATIONS{#1}}, - table = {% - \TABLE{#1}{#2}{#3}} -} diff --git a/macros/generic/markdown/tests/support/plain-setup.tex b/macros/generic/markdown/tests/support/plain-setup.tex deleted file mode 100644 index 1c163781e7..0000000000 --- a/macros/generic/markdown/tests/support/plain-setup.tex +++ /dev/null @@ -1,142 +0,0 @@ -\def\markdownRendererInterblockSeparator#1{% - \TYPE{interblockSeparator}}% -\def\markdownRendererLineBreak#1{% - \TYPE{lineBreak}}% -\def\markdownRendererEllipsis#1{% - \TYPE{ellipsis}}% -\def\markdownRendererNbsp#1{% - \TYPE{nbsp}}% -\def\markdownRendererLeftBrace#1{% - \TYPE{leftBrace}}% -\def\markdownRendererRightBrace#1{% - \TYPE{rightBrace}}% -\def\markdownRendererDollarSign#1{% - \TYPE{dollarSign}}% -\def\markdownRendererPercentSign#1{% - \TYPE{percentSign}}% -\def\markdownRendererAmpersand#1{% - \TYPE{ampersand}}% -\def\markdownRendererUnderscore#1{% - \TYPE{underscore}}% -\def\markdownRendererHash#1{% - \TYPE{hash}}% -\def\markdownRendererCircumflex#1{% - \TYPE{circumflex}}% -\def\markdownRendererBackslash#1{% - \TYPE{backslash}}% -\def\markdownRendererTilde#1{% - \TYPE{tilde}}% -\def\markdownRendererPipe#1{% - \TYPE{pipe}}% -\def\markdownRendererCodeSpan#1{% - \TYPE{codeSpan: #1}}% -\def\markdownRendererLink#1#2#3#4{% - \TYPE{BEGIN link}% - \TYPE{- label: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END link}}% -\def\markdownRendererImage#1#2#3#4{% - \TYPE{BEGIN image}% - \TYPE{- label: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END image}}% -\def\markdownRendererContentBlock#1#2#3#4{% - \TYPE{BEGIN contentBlock}% - \TYPE{- suffix: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END contentBlock}}% -\def\markdownRendererContentBlockOnlineImage#1#2#3#4{% - \TYPE{BEGIN contentBlockOnlineImage}% - \TYPE{- suffix: #1}% - \TYPE{- URI: #2}% - \TYPE{- title: #4}% - \TYPE{END contentBlockOnlineImage}}% -\def\markdownRendererContentBlockCode#1#2#3#4#5{% - \TYPE{BEGIN contentBlockCode}% - \TYPE{- suffix: #1}% - \TYPE{- language: #2}% - \TYPE{- URI: #3}% - \TYPE{- title: #5}% - \TYPE{END contentBlockCode}}% -\def\markdownRendererUlBegin{% - \TYPE{ulBegin}}% -\def\markdownRendererUlBeginTight{% - \TYPE{ulBeginTight}}% -\def\markdownRendererUlItem{% - \TYPE{ulItem}}% -\def\markdownRendererUlItemEnd{% - \TYPE{ulItemEnd}}% -\def\markdownRendererUlEnd{% - \TYPE{ulEnd}}% -\def\markdownRendererUlEndTight{% - \TYPE{ulEndTight}}% -\def\markdownRendererOlBegin{% - \TYPE{olBegin}}% -\def\markdownRendererOlBeginTight{% - \TYPE{olBeginTight}}% -\def\markdownRendererOlItem{% - \TYPE{olItem}}% -\def\markdownRendererOlItemEnd{% - \TYPE{olItemEnd}}% -\def\markdownRendererOlItemWithNumber#1{% - \TYPE{olItemWithNumber: #1}}% -\def\markdownRendererOlEnd{% - \TYPE{olEnd}}% -\def\markdownRendererOlEndTight{% - \TYPE{olEndTight}}% -\def\markdownRendererDlBegin{% - \TYPE{dlBegin}}% -\def\markdownRendererDlBeginTight{% - \TYPE{dlBeginTight}}% -\def\markdownRendererDlItem#1{% - \TYPE{dlItem: #1}}% -\def\markdownRendererDlItemEnd{% - \TYPE{dlItemEnd}}% -\def\markdownRendererDlDefinitionBegin{% - \TYPE{dlDefinitionBegin}}% -\def\markdownRendererDlDefinitionEnd{% - \TYPE{dlDefinitionEnd}}% -\def\markdownRendererDlEnd{% - \TYPE{dlEnd}}% -\def\markdownRendererDlEndTight{% - \TYPE{dlEndTight}}% -\def\markdownRendererEmphasis#1{% - \TYPE{emphasis: #1}}% -\def\markdownRendererStrongEmphasis#1{% - \TYPE{strongEmphasis: #1}}% -\def\markdownRendererBlockQuoteBegin{% - \TYPE{blockQuoteBegin}}% -\def\markdownRendererBlockQuoteEnd{% - \TYPE{blockQuoteEnd}}% -\def\markdownRendererInputVerbatim#1{% - \TYPE{inputVerbatim: #1}}% -\def\markdownRendererInputFencedCode#1#2{% - \TYPE{BEGIN fencedCode}% - \TYPE{- src: #1}% - \TYPE{- infostring: #2}% - \TYPE{END fencedCode}}% -\def\markdownRendererHeadingOne#1{% - \TYPE{headingOne: #1}}% -\def\markdownRendererHeadingTwo#1{% - \TYPE{headingTwo: #1}}% -\def\markdownRendererHeadingThree#1{% - \TYPE{headingThree: #1}}% -\def\markdownRendererHeadingFour#1{% - \TYPE{headingFour: #1}}% -\def\markdownRendererHeadingFive#1{% - \TYPE{headingFive: #1}}% -\def\markdownRendererHeadingSix#1{% - \TYPE{headingSix: #1}}% -\def\markdownRendererHorizontalRule{% - \TYPE{horizontalRule}}% -\def\markdownRendererFootnote#1{% - \TYPE{footnote: #1}}% -\def\markdownRendererCite#1{% - \CITATIONS{#1}}% -\def\markdownRendererTextCite#1{% - \TEXTCITATIONS{#1}}% -\def\markdownRendererTable#1#2#3{% - \TABLE{#1}{#2}{#3}}% diff --git a/macros/generic/markdown/tests/support/setup.tex b/macros/generic/markdown/tests/support/setup.tex deleted file mode 100644 index 60a943d2ac..0000000000 --- a/macros/generic/markdown/tests/support/setup.tex +++ /dev/null @@ -1,79 +0,0 @@ -\long\def\TYPE#1{% - \begingroup - \long\def\TYPE##1{(##1)}% - \immediate\write128{TEST INPUT BEGIN}% - \immediate\write128{#1}% - \immediate\write128{TEST INPUT END}% - \endgroup}% -\def\GOBBLE#1{}% - -% Table parsing -\newcount\ROWCOUNTER -\newcount\COLCOUNTER - -\def\DOROW#1{% - \COLCOUNTER=1% - \DOCOL#1 - \advance\ROWCOUNTER by 1\relax - \ifnum\ROWCOUNTER>\ROWTOTAL\relax - \TYPE{END table}% - \expandafter\GOBBLE - \fi\DOROW}% -\def\DOCOL#1{% - \ifnum\ROWCOUNTER=0 - \TYPE{- alignment of column \the\COLCOUNTER: #1}% - \else - \TYPE{- row \the\ROWCOUNTER, column \the\COLCOUNTER: #1}% - \fi - \advance\COLCOUNTER by 1\relax - \ifnum\COLCOUNTER>\COLTOTAL\relax - \expandafter\GOBBLE - \fi\DOCOL}% -\def\TABLE#1#2#3{% - \ROWCOUNTER=0% - \def\ROWTOTAL{#2}% - \def\COLTOTAL{#3}% - \TYPE{BEGIN table (#2 rows, #3 columns)}% - \TYPE{- caption: #1}% - \DOROW}% - -% Citations parsing -\newcount\CITATIONSCOUNTER - -%% Regular citations -\def\DOCITATIONS#1#2#3#4{% - \advance\CITATIONSCOUNTER by 1\relax - \CITE{#1}{#2}{#3}{#4}% - \ifnum\CITATIONSCOUNTER>\CITATIONSTOTAL\relax - \expandafter\GOBBLE - \fi\DOCITATIONS}% -\def\CITE#1#2#3#4{% - \TYPE{BEGIN cite}% - \TYPE{- suppressAuthor: \if#1+false\else true\fi}% - \TYPE{- prenote: #2}% - \TYPE{- postnote: #3}% - \TYPE{- name: #4}% - \TYPE{END cite}}% -\def\CITATIONS#1{% - \CITATIONSCOUNTER=1% - \def\CITATIONSTOTAL{#1}% - \DOCITATIONS}% - -%% Text citations -\def\DOTEXTCITATIONS#1#2#3#4{% - \advance\CITATIONSCOUNTER by 1\relax - \TEXTCITE{#1}{#2}{#3}{#4}% - \ifnum\CITATIONSCOUNTER>\CITATIONSTOTAL\relax - \expandafter\GOBBLE - \fi\DOTEXTCITATIONS}% -\def\TEXTCITE#1#2#3#4{% - \TYPE{BEGIN textCite}% - \TYPE{- suppressAuthor: \if#1+false\else true\fi}% - \TYPE{- prenote: #2}% - \TYPE{- postnote: #3}% - \TYPE{- name: #4}% - \TYPE{END textCite}}% -\def\TEXTCITATIONS#1{% - \CITATIONSCOUNTER=1% - \def\CITATIONSTOTAL{#1}% - \DOTEXTCITATIONS}% diff --git a/macros/generic/markdown/tests/templates/README.md b/macros/generic/markdown/tests/templates/README.md deleted file mode 100644 index f56802cf7b..0000000000 --- a/macros/generic/markdown/tests/templates/README.md +++ /dev/null @@ -1,20 +0,0 @@ -This directory contains subdirectories, which correspond to individual TeX -formats. These subdirectories contain TeX source code templates, which -can be recognized by the `.tex.m4` suffix, and a file named `COMMANDS.m4`. - -The TeX source code templates are documents that will be typeset as a part of -every test. Before being typeset, the TeX source code templates will be -pre-processed using the m4 macro preprocessor with the following macro -definitions: - - 1. `TEST_SETUP_FILENAME` corresponds to the name of the file containing the - test setup TeX source code. - 2. `TEST_INPUT_FILENAME` corresponds to the name of the file containing the - test markdown source code. - -The `COMMANDS.m4` file contains a newline-separated list of commands that will -be used to typeset the pre-processed TeX source code templates. Before use, -the commands will preprocessed with the following macro definitions: - - 1. `TEST_FILENAME` corresponds to the name of the pre-processed TeX source - code template that is being typeset. diff --git a/macros/generic/markdown/tests/templates/context/COMMANDS.m4 b/macros/generic/markdown/tests/templates/context/COMMANDS.m4 deleted file mode 100644 index d427cd3513..0000000000 --- a/macros/generic/markdown/tests/templates/context/COMMANDS.m4 +++ /dev/null @@ -1,2 +0,0 @@ -texexec --passon="--shell-escape --8bit --interaction=nonstopmode" TEST_FILENAME -context --nonstopmode TEST_FILENAME diff --git a/macros/generic/markdown/tests/templates/context/README.md b/macros/generic/markdown/tests/templates/context/README.md deleted file mode 100644 index 5acb21c88f..0000000000 --- a/macros/generic/markdown/tests/templates/context/README.md +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains TeX source code templates for the ConTeXt Mark II and -ConteXt Mark IV formats. diff --git a/macros/generic/markdown/tests/templates/context/input.tex.m4 b/macros/generic/markdown/tests/templates/context/input.tex.m4 deleted file mode 100644 index 527b73cf9f..0000000000 --- a/macros/generic/markdown/tests/templates/context/input.tex.m4 +++ /dev/null @@ -1,11 +0,0 @@ -% Load the package. -\usemodule[t][markdown] -% Load the support files. -\input setup\relax -\input plain-setup\relax -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -% Perform the test. -\starttext - \markdownInput{TEST_INPUT_FILENAME}% -\stoptext diff --git a/macros/generic/markdown/tests/templates/context/verbatim.tex.m4 b/macros/generic/markdown/tests/templates/context/verbatim.tex.m4 deleted file mode 100644 index 6d19154972..0000000000 --- a/macros/generic/markdown/tests/templates/context/verbatim.tex.m4 +++ /dev/null @@ -1,13 +0,0 @@ -% Load the package. -\usemodule[t][markdown] -% Load the support files. -\input setup\relax -\input plain-setup\relax -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -% Perform the test. -\starttext - \startmarkdown -undivert(TEST_INPUT_FILENAME)dnl - \stopmarkdown -\stoptext diff --git a/macros/generic/markdown/tests/templates/latex/COMMANDS.m4 b/macros/generic/markdown/tests/templates/latex/COMMANDS.m4 deleted file mode 100644 index 767145adc5..0000000000 --- a/macros/generic/markdown/tests/templates/latex/COMMANDS.m4 +++ /dev/null @@ -1,3 +0,0 @@ -pdflatex --shell-escape --interaction=nonstopmode TEST_FILENAME -xelatex --shell-escape --8bit --interaction=nonstopmode TEST_FILENAME -lualatex --interaction=nonstopmode TEST_FILENAME diff --git a/macros/generic/markdown/tests/templates/latex/README.md b/macros/generic/markdown/tests/templates/latex/README.md deleted file mode 100644 index e62b4a40fa..0000000000 --- a/macros/generic/markdown/tests/templates/latex/README.md +++ /dev/null @@ -1 +0,0 @@ -This directory contains TeX source code templates for the LaTeX format. diff --git a/macros/generic/markdown/tests/templates/latex/input.tex.m4 b/macros/generic/markdown/tests/templates/latex/input.tex.m4 deleted file mode 100644 index 324f4e7bf1..0000000000 --- a/macros/generic/markdown/tests/templates/latex/input.tex.m4 +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass{minimal} -\csname UseRawInputEncoding\endcsname -% Load the package. -\usepackage{markdown} -% Load the support files. -\input setup\relax -\usepackage{catchfile} -\CatchFileDef{\LATEXOPTIONS}{latex-setup}\relax -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -\begin{document} -% Perform the test. -\expandafter\markdownInput\expandafter[\LATEXOPTIONS]{TEST_INPUT_FILENAME}% -\end{document} diff --git a/macros/generic/markdown/tests/templates/latex/verbatim-starred.tex.m4 b/macros/generic/markdown/tests/templates/latex/verbatim-starred.tex.m4 deleted file mode 100644 index 5f1434869f..0000000000 --- a/macros/generic/markdown/tests/templates/latex/verbatim-starred.tex.m4 +++ /dev/null @@ -1,17 +0,0 @@ -\documentclass{minimal} -\csname UseRawInputEncoding\endcsname -% Load the package. -\usepackage{markdown} -% Load the support files. -\input setup\relax -\usepackage{catchfile} -\CatchFileDef{\LATEXOPTIONS}{latex-setup}\relax -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -\begin{document} -% Perform the test. -\let\ea\expandafter -\ea\begin\ea{\ea m\ea a\ea r\ea k\ea d\ea o\ea w\ea n\ea *\ea}\ea{\LATEXOPTIONS} -undivert(TEST_INPUT_FILENAME)dnl -\end{markdown*} -\end{document} diff --git a/macros/generic/markdown/tests/templates/latex/verbatim.tex.m4 b/macros/generic/markdown/tests/templates/latex/verbatim.tex.m4 deleted file mode 100644 index 737d49def7..0000000000 --- a/macros/generic/markdown/tests/templates/latex/verbatim.tex.m4 +++ /dev/null @@ -1,17 +0,0 @@ -\documentclass{minimal} -\csname UseRawInputEncoding\endcsname -% Load the package. -\usepackage{markdown} -% Load the support files. -\input setup\relax -\usepackage{catchfile} -\CatchFileDef{\LATEXOPTIONS}{latex-setup}\relax -\expandafter\markdownSetup\expandafter{\LATEXOPTIONS} -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -\begin{document} -% Perform the test. -\begin{markdown} -undivert(TEST_INPUT_FILENAME)dnl -\end{markdown} -\end{document} diff --git a/macros/generic/markdown/tests/templates/plain/COMMANDS.m4 b/macros/generic/markdown/tests/templates/plain/COMMANDS.m4 deleted file mode 100644 index 50745b8a63..0000000000 --- a/macros/generic/markdown/tests/templates/plain/COMMANDS.m4 +++ /dev/null @@ -1,3 +0,0 @@ -pdftex --shell-escape --interaction=nonstopmode TEST_FILENAME -xetex --shell-escape --8bit --interaction=nonstopmode TEST_FILENAME -luatex --interaction=nonstopmode TEST_FILENAME diff --git a/macros/generic/markdown/tests/templates/plain/README.md b/macros/generic/markdown/tests/templates/plain/README.md deleted file mode 100644 index 779102ed26..0000000000 --- a/macros/generic/markdown/tests/templates/plain/README.md +++ /dev/null @@ -1 +0,0 @@ -This directory contains TeX source code templates for the plain TeX format. diff --git a/macros/generic/markdown/tests/templates/plain/input.tex.m4 b/macros/generic/markdown/tests/templates/plain/input.tex.m4 deleted file mode 100644 index b2ef1b560d..0000000000 --- a/macros/generic/markdown/tests/templates/plain/input.tex.m4 +++ /dev/null @@ -1,10 +0,0 @@ -% Load the package. -\input markdown\relax -% Load the support files. -\input setup\relax -\input plain-setup\relax -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -% Perform the test. -\markdownInput{TEST_INPUT_FILENAME}% -\bye diff --git a/macros/generic/markdown/tests/templates/plain/verbatim.tex.m4 b/macros/generic/markdown/tests/templates/plain/verbatim.tex.m4 deleted file mode 100644 index fd87725c06..0000000000 --- a/macros/generic/markdown/tests/templates/plain/verbatim.tex.m4 +++ /dev/null @@ -1,12 +0,0 @@ -% Load the package. -\input markdown\relax -% Load the support files. -\input setup\relax -\input plain-setup\relax -% Load the test-specific setup. -\input TEST_SETUP_FILENAME\relax -% Perform the test. -\markdownBegin -undivert(TEST_INPUT_FILENAME)dnl -\markdownEnd -\bye diff --git a/macros/generic/markdown/tests/test.sh b/macros/generic/markdown/tests/test.sh deleted file mode 100755 index c32b8274a2..0000000000 --- a/macros/generic/markdown/tests/test.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash -# Run a test for each testfile passed as an argument. If a testfile does not -# contain the expected test result, generate one. -set -e -BUILDDIR=`mktemp -d` -trap 'rm -rf $BUILDDIR' INT TERM -for TESTFILE; do - printf 'Testfile %s\n' $TESTFILE - for FORMAT in templates/*/; do - printf ' Format %s\n' $FORMAT - for TEMPLATE in ${FORMAT}*.tex.m4; do - printf ' Template %s\n' $TEMPLATE - m4 -DTEST_FILENAME=test.tex <$FORMAT/COMMANDS.m4 | - (while read COMMAND; do - printf ' Command %s\n' "$COMMAND" - - # Set up the testing directory. - cp support/* $TESTFILE $BUILDDIR - cd $BUILDDIR - sed -r '/^\s*<<<\s*$/{x;q}' \ - <${TESTFILE##*/} >test-setup.tex - sed -rn '/^\s*<<<\s*$/,/^\s*>>>\s*$/{/^\s*(<<<|>>>)\s*$/!p}' \ - <${TESTFILE##*/} >test-input.md - sed -n '/^\s*>>>\s*$/,${/^\s*>>>\s*$/!p}' \ - <${TESTFILE##*/} >test-expected.log - m4 -DTEST_SETUP_FILENAME=test-setup.tex \ - -DTEST_INPUT_FILENAME=test-input.md <"$OLDPWD"/$TEMPLATE >test.tex - - # Run the test, filter the output and concatenate adjacent lines. - eval $COMMAND >/dev/null 2>&1 || - { cat test.markdown.err 1>&2 2>/dev/null; exit 1; } - sed -nr '/^\s*TEST INPUT BEGIN\s*$/,/^\s*TEST INPUT END\s*$/{ - /^\s*TEST INPUT (BEGIN|END)\s*$/!H - /^\s*TEST INPUT END\s*$/{s/.*//;x;s/\n//g;p} - }' <test.log >test-actual.log - - # If the testfile does not contain an expected outcome, use the current - # outcome and update the testfile. - if ! grep -q '^\s*>>>\s*$' <${TESTFILE##*/}; then - cp test-actual.log test-expected.log - (cat ${TESTFILE##*/} && printf '>>>\n' - cat test-expected.log) >"$OLDPWD"/$TESTFILE - printf ' Added the expected test outcome to the testfile.\n' - fi - - # Compare the expected outcome against the actual outcome. - diff -c $BUILDDIR/test-expected.log $BUILDDIR/test-actual.log # || -# (sed -n '1,/^\s*>>>\s*$/p' <${TESTFILE##*/} && -# cat test-actual.log) >"$OLDPWD"/$TESTFILE - - # Clean up the testing directory. - cd "$OLDPWD" - find $BUILDDIR -mindepth 1 -exec rm -rf {} + # && break - done) # && break - done # && break - done -done -rm -rf $BUILDDIR diff --git a/macros/generic/markdown/tests/testfiles/CommonMark_0.26/README.md b/macros/generic/markdown/tests/testfiles/CommonMark_0.26/README.md deleted file mode 100644 index 7ae2191762..0000000000 --- a/macros/generic/markdown/tests/testfiles/CommonMark_0.26/README.md +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains test files that were taken from the -CommonMark project specification. diff --git a/macros/generic/markdown/tests/testfiles/CommonMark_0.26/fenced-code.test b/macros/generic/markdown/tests/testfiles/CommonMark_0.26/fenced-code.test deleted file mode 100644 index 98cb973956..0000000000 --- a/macros/generic/markdown/tests/testfiles/CommonMark_0.26/fenced-code.test +++ /dev/null @@ -1,315 +0,0 @@ -\def\markdownOptionFencedCode{true} -<<< -Here is a simple example with backticks: - -``` -< - > -``` - -With tildes: - -~~~ -< - > -~~~ - -The closing code fence must use the same character as the opening fence: - -``` -aaa -~~~ -``` - -~~~ -aaa -``` -~~~ - -The closing code fence must be at least as long as the opening fence: - -```` -aaa -``` -`````` - -~~~~ -aaa -~~~ -~~~~ - -Unclosed code blocks are closed by the end of the document (or the enclosing block quote or list item): - -> ``` -> aaa - -bbb - -A code block can have all empty lines as its content - -``` - - -``` - -A code block can be empty: -``` -``` - -Fences can be indented. If the opening fence is indented, content lines will have equivalent opening indentation removed, if present: - ``` - aaa -aaa -``` - - ``` -aaa - aaa -aaa - ``` - - ``` - aaa - aaa - aaa - ``` - -Four spaces indentation produces an indented code block: - - ``` - aaa - ``` - -Closing fences may be indented by 0-3 spaces, and their indentation need not match that of the opening fence: - -``` -aaa - ``` - - ``` -aaa - ``` - -This is not a closing fence, because it is indented 4 spaces: - -``` -aaa - ``` -``` - -Code fences (opening and closing) cannot contain internal spaces: - -``` ``` -aaa - -``` -aaa -``` ``` -``` - -~~~~~~ -aaa -~~~ ~~ -~~~~~~ - -foo -``` -bar -``` -baz - -Other blocks can also occur before and after fenced code blocks without an intervening blank line: - -foo ---- -~~~ -bar -~~~ -# baz - -An info string can be provided after the opening code fence. Opening and closing spaces will be stripped, and the first word, prefixed with language-, is used as the value for the class attribute of the code element within the enclosing pre element. - -```ruby -def foo(x) - return 3 -end -``` - -~~~~ ruby startline=3 $%@#$ -def foo(x) - return 3 -end -~~~~~~~ - -````; -```` - -Info strings for backtick code blocks cannot contain backticks: - -``` aa ``` -foo - -Closing code fences cannot have info strings: - -``` -``` aaa -``` - -Unclosed code blocks are closed by the end of the document (or the enclosing block quote or list item): - -````` - -``` -aaa ->>> -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/40aeb3c06faa194425865c43b0818cf3.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/40aeb3c06faa194425865c43b0818cf3.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/162c3a1e89dc98bb7c0e223462144172.verbatim -- infostring: -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/a109a04c348f12d1fc1e55dc6cd3153d.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/a109a04c348f12d1fc1e55dc6cd3153d.verbatim -- infostring: -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/162c3a1e89dc98bb7c0e223462144172.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -blockQuoteBegin -BEGIN fencedCode -- src: ./_markdown_test/5c9597f3c8245907ea71a89d9d39d08e.verbatim -- infostring: -END fencedCode -blockQuoteEnd -interblockSeparator -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/e1c06d85ae7b8b032bef47e42e4c08f9.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/d41d8cd98f00b204e9800998ecf8427e.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/4b44563cc9886576b6589dd730cbc397.verbatim -- infostring: -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/f084b3953e4a48b5425a11074ae99e3c.verbatim -- infostring: -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/8a70ce8c35179c24412d9271f69da1fd.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/04338967b57abaf5489d4de2ca3d5d75.verbatim -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/5c9597f3c8245907ea71a89d9d39d08e.verbatim -- infostring: -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/5c9597f3c8245907ea71a89d9d39d08e.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/5fcf96d052f67d3d8a648cb90cc39193.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -codeSpan: -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/baeea0ffee491579d17a52cb85675edf.verbatim -- infostring: -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/42935760431e4eb4ddd8a8bcc5e54a23.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -interblockSeparator -headingTwo: foo -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: -END fencedCode -interblockSeparator -headingOne: baz -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/22bc2a65d877cb1e2a14deece6005742.verbatim -- infostring: ruby -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/22bc2a65d877cb1e2a14deece6005742.verbatim -- infostring: ruby startline=3 (dollarSign)(percentSign)@(hash)(dollarSign) -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/d41d8cd98f00b204e9800998ecf8427e.verbatim -- infostring: ; -END fencedCode -interblockSeparator -interblockSeparator -codeSpan: aa -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/e1ff8c7886d18f6b5499b096584e13bf.verbatim -- infostring: -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/ab4c9bee663124ac417409b22e2af252.verbatim -- infostring: -END fencedCode diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/README.md b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/README.md deleted file mode 100644 index 1a8fd15a48..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/README.md +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains test files that were inherited from the -`tests/Markdown_1.0.3/` directory in the lunamark project. diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/amps-encoding.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/amps-encoding.test deleted file mode 100644 index da079fc68f..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/amps-encoding.test +++ /dev/null @@ -1,36 +0,0 @@ -<<< -Here's a [link] [1] with an ampersand in the URL. - -Here's a link with an amersand in the link text: [AT&T] [2]. - -Here's an inline [link](/script?foo=1&bar=2). - -Here's an inline [link](</script?foo=1&bar=2>). - - -[1]: http://example.com/?foo=1&bar=2 -[2]: http://att.com/ "AT&T" ->>> -BEGIN link -- label: link -- URI: http://example.com/?foo=1(ampersand)bar=2 -- title: -END link -interblockSeparator -BEGIN link -- label: AT(ampersand)T -- URI: http://att.com/ -- title: AT(ampersand)T -END link -interblockSeparator -BEGIN link -- label: link -- URI: /script?foo=1(ampersand)bar=2 -- title: -END link -interblockSeparator -BEGIN link -- label: link -- URI: /script?foo=1(ampersand)bar=2 -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/auto-links.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/auto-links.test deleted file mode 100644 index 765a85d3e2..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/auto-links.test +++ /dev/null @@ -1,52 +0,0 @@ -<<< -Link: <http://example.com/>. - -With an ampersand: <http://example.com/?foo=1&bar=2> - -* In a list? -* <http://example.com/> -* It should. - -> Blockquoted: <http://example.com/> - -Auto-links should not occur here: `<http://example.com/>` - - or here: <http://example.com/> ->>> -BEGIN link -- label: http://example.com/ -- URI: http://example.com/ -- title: -END link -interblockSeparator -BEGIN link -- label: http://example.com/?foo=1(ampersand)bar=2 -- URI: http://example.com/?foo=1(ampersand)bar=2 -- title: -END link -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -BEGIN link -- label: http://example.com/ -- URI: http://example.com/ -- title: -END link -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -blockQuoteBegin -BEGIN link -- label: http://example.com/ -- URI: http://example.com/ -- title: -END link -blockQuoteEnd -interblockSeparator -codeSpan: <http://example.com/> -interblockSeparator -inputVerbatim: ./_markdown_test/d65b41d110c17fbc771809f553258ff5.verbatim diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/backslash-escapes.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/backslash-escapes.test deleted file mode 100644 index 182a63747c..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/backslash-escapes.test +++ /dev/null @@ -1,192 +0,0 @@ -<<< -These should all get escaped: - -Backslash: \\ - -Backtick: \` - -Asterisk: \* - -Underscore: \_ - -Left brace: \{ - -Right brace: \} - -Left bracket: \[ - -Right bracket: \] - -Left paren: \( - -Right paren: \) - -Greater-than: \> - -Hash: \# - -Period: \. - -Bang: \! - -Plus: \+ - -Minus: \- - - - -These should not, because they occur within a code block: - - Backslash: \\ - - Backtick: \` - - Asterisk: \* - - Underscore: \_ - - Left brace: \{ - - Right brace: \} - - Left bracket: \[ - - Right bracket: \] - - Left paren: \( - - Right paren: \) - - Greater-than: \> - - Hash: \# - - Period: \. - - Bang: \! - - Plus: \+ - - Minus: \- - - -Nor should these, which occur in code spans: - -Backslash: `\\` - -Backtick: `` \` `` - -Asterisk: `\*` - -Underscore: `\_` - -Left brace: `\{` - -Right brace: `\}` - -Left bracket: `\[` - -Right bracket: `\]` - -Left paren: `\(` - -Right paren: `\)` - -Greater-than: `\>` - -Hash: `\#` - -Period: `\.` - -Bang: `\!` - -Plus: `\+` - -Minus: `\-` - - -These should get escaped, even though they're matching pairs for -other Markdown constructs: - -\*asterisks\* - -\_underscores\_ - -\`backticks\` - -This is a code span with a literal backslash-backtick sequence: `` \` `` - -This is a tag with unescaped backticks <span attr='`ticks`'>bar</span>. - -This is a tag with backslashes <span attr='\\backslashes\\'>bar</span>. ->>> -interblockSeparator -backslash -interblockSeparator -interblockSeparator -interblockSeparator -underscore -interblockSeparator -leftBrace -interblockSeparator -rightBrace -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -hash -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/127bce8785d826a9ba07a20f6ca866c9.verbatim -interblockSeparator -interblockSeparator -codeSpan: (backslash)(backslash) -interblockSeparator -codeSpan: (backslash)` -interblockSeparator -codeSpan: (backslash)* -interblockSeparator -codeSpan: (backslash)(underscore) -interblockSeparator -codeSpan: (backslash)(leftBrace) -interblockSeparator -codeSpan: (backslash)(rightBrace) -interblockSeparator -codeSpan: (backslash)[ -interblockSeparator -codeSpan: (backslash)] -interblockSeparator -codeSpan: (backslash)( -interblockSeparator -codeSpan: (backslash)) -interblockSeparator -codeSpan: (backslash)> -interblockSeparator -codeSpan: (backslash)(hash) -interblockSeparator -codeSpan: (backslash). -interblockSeparator -codeSpan: (backslash)! -interblockSeparator -codeSpan: (backslash)+ -interblockSeparator -codeSpan: (backslash)- -interblockSeparator -interblockSeparator -interblockSeparator -underscore -underscore -interblockSeparator -interblockSeparator -codeSpan: (backslash)` -interblockSeparator -codeSpan: ticks -interblockSeparator -backslash -backslash diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/blockquotes-with-code-blocks.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/blockquotes-with-code-blocks.test deleted file mode 100644 index 1fa09a34de..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/blockquotes-with-code-blocks.test +++ /dev/null @@ -1,21 +0,0 @@ -<<< -> Example: -> -> sub status { -> print "working"; -> } -> -> Or: -> -> sub status { -> return "working"; -> } - ->>> -blockQuoteBegin -interblockSeparator -inputVerbatim: ./_markdown_test/702e5d3a17f709c02cee3a2b5e106619.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/9d7d6b4bdbb0a57a705dc70e6c7f5612.verbatim -blockQuoteEnd diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-blocks.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-blocks.test deleted file mode 100644 index 5f4a0bb137..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-blocks.test +++ /dev/null @@ -1,18 +0,0 @@ -<<< - code block on the first line - -Regular text. - - code block indented by spaces - -Regular Text. - - code block on the last line ->>> -inputVerbatim: ./_markdown_test/757353c94a464c718394adbe349d6771.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/84469dcb7c065e457fc00040f5c96d8f.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/e0bb27efcfecc25309f165e0092a7434.verbatim diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-spans.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-spans.test deleted file mode 100644 index 94aab36b56..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/code-spans.test +++ /dev/null @@ -1,4 +0,0 @@ -<<< -Here's how you put `` `backticks` `` in a code span. ->>> -codeSpan: `backticks` diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/hard-wrapped-paragraphs-with-list-like-lines.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/hard-wrapped-paragraphs-with-list-like-lines.test deleted file mode 100644 index 6c6690877d..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/hard-wrapped-paragraphs-with-list-like-lines.test +++ /dev/null @@ -1,12 +0,0 @@ -<<< -In Markdown 1.0.0 and earlier. Version -8. This line turns into a list item. -Because a hard-wrapped line in the -middle of a paragraph looked like a -list item. - -Here's one with a bullet. -* criminey. - ->>> -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/horizontal-rules.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/horizontal-rules.test deleted file mode 100644 index e5d45d9dde..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/horizontal-rules.test +++ /dev/null @@ -1,132 +0,0 @@ -<<< -Dashes: - ---- - - --- - - --- - - --- - - --- - -- - - - - - - - - - - - - - - - - - - - - - - - - -Asterisks: - -*** - - *** - - *** - - *** - - *** - -* * * - - * * * - - * * * - - * * * - - * * * - - -Underscores: - -___ - - ___ - - ___ - - ___ - - ___ - -_ _ _ - - _ _ _ - - _ _ _ - - _ _ _ - - _ _ _ - ->>> -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -inputVerbatim: ./_markdown_test/6105347ebb9825ac754615ca55ff3b0c.verbatim -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -inputVerbatim: ./_markdown_test/162bbc959948880b7b81a0fe05afbe29.verbatim -interblockSeparator -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -inputVerbatim: ./_markdown_test/2bb6aed5111ef9726bcf6eef982ff32b.verbatim -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -inputVerbatim: ./_markdown_test/11de6126af81e6dc22594955105d9180.verbatim -interblockSeparator -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -inputVerbatim: ./_markdown_test/926225b865393c08438ddbfd89ff3d40.verbatim -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -inputVerbatim: ./_markdown_test/c4775559353a17841cc9cde2eae040b2.verbatim diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-inline-style.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-inline-style.test deleted file mode 100644 index d956be1ede..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-inline-style.test +++ /dev/null @@ -1,50 +0,0 @@ -<<< -Just a [URL](/url/). - -[URL and title](/url/ "title"). - -[URL and title](/url/ "title preceded by two spaces"). - -[URL and title](/url/ "title preceded by a tab"). - -[URL and title](/url/ "title has spaces afterward" ). - - -[Empty](). - ->>> -BEGIN link -- label: URL -- URI: /url/ -- title: -END link -interblockSeparator -BEGIN link -- label: URL and title -- URI: /url/ -- title: title -END link -interblockSeparator -BEGIN link -- label: URL and title -- URI: /url/ -- title: title preceded by two spaces -END link -interblockSeparator -BEGIN link -- label: URL and title -- URI: /url/ -- title: title preceded by a tab -END link -interblockSeparator -BEGIN link -- label: URL and title -- URI: /url/ -- title: title has spaces afterward -END link -interblockSeparator -BEGIN link -- label: Empty -- URI: -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-reference-style.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-reference-style.test deleted file mode 100644 index 793ea37dca..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-reference-style.test +++ /dev/null @@ -1,176 +0,0 @@ -<<< -Foo [bar] [1]. - -Foo [bar][1]. - -Foo [bar] -[1]. - -[1]: /url/ "Title" - - -With [embedded [brackets]] [b]. - - -Indented [once][]. - -Indented [twice][]. - -Indented [thrice][]. - -Indented [four][] times. - - [once]: /url - - [twice]: /url - - [thrice]: /url - - [four]: /url - - -[b]: /url/ - -* * * - -[this] [this] should work - -So should [this][this]. - -And [this] []. - -And [this][]. - -And [this]. - -But not [that] []. - -Nor [that][]. - -Nor [that]. - -[Something in brackets like [this][] should work] - -[Same with [this].] - -In this case, [this](/somethingelse/) points to something else. - -Backslashing should suppress \[this] and [this\]. - -[this]: foo - - -* * * - -Here's one where the [link -breaks] across lines. - -[link breaks]: /url/ - ->>> -BEGIN link -- label: bar -- URI: /url/ -- title: Title -END link -interblockSeparator -BEGIN link -- label: bar -- URI: /url/ -- title: Title -END link -interblockSeparator -BEGIN link -- label: bar -- URI: /url/ -- title: Title -END link -interblockSeparator -BEGIN link -- label: embedded [brackets] -- URI: /url/ -- title: -END link -interblockSeparator -BEGIN link -- label: once -- URI: /url -- title: -END link -interblockSeparator -BEGIN link -- label: twice -- URI: /url -- title: -END link -interblockSeparator -BEGIN link -- label: thrice -- URI: /url -- title: -END link -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/b0cba64633d2a9eac28ca9e3fa500018.verbatim -interblockSeparator -horizontalRule -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: /somethingelse/ -- title: -END link -interblockSeparator -interblockSeparator -horizontalRule -interblockSeparator -BEGIN link -- label: link breaks -- URI: /url/ -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-shortcut-references.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-shortcut-references.test deleted file mode 100644 index 24b189d7c9..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/links-shortcut-references.test +++ /dev/null @@ -1,42 +0,0 @@ -<<< -This is the [simple case]. - -[simple case]: /simple - - - -This one has a [line -break]. - -[line break]: /foo - - -[this] [that] and the [other] - -[this]: /this -[that]: /that -[other]: /other - ->>> -BEGIN link -- label: simple case -- URI: /simple -- title: -END link -interblockSeparator -BEGIN link -- label: line break -- URI: /foo -- title: -END link -interblockSeparator -BEGIN link -- label: this -- URI: /that -- title: -END link -BEGIN link -- label: other -- URI: /other -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/literal-quotes-in-titles.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/literal-quotes-in-titles.test deleted file mode 100644 index cd44028f8f..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/literal-quotes-in-titles.test +++ /dev/null @@ -1,21 +0,0 @@ -<<< -Foo [bar][]. - -Foo [bar](/url/ "Title with "quotes" inside"). - - - [bar]: /url/ "Title with "quotes" inside" - - ->>> -BEGIN link -- label: bar -- URI: /url/ -- title: Title with "quotes" inside -END link -interblockSeparator -BEGIN link -- label: bar -- URI: /url/ -- title: Title with "quotes" inside -END link diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-basics.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-basics.test deleted file mode 100644 index 4ce4b68028..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-basics.test +++ /dev/null @@ -1,436 +0,0 @@ -<<< -Markdown: Basics -================ - -Getting the Gist of Markdown's Formatting Syntax ------------------------------------------------- - -This page offers a brief overview of what it's like to use Markdown. -The [syntax page] [s] provides complete, detailed documentation for -every feature, but Markdown should be very easy to pick up simply by -looking at a few examples of it in action. The examples on this page -are written in a before/after style, showing example syntax and the -HTML output produced by Markdown. - -It's also helpful to simply try Markdown out; the [Dingus] [d] is a -web application that allows you type your own Markdown-formatted text -and translate it to XHTML. - -**Note:** This document is itself written using Markdown; you -can [see the source for it by adding '.text' to the URL] [src]. - - [s]: /projects/markdown/syntax "Markdown Syntax" - [d]: /projects/markdown/dingus "Markdown Dingus" - [src]: /projects/markdown/basics.text - - -## Paragraphs, Headers, Blockquotes ## - -A paragraph is simply one or more consecutive lines of text, separated -by one or more blank lines. (A blank line is any line that looks like a -blank line -- a line containing nothing spaces or tabs is considered -blank.) Normal paragraphs should not be intended with spaces or tabs. - -Markdown offers two styles of headers: *Setext* and *atx*. -Setext-style headers for `<h1>` and `<h2>` are created by -"underlining" with equal signs (`=`) and hyphens (`-`), respectively. -To create an atx-style header, you put 1-6 hash marks (`#`) at the -beginning of the line -- the number of hashes equals the resulting -HTML header level. - -Blockquotes are indicated using email-style '`>`' angle brackets. - -Markdown: - - A First Level Header - ==================== - - A Second Level Header - --------------------- - - Now is the time for all good men to come to - the aid of their country. This is just a - regular paragraph. - - The quick brown fox jumped over the lazy - dog's back. - - ### Header 3 - - > This is a blockquote. - > - > This is the second paragraph in the blockquote. - > - > ## This is an H2 in a blockquote - - -Output: - - <h1>A First Level Header</h1> - - <h2>A Second Level Header</h2> - - <p>Now is the time for all good men to come to - the aid of their country. This is just a - regular paragraph.</p> - - <p>The quick brown fox jumped over the lazy - dog's back.</p> - - <h3>Header 3</h3> - - <blockquote> - <p>This is a blockquote.</p> - - <p>This is the second paragraph in the blockquote.</p> - - <h2>This is an H2 in a blockquote</h2> - </blockquote> - - - -### Phrase Emphasis ### - -Markdown uses asterisks and underscores to indicate spans of emphasis. - -Markdown: - - Some of these words *are emphasized*. - Some of these words _are emphasized also_. - - Use two asterisks for **strong emphasis**. - Or, if you prefer, __use two underscores instead__. - -Output: - - <p>Some of these words <em>are emphasized</em>. - Some of these words <em>are emphasized also</em>.</p> - - <p>Use two asterisks for <strong>strong emphasis</strong>. - Or, if you prefer, <strong>use two underscores instead</strong>.</p> - - - -## Lists ## - -Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`, -`+`, and `-`) as list markers. These three markers are -interchangable; this: - - * Candy. - * Gum. - * Booze. - -this: - - + Candy. - + Gum. - + Booze. - -and this: - - - Candy. - - Gum. - - Booze. - -all produce the same output: - - <ul> - <li>Candy.</li> - <li>Gum.</li> - <li>Booze.</li> - </ul> - -Ordered (numbered) lists use regular numbers, followed by periods, as -list markers: - - 1. Red - 2. Green - 3. Blue - -Output: - - <ol> - <li>Red</li> - <li>Green</li> - <li>Blue</li> - </ol> - -If you put blank lines between items, you'll get `<p>` tags for the -list item text. You can create multi-paragraph list items by indenting -the paragraphs by 4 spaces or 1 tab: - - * A list item. - - With multiple paragraphs. - - * Another item in the list. - -Output: - - <ul> - <li><p>A list item.</p> - <p>With multiple paragraphs.</p></li> - <li><p>Another item in the list.</p></li> - </ul> - - - -### Links ### - -Markdown supports two styles for creating links: *inline* and -*reference*. With both styles, you use square brackets to delimit the -text you want to turn into a link. - -Inline-style links use parentheses immediately after the link text. -For example: - - This is an [example link](http://example.com/). - -Output: - - <p>This is an <a href="http://example.com/"> - example link</a>.</p> - -Optionally, you may include a title attribute in the parentheses: - - This is an [example link](http://example.com/ "With a Title"). - -Output: - - <p>This is an <a href="http://example.com/" title="With a Title"> - example link</a>.</p> - -Reference-style links allow you to refer to your links by names, which -you define elsewhere in your document: - - I get 10 times more traffic from [Google][1] than from - [Yahoo][2] or [MSN][3]. - - [1]: http://google.com/ "Google" - [2]: http://search.yahoo.com/ "Yahoo Search" - [3]: http://search.msn.com/ "MSN Search" - -Output: - - <p>I get 10 times more traffic from <a href="http://google.com/" - title="Google">Google</a> than from <a href="http://search.yahoo.com/" - title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" - title="MSN Search">MSN</a>.</p> - -The title attribute is optional. Link names may contain letters, -numbers and spaces, but are *not* case sensitive: - - I start my morning with a cup of coffee and - [The New York Times][NY Times]. - - [ny times]: http://www.nytimes.com/ - -Output: - - <p>I start my morning with a cup of coffee and - <a href="http://www.nytimes.com/">The New York Times</a>.</p> - - -### Images ### - -Image syntax is very much like link syntax. - -Inline (titles are optional): - -  - -Reference-style: - - ![alt text][id] - - [id]: /path/to/img.jpg "Title" - -Both of the above examples produce the same output: - - <img src="/path/to/img.jpg" alt="alt text" title="Title" /> - - - -### Code ### - -In a regular paragraph, you can create code span by wrapping text in -backtick quotes. Any ampersands (`&`) and angle brackets (`<` or -`>`) will automatically be translated into HTML entities. This makes -it easy to use Markdown to write about HTML example code: - - I strongly recommend against using any `<blink>` tags. - -Output: - - <p>I strongly recommend against using any - <code><blink></code> tags.</p> - - -To specify an entire block of pre-formatted code, indent every line of -the block by 4 spaces or 1 tab. Just like with code spans, `&`, `<`, -and `>` characters will be escaped automatically. - -Markdown: - - If you want your page to validate under XHTML 1.0 Strict, - you've got to put paragraph tags in your blockquotes: - - <blockquote> - <p>For example.</p> - </blockquote> - -Output: - - <p>If you want your page to validate under XHTML 1.0 Strict, - you've got to put paragraph tags in your blockquotes:</p> - - <pre><code><blockquote> - <p>For example.</p> - </blockquote> - </code></pre> - ->>> -headingOne: Markdown: Basics -interblockSeparator -headingTwo: Getting the Gist of Markdown's Formatting Syntax -interblockSeparator -BEGIN link -- label: syntax page -- URI: /projects/markdown/syntax -- title: Markdown Syntax -END link -interblockSeparator -BEGIN link -- label: Dingus -- URI: /projects/markdown/dingus -- title: Markdown Dingus -END link -interblockSeparator -strongEmphasis: Note: -BEGIN link -- label: see the source for it by adding '.text' to the URL -- URI: /projects/markdown/basics.text -- title: -END link -interblockSeparator -headingTwo: Paragraphs, Headers, Blockquotes -interblockSeparator -interblockSeparator -emphasis: Setext -emphasis: atx -codeSpan: <h1> -codeSpan: <h2> -codeSpan: = -codeSpan: - -codeSpan: (hash) -interblockSeparator -codeSpan: > -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/5ebdf3631f626dba5ee92ee773e97a8f.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/9347d3cfacf328e3d73c4fe1b4f76524.verbatim -interblockSeparator -headingThree: Phrase Emphasis -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/495d205391f56da33d355c43c81daa64.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/60195f0a7c825159eb9156947e6fb71b.verbatim -interblockSeparator -headingTwo: Lists -interblockSeparator -codeSpan: * -codeSpan: + -codeSpan: - -interblockSeparator -inputVerbatim: ./_markdown_test/30a921ea3110056dc221ed257b3c883b.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/674e077aa8994de8bf541093168d2e29.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/7ae61eceff910c380dbe3ee9af7b6c4a.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/b84dd49773de7abaeec71bfa32680045.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/2a1d33d66339f281e4a171d1eb084b07.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/430a75a1628ba89cc2b1005bb1e5d932.verbatim -interblockSeparator -codeSpan: <p> -interblockSeparator -inputVerbatim: ./_markdown_test/e6108616b0422dd64f485971e61ac69c.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/0bd4d7d78b1cd0e46e78a522f613a6a3.verbatim -interblockSeparator -headingThree: Links -interblockSeparator -emphasis: inline -emphasis: reference -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/20cfebed5272ba2f01c1aee798509f18.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/46124210265b51c9d470c0c70a598037.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/d56162c63107aadd63a5b6ca05f491e9.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/c62653fbfcf155bfe2912f066f242885.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/b996f30ba094126a05b4797a048ff2d2.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/0b1519420e84d1c754b52b25170d7213.verbatim -interblockSeparator -emphasis: not -interblockSeparator -inputVerbatim: ./_markdown_test/15e1c1abc08ec60d9181f9578c6cf172.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/440c1e901154984bf647fc152cb0971b.verbatim -interblockSeparator -headingThree: Images -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/602bb0e325271b2b4dce9175eaed15b1.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/e5b369214c819b9d9b476b7bb1f5aa53.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/885cbee5cc0e1fac9ce25c3a9d30034e.verbatim -interblockSeparator -headingThree: Code -interblockSeparator -codeSpan: (ampersand) -codeSpan: < -codeSpan: > -interblockSeparator -inputVerbatim: ./_markdown_test/fbcaafb68ad6405619da77e413788d6e.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/cfc57312a789ed7b4e14f3f56c88381a.verbatim -interblockSeparator -codeSpan: (ampersand) -codeSpan: < -codeSpan: > -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/fe59314852dc8de3165464ab451f44a0.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/3f58f44c2de7257eb42c24e7aee621c5.verbatim diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-syntax.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-syntax.test deleted file mode 100644 index 2942add07e..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/markdown-documentation-syntax.test +++ /dev/null @@ -1,1518 +0,0 @@ -<<< -Markdown: Syntax -================ - -* [Overview](#overview) - * [Philosophy](#philosophy) - * [Inline HTML](#html) - * [Automatic Escaping for Special Characters](#autoescape) -* [Block Elements](#block) - * [Paragraphs and Line Breaks](#p) - * [Headers](#header) - * [Blockquotes](#blockquote) - * [Lists](#list) - * [Code Blocks](#precode) - * [Horizontal Rules](#hr) -* [Span Elements](#span) - * [Links](#link) - * [Emphasis](#em) - * [Code](#code) - * [Images](#img) -* [Miscellaneous](#misc) - * [Backslash Escapes](#backslash) - * [Automatic Links](#autolink) - - -**Note:** This document is itself written using Markdown; you -can [see the source for it by adding '.text' to the URL][src]. - - [src]: /projects/markdown/syntax.text - -* * * - -## Overview - -### Philosophy - -Markdown is intended to be as easy-to-read and easy-to-write as is feasible. - -Readability, however, is emphasized above all else. A Markdown-formatted -document should be publishable as-is, as plain text, without looking -like it's been marked up with tags or formatting instructions. While -Markdown's syntax has been influenced by several existing text-to-HTML -filters -- including [Setext] [1], [atx] [2], [Textile] [3], [reStructuredText] [4], -[Grutatext] [5], and [EtText] [6] -- the single biggest source of -inspiration for Markdown's syntax is the format of plain text email. - - [1]: http://docutils.sourceforge.net/mirror/setext.html - [2]: http://www.aaronsw.com/2002/atx/ - [3]: http://textism.com/tools/textile/ - [4]: http://docutils.sourceforge.net/rst.html - [5]: http://www.triptico.com/software/grutatxt.html - [6]: http://ettext.taint.org/doc/ - -To this end, Markdown's syntax is comprised entirely of punctuation -characters, which punctuation characters have been carefully chosen so -as to look like what they mean. E.g., asterisks around a word actually -look like \*emphasis\*. Markdown lists look like, well, lists. Even -blockquotes look like quoted passages of text, assuming you've ever -used email. - - - -### Inline HTML - -Markdown's syntax is intended for one purpose: to be used as a -format for *writing* for the web. - -Markdown is not a replacement for HTML, or even close to it. Its -syntax is very small, corresponding only to a very small subset of -HTML tags. The idea is *not* to create a syntax that makes it easier -to insert HTML tags. In my opinion, HTML tags are already easy to -insert. The idea for Markdown is to make it easy to read, write, and -edit prose. HTML is a *publishing* format; Markdown is a *writing* -format. Thus, Markdown's formatting syntax only addresses issues that -can be conveyed in plain text. - -For any markup that is not covered by Markdown's syntax, you simply -use HTML itself. There's no need to preface it or delimit it to -indicate that you're switching from Markdown to HTML; you just use -the tags. - -The only restrictions are that block-level HTML elements -- e.g. `<div>`, -`<table>`, `<pre>`, `<p>`, etc. -- must be separated from surrounding -content by blank lines, and the start and end tags of the block should -not be indented with tabs or spaces. Markdown is smart enough not -to add extra (unwanted) `<p>` tags around HTML block-level tags. - -For example, to add an HTML table to a Markdown article: - - This is a regular paragraph. - - <table> - <tr> - <td>Foo</td> - </tr> - </table> - - This is another regular paragraph. - -Note that Markdown formatting syntax is not processed within block-level -HTML tags. E.g., you can't use Markdown-style `*emphasis*` inside an -HTML block. - -Span-level HTML tags -- e.g. `<span>`, `<cite>`, or `<del>` -- can be -used anywhere in a Markdown paragraph, list item, or header. If you -want, you can even use HTML tags instead of Markdown formatting; e.g. if -you'd prefer to use HTML `<a>` or `<img>` tags instead of Markdown's -link or image syntax, go right ahead. - -Unlike block-level HTML tags, Markdown syntax *is* processed within -span-level tags. - - -### Automatic Escaping for Special Characters - -In HTML, there are two characters that demand special treatment: `<` -and `&`. Left angle brackets are used to start tags; ampersands are -used to denote HTML entities. If you want to use them as literal -characters, you must escape them as entities, e.g. `<`, and -`&`. - -Ampersands in particular are bedeviling for web writers. If you want to -write about 'AT&T', you need to write '`AT&T`'. You even need to -escape ampersands within URLs. Thus, if you want to link to: - - http://images.google.com/images?num=30&q=larry+bird - -you need to encode the URL as: - - http://images.google.com/images?num=30&q=larry+bird - -in your anchor tag `href` attribute. Needless to say, this is easy to -forget, and is probably the single most common source of HTML validation -errors in otherwise well-marked-up web sites. - -Markdown allows you to use these characters naturally, taking care of -all the necessary escaping for you. If you use an ampersand as part of -an HTML entity, it remains unchanged; otherwise it will be translated -into `&`. - -So, if you want to include a copyright symbol in your article, you can write: - - © - -and Markdown will leave it alone. But if you write: - - AT&T - -Markdown will translate it to: - - AT&T - -Similarly, because Markdown supports [inline HTML](#html), if you use -angle brackets as delimiters for HTML tags, Markdown will treat them as -such. But if you write: - - 4 < 5 - -Markdown will translate it to: - - 4 < 5 - -However, inside Markdown code spans and blocks, angle brackets and -ampersands are *always* encoded automatically. This makes it easy to use -Markdown to write about HTML code. (As opposed to raw HTML, which is a -terrible format for writing about HTML syntax, because every single `<` -and `&` in your example code needs to be escaped.) - - -* * * - - -## Block Elements - - -### Paragraphs and Line Breaks - -A paragraph is simply one or more consecutive lines of text, separated -by one or more blank lines. (A blank line is any line that looks like a -blank line -- a line containing nothing but spaces or tabs is considered -blank.) Normal paragraphs should not be intended with spaces or tabs. - -The implication of the "one or more consecutive lines of text" rule is -that Markdown supports "hard-wrapped" text paragraphs. This differs -significantly from most other text-to-HTML formatters (including Movable -Type's "Convert Line Breaks" option) which translate every line break -character in a paragraph into a `<br />` tag. - -When you *do* want to insert a `<br />` break tag using Markdown, you -end a line with two or more spaces, then type return. - -Yes, this takes a tad more effort to create a `<br />`, but a simplistic -"every line break is a `<br />`" rule wouldn't work for Markdown. -Markdown's email-style [blockquoting][bq] and multi-paragraph [list items][l] -work best -- and look better -- when you format them with hard breaks. - - [bq]: #blockquote - [l]: #list - - - -### Headers - -Markdown supports two styles of headers, [Setext] [1] and [atx] [2]. - -Setext-style headers are "underlined" using equal signs (for first-level -headers) and dashes (for second-level headers). For example: - - This is an H1 - ============= - - This is an H2 - ------------- - -Any number of underlining `=`'s or `-`'s will work. - -Atx-style headers use 1-6 hash characters at the start of the line, -corresponding to header levels 1-6. For example: - - # This is an H1 - - ## This is an H2 - - ###### This is an H6 - -Optionally, you may "close" atx-style headers. This is purely -cosmetic -- you can use this if you think it looks better. The -closing hashes don't even need to match the number of hashes -used to open the header. (The number of opening hashes -determines the header level.) : - - # This is an H1 # - - ## This is an H2 ## - - ### This is an H3 ###### - - -### Blockquotes - -Markdown uses email-style `>` characters for blockquoting. If you're -familiar with quoting passages of text in an email message, then you -know how to create a blockquote in Markdown. It looks best if you hard -wrap the text and put a `>` before every line: - - > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, - > consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. - > Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. - > - > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse - > id sem consectetuer libero luctus adipiscing. - -Markdown allows you to be lazy and only put the `>` before the first -line of a hard-wrapped paragraph: - - > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, - consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. - Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. - - > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse - id sem consectetuer libero luctus adipiscing. - -Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by -adding additional levels of `>`: - - > This is the first level of quoting. - > - > > This is nested blockquote. - > - > Back to the first level. - -Blockquotes can contain other Markdown elements, including headers, lists, -and code blocks: - - > ## This is a header. - > - > 1. This is the first list item. - > 2. This is the second list item. - > - > Here's some example code: - > - > return shell_exec("echo $input | $markdown_script"); - -Any decent text editor should make email-style quoting easy. For -example, with BBEdit, you can make a selection and choose Increase -Quote Level from the Text menu. - - -### Lists - -Markdown supports ordered (numbered) and unordered (bulleted) lists. - -Unordered lists use asterisks, pluses, and hyphens -- interchangably --- as list markers: - - * Red - * Green - * Blue - -is equivalent to: - - + Red - + Green - + Blue - -and: - - - Red - - Green - - Blue - -Ordered lists use numbers followed by periods: - - 1. Bird - 2. McHale - 3. Parish - -It's important to note that the actual numbers you use to mark the -list have no effect on the HTML output Markdown produces. The HTML -Markdown produces from the above list is: - - <ol> - <li>Bird</li> - <li>McHale</li> - <li>Parish</li> - </ol> - -If you instead wrote the list in Markdown like this: - - 1. Bird - 1. McHale - 1. Parish - -or even: - - 3. Bird - 1. McHale - 8. Parish - -you'd get the exact same HTML output. The point is, if you want to, -you can use ordinal numbers in your ordered Markdown lists, so that -the numbers in your source match the numbers in your published HTML. -But if you want to be lazy, you don't have to. - -If you do use lazy list numbering, however, you should still start the -list with the number 1. At some point in the future, Markdown may support -starting ordered lists at an arbitrary number. - -List markers typically start at the left margin, but may be indented by -up to three spaces. List markers must be followed by one or more spaces -or a tab. - -To make lists look nice, you can wrap items with hanging indents: - - * Lorem ipsum dolor sit amet, consectetuer adipiscing elit. - Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, - viverra nec, fringilla in, laoreet vitae, risus. - * Donec sit amet nisl. Aliquam semper ipsum sit amet velit. - Suspendisse id sem consectetuer libero luctus adipiscing. - -But if you want to be lazy, you don't have to: - - * Lorem ipsum dolor sit amet, consectetuer adipiscing elit. - Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, - viverra nec, fringilla in, laoreet vitae, risus. - * Donec sit amet nisl. Aliquam semper ipsum sit amet velit. - Suspendisse id sem consectetuer libero luctus adipiscing. - -If list items are separated by blank lines, Markdown will wrap the -items in `<p>` tags in the HTML output. For example, this input: - - * Bird - * Magic - -will turn into: - - <ul> - <li>Bird</li> - <li>Magic</li> - </ul> - -But this: - - * Bird - - * Magic - -will turn into: - - <ul> - <li><p>Bird</p></li> - <li><p>Magic</p></li> - </ul> - -List items may consist of multiple paragraphs. Each subsequent -paragraph in a list item must be intended by either 4 spaces -or one tab: - - 1. This is a list item with two paragraphs. Lorem ipsum dolor - sit amet, consectetuer adipiscing elit. Aliquam hendrerit - mi posuere lectus. - - Vestibulum enim wisi, viverra nec, fringilla in, laoreet - vitae, risus. Donec sit amet nisl. Aliquam semper ipsum - sit amet velit. - - 2. Suspendisse id sem consectetuer libero luctus adipiscing. - -It looks nice if you indent every line of the subsequent -paragraphs, but here again, Markdown will allow you to be -lazy: - - * This is a list item with two paragraphs. - - This is the second paragraph in the list item. You're - only required to indent the first line. Lorem ipsum dolor - sit amet, consectetuer adipiscing elit. - - * Another item in the same list. - -To put a blockquote within a list item, the blockquote's `>` -delimiters need to be indented: - - * A list item with a blockquote: - - > This is a blockquote - > inside a list item. - -To put a code block within a list item, the code block needs -to be indented *twice* -- 8 spaces or two tabs: - - * A list item with a code block: - - <code goes here> - - -It's worth noting that it's possible to trigger an ordered list by -accident, by writing something like this: - - 1986. What a great season. - -In other words, a *number-period-space* sequence at the beginning of a -line. To avoid this, you can backslash-escape the period: - - 1986\. What a great season. - - - -### Code Blocks - -Pre-formatted code blocks are used for writing about programming or -markup source code. Rather than forming normal paragraphs, the lines -of a code block are interpreted literally. Markdown wraps a code block -in both `<pre>` and `<code>` tags. - -To produce a code block in Markdown, simply indent every line of the -block by at least 4 spaces or 1 tab. For example, given this input: - - This is a normal paragraph: - - This is a code block. - -Markdown will generate: - - <p>This is a normal paragraph:</p> - - <pre><code>This is a code block. - </code></pre> - -One level of indentation -- 4 spaces or 1 tab -- is removed from each -line of the code block. For example, this: - - Here is an example of AppleScript: - - tell application "Foo" - beep - end tell - -will turn into: - - <p>Here is an example of AppleScript:</p> - - <pre><code>tell application "Foo" - beep - end tell - </code></pre> - -A code block continues until it reaches a line that is not indented -(or the end of the article). - -Within a code block, ampersands (`&`) and angle brackets (`<` and `>`) -are automatically converted into HTML entities. This makes it very -easy to include example HTML source code using Markdown -- just paste -it and indent it, and Markdown will handle the hassle of encoding the -ampersands and angle brackets. For example, this: - - <div class="footer"> - © 2004 Foo Corporation - </div> - -will turn into: - - <pre><code><div class="footer"> - &copy; 2004 Foo Corporation - </div> - </code></pre> - -Regular Markdown syntax is not processed within code blocks. E.g., -asterisks are just literal asterisks within a code block. This means -it's also easy to use Markdown to write about Markdown's own syntax. - - - -### Horizontal Rules - -You can produce a horizontal rule tag (`<hr />`) by placing three or -more hyphens, asterisks, or underscores on a line by themselves. If you -wish, you may use spaces between the hyphens or asterisks. Each of the -following lines will produce a horizontal rule: - - * * * - - *** - - ***** - - - - - - - --------------------------------------- - - _ _ _ - - -* * * - -## Span Elements - -### Links - -Markdown supports two style of links: *inline* and *reference*. - -In both styles, the link text is delimited by [square brackets]. - -To create an inline link, use a set of regular parentheses immediately -after the link text's closing square bracket. Inside the parentheses, -put the URL where you want the link to point, along with an *optional* -title for the link, surrounded in quotes. For example: - - This is [an example](http://example.com/ "Title") inline link. - - [This link](http://example.net/) has no title attribute. - -Will produce: - - <p>This is <a href="http://example.com/" title="Title"> - an example</a> inline link.</p> - - <p><a href="http://example.net/">This link</a> has no - title attribute.</p> - -If you're referring to a local resource on the same server, you can -use relative paths: - - See my [About](/about/) page for details. - -Reference-style links use a second set of square brackets, inside -which you place a label of your choosing to identify the link: - - This is [an example][id] reference-style link. - -You can optionally use a space to separate the sets of brackets: - - This is [an example] [id] reference-style link. - -Then, anywhere in the document, you define your link label like this, -on a line by itself: - - [id]: http://example.com/ "Optional Title Here" - -That is: - -* Square brackets containing the link identifier (optionally - indented from the left margin using up to three spaces); -* followed by a colon; -* followed by one or more spaces (or tabs); -* followed by the URL for the link; -* optionally followed by a title attribute for the link, enclosed - in double or single quotes. - -The link URL may, optionally, be surrounded by angle brackets: - - [id]: <http://example.com/> "Optional Title Here" - -You can put the title attribute on the next line and use extra spaces -or tabs for padding, which tends to look better with longer URLs: - - [id]: http://example.com/longish/path/to/resource/here - "Optional Title Here" - -Link definitions are only used for creating links during Markdown -processing, and are stripped from your document in the HTML output. - -Link definition names may constist of letters, numbers, spaces, and punctuation -- but they are *not* case sensitive. E.g. these two links: - - [link text][a] - [link text][A] - -are equivalent. - -The *implicit link name* shortcut allows you to omit the name of the -link, in which case the link text itself is used as the name. -Just use an empty set of square brackets -- e.g., to link the word -"Google" to the google.com web site, you could simply write: - - [Google][] - -And then define the link: - - [Google]: http://google.com/ - -Because link names may contain spaces, this shortcut even works for -multiple words in the link text: - - Visit [Daring Fireball][] for more information. - -And then define the link: - - [Daring Fireball]: http://daringfireball.net/ - -Link definitions can be placed anywhere in your Markdown document. I -tend to put them immediately after each paragraph in which they're -used, but if you want, you can put them all at the end of your -document, sort of like footnotes. - -Here's an example of reference links in action: - - I get 10 times more traffic from [Google] [1] than from - [Yahoo] [2] or [MSN] [3]. - - [1]: http://google.com/ "Google" - [2]: http://search.yahoo.com/ "Yahoo Search" - [3]: http://search.msn.com/ "MSN Search" - -Using the implicit link name shortcut, you could instead write: - - I get 10 times more traffic from [Google][] than from - [Yahoo][] or [MSN][]. - - [google]: http://google.com/ "Google" - [yahoo]: http://search.yahoo.com/ "Yahoo Search" - [msn]: http://search.msn.com/ "MSN Search" - -Both of the above examples will produce the following HTML output: - - <p>I get 10 times more traffic from <a href="http://google.com/" - title="Google">Google</a> than from - <a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> - or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p> - -For comparison, here is the same paragraph written using -Markdown's inline link style: - - I get 10 times more traffic from [Google](http://google.com/ "Google") - than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or - [MSN](http://search.msn.com/ "MSN Search"). - -The point of reference-style links is not that they're easier to -write. The point is that with reference-style links, your document -source is vastly more readable. Compare the above examples: using -reference-style links, the paragraph itself is only 81 characters -long; with inline-style links, it's 176 characters; and as raw HTML, -it's 234 characters. In the raw HTML, there's more markup than there -is text. - -With Markdown's reference-style links, a source document much more -closely resembles the final output, as rendered in a browser. By -allowing you to move the markup-related metadata out of the paragraph, -you can add links without interrupting the narrative flow of your -prose. - - -### Emphasis - -Markdown treats asterisks (`*`) and underscores (`_`) as indicators of -emphasis. Text wrapped with one `*` or `_` will be wrapped with an -HTML `<em>` tag; double `*`'s or `_`'s will be wrapped with an HTML -`<strong>` tag. E.g., this input: - - *single asterisks* - - _single underscores_ - - **double asterisks** - - __double underscores__ - -will produce: - - <em>single asterisks</em> - - <em>single underscores</em> - - <strong>double asterisks</strong> - - <strong>double underscores</strong> - -You can use whichever style you prefer; the lone restriction is that -the same character must be used to open and close an emphasis span. - -Emphasis can be used in the middle of a word: - - un*fucking*believable - -But if you surround an `*` or `_` with spaces, it'll be treated as a -literal asterisk or underscore. - -To produce a literal asterisk or underscore at a position where it -would otherwise be used as an emphasis delimiter, you can backslash -escape it: - - \*this text is surrounded by literal asterisks\* - - - -### Code - -To indicate a span of code, wrap it with backtick quotes (`` ` ``). -Unlike a pre-formatted code block, a code span indicates code within a -normal paragraph. For example: - - Use the `printf()` function. - -will produce: - - <p>Use the <code>printf()</code> function.</p> - -To include a literal backtick character within a code span, you can use -multiple backticks as the opening and closing delimiters: - - ``There is a literal backtick (`) here.`` - -which will produce this: - - <p><code>There is a literal backtick (`) here.</code></p> - -The backtick delimiters surrounding a code span may include spaces -- -one after the opening, one before the closing. This allows you to place -literal backtick characters at the beginning or end of a code span: - - A single backtick in a code span: `` ` `` - - A backtick-delimited string in a code span: `` `foo` `` - -will produce: - - <p>A single backtick in a code span: <code>`</code></p> - - <p>A backtick-delimited string in a code span: <code>`foo`</code></p> - -With a code span, ampersands and angle brackets are encoded as HTML -entities automatically, which makes it easy to include example HTML -tags. Markdown will turn this: - - Please don't use any `<blink>` tags. - -into: - - <p>Please don't use any <code><blink></code> tags.</p> - -You can write this: - - `—` is the decimal-encoded equivalent of `—`. - -to produce: - - <p><code>&#8212;</code> is the decimal-encoded - equivalent of <code>&mdash;</code>.</p> - - - -### Images - -Admittedly, it's fairly difficult to devise a "natural" syntax for -placing images into a plain text document format. - -Markdown uses an image syntax that is intended to resemble the syntax -for links, allowing for two styles: *inline* and *reference*. - -Inline image syntax looks like this: - -  - -  - -That is: - -* An exclamation mark: `!`; -* followed by a set of square brackets, containing the `alt` - attribute text for the image; -* followed by a set of parentheses, containing the URL or path to - the image, and an optional `title` attribute enclosed in double - or single quotes. - -Reference-style image syntax looks like this: - - ![Alt text][id] - -Where "id" is the name of a defined image reference. Image references -are defined using syntax identical to link references: - - [id]: url/to/image "Optional title attribute" - -As of this writing, Markdown has no syntax for specifying the -dimensions of an image; if this is important to you, you can simply -use regular HTML `<img>` tags. - - -* * * - - -## Miscellaneous - -### Automatic Links - -Markdown supports a shortcut style for creating "automatic" links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this: - - <http://example.com/> - -Markdown will turn this into: - - <a href="http://example.com/">http://example.com/</a> - -Automatic links for email addresses work similarly, except that -Markdown will also perform a bit of randomized decimal and hex -entity-encoding to help obscure your address from address-harvesting -spambots. For example, Markdown will turn this: - - <address@example.com> - -into something like this: - - <a href="mailto:addre - ss@example.co - m">address@exa - mple.com</a> - -which will render in a browser as a clickable link to "address@example.com". - -(This sort of entity-encoding trick will indeed fool many, if not -most, address-harvesting bots, but it definitely won't fool all of -them. It's better than nothing, but an address published in this way -will probably eventually start receiving spam.) - - - -### Backslash Escapes - -Markdown allows you to use backslash escapes to generate literal -characters which would otherwise have special meaning in Markdown's -formatting syntax. For example, if you wanted to surround a word with -literal asterisks (instead of an HTML `<em>` tag), you can backslashes -before the asterisks, like this: - - \*literal asterisks\* - -Markdown provides backslash escapes for the following characters: - - \ backslash - ` backtick - * asterisk - _ underscore - {} curly braces - [] square brackets - () parentheses - # hash mark - + plus sign - - minus sign (hyphen) - . dot - ! exclamation mark - ->>> -headingOne: Markdown: Syntax -interblockSeparator -ulBeginTight -ulItem -BEGIN link -- label: Overview -- URI: (hash)overview -- title: -END link -interblockSeparator -ulBeginTight -ulItem -BEGIN link -- label: Philosophy -- URI: (hash)philosophy -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Inline HTML -- URI: (hash)html -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Automatic Escaping for Special Characters -- URI: (hash)autoescape -- title: -END link -ulItemEnd -ulEndTight -ulItemEnd -ulItem -BEGIN link -- label: Block Elements -- URI: (hash)block -- title: -END link -interblockSeparator -ulBeginTight -ulItem -BEGIN link -- label: Paragraphs and Line Breaks -- URI: (hash)p -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Headers -- URI: (hash)header -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Blockquotes -- URI: (hash)blockquote -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Lists -- URI: (hash)list -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Code Blocks -- URI: (hash)precode -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Horizontal Rules -- URI: (hash)hr -- title: -END link -ulItemEnd -ulEndTight -ulItemEnd -ulItem -BEGIN link -- label: Span Elements -- URI: (hash)span -- title: -END link -interblockSeparator -ulBeginTight -ulItem -BEGIN link -- label: Links -- URI: (hash)link -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Emphasis -- URI: (hash)em -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Code -- URI: (hash)code -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Images -- URI: (hash)img -- title: -END link -ulItemEnd -ulEndTight -ulItemEnd -ulItem -BEGIN link -- label: Miscellaneous -- URI: (hash)misc -- title: -END link -interblockSeparator -ulBeginTight -ulItem -BEGIN link -- label: Backslash Escapes -- URI: (hash)backslash -- title: -END link -ulItemEnd -ulItem -BEGIN link -- label: Automatic Links -- URI: (hash)autolink -- title: -END link -ulItemEnd -ulEndTight -ulItemEnd -ulEndTight -interblockSeparator -strongEmphasis: Note: -BEGIN link -- label: see the source for it by adding '.text' to the URL -- URI: /projects/markdown/syntax.text -- title: -END link -interblockSeparator -horizontalRule -interblockSeparator -headingTwo: Overview -interblockSeparator -headingThree: Philosophy -interblockSeparator -interblockSeparator -BEGIN link -- label: Setext -- URI: http://docutils.sourceforge.net/mirror/setext.html -- title: -END link -BEGIN link -- label: atx -- URI: http://www.aaronsw.com/2002/atx/ -- title: -END link -BEGIN link -- label: Textile -- URI: http://textism.com/tools/textile/ -- title: -END link -BEGIN link -- label: reStructuredText -- URI: http://docutils.sourceforge.net/rst.html -- title: -END link -BEGIN link -- label: Grutatext -- URI: http://www.triptico.com/software/grutatxt.html -- title: -END link -BEGIN link -- label: EtText -- URI: http://ettext.taint.org/doc/ -- title: -END link -interblockSeparator -interblockSeparator -headingThree: Inline HTML -interblockSeparator -emphasis: writing -interblockSeparator -emphasis: not -emphasis: publishing -emphasis: writing -interblockSeparator -interblockSeparator -codeSpan: <div> -codeSpan: <table> -codeSpan: <pre> -codeSpan: <p> -codeSpan: <p> -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/6c0e67934e0358fd4071cf4247bcf221.verbatim -interblockSeparator -codeSpan: *emphasis* -interblockSeparator -codeSpan: <span> -codeSpan: <cite> -codeSpan: <del> -codeSpan: <a> -codeSpan: <img> -interblockSeparator -emphasis: is -interblockSeparator -headingThree: Automatic Escaping for Special Characters -interblockSeparator -codeSpan: < -codeSpan: (ampersand) -codeSpan: (ampersand)lt; -codeSpan: (ampersand)amp; -interblockSeparator -ampersand -codeSpan: AT(ampersand)amp;T -interblockSeparator -inputVerbatim: ./_markdown_test/01abe6d069cf62de251cf21f8df1d11f.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/3bb5e0b18bdd7c9688b9f5df139967f3.verbatim -interblockSeparator -codeSpan: href -interblockSeparator -codeSpan: (ampersand)amp; -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/9f3cb292eb01028cce569a08ef6f975b.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/7cdba89e6cc34bd4841c7c6a41bb4156.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/c79c1d6af747ea457d80ff723101137a.verbatim -interblockSeparator -BEGIN link -- label: inline HTML -- URI: (hash)html -- title: -END link -interblockSeparator -inputVerbatim: ./_markdown_test/e76bfed335c678dbe01b3982b9b46fdc.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/cc7bb6b7c24a66c62c969328036e8f7b.verbatim -interblockSeparator -emphasis: always -codeSpan: < -codeSpan: (ampersand) -interblockSeparator -horizontalRule -interblockSeparator -headingTwo: Block Elements -interblockSeparator -headingThree: Paragraphs and Line Breaks -interblockSeparator -interblockSeparator -codeSpan: <br /> -interblockSeparator -emphasis: do -codeSpan: <br /> -interblockSeparator -codeSpan: <br /> -codeSpan: <br /> -BEGIN link -- label: blockquoting -- URI: (hash)blockquote -- title: -END link -BEGIN link -- label: list items -- URI: (hash)list -- title: -END link -interblockSeparator -headingThree: Headers -interblockSeparator -BEGIN link -- label: Setext -- URI: http://docutils.sourceforge.net/mirror/setext.html -- title: -END link -BEGIN link -- label: atx -- URI: http://www.aaronsw.com/2002/atx/ -- title: -END link -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/4f59d4e23ef758fd94bd2324643e2f2b.verbatim -interblockSeparator -codeSpan: = -codeSpan: - -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/48058b850bf198c75e9571ef25b4174e.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/37d9f30690dba801bda9a65ec7cfd1be.verbatim -interblockSeparator -headingThree: Blockquotes -interblockSeparator -codeSpan: > -codeSpan: > -interblockSeparator -inputVerbatim: ./_markdown_test/a89055d359469d454a801830954a9c6f.verbatim -interblockSeparator -codeSpan: > -interblockSeparator -inputVerbatim: ./_markdown_test/944cb176339d03ac7508f0f66090979f.verbatim -interblockSeparator -codeSpan: > -interblockSeparator -inputVerbatim: ./_markdown_test/2a3331ca2a955f6ad7da2480f9cda089.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/539f94bbd698cb75fb0cd1ba51d297b2.verbatim -interblockSeparator -interblockSeparator -headingThree: Lists -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/7667e2408d637a1e3ca69ccc1ce50809.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/f9c93344b256fc419363b5137a49888e.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/0ae7b8161204fb8d79d287ece754d868.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/5159786425bde2cec7e20b79500dde54.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/9679de8f4110a0e2906694aa1804cbf0.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/68c7899020501a169d9e9ca810aff930.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/733b6752776567144548322ef66d67e6.verbatim -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/3915e80c9e2b1a87599797fb217c295b.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/35441140ac44d3c2c7b9611d18c6dca4.verbatim -interblockSeparator -codeSpan: <p> -interblockSeparator -inputVerbatim: ./_markdown_test/92f4628c14a10b92aead4a4ebd01936a.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/02afc9ab8392711baf578d89e8b624a8.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/ec0f57523c3541a14df8f17f3c822039.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/197c8667c0c0307c8174e6a6e07c2a48.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/a07ba2a71f8cd42180768463fa2e5dad.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/d56908f0f6e2476a6146ece0fa7e2f32.verbatim -interblockSeparator -codeSpan: > -interblockSeparator -inputVerbatim: ./_markdown_test/4c06d5a765803dd6f15378765020443c.verbatim -interblockSeparator -emphasis: twice -interblockSeparator -inputVerbatim: ./_markdown_test/d3f24a5ba4f9ebe7c97b690753fef199.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/d87e20aae0facc7fbbc293f790178cf4.verbatim -interblockSeparator -emphasis: number-period-space -interblockSeparator -inputVerbatim: ./_markdown_test/ea5e5fa61236c2e31ecb34d484caed78.verbatim -interblockSeparator -headingThree: Code Blocks -interblockSeparator -codeSpan: <pre> -codeSpan: <code> -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/80158a498770adf4d0617503ae558414.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/35dd5e3b1d316dec464fafbedf53439e.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/992aa3a21cc79d1a6a7b273173e1cc48.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/d37edcee91241df6034067902bf7ff5f.verbatim -interblockSeparator -interblockSeparator -codeSpan: (ampersand) -codeSpan: < -codeSpan: > -interblockSeparator -inputVerbatim: ./_markdown_test/bfd3b2e8e47a22fe0914d55781a73b7c.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/6a14fbcefad86826e777c27a9000b94a.verbatim -interblockSeparator -interblockSeparator -headingThree: Horizontal Rules -interblockSeparator -codeSpan: <hr /> -interblockSeparator -inputVerbatim: ./_markdown_test/b3a754721670b6236c8eb8159555f38b.verbatim -interblockSeparator -horizontalRule -interblockSeparator -headingTwo: Span Elements -interblockSeparator -headingThree: Links -interblockSeparator -emphasis: inline -emphasis: reference -interblockSeparator -interblockSeparator -emphasis: optional -interblockSeparator -inputVerbatim: ./_markdown_test/1414e8798e8df1116073e37e18480580.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/fee0581724d177221ef58d9e6a498b35.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/be45edb9cb5e6fb760f9805ffc37b64b.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/00842bca924b6e825c555a0866ba0488.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/525e6727b97cbbb73ce96c0ba62e8eb6.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/a35af952f6f3a307982ea5250cfb72de.verbatim -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/59be3295fa322e809f4138ef7500798a.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/a39ca11b40fca9daced4a3b44b1fc1a3.verbatim -interblockSeparator -interblockSeparator -emphasis: not -interblockSeparator -inputVerbatim: ./_markdown_test/a943d1cc49e6963c7bcb45acfebf321f.verbatim -interblockSeparator -interblockSeparator -emphasis: implicit link name -interblockSeparator -inputVerbatim: ./_markdown_test/c2c38dc7e1a41ddb3d50c965e569aab4.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/17194fe133f07ed35b959c9108de4cec.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/1a7658c341b463a9232093771a413acc.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/65aaecc2b48f0d27de8de608c27ed6e7.verbatim -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/31285fcec3a6ea99b4694d3e6750fc60.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/0810a7510b5a42a7ec77fd3d55be870e.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/28d0c5764a38e6b58409f9967ef91bcc.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/f39ac74789b190c9c1460bd06b2e5f66.verbatim -interblockSeparator -interblockSeparator -interblockSeparator -headingThree: Emphasis -interblockSeparator -codeSpan: * -codeSpan: (underscore) -codeSpan: * -codeSpan: (underscore) -codeSpan: <em> -codeSpan: * -codeSpan: (underscore) -codeSpan: <strong> -interblockSeparator -inputVerbatim: ./_markdown_test/ad2981010cf94e370ccb06c7233f0989.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/451a1d0edf74505402610a4bae7997d0.verbatim -interblockSeparator -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/3f3996b979db4e11ec6fd9b0232b3d83.verbatim -interblockSeparator -codeSpan: * -codeSpan: (underscore) -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/85d79dd13f594a1dc7dc5b2be403366a.verbatim -interblockSeparator -headingThree: Code -interblockSeparator -codeSpan: ` -interblockSeparator -inputVerbatim: ./_markdown_test/3013bb705f116d1bf7d7506a827cd6f1.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/0d572dc866bb6649bdedef400a32f2ee.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/000c6f567a8ecf3820cf43f6b248b303.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/a499280e33397f3bd9ec1415835a1c04.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/56cb72e47c0ff4e11b252117ed9d7c15.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/2624fb4324d31d847556b8cf06cc71a3.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/7e31b58c38fbe808c13ae0c21943fdbb.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/775e317bc6e9bac7e3a3a3f44dade6d1.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/b71470703a2237b352df145a688666b9.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/c7d2bf55eba7aa8ecd26cc75c0116ecd.verbatim -interblockSeparator -headingThree: Images -interblockSeparator -interblockSeparator -emphasis: inline -emphasis: reference -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/95e477e08806ad17333ef8c62ab1a9bf.verbatim -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -codeSpan: ! -ulItemEnd -ulItem -codeSpan: alt -ulItemEnd -ulItem -codeSpan: title -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/90c3fb2e48c6bc6b5139b7d9fefe33eb.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/a5bd86aacaa065512fabab353b4646b5.verbatim -interblockSeparator -codeSpan: <img> -interblockSeparator -horizontalRule -interblockSeparator -headingTwo: Miscellaneous -interblockSeparator -headingThree: Automatic Links -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/ba84105470e6c3ca4640b0165ba73e28.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/3d59db9474543617b421ad8938c9ad5f.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/7c01c9510936100673897e413a694f95.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/57dc30d4baafa58ac03c967e1ffe882b.verbatim -interblockSeparator -interblockSeparator -interblockSeparator -headingThree: Backslash Escapes -interblockSeparator -codeSpan: <em> -interblockSeparator -inputVerbatim: ./_markdown_test/ee5b9bd27735fe320e0eb1cd9218539d.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/4f5715933ffa8d2f20d0360598a68dbb.verbatim diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/nested-blockquotes.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/nested-blockquotes.test deleted file mode 100644 index bbc0f7e4c5..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/nested-blockquotes.test +++ /dev/null @@ -1,14 +0,0 @@ -<<< -> foo -> -> > bar -> -> foo - ->>> -blockQuoteBegin -interblockSeparator -blockQuoteBegin -blockQuoteEnd -interblockSeparator -blockQuoteEnd diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/ordered-and-unordered-lists.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/ordered-and-unordered-lists.test deleted file mode 100644 index 6a88122d16..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/ordered-and-unordered-lists.test +++ /dev/null @@ -1,323 +0,0 @@ -<<< -## Unordered - -Asterisks tight: - -* asterisk 1 -* asterisk 2 -* asterisk 3 - - -Asterisks loose: - -* asterisk 1 - -* asterisk 2 - -* asterisk 3 - -* * * - -Pluses tight: - -+ Plus 1 -+ Plus 2 -+ Plus 3 - - -Pluses loose: - -+ Plus 1 - -+ Plus 2 - -+ Plus 3 - -* * * - - -Minuses tight: - -- Minus 1 -- Minus 2 -- Minus 3 - - -Minuses loose: - -- Minus 1 - -- Minus 2 - -- Minus 3 - - -## Ordered - -Tight: - -1. First -2. Second -3. Third - -and: - -1. One -2. Two -3. Three - - -Loose using tabs: - -1. First - -2. Second - -3. Third - -and using spaces: - -1. One - -2. Two - -3. Three - -Multiple paragraphs: - -1. Item 1, graf one. - - Item 2. graf two. The quick brown fox jumped over the lazy dog's - back. - -2. Item 2. - -3. Item 3. - - - -## Nested - -* Tab - * Tab - * Tab - -Here's another: - -1. First -2. Second: - * Fee - * Fie - * Foe -3. Third - -Same thing but with paragraphs: - -1. First - -2. Second: - * Fee - * Fie - * Foe - -3. Third - - -This was an error in Markdown 1.0.1: - -* this - - * sub - - that - ->>> -headingTwo: Unordered -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -ulBegin -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEnd -interblockSeparator -horizontalRule -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -ulBegin -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEnd -interblockSeparator -horizontalRule -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -ulBegin -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEnd -interblockSeparator -headingTwo: Ordered -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEnd -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEnd -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 1 -interblockSeparator -ampersand -hash -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEnd -interblockSeparator -headingTwo: Nested -interblockSeparator -ulBeginTight -ulItem -interblockSeparator -ulBeginTight -ulItem -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulEndTight -ulItemEnd -ulEndTight -ulItemEnd -ulEndTight -interblockSeparator -ampersand -hash -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEnd -interblockSeparator -interblockSeparator -ulBegin -ulItem -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulEndTight -interblockSeparator -ulItemEnd -ulEnd diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/strong-and-em-together.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/strong-and-em-together.test deleted file mode 100644 index 44c84cd6d1..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/strong-and-em-together.test +++ /dev/null @@ -1,17 +0,0 @@ -<<< -***This is strong and em.*** - -So is ***this*** word. - -___This is strong and em.___ - -So is ___this___ word. - ->>> -strongEmphasis: (emphasis: This is strong and em.) -interblockSeparator -strongEmphasis: (emphasis: this) -interblockSeparator -strongEmphasis: (emphasis: This is strong and em.) -interblockSeparator -strongEmphasis: (emphasis: this) diff --git a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/tabs.test b/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/tabs.test deleted file mode 100644 index 4737ab75e8..0000000000 --- a/macros/generic/markdown/tests/testfiles/Markdown_1.0.3/tabs.test +++ /dev/null @@ -1,39 +0,0 @@ -<<< -+ this is a list item - indented with tabs - -+ this is a list item - indented with spaces - -Code: - - this code block is indented by one tab - -And: - - this code block is indented by two tabs - -And: - - + this is an example list item - indented with tabs - - + this is an example list item - indented with spaces - ->>> -ulBegin -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEnd -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/07112549a31e78f7efb64c16f22570db.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/385fbae90889669b105262d12987e9da.verbatim -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/ce062b920c62d9e77aae68da221de295.verbatim diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/README.md b/macros/generic/markdown/tests/testfiles/PHP_Markdown/README.md deleted file mode 100644 index 8ceeb21dec..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/README.md +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains test files that were inherited from the -`tests/PHP_Markdown` directory in the lunamark project. diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/auto-links.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/auto-links.test deleted file mode 100644 index ba3ee16d9a..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/auto-links.test +++ /dev/null @@ -1,16 +0,0 @@ -<<< -<HTTP://WWW.SOMEURL.COM> - -<hr@company.com> ->>> -BEGIN link -- label: HTTP://WWW.SOMEURL.COM -- URI: HTTP://WWW.SOMEURL.COM -- title: -END link -interblockSeparator -BEGIN link -- label: hr@company.com -- URI: mailto:hr@company.com -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/backslash-escapes.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/backslash-escapes.test deleted file mode 100644 index a66cdefb8e..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/backslash-escapes.test +++ /dev/null @@ -1,19 +0,0 @@ -<<< -Tricky combinaisons: - -backslash with \\-- two dashes - -backslash with \\> greater than - -\\[test](not a link) - -\\\*no emphasis* ->>> -interblockSeparator -backslash -interblockSeparator -backslash -interblockSeparator -backslash -interblockSeparator -backslash diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-in-a-list-item.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-in-a-list-item.test deleted file mode 100644 index 8ac52d287a..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-in-a-list-item.test +++ /dev/null @@ -1,31 +0,0 @@ -<<< - -* List Item: - - code block - - with a blank line - - within a list item. - -* code block - as first element of a list item - -* List Item: - - code block with whitespace on preceding line ->>> -ulBegin -ulItem -interblockSeparator -inputVerbatim: ./_markdown_test/3918bc9009f196cbcc980181827419e9.verbatim -interblockSeparator -ulItemEnd -ulItem -inputVerbatim: ./_markdown_test/2ecbe437956c71ad33b2efd354f11893.verbatim -ulItemEnd -ulItem -interblockSeparator -inputVerbatim: ./_markdown_test/89ad99c3052a342e765443409ef64797.verbatim -ulItemEnd -ulEnd diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-on-second-line.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-on-second-line.test deleted file mode 100644 index 7b402e3fa0..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/code-block-on-second-line.test +++ /dev/null @@ -1,6 +0,0 @@ -<<< - - Codeblock on second line - ->>> -inputVerbatim: ./_markdown_test/722b6c7a40293698cf78b28fdb8623ff.verbatim diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/email-auto-links.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/email-auto-links.test deleted file mode 100644 index afda759ec7..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/email-auto-links.test +++ /dev/null @@ -1,16 +0,0 @@ -<<< -<michel.fortin@michelf.com> - -International domain names: <help@tūdaliņ.lv> ->>> -BEGIN link -- label: michel.fortin@michelf.com -- URI: mailto:michel.fortin@michelf.com -- title: -END link -interblockSeparator -BEGIN link -- label: help@tūdaliņ.lv -- URI: mailto:help@tūdaliņ.lv -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/emphasis.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/emphasis.test deleted file mode 100644 index ed36492e09..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/emphasis.test +++ /dev/null @@ -1,272 +0,0 @@ -<<< -Combined emphasis: - -1. ***test test*** -2. ___test test___ -3. *test **test*** -4. **test *test*** -5. ***test* test** -6. ***test** test* -7. ***test* test** -8. **test *test*** -9. *test **test*** -10. _test __test___ -11. __test _test___ -12. ___test_ test__ -13. ___test__ test_ -14. ___test_ test__ -15. __test _test___ -16. _test __test___ - - -Incorrect nesting: - -1. *test **test* test** -2. _test __test_ test__ -3. **test *test** test* -4. __test _test__ test_ -5. *test *test* test* -6. _test _test_ test_ -7. **test **test** test** -8. __test __test__ test__ - - - -No emphasis: - -1. test* test *test -2. test** test **test -3. test_ test _test -4. test__ test __test - - - -Middle-word emphasis (asterisks): - -1. *a*b -2. a*b* -3. a*b*c -4. **a**b -5. a**b** -6. a**b**c - - -Middle-word emphasis (underscore): - -1. _a_b -2. a_b_ -3. a_b_c -4. __a__b -5. a__b__ -6. a__b__c - -my_precious_file.txt - - -## Tricky Cases - -E**. **Test** TestTestTest - -E**. **Test** Test Test Test - - -## Overlong emphasis - -Name: ____________ -Organization: ____ -Region/Country: __ - -_____Cut here_____ - -____Cut here____ - ->>> -interblockSeparator -olBeginTight -olItemWithNumber: 1 -strongEmphasis: (emphasis: test test) -olItemEnd -olItemWithNumber: 2 -strongEmphasis: (emphasis: test test) -olItemEnd -olItemWithNumber: 3 -emphasis: test (strongEmphasis: test) -olItemEnd -olItemWithNumber: 4 -strongEmphasis: test (emphasis: test) -olItemEnd -olItemWithNumber: 5 -strongEmphasis: (emphasis: test) test -olItemEnd -olItemWithNumber: 6 -emphasis: (strongEmphasis: test) test -olItemEnd -olItemWithNumber: 7 -strongEmphasis: (emphasis: test) test -olItemEnd -olItemWithNumber: 8 -strongEmphasis: test (emphasis: test) -olItemEnd -olItemWithNumber: 9 -emphasis: test (strongEmphasis: test) -olItemEnd -olItemWithNumber: 10 -emphasis: test (strongEmphasis: test) -olItemEnd -olItemWithNumber: 11 -strongEmphasis: test (emphasis: test) -olItemEnd -olItemWithNumber: 12 -strongEmphasis: (emphasis: test) test -olItemEnd -olItemWithNumber: 13 -emphasis: (strongEmphasis: test) test -olItemEnd -olItemWithNumber: 14 -strongEmphasis: (emphasis: test) test -olItemEnd -olItemWithNumber: 15 -strongEmphasis: test (emphasis: test) -olItemEnd -olItemWithNumber: 16 -emphasis: test (strongEmphasis: test) -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -strongEmphasis: test* test -olItemEnd -olItemWithNumber: 2 -underscore -strongEmphasis: test(underscore) test -olItemEnd -olItemWithNumber: 3 -emphasis: (emphasis: test (emphasis: test)) test -olItemEnd -olItemWithNumber: 4 -emphasis: (emphasis: test (emphasis: test)) test -olItemEnd -olItemWithNumber: 5 -emphasis: test (emphasis: test) test -olItemEnd -olItemWithNumber: 6 -emphasis: test (emphasis: test) test -olItemEnd -olItemWithNumber: 7 -strongEmphasis: test (strongEmphasis: test) test -olItemEnd -olItemWithNumber: 8 -strongEmphasis: test (strongEmphasis: test) test -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -emphasis: * test * -olItemEnd -olItemWithNumber: 3 -underscore -underscore -olItemEnd -olItemWithNumber: 4 -emphasis: (underscore) test (underscore) -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -emphasis: a -olItemEnd -olItemWithNumber: 2 -emphasis: b -olItemEnd -olItemWithNumber: 3 -emphasis: b -olItemEnd -olItemWithNumber: 4 -strongEmphasis: a -olItemEnd -olItemWithNumber: 5 -strongEmphasis: b -olItemEnd -olItemWithNumber: 6 -strongEmphasis: b -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -emphasis: a -olItemEnd -olItemWithNumber: 2 -emphasis: b -olItemEnd -olItemWithNumber: 3 -emphasis: b -olItemEnd -olItemWithNumber: 4 -strongEmphasis: a -olItemEnd -olItemWithNumber: 5 -strongEmphasis: b -olItemEnd -olItemWithNumber: 6 -strongEmphasis: b -olItemEnd -olEndTight -interblockSeparator -emphasis: precious -interblockSeparator -headingTwo: Tricky Cases -interblockSeparator -strongEmphasis: Test -interblockSeparator -strongEmphasis: Test -interblockSeparator -headingTwo: Overlong emphasis -interblockSeparator -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -interblockSeparator -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore -interblockSeparator -underscore -underscore -underscore -underscore -underscore -underscore -underscore -underscore diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/empty-list-item.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/empty-list-item.test deleted file mode 100644 index a9fb47b84b..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/empty-list-item.test +++ /dev/null @@ -1,97 +0,0 @@ -<<< -With asterisks - - * List item - * - * List item - -With numbers - -1. List item -2. -3. List item - -With hyphens - -- List item -- -- List item - -With asterisks - - * List item - * List item - * - -With numbers - -1. List item -2. List item -3. - -With hyphens - -- List item -- List item -- - ->>> -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/headers.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/headers.test deleted file mode 100644 index f068181502..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/headers.test +++ /dev/null @@ -1,18 +0,0 @@ -<<< -### Header - - - - - - -Paragraphr - - - - - - -Paragraph ->>> -headingThree: Header -interblockSeparator -horizontalRule -interblockSeparator -interblockSeparator -horizontalRule -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/horizontal-rules.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/horizontal-rules.test deleted file mode 100644 index 634ad3db9c..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/horizontal-rules.test +++ /dev/null @@ -1,51 +0,0 @@ -<<< -Horizontal rules: - -- - - - -* * * - -*** - ---- - -___ - -Not horizontal rules (testing for a bug in 1.0.1j): - -+++ - -,,, - -=== - -??? - -AAA - -jjj - -j j j - -n n n - ->>> -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -horizontalRule -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/links-inline-style.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/links-inline-style.test deleted file mode 100644 index bb67b838d1..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/links-inline-style.test +++ /dev/null @@ -1,9 +0,0 @@ -<<< -[silly URL w/ angle brackets](<?}]*+|&)>). - ->>> -BEGIN link -- label: silly URL w/ angle brackets -- URI: ?(rightBrace)]*+(pipe)(ampersand)) -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/md5-hashes.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/md5-hashes.test deleted file mode 100644 index b70a29c981..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/md5-hashes.test +++ /dev/null @@ -1,22 +0,0 @@ -<<< -# Character Escapes - -The MD5 value for `+` is "26b17225b626fb9238849fd60eabdf60". - -# HTML Blocks - -<p>test</p> - -The MD5 value for `<p>test</p>` is: - -6205333b793f34273d75379350b36826 ->>> -headingOne: Character Escapes -interblockSeparator -codeSpan: + -interblockSeparator -headingOne: HTML Blocks -interblockSeparator -interblockSeparator -codeSpan: <p>test</p> -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/mixed-ols-and-uls.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/mixed-ols-and-uls.test deleted file mode 100644 index fddda61878..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/mixed-ols-and-uls.test +++ /dev/null @@ -1,47 +0,0 @@ -<<< -* test -+ test -- test - -1. test -2. test - -* test -+ test -- test - -1. test -2. test - ->>> -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olEndTight -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olEndTight diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/nesting.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/nesting.test deleted file mode 100644 index f95ada9662..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/nesting.test +++ /dev/null @@ -1,30 +0,0 @@ -<<< -Valid nesting: - -**[Link](url)** - -[**Link**](url) - -**[**Link**](url)** - -Invalid nesting: - -[[Link](url)](url) ->>> -interblockSeparator -strongEmphasis: (BEGIN link)(- label: Link)(- URI: url)(- title: )(END link) -interblockSeparator -BEGIN link -- label: (strongEmphasis: Link) -- URI: url -- title: -END link -interblockSeparator -strongEmphasis: (BEGIN link)(- label: (strongEmphasis: Link))(- URI: url)(- title: )(END link) -interblockSeparator -interblockSeparator -BEGIN link -- label: [Link](url) -- URI: url -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/parens-in-url.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/parens-in-url.test deleted file mode 100644 index 7c7831220a..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/parens-in-url.test +++ /dev/null @@ -1,52 +0,0 @@ -<<< -[Inline link 1 with parens](/url\(test\) "title"). - -[Inline link 2 with parens](</url\(test\)> "title"). - -[Inline link 3 with non-escaped parens](/url(test) "title"). - -[Inline link 4 with non-escaped parens](</url(test)> "title"). - -[Reference link 1 with parens][1]. - -[Reference link 2 with parens][2]. - - [1]: /url(test) "title" - [2]: </url(test)> "title" - ->>> -BEGIN link -- label: Inline link 1 with parens -- URI: /url(test) -- title: title -END link -interblockSeparator -BEGIN link -- label: Inline link 2 with parens -- URI: /url(test) -- title: title -END link -interblockSeparator -BEGIN link -- label: Inline link 3 with non-escaped parens -- URI: /url(test) -- title: title -END link -interblockSeparator -BEGIN link -- label: Inline link 4 with non-escaped parens -- URI: /url(test) -- title: title -END link -interblockSeparator -BEGIN link -- label: Reference link 1 with parens -- URI: /url(test) -- title: title -END link -interblockSeparator -BEGIN link -- label: Reference link 2 with parens -- URI: /url(test) -- title: title -END link diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/php-specific-bugs.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/php-specific-bugs.test deleted file mode 100644 index 3f3db6c6ee..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/php-specific-bugs.test +++ /dev/null @@ -1,39 +0,0 @@ -<<< -This tests for a bug where quotes escaped by PHP when using -`preg_replace` with the `/e` modifier must be correctly unescaped -(hence the `_UnslashQuotes` function found only in PHP Markdown). - - - -Headers below should appear exactly as they are typed (no backslash -added or removed). - -Header "quoted\" again \\"" -=========================== - -Header "quoted\" again \\"" ---------------------------- - -### Header "quoted\" again \\"" ### - - - -Test with tabs for `_Detab`: - - Code 'block' with some "tabs" and "quotes" - ->>> -codeSpan: preg(underscore)replace -codeSpan: /e -codeSpan: (underscore)UnslashQuotes -interblockSeparator -interblockSeparator -headingOne: Header "quoted(backslash)" again (backslash)"" -interblockSeparator -headingTwo: Header "quoted(backslash)" again (backslash)"" -interblockSeparator -headingThree: Header "quoted(backslash)" again (backslash)"" -interblockSeparator -codeSpan: (underscore)Detab -interblockSeparator -inputVerbatim: ./_markdown_test/58f5a43337a97a77594d067c159d772c.verbatim diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/quotes-in-attributes.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/quotes-in-attributes.test deleted file mode 100644 index 75247fc7fd..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/quotes-in-attributes.test +++ /dev/null @@ -1,29 +0,0 @@ -<<< -[Test](/"style="color:red) -[Test](/'style='color:red) - - - - ->>> -BEGIN link -- label: Test -- URI: /"style="color:red -- title: -END link -BEGIN link -- label: Test -- URI: /'style='color:red -- title: -END link -interblockSeparator -BEGIN image -- label: -- URI: /"style="border-color:red;border-size:1px;border-style:solid -- title: -END image -BEGIN image -- label: -- URI: /'style='border-color:red;border-size:1px;border-style:solid -- title: -END image diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/tables.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/tables.test deleted file mode 100644 index 9300123d19..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/tables.test +++ /dev/null @@ -1,327 +0,0 @@ -\def\markdownOptionPipeTables{true} -<<< -Header 1 | Header 2 ---------- | --------- -Cell 1 | Cell 2 -Cell 3 | Cell 4 - -With leading pipes: - -| Header 1 | Header 2 -| --------- | --------- -| Cell 1 | Cell 2 -| Cell 3 | Cell 4 - -With tailing pipes: - -Header 1 | Header 2 | ---------- | --------- | -Cell 1 | Cell 2 | -Cell 3 | Cell 4 | - -With leading and tailing pipes: - -| Header 1 | Header 2 | -| --------- | --------- | -| Cell 1 | Cell 2 | -| Cell 3 | Cell 4 | - -* * * - -# One-column one-row table - -With leading pipes: - -| Header -| ------- -| Cell - -With tailing pipes: - -Header | -------- | -Cell | - -With leading and tailing pipes: - -| Header | -| ------- | -| Cell | - -* * * - -Table alignement: - -| Default | Right | Center | Left | -| --------- |:--------- |:---------:| ---------:| -| Long Cell | Long Cell | Long Cell | Long Cell | -| Cell | Cell | Cell | Cell | - -Table alignement (alternate spacing): - -| Default | Right | Center | Left | -| --------- | :-------- | :-------: | --------: | -| Long Cell | Long Cell | Long Cell | Long Cell | -| Cell | Cell | Cell | Cell | - -* * * - -# Empty cells - -| Header 1 | Header 2 | -| --------- | --------- | -| A | B | -| C | | - -Header 1 | Header 2 ---------- | --------- -A | B - | D - -* * * - -# Missing tailing pipe - -Header 1 | Header 2 ---------- | --------- | -Cell | Cell | -Cell | Cell | - -Header 1 | Header 2 | ---------- | --------- -Cell | Cell | -Cell | Cell | - -Header 1 | Header 2 | ---------- | --------- | -Cell | Cell -Cell | Cell | - -Header 1 | Header 2 | ---------- | --------- | -Cell | Cell | -Cell | Cell - -* * * - -# Too many pipes in rows - -| Header 1 | Header 2 | -| --------- -| Cell | Cell | Extra cell? | -| Cell | Cell | Extra cell? | ->>> -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell 1 -- row 2, column 2: Cell 2 -- row 3, column 1: Cell 3 -- row 3, column 2: Cell 4 -END table -interblockSeparator -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell 1 -- row 2, column 2: Cell 2 -- row 3, column 1: Cell 3 -- row 3, column 2: Cell 4 -END table -interblockSeparator -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell 1 -- row 2, column 2: Cell 2 -- row 3, column 1: Cell 3 -- row 3, column 2: Cell 4 -END table -interblockSeparator -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell 1 -- row 2, column 2: Cell 2 -- row 3, column 1: Cell 3 -- row 3, column 2: Cell 4 -END table -interblockSeparator -horizontalRule -interblockSeparator -headingOne: One-column one-row table -interblockSeparator -interblockSeparator -BEGIN table (2 rows, 1 columns) -- caption: -- alignment of column 1: d -- row 1, column 1: Header -- row 2, column 1: Cell -END table -interblockSeparator -interblockSeparator -BEGIN table (2 rows, 1 columns) -- caption: -- alignment of column 1: d -- row 1, column 1: Header -- row 2, column 1: Cell -END table -interblockSeparator -interblockSeparator -BEGIN table (2 rows, 1 columns) -- caption: -- alignment of column 1: d -- row 1, column 1: Header -- row 2, column 1: Cell -END table -interblockSeparator -horizontalRule -interblockSeparator -interblockSeparator -BEGIN table (3 rows, 4 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: l -- alignment of column 3: c -- alignment of column 4: r -- row 1, column 1: Default -- row 1, column 2: Right -- row 1, column 3: Center -- row 1, column 4: Left -- row 2, column 1: Long Cell -- row 2, column 2: Long Cell -- row 2, column 3: Long Cell -- row 2, column 4: Long Cell -- row 3, column 1: Cell -- row 3, column 2: Cell -- row 3, column 3: Cell -- row 3, column 4: Cell -END table -interblockSeparator -interblockSeparator -BEGIN table (3 rows, 4 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: l -- alignment of column 3: c -- alignment of column 4: r -- row 1, column 1: Default -- row 1, column 2: Right -- row 1, column 3: Center -- row 1, column 4: Left -- row 2, column 1: Long Cell -- row 2, column 2: Long Cell -- row 2, column 3: Long Cell -- row 2, column 4: Long Cell -- row 3, column 1: Cell -- row 3, column 2: Cell -- row 3, column 3: Cell -- row 3, column 4: Cell -END table -interblockSeparator -horizontalRule -interblockSeparator -headingOne: Empty cells -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: A -- row 2, column 2: B -- row 3, column 1: C -- row 3, column 2: -END table -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: A -- row 2, column 2: B -- row 3, column 1: -- row 3, column 2: D -END table -interblockSeparator -horizontalRule -interblockSeparator -headingOne: Missing tailing pipe -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell -- row 2, column 2: Cell -- row 3, column 1: Cell -- row 3, column 2: Cell -END table -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell -- row 2, column 2: Cell -- row 3, column 1: Cell -- row 3, column 2: Cell -END table -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell -- row 2, column 2: Cell -- row 3, column 1: Cell -- row 3, column 2: Cell -END table -interblockSeparator -BEGIN table (3 rows, 2 columns) -- caption: -- alignment of column 1: d -- alignment of column 2: d -- row 1, column 1: Header 1 -- row 1, column 2: Header 2 -- row 2, column 1: Cell -- row 2, column 2: Cell -- row 3, column 1: Cell -- row 3, column 2: Cell -END table -interblockSeparator -horizontalRule -interblockSeparator -headingOne: Too many pipes in rows -interblockSeparator -BEGIN table (3 rows, 1 columns) -- caption: -- alignment of column 1: d -- row 1, column 1: Header 1 -- row 2, column 1: Cell -- row 3, column 1: Cell -END table diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/tight-blocks.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/tight-blocks.test deleted file mode 100644 index b8f0650113..0000000000 --- a/macros/generic/markdown/tests/testfiles/PHP_Markdown/tight-blocks.test +++ /dev/null @@ -1,30 +0,0 @@ -<<< -Paragraph and no space: -* ciao - -Paragraph and 1 space: - * ciao - -Paragraph and 3 spaces: - * ciao - -Paragraph and 4 spaces: - * ciao - -Paragraph before header: -#Header - -Paragraph before blockquote: ->Some quote. - ->>> -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -headingOne: Header -interblockSeparator -interblockSeparator -blockQuoteBegin -blockQuoteEnd diff --git a/macros/generic/markdown/tests/testfiles/README.md b/macros/generic/markdown/tests/testfiles/README.md deleted file mode 100644 index 0f0168e787..0000000000 --- a/macros/generic/markdown/tests/testfiles/README.md +++ /dev/null @@ -1,21 +0,0 @@ -This directory contains subdirectories with test files, which can be recognized -by the `.test` suffix. A test file has the following syntax: - - The test setup TeX source code - <<< - The test markdown source code - >>> - The expected test output - -The test setup TeX source code can be used to configure the Markdown package -through its plain TeX interface before the test markdown source code is -processed. - -The test markdown source code is the markdown code that will be processed -during the test. The majority of markdown tokens are configured by the support -files to produce output to the log file. This output will be compared against -the expected test output. - -The `<<<` and `>>>` markers may be surrounded by optional whitespaces. If the -last section beginning with `>>>` is not present, it will be automatically -generated during the testing and appended to the test file. diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/README.md b/macros/generic/markdown/tests/testfiles/lunamark-markdown/README.md deleted file mode 100644 index 238044662b..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/README.md +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains test files that were tailored specifically to the -Markdown package. diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/blank-before-code-fence.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/blank-before-code-fence.test deleted file mode 100644 index 8d42218e09..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/blank-before-code-fence.test +++ /dev/null @@ -1,57 +0,0 @@ -\def\markdownOptionFencedCode{true} -\def\markdownOptionBlankBeforeCodeFence{true} -<<< -This test ensures that the Lua `fencedCode` and `blankBeforeCodeFence` options -correctly propagate through the plain TeX interface. - -The following fenced code block should resolve to a code span. - -foo -``` foo -bar -``` - -foo -~~~ foo -bar -~~~ - -The following fenced code blocks should be recognized as such. - -foo - -``` foo -bar -``` - -foo - -~~~ foo -bar -~~~ ->>> -codeSpan: fencedCode -codeSpan: blankBeforeCodeFence -interblockSeparator -interblockSeparator -codeSpan: foo bar -interblockSeparator -tilde -tilde -tilde -tilde -tilde -tilde -interblockSeparator -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/breakable-blockquotes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/breakable-blockquotes.test deleted file mode 100644 index 69dffa4e21..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/breakable-blockquotes.test +++ /dev/null @@ -1,19 +0,0 @@ -\def\markdownOptionBreakableBlockquotes{true} -<<< -This test ensures that the Lua `breakableBlockquotes` option correctly -propagates through the plain TeX interface. - -> *quote 1* - -> *quote 2* - ->>> -codeSpan: breakableBlockquotes -interblockSeparator -blockQuoteBegin -emphasis: quote 1 -blockQuoteEnd -interblockSeparator -blockQuoteBegin -emphasis: quote 2 -blockQuoteEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/cache-dir.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/cache-dir.test deleted file mode 100644 index f9968e9168..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/cache-dir.test +++ /dev/null @@ -1,12 +0,0 @@ -\def\markdownOptionCacheDir{some-other-directory} -<<< -This test ensures that the Lua `cacheDir` option correctly propagates through -the plain TeX interface and causes a change in the cache directory location. -The following code should be stored in a temporary file inside the specified -cache directory. - - foo bar ->>> -codeSpan: cacheDir -interblockSeparator -inputVerbatim: some-other-directory/5ceaa7ed396ccb8e959c02753cb4bd18.verbatim diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-escapes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-escapes.test deleted file mode 100644 index 646c0b9610..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-escapes.test +++ /dev/null @@ -1,73 +0,0 @@ -\def\markdownOptionCitations{true} -<<< -This test ensures that the Lua `citations` option correctly propagates through -the plain TeX interface and that the `citationNbsps` option is enabled by -default. - -Here is a simple parenthetical citation \[\@doe99] and here -is a string of several [see @doe99, pp\; 33-35; also -@smit:.#$%&-+?<>_/h04, chap. 1]. - -A parenthetical citation can have a [prenote @doe99] and a -[@smith04 postnote]. The name of the author can be -suppressed by inserting a dash before the name of an author -as follows [\-@smith04]. - -Here is a simple text citation \@doe99 and here is a string -of several @doe99 [pp\; 33-35; also @smit:.#$%&-+?<>_/h04, -chap. 1]. Here is one with the name of the author -suppressed \-@doe99. ->>> -codeSpan: citations -codeSpan: citationNbsps -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: see -- postnote: pp;(nbsp)33-35 -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: also -- postnote: chap.(nbsp)1 -- name: smit:.(hash)$(percentSign)&-+?<>_/h04 -END cite -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: prenote -- postnote: -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: postnote -- name: smith04 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: - -- postnote: -- name: smith04 -END cite -interblockSeparator -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: pp;(nbsp)33-35 -- name: doe99 -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: also -- postnote: chap.(nbsp)1 -- name: smit:.(hash)$(percentSign)&-+?<>_/h04 -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: doe99 -END textCite diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-nbsps.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-nbsps.test deleted file mode 100644 index e607828711..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-nbsps.test +++ /dev/null @@ -1,85 +0,0 @@ -\def\markdownOptionCitations{true} -<<< -This test ensures that the Lua `citations` option correctly propagates through -the plain TeX interface and that the `citationNbsps` option is enabled by -default. - -Here is a simple parenthetical citation [@doe99] and here -is a string of several [see @doe99, pp. 33-35; also -@smit:.#$%&-+?<>_/h04, chap. 1]. - -A parenthetical citation can have a [prenote @doe99] and -a [@smith04 postnote]. The name of the author can be -suppressed by inserting a dash before the name of an -author as follows [-@smith04]. - -Here is a simple text citation @doe99 and here is a -string of several @doe99 [pp. 33-35; also -@smit:.#$%&-+?<>_/h04, chap. 1]. Here is one with the -name of the author suppressed -@doe99. ->>> -codeSpan: citations -codeSpan: citationNbsps -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: see -- postnote: pp.(nbsp)33-35 -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: also -- postnote: chap.(nbsp)1 -- name: smit:.(hash)$(percentSign)&-+?<>_/h04 -END cite -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: prenote -- postnote: -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: postnote -- name: smith04 -END cite -BEGIN cite -- suppressAuthor: true -- prenote: -- postnote: -- name: smith04 -END cite -interblockSeparator -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: doe99 -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: pp.(nbsp)33-35 -- name: doe99 -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: also -- postnote: chap.(nbsp)1 -- name: smit:.(hash)$(percentSign)&-+?<>_/h04 -END textCite -BEGIN textCite -- suppressAuthor: true -- prenote: -- postnote: -- name: doe99 -END textCite diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-no-nbsps.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-no-nbsps.test deleted file mode 100644 index bc5b70c0d0..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-no-nbsps.test +++ /dev/null @@ -1,85 +0,0 @@ -\def\markdownOptionCitations{true} -\def\markdownOptionCitationNbsps{false} -<<< -This test ensures that the Lua `citations` and `citationNbsps` options correctly -propagate through the plain TeX interface. - -Here is a simple parenthetical citation [@doe99] and here -is a string of several [see @doe99, pp. 33-35; also -@smit:.#$%&-+?<>_/h04, chap. 1]. - -A parenthetical citation can have a [prenote @doe99] and -a [@smith04 postnote]. The name of the author can be -suppressed by inserting a dash before the name of an -author as follows [-@smith04]. - -Here is a simple text citation @doe99 and here is a -string of several @doe99 [pp. 33-35; also -@smit:.#$%&-+?<>_/h04, chap. 1]. Here is one with the -name of the author suppressed -@doe99. ->>> -codeSpan: citations -codeSpan: citationNbsps -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: see -- postnote: pp. 33-35 -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: also -- postnote: chap. 1 -- name: smit:.(hash)$(percentSign)&-+?<>_/h04 -END cite -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: prenote -- postnote: -- name: doe99 -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: postnote -- name: smith04 -END cite -BEGIN cite -- suppressAuthor: true -- prenote: -- postnote: -- name: smith04 -END cite -interblockSeparator -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: doe99 -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: pp. 33-35 -- name: doe99 -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: also -- postnote: chap. 1 -- name: smit:.(hash)$(percentSign)&-+?<>_/h04 -END textCite -BEGIN textCite -- suppressAuthor: true -- prenote: -- postnote: -- name: doe99 -END textCite diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-trailing-punctuation.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-trailing-punctuation.test deleted file mode 100644 index 3063b324e9..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-trailing-punctuation.test +++ /dev/null @@ -1,115 +0,0 @@ -\def\markdownOptionCitations{true} -<<< -This test ensures that the Lua `citations` option correctly propagates through -the plain TeX interface and that the trailing punctuation does not get included -in the citation name. - -[@f] [@f:] [@foo:bar] [@foo:bar:] - -[@_] [@f_] [@foo_bar] [@foo_bar_] - - @f @f: @foo:bar @foo:bar: - - @_ @f_ @foo_bar @foo_bar_ ->>> -codeSpan: citations -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: f -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: f -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo:bar -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo:bar -END cite -interblockSeparator -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: _ -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: f_ -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo_bar -END cite -BEGIN cite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo_bar_ -END cite -interblockSeparator -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: f -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: f -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo:bar -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo:bar -END textCite -interblockSeparator -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: _ -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: f_ -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo_bar -END textCite -BEGIN textCite -- suppressAuthor: false -- prenote: -- postnote: -- name: foo_bar_ -END textCite diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks-language-map.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks-language-map.test deleted file mode 100644 index 545be6893d..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks-language-map.test +++ /dev/null @@ -1,16 +0,0 @@ -\def\markdownOptionContentBlocks{true} -\def\markdownOptionContentBlocksLanguageMap{markdown-languages-nonstandard.json} -<<< -This test ensures that the Lua `contentBlockLanguages` option correctly -propagates through the plain TeX interface. - -/basename.WEIRDextension (title) ->>> -codeSpan: contentBlockLanguages -interblockSeparator -BEGIN contentBlockCode -- suffix: weirdextension -- language: weirdLANGUAGE -- URI: basename.WEIRDextension -- title: title -END contentBlockCode diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks.test deleted file mode 100644 index 60b460fbf9..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/content-blocks.test +++ /dev/null @@ -1,64 +0,0 @@ -\def\markdownOptionContentBlocks{true} -<<< -This test ensures that the Lua `contentBlocks` option correctly propagates -through the plain TeX interface. -/not/a/translusion.md - -/not/a/ -transclusion/either.md - -<http://example.com/minard.jpg> -<http://example.com/minard.jpg> <-- This is just a link. - -htt(p:/)/exam(ple.c)om/m\(inard.jpg (Napoleon's disastrous Russian campaign of 1812) -/Flowchart.png "Engineering Flowchart" - -/Savings Account.csv 'Recent Transactions' -/Example.jS (Source code) -/Lorem Ipsum.txt ->>> -codeSpan: contentBlocks -interblockSeparator -interblockSeparator -BEGIN contentBlockOnlineImage -- suffix: jpg -- URI: http://example.com/minard.jpg -- title: -END contentBlockOnlineImage -interblockSeparator -BEGIN link -- label: http://example.com/minard.jpg -- URI: http://example.com/minard.jpg -- title: -END link -interblockSeparator -BEGIN contentBlockOnlineImage -- suffix: jpg -- URI: htt(p:/)/exam(ple.c)om/m(inard.jpg -- title: Napoleon's disastrous Russian campaign of 1812 -END contentBlockOnlineImage -interblockSeparator -BEGIN contentBlock -- suffix: png -- URI: Flowchart.png -- title: Engineering Flowchart -END contentBlock -interblockSeparator -BEGIN contentBlock -- suffix: csv -- URI: Savings Account.csv -- title: Recent Transactions -END contentBlock -interblockSeparator -BEGIN contentBlockCode -- suffix: js -- language: JavaScript -- URI: Example.jS -- title: Source code -END contentBlockCode -interblockSeparator -BEGIN contentBlock -- suffix: txt -- URI: Lorem Ipsum.txt -- title: -END contentBlock diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/empty-code-spans.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/empty-code-spans.test deleted file mode 100644 index cd69efae60..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/empty-code-spans.test +++ /dev/null @@ -1,24 +0,0 @@ -<<< -These are just two backticks: - -`` - -These are empty code spans: - -` ` - -` ` - -This is a code span containing a single space: - -` ` ->>> -interblockSeparator -interblockSeparator -interblockSeparator -codeSpan: -interblockSeparator -codeSpan: -interblockSeparator -interblockSeparator -codeSpan: diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/fenced-code.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/fenced-code.test deleted file mode 100644 index 2efe132ad1..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/fenced-code.test +++ /dev/null @@ -1,27 +0,0 @@ -\def\markdownOptionFencedCode{true} -<<< -This test ensures that the Lua `fencedCode` option correctly propagates through -the plain TeX interface. - -The following fenced code blocks should be recognized as such. - -``` foo -bar -``` - -~~~ foo -bar -~~~ ->>> -codeSpan: fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/header-attributes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/header-attributes.test deleted file mode 100644 index 3da7ac7a7d..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/header-attributes.test +++ /dev/null @@ -1,37 +0,0 @@ -\def\markdownOptionHeaderAttributes{true} -<<< -This test ensures that the Lua `headerAttributes` option correctly propagates -through the plain TeX interface. - -# A level one heading {#first-id} - -A level one heading {#second_id2} -================================= - -## A level two heading ### {#third-3id .a-class} - -A level two heading {#fourth4-id .2not-a-class} ------------------------------------------------ - -### A level three heading ## {#5not-the-fifth-id} -#### A level four heading {#-6not-the-sixth-id} -##### A level five heading ## {#--7the-seventh-id} -###### A level six heading {#-_the-eighth-id attribute=value} ->>> -codeSpan: headerAttributes -interblockSeparator -headingOne: A level one heading -interblockSeparator -headingOne: A level one heading -interblockSeparator -headingTwo: A level two heading -interblockSeparator -headingTwo: A level two heading (leftBrace)(hash)fourth4-id .2not-a-class(rightBrace) -interblockSeparator -headingThree: A level three heading (hash)(hash) (leftBrace)(hash)5not-the-fifth-id(rightBrace) -interblockSeparator -headingFour: A level four heading (leftBrace)(hash)-6not-the-sixth-id(rightBrace) -interblockSeparator -headingFive: A level five heading -interblockSeparator -headingSix: A level six heading diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/html.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/html.test deleted file mode 100644 index 1975c5b221..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/html.test +++ /dev/null @@ -1,53 +0,0 @@ -\def\markdownOptionHtml{true} -<<< -This test ensures that the Lua `html` option correctly propagates through -the plain TeX interface. - -<div> -*There is block tag support.* -</div> -*There is <inline tag="tag"></inline> support.* -_There is <!-- comment --> support._ -_There is <? HTML instruction ?> support._ - -Here are several ways to write a pipe: - -- | -- | -- | -- | -- | -- | - -Unrecognized character entities are ignored: &nonsense; ->>> -codeSpan: html -interblockSeparator -interblockSeparator -emphasis: There is support. -emphasis: There is support. -emphasis: There is support. -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -pipe -ulItemEnd -ulItem -pipe -ulItemEnd -ulItem -pipe -ulItemEnd -ulItem -pipe -ulItemEnd -ulItem -pipe -ulItemEnd -ulItem -pipe -ulItemEnd -ulEndTight -interblockSeparator -ampersand diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/hybrid.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/hybrid.test deleted file mode 100644 index a82ba1aa1b..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/hybrid.test +++ /dev/null @@ -1,43 +0,0 @@ -\def\markdownOptionHybrid{true} -<<< -This test ensures that the Lua `hybrid` option correctly propagates through -the plain TeX interface. The following special characters should not be -processed by lunamark in any way. - - * \char`{ - * \char`} - * \char`$ - * \char`\% - * \char`& - * \char`_ - * \char`# - * \char`^ - * \char`\ - * \char`~ - * \char`| ->>> -codeSpan: hybrid -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/inline-footnotes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/inline-footnotes.test deleted file mode 100644 index 28ecb568b3..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/inline-footnotes.test +++ /dev/null @@ -1,17 +0,0 @@ -\def\markdownOptionInlineFootnotes{true} -<<< -This test ensures that the Lua `footnotes` and `inlineFootnotes` options -correctly propagate through the plain TeX interface. - -^[Here is the footnote. It can go anywhere after the footnote -reference. It need *not* be placed at the end of the document.] - -\^[This should *not* be a footnote, because it has been escaped.] ->>> -codeSpan: footnotes -codeSpan: inlineFootnotes -interblockSeparator -footnote: Here is the footnote. It can go anywhere after the footnote reference. It need (emphasis: not) be placed at the end of the document. -interblockSeparator -circumflex -emphasis: not diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-blank-before-code-fence.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-blank-before-code-fence.test deleted file mode 100644 index fbe81311a3..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-blank-before-code-fence.test +++ /dev/null @@ -1,57 +0,0 @@ -\def\markdownOptionFencedCode{true} -<<< -This test ensures that the Lua `fencedCode` option correctly propagates through -the plain TeX interface and that the Lua `blankBeforeCodeFence` option is -disabled by default. - -The following fenced code blocks should be recognized as such. - -foo -``` foo -bar -``` - -foo -~~~ foo -bar -~~~ - -foo - -``` foo -bar -``` - -foo - -~~~ foo -bar -~~~ ->>> -codeSpan: fencedCode -codeSpan: blankBeforeCodeFence -interblockSeparator -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/c157a79031e1c40f85931829bc5fc552.verbatim -- infostring: foo -END fencedCode diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-breakable-blockquotes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-breakable-blockquotes.test deleted file mode 100644 index d65cbef728..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-breakable-blockquotes.test +++ /dev/null @@ -1,15 +0,0 @@ -<<< -This test ensures that the Lua `breakableBlockquotes` option is disabled by -default. - -> *quote 1* - -> *quote 2* - ->>> -codeSpan: breakableBlockquotes -interblockSeparator -blockQuoteBegin -emphasis: quote 1 -emphasis: quote 2 -blockQuoteEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-citations.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-citations.test deleted file mode 100644 index 811c8aed35..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-citations.test +++ /dev/null @@ -1,31 +0,0 @@ -<<< -This test ensures that the Lua `citations` option is disabled by default. - -Here is a simple parenthetical citation [@doe99] and here -is a string of several [see @doe99, pp. 33-35; also -@smit:.#$%&-+?<>~/h04, chap. 1]. - -A parenthetical citation can have a [prenote @doe99] and -a [@smith04 postnote]. The name of the author can be -suppressed by inserting a dash before the name of an -author as follows [-@smith04]. - -Here is a simple text citation @doe99 and here is a -string of several @doe99 [pp. 33-35; also -@smit:.#$%&-+?<>~/h04, chap. 1]. Here is one with the -name of the author suppressed -@doe99. ->>> -codeSpan: citations -interblockSeparator -hash -dollarSign -percentSign -ampersand -tilde -interblockSeparator -interblockSeparator -hash -dollarSign -percentSign -ampersand -tilde diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-code-spans.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-code-spans.test deleted file mode 100644 index de24f9db29..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-code-spans.test +++ /dev/null @@ -1,9 +0,0 @@ -\def\markdownOptionCodeSpans{false} -<<< -This test ensures that the Lua `codeSpans` option correctly propagates through -the plain TeX interface. - -``This is a quote.'' -``This is another one.'' ->>> -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-content-blocks.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-content-blocks.test deleted file mode 100644 index ed814a3071..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-content-blocks.test +++ /dev/null @@ -1,32 +0,0 @@ -<<< -This test ensures that the Lua `contentBlocks` option is disabled by default. -/not/a/translusion.md - -/not/a/ -transclusion/either.md - -<http://example.com/minard.jpg> -<http://example.com/minard.jpg> <-- This is just a link. - -htt(p:/)/exam(ple.c)om/m\(inard.jpg (Napoleon's disastrous Russian campaign of 1812) -/Flowchart.png "Engineering Flowchart" - -/Savings Account.csv 'Recent Transactions' -/Example.swift (Source code) -/Lorem Ipsum.txt ->>> -codeSpan: contentBlocks -interblockSeparator -interblockSeparator -BEGIN link -- label: http://example.com/minard.jpg -- URI: http://example.com/minard.jpg -- title: -END link -BEGIN link -- label: http://example.com/minard.jpg -- URI: http://example.com/minard.jpg -- title: -END link -interblockSeparator -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-fenced-code.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-fenced-code.test deleted file mode 100644 index aab1caa4fb..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-fenced-code.test +++ /dev/null @@ -1,22 +0,0 @@ -<<< -This test ensures that the Lua `fencedCode` option is disabled by default. The -following fenced code block should resolve to a code spans. - -``` foo -bar -``` - -~~~ foo -bar -~~~ ->>> -codeSpan: fencedCode -interblockSeparator -codeSpan: foo bar -interblockSeparator -tilde -tilde -tilde -tilde -tilde -tilde diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-header-attributes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-header-attributes.test deleted file mode 100644 index ba752d6e8d..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-header-attributes.test +++ /dev/null @@ -1,35 +0,0 @@ -<<< -This test ensures that the Lua `headerAttributes` option is disabled by default. - -# A level one heading {#first-id} - -A level one heading {#second_id2} -================================= - -## A level two heading ### {#third-3id .a-class} - -A level two heading {#fourth4-id .2not-a-class} ------------------------------------------------ - -### A level three heading ## {#5not-the-fifth-id} -#### A level four heading {#-6not-the-sixth-id} -##### A level five heading ## {#--7the-seventh-id} -###### A level six heading {#-_the-eighth-id attribute=value} ->>> -codeSpan: headerAttributes -interblockSeparator -headingOne: A level one heading (leftBrace)(hash)first-id(rightBrace) -interblockSeparator -headingOne: A level one heading (leftBrace)(hash)second(underscore)id2(rightBrace) -interblockSeparator -headingTwo: A level two heading (hash)(hash)(hash) (leftBrace)(hash)third-3id .a-class(rightBrace) -interblockSeparator -headingTwo: A level two heading (leftBrace)(hash)fourth4-id .2not-a-class(rightBrace) -interblockSeparator -headingThree: A level three heading (hash)(hash) (leftBrace)(hash)5not-the-fifth-id(rightBrace) -interblockSeparator -headingFour: A level four heading (leftBrace)(hash)-6not-the-sixth-id(rightBrace) -interblockSeparator -headingFive: A level five heading (hash)(hash) (leftBrace)(hash)--7the-seventh-id(rightBrace) -interblockSeparator -headingSix: A level six heading (leftBrace)(hash)-(underscore)the-eighth-id attribute=value(rightBrace) diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-html.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-html.test deleted file mode 100644 index cf1763f854..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-html.test +++ /dev/null @@ -1,53 +0,0 @@ -<<< -This test ensures that the Lua `html` option is disabled by default. - -<div> -*There is no block tag support.* -</div> -*There is no <inline tag="tag"></inline> support.* -_There is no <!-- comment --> support._ -_There is no <? HTML instruction ?> support._ - -Here are several ways to write a pipe: - -- | -- | -- | -- | -- | -- | - -Unrecognized character entities are ignored: &nonsense; ->>> -codeSpan: html -interblockSeparator -emphasis: There is no block tag support. -emphasis: There is no <inline tag="tag"></inline> support. -emphasis: There is no <!-- comment --> support. -emphasis: There is no <? HTML instruction ?> support. -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -pipe -ulItemEnd -ulItem -ampersand -ulItemEnd -ulItem -ampersand -ulItemEnd -ulItem -ampersand -ulItemEnd -ulItem -ampersand -hash -ulItemEnd -ulItem -ampersand -hash -ulItemEnd -ulEndTight -interblockSeparator -ampersand diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-hybrid.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-hybrid.test deleted file mode 100644 index d1f3100921..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-hybrid.test +++ /dev/null @@ -1,65 +0,0 @@ -<<< -This test ensures that the Lua `hybrid` option is disabled by default. The -following special characters should be processed by lunamark. - - * \char`{ - * \char`} - * \char`$ - * \char`\% - * \char`& - * \char`_ - * \char`# - * \char`^ - * \char`\ - * \char`~ - * \char`| ->>> -codeSpan: hybrid -interblockSeparator -ulBeginTight -ulItem -backslash -leftBrace -ulItemEnd -ulItem -backslash -rightBrace -ulItemEnd -ulItem -backslash -dollarSign -ulItemEnd -ulItem -backslash -backslash -percentSign -ulItemEnd -ulItem -backslash -ampersand -ulItemEnd -ulItem -backslash -underscore -ulItemEnd -ulItem -backslash -hash -ulItemEnd -ulItem -backslash -circumflex -ulItemEnd -ulItem -backslash -backslash -ulItemEnd -ulItem -backslash -tilde -ulItemEnd -ulItem -backslash -pipe -ulItemEnd -ulEndTight diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-inline-footnotes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-inline-footnotes.test deleted file mode 100644 index 52053b3393..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-inline-footnotes.test +++ /dev/null @@ -1,16 +0,0 @@ -<<< -This test ensures that the Lua `inlineFootnotes` option is disabled by default. -The following inline footnotes should resolve to footnotes. - -^[Here is the footnote. It can go anywhere after the footnote -reference. It need *not* be placed at the end of the document.] - -\^[This should *not* be a footnote, because it has been escaped.] ->>> -codeSpan: inlineFootnotes -interblockSeparator -circumflex -emphasis: not -interblockSeparator -circumflex -emphasis: not diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-pipe-tables.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-pipe-tables.test deleted file mode 100644 index ef1545c2fc..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-pipe-tables.test +++ /dev/null @@ -1,41 +0,0 @@ -<<< -This test ensures that the Lua `pipeTables` option is disabled by default. - -| Right | *Left* | Default | Center | -|------:|:-------|-------------|:------:| -| 12 | 12 | 12 | 12 | -| 123 | 123 | **123** | 123 | -| 1 | 1 | 1 | 1 | - - : Demonstration of pipe table syntax. ->>> -codeSpan: pipeTables -interblockSeparator -pipe -pipe -emphasis: Left -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -pipe -strongEmphasis: 123 -pipe -pipe -pipe -pipe -pipe -pipe -pipe -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-shift-headings.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-shift-headings.test deleted file mode 100644 index 35c21a73d1..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-shift-headings.test +++ /dev/null @@ -1,35 +0,0 @@ -<<< -This test ensures that the Lua `shiftHeadings` option is disabled by default. - -# A level one heading - -A level one heading -=================== - -## A level two heading - -A level two heading -------------------- - -### A level three heading -#### A level four heading -##### A level five heading -###### A level six heading ->>> -codeSpan: shiftHeadings -interblockSeparator -headingOne: A level one heading -interblockSeparator -headingOne: A level one heading -interblockSeparator -headingTwo: A level two heading -interblockSeparator -headingTwo: A level two heading -interblockSeparator -headingThree: A level three heading -interblockSeparator -headingFour: A level four heading -interblockSeparator -headingFive: A level five heading -interblockSeparator -headingSix: A level six heading diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-slice.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-slice.test deleted file mode 100644 index 130042e81f..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-slice.test +++ /dev/null @@ -1,251 +0,0 @@ -\def\markdownOptionHeaderAttributes{true} -<<< -This test ensures that the Lua `slice` option processes the entire document by -default. - -This is an H1 -============= - -This is an H2 {#first-h2} -------------- - -### This is an H3 -#### This is an H4 -##### This is an H5 -###### This is an H6 - -This is a text paragraph containing an ellipsis ... and followed by a horizontal rule. - -*** - -This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. - -  - - /scientists.csv (The great minds of the 19th century rendered via a content block) - -This is a fenced code block: - -``` latex -\documentclass{article} -\begin{document} - Hello world! -\end{document} -``` - -This is an H2 {#second-h2} -------------- - -This is a bullet list: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -This is a compact bullet list: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -This is an ordered list: - - 5. The first item of an ordered list - - that spans several paragraphs, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is an ordered list using hash enumerators: - - #. The first item of an ordered list - - that spans several paragraphs, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a compact ordered list: - - 5. The first item of an ordered list, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is a compact ordered list using hash enumerators: - - #. The first item of an ordered list, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a definition list: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -: Definition 3 - -This is a compact definition list: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 -: Definition 3 - -This is an H2 -------------- - -This is a block quote: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Here is a footnote reference[^1] and another.[^longnote] -Here is an inline note.^[Inlines notes are easier to -write, since you don't have to pick an identifier and -move down to type the note.] - -[^1]: Here is the footnote. - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. ->>> -codeSpan: slice -interblockSeparator -headingOne: This is an H1 -interblockSeparator -headingTwo: This is an H2 -interblockSeparator -headingThree: This is an H3 -interblockSeparator -headingFour: This is an H4 -interblockSeparator -headingFive: This is an H5 -interblockSeparator -headingSix: This is an H6 -interblockSeparator -interblockSeparator -horizontalRule -interblockSeparator -codeSpan: code -BEGIN link -- label: link -- URI: http://google.cz -- title: Google -END link -emphasis: This is an (emphasis: emphasized) span of text -strongEmphasis: This is a (strongEmphasis: strongly emphasized) span of text -interblockSeparator -BEGIN image -- label: example image -- URI: example-image.pdf -- title: An example image from Martin Scharrer's mwe package -END image -interblockSeparator -interblockSeparator -interblockSeparator -codeSpan: latex (backslash)documentclass(leftBrace)article(rightBrace) (backslash)begin(leftBrace)document(rightBrace) Hello world! (backslash)end(leftBrace)document(rightBrace) -interblockSeparator -headingTwo: This is an H2 -interblockSeparator -interblockSeparator -ulBegin -ulItem -interblockSeparator -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEnd -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 5 -interblockSeparator -olItemEnd -olItemWithNumber: 6 -olItemEnd -olItemWithNumber: 7 -olItemEnd -olEnd -interblockSeparator -interblockSeparator -hash -interblockSeparator -inputVerbatim: ./_markdown_test/484324226416f8957283b25427f6a56e.verbatim -interblockSeparator -hash -hash -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 5 -olItemEnd -olItemWithNumber: 6 -olItemEnd -olItemWithNumber: 7 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -hash -hash -hash -interblockSeparator -interblockSeparator -interblockSeparator -interblockSeparator -emphasis: Term 2 -interblockSeparator -interblockSeparator -inputVerbatim: ./_markdown_test/75062d55efa99b0f4cb94891f3745f93.verbatim -interblockSeparator -interblockSeparator -interblockSeparator -emphasis: Term 2 -interblockSeparator -headingTwo: This is an H2 -interblockSeparator -interblockSeparator -blockQuoteBegin -interblockSeparator -blockQuoteBegin -blockQuoteEnd -interblockSeparator -blockQuoteEnd -interblockSeparator -circumflex -circumflex -circumflex diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-start-number.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-start-number.test deleted file mode 100644 index 49e03d7653..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-start-number.test +++ /dev/null @@ -1,41 +0,0 @@ -\def\markdownOptionStartNumber{false} -<<< -This test ensures that the Lua `startNumber` option correctly propagates -through the plain TeX interface. The following lists should not receive -any starting number. - -Tight: - -3. three -4. four -5. five - -Loose: - -3. three - -4. four - -5. five ->>> -codeSpan: startNumber -interblockSeparator -interblockSeparator -olBeginTight -olItem -olItemEnd -olItem -olItemEnd -olItem -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBegin -olItem -olItemEnd -olItem -olItemEnd -olItem -olItemEnd -olEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-strip-percent-signs.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-strip-percent-signs.test deleted file mode 100644 index a077a44db7..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-strip-percent-signs.test +++ /dev/null @@ -1,10 +0,0 @@ -<<< -This test ensures that the plain TeX `stripPercentSigns` option is disabled by -default. - -The following emphasized text *should contain the percent sign at the -% beginning of the line*. ->>> -codeSpan: stripPercentSigns -interblockSeparator -emphasis: should contain the percent sign at the (percentSign) beginning of the line diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-table-captions.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-table-captions.test deleted file mode 100644 index 7bcab8e5b3..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-table-captions.test +++ /dev/null @@ -1,79 +0,0 @@ -\def\markdownOptionPipeTables{true} -<<< -This test ensures that the Lua `tableCaptions` option is disabled by -default. - -| Right | *Left* | Default | Center | -|------:|:-------|-------------|:------:| -| 12 | 12 | 12 | 12 | -| 123 | 123 | **123** | 123 | -| 1 | 1 | 1 | 1 | - - : Demonstration of *pipe table* syntax with the caption spreading over - multiple lines. - -| Right | *Left* | Default | Center | -|------:|:-------|-------------|:------:| -| 12 | 12 | 12 | 12 | -| 123 | 123 | **123** | 123 | -| 1 | 1 | 1 | 1 | - - Table: Demonstration of *pipe table* syntax with the caption spreading over - multiple lines. - -A caption may not span multiple paragraphs. ->>> -codeSpan: tableCaptions -interblockSeparator -BEGIN table (4 rows, 4 columns) -- caption: -- alignment of column 1: r -- alignment of column 2: l -- alignment of column 3: d -- alignment of column 4: c -- row 1, column 1: Right -- row 1, column 2: (emphasis: Left) -- row 1, column 3: Default -- row 1, column 4: Center -- row 2, column 1: 12 -- row 2, column 2: 12 -- row 2, column 3: 12 -- row 2, column 4: 12 -- row 3, column 1: 123 -- row 3, column 2: 123 -- row 3, column 3: (strongEmphasis: 123) -- row 3, column 4: 123 -- row 4, column 1: 1 -- row 4, column 2: 1 -- row 4, column 3: 1 -- row 4, column 4: 1 -END table -interblockSeparator -emphasis: pipe table -interblockSeparator -BEGIN table (4 rows, 4 columns) -- caption: -- alignment of column 1: r -- alignment of column 2: l -- alignment of column 3: d -- alignment of column 4: c -- row 1, column 1: Right -- row 1, column 2: (emphasis: Left) -- row 1, column 3: Default -- row 1, column 4: Center -- row 2, column 1: 12 -- row 2, column 2: 12 -- row 2, column 3: 12 -- row 2, column 4: 12 -- row 3, column 1: 123 -- row 3, column 2: 123 -- row 3, column 3: (strongEmphasis: 123) -- row 3, column 4: 123 -- row 4, column 1: 1 -- row 4, column 2: 1 -- row 4, column 3: 1 -- row 4, column 4: 1 -END table -interblockSeparator -emphasis: pipe table -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-tight-lists.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-tight-lists.test deleted file mode 100644 index 446eb681fc..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-tight-lists.test +++ /dev/null @@ -1,19 +0,0 @@ -\def\markdownOptionTightLists{false} -<<< -This test ensures that the Lua `tightLists` option correctly propagates -through the plain TeX interface. The following list should be regular. - -3. three -4. four -5. five ->>> -codeSpan: tightLists -interblockSeparator -olBegin -olItemWithNumber: 3 -olItemEnd -olItemWithNumber: 4 -olItemEnd -olItemWithNumber: 5 -olItemEnd -olEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-underscores.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-underscores.test deleted file mode 100644 index 6e24e3c6d0..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-underscores.test +++ /dev/null @@ -1,15 +0,0 @@ -\def\markdownOptionUnderscores{false} -\def\markdownOptionHybrid{true} -<<< -This test ensures that the Lua `underscores` option correctly propagates -through the plain TeX interface. - -This is a math expression: $\sqrt{\sum_{i=0}^n (a_i + b_i)^2}$. -\begingroup\catcode`\_=12 -This __is no__ strongly emphasized span of text. -This **is** a strongly emphasized span of text. -\endgroup ->>> -codeSpan: underscores -interblockSeparator -strongEmphasis: is diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-backwards.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-backwards.test deleted file mode 100644 index 127658d479..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-backwards.test +++ /dev/null @@ -1,37 +0,0 @@ -\def\markdownOptionShiftHeadings{-2} -<<< -This test ensures that the Lua `shiftHeadings` option correctly propagates -through the plain TeX interface. - -# A level one heading - -A level one heading -=================== - -## A level two heading - -A level two heading -------------------- - -### A level three heading -#### A level four heading -##### A level five heading -###### A level six heading ->>> -codeSpan: shiftHeadings -interblockSeparator -headingOne: A level one heading -interblockSeparator -headingOne: A level one heading -interblockSeparator -headingOne: A level two heading -interblockSeparator -headingOne: A level two heading -interblockSeparator -headingOne: A level three heading -interblockSeparator -headingTwo: A level four heading -interblockSeparator -headingThree: A level five heading -interblockSeparator -headingFour: A level six heading diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-forward.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-forward.test deleted file mode 100644 index f38f9d44e9..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/shift-headings-forward.test +++ /dev/null @@ -1,37 +0,0 @@ -\def\markdownOptionShiftHeadings{2} -<<< -This test ensures that the Lua `shiftHeadings` option correctly propagates -through the plain TeX interface. - -# A level one heading - -A level one heading -=================== - -## A level two heading - -A level two heading -------------------- - -### A level three heading -#### A level four heading -##### A level five heading -###### A level six heading ->>> -codeSpan: shiftHeadings -interblockSeparator -headingThree: A level one heading -interblockSeparator -headingThree: A level one heading -interblockSeparator -headingFour: A level two heading -interblockSeparator -headingFour: A level two heading -interblockSeparator -headingFive: A level three heading -interblockSeparator -headingSix: A level four heading -interblockSeparator -headingSix: A level five heading -interblockSeparator -headingSix: A level six heading diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-conclusion.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-conclusion.test deleted file mode 100644 index affb0a44c3..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-conclusion.test +++ /dev/null @@ -1,155 +0,0 @@ -\def\markdownOptionHashEnumerators{true} -\def\markdownOptionDefinitionLists{true} -\def\markdownOptionFootnotes{true} -\def\markdownOptionInlineFootnotes{true} -\def\markdownOptionSmartEllipses{true} -\def\markdownOptionFencedCode{true} -\def\markdownOptionContentBlocks{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionSlice{$second-h2 $} -<<< -This test ensures that the Lua `slice` option correctly propagates through the -plain TeX interface. - -This is an H1 -============= - -This is an H2 {#first-h2} -------------- - -### This is an H3 -#### This is an H4 -##### This is an H5 -###### This is an H6 - -This is a text paragraph containing an ellipsis ... and followed by a horizontal rule. - -*** - -This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. - -  - - /scientists.csv (The great minds of the 19th century rendered via a content block) - -This is a fenced code block: - -``` latex -\documentclass{article} -\begin{document} - Hello world! -\end{document} -``` - -This is an H2 {#second-h2} -------------- - -This is a bullet list: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -This is a compact bullet list: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -This is an ordered list: - - 5. The first item of an ordered list - - that spans several paragraphs, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is an ordered list using hash enumerators: - - #. The first item of an ordered list - - that spans several paragraphs, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a compact ordered list: - - 5. The first item of an ordered list, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is a compact ordered list using hash enumerators: - - #. The first item of an ordered list, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a definition list: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -: Definition 3 - -This is a compact definition list: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 -: Definition 3 - -This is an H2 -------------- - -This is a block quote: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Here is a footnote reference[^1] and another.[^longnote] -Here is an inline note.^[Inlines notes are easier to -write, since you don't have to pick an identifier and -move down to type the note.] - -[^1]: Here is the footnote. - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. ->>> -headingTwo: This is an H2 -interblockSeparator -interblockSeparator -blockQuoteBegin -interblockSeparator -blockQuoteBegin -blockQuoteEnd -interblockSeparator -blockQuoteEnd -interblockSeparator -footnote: Here is the footnote. -footnote: Here's one with multiple blocks.(interblockSeparator)Subsequent paragraphs are indented to show that they belong to the previous footnote.(interblockSeparator)(inputVerbatim: ./_markdown_test/384313ed77c3960a536af8343b57216d.verbatim)(interblockSeparator)The whole paragraph can be indented, or just the first line. In this way, multi-paragraph footnotes work like multi-paragraph list items. -footnote: Inlines notes are easier to write, since you don't have to pick an identifier and move down to type the note. diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-existing-section.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-existing-section.test deleted file mode 100644 index d291815912..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-existing-section.test +++ /dev/null @@ -1,182 +0,0 @@ -\def\markdownOptionHashEnumerators{true} -\def\markdownOptionDefinitionLists{true} -\def\markdownOptionFootnotes{true} -\def\markdownOptionInlineFootnotes{true} -\def\markdownOptionSmartEllipses{true} -\def\markdownOptionFencedCode{true} -\def\markdownOptionContentBlocks{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionSlice{first-h2} -<<< -This test ensures that the Lua `slice` option correctly propagates through the -plain TeX interface. - -This is an H1 -============= - -This is an H2 {#first-h2} -------------- - -### This is an H3 -#### This is an H4 -##### This is an H5 -###### This is an H6 - -This is a text paragraph containing an ellipsis ... and followed by a horizontal rule. - -*** - -This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. - -  - - /scientists.csv (The great minds of the 19th century rendered via a content block) - -This is a fenced code block: - -``` latex -\documentclass{article} -\begin{document} - Hello world! -\end{document} -``` - -This is an H2 {#second-h2} -------------- - -This is a bullet list: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -This is a compact bullet list: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -This is an ordered list: - - 5. The first item of an ordered list - - that spans several paragraphs, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is an ordered list using hash enumerators: - - #. The first item of an ordered list - - that spans several paragraphs, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a compact ordered list: - - 5. The first item of an ordered list, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is a compact ordered list using hash enumerators: - - #. The first item of an ordered list, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a definition list: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -: Definition 3 - -This is a compact definition list: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 -: Definition 3 - -This is an H2 -------------- - -This is a block quote: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Here is a footnote reference[^1] and another.[^longnote] -Here is an inline note.^[Inlines notes are easier to -write, since you don't have to pick an identifier and -move down to type the note.] - -[^1]: Here is the footnote. - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. ->>> -headingTwo: This is an H2 -interblockSeparator -headingThree: This is an H3 -interblockSeparator -headingFour: This is an H4 -interblockSeparator -headingFive: This is an H5 -interblockSeparator -headingSix: This is an H6 -interblockSeparator -ellipsis -interblockSeparator -horizontalRule -interblockSeparator -codeSpan: code -BEGIN link -- label: link -- URI: http://google.cz -- title: Google -END link -emphasis: This is an (emphasis: emphasized) span of text -strongEmphasis: This is a (strongEmphasis: strongly emphasized) span of text -interblockSeparator -BEGIN image -- label: example image -- URI: example-image.pdf -- title: An example image from Martin Scharrer's mwe package -END image -interblockSeparator -BEGIN contentBlock -- suffix: csv -- URI: scientists.csv -- title: The great minds of the 19th century rendered via a content block -END contentBlock -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/5ccbfd8d1e383aae968fc8c9b1412c8e.verbatim -- infostring: latex -END fencedCode -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-nonexisting-section.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-nonexisting-section.test deleted file mode 100644 index d2a7cd5b8e..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-nonexisting-section.test +++ /dev/null @@ -1,141 +0,0 @@ -\def\markdownOptionHashEnumerators{true} -\def\markdownOptionDefinitionLists{true} -\def\markdownOptionFootnotes{true} -\def\markdownOptionInlineFootnotes{true} -\def\markdownOptionSmartEllipses{true} -\def\markdownOptionFencedCode{true} -\def\markdownOptionContentBlocks{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionSlice{third-h2} -<<< -This test ensures that the Lua `slice` option correctly propagates through the -plain TeX interface. - -This is an H1 -============= - -This is an H2 {#first-h2} -------------- - -### This is an H3 -#### This is an H4 -##### This is an H5 -###### This is an H6 - -This is a text paragraph containing an ellipsis ... and followed by a horizontal rule. - -*** - -This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. - -  - - /scientists.csv (The great minds of the 19th century rendered via a content block) - -This is a fenced code block: - -``` latex -\documentclass{article} -\begin{document} - Hello world! -\end{document} -``` - -This is an H2 {#second-h2} -------------- - -This is a bullet list: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -This is a compact bullet list: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -This is an ordered list: - - 5. The first item of an ordered list - - that spans several paragraphs, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is an ordered list using hash enumerators: - - #. The first item of an ordered list - - that spans several paragraphs, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a compact ordered list: - - 5. The first item of an ordered list, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is a compact ordered list using hash enumerators: - - #. The first item of an ordered list, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a definition list: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -: Definition 3 - -This is a compact definition list: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 -: Definition 3 - -This is an H2 -------------- - -This is a block quote: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Here is a footnote reference[^1] and another.[^longnote] -Here is an inline note.^[Inlines notes are easier to -write, since you don't have to pick an identifier and -move down to type the note.] - -[^1]: Here is the footnote. - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. ->>> diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-preface.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-preface.test deleted file mode 100644 index 1891c5ecad..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-preface.test +++ /dev/null @@ -1,148 +0,0 @@ -\def\markdownOptionHashEnumerators{true} -\def\markdownOptionDefinitionLists{true} -\def\markdownOptionFootnotes{true} -\def\markdownOptionInlineFootnotes{true} -\def\markdownOptionSmartEllipses{true} -\def\markdownOptionFencedCode{true} -\def\markdownOptionContentBlocks{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionSlice{^ ^first-h2} -<<< -This test ensures that the Lua `slice` option correctly propagates through the -plain TeX interface. - -This is an H1 -============= - -This is an H2 {#first-h2} -------------- - -### This is an H3 -#### This is an H4 -##### This is an H5 -###### This is an H6 - -This is a text paragraph containing an ellipsis ... and followed by a horizontal rule. - -*** - -This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. - -  - - /scientists.csv (The great minds of the 19th century rendered via a content block) - -This is a fenced code block: - -``` latex -\documentclass{article} -\begin{document} - Hello world! -\end{document} -``` - -This is an H2 {#second-h2} -------------- - -This is a bullet list: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -This is a compact bullet list: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -This is an ordered list: - - 5. The first item of an ordered list - - that spans several paragraphs, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is an ordered list using hash enumerators: - - #. The first item of an ordered list - - that spans several paragraphs, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a compact ordered list: - - 5. The first item of an ordered list, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is a compact ordered list using hash enumerators: - - #. The first item of an ordered list, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a definition list: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -: Definition 3 - -This is a compact definition list: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 -: Definition 3 - -This is an H2 -------------- - -This is a block quote: - -> This is the first level of quoting. -> -> -> -> > This is nested blockquote. -> -> Back to the first level. - -Here is a footnote reference[^1] and another.[^longnote] -Here is an inline note.^[Inlines notes are easier to -write, since you don't have to pick an identifier and -move down to type the note.] - -[^1]: Here is the footnote. - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. ->>> -codeSpan: slice -interblockSeparator -headingOne: This is an H1 -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-two-sections.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-two-sections.test deleted file mode 100644 index d202fd3e42..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-two-sections.test +++ /dev/null @@ -1,278 +0,0 @@ -\def\markdownOptionHashEnumerators{true} -\def\markdownOptionDefinitionLists{true} -\def\markdownOptionFootnotes{true} -\def\markdownOptionInlineFootnotes{true} -\def\markdownOptionSmartEllipses{true} -\def\markdownOptionFencedCode{true} -\def\markdownOptionContentBlocks{true} -\def\markdownOptionHeaderAttributes{true} -\def\markdownOptionSlice{first-h2 second-h2} -<<< -This test ensures that the Lua `slice` option correctly propagates through the -plain TeX interface. - -This is an H1 -============= - -This is an H2 {#first-h2} -------------- - -### This is an H3 -#### This is an H4 -##### This is an H5 -###### This is an H6 - -This is a text paragraph containing an ellipsis ... and followed by a horizontal rule. - -*** - -This is inline `code`. This is a [link](http://google.cz "Google"). _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__. - -  - - /scientists.csv (The great minds of the 19th century rendered via a content block) - -This is a fenced code block: - -``` latex -\documentclass{article} -\begin{document} - Hello world! -\end{document} -``` - -This is an H2 {#second-h2} -------------- - -This is a bullet list: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -This is a compact bullet list: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -This is an ordered list: - - 5. The first item of an ordered list - - that spans several paragraphs, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is an ordered list using hash enumerators: - - #. The first item of an ordered list - - that spans several paragraphs, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a compact ordered list: - - 5. The first item of an ordered list, - 6. the second item of an ordered list, - 7. the third item of an ordered list. - -This is a compact ordered list using hash enumerators: - - #. The first item of an ordered list, - #. the second item of an ordered list, - #. the third item of an ordered list. - -This is a definition list: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -: Definition 3 - -This is a compact definition list: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 -: Definition 3 - -This is an H2 -------------- - -This is a block quote: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Here is a footnote reference[^1] and another.[^longnote] -Here is an inline note.^[Inlines notes are easier to -write, since you don't have to pick an identifier and -move down to type the note.] - -[^1]: Here is the footnote. - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. ->>> -headingTwo: This is an H2 -interblockSeparator -headingThree: This is an H3 -interblockSeparator -headingFour: This is an H4 -interblockSeparator -headingFive: This is an H5 -interblockSeparator -headingSix: This is an H6 -interblockSeparator -ellipsis -interblockSeparator -horizontalRule -interblockSeparator -codeSpan: code -BEGIN link -- label: link -- URI: http://google.cz -- title: Google -END link -emphasis: This is an (emphasis: emphasized) span of text -strongEmphasis: This is a (strongEmphasis: strongly emphasized) span of text -interblockSeparator -BEGIN image -- label: example image -- URI: example-image.pdf -- title: An example image from Martin Scharrer's mwe package -END image -interblockSeparator -BEGIN contentBlock -- suffix: csv -- URI: scientists.csv -- title: The great minds of the 19th century rendered via a content block -END contentBlock -interblockSeparator -interblockSeparator -BEGIN fencedCode -- src: ./_markdown_test/5ccbfd8d1e383aae968fc8c9b1412c8e.verbatim -- infostring: latex -END fencedCode -interblockSeparator -headingTwo: This is an H2 -interblockSeparator -interblockSeparator -ulBegin -ulItem -interblockSeparator -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEnd -interblockSeparator -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 5 -interblockSeparator -olItemEnd -olItemWithNumber: 6 -olItemEnd -olItemWithNumber: 7 -olItemEnd -olEnd -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 1 -interblockSeparator -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEnd -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 5 -olItemEnd -olItemWithNumber: 6 -olItemEnd -olItemWithNumber: 7 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olItemWithNumber: 3 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -dlBegin -dlItem: Term 1 -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: (emphasis: Term 2) -dlDefinitionBegin -interblockSeparator -inputVerbatim: ./_markdown_test/341d9e6b078ab6ffb77652958c88c4ef.verbatim -interblockSeparator -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEnd -interblockSeparator -interblockSeparator -dlBeginTight -dlItem: Term 1 -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: (emphasis: Term 2) -dlDefinitionBegin -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEndTight -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/start-number.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/start-number.test deleted file mode 100644 index 8f0245016f..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/start-number.test +++ /dev/null @@ -1,39 +0,0 @@ -<<< -This test ensures that the Lua `startNumber` option is enabled by default. The -following lists should start with number three. - -Tight: - -3. three -4. four -5. five - -Loose: - -3. three - -4. four - -5. five ->>> -codeSpan: startNumber -interblockSeparator -interblockSeparator -olBeginTight -olItemWithNumber: 3 -olItemEnd -olItemWithNumber: 4 -olItemEnd -olItemWithNumber: 5 -olItemEnd -olEndTight -interblockSeparator -interblockSeparator -olBegin -olItemWithNumber: 3 -olItemEnd -olItemWithNumber: 4 -olItemEnd -olItemWithNumber: 5 -olItemEnd -olEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test deleted file mode 100644 index 11db7c69e6..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/table-captions.test +++ /dev/null @@ -1,76 +0,0 @@ -\def\markdownOptionPipeTables{true} -\def\markdownOptionTableCaptions{true} -<<< -This test ensures that the Lua `tableCaptions` option correctly propagates -through the plain TeX interface. - -| Right | *Left* | Default | Center | -|------:|:-------|-------------|:------:| -| 12 | 12 | 12 | 12 | -| 123 | 123 | **123** | 123 | -| 1 | 1 | 1 | 1 | - - : Demonstration of *pipe table* syntax with the caption spreading over - multiple lines. - -| Right | *Left* | Default | Center | -|------:|:-------|-------------|:------:| -| 12 | 12 | 12 | 12 | -| 123 | 123 | **123** | 123 | -| 1 | 1 | 1 | 1 | - - Table: Demonstration of *pipe table* syntax with the caption spreading over - multiple lines. - -A caption may not span multiple paragraphs. ->>> -codeSpan: tableCaptions -interblockSeparator -BEGIN table (4 rows, 4 columns) -- caption: Demonstration of (emphasis: pipe table) syntax with the caption spreading over multiple lines. -- alignment of column 1: r -- alignment of column 2: l -- alignment of column 3: d -- alignment of column 4: c -- row 1, column 1: Right -- row 1, column 2: (emphasis: Left) -- row 1, column 3: Default -- row 1, column 4: Center -- row 2, column 1: 12 -- row 2, column 2: 12 -- row 2, column 3: 12 -- row 2, column 4: 12 -- row 3, column 1: 123 -- row 3, column 2: 123 -- row 3, column 3: (strongEmphasis: 123) -- row 3, column 4: 123 -- row 4, column 1: 1 -- row 4, column 2: 1 -- row 4, column 3: 1 -- row 4, column 4: 1 -END table -interblockSeparator -BEGIN table (4 rows, 4 columns) -- caption: Demonstration of (emphasis: pipe table) syntax with the caption spreading over multiple lines. -- alignment of column 1: r -- alignment of column 2: l -- alignment of column 3: d -- alignment of column 4: c -- row 1, column 1: Right -- row 1, column 2: (emphasis: Left) -- row 1, column 3: Default -- row 1, column 4: Center -- row 2, column 1: 12 -- row 2, column 2: 12 -- row 2, column 3: 12 -- row 2, column 4: 12 -- row 3, column 1: 123 -- row 3, column 2: 123 -- row 3, column 3: (strongEmphasis: 123) -- row 3, column 4: 123 -- row 4, column 1: 1 -- row 4, column 2: 1 -- row 4, column 3: 1 -- row 4, column 4: 1 -END table -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/tight-lists.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/tight-lists.test deleted file mode 100644 index 47ecbcb726..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark-markdown/tight-lists.test +++ /dev/null @@ -1,18 +0,0 @@ -<<< -This test ensures that the Lua `tightLists` option is enabled by default. The -following list should be tight. - -3. three -4. four -5. five ->>> -codeSpan: tightLists -interblockSeparator -olBeginTight -olItemWithNumber: 3 -olItemEnd -olItemWithNumber: 4 -olItemEnd -olItemWithNumber: 5 -olItemEnd -olEndTight diff --git a/macros/generic/markdown/tests/testfiles/lunamark/README.md b/macros/generic/markdown/tests/testfiles/lunamark/README.md deleted file mode 100644 index 59a2e70f47..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/README.md +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains test files that were inherited from the -`tests/lunamark/` directory in the lunamark project. diff --git a/macros/generic/markdown/tests/testfiles/lunamark/backticks-in-links.test b/macros/generic/markdown/tests/testfiles/lunamark/backticks-in-links.test deleted file mode 100644 index 4f1f3fb24b..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/backticks-in-links.test +++ /dev/null @@ -1,8 +0,0 @@ -<<< -[hi `there] bud`](/url) ->>> -BEGIN link -- label: hi (codeSpan: there] bud) -- URI: /url -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/lunamark/case-insensitive-references.test b/macros/generic/markdown/tests/testfiles/lunamark/case-insensitive-references.test deleted file mode 100644 index 4b2e6ad26b..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/case-insensitive-references.test +++ /dev/null @@ -1,10 +0,0 @@ -<<< -[hI] - -[Hi]: /foo ->>> -BEGIN link -- label: hI -- URI: /foo -- title: -END link diff --git a/macros/generic/markdown/tests/testfiles/lunamark/consecutive-lists.test b/macros/generic/markdown/tests/testfiles/lunamark/consecutive-lists.test deleted file mode 100644 index 56aaf8a8b3..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/consecutive-lists.test +++ /dev/null @@ -1,19 +0,0 @@ -<<< -- one -- two -1. one -2. two ->>> -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olEndTight diff --git a/macros/generic/markdown/tests/testfiles/lunamark/definition-lists.test b/macros/generic/markdown/tests/testfiles/lunamark/definition-lists.test deleted file mode 100644 index 35e5ef684b..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/definition-lists.test +++ /dev/null @@ -1,200 +0,0 @@ -\def\markdownOptionDefinitionLists{true} -<<< -Tight using spaces: - -apple -: red fruit -orange -: orange fruit -banana -: yellow fruit - -Tight using tabs: - -apple -: red fruit -orange -: orange fruit -banana -: yellow fruit - -Loose: - -apple -: red fruit - -orange -: orange fruit - -banana -: yellow fruit - -Multiple blocks with italics: - -*apple* -: red fruit - - contains seeds, - crisp, pleasant to taste - -*orange* -: orange fruit - - { orange code block } - - > orange block quote - -Multiple definitions, tight: - -apple -: red fruit -: computer -orange -: orange fruit -: bank - -Multiple definitions, loose: - -apple -: red fruit - -: computer - -orange -: orange fruit - -: bank - -Blank line after term, indented marker, alternate markers: - -apple - - ~ red fruit - - ~ computer - -orange - - ~ orange fruit - - 1. sublist - 2. sublist ->>> -interblockSeparator -dlBeginTight -dlItem: apple -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: orange -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: banana -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEndTight -interblockSeparator -interblockSeparator -dlBeginTight -dlItem: apple -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: orange -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: banana -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEndTight -interblockSeparator -interblockSeparator -dlBegin -dlItem: apple -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: orange -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: banana -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEnd -interblockSeparator -interblockSeparator -dlBegin -dlItem: (emphasis: apple) -dlDefinitionBegin -interblockSeparator -dlDefinitionEnd -dlItemEnd -dlItem: (emphasis: orange) -dlDefinitionBegin -interblockSeparator -inputVerbatim: ./_markdown_test/f9f08689e38f4705165b9018b14b4a09.verbatim -interblockSeparator -blockQuoteBegin -blockQuoteEnd -dlDefinitionEnd -dlItemEnd -dlEnd -interblockSeparator -interblockSeparator -dlBeginTight -dlItem: apple -dlDefinitionBegin -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: orange -dlDefinitionBegin -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEndTight -interblockSeparator -interblockSeparator -dlBegin -dlItem: apple -dlDefinitionBegin -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: orange -dlDefinitionBegin -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlEnd -interblockSeparator -interblockSeparator -dlBegin -dlItem: apple -dlDefinitionBegin -dlDefinitionEnd -dlDefinitionBegin -dlDefinitionEnd -dlItemEnd -dlItem: orange -dlDefinitionBegin -interblockSeparator -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olEndTight -dlDefinitionEnd -dlItemEnd -dlEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark/hash-enumerators.test b/macros/generic/markdown/tests/testfiles/lunamark/hash-enumerators.test deleted file mode 100644 index 94f63fd2ad..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/hash-enumerators.test +++ /dev/null @@ -1,11 +0,0 @@ -\def\markdownOptionHashEnumerators{true} -<<< -#. one -#. two ->>> -olBeginTight -olItemWithNumber: 1 -olItemEnd -olItemWithNumber: 2 -olItemEnd -olEndTight diff --git a/macros/generic/markdown/tests/testfiles/lunamark/indented-code-in-list-item.test b/macros/generic/markdown/tests/testfiles/lunamark/indented-code-in-list-item.test deleted file mode 100644 index 8e35081172..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/indented-code-in-list-item.test +++ /dev/null @@ -1,16 +0,0 @@ -<<< -1. Just a small test - - This is some code - - and some indented code - - and this is the end ->>> -olBegin -olItemWithNumber: 1 -interblockSeparator -inputVerbatim: ./_markdown_test/36d7a0503b844c792d46549a49b6e7b8.verbatim -interblockSeparator -olItemEnd -olEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark/list-spacing.test b/macros/generic/markdown/tests/testfiles/lunamark/list-spacing.test deleted file mode 100644 index 4e7f84248d..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/list-spacing.test +++ /dev/null @@ -1,42 +0,0 @@ -<<< - * item 1 - * item 1a - * item 2 -* item 2a - * item 2b - * item 2c - * item 3 - ----- - - 8. item 1 - 9. item 2 -10. item 2a ->>> -ulBeginTight -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulItem -ulItemEnd -ulEndTight -interblockSeparator -horizontalRule -interblockSeparator -olBeginTight -olItemWithNumber: 8 -olItemEnd -olItemWithNumber: 9 -olItemEnd -olItemWithNumber: 10 -olItemEnd -olEndTight diff --git a/macros/generic/markdown/tests/testfiles/lunamark/lists-and-hrules.test b/macros/generic/markdown/tests/testfiles/lunamark/lists-and-hrules.test deleted file mode 100644 index cffd38dc87..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/lists-and-hrules.test +++ /dev/null @@ -1,18 +0,0 @@ -<<< -+ item 1 - - + item 2 - - * * * * * ->>> -ulBegin -ulItem -interblockSeparator -ulBeginTight -ulItem -ulItemEnd -ulEndTight -ulItemEnd -ulEnd -interblockSeparator -horizontalRule diff --git a/macros/generic/markdown/tests/testfiles/lunamark/notes.test b/macros/generic/markdown/tests/testfiles/lunamark/notes.test deleted file mode 100644 index 312090de8a..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/notes.test +++ /dev/null @@ -1,27 +0,0 @@ -\def\markdownOptionFootnotes{true} -<<< -Here is a footnote reference,[^1] and another.[^longnote] -This should *not* be a footnote reference, because it has not been -defined.[^my note] - -[^longnote]: Here's the long note. This one contains multiple blocks. - - Subsequent blocks are indented to show that they belong to the -footnote (as with list items). - - { <code> } - - If you want, you can indent every line, but you can also be - lazy and just indent the first line of each block. - -This paragraph should not be part of the note, as it is not indented. - - [^1]: Here is the footnote. It can go anywhere after the footnote - reference. It need not be placed at the end of the document. - ->>> -footnote: Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document. -footnote: Here's the long note. This one contains multiple blocks.(interblockSeparator)Subsequent blocks are indented to show that they belong to the footnote (as with list items).(interblockSeparator)(inputVerbatim: ./_markdown_test/7f88af46ac2c38c6ee0c6837fcb8cbc6.verbatim)(interblockSeparator)If you want, you can indent every line, but you can also be lazy and just indent the first line of each block. -emphasis: not -circumflex -interblockSeparator diff --git a/macros/generic/markdown/tests/testfiles/lunamark/reference-defined-in-blockquote.test b/macros/generic/markdown/tests/testfiles/lunamark/reference-defined-in-blockquote.test deleted file mode 100644 index 8bafd8f0d4..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/reference-defined-in-blockquote.test +++ /dev/null @@ -1,12 +0,0 @@ -<<< -> [foo] -> -> [foo]: /bar ->>> -blockQuoteBegin -BEGIN link -- label: foo -- URI: /bar -- title: -END link -blockQuoteEnd diff --git a/macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-blockquote.test b/macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-blockquote.test deleted file mode 100644 index 9c476ac354..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-blockquote.test +++ /dev/null @@ -1,5 +0,0 @@ -\def\markdownOptionBlankBeforeBlockquote{true} -<<< -Hi -> no quote ->>> diff --git a/macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-header.test b/macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-header.test deleted file mode 100644 index 4ed22912e7..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/require-blank-before-header.test +++ /dev/null @@ -1,6 +0,0 @@ -\def\markdownOptionBlankBeforeHeading{true} -<<< -Hi -# No header ->>> -hash diff --git a/macros/generic/markdown/tests/testfiles/lunamark/smart.test b/macros/generic/markdown/tests/testfiles/lunamark/smart.test deleted file mode 100644 index ce48cf374c..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/smart.test +++ /dev/null @@ -1,7 +0,0 @@ -\def\markdownOptionSmartEllipses{true} -<<< -Ellipses...and...and.... ->>> -ellipsis -ellipsis -ellipsis diff --git a/macros/generic/markdown/tests/testfiles/lunamark/unicode.test b/macros/generic/markdown/tests/testfiles/lunamark/unicode.test deleted file mode 100644 index 1392aa0915..0000000000 --- a/macros/generic/markdown/tests/testfiles/lunamark/unicode.test +++ /dev/null @@ -1,10 +0,0 @@ -<<< -[Beiß nicht in die Hand, die dich füttert.] - -[BEIß NICHT IN DIE HAND, DIE DICH FÜTTERT.]: http://en.wikiquote.org/wiki/German_proverbs ->>> -BEGIN link -- label: Beiß nicht in die Hand, die dich füttert. -- URI: http://en.wikiquote.org/wiki/German(underscore)proverbs -- title: -END link diff --git a/macros/latex/contrib/fithesis/Makefile b/macros/latex/contrib/fithesis/Makefile deleted file mode 100644 index 77b9cc39a8..0000000000 --- a/macros/latex/contrib/fithesis/Makefile +++ /dev/null @@ -1,233 +0,0 @@ -SUBMAKES_REQUIRED=logo/mu locale style style/mu -SUBMAKES_EXTRA=guide/mu example/mu -SUBMAKES_TEST=test test/mu/blind test/mu/compare \ - test/mu/compare-example -SUBMAKES=$(SUBMAKES_REQUIRED) $(SUBMAKES_EXTRA) $(SUBMAKES_TEST) -.PHONY: all base complete docs clean dist dist-implode implode \ - install install-base install-docs uninstall tests $(SUBMAKES) - -CLASSFILES=fithesis.cls fithesis2.cls fithesis3.cls -STYLEFILES=style/*.sty style/*/*.sty style/*/*.clo -EPSLOGOS=logo/*/*.eps -PDFLOGOS=logo/*/*.pdf -LOGOS=$(EPSLOGOS) $(PDFLOGOS) -LOCALES=locale/*.def locale/*/*.def locale/*/*/*.def -DTXFILES=*.dtx locale/czech.dtx locale/english.dtx \ - locale/slovak.dtx style/*.dtx style/*/*.dtx -INSFILES=*.ins locale/czech.ins locale/english.ins \ - locale/slovak.ins style/*.ins style/*/*.ins -TESTS=test/*.tex test/mu/compare/*.pdf test/mu/compare/*.tex \ - test/mu/compare-example/*.pdf test/mu/comparepdf.sh \ - test/mu/update-tests.sh -MAKES=guide/mu/Makefile guide/mu/resources/Makefile \ - locale/Makefile logo/mu/Makefile Makefile style/Makefile \ - style/mu/Makefile test/Makefile test/mu/blind/Makefile \ - test/mu/compare/Makefile test/mu/compare-example/Makefile -USEREXAMPLE_SOURCES=example/mu/Makefile example/mu/example.dtx \ - example/mu/*.ins example/mu/latexmkrc -USEREXAMPLES=example/mu/econ-lualatex.pdf \ - example/mu/econ-pdflatex.pdf example/mu/fi-lualatex.pdf \ - example/mu/fi-pdflatex.pdf example/mu/fsps-lualatex.pdf \ - example/mu/fsps-pdflatex.pdf example/mu/fss-lualatex.pdf \ - example/mu/fss-pdflatex.pdf example/mu/law-lualatex.pdf \ - example/mu/law-pdflatex.pdf example/mu/med-lualatex.pdf \ - example/mu/med-pdflatex.pdf example/mu/ped-lualatex.pdf \ - example/mu/ped-pdflatex.pdf example/mu/phil-lualatex.pdf \ - example/mu/phil-pdflatex.pdf example/mu/sci-lualatex.pdf \ - example/mu/sci-pdflatex.pdf -DEVEXAMPLES=guide/EXAMPLE/DESCRIPTION guide/mu/DESCRIPTION \ - guide/mu/resources/DESCRIPTION guide/DESCRIPTION \ - locale/DESCRIPTION locale/EXAMPLE.dtx locale/EXAMPLE.ins \ - logo/EXAMPLE/DESCRIPTION logo/mu/DESCRIPTION \ - logo/DESCRIPTION style/EXAMPLE/DESCRIPTION style/mu/DESCRIPTION \ - style/DESCRIPTION test/DESCRIPTION test/EXAMPLE/DESCRIPTION \ - test/mu/DESCRIPTION test/mu/blind/DESCRIPTION \ - test/mu/compare/DESCRIPTION test/mu/compare-example/DESCRIPTION \ - example/EXAMPLE/DESCRIPTION example/mu/DESCRIPTION \ - example/DESCRIPTION -EXAMPLES=$(USEREXAMPLES) $(DEVEXAMPLES) -MISCELLANEOUS=guide/mu/resources/empty.tex guide/mu/guide.bib \ - guide/mu/guide.dtx guide/mu/*.ins guide/mu/resources/cog.pdf \ - guide/mu/resources/vader.pdf guide/mu/resources/yoda.pdf \ - example/mu/example.bib $(USEREXAMPLES:.pdf=.tex) README.md -RESOURCES=$(STYLEFILES) $(LOGOS) $(LOCALES) -SOURCES=$(DTXFILES) $(INSFILES) LICENSE.tex -AUXFILES=fithesis.aux fithesis.log fithesis.toc fithesis.ind \ - fithesis.idx fithesis.out fithesis.ilg fithesis.gls \ - fithesis.glo fithesis.hd fithesis.lot -MANUAL=fithesis.pdf -PDFSOURCES=fithesis.dtx -GUIDES=guide/mu/econ.pdf guide/mu/fi.pdf guide/mu/fsps.pdf \ - guide/mu/fss.pdf guide/mu/law.pdf guide/mu/med.pdf \ - guide/mu/ped.pdf guide/mu/phil.pdf guide/mu/sci.pdf -PDFS=$(MANUAL) $(GUIDES) $(USEREXAMPLES) -DOCS=$(MANUAL) $(GUIDES) -VERSION=VERSION.tex -MAKEABLES=$(PDFS) $(CLASSFILES) $(VERSION) -TDSARCHIVE=fithesis.tds.zip -CTANARCHIVE=fithesis.ctan.zip -DISTARCHIVE=fithesis.zip -ARCHIVES=$(TDSARCHIVE) $(CTANARCHIVE) $(DISTARCHIVE) -LATEXFILES=$(CLASSFILES) $(RESOURCES) - -TEXLIVEDIR=$(shell kpsewhich -var-value TEXMFLOCAL) - -# This is the default pseudo-target. -all: base - -# This pseudo-target expands all the docstrip files, converts the -# logos and creates the class files. -base: $(SUBMAKES_REQUIRED) - make $(CLASSFILES) - -# This pseudo-target creates the class files and typesets the -# technical documentation, the user guides, and the user examples. -complete: base - make $(PDFS) clean - -# This pseudo-target typesets the technical documentation and the -# user guides. -docs: - make $(DOCS) clean - -# This pseudo-target calls a submakefile. -$(SUBMAKES): - make -C $@ all - -# This pseudo-target performs the tests. -tests: base $(SUBMAKES_TEST) - -# This pseudo-target creates the distribution archive. -dist: dist-implode complete - make $(TDSARCHIVE) $(DISTARCHIVE) $(CTANARCHIVE) - -# This target creates the class files. -$(CLASSFILES): fithesis.ins fithesis.dtx - xetex $< - -# This target typesets the guides and user examples. -$(GUIDES) $(USEREXAMPLES): $(CLASSFILES) $(RESOURCES) - make -BC $(dir $@) - -# This target typesets the technical documentation. -$(MANUAL): $(DTXFILES) - pdflatex $< - pdflatex $< - makeindex -s gind.ist $(basename $@) - makeindex -s gglo.ist -o $(basename $@).gls $(basename $@).glo - pdflatex $< - pdflatex $< - -# This target generates a TeX directory structure file. -$(TDSARCHIVE): - DIR=`mktemp -d` && \ - make install to="$$DIR" nohash=true && \ - (cd "$$DIR" && zip -r -v -nw $@ *) && \ - mv "$$DIR"/$@ $@ && rm -rf "$$DIR" - -# This target generates a distribution file. -$(DISTARCHIVE): $(SOURCES) $(LATEXFILES) $(MAKES) $(TESTS) \ - $(USEREXAMPLE_SOURCES) $(DOCS) $(PDFSOURCES) $(MISCELLANEOUS) \ - $(EXAMPLES) $(VERSION) - DIR=`mktemp -d` && \ - cp -v $(TDSARCHIVE) "$$DIR" && \ - tar c $^ | tar xvC "$$DIR" && \ - (cd "$$DIR" && zip -r -v -nw $@ *) && \ - mv "$$DIR"/$@ . && rm -rf "$$DIR" - -# This target generates a CTAN distribution file. -$(CTANARCHIVE): $(SOURCES) $(MAKES) $(TESTS) $(EXAMPLES) \ - $(MISCELLANEOUS) $(EPSLOGOS) $(DOCS) $(VERSION) - DIR=`mktemp -d` && mkdir -p "$$DIR/fithesis" && \ - cp -v $(TDSARCHIVE) "$$DIR" && \ - tar c $^ | tar xvC "$$DIR/fithesis" && \ - printf '.PHONY: implode\nimplode:\n' > \ - "$$DIR/fithesis/example/mu/Makefile" && \ - (cd "$$DIR" && zip -r -v -nw $@ *) && \ - mv "$$DIR"/$@ . && rm -rf "$$DIR" - -# This pseudo-target installs the class, locale, style, and logo -# files - as well as the technical documentation and user guides - -# into the TeX directory structure, whose root directory is -# specified within the "to" argument. Specify "nohash=true", if you -# wish to forgo the reindexing of the package database. -install: install-base install-docs - -# This pseudo-target installs the class, locale, style, and logo -# files into the TeX directory structure, whose root directory is -# specified within the "to" argument. Specify "nohash=true", if you -# wish to forgo the reindexing of the package database. -install-base: - @if [ -z "$(to)" ]; then \ - printf "Usage: make install-base to=DIRECTORY\n"; \ - printf "Detected TeXLive directory: %s\n" $(TEXLIVEDIR); \ - exit 1; \ - fi - - @# Class, locale, style and logo files - mkdir -p "$(to)/tex/latex/fithesis" - tar c $(LATEXFILES) | tar xvC "$(to)/tex/latex/fithesis" - - @# Source files - mkdir -p "$(to)/source/latex/fithesis" - tar c $(SOURCES) | tar xvC "$(to)/source/latex/fithesis" - - @# Rebuild the hash - [ "$(nohash)" = "true" ] || texhash - -# This pseudo-target installs the the technical and user -# documentation into the TeX directory structure, whose root -# directory is specified within the "to" argument. Specify -# "nohash=true", if you wish to forgo the reindexing of the package -# database. -install-docs: - @if [ -z "$(to)" ]; then \ - printf "Usage: make install-docs to=DIRECTORY\n"; \ - printf "Detected TeXLive directory: %s\n" $(TEXLIVEDIR); \ - exit 1; \ - fi - - @# Documentation - mkdir -p "$(to)/doc/latex/fithesis" - tar c $(DOCS) | tar xvC "$(to)/doc/latex/fithesis" - - @# Rebuild the hash - [ "$(nohash)" = "true" ] || texhash - - -# This pseudo-target uninstalls the class, locale, style, and logo -# files - as well as the technical documentation and user guides - -# from the TeX directory structure, whose root directory is -# specified within the "from" argument. Specify "nohash=true", if -# you wish to forgo the reindexing of the package database. -uninstall: - @if [ -z "$(from)" ]; then \ - printf "Usage: make uninstall from=DIRECTORY\n"; \ - printf "Detected TeXLive directory: %s\n" $(TEXLIVEDIR); \ - exit 1; \ - fi - - @# Class, locale, style and logo files - rm -rf "$(from)/tex/latex/fithesis" - - @# Source files - rm -rf "$(from)/source/latex/fithesis" - - @# Documentation - rm -rf "$(from)/doc/latex/fithesis" - - @# Rebuild the hash - [ "$(nohash)" = "true" ] || texhash - -# This pseudo-target removes any existing auxiliary files. -clean: - rm -f $(AUXFILES) - -# This pseudo-target removes the distribution archives. -dist-implode: - rm -f $(ARCHIVES) - -# This pseudo-target removes any makeable files. -implode: clean dist-implode - rm -f $(MAKEABLES) - for dir in $(SUBMAKES); do make implode -C "$$dir"; done diff --git a/macros/latex/contrib/fithesis/VERSION.tex b/macros/latex/contrib/fithesis/VERSION.tex index dab9238697..d0cfdde1f4 100644 --- a/macros/latex/contrib/fithesis/VERSION.tex +++ b/macros/latex/contrib/fithesis/VERSION.tex @@ -1 +1 @@ -2018/03/25 v0.3.50 fithesis3 MU thesis class +2020/03/09 v0.3.51 fithesis3 MU thesis class diff --git a/macros/latex/contrib/fithesis/example/DESCRIPTION b/macros/latex/contrib/fithesis/example/DESCRIPTION deleted file mode 100644 index 54412ff39a..0000000000 --- a/macros/latex/contrib/fithesis/example/DESCRIPTION +++ /dev/null @@ -1,2 +0,0 @@ -This directory can contain subdirectories with example documents of -various universities. diff --git a/macros/latex/contrib/fithesis/example/EXAMPLE/DESCRIPTION b/macros/latex/contrib/fithesis/example/EXAMPLE/DESCRIPTION deleted file mode 100644 index b5a953aa87..0000000000 --- a/macros/latex/contrib/fithesis/example/EXAMPLE/DESCRIPTION +++ /dev/null @@ -1,2 +0,0 @@ -This is an empty directory. You can rename it to match the name of -your university and place the respective example documents in here. diff --git a/macros/latex/contrib/fithesis/example/mu/DESCRIPTION b/macros/latex/contrib/fithesis/example/mu/DESCRIPTION deleted file mode 100644 index e875f3124c..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/DESCRIPTION +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains example documents for the various faculties -of the Masaryk University (Brno, Czech Republic). diff --git a/macros/latex/contrib/fithesis/example/mu/Makefile b/macros/latex/contrib/fithesis/example/mu/Makefile deleted file mode 100644 index c9bda433fb..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -.PHONY: implode -implode: diff --git a/macros/latex/contrib/fithesis/example/mu/econ-lualatex.pdf b/macros/latex/contrib/fithesis/example/mu/econ-lualatex.pdf Binary files differdeleted file mode 100644 index 1af9961166..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/econ-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/econ-lualatex.tex b/macros/latex/contrib/fithesis/example/mu/econ-lualatex.tex deleted file mode 100644 index a41a25d719..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/econ-lualatex.tex +++ /dev/null @@ -1,686 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/econ.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage{polyglossia} %% By using `czech` or `slovak` as the -\setmainlanguage{english} %% main locale instead of `english`, you -%% can typeset the thesis in either Czech or Slovak, respectively. -\setotherlanguages{german, russian, czech, slovak} %% The -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\newfontfamily\russianfont[Script=Cyrillic,Ligatures=TeX]{PT Serif} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - autoLayout = false, - university = mu, - faculty = econ, - type = bc, - field = Applied Econometrics, - department = Department of Finance, - author = Jane Doe, - gender = f, - advisor = John Smith, - extra = { - advisorCsGenitiv = {Johna Smithe}, - advisorSkGenitiv = {Johna Smitha}, - }, - title = The Economic Value of LaTeX, - TeXtitle = The Economic Value of \LaTeX, - keywords = {keyword1, keyword2, ...}, - TeXkeywords = {keyword1, keyword2, \ldots}, - abstract = {This is the abstract of my thesis, which - can - - span multiple paragraphs.}, - thanks = {These are the acknowledgements for my - thesis, which can - - span multiple paragraphs.}, - bib = example.bib, - %% Uncomment the following line (by removing the % symbol at - %% the beginning) and replace `assignment.pdf` with the - %% filename of your scanned thesis assignment. - % assignment = assignment.pdf, - %% The following keys are only useful, when you're using a - %% locale other than English. You can safely omit them in an - %% English thesis. - titleEn = The Economic Value of LaTeX, - TeXtitleEn = The Economic Value of \LaTeX, - keywordsEn = {keyword1, keyword2, ...}, - TeXkeywordsEn = {keyword1, keyword2, \ldots}, - abstractEn = {This is the English abstract of my - thesis, which can - - span multiple paragraphs.}, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\usepackage{chngcntr} -\counterwithout{table}{chapter} % Flat numbering of tables. -\counterwithout{figure}{chapter} % Flat numbering of figures. -\begin{document} -\makeatletter - \thesis@preamble %% Print the preamble. -\makeatother - -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian} -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \emph{Source: <<Image Source>>} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \emph{Source: <<Image Source>>} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \vskip\abovecaptionskip\emph{Source: <<Table Source>>} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{lualatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\makeatletter - \thesis@postamble %% Print the postamble. -\makeatother - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/econ-pdflatex.pdf b/macros/latex/contrib/fithesis/example/mu/econ-pdflatex.pdf Binary files differdeleted file mode 100644 index 2079d72e06..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/econ-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/econ-pdflatex.tex b/macros/latex/contrib/fithesis/example/mu/econ-pdflatex.tex deleted file mode 100644 index cfc5539fc7..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/econ-pdflatex.tex +++ /dev/null @@ -1,693 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/econ.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage[resetfonts]{cmap} %% We need to load the T2A font encoding -\usepackage[T1,T2A]{fontenc} %% to use the Cyrillic fonts with Russian texts. -\usepackage[ - main=english, %% By using `czech` or `slovak` as the main locale - %% instead of `english`, you can typeset the thesis - %% in either Czech or Slovak, respectively. - english, german, russian, czech, slovak %% The additional keys allow -]{babel} %% foreign texts to be typeset as follows: -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\usepackage{paratype} -\def\textrussian#1{{\usefont{T2A}{PTSerif-TLF}{m}{rm}#1}} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - autoLayout = false, - university = mu, - faculty = econ, - type = bc, - field = Applied Econometrics, - department = Department of Finance, - author = Jane Doe, - gender = f, - advisor = John Smith, - extra = { - advisorCsGenitiv = {Johna Smithe}, - advisorSkGenitiv = {Johna Smitha}, - }, - title = The Economic Value of LaTeX, - TeXtitle = The Economic Value of \LaTeX, - keywords = {keyword1, keyword2, ...}, - TeXkeywords = {keyword1, keyword2, \ldots}, - abstract = {This is the abstract of my thesis, which - can - - span multiple paragraphs.}, - thanks = {These are the acknowledgements for my - thesis, which can - - span multiple paragraphs.}, - bib = example.bib, - %% Uncomment the following line (by removing the % symbol at - %% the beginning) and replace `assignment.pdf` with the - %% filename of your scanned thesis assignment. - % assignment = assignment.pdf, - %% The following keys are only useful, when you're using a - %% locale other than English. You can safely omit them in an - %% English thesis. - titleEn = The Economic Value of LaTeX, - TeXtitleEn = The Economic Value of \LaTeX, - keywordsEn = {keyword1, keyword2, ...}, - TeXkeywordsEn = {keyword1, keyword2, \ldots}, - abstractEn = {This is the English abstract of my - thesis, which can - - span multiple paragraphs.}, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\usepackage{chngcntr} -\counterwithout{table}{chapter} % Flat numbering of tables. -\counterwithout{figure}{chapter} % Flat numbering of figures. -\begin{document} -\makeatletter - \thesis@preamble %% Print the preamble. -\makeatother - -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian}\textrussian{% -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -}\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \emph{Source: <<Image Source>>} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \emph{Source: <<Image Source>>} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \vskip\abovecaptionskip\emph{Source: <<Table Source>>} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{pdflatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\shorthandoff{-} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} -\shorthandon{-} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\makeatletter - \thesis@postamble %% Print the postamble. -\makeatother - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/example.bib b/macros/latex/contrib/fithesis/example/mu/example.bib deleted file mode 100644 index 60b8b9ec79..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/example.bib +++ /dev/null @@ -1,123 +0,0 @@ -% The example bibliographical entries below were borrowed from the -% <https://www.ctan.org/pkg/biblatex-iso690> package documentation. - -% BORGMAN, Christine L., 2003. From Gutenberg to the global information -% infrastructure: access to information in the networked world. First. Cambridge -% (Mass): The MIT Press. ISBN 0-262-52345-0 [xviii, 324] - -@BOOK{borgman03, - author = {Borgman, Christine L.}, - date = {2003}, - title = {From Gutenberg to the global information infrastructure}, - subtitle = {access to information in the networked world}, - edition = {1}, % should not be stated - location = {Cambridge (Mass)}, - publisher = {The MIT Press}, - pagetotal = {xviii, 324}, - isbn = {0-262-52345-0}, - langid = {english} -} - -% GREENBERG, David, 1998. Camel drivers and gatecrashers: quality control in -% the digital research library. In: HAWKINS, B.L et al. (eds.). The mirage of -% continuity: reconfiguring academic information resources for the 21st -% century. Washington (D.C.): Council on Library and Information Resources; -% Association of American Universities, pp. 105–116 - -@INCOLLECTION{greenberg98, - crossref = {mirage98}, - author = {Greenberg, David}, - title = {Camel drivers and gatecrashers}, - subtitle = {quality control in the digital research library}, - pages = {105-116}, -} - -@COLLECTION{mirage98, - title = {The mirage of continuity}, - subtitle = {reconfiguring academic information - resources for the 21st century}, - editor = {Hawkins, B.L and Battin, P}, - date = {1998}, - location = {Washington (D.C.)}, - publisher = {Council on Library and Information Resources; - Association of American Universities}, - langid = {english} -} - -% LYNCH, C., 2005. Where do we go from here?: the next decade for digital -% libraries. DLib Magazine [online]. Vol. 11, no. 7/8 [visited on 2005-08-15]. -% ISSN 1082-9873. Available from: -% http://www.dlib.org/dlib/july05/lynch/07lynch.html - -@ARTICLE{lynch05, - crossref = {dlib}, - author = {Lynch, C.}, - title = {Where do we go from here?}, - subtitle = {the next decade for digital libraries}, - url = {http://www.dlib.org/dlib/july05/lynch/07lynch.html}, - urldate = {2005-08-15} -} - -@PERIODICAL{dlib, - journaltitle = {DLib Magazine}, - date = {2005}, - volume = {11}, - number = {7/8}, - issn = {1082-9873}, - langid = {english}, -} - -% HÀN, Thé Thành, 2001. Micro-typographic extensions to the TEX type- setting -% system [online]. Brno [visited on 2016-12-09]. Available from: -% http://www.pragma-ade.nl/pdftex/thesis.pdf. PhD thesis. The Faculty of -% Informatics, Masaryk University. - -@PHDTHESIS{thanh01, - author = {Hàn Thé, Thành}, - title = {Micro-typographic extensions to the \TeX{} typesetting system}, - date = {2001}, - institution = {The Faculty of Informatics, Masaryk University}, - location = {Brno}, - url = {http://www.pragma-ade.nl/pdftex/thesis.pdf}, - urldate = {2016-12-09}, - langid = {english} -} - -% SHANNON, Claude Elwood, 1940. A symbolic analysis of relay and switching -% circuits. Available from DOI: 1721.1/11173. Master’s thesis. Massachusetts -% Institute of Technology. - -@MASTERSTHESIS{shannon40, - author = {Shannon, Claude Elwood}, - title = {A symbolic analysis of relay and switching circuits}, - date = {1940}, - institution = {Massachusetts Institute of Technology}, - langid = {english}, - doi = {1721.1/11173}, -} - -% EHLINGER JR., Philip Charles. Device for the treatment of hiccups. US. -% US Patent, 7062320. - -@PATENT{ehlinger06, - author = {Ehlinger Jr., Philip Charles}, - title = {Device for the treatment of hiccups}, - type = {US Patent}, - location = {US}, - date = {2006}, - number = {7062320}, - langid = {english} -} - -% Masaryk University, 1996–2009 [online]. Brno: Masaryk University -% [visited on 2016-12-09]. Available from: https://www.muni.cz/en. - -@ONLINE{muni, - publisher = {Masaryk University}, - title = {Masaryk University}, - date = {1996/2009}, - url = {https://www.muni.cz/en}, - urldate = {2016-12-09}, - location = {Brno}, - langid = {english} -} diff --git a/macros/latex/contrib/fithesis/example/mu/fi-lualatex.pdf b/macros/latex/contrib/fithesis/example/mu/fi-lualatex.pdf Binary files differdeleted file mode 100644 index 20734c572e..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/fi-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/fi-lualatex.tex b/macros/latex/contrib/fithesis/example/mu/fi-lualatex.tex deleted file mode 100644 index 9fdd804037..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/fi-lualatex.tex +++ /dev/null @@ -1,651 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/fi.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage{polyglossia} %% By using `czech` or `slovak` as the -\setmainlanguage{english} %% main locale instead of `english`, you -%% can typeset the thesis in either Czech or Slovak, respectively. -\setotherlanguages{german, russian, czech, slovak} %% The -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\newfontfamily\russianfont[Script=Cyrillic,Ligatures=TeX]{PT Serif} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = fi, - type = bc, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = {The Proof of P = NP}, - TeXtitle = {The Proof of $\mathsf{P}=\mathsf{NP}$}, - keywords = {keyword1, keyword2, ...}, - TeXkeywords = {keyword1, keyword2, \ldots}, - abstract = {This is the abstract of my thesis, which can - - span multiple paragraphs.}, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian} -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{lualatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -\ or %% Let us define a compound command: -\def\citeauthoryear#1{(\textcite{#1},~\citeyear{#1})}% -\citeauthoryear{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/fi-pdflatex.pdf b/macros/latex/contrib/fithesis/example/mu/fi-pdflatex.pdf Binary files differdeleted file mode 100644 index 5858d8b576..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/fi-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/fi-pdflatex.tex b/macros/latex/contrib/fithesis/example/mu/fi-pdflatex.tex deleted file mode 100644 index 31c18bde1b..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/fi-pdflatex.tex +++ /dev/null @@ -1,658 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/fi.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage[resetfonts]{cmap} %% We need to load the T2A font encoding -\usepackage[T1,T2A]{fontenc} %% to use the Cyrillic fonts with Russian texts. -\usepackage[ - main=english, %% By using `czech` or `slovak` as the main locale - %% instead of `english`, you can typeset the thesis - %% in either Czech or Slovak, respectively. - english, german, russian, czech, slovak %% The additional keys allow -]{babel} %% foreign texts to be typeset as follows: -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\usepackage{paratype} -\def\textrussian#1{{\usefont{T2A}{PTSerif-TLF}{m}{rm}#1}} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = fi, - type = bc, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = {The Proof of P = NP}, - TeXtitle = {The Proof of $\mathsf{P}=\mathsf{NP}$}, - keywords = {keyword1, keyword2, ...}, - TeXkeywords = {keyword1, keyword2, \ldots}, - abstract = {This is the abstract of my thesis, which can - - span multiple paragraphs.}, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian}\textrussian{% -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -}\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{pdflatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\shorthandoff{-} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} -\shorthandon{-} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -\ or %% Let us define a compound command: -\def\citeauthoryear#1{(\textcite{#1},~\citeyear{#1})}% -\citeauthoryear{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/fsps-lualatex.pdf b/macros/latex/contrib/fithesis/example/mu/fsps-lualatex.pdf Binary files differdeleted file mode 100644 index 2a5e95bb8e..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/fsps-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/fsps-lualatex.tex b/macros/latex/contrib/fithesis/example/mu/fsps-lualatex.tex deleted file mode 100644 index abec31eaf1..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/fsps-lualatex.tex +++ /dev/null @@ -1,645 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/fsps.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage{polyglossia} %% By using `czech` or `slovak` as the -\setmainlanguage{english} %% main locale instead of `english`, you -%% can typeset the thesis in either Czech or Slovak, respectively. -\setotherlanguages{german, russian, czech, slovak} %% The -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\newfontfamily\russianfont[Script=Cyrillic,Ligatures=TeX]{PT Serif} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = fsps, - type = bc, - field = Sport Management, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = The use of LaTeX for the Typesetting - of Sports Tables, - TeXtitle = The use of \LaTeX\ for the Typesetting - of Sports Tables, - bib = example.bib, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian} -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{lualatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - {\singlespacing - \printbibliography[heading=bibintoc] %% Print the bibliography. - } - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/fsps-pdflatex.pdf b/macros/latex/contrib/fithesis/example/mu/fsps-pdflatex.pdf Binary files differdeleted file mode 100644 index db7adad919..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/fsps-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/fsps-pdflatex.tex b/macros/latex/contrib/fithesis/example/mu/fsps-pdflatex.tex deleted file mode 100644 index 35bb343b20..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/fsps-pdflatex.tex +++ /dev/null @@ -1,652 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/fsps.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage[resetfonts]{cmap} %% We need to load the T2A font encoding -\usepackage[T1,T2A]{fontenc} %% to use the Cyrillic fonts with Russian texts. -\usepackage[ - main=english, %% By using `czech` or `slovak` as the main locale - %% instead of `english`, you can typeset the thesis - %% in either Czech or Slovak, respectively. - english, german, russian, czech, slovak %% The additional keys allow -]{babel} %% foreign texts to be typeset as follows: -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\usepackage{paratype} -\def\textrussian#1{{\usefont{T2A}{PTSerif-TLF}{m}{rm}#1}} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = fsps, - type = bc, - field = Sport Management, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = The use of LaTeX for the Typesetting - of Sports Tables, - TeXtitle = The use of \LaTeX\ for the Typesetting - of Sports Tables, - bib = example.bib, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian}\textrussian{% -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -}\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{pdflatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\shorthandoff{-} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} -\shorthandon{-} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - {\singlespacing - \printbibliography[heading=bibintoc] %% Print the bibliography. - } - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/fss-lualatex.pdf b/macros/latex/contrib/fithesis/example/mu/fss-lualatex.pdf Binary files differdeleted file mode 100644 index e642cd22e9..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/fss-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/fss-lualatex.tex b/macros/latex/contrib/fithesis/example/mu/fss-lualatex.tex deleted file mode 100644 index 65365d503b..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/fss-lualatex.tex +++ /dev/null @@ -1,658 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/fss.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage{polyglossia} %% By using `czech` or `slovak` as the -\setmainlanguage{english} %% main locale instead of `english`, you -%% can typeset the thesis in either Czech or Slovak, respectively. -\setotherlanguages{german, russian, czech, slovak} %% The -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\newfontfamily\russianfont[Script=Cyrillic,Ligatures=TeX]{PT Serif} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = fss, - type = bc, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = LaTeX and Its Impact on the - Information Society, - TeXtitle = \LaTeX\ and Its Impact on the - Information Society, - keywords = {keyword1, keyword2, ...}, - TeXkeywords = {keyword1, keyword2, \ldots}, - abstract = {This is the abstract of my thesis, which can - - span multiple paragraphs.}, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, - %% The following keys are only useful, when you're using a - %% locale other than English. You can safely omit them in an - %% English thesis. - keywordsEn = {keyword1, keyword2, ...}, - TeXkeywordsEn = {keyword1, keyword2, \ldots}, - abstractEn = {This is the English abstract of my thesis, which can - - span multiple paragraphs.}, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian} -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{lualatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/fss-pdflatex.pdf b/macros/latex/contrib/fithesis/example/mu/fss-pdflatex.pdf Binary files differdeleted file mode 100644 index 03e8a4e464..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/fss-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/fss-pdflatex.tex b/macros/latex/contrib/fithesis/example/mu/fss-pdflatex.tex deleted file mode 100644 index 9ca917560b..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/fss-pdflatex.tex +++ /dev/null @@ -1,665 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/fss.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage[resetfonts]{cmap} %% We need to load the T2A font encoding -\usepackage[T1,T2A]{fontenc} %% to use the Cyrillic fonts with Russian texts. -\usepackage[ - main=english, %% By using `czech` or `slovak` as the main locale - %% instead of `english`, you can typeset the thesis - %% in either Czech or Slovak, respectively. - english, german, russian, czech, slovak %% The additional keys allow -]{babel} %% foreign texts to be typeset as follows: -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\usepackage{paratype} -\def\textrussian#1{{\usefont{T2A}{PTSerif-TLF}{m}{rm}#1}} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = fss, - type = bc, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = LaTeX and Its Impact on the - Information Society, - TeXtitle = \LaTeX\ and Its Impact on the - Information Society, - keywords = {keyword1, keyword2, ...}, - TeXkeywords = {keyword1, keyword2, \ldots}, - abstract = {This is the abstract of my thesis, which can - - span multiple paragraphs.}, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, - %% The following keys are only useful, when you're using a - %% locale other than English. You can safely omit them in an - %% English thesis. - keywordsEn = {keyword1, keyword2, ...}, - TeXkeywordsEn = {keyword1, keyword2, \ldots}, - abstractEn = {This is the English abstract of my thesis, which can - - span multiple paragraphs.}, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian}\textrussian{% -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -}\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{pdflatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\shorthandoff{-} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} -\shorthandon{-} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/law-lualatex.pdf b/macros/latex/contrib/fithesis/example/mu/law-lualatex.pdf Binary files differdeleted file mode 100644 index 6193dc362e..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/law-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/law-lualatex.tex b/macros/latex/contrib/fithesis/example/mu/law-lualatex.tex deleted file mode 100644 index 6e0080e11c..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/law-lualatex.tex +++ /dev/null @@ -1,659 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/law.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage{polyglossia} %% By using `czech` or `slovak` as the -\setmainlanguage{english} %% main locale instead of `english`, you -%% can typeset the thesis in either Czech or Slovak, respectively. -\setotherlanguages{german, russian, czech, slovak} %% The -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\newfontfamily\russianfont[Script=Cyrillic,Ligatures=TeX]{PT Serif} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = law, - department = The Department of Commercial Law, - type = bc, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = The Legal Aspects of the LaTeX Project - Public License, - TeXtitle = The Legal Aspects of the \LaTeX\ Project - Public License, - keywords = {keyword1, keyword2, ...}, - TeXkeywords = {keyword1, keyword2, \ldots}, - abstract = {This is the abstract of my thesis, which can - - span multiple paragraphs.}, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, - %% The following keys are only useful, when you're using a - %% locale other than English. You can safely omit them in an - %% English thesis. - keywordsEn = {keyword1, keyword2, ...}, - TeXkeywordsEn = {keyword1, keyword2, \ldots}, - abstractEn = {This is the English abstract of my thesis, which can - - span multiple paragraphs.}, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian} -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{lualatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/law-pdflatex.pdf b/macros/latex/contrib/fithesis/example/mu/law-pdflatex.pdf Binary files differdeleted file mode 100644 index 18cd07d2a9..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/law-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/law-pdflatex.tex b/macros/latex/contrib/fithesis/example/mu/law-pdflatex.tex deleted file mode 100644 index 6c4ea5931d..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/law-pdflatex.tex +++ /dev/null @@ -1,666 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/law.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage[resetfonts]{cmap} %% We need to load the T2A font encoding -\usepackage[T1,T2A]{fontenc} %% to use the Cyrillic fonts with Russian texts. -\usepackage[ - main=english, %% By using `czech` or `slovak` as the main locale - %% instead of `english`, you can typeset the thesis - %% in either Czech or Slovak, respectively. - english, german, russian, czech, slovak %% The additional keys allow -]{babel} %% foreign texts to be typeset as follows: -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\usepackage{paratype} -\def\textrussian#1{{\usefont{T2A}{PTSerif-TLF}{m}{rm}#1}} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = law, - department = The Department of Commercial Law, - type = bc, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = The Legal Aspects of the LaTeX Project - Public License, - TeXtitle = The Legal Aspects of the \LaTeX\ Project - Public License, - keywords = {keyword1, keyword2, ...}, - TeXkeywords = {keyword1, keyword2, \ldots}, - abstract = {This is the abstract of my thesis, which can - - span multiple paragraphs.}, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, - %% The following keys are only useful, when you're using a - %% locale other than English. You can safely omit them in an - %% English thesis. - keywordsEn = {keyword1, keyword2, ...}, - TeXkeywordsEn = {keyword1, keyword2, \ldots}, - abstractEn = {This is the English abstract of my thesis, which can - - span multiple paragraphs.}, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian}\textrussian{% -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -}\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{pdflatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\shorthandoff{-} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} -\shorthandon{-} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/med-lualatex.pdf b/macros/latex/contrib/fithesis/example/mu/med-lualatex.pdf Binary files differdeleted file mode 100644 index 9e59c9d1f2..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/med-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/med-lualatex.tex b/macros/latex/contrib/fithesis/example/mu/med-lualatex.tex deleted file mode 100644 index f8483ad28a..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/med-lualatex.tex +++ /dev/null @@ -1,661 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/med.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage{polyglossia} %% By using `czech` or `slovak` as the -\setmainlanguage{english} %% main locale instead of `english`, you -%% can typeset the thesis in either Czech or Slovak, respectively. -\setotherlanguages{german, russian, czech, slovak} %% The -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\newfontfamily\russianfont[Script=Cyrillic,Ligatures=TeX]{PT Serif} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = med, - field = Optometry, - department = The Department of Optometry and - Orthoptics, - type = bc, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = The Curative Effects of Good - Typography on the Quality of Sight, - TeXtitle = The Curative Effects of Good\\ - Typography on the Quality of Sight, - keywords = {keyword1, keyword2, ...}, - TeXkeywords = {keyword1, keyword2, \ldots}, - abstract = {This is the abstract of my thesis, which can - - span multiple paragraphs.}, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, - %% The following keys are only useful, when you're using a - %% locale other than English. You can safely omit them in an - %% English thesis. - keywordsEn = {keyword1, keyword2, ...}, - TeXkeywordsEn = {keyword1, keyword2, \ldots}, - abstractEn = {This is the English abstract of my thesis, which can - - span multiple paragraphs.}, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian} -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{lualatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/med-pdflatex.pdf b/macros/latex/contrib/fithesis/example/mu/med-pdflatex.pdf Binary files differdeleted file mode 100644 index 4d4adf5f44..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/med-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/med-pdflatex.tex b/macros/latex/contrib/fithesis/example/mu/med-pdflatex.tex deleted file mode 100644 index 4e672a80ad..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/med-pdflatex.tex +++ /dev/null @@ -1,668 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/med.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage[resetfonts]{cmap} %% We need to load the T2A font encoding -\usepackage[T1,T2A]{fontenc} %% to use the Cyrillic fonts with Russian texts. -\usepackage[ - main=english, %% By using `czech` or `slovak` as the main locale - %% instead of `english`, you can typeset the thesis - %% in either Czech or Slovak, respectively. - english, german, russian, czech, slovak %% The additional keys allow -]{babel} %% foreign texts to be typeset as follows: -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\usepackage{paratype} -\def\textrussian#1{{\usefont{T2A}{PTSerif-TLF}{m}{rm}#1}} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = med, - field = Optometry, - department = The Department of Optometry and - Orthoptics, - type = bc, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = The Curative Effects of Good - Typography on the Quality of Sight, - TeXtitle = The Curative Effects of Good\\ - Typography on the Quality of Sight, - keywords = {keyword1, keyword2, ...}, - TeXkeywords = {keyword1, keyword2, \ldots}, - abstract = {This is the abstract of my thesis, which can - - span multiple paragraphs.}, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, - %% The following keys are only useful, when you're using a - %% locale other than English. You can safely omit them in an - %% English thesis. - keywordsEn = {keyword1, keyword2, ...}, - TeXkeywordsEn = {keyword1, keyword2, \ldots}, - abstractEn = {This is the English abstract of my thesis, which can - - span multiple paragraphs.}, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian}\textrussian{% -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -}\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{pdflatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\shorthandoff{-} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} -\shorthandon{-} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/ped-lualatex.pdf b/macros/latex/contrib/fithesis/example/mu/ped-lualatex.pdf Binary files differdeleted file mode 100644 index d9ea42f658..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/ped-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/ped-lualatex.tex b/macros/latex/contrib/fithesis/example/mu/ped-lualatex.tex deleted file mode 100644 index d00cf73bf5..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/ped-lualatex.tex +++ /dev/null @@ -1,662 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/ped.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage{polyglossia} %% By using `czech` or `slovak` as the -\setmainlanguage{english} %% main locale instead of `english`, you -%% can typeset the thesis in either Czech or Slovak, respectively. -\setotherlanguages{german, russian, czech, slovak} %% The -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\newfontfamily\russianfont[Script=Cyrillic,Ligatures=TeX]{PT Serif} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = ped, - type = bc, - department = Department of Primary Pedagogy, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = The Challenges of Teaching LaTeX - to Preschool Children, - TeXtitle = The Challenges of Teaching \LaTeX\ - to Preschool Children, - keywords = {keyword1, keyword2, ...}, - TeXkeywords = {keyword1, keyword2, \ldots}, - abstract = {This is the abstract of my thesis, which can - - span multiple paragraphs.}, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, - %% The following keys are only useful, when you're using a - %% locale other than English. You can safely omit them in an - %% English thesis. - keywordsEn = {keyword1, keyword2, ...}, - TeXkeywordsEn = {keyword1, keyword2, \ldots}, - abstractEn = {This is the English abstract of my thesis, which can - - span multiple paragraphs.}, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian} -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{lualatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -\ or %% Let us define a compound command: -\def\citeauthoryear#1{(\textcite{#1},~\citeyear{#1})}% -\citeauthoryear{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/ped-pdflatex.pdf b/macros/latex/contrib/fithesis/example/mu/ped-pdflatex.pdf Binary files differdeleted file mode 100644 index 70c2689c1b..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/ped-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/ped-pdflatex.tex b/macros/latex/contrib/fithesis/example/mu/ped-pdflatex.tex deleted file mode 100644 index 04b0d63297..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/ped-pdflatex.tex +++ /dev/null @@ -1,669 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/ped.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage[resetfonts]{cmap} %% We need to load the T2A font encoding -\usepackage[T1,T2A]{fontenc} %% to use the Cyrillic fonts with Russian texts. -\usepackage[ - main=english, %% By using `czech` or `slovak` as the main locale - %% instead of `english`, you can typeset the thesis - %% in either Czech or Slovak, respectively. - english, german, russian, czech, slovak %% The additional keys allow -]{babel} %% foreign texts to be typeset as follows: -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\usepackage{paratype} -\def\textrussian#1{{\usefont{T2A}{PTSerif-TLF}{m}{rm}#1}} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = ped, - type = bc, - department = Department of Primary Pedagogy, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = The Challenges of Teaching LaTeX - to Preschool Children, - TeXtitle = The Challenges of Teaching \LaTeX\ - to Preschool Children, - keywords = {keyword1, keyword2, ...}, - TeXkeywords = {keyword1, keyword2, \ldots}, - abstract = {This is the abstract of my thesis, which can - - span multiple paragraphs.}, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, - %% The following keys are only useful, when you're using a - %% locale other than English. You can safely omit them in an - %% English thesis. - keywordsEn = {keyword1, keyword2, ...}, - TeXkeywordsEn = {keyword1, keyword2, \ldots}, - abstractEn = {This is the English abstract of my thesis, which can - - span multiple paragraphs.}, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian}\textrussian{% -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -}\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{pdflatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\shorthandoff{-} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} -\shorthandon{-} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -\ or %% Let us define a compound command: -\def\citeauthoryear#1{(\textcite{#1},~\citeyear{#1})}% -\citeauthoryear{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/phil-lualatex.pdf b/macros/latex/contrib/fithesis/example/mu/phil-lualatex.pdf Binary files differdeleted file mode 100644 index ed21bf2deb..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/phil-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/phil-lualatex.tex b/macros/latex/contrib/fithesis/example/mu/phil-lualatex.tex deleted file mode 100644 index 8aa2139809..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/phil-lualatex.tex +++ /dev/null @@ -1,650 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/phil.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage{polyglossia} %% By using `czech` or `slovak` as the -\setmainlanguage{english} %% main locale instead of `english`, you -%% can typeset the thesis in either Czech or Slovak, respectively. -\setotherlanguages{german, russian, czech, slovak} %% The -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\newfontfamily\russianfont[Script=Cyrillic,Ligatures=TeX]{PT Serif} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = phil, - department = Department of Psychology, - field = Cognitive Sciences, - type = bc, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = What Can Typography Tell Us - About the Nature of Man, - TeXtitle = What Can Typography Tell Us\\ - About the Nature of Man, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian} -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{lualatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -\ or %% Let us define a compound command: -\def\citeauthoryear#1{(\textcite{#1},~\citeyear{#1})}% -\citeauthoryear{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/phil-pdflatex.pdf b/macros/latex/contrib/fithesis/example/mu/phil-pdflatex.pdf Binary files differdeleted file mode 100644 index 5983cf9800..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/phil-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/phil-pdflatex.tex b/macros/latex/contrib/fithesis/example/mu/phil-pdflatex.tex deleted file mode 100644 index 2811b6bfa5..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/phil-pdflatex.tex +++ /dev/null @@ -1,657 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/phil.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage[resetfonts]{cmap} %% We need to load the T2A font encoding -\usepackage[T1,T2A]{fontenc} %% to use the Cyrillic fonts with Russian texts. -\usepackage[ - main=english, %% By using `czech` or `slovak` as the main locale - %% instead of `english`, you can typeset the thesis - %% in either Czech or Slovak, respectively. - english, german, russian, czech, slovak %% The additional keys allow -]{babel} %% foreign texts to be typeset as follows: -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\usepackage{paratype} -\def\textrussian#1{{\usefont{T2A}{PTSerif-TLF}{m}{rm}#1}} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = phil, - department = Department of Psychology, - field = Cognitive Sciences, - type = bc, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = What Can Typography Tell Us - About the Nature of Man, - TeXtitle = What Can Typography Tell Us\\ - About the Nature of Man, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian}\textrussian{% -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -}\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{pdflatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\shorthandoff{-} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} -\shorthandon{-} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -\ or %% Let us define a compound command: -\def\citeauthoryear#1{(\textcite{#1},~\citeyear{#1})}% -\citeauthoryear{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/sci-lualatex.pdf b/macros/latex/contrib/fithesis/example/mu/sci-lualatex.pdf Binary files differdeleted file mode 100644 index f325377c23..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/sci-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/sci-lualatex.tex b/macros/latex/contrib/fithesis/example/mu/sci-lualatex.tex deleted file mode 100644 index 2196d089ac..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/sci-lualatex.tex +++ /dev/null @@ -1,693 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/sci.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage{polyglossia} %% By using `czech` or `slovak` as the -\setmainlanguage{english} %% main locale instead of `english`, you -%% can typeset the thesis in either Czech or Slovak, respectively. -\setotherlanguages{german, russian, czech, slovak} %% The -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\newfontfamily\russianfont[Script=Cyrillic,Ligatures=TeX]{PT Serif} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = sci, - department = Ústav matematiky a štatistiky, - departmentEn = Department of Mathematics and - Statistics, - extra = { - departmentCs = Ústav matematiky a statistiky, - }, - programme = Matematika, - programmeEn = Mathematics, - extra = { - programmeCs = Matematika, - }, - field = Finančná a poistná matematika, - fieldEn = Financial and Insurance Mathematics, - extra = { - fieldCs = Finanční a pojistná matematika, - }, - type = bc, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = Princípy matematickej sadzby v programe TeX, - TeXtitle = Princípy matematickej sadzby\\v~programe \TeX, - titleEn = The Principles of the Typesetting of - Mathematics in TeX: the Program, - TeXtitleEn = The Principles of the Typesetting of - Mathematics in \TeX: the Program, - extra = { - titleCs = Principy matematické sazby v programu TeX, - TeXtitleCs = Principy matematické sazby\\v~programu \TeX, - }, - keywords = {kľúčové slovo 1, kľúčové slovo 2, ...}, - TeXkeywords = {kľúčové slovo 1, kľúčové slovo 2, \ldots}, - keywordsEn = {keyword1, keyword2, ...}, - TeXkeywordsEn = {keyword1, keyword2, \ldots}, - extra = { - keywordsCs = {klíčové slovo 1, klíčové slovo 2, ...}, - TeXkeywordsCs = {klíčové slovo 1, klíčové slovo 2, \ldots}, - }, - abstract = {This is the abstract of my thesis, which can - - span multiple paragraphs.}, - abstractEn = {This is the English abstract of my thesis, which can - - span multiple paragraphs.}, - extra = { - abstractCs = {This is the Czech abstract of my thesis, which can - - span multiple paragraphs.}, - }, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, - %% Uncomment the following line (by removing the % symbol at - %% the beginning) and replace `assignment.pdf` with the - %% filename of your scanned thesis assignment. - % assignment = assignment.pdf, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian} -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{lualatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -\ or %% Let us define a compound command: -\def\citeauthoryear#1{(\textcite{#1},~\citeyear{#1})}% -\citeauthoryear{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/example/mu/sci-pdflatex.pdf b/macros/latex/contrib/fithesis/example/mu/sci-pdflatex.pdf Binary files differdeleted file mode 100644 index de60004980..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/sci-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/example/mu/sci-pdflatex.tex b/macros/latex/contrib/fithesis/example/mu/sci-pdflatex.tex deleted file mode 100644 index 6b2e09372b..0000000000 --- a/macros/latex/contrib/fithesis/example/mu/sci-pdflatex.tex +++ /dev/null @@ -1,700 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% I, the copyright holder of this work, release this work into the -%% public domain. This applies worldwide. In some countries this may -%% not be legally possible; if so: I grant anyone the right to use -%% this work for any purpose, without any conditions, unless such -%% conditions are required by law. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\documentclass[ - digital, %% This option enables the default options for the - %% digital version of a document. Replace with `printed` - %% to enable the default options for the printed version - %% of a document. - twoside, %% This option enables double-sided typesetting. Use at - %% least 120 g/m² paper to prevent show-through. Replace - %% with `oneside` to use one-sided typesetting; use only - %% if you don’t have access to a double-sided printer, - %% or if one-sided typesetting is a formal requirement - %% at your faculty. - table, %% This option causes the coloring of tables. Replace - %% with `notable` to restore plain LaTeX tables. - lof, %% This option prints the List of Figures. Replace with - %% `nolof` to hide the List of Figures. - lot, %% This option prints the List of Tables. Replace with - %% `nolot` to hide the List of Tables. - %% More options are listed in the user guide at - %% <http://mirrors.ctan.org/macros/latex/contrib/fithesis/guide/mu/sci.pdf>. -]{fithesis3} -%% The following section sets up the locales used in the thesis. -\usepackage[resetfonts]{cmap} %% We need to load the T2A font encoding -\usepackage[T1,T2A]{fontenc} %% to use the Cyrillic fonts with Russian texts. -\usepackage[ - main=slovak, %% By using `czech` or `english` as the main locale - %% instead of `slovak`, you can typeset the thesis - %% in either Czech or English, respectively. - english, german, russian, czech, slovak %% The additional keys allow -]{babel} %% foreign texts to be typeset as follows: -%% -%% \begin{otherlanguage}{german} ... \end{otherlanguage} -%% \begin{otherlanguage}{russian} ... \end{otherlanguage} -%% \begin{otherlanguage}{czech} ... \end{otherlanguage} -%% \begin{otherlanguage}{slovak} ... \end{otherlanguage} -%% -%% For non-Latin scripts, it may be necessary to load additional -%% fonts: -\usepackage{paratype} -\def\textrussian#1{{\usefont{T2A}{PTSerif-TLF}{m}{rm}#1}} -%% -%% The following section sets up the metadata of the thesis. -\thesissetup{ - date = \the\year/\the\month/\the\day, - university = mu, - faculty = sci, - department = Ústav matematiky a štatistiky, - departmentEn = Department of Mathematics and - Statistics, - extra = { - departmentCs = Ústav matematiky a statistiky, - }, - programme = Matematika, - programmeEn = Mathematics, - extra = { - programmeCs = Matematika, - }, - field = Finančná a poistná matematika, - fieldEn = Financial and Insurance Mathematics, - extra = { - fieldCs = Finanční a pojistná matematika, - }, - type = bc, - author = Jane Doe, - gender = f, - advisor = John Smith, - title = Princípy matematickej sadzby v programe TeX, - TeXtitle = Princípy matematickej sadzby\\v~programe \TeX, - titleEn = The Principles of the Typesetting of - Mathematics in TeX: the Program, - TeXtitleEn = The Principles of the Typesetting of - Mathematics in \TeX: the Program, - extra = { - titleCs = Principy matematické sazby v programu TeX, - TeXtitleCs = Principy matematické sazby\\v~programu \TeX, - }, - keywords = {kľúčové slovo 1, kľúčové slovo 2, ...}, - TeXkeywords = {kľúčové slovo 1, kľúčové slovo 2, \ldots}, - keywordsEn = {keyword1, keyword2, ...}, - TeXkeywordsEn = {keyword1, keyword2, \ldots}, - extra = { - keywordsCs = {klíčové slovo 1, klíčové slovo 2, ...}, - TeXkeywordsCs = {klíčové slovo 1, klíčové slovo 2, \ldots}, - }, - abstract = {This is the abstract of my thesis, which can - - span multiple paragraphs.}, - abstractEn = {This is the English abstract of my thesis, which can - - span multiple paragraphs.}, - extra = { - abstractCs = {This is the Czech abstract of my thesis, which can - - span multiple paragraphs.}, - }, - thanks = {These are the acknowledgements for my thesis, which can - - span multiple paragraphs.}, - bib = example.bib, - %% Uncomment the following line (by removing the % symbol at - %% the beginning) and replace `assignment.pdf` with the - %% filename of your scanned thesis assignment. - % assignment = assignment.pdf, -} -\usepackage{makeidx} %% The `makeidx` package contains -\makeindex %% helper commands for index typesetting. -%% These additional packages are used within the document: -\usepackage{paralist} %% Compact list environments -\usepackage{amsmath} %% Mathematics -\usepackage{amsthm} -\usepackage{amsfonts} -\usepackage{url} %% Hyperlinks -\usepackage{markdown} %% Lightweight markup -\usepackage{listings} %% Source code highlighting -\lstset{ - basicstyle = \ttfamily,% - identifierstyle = \color{black},% - keywordstyle = \color{blue},% - keywordstyle = {[2]\color{cyan}},% - keywordstyle = {[3]\color{olive}},% - stringstyle = \color{teal},% - commentstyle = \itshape\color{magenta}} -\usepackage{floatrow} %% Putting captions above tables -\floatsetup[table]{capposition=top} -\begin{document} -\chapter*{Introduction} -\addcontentsline{toc}{chapter}{Introduction} - -Theses are rumoured to be the capstones of education, so I decided -to write one of my own. If all goes well, I will soon have a -diploma under my belt. Wish me luck! - -\begin{otherlanguage}{czech} -Říká se, že závěrečné práce jsou vyvrcholením studia a tak jsem se -rozhodl jednu také napsat. Pokud vše půjde podle plánu, odnesu si -na konci semestru diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{slovak} -Hovorí sa, že záverečné práce sú vyvrcholením štúdia a tak som sa -rozhodol jednu tiež napísať. Ak všetko pôjde podľa plánu, odnesiem -si na konci semestra diplom. Držte mi palce! -\end{otherlanguage} - -\begin{otherlanguage}{german} -Man munkelt, dass die Dissertation die Krönung der Ausbildung ist. -Deshalb habe ich mich beschlossen meine eigene zu schreiben. Wenn -alles gut geht, bekomme ich bald ein Diplom. Wünsch mir Glück! -\end{otherlanguage} - -\begin{otherlanguage}{russian}\textrussian{% -Говорят, что тезис -- это кульминация обучения. Поэтому я и решил -написать собственный тезис. Если всё сработает по плану, я скоро -получу диплом. Желайте мне удачи! -}\end{otherlanguage} - -\chapter{These are} -\section{the available} -\subsection{sectioning} -\subsubsection{commands.} -\paragraph{Paragraphs and} -\subparagraph{subparagraphs are available as well.} -Inside the text, you can also use unnumbered lists, -\begin{itemize} - \item such as - \item this one - \begin{itemize} - \item and they can be nested as well. - \item[>>] You can even turn the bullets into something fancier, - \item[\S] if you so desire. - \end{itemize} -\end{itemize} -Numbered lists are -\begin{enumerate} - \item very - \begin{enumerate} - \item similar - \end{enumerate} -\end{enumerate} -and so are description lists: -\begin{description} - \item[Description list] - A list of terms with a description of each term -\end{description} -The spacing of these lists is geared towards paragraphs of text. -For lists of words and phrases, the \textsf{paralist} package -offers commands -\begin{compactitem} - \item that - \begin{compactitem} - \item are - \begin{compactitem} - \item better - \begin{compactitem} - \item suited - \end{compactitem} - \end{compactitem} - \end{compactitem} -\end{compactitem} -\begin{compactenum} - \item to - \begin{compactenum} - \item this - \begin{compactenum} - \item kind of - \begin{compactenum} - \item content. - \end{compactenum} - \end{compactenum} - \end{compactenum} -\end{compactenum} -The \textsf{amsthm} package provides the commands necessary for the -typesetting of mathematical definitions, theorems, lemmas and -proofs. - -%% We will define several mathematical sectioning commands. -\newtheorem{theorem}{Theorem}[section] %% The numbering of theorems - %% will be reset after each section. -\newtheorem{lemma}[theorem]{Lemma} %% The numbering of lemmas -\newtheorem{corollary}[theorem]{Corollary} %% and corollaries will - %% share the counter with theorems. -\theoremstyle{definition} -\newtheorem{definition}{Definition} -\theoremstyle{remark} -\newtheorem*{remark}{Remark} - -\begin{theorem} - This is a theorem that offers a profound insight into the - mathematical sectioning commands. -\end{theorem} -\begin{theorem}[Another theorem] - This is another theorem. Unlike the first one, this theorem has - been endowed with a name. -\end{theorem} -\begin{lemma} - Let us suppose that $x^2+y^2=z^2$. Then - \begin{equation} - \biggl\langle u\biggm|\sum_{i=1}^nF(e_i,v)e_i\biggr\rangle - =F\biggl(\sum_{i=1}^n\langle e_i|u\rangle e_i,v\biggr). - \end{equation} -\end{lemma} -\begin{proof} - $\nabla^2 f(x,y)=\frac{\partial^2f}{\partial x^2}+ - \frac{\partial^2f}{\partial y^2}$. -\end{proof} -\begin{corollary} - This is a corollary. -\end{corollary} -\begin{remark} - This is a remark. -\end{remark} - -\chapter{Floats and references} -\begin{figure} - \begin{center} - %% PNG and JPG images can be inserted into the document as well, - %% but their resolution needs to be adequate. The minimum is - %% about 100 pixels per 1 centimeter or 300 pixels per 1 inch. - %% That means that a JPG or PNG image typeset at 4 × 4 cm should - %% be 400 × 400 px large at the bare minimum. - %% - %% The optimum is about 250 pixels per 1 centimeter or 600 - %% pixels per 1 inch. That means that a JPG or PNG image typeset - %% at 4 × 4 cm should be 1000 × 1000 px large or larger. - \includegraphics[width=4cm]{fithesis/logo/mu/fithesis-base.pdf} - \end{center} - \caption{The logo of the Masaryk University at 40\,mm} - \label{fig:mulogo1} -\end{figure} - -\begin{figure} - \begin{center} - \begin{minipage}{.66\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \begin{minipage}{.33\textwidth} - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} \\ - \includegraphics[width=\textwidth]{fithesis/logo/mu/fithesis-base.pdf} - \end{minipage} - \end{center} - \caption{The logo of the Masaryk University at $\frac23$ and - $\frac13$ of text width} - \label{fig:mulogo2} -\end{figure} - -\begin{table} - \begin{tabularx}{\textwidth}{lllX} - \toprule - Day & Min Temp & Max Temp & Summary \\ - \midrule - Monday & $13^{\circ}\mathrm{C}$ & $21^\circ\mathrm{C}$ & A - clear day with low wind and no adverse current advisories. \\ - Tuesday & $11^{\circ}\mathrm{C}$ & $17^\circ\mathrm{C}$ & A - trough of low pressure will come from the northwest. \\ - Wednesday & $10^{\circ}\mathrm{C}$ & - $21^\circ\mathrm{C}$ & Rain will spread to all parts during the - morning. \\ - \bottomrule - \end{tabularx} - \caption{A weather forecast} - \label{tab:weather} -\end{table} - -The logo of the Masaryk University is shown in Figure -\ref{fig:mulogo1} and Figure \ref{fig:mulogo2} at pages -\pageref{fig:mulogo1} and \pageref{fig:mulogo2}. The weather -forecast is shown in Table \ref{tab:weather} at page -\pageref{tab:weather}. The following chapter is Chapter -\ref{chap:matheq} and starts at page \pageref{chap:matheq}. -Items \ref{item:star1}, \ref{item:star2}, and -\ref{item:star3} are starred in the following list: -\begin{compactenum} - \item some text - \item some other text - \item $\star$ \label{item:star1} - \begin{compactenum} - \item some text - \item $\star$ \label{item:star2} - \item some other text - \begin{compactenum} - \item some text - \item some other text - \item yet another piece of text - \item $\star$ \label{item:star3} - \end{compactenum} - \item yet another piece of text - \end{compactenum} - \item yet another piece of text -\end{compactenum} -If your reference points to a place that has not yet been typeset, -the \verb"\ref" command will expand to \textbf{??} during the first -run of -\texttt{pdflatex \jobname.tex} -and a second run is going to be needed for the references to -resolve. With online services -- such as Overleaf -- this is -performed automatically. - -\chapter{Mathematical equations} -\label{chap:matheq} -\TeX{} comes pre-packed with the ability to typeset inline -equations, such as $\mathrm{e}^{ix}=\cos x+i\sin x$, and display -equations, such as \[ - \mathbf{A}^{-1} = \begin{bmatrix} - a & b \\ c & d \\ - \end{bmatrix}^{-1} = - \frac{1}{\det(\mathbf{A})} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix} = - \frac{1}{ad - bc} \begin{bmatrix} - \,\,\,d & \!\!-b \\ -c & \,a \\ - \end{bmatrix}. -\] \LaTeX{} defines the automatically numbered \texttt{equation} -environment: -\begin{equation} - \gamma Px = PAx = PAP^{-1}Px. -\end{equation} -The package \textsf{amsmath} provides several additional -environments that can be used to typeset complex equations: -\begin{enumerate} - \item An equation can be spread over multiple lines using the - \texttt{multline} environment: - \begin{multline} - a + b + c + d + e + f + b + c + d + e + f + b + c + d + e + -f \\ - + f + g + h + i + j + k + l + m + n + o + p + q - \end{multline} - - \item Several aligned equations can be typeset using the - \texttt{align} environment: - \begin{align} - a + b &= c + d \\ - u &= v + w + x \\[1ex] - i + j + k + l &= m - \end{align} - - \item The \texttt{alignat} environment is similar to - \texttt{align}, but it doesn't insert horizontal spaces between - the individual columns: - \begin{alignat}{2} - a + b + c &+ d & &= 0 \\ - e &+ f + g & &= 5 - \end{alignat} - - \item Much like chapter, sections, tables, figures, or list - items, equations -- such as \eqref{eq:first} and - \eqref{eq:mine} -- can also be labeled and referenced: - \begin{alignat}{4} - b_{11}x_1 &+ b_{12}x_2 & &+ b_{13}x_3 & & & - &= y_1, \label{eq:first} \\ - b_{21}x_1 &+ b_{22}x_2 & & & &+ b_{24}x_4 & - &= y_2. \tag{My equation} \label{eq:mine} - \end{alignat} - - \item The \texttt{gather} environment makes it possible to - typeset several equations without any alignment: - \begin{gather} - \psi = \psi\psi, \\ - \eta = \eta\eta\eta\eta\eta\eta, \\ - \theta = \theta. - \end{gather} - - \item Several cases can be typeset using the \texttt{cases} - environment: - \begin{equation} - |y| = \begin{cases} - \phantom-y & \text{if }z\geq0, \\ - -y & \text{otherwise}. - \end{cases} - \end{equation} -\end{enumerate} -For the complete list of environments and commands, consult the -\textsf{amsmath} package manual\footnote{ - See \url{http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf}. - The \texttt{\textbackslash url} command is provided by the - package \textsf{url}. -}. - -\chapter{\textnormal{We \textsf{have} \texttt{several} \textsc{fonts} - \textit{at} \textbf{disposal}}} -The serified roman font is used for the main body of the text. -\textit{Italics are typically used to denote emphasis or -quotations.} \texttt{The teletype font is typically used for source -code listings.} The \textbf{bold}, \textsc{small-caps} and -\textsf{sans-serif} variants of the base roman font can be used to -denote specific types of information. - -\tiny We \scriptsize can \footnotesize also \small change \normalsize -the \large font \Large size, \LARGE although \huge it \Huge -is \huge usually \LARGE not \Large necessary.\normalsize - -A wide variety of mathematical fonts is also available, such as: \[ - \mathrm{ABC}, \mathcal{ABC}, \mathbf{ABC}, \mathsf{ABC}, - \mathit{ABC}, \mathtt{ABC} -\] By loading the \textsf{amsfonts} packages, several additional -fonts will become available: \[ - \mathfrak{ABC}, \mathbb{ABC} -\] Many other mathematical fonts are available\footnote{ - See \url{http://tex.stackexchange.com/a/58124/70941}. -}. - -\chapter{Using lightweight markup} -\shorthandoff{-} -\begin{markdown*}{% - hybrid, - definitionLists, - footnotes, - inlineFootnotes, - hashEnumerators, - fencedCode, - citations, - citationNbsps, -} - -If you decide that \LaTeX{} is too wordy for some parts of your -document, there are [packages](https://www.ctan.org/pkg/markdown -"Markdown") that allow you to use more lightweight markup next -to it. - -  - -This is a bullet list. Unlike numbered lists, bulleted lists -contain an **unordered** set of bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - * The first item of a bullet list - - that spans several paragraphs, - * the second item of a bullet list, - * the third item of a bullet list. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - * The first item of a bullet list, - * the second item of a bullet list, - * the third item of a bullet list. - -Unlike a bulleted list, a numbered list implies chronology or -ordering of the bullet points. When a bullet point -contains multiple paragraphs, the list is typeset as follows: - - 1. The first item of an ordered list - - that spans several paragraphs, - 2. the second item of an ordered list, - 3. the third item of an ordered list. - #. If you are feeling lazy, - #. you can use hash enumerators as well. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - - 6. The first item of an ordered list, - 7. the second item of an ordered list, - 8. the third item of an ordered list. - -Definition lists are used to provide definitions of terms. When -a definition contains multiple paragraphs, the list is typeset -as follows: - -Term 1 - -: Definition 1 - -*Term 2* - -: Definition 2 - - Some code, part of Definition 2 - - Third paragraph of Definition 2. - -When none of the bullet points contains multiple paragraphs, the -list has a more compact form: - -Term 1 -: Definition 1 -*Term 2* -: Definition 2 - -Block quotations are used to include an excerpt from an external -document in way that visually clearly separates the excerpt from -the rest of the work: - -> This is the first level of quoting. -> -> > This is nested blockquote. -> -> Back to the first level. - -Footnotes are used to include additional information to the -document that are not necessary for the understanding of the main -text. Here is a footnote reference^[Here is the footnote.] and -another.[^longnote] - -[^longnote]: Here's one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - Some code - - The whole paragraph can be indented, or just the first - line. In this way, multi-paragraph footnotes work like - multi-paragraph list items. - -Citations are used to provide bibliographical references to other -documents. This is a regular citation~[@borgman03, p. 123]. This is -an in-text citation: @borgman03\. You can also cite several authors -at once using both regular~[see @borgman03, p. 123; @greenberg98, -sec. 3.2; and @thanh01] and in-text citations: @borgman03 [p.123; -@greenberg98, sec. 3.2; @thanh01]. - -Code blocks are used to include source code listings into the -document: - - #include <stdio.h> - #include <unistd.h> - #include <sys/types.h> - #include <sys/wait.h> - // This is a comment - int main(int argc, char **argv) - { - while (--c > 1 && !fork()); - sleep(c = atoi(v[c])); - printf("%d\n", c); - wait(0); - return 0; - } - -There is an alternative syntax for code blocks that allows you to -specify additional information, such as the language of the source -code. This information can be used for syntax highlighting: - -``` sh -#!/bin/sh -fac() { - if [ "$1" -leq 1 ]; then - echo 1 - else - echo $(("$1" * fac $(("$1" - 1)))) - fi -} -`````````````` - -~~~~~~ Ruby -# Here's a way to empty an array. -joe = [ 'eggs.', 'some', 'break', 'to', 'Have' ] -print(joe.pop, " ") while joe.size > 0 -print "\n" -~~~~~~ - -\end{markdown*} -\shorthandon{-} - -\chapter{Inserting the bibliography} -After linking a bibliography data\-base files to the document using -the \verb"\"\texttt{thesis\discretionary{-}{}{}setup\{bib\discretionary{=}{=}{=}% -\{\textit{file1},\textit{file2},\,\ldots\,\}\}} command, you can -start citing the entries. This is just dummy text -\parencite{borgman03} lightly sprinkled with citations -\parencite[p.~123]{greenberg98}. Several sources can be cited at -once: \cite{borgman03,greenberg98,thanh01}. -\citetitle{greenberg98} was written by \citeauthor{greenberg98} in -\citeyear{greenberg98}. We can also produce \textcite{greenberg98}% -\ or %% Let us define a compound command: -\def\citeauthoryear#1{(\textcite{#1},~\citeyear{#1})}% -\citeauthoryear{greenberg98}% -. The full bibliographic citation is: -\emph{\fullcite{greenberg98}}. We can easily insert a bibliographic -citation into the footnote\footfullcite{greenberg98}. - -The \verb"\nocite" command will not generate any -output\nocite{muni}, but it will insert its arguments into -the bibliography. The \verb"\nocite{*}" command will insert all the -records in the bibliography database file into the bibliography. -Try uncommenting the command -%% \nocite{*} -and watch the bibliography section come apart at the seams. - -When typesetting the document for the first time, citing a -\texttt{work} will expand to [\textbf{work}] and the -\verb"\printbibliography" command will produce no output. It is now -necessary to generate the bibliography by running \texttt{biber -\jobname.bcf} from the command line and then by typesetting the -document again twice. During the first run, the bibliography -section and the citations will be typeset, and in the second run, -the bibliography section will appear in the table of contents. - -The \texttt{biber} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open -Command Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- or when using an -automatic tool -- such as \LaTeX MK -- all commands are executed -automatically. When you omit the \verb"\printbibliography" command, -its location will be decided by the template. - - \printbibliography[heading=bibintoc] %% Print the bibliography. - -\chapter{Inserting the index} -After using the \verb"\makeindex" macro and loading the -\texttt{makeidx} package that provides additional indexing -commands, index entries can be created by issuing the \verb"\index" -command. \index{dummy text|(}It is possible to create ranged index -entries, which will encompass a span of text.\index{dummy text|)} -To insert complex typographic material -- such as $\alpha$ -\index{alpha@$\alpha$} or \TeX{} \index{TeX@\TeX} -- -into the index, you need to specify a text string, which will -determine how the entry will be sorted. It is also possible to -create hierarchal entries. \index{vehicles!trucks} -\index{vehicles!speed cars} - -After typesetting the document, it is necessary to generate the -index by running -\begin{center}% - \texttt{texindy -I latex -C utf8 -L }$\langle$\textit{locale}% - $\rangle$\texttt{ \jobname.idx} -\end{center} -from the command line, where $\langle$\textit{locale}$\rangle$ -corresponds to the main locale of your thesis -- such as -\texttt{english}, and then typesetting the document again. - -The \texttt{texindy} command needs to be executed from within the -directory, where the \LaTeX\ source file is located. In Windows, -the command line can be opened in a directory by holding down the -\textsf{Shift} key and by clicking the right mouse button while -hovering the cursor over a directory. Select the \textsf{Open Command -Window Here} option in the context menu that opens shortly -afterwards. - -With online services -- such as Overleaf -- the commands are -executed automatically, although the locale may be erroneously -detected, or the \texttt{makeindex} tool (which is only able to -sort entries that contain digits and letters of the English -alphabet) may be used instead of \texttt{texindy}. In either case, -the index will be ill-sorted. - - \makeatletter\thesis@blocks@clear\makeatother - \phantomsection %% Print the index and insert it into the - \addcontentsline{toc}{chapter}{\indexname} %% table of contents. - \printindex - -\appendix %% Start the appendices. -\chapter{An appendix} -Here you can insert the appendices of your thesis. - -\end{document} diff --git a/macros/latex/contrib/fithesis/fithesis.dtx b/macros/latex/contrib/fithesis/fithesis.dtx index 4f0321875a..bfda069bcf 100644 --- a/macros/latex/contrib/fithesis/fithesis.dtx +++ b/macros/latex/contrib/fithesis/fithesis.dtx @@ -56,7 +56,7 @@ \gdef\thesis@version@number{#1} \gdef\thesis@version@date{#2} \gdef\thesis@version{#2 #1 fithesis3 MU thesis class}} -\thesis@versiondef{v0.3.50}{2018/03/25}} +\thesis@versiondef{v0.3.51}{2020/03/09}} % {\newwrite\f\openout\f=VERSION\write\f{\thesis@version}\closeout\f} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1337,7 +1337,7 @@ \let\thesis@blocks@preamble\relax \let\thesis@blocks@mainMatter\relax -% \end{macro} +% \end{macrocode} % Before expanding |\thesis@blocks@postamble| inside a \TeX{} % group, the |\thesis@postamble| macro defines the % \cs{thesis@pages@postamble} macro, writes the definition to the @@ -1742,16 +1742,10 @@ % \begin{macrocode} \def\thesis@lower#1{{% \let\ea\expandafter - \ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\lowercase\ea\ea\ea - \ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea{\ea\ea\ea\ea\ea\ea\ea\ea\ea - \ea\ea\ea\ea\ea\ea\@gobble\ea\ea\ea\string\ea\csname\csname the% - sis@#1\endcsname\endcsname}}} + \ea\MakeLowercase\ea{\csname thesis@#1\endcsname}}} \def\thesis@upper#1{{% \let\ea\expandafter - \ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\uppercase\ea\ea\ea - \ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea{\ea\ea\ea\ea\ea\ea\ea\ea\ea - \ea\ea\ea\ea\ea\ea\@gobble\ea\ea\ea\string\ea\csname\csname the% - sis@#1\endcsname\endcsname}}} + \ea\MakeUppercase\ea{\csname thesis@#1\endcsname}}} % \end{macrocode} % The \DescribeMacro{\thesis@@lower}|\thesis@@lower| % and \DescribeMacro{\thesis@@upper}|\thesis@@upper| diff --git a/macros/latex/contrib/fithesis/fithesis.pdf b/macros/latex/contrib/fithesis/fithesis.pdf Binary files differindex f165b907a0..237917e00b 100644 --- a/macros/latex/contrib/fithesis/fithesis.pdf +++ b/macros/latex/contrib/fithesis/fithesis.pdf diff --git a/macros/latex/contrib/fithesis/guide/DESCRIPTION b/macros/latex/contrib/fithesis/guide/DESCRIPTION deleted file mode 100644 index 3ec3e9b248..0000000000 --- a/macros/latex/contrib/fithesis/guide/DESCRIPTION +++ /dev/null @@ -1,2 +0,0 @@ -This directory can contain subdirectories with the user guides of -various universities. diff --git a/macros/latex/contrib/fithesis/guide/EXAMPLE/DESCRIPTION b/macros/latex/contrib/fithesis/guide/EXAMPLE/DESCRIPTION deleted file mode 100644 index 85abfadda9..0000000000 --- a/macros/latex/contrib/fithesis/guide/EXAMPLE/DESCRIPTION +++ /dev/null @@ -1,2 +0,0 @@ -This is an empty directory. You can rename it to match the name of -your university and place the respective user guides in here. diff --git a/macros/latex/contrib/fithesis/guide/mu/DESCRIPTION b/macros/latex/contrib/fithesis/guide/mu/DESCRIPTION deleted file mode 100644 index e56f7ccdc2..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/DESCRIPTION +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains the user guides of the Masaryk University -(Brno, Czech Republic). diff --git a/macros/latex/contrib/fithesis/guide/mu/Makefile b/macros/latex/contrib/fithesis/guide/mu/Makefile deleted file mode 100644 index de0838ef52..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -PDFFILES=fi.pdf sci.pdf ped.pdf med.pdf fss.pdf fsps.pdf phil.pdf \ - law.pdf econ.pdf -TEX=pdflatex --shell-escape -.PHONY: all clean -all: clean - make all -C resources - make $(PDFFILES) clean - -# This target typesets a PDF file. -%.pdf: %.tex guide.bib - $(TEX) $(basename $@).tex - biber $(basename $@) - $(TEX) $(basename $@).tex - $(TEX) $(basename $@).tex - -# This target prepares a TeX file. -%.tex: %.ins guide.dtx - xetex $< - -# This target removes any auxiliary files. -clean: - rm -f *.aux *.log *.out *.toc *.lot *.lof *.bbl *.blg *.pyg \ - *.bcf *-blx.bib *.run.xml *.tex - rm -rf _minted-* - -# This target removes any auxiliary files and the output files. -implode: clean - make implode -C resources - rm -f $(PDFFILES) diff --git a/macros/latex/contrib/fithesis/guide/mu/econ.ins b/macros/latex/contrib/fithesis/guide/mu/econ.ins deleted file mode 100644 index c7338030e9..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/econ.ins +++ /dev/null @@ -1,3 +0,0 @@ -\input ../../LICENSE -\generate{\file{econ.tex}{\from{guide.dtx}{econ}}} -\endbatchfile diff --git a/macros/latex/contrib/fithesis/guide/mu/econ.pdf b/macros/latex/contrib/fithesis/guide/mu/econ.pdf Binary files differindex 9fe48dc1cd..e545f46a10 100644 --- a/macros/latex/contrib/fithesis/guide/mu/econ.pdf +++ b/macros/latex/contrib/fithesis/guide/mu/econ.pdf diff --git a/macros/latex/contrib/fithesis/guide/mu/fi.ins b/macros/latex/contrib/fithesis/guide/mu/fi.ins deleted file mode 100644 index 4fbb6baf6e..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/fi.ins +++ /dev/null @@ -1,3 +0,0 @@ -\input ../../LICENSE -\generate{\file{fi.tex}{\from{guide.dtx}{fi}}} -\endbatchfile diff --git a/macros/latex/contrib/fithesis/guide/mu/fi.pdf b/macros/latex/contrib/fithesis/guide/mu/fi.pdf Binary files differindex a4a4760c70..b8288cfdc6 100644 --- a/macros/latex/contrib/fithesis/guide/mu/fi.pdf +++ b/macros/latex/contrib/fithesis/guide/mu/fi.pdf diff --git a/macros/latex/contrib/fithesis/guide/mu/fsps.ins b/macros/latex/contrib/fithesis/guide/mu/fsps.ins deleted file mode 100644 index c100f3842f..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/fsps.ins +++ /dev/null @@ -1,3 +0,0 @@ -\input ../../LICENSE -\generate{\file{fsps.tex}{\from{guide.dtx}{fsps}}} -\endbatchfile diff --git a/macros/latex/contrib/fithesis/guide/mu/fsps.pdf b/macros/latex/contrib/fithesis/guide/mu/fsps.pdf Binary files differindex 0cc929e5b9..8147db1af0 100644 --- a/macros/latex/contrib/fithesis/guide/mu/fsps.pdf +++ b/macros/latex/contrib/fithesis/guide/mu/fsps.pdf diff --git a/macros/latex/contrib/fithesis/guide/mu/fss.ins b/macros/latex/contrib/fithesis/guide/mu/fss.ins deleted file mode 100644 index 40ea2a348d..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/fss.ins +++ /dev/null @@ -1,3 +0,0 @@ -\input ../../LICENSE -\generate{\file{fss.tex}{\from{guide.dtx}{fss}}} -\endbatchfile diff --git a/macros/latex/contrib/fithesis/guide/mu/fss.pdf b/macros/latex/contrib/fithesis/guide/mu/fss.pdf Binary files differindex a6050db64f..e695f13620 100644 --- a/macros/latex/contrib/fithesis/guide/mu/fss.pdf +++ b/macros/latex/contrib/fithesis/guide/mu/fss.pdf diff --git a/macros/latex/contrib/fithesis/guide/mu/guide.bib b/macros/latex/contrib/fithesis/guide/mu/guide.bib deleted file mode 100644 index 5244480fd2..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/guide.bib +++ /dev/null @@ -1,54 +0,0 @@ -@book{latex, - title={\LaTeX}, - month={March}, - year={2013}, - publisher={Wikibooks.org}, - url={http://en.wikibooks.org/wiki/LaTeX}, - urldate={2015-05-03}} -@manual{veryshortlatex, - title={The very short guide to typesetting with \LaTeX{}}, - month={January}, - year={2013}, - publisher={Silmaril Consultants}, - url={http://tug.ctan.org/info/latex-veryshortguide/veryshortguide.pdf}, - urldate={2015-05-03}} -@manual{shortlatex, - title={A short introduction to \LaTeX{}}, - month={December}, - year={1995}, - author={Allin Cottrell}, - url={http://ricardo.ecn.wfu.edu/~cottrell/ecn297/latex_tut.pdf}, - urldate={2015-05-03}} -@manual{longlatex, - author={Tobias Oetiker and Hubert Partl and Irene Hyna and Elisabeth Schlegl}, - title={The Not So Short Introduction to \LaTeXe\ or \LaTeXe\ in - 157 minutes}, - year={2014}, - month={October}, - url={http://tobi.oetiker.ch/lshort/lshort.pdf}, - urldate={2015-05-03}} -@book{rybicka03, - author={Jiří Rybička}, - edition={3}, - title={\LaTeX\ pro začátečníky}, - publisher={Konvoj}, - place={Brno}, - year={2003}, - isbn={80-7302-049-1}} -@manual{satrapa11, - author={Pavel Satrapa}, - title={\LaTeX\ pro pragmatiky}, - place={Liberec}, - year={2011}, - month={June}, - url={http://mirror.ctan.org/info/czech/latex-pro-pragmatiky/latex-pro-pragmatiky.pdf}, - urldate={2015-05-03}} -@manual{novotny15, - author={Vít Novotný and Daniel Marek and Jan Pavlovič and Petr - Sojka}, - title={The \textsf{fithesis3} class for the typesetting of theses - written at the Masaryk University in Brno}, - place={Brno}, - year={2015}, - url={http://mirrors.ctan.org/macros/latex/contrib/fithesis/fithesis.pdf}, - urldate={2015-11-11}} diff --git a/macros/latex/contrib/fithesis/guide/mu/guide.dtx b/macros/latex/contrib/fithesis/guide/mu/guide.dtx deleted file mode 100644 index b8f74355e9..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/guide.dtx +++ /dev/null @@ -1,1121 +0,0 @@ -% \begin{macrocode} -\documentclass[digital,nocover,nolot]{fithesis3} -\usepackage[english]{babel} -\usepackage{hologo} -\usepackage{fancyvrb} -\usepackage{minted} -\usepackage{ltxcmds} -\usepackage{tabularx} -\makeatletter -\thesissetup{ - title=A fithesis3 user guide for the \thesis@english@facultyName, - TeXtitle=A \textit{fithesis3} user guide\medskip\\\Large for the - \thesis@english@facultyName, - extra={ - titleCs=Příručka šablony fithesis3 pro - Přírodovědeckou fakultu, - TeXtitleCs=Příručka šablony \textit{fithesis3}\medskip\\ pro - Přírodovědeckou fakultu, - }, - type=bc, - department=Department of Computer Graphics and Design, - extra={ - departmentCs=Katedra počítačové grafiky a designu, - }, - programme=Applied Informatics, - extra={ - programmeCs=Aplikovaná informatika, - }, - field=Typesetting, - extra={ - fieldCs=Sazba, - }, - titleEn=\thesis@title, - departmentEn=\thesis@department, - programmeEn=\thesis@programme, - fieldEn=\thesis@field, - author=Vít Novotný, - advisor={Doc.\ RNDr.\ Petr Sojka, Ph.D.}, - assignment={}, - keywords={thesis, typesetting, LaTeX}, - TeXkeywords={thesis, typesetting, \LaTeX{}}, - keywordsEn=\thesis@keywords, - TeXkeywordsEn=\thesis@TeXkeywords, - extra={ - keywordsCs={závěrečné práce, sazba, LaTeX}, - TeXkeywordsCs={závěrečné práce, sazba, \LaTeX{}}, - }, - abstract={% - \textsf{Fithesis3} is a \LaTeX{} document class, which - streamlines the typesetting of the mandatory parts of theses, so - that the author can focus at content alone. \textsf{Fithesis3} - can be used to write theses in various languages across the - faculties of the \thesis@english@universityName. - - This document describes the installation of the - \textsf{fithesis3} class, its configuration and its use at the - \thesis@english@facultyName. As a demonstration of its - capabilities, this document was typeset using the - \textsf{fithesis3} class.}, - extra={ - abstractCs={ - \textsf{Fithesis3} je šablona pro formát \LaTeX{}, která - usnadňuje přípravu povinných částí závěrečných prací, aby se - autor mohl soustředit pouze na obsah. \textsf{Fithesis3} lze - použít pro přípravu závěrečných prací v různých jazycích - napříč fakultami Masarykovy Univerzity. - - Dokument popisuje instalaci šablony \textsf{fithesis3}, její - konfiguraci a použití na Přírodovědecké fakultě. Pomocí - šablony byl připraven i tento dokument. - }, - }, - abstractEn=\thesis@abstract, - faculty=\jobname, - bib=guide.bib, - autoLayout=false} -\makeatother -\thesisload% The menukeys package does not play nice, when it is - \usepackage[os=win]{menukeys}% loaded before BibLaTeX. -\begin{document} - \makeatletter\thesis@preamble\makeatother - \chapter{Introduction} - To use the \textsf{fithesis3} class, you can use an online - \LaTeX{} editor, such as Overleaf,% - \footnote{Overleaf \textsf{fithesis3} -%<*sci> - and \textsf{sci.muni.thesis} -%</sci> - templates are located at - \url{http://www.overleaf.com/gallery/tagged/muni}.} - which allows you to skip the installation described in Section - \ref{sec:install} completely. -%<*sci> - Beside \textsf{fithesis3}, the \textsf{sci.muni.thesis} \LaTeX\ - package, as well as templates for common word processors, can - likewise be used for the preparation of theses at the - \makeatletter\thesis@english@facultyName\makeatother.\footnote{% - For more information about the alternative templates, see - \url{http://www.sci.muni.cz/cz/BcMgrStudium/Legislativa/Sablony}.} -%</sci> - -%<*fi> - {\makeatletter\newcount\thguide@tl\expandafter\thguide@tl\the - \year\if\month<7\advance\thguide@tl-1\fi\makeatother - Another way to avoid installation is to use any public-access - computer at the \makeatletter\thesis@english@facultyName - \makeatother\ that runs Microsoft Windows. By running - \begin{center} - \makeatletter\menu[,]{Start,Programs,Document Tools,TeXLive% - \the\thguide@tl\ namapovani na T}\makeatother - \end{center} you can mount the faculty \TeX\ Live installation to - drive \verb'T:\'. Consequently, you can either use the command - line to run commands from the \TeX{} distribution by running - \begin{center} - \makeatletter\menu[,]{Start,Programs,Document Tools,TeXLive% - \the\thguide@tl\ CMD}\makeatother - \end{center} - or you can use the graphical \TeX\ editor \TeX Works by running - \begin{center} - \makeatletter\menu[,]{Start,Programs,Document Tools,TeXWorks+% - TeXLive\the\thguide@tl}\makeatother - \end{center}} - - Yet another way to avoid installation is to either connect to the - Linux server at \url{aisa.fi.muni.cz} over SSH, or use any - public-access computer at the - \makeatletter\thesis@english@facultyName\makeatother\ that runs - Linux or Mac OS, and load the faculty \TeX\ Live installation by - issuing the \texttt{module add texlive} command on the command - line. If you choose this approach, you can also skip the entire - Section \ref{sec:install}, although a certain degree of - proficiency in working with a Unix operating system is required - compared to the other methods. -%</fi> - \makeatletter - % This macro kerns an icon next to a word. - \def\thguide@iconkern{\kern.2ex} - \makeatother -%<*sci> - \makeatletter - % This macro typesets the URL of a math.muni server. - \def\thguide@server#1{% - \includegraphics[height=.5em]{resources/#1.pdf}% - \thguide@iconkern\url{#1.math.muni.cz}} - \makeatother - Another way to avoid installation is to use the faculty \TeX\ Live - installation by connecting to the Linux server at - \makeatletter\thguide@server{yoda}\makeatother\ or - \makeatletter\thguide@server{vader}\makeatother\ over SSH - (through port 22222) or over the remote desktop - protocol\footnote{ - For more information about connecting through the remote - desktop protocol, see - \url{http://www.math.muni.cz/aktuality/347-vzdaleny-pristup-yoda-vader.html}.} - (through port 13556), or to use any public-access computer at the - \makeatletter\thesis@english@facultyName\makeatother\ that runs - Linux. If you choose this approach, you can also skip this entire - section, although a certain degree of proficiency in working with - a Unix operating system is required compared to the first method. -%</sci> - - \section{Installation}\label{sec:install} - \subsection{Installing a \TeX{} distribution} - If you decided not to use a public \TeX{} distribution, you will - need to install one locally before proceeding further. A \TeX{} - distribution contains tools and packages that are going to help - you with preparing and typesetting your \LaTeX\ documents. - - The two major \TeX{} distributions that you can install are - Mik\TeX,\footnote{Mik\TeX\ can be acquired from - \url{http://miktex.org/2.9/setup}.} which can be used with the - Microsoft Windows operating system, and \TeX\ Live,\footnote{% - \TeX\ Live can be acquired from - \url{http://www.tug.org/texlive}.} which can be installed on - both Unix and Windows operating systems. The advantages of - Mik\TeX\ over \TeX Live include refined graphical user interface - and the ability to install new packages on the fly. - - Along with Mik\TeX{}, you will also need to install a Perl - interpreter, such as Strawberry Perl.\footnote{Strawberry Perl can - be downloaded from \url{http://strawberryperl.com/}.} \TeX\ Live - installs a Perl interpreter by default. - - \subsection{Installing packages}\label{sec:req-packages} - In order to function properly, \textsf{fithesis3} needs the - following packages packages to be installed in your \TeX\ - distribution: \textsf{keyval}, \textsf{etoolbox}, - \textsf{ifxetex}, \textsf{ifluatex}, \textsf{inputenc}, - \textsf{xcolor}, \textsf{graphix}, \textsf{pdfpages}, - \textsf{hyperref}, \textsf{microtype}% - {\makeatletter - % This macro typesets loaded packages. - \def\thguide@prnpkg#1{\ltx@ifpackageloaded - {#1}{, \textsf{#1}}{}}% - \thguide@prnpkg{tikz}% - \thguide@prnpkg{changepage}% - \thguide@prnpkg{setspace}% - \thguide@prnpkg{geometry}}, - \textsf{fontspec}, \textsf{unicode-math}, \textsf{mathpazo}, - \textsf{tex-gyre-pagella}, \textsf{lm}, \textsf{cmap}, - \textsf{fontenc}, \textsf{tabularx}, \textsf{tabu}, - \textsf{booktabs}, \textsf{csquotes}, \textsf{biblatex}, - \textsf{fithesis}. - - {\makeatletter %% A placeholder string macro - \def\thguide@placeholder#1{$\langle$\textit{#1}$\rangle$} - If you performed a full installation of \TeX\ Live, you should - already have all the required packages installed. If you are - using a partial installation of \TeX\ Live, you can use the - \texttt{tlmgr} command-line tool by executing \texttt{tlmgr - install} \thguide@placeholder{pkgname}, where - \thguide@placeholder{pkgname} is the name of the package you wish - to install. In some cases, \TeX\ Live may assign a different name - to a package. To find out the \TeX\ Live name of a package, open - the - \texttt{http://www.ctan.org/pkg/}\thguide@placeholder{pkgname} - webpage in a web browser. It should contain the following text: - \begin{center} - Contained in \TeX\ Live as \thguide@placeholder{texlivename} - \end{center} - where \thguide@placeholder{texlivename} corresponds to the \TeX\ - Live name of the package. Use this name instead of - \thguide@placeholder{pkgname} with \texttt{tlmgr}. - Alternatively, you can download the packages manually from - \texttt{http://www.ctan.org\discretionary{/}{/}{/}pkg/}% - \thguide@placeholder{pkgname} and extract them into the - \texttt{texmf/} directory located in your user home directory. - Mind that the packages themselves may depend on other - packages; if you are using a partial installation of \TeX\ Live, - you will have to resolve these dependencies manually by - inspecting the documentation of each package. - - If you use Mik\TeX\ and you enabled the \textit{over the air - installation of packages} during the installation, Mik\TeX\ will - automatically download all the required packages, when you first - typeset a \textsf{fibeamer} document. If you didn't enable this - feature, you will need to enter the Mik\TeX\ package manager by - running - \begin{center} - \menu[,]{Start,MikTeX,MikTeX Package Manager (Admin)} - \end{center} - and download the packages manually through the user interface. - In some cases, Mik\TeX\ may assign a different name to a - package. To find out the Mik\TeX\ name of a package, open the - \texttt{http://www.ctan.org\discretionary{/}{/}{/}pkg/}% - \thguide@placeholder{pkgname} webpage in a web browser, - where \thguide@placeholder{pkgname} is the name of the - package you wish to install. It should contain the following - text: - \begin{center} - Contained in Mik\TeX\ as \thguide@placeholder{miktexname} - \end{center} - where \thguide@placeholder{miktexname} corresponds to the - Mik\TeX\ name of the package. If you still can't find the - package, try synchronizing the package database by selecting - \begin{center} - \menu[,]{Repository,Synchronize} - \end{center} - from the menu bar of the Mik\TeX\ package manager. Mind that the - packages themselves may depend on other packages; if you disabled - the over the air installation of packages, you will have to - resolve these dependencies manually by inspecting the - documentation of each package.} - - If you wish to use a newer version of \textsf{fithesis3} than the - one that is available in your \TeX\ distribution, you should - download a file named \texttt{fithesis.tds.zip} containing the - version of the package you wish to use and place it in a root - directory that is recognized by your \TeX\ distribution. In - \TeX\ Live,\footnote{For more information about the \TeX\ Live root - directories, see - \url{http://www.tug.org/texlive/doc/texlive-en/texlive-en.html\#x1-110002.3}, - Chapter 2.3.} one of such directories is the \texttt{texmf/} - folder in your user home directory. In Mik\TeX,\footnote{ - For more information about the Mik\TeX root - directories, see - \url{http://docs.miktex.org/manual/localadditions.html}.} - the list of recognized root directories can be gleaned by - running - \begin{center} - \menu[,]{Start,MikTeX,MikTeX Options (Admin),Roots} - \end{center} - - \section{Picking a \TeX\ engine} - There are several programs, called \TeX\ engines, that you can - use to typeset \textsf{fithesis3} \LaTeX{} source files into - displayable \textsc{pdf} documents. The ones we will discuss are - \hologo{pdfTeX} and \Hologo{LuaTeX}. - - \Hologo{pdfTeX} is the more conservative choice and most \TeX\ - editors use \hologo{pdfTeX} as the default \TeX\ engine. The main - advantage \Hologo{LuaTeX} over \hologo{pdfTeX} for a - \textsf{fithesis3} user is the ability to use standard OpenType - and TrueType fonts installed on your system, whereas - \hologo{pdfTeX} is confined to the fonts installed in your \TeX\ - distribution. - - If the ability to use arbitrary fonts within your documents - interests you, Chapter 3 of the \textsf{fontspec} package - manual\footnote{The \textsf{fontspec} package manual is available - at \url{http://mirrors.ctan.org/macros/latex/contrib/fontspec/fontspec.pdf}.} - should provide you with the relevant information. If you are - only going to use the fonts present in the \TeX{} distribution or - if you do not intend to change the preset \textsf{fithesis3} - fonts at all, you can safely use \hologo{pdfTeX}, which is - currently also considerably faster than \Hologo{LuaTeX}. - - \section{Creating and typesetting a \textsf{fithesis3} document} - Before using the \textsf{fithesis3} class, it is useful to be - familiar with the \LaTeX{} typesetting system. A good way to get - started is to read one of the introductory texts in English - \parencite{veryshortlatex,shortlatex,longlatex,latex} or in Czech - \parencite{rybicka03,satrapa11}. Taking one of the - \textit{FI:PB029}, \textit{PřF:M5751}, or \textit{FF:PLIN028} - courses taught at the \makeatletter\thesis@english@universityName - \makeatother\ is also helpful. - - To become familiar with \textsf{fithesis3}, you are encouraged to - inspect the example documents \makeatletter - \texttt{\thesis@faculty-pdflatex.pdf} and - \texttt{\thesis@faculty-lualatex.pdf} as well as their \LaTeX{} - source files that are named \texttt{\thesis@faculty-pdflatex.tex} - and \texttt{\thesis@faculty-lualatex.tex}. The example documents - are distributed along with the package inside the - \texttt{example/} directory.\footnote{The example - \textsf{fithesis3} documents are also available online at - \url{http://mirror.ctan.org/macros/latex/contrib/fithesis/example/mu} - To typeset the example documents, you need to download the - \texttt{example.bib} file as well, as it contains the - bibliography database used in the examples.}. By modifying and - by typesetting these \LaTeX{} source files using either the - \hologo{pdfTeX} or the \Hologo{LuaTeX} engine, you can quickly - gain a working knowledge of \LaTeX{} and use these source files - as the basis for your thesis. - - If you are using an online editor, such as Overleaf% - \footnote{Overleaf \textsf{fithesis3} templates are located at - \url{http://www.overleaf.com/gallery/tagged/muni}.}, \LaTeX{} - source files will be typeset automatically, as you edit them. The - \TeX{} engine can be selected inside the - \includegraphics[height=1.3ex]{resources/cog.pdf}\makeatletter - \thguide@iconkern\makeatother project settings. - - If you are using a graphical \TeX{} editor, such as \TeX - works,\footnote{\TeX works can be downloaded from - \url{http://www.tug.org/texworks/}.} you can typeset a \LaTeX{} - source file by opening the source file from within the editor and - running either the \hologo{pdfLaTeX} or \Hologo{LuaLaTeX} - (depending on your choice of \TeX\ engine) command from the task - bar. The command needs to be executed at least twice to produce - the table of contents, the list of tables, and the list of - figures. Additional commands for the typesetting of the - bibliography and the index are described in the example - documents. - - If you are using the command line, you can typeset \LaTeX{} - source files by running either the \texttt{pdflatex - -{}-shell-escape \textit{name.tex}} command or the - \texttt{lualatex \textit{name.tex}} command depending on your - chosen \TeX\ engine, where \texttt{\textit{name.tex}} - corresponds to the name of a \LaTeX\ source file. In the case of - the two aforementioned example files, the corresponding commands - would be - \begin{center}\makeatletter - \texttt{pdflatex -{}-shell-escape \thesis@faculty-pdflatex.tex} - for \hologo{pdfLaTeX},\\and \texttt{lualatex \thesis@faculty-% - lualatex.tex} for Lua\LaTeX{}. - \makeatother\end{center} - The command needs to be executed from within the directory, where - the \LaTeX\ source file is located. In Windows, the command line - can be opened in a directory by holding down the \keys{Shift} key - and by clicking the right mouse button while hovering the cursor - over a directory. Select the \menu{Open Command Window Here} - option in the context menu that opens shortly afterwards. The - command also needs to be executed at least twice. - - Beside Overleaf and \TeX works, any text editor can be used to - modify \LaTeX{} source files. However, it is important to ensure - that the text editor saves the \LaTeX{} source files in the UTF-8 - text encoding. A \LaTeX{} file saved in a different text encoding - is likely to be either impossible to typeset or to produce - unexpected output. - - \chapter{Configuration} - This chapter provides a full list of the settings that can be - used to set up and customize the \textsf{fithesis3} class. - - \section{Setting the class options} - At the beginning of a \textsf{fithesis3} \LaTeX{} source file, - the command - \begin{minted}{latex} -\documentclass[option1, option2, ..., optionN]{fithesis3} - \end{minted} - is used. The following list summarizes the options that are - supported by the \textsf{fithesis3} class and their meaning. - Options that are enabled by default are - {\makeatletter - % This macro formats a default class option. - \def\thguide@default{\itshape}% - % This macro formats a class option. - \let\thguide@itemfmt\textbf - % This macro formats a default printed option. - \def\thguide@printed{\color{blue}}% - % This macro formats a default digital option. - \def\thguide@digital{\color{red}}% - \thguide@itemfmt{\thguide@default set in italics}. - \begin{description} - \item[digital] This option sets the options that are the - default for the digital version of a thesis. These options - are \thguide@itemfmt{\thguide@default \thguide@digital set in - red}. - \item[\thguide@default printed] This option sets the options - that are the default for the printed version of a thesis. - These options are \thguide@itemfmt{\thguide@default - \thguide@printed set in blue}. - \item[10pt, 11pt, \thguide@default12pt] - These options set the font size of the main text to either - 10\,pt, 11\,pt, or 12\,pt, respectively. Using the 12\,pt - font size with the preset fonts -%<*fi,fsps,fss,law,ped,phil,sci> - should result in the optimal line width of approximately 66 - characters in one-column typesetting. With two-column - typesetting, the 10\,pt font size is a better choice, - yielding approximately the optimal 45 characters per line. -%</fi,fsps,fss,law,ped,phil,sci> -%<*econ,med> - results in the excessive line width of approximately 86 - characters, which wears the eye of the reader, but is - required by the page geometry specified by the formal - requirements of the \thesis@english@facultyName. With - two-column typesetting, the 11\,pt font size yields - approximately the optimal 45 characters per line. -%</econ,med> - \item[oneside] - This option enables one-sided typesetting. One-sided - typesetting and printing is generally discouraged. Use only - if you don't have access to a double-sided printer, or if - one-sided typesetting is a formal requirement at your - faculty. - \item[\thguide@default twoside] - This option enables double-sided typesetting. Double-sided - typesetting is generally regarded as more visually pleasing - and double-sided printing consumes less paper. Use at least - 120 grams per square meter paper to prevent show-through. - - \emph{You may feel compelled to use \thguide@itemfmt{twoside} - for the printed version of the thesis and \thguide@itemfmt{% - oneside} for the digital version to reduce the number of - blank pages. This will, however, cause the page numbers to - differ between the printed and the digital version, which - will make it difficult to cite your work. Do not do it.} - \item[\thguide@default onecolumn] - This option causes the main text of the thesis to be set in - one column. - \item[twocolumn] - This option causes the main text of the thesis to be set in - two columns. The two-column format is unconventional in - theses% -%<*econ,med> - , although it is more readable and uses the page more - effectively in the case of the \thesis@english@facultyName -%</econ,med> - ; you should consult its use with your thesis advisor. If you - decide to use the two-column format, remember that you also - need to change the font size option (\thguide@itemfmt{10pt}, - \thguide@itemfmt{11pt}, \thguide@itemfmt{12pt}). - \item[draft] - This option replaces any images with blank rectangles and - marks all overfull lines with black boxes. Other packages - that you use may behave differently\footnote{ - For more information about the effects of the draft option - on various packages, see - \url{http://tex.stackexchange.com/a/49369/70941}. - } with the \thguide@itemfmt{draft} option specified. This can - be useful, if you are going to print and proofread a draft of - your document. - \item[\thguide@default final] - Unlike the \thguide@itemfmt{draft} option, this option - typesets the release version of the document. - \item[\thguide@default palatino] - This option sets the roman text font family and the - mathematical font family to Palatino. - \item[nopalatino] - This option prevents \textsf{fithesis3} from setting up the - fonts. The user must set the fonts manually in the preamble - of the document. -%<*fi> - - The \thesis@english@facultyName\ has licensed the Comenia - font family. If you wish to use it in your thesis, you should - contact Doc.\ RNDr.\ Petr Sojka, Ph.D. - - If you are typesetting your thesis on a public-access - computer at the \thesis@english@facultyName\ or on the - \url{aisa.fi.muni.cz} Linux server, you can use the - commercial Math Time mathematical font family, -%</fi> -%<*sci> - - If you are typesetting your thesis on a public-access - computer at the \thesis@english@facultyName\ that runs Linux - or on either the \thguide@server{yoda} or - \thguide@server{vader} Linux server, you can also use the - commercial Math Time mathematical font family, -%</sci> -%<*sci,fi> - which goes well with the \TeX\ Gyre Termes text font family. - To use Math Time and \TeX\ Gyre Termes within your thesis, - the preamble of your document should look as follows: - \begin{minted}{latex} -\documentclass[nopalatino, ...]{fithesis3} -\usepackage{cmap} -\usepackage[T1]{fontenc} -\usepackage{tgtermes} -\usepackage{mathtime} -%% Here goes the rest of the document. - \end{minted} -%</sci,fi> - \item[\thguide@default\thguide@digital color] - This option enables the use of colors. Note that all color - definitions and colored logos are currently in \textsf{rgb}, - which makes this option generally unsuitable for the printed - version of the document. Although most printers will accept - \textsf{rgb} documents, the resulting colors may not match - what you see on screen. - - Unless you have a compelling reason not to, you should use - this option in the electronic version that you are going to - publish online. - \item[\thguide@default\thguide@printed monochrome] - This option disables colors. Disabling colors is generally - discouraged, unless you don't have access to a color printer. - However, due to the prevalence of monochrome printing, this - option is the default. - \item[\thguide@default microtype] - This option sets up microtypographic extensions,\footnote{ - For more information about the \TeX\ engine - microtypographic extensions, see - \url{http://mirrors.ctan.org/macros/latex/contrib/microtype/microtype.pdf}. - } which results in visually more pleasing paragraphs of - text. - \item[nomicrotype] - This option prevents \textsf{fithesis3} from setting up - microtypographic extensions. - \item[table] - This option redefines some of the \LaTeX{} table environments - (\texttt{tabular}, \texttt{tabularx}, and \texttt{tabu}) to - use alternating colors for odd and even rows. This option - only works, if the \thguide@itemfmt{color} option is enabled. - \item[\thguide@default oldtable] - This option instructs the style not to redefine any table - environments. - \item[\thguide@default lot] - This option causes the list of tables to be included in the - front matter of the thesis. - \item[nolot] - This option removes the list of tables from the front matter - of the thesis. - \item[\thguide@default lof] - This option causes the list of figures to be included in the - front matter of the thesis. - \item[nolof] - This option removes the list of figures from the front matter - of the thesis. - \item[\thguide@default\thguide@digital cover] - This option instructs the class to typeset the cover of the - thesis on the first pages of the resulting document. A cover - should be generally present in the electronic version of the - document for completeness. The cover should not appear inside - the printed document and should only serve as a template for - the text imprinted on the front cover of the thesis cover. - \item[\thguide@default\thguide@printed nocover] - This option forbids the typesetting of the thesis cover. - Use, if you are typesetting the printed version of a thesis - and you are not going to have a cover made for your thesis. -%<*sci> - \item[abstractonsinglepage] - This option causes all the abstracts to be typeset on a - single page. This option has no effect for locales other than - Czech and English, as more than two abstracts will always be - typeset on a single page. -%</sci> - \end{description}} - - \section{Filling out the metadata} - Beside the class options, you can also fill out information about - your thesis by inserting the command - \begin{minted}{latex} -\thesissetup{ - key1 = {value1}, - key2 = {value2}, - ... - keyN = {valueN}, -} - \end{minted} - into the preamble of your thesis. The following list summarizes - the keys and values that are recognized by the \textsf{fithesis3} - class and are meaningful for the \makeatletter - \thesis@english@facultyName\makeatother. - - {\makeatletter\let\thguide@itemfmt\textbf - \begin{description} - \item[title] - This key can be used to specify the title of the thesis. The - value will be stored as one of the properties of the output - \textsc{pdf} file; do not use any \LaTeX\ formatting commands - within the value. - \item[TeXtitle] - This key can be used to specify the title of the thesis. The - value will be typeset in the resulting \textsc{pdf} document, - so you can use \LaTeX\ formatting commands within the value. - If the value of the key is unspecified, the value of the - \thguide@itemfmt{title} key will be used instead. -%<*sci,econ> - \item[titleEn] - This key can be used to specify the English title of the - thesis. Do not use any \LaTeX\ formatting commands within - the value. -%</sci,econ> -%<*econ> - If you are typesetting your thesis in English, this value - does not need to be specified. - \item[TeXtitleEn] - This key can be used to specify the English title of the - thesis. The value will be typeset in the resulting - \textsc{pdf} document, so you can use \LaTeX{} formatting - commands within the value. If the value of the key is - unspecified, the value of the \thguide@itemfmt{titleEn} key - will be used instead. If you are typesetting your thesis in - English, this value does not need to be specified. -%</econ> - \item[author] - This key can be used to specify the full name of the author. - \item[keywords] - This key can be used to specify a list of keywords for your - thesis. The value will be stored as one of the properties of - the output \textsc{pdf} file; do not use any \LaTeX{} - formatting commands within the value. -%<*econ,fi,fss,law,med,ped> - \item[TeXkeywords] - This key can be used to specify a list of keywords for your - thesis. The value will be typeset in the resulting - \textsc{pdf} document, so you can use \LaTeX\ formatting - commands within the value. If the value of the key is - unspecified, the value of the \thguide@itemfmt{keywords} key - will be used instead. -%</econ,fi,fss,law,med,ped> -%<*econ,fss,law,med,ped> - \item[keywordsEn] - This key can be used to specify a list of English keywords - for your thesis. Do not use any \LaTeX\ formatting commands - within the value. If you are typesetting your thesis in - English, this value does not need to be specified. - \item[TeXkeywordsEn] - This key can be used to specify a list of English keywords - for your thesis. The value will be typeset in the resulting - \textsc{pdf} document, so you can use \LaTeX\ formatting - commands within the value. If you are typesetting your thesis - in English, this value does not need to be specified. -%</econ,fss,law,med,ped> -%<*econ,fi,med,ped,sci> - \item[advisor] - This key can be used to specify the full name of the thesis - advisor. -%</econ,fi,med,ped,sci> - \item[gender] - This key can be used to specify the gender of the author. It - is used to determine the suffixes employed in the Czech and - Slovak locales. If you are typesetting your document in - English, you don't need to specify this information. The - valid values include: - \begin{description} - \item[m] Male - \item[f] Female - \end{description} - \item[type] - This key can be used to specify the type of the thesis. The - recognized types of theses include: - \begin{description} - \item[bc] Bachelor's thesis - \item[mgr] Master's thesis -%<*fi> - \item[prop] Doctoral thesis proposal -%</fi> - \item[d] Doctoral thesis - \item[r] Rigorous thesis - \end{description} - \item[faculty] - This key can be used to set the faculty at which the thesis - is going to be defended. To choose the - \thesis@english@facultyName, use - \thguide@itemfmt{\thesis@faculty} as the value. -%<*law,med,ped,phil,econ> - \item[department] - This key can be used to specify the name of the department at - which the thesis is going to be defended. -%</law,med,ped,phil,econ> -%<*phil> - Specifying \texttt{kisk} as the department name changes the - output to fit the requirements of the Division of Information - and Library Studies. -%</phil> -%<*sci> - \item[departmentEn] - This key can be used to specify the English name of the - department at which the thesis is going to be defended. - If you are typesetting your thesis in English, this value - does not need to be specified. - \item[programme] - This key can be used to specify the name of the author's - study programme. - \item[programmeEn] - This key can be used to specify the English name of the - author's study programme. If you are typesetting your thesis - in English, this value does not need to be specified. -%</sci> -%<*econ,fsps,med,phil,sci> - \item[field] - This key can be used to specify the name of the author's - field of study. -%</econ,fsps,med,phil,sci> -%<*sci> - \item[fieldEn] - This key can be used to specify the English name of the - author's field of study. -%</sci> - \item[date] - This key can be used to specify the date of the thesis - submission in the \texttt{YYYY/MM/DD} format, where - \texttt{YYYY} stands for the full year, \texttt{MM} stands - for the month, and \texttt{DD} stands for the day of month. -%<*econ,fi,fss,law,sci> - \item[assignment] - This key can be used to specify a list of \textsc{pdf} files - containing the scanned thesis assignment. The list should be - in the following format: - \begin{center} - \texttt{path/to/first/file.pdf, path/to/second/file.pdf,} - \ldots - \end{center} -%</econ,fi,fss,law,sci> - \item[bib] - This key can be used to specify a list of \textsc{bib} files - containing the bibliography databases. The list should be in - the following format: - \begin{center} - \texttt{path/to/first/file.bib, path/to/second/file.bib,} - \ldots - \end{center} - When this key is specified, the \textsf{fithesis3} class will - automatically typeset a bibliography section.\footnote{ - The bibliography will be typeset according to the - \textsc{ISO} 690:2010 standard using the - \texttt{biblatex-iso690} bibliography style. For more - information, see - \url{https://www.ctan.org/pkg/biblatex-iso690}. - } If you want more control over where and how the - bibliography is typeset, use the - \mintinline{latex}{\printbibliography[bibintoc]} command. - - When this key is not specified, no bibliography will be - produced, which provides the opportunity for the advanced user - to set up their bibliography management manually. -%<*econ,fi,fss,law,med,ped,sci> - \item[abstract] - This key can be used to specify the abstract of the thesis. -%</econ,fi,fss,law,med,ped,sci> -%<*econ,fss,law,med,ped,sci> - \item[abstractEn] - This key can be used to specify the English abstract of the - thesis. If you are typesetting your thesis in English, this - value does not need to be specified. -%</econ,fss,law,med,ped,sci> - \item[thanks] - This key can be used to specify the text of the - acknowledgements. - \item[declaration] - This key can be used to specify the text of the declaration. - If the value of the key is unspecified, the following text is - going to be used instead in the English locale: - ``\emph{\thesis@english@declaration}'' - \end{description} -%<*sci,econ> - \subsection{Extra metadata} - You can fill out extra information about your thesis by inserting - the command - \begin{minted}{latex} -\thesissetup{ - ... - extra = { - key1 = {value1}, - key2 = {value2}, - ... - keyN = {valueN}, - }, - ... -} - \end{minted} - into the preamble of your thesis. The following list summarizes - the keys and values that are recognized by the \textsf{fithesis3} - class and are meaningful for the \makeatletter - \thesis@english@facultyName\makeatother. - \begin{description} -%</sci,econ> -%<*sci> - \item[abstractCs] - This key can be used to specify the Czech abstract of the - thesis. If you are typesetting your thesis in Czech, this - value does not need to be specified. - \item[programmeCs] - This key can be used to specify the Czech name of the - author's study programme. If you are typesetting your thesis - in Czech, this value does not need to be specified. - \item[fieldCs] - This key can be used to specify the Czech name of the - author's field of study. - \item[titleCs] - This key can be used to specify the Czech title of the - thesis. Do not use any \LaTeX\ formatting commands within - the value. - \item[TeXtitleCs] - This key can be used to specify the Czech title of the - thesis. The value will be typeset in the resulting - \textsc{pdf} document, so you can use \LaTeX{} formatting - commands within the value. If you are typesetting your thesis - in Czech, this value does not need to be specified. - \item[keywordsCs] - This key can be used to specify a list of Czech keywords - for your thesis. Do not use any \LaTeX\ formatting commands - within the value. If you are typesetting your thesis in - Czech, this value does not need to be specified. - \item[TeXkeywordsCs] - This key can be used to specify a list of Czech keywords - for your thesis. The value will be typeset in the resulting - \textsc{pdf} document, so you can use \LaTeX\ formatting - commands within the value. If you are typesetting your thesis - in Czech, this value does not need to be specified. - \item[departmentCs] - This key can be used to specify the Czech name of the - department at which the thesis is going to be defended. - If you are typesetting your thesis in Czech, this value - does not need to be specified. -%</sci> -%<*econ> - \item[advisorCsGenitiv] - This key can be used to specify the the advisor's name in - genitive following Czech morphology. - \item[advisorSkGenitiv] - This key can be used to specify the the advisor's name in - genitive following Slovak morphology. -%</econ> -%<*sci,econ> - \end{description} -%</sci,econ> - The complete list of metadata keys can be found in Section 2.2 of - the technical documentation of the \textsf{fithesis3} class - \cite{novotny15}.} - - \chapter{Advanced usage} - This chapter contains a couple of tips for the advanced user, who - may wand to configure the class beyond what the class options and - the metadata settings offer. An understanding of how the main - routine of \textsf{fithesis3} works is beneficial. The main - routine is documented in Section 2.4 of the technical - documentation of the \textsf{fithesis3} class \cite{novotny15}. - - \section{Throubleshooting option clashes} - If you need to load a \texttt{package} with a specific set of - \texttt{options} and the package happens to be required by the - \textsf{fithesis3} class, as specified in Section - \ref{sec:req-packages}, you may experience an option clash error. - If this error occurs, prepend - \mintinline{latex}{\PassOptionsToPackage{options}{package}} before the - \mintinline{latex}{\documentclass[...]{fithesis3}} command. If you need to - configure the package, you can do that anywhere after the document preamble. - If the package needs to be configured within the preamble, you can load the - \textsf{fithesis3} style files prematurely using the - \mintinline{latex}{\thesisload} command as follows: - \begin{minted}{latex} -\documentclass[...]{fithesis3} -%% The preamble -\thesisload -%% Here goes the package configuration. -\begin{document} - %% The document -\end{document} - \end{minted} - Note that only a small portion of the packages loaded by - \textsf{fithesis3} is loaded with a specific set of options. The - rest of the packages is \emph{lazy-loaded} (loaded only if the - user hasn't already loaded them), in which case no clash is - possible. - - \section{Overriding changes made by style and locale files} - The \textsf{fithesis3} style files are loaded immediately before - the beginning of your document and may change values you would - like to set by yourself, such as the \LaTeX\ \texttt{tocdepth} - and \texttt{secnumdepth} counters. Locale files are also loaded - immediately before your document, which prevents you from - modifying locale strings from within the preamble of your - document. - - To overcome this limitation, you can load the style and locale - files prematurely using the \mintinline{latex}{\thesisload} command - as follows: - \begin{minted}{latex} -\documentclass[...]{fithesis3} -%% The preamble -\thesisload -%% Here go your changes. -\begin{document} - %% The document -\end{document} - \end{minted} - Although you may use the \mintinline{latex}{\thesisload} command - anywhere in the preamble, using the command before configuring - your metadata using the \mintinline{latex}{\thesissetup} command - will load all the wrong style and locale files not taking into - account your faculty and locale settings. - - Another danger is that \mintinline{latex}{\thesisload} command - loads the \textsf{hyperref} package, which adds hyperlinks and - \textsc{pdf} metadata into the resulting \textsc{pdf} document. - The \textsf{hyperref} package is rather delicate in that it needs - to be loaded after most other packages. Loading additional - packages after \mintinline{latex}{\thesisload} may therefore - cause these packages to work incorrectly. - - \section{Changing the layout} - If you are unsatisfied with the automatic arrangement of the - mandatory parts of the thesis, you may disable it using the - \texttt{autoLayout} metadata key: - \begin{minted}{latex} -\documentclass[...]{fithesis3} -\thesissetup{ -%<*econ> - faculty=econ, -%</econ> -%<*fi> - faculty=fi, -%</fi> -%<*fsps> - faculty=fsps, -%</fsps> -%<*fss> - faculty=fss, -%</fss> -%<*law> - faculty=law, -%</law> -%<*med> - faculty=med, -%</med> -%<*ped> - faculty=ped, -%</ped> -%<*phil> - faculty=phil, -%</phil> -%<*sci> - faculty=sci, -%</sci> - autoLayout=false} -\begin{document} - A document which, except for this line, - is completely empty. -\end{document} - \end{minted} - \noindent This results in a document that only consists of the main - matter of the thesis (see Figure \ref{fig:example02}). You can - now manually insert the preamble and the postamble: - \begin{minted}{latex} -\documentclass[...]{fithesis3} -\thesissetup{ -%<*econ> - faculty=econ, -%</econ> -%<*fi> - faculty=fi, -%</fi> -%<*fsps> - faculty=fsps, -%</fsps> -%<*fss> - faculty=fss, -%</fss> -%<*law> - faculty=law, -%</law> -%<*med> - faculty=med, -%</med> -%<*ped> - faculty=ped, -%</ped> -%<*phil> - faculty=phil, -%</phil> -%<*sci> - faculty=sci, -%</sci> - autoLayout=false} -\begin{document} - \makeatletter\thesis@preamble\makeatother - A document which once again contains all - the mandatory parts of a thesis. - \makeatletter\thesis@postamble\makeatother -\end{document} - \end{minted} - \begin{figure}[!bt] - \centering\makeatletter - \fbox{\includegraphics[clip,trim=2cm 24.5cm 2cm 4.5cm,% - width=0.975\textwidth]{resources/empty.pdf}} - \makeatother - \caption{A document with disabled \texttt{autoLayout}} - \label{fig:example02} - \end{figure} - We are now back to the original document. Instead of inserting - the \texttt{\string\th e\-sis\-@pre\-amble} and - \texttt{\string\th e\-sis\-@post\-amble} commands into the document, - we may however insert only certain sections at the beginning and - at the end of the document. - - The \texttt{\string\th e\-sis\-@preamble} and - \texttt{\string\th e\-sis\-@postamble} commands set up the proper - environment and execute the \texttt{\string - \th e\-sis\-@blocks\-@preamble} and - \texttt{\string\th e\-sis\-@blocks\-@postamble} commands. To - change the layout, it is sufficient to redefine the - \texttt{\string \th e\-sis\-@blocks\-@pre\-amble} and - \texttt{\string\th e\-sis\-@blocks\-@post\-amble} commands. - - To create a document that only contains the title page at the - beginning of the document and the list of tables at the end of - the document, we would use the following code: - \begin{minted}{latex} -\documentclass[...]{fithesis3} -\thesissetup{ -%<*econ> - faculty=econ, -%</econ> -%<*fi> - faculty=fi, -%</fi> -%<*fsps> - faculty=fsps, -%</fsps> -%<*fss> - faculty=fss, -%</fss> -%<*law> - faculty=law, -%</law> -%<*med> - faculty=med, -%</med> -%<*ped> - faculty=ped, -%</ped> -%<*phil> - faculty=phil, -%</phil> -%<*sci> - faculty=sci, -%</sci> - autoLayout=false} -\begin{document} - \makeatletter - \def\thesis@blocks@preamble{\thesis@blocks@titlePage} - \thesis@preamble - \makeatother - A document that only contains the title page and the - list of tables. - \makeatletter - \def\thesis@blocks@postamble{\thesis@blocks@lot} - \thesis@postamble - \makeatother -\end{document} - \end{minted} - The available blocks are documented in Section 3.5 of the - technical documentation of the \textsf{fithesis3} class - \cite{novotny15}. - - \section{Replacing the backend} - {\makeatletter\newcommand\thguide@backend[2][]{#2} - % This macro typesets the used backend class. - \def\thguide@@backend{\expandafter\thguide@backend\thesis@backend} - \let\ea\expandafter - \textsf{Fithesis3} operates on top of the - \textsf{\thguide@@backend} class, which defines much of the - document design. To change the backend class, you need to redefine - the value of \mintinline{latex}{\thesis@backend} from the default - value of - \begin{center} - \ea\ea\ea\mintinline\ea\ea\ea{\ea\ea\ea l\ea\ea\ea a\ea\ea\ea - t\ea\ea\ea e\ea\ea\ea x\ea\ea\ea}\ea\ea\ea{\ea\string\thesis@backend} - \end{center} - to a different value. This assignment needs to be performed prior - to the \mintinline{latex}{\documentclass} command. If you wanted - to change the backend class of \textsf{fithesis3} to the - KOMA-Script \textsf{screprt} with the \texttt{a4paper} option, - your document would begin as follows:} - \begin{minted}{latex} -\let\ChapFont\bfseries -\let\PageFont\bfseries -\makeatletter - \def\thesis@backend{[a4paper]{scrreprt}} -\makeatother -\documentclass[...]{fithesis3} -%% Here goes the rest of the document. - \end{minted} - The \mintinline{latex}{\ChapFont} and - \mintinline{latex}{\PageFont} commands are provided by the - \textsf{rapport3} class, but not by the \textsf{scrreprt} class, - which is why we needed to define them manually. Inconsistencies - between different backend classes need to be resolved on a - case-by-case basis. - - \makeatletter\thesis@postamble\makeatother -\end{document} -% \end{macrocode} diff --git a/macros/latex/contrib/fithesis/guide/mu/law.ins b/macros/latex/contrib/fithesis/guide/mu/law.ins deleted file mode 100644 index b75a931359..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/law.ins +++ /dev/null @@ -1,3 +0,0 @@ -\input ../../LICENSE -\generate{\file{law.tex}{\from{guide.dtx}{law}}} -\endbatchfile diff --git a/macros/latex/contrib/fithesis/guide/mu/law.pdf b/macros/latex/contrib/fithesis/guide/mu/law.pdf Binary files differindex 73e98bce8b..c474ad77a3 100644 --- a/macros/latex/contrib/fithesis/guide/mu/law.pdf +++ b/macros/latex/contrib/fithesis/guide/mu/law.pdf diff --git a/macros/latex/contrib/fithesis/guide/mu/med.ins b/macros/latex/contrib/fithesis/guide/mu/med.ins deleted file mode 100644 index 585c696a66..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/med.ins +++ /dev/null @@ -1,3 +0,0 @@ -\input ../../LICENSE -\generate{\file{med.tex}{\from{guide.dtx}{med}}} -\endbatchfile diff --git a/macros/latex/contrib/fithesis/guide/mu/med.pdf b/macros/latex/contrib/fithesis/guide/mu/med.pdf Binary files differindex 2b2a6d893d..e5ce50080a 100644 --- a/macros/latex/contrib/fithesis/guide/mu/med.pdf +++ b/macros/latex/contrib/fithesis/guide/mu/med.pdf diff --git a/macros/latex/contrib/fithesis/guide/mu/ped.ins b/macros/latex/contrib/fithesis/guide/mu/ped.ins deleted file mode 100644 index e211754cba..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/ped.ins +++ /dev/null @@ -1,3 +0,0 @@ -\input ../../LICENSE -\generate{\file{ped.tex}{\from{guide.dtx}{ped}}} -\endbatchfile diff --git a/macros/latex/contrib/fithesis/guide/mu/ped.pdf b/macros/latex/contrib/fithesis/guide/mu/ped.pdf Binary files differindex 54ece83241..f0d94206c4 100644 --- a/macros/latex/contrib/fithesis/guide/mu/ped.pdf +++ b/macros/latex/contrib/fithesis/guide/mu/ped.pdf diff --git a/macros/latex/contrib/fithesis/guide/mu/phil.ins b/macros/latex/contrib/fithesis/guide/mu/phil.ins deleted file mode 100644 index 320a91f2f8..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/phil.ins +++ /dev/null @@ -1,3 +0,0 @@ -\input ../../LICENSE -\generate{\file{phil.tex}{\from{guide.dtx}{phil}}} -\endbatchfile diff --git a/macros/latex/contrib/fithesis/guide/mu/phil.pdf b/macros/latex/contrib/fithesis/guide/mu/phil.pdf Binary files differindex 230ae529c0..811e001cc4 100644 --- a/macros/latex/contrib/fithesis/guide/mu/phil.pdf +++ b/macros/latex/contrib/fithesis/guide/mu/phil.pdf diff --git a/macros/latex/contrib/fithesis/guide/mu/resources/DESCRIPTION b/macros/latex/contrib/fithesis/guide/mu/resources/DESCRIPTION deleted file mode 100644 index d46c78aded..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/resources/DESCRIPTION +++ /dev/null @@ -1 +0,0 @@ -This directory contains resources for the guides. diff --git a/macros/latex/contrib/fithesis/guide/mu/resources/Makefile b/macros/latex/contrib/fithesis/guide/mu/resources/Makefile deleted file mode 100644 index 54fd778153..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/resources/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -PDFFILES=empty.pdf -TEX=pdflatex -.PHONY: all clean -all: $(PDFFILES) clean - -# This target typesets the a PDF file. -%.pdf: %.tex - $(TEX) $< - $(TEX) $< - -# This target removes any auxiliary files. -clean: - rm -f *.aux *.log *.out *.toc *.lot *.lof - -# This target removes any auxiliary files -# and the output PDF files. -implode: clean - rm -f $(PDFFILES) diff --git a/macros/latex/contrib/fithesis/guide/mu/resources/cog.pdf b/macros/latex/contrib/fithesis/guide/mu/resources/cog.pdf Binary files differdeleted file mode 100644 index ddbc9227c5..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/resources/cog.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/guide/mu/resources/empty.tex b/macros/latex/contrib/fithesis/guide/mu/resources/empty.tex deleted file mode 100644 index 24b5785a58..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/resources/empty.tex +++ /dev/null @@ -1,8 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=fi, - autoLayout=false} -\begin{document} - A document which, except for this line, - is completely empty. -\end{document} diff --git a/macros/latex/contrib/fithesis/guide/mu/resources/vader.pdf b/macros/latex/contrib/fithesis/guide/mu/resources/vader.pdf Binary files differdeleted file mode 100644 index 5bae022308..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/resources/vader.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/guide/mu/resources/yoda.pdf b/macros/latex/contrib/fithesis/guide/mu/resources/yoda.pdf deleted file mode 100644 index 992c19da70..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/resources/yoda.pdf +++ /dev/null @@ -1,69 +0,0 @@ -%PDF-1.5 -% -3 0 obj -<< /Length 4 0 R - /Filter /FlateDecode ->> -stream -x=OKBA)XO"÷cxc+:OnmTAUN\uaG0M0͈6D@H"b,+Ѫ -ÑX֠ab 0B1$N= I>ͤe3JZ0t%H+TΘpZ"6D;µWsȬ4)Dy{#g?@< -endstream -endobj -4 0 obj - 192 -endobj -2 0 obj -<< - /ExtGState << - /a0 << /CA 1 /ca 1 >> - >> ->> -endobj -5 0 obj -<< /Type /Page - /Parent 1 0 R - /MediaBox [ 0 0 10.020276 5.124841 ] - /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.4 (http://cairographics.org)) - /Producer (cairo 1.14.4 (http://cairographics.org)) ->> -endobj -7 0 obj -<< /Type /Catalog - /Pages 1 0 R ->> -endobj -xref -0 8 -0000000000 65535 f -0000000603 00000 n -0000000306 00000 n -0000000015 00000 n -0000000284 00000 n -0000000378 00000 n -0000000668 00000 n -0000000795 00000 n -trailer -<< /Size 8 - /Root 7 0 R - /Info 6 0 R ->> -startxref -847 -%%EOF diff --git a/macros/latex/contrib/fithesis/guide/mu/sci.ins b/macros/latex/contrib/fithesis/guide/mu/sci.ins deleted file mode 100644 index 75a8c61087..0000000000 --- a/macros/latex/contrib/fithesis/guide/mu/sci.ins +++ /dev/null @@ -1,3 +0,0 @@ -\input ../../LICENSE -\generate{\file{sci.tex}{\from{guide.dtx}{sci}}} -\endbatchfile diff --git a/macros/latex/contrib/fithesis/guide/mu/sci.pdf b/macros/latex/contrib/fithesis/guide/mu/sci.pdf Binary files differindex 26b54aad5e..e29b623cd6 100644 --- a/macros/latex/contrib/fithesis/guide/mu/sci.pdf +++ b/macros/latex/contrib/fithesis/guide/mu/sci.pdf diff --git a/macros/latex/contrib/fithesis/locale/DESCRIPTION b/macros/latex/contrib/fithesis/locale/DESCRIPTION deleted file mode 100644 index 5758d7a8a8..0000000000 --- a/macros/latex/contrib/fithesis/locale/DESCRIPTION +++ /dev/null @@ -1 +0,0 @@ -This directory contains the locale files. diff --git a/macros/latex/contrib/fithesis/locale/EXAMPLE.dtx b/macros/latex/contrib/fithesis/locale/EXAMPLE.dtx deleted file mode 100644 index 81b31d049d..0000000000 --- a/macros/latex/contrib/fithesis/locale/EXAMPLE.dtx +++ /dev/null @@ -1,7 +0,0 @@ -% \file{locale/fithesis-EXAMPLE.def} -% This an example locale file. You can rename it to match the name -% of a given locale and place the respective macro definitions in -% here. -% \begin{macrocode} - -% \end{macrocode} diff --git a/macros/latex/contrib/fithesis/locale/EXAMPLE.ins b/macros/latex/contrib/fithesis/locale/EXAMPLE.ins deleted file mode 100644 index 06ba04d4e7..0000000000 --- a/macros/latex/contrib/fithesis/locale/EXAMPLE.ins +++ /dev/null @@ -1,3 +0,0 @@ -\input docstrip -\generate{\file{fithesis-EXAMPLE.def}{\from{EXAMPLE.dtx}{}}} -\endbatchfile diff --git a/macros/latex/contrib/fithesis/locale/Makefile b/macros/latex/contrib/fithesis/locale/Makefile deleted file mode 100644 index 3c4fa5aa00..0000000000 --- a/macros/latex/contrib/fithesis/locale/Makefile +++ /dev/null @@ -1,42 +0,0 @@ -LOGS=czech.log slovak.log english.log -DIRECTORIES=mu/law mu/fsps mu/fss mu/econ mu/med mu/fi mu/phil \ - mu/ped mu/sci mu -OUTPUT=fithesis-czech.def mu/law/fithesis-czech.def \ - mu/law/fithesis-slovak.def mu/law/fithesis-english.def \ - mu/fithesis-czech.def mu/fsps/fithesis-czech.def \ - mu/fsps/fithesis-slovak.def mu/fsps/fithesis-english.def \ - mu/fss/fithesis-czech.def mu/fss/fithesis-slovak.def \ - mu/fss/fithesis-english.def mu/econ/fithesis-czech.def \ - mu/econ/fithesis-slovak.def mu/econ/fithesis-english.def \ - mu/med/fithesis-czech.def mu/med/fithesis-slovak.def \ - mu/med/fithesis-english.def mu/fi/fithesis-czech.def \ - mu/fi/fithesis-slovak.def mu/fi/fithesis-english.def \ - mu/phil/fithesis-czech.def mu/phil/fithesis-slovak.def \ - mu/phil/fithesis-english.def mu/fithesis-slovak.def \ - mu/ped/fithesis-czech.def mu/ped/fithesis-slovak.def \ - mu/ped/fithesis-english.def mu/fithesis-english.def \ - mu/sci/fithesis-czech.def mu/sci/fithesis-slovak.def \ - mu/sci/fithesis-english.def fithesis-slovak.def \ - fithesis-english.def - -.PHONY: explode implode all - -# This target creates the locale file directory -# structure and creates the locale files. -all: - mkdir -p $(DIRECTORIES) - make explode - -# This target creates all locale files. -explode: $(LOGS) - -# This target creates the locale files from one -# DTX file. -%.log: %.ins %.dtx - xetex $< - -# This target tears down the locale file directory -# structure along with the locale files. -implode: - rm -f $(OUTPUT) $(LOGS) - -rmdir $(DIRECTORIES) diff --git a/macros/latex/contrib/fithesis/locale/czech.dtx b/macros/latex/contrib/fithesis/locale/czech.dtx index 9a2f027568..884570b3e5 100644 --- a/macros/latex/contrib/fithesis/locale/czech.dtx +++ b/macros/latex/contrib/fithesis/locale/czech.dtx @@ -75,7 +75,8 @@ \thesis@year}} % Různé -\gdef\thesis@czech@authorSignature{Podpis autora} +\gdef\thesis@czech@authorSignature{% + Podpis autor\ifthesis@woman ky\else a\fi} \gdef\thesis@czech@fieldTitle{Obor} \gdef\thesis@czech@advisorTitle{Vedoucí práce} \gdef\thesis@czech@authorTitle{Autor} @@ -361,10 +362,10 @@ \gdef\thesis@czech@assignment{% \ifthesis@digital@ Na tomto místě se v~tištěné práci nachází oficiální podepsané - zadání práce a prohlášení autora školního díla. + zadání práce a~prohlášení autora školního díla. \else Místo tohoto listu vložte kopie oficiálního podepsaného zadání - práce a prohlášení autora školního díla. + práce a~prohlášení autora školního díla. \fi} \gdef\thesis@czech@declaration{% Prohlašuji, že tato \thesis@lower{czech@typeName} je mým @@ -466,10 +467,10 @@ \gdef\thesis@czech@declaration{% Prohlašuji, že jsem \thesis@lower{czech@typeName@% akuzativ} vypracoval\thesis@czech@gender@koncovka\ samostatně, - s~využitím pouze citovaných pramenů, dalších informací a zdrojů + s~využitím pouze citovaných pramenů, dalších informací a~zdrojů v~souladu s~Disciplinárním řádem pro studenty Pedagogické fakulty - Masarykovy univerzity a se zákonem č.\ 121/2000 Sb., o~právu - autorském, o~právech souvisejících s~právem autorským a o~změně + Masarykovy univerzity a~se zákonem č.\ 121/2000 Sb., o~právu + autorském, o~právech souvisejících s~právem autorským a~o~změně některých zákonů (autorský zákon), ve znění pozdějších předpisů.} %</mu/ped> diff --git a/macros/latex/contrib/fithesis/locale/slovak.dtx b/macros/latex/contrib/fithesis/locale/slovak.dtx index 607e0ce683..dd6a87af1f 100644 --- a/macros/latex/contrib/fithesis/locale/slovak.dtx +++ b/macros/latex/contrib/fithesis/locale/slovak.dtx @@ -75,7 +75,8 @@ \thesis@year}} % Rôzne -\gdef\thesis@slovak@authorSignature{Podpis autora} +\gdef\thesis@slovak@authorSignature{% + Podpis autor\ifthesis@woman ky\else a\fi} \gdef\thesis@slovak@fieldTitle{Odbor} \gdef\thesis@slovak@advisorTitle{Vedúci práce} \gdef\thesis@slovak@authorTitle{Autor} @@ -322,7 +323,7 @@ \thesis@extra@advisorSkGenitiv\ a~uved\ifthesis@woman la\else iol\fi\ v~nej všetky odborné zdroje v~súlade s~právnymi predpismi, vnútornými - předpismi Masarykovej univerzity a~vnútornými aktmi riadenia + predpismi Masarykovej univerzity a~vnútornými aktmi riadenia Masarykovej univerzity a~Ekonomicko-správnej fakulty MU.} % \end{macrocode}\iffalse %</mu/econ> @@ -415,7 +416,7 @@ \else <<Neznáme oddělenie (\thesis@department)>>% \fi} -\gdef\thesis@czech@declaration{% +\gdef\thesis@slovak@declaration{% \ifx\thesis@department\thesis@departments@kisk Vyhlasujem, že som predkladanú prácu spracoval% \thesis@slovak@gender@koncovka\ samostatne~a použil% diff --git a/macros/latex/contrib/fithesis/logo/DESCRIPTION b/macros/latex/contrib/fithesis/logo/DESCRIPTION deleted file mode 100644 index 96d66905f8..0000000000 --- a/macros/latex/contrib/fithesis/logo/DESCRIPTION +++ /dev/null @@ -1,2 +0,0 @@ -This directory can contain subdirectories with the logo files of -various universities. diff --git a/macros/latex/contrib/fithesis/logo/EXAMPLE/DESCRIPTION b/macros/latex/contrib/fithesis/logo/EXAMPLE/DESCRIPTION deleted file mode 100644 index e249b3170d..0000000000 --- a/macros/latex/contrib/fithesis/logo/EXAMPLE/DESCRIPTION +++ /dev/null @@ -1,2 +0,0 @@ -This is an empty directory. You can rename it to match the name of -your university and place the respective logo files in here. diff --git a/macros/latex/contrib/fithesis/logo/mu/DESCRIPTION b/macros/latex/contrib/fithesis/logo/mu/DESCRIPTION deleted file mode 100644 index 4ac3baa5c8..0000000000 --- a/macros/latex/contrib/fithesis/logo/mu/DESCRIPTION +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains the logo files of the Masaryk University -(Brno, Czech Republic). diff --git a/macros/latex/contrib/fithesis/logo/mu/Makefile b/macros/latex/contrib/fithesis/logo/mu/Makefile deleted file mode 100644 index 46ca9e7e88..0000000000 --- a/macros/latex/contrib/fithesis/logo/mu/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -PDFFILES=fithesis-econ.pdf fithesis-fsps.pdf fithesis-law.pdf \ - fithesis-med.pdf fithesis-ped.pdf fithesis-phil.pdf \ - fithesis-sci.pdf fithesis-fi.pdf fithesis-fss.pdf \ - fithesis-base.pdf fithesis-econ-color.pdf \ - fithesis-fsps-color.pdf fithesis-law-color.pdf \ - fithesis-med-color.pdf fithesis-ped-color.pdf \ - fithesis-phil-color.pdf fithesis-sci-color.pdf \ - fithesis-fi-color.pdf fithesis-fss-color.pdf \ - fithesis-base-color.pdf -.PHONY: all implode - -# This target converts all the EPS logos to PDF. -all: $(PDFFILES) - -# This target converts a single EPS logo to PDF. -%.pdf: %.eps - epstopdf $< - -# This target removes all PDF logos. -implode: - rm -f $(PDFFILES) diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-base-color.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-base-color.pdf Binary files differnew file mode 100644 index 0000000000..7baf9515e3 --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-base-color.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-base.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-base.pdf Binary files differnew file mode 100644 index 0000000000..369019148d --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-base.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-econ-color.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-econ-color.pdf Binary files differnew file mode 100644 index 0000000000..1e778690f3 --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-econ-color.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-econ.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-econ.pdf Binary files differnew file mode 100644 index 0000000000..bcc7608cf6 --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-econ.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-fi-color.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-fi-color.pdf Binary files differnew file mode 100644 index 0000000000..860a1365ba --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-fi-color.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-fi.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-fi.pdf Binary files differnew file mode 100644 index 0000000000..ea3cf0e29c --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-fi.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-fsps-color.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-fsps-color.pdf Binary files differnew file mode 100644 index 0000000000..9f9735cb4d --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-fsps-color.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-fsps.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-fsps.pdf Binary files differnew file mode 100644 index 0000000000..04e4586387 --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-fsps.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-fss-color.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-fss-color.pdf Binary files differnew file mode 100644 index 0000000000..ed95130f0c --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-fss-color.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-fss.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-fss.pdf Binary files differnew file mode 100644 index 0000000000..e7b7b16891 --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-fss.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-law-color.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-law-color.pdf Binary files differnew file mode 100644 index 0000000000..32a31baeba --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-law-color.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-law.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-law.pdf Binary files differnew file mode 100644 index 0000000000..a72c729e96 --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-law.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-med-color.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-med-color.pdf Binary files differnew file mode 100644 index 0000000000..9b29dc714e --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-med-color.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-med.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-med.pdf Binary files differnew file mode 100644 index 0000000000..b0c5cbb593 --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-med.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-ped-color.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-ped-color.pdf Binary files differnew file mode 100644 index 0000000000..6eae00a5a0 --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-ped-color.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-ped.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-ped.pdf Binary files differnew file mode 100644 index 0000000000..c197909ce2 --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-ped.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-phil-color.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-phil-color.pdf Binary files differnew file mode 100644 index 0000000000..ae0a78ef65 --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-phil-color.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-phil.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-phil.pdf Binary files differnew file mode 100644 index 0000000000..c0d8892e5c --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-phil.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-sci-color.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-sci-color.pdf Binary files differnew file mode 100644 index 0000000000..a940c11280 --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-sci-color.pdf diff --git a/macros/latex/contrib/fithesis/logo/mu/fithesis-sci.pdf b/macros/latex/contrib/fithesis/logo/mu/fithesis-sci.pdf Binary files differnew file mode 100644 index 0000000000..032d99538c --- /dev/null +++ b/macros/latex/contrib/fithesis/logo/mu/fithesis-sci.pdf diff --git a/macros/latex/contrib/fithesis/style/DESCRIPTION b/macros/latex/contrib/fithesis/style/DESCRIPTION deleted file mode 100644 index 45748b0ee6..0000000000 --- a/macros/latex/contrib/fithesis/style/DESCRIPTION +++ /dev/null @@ -1,5 +0,0 @@ -This directory contains the base style file, which is always -loaded unless inheritance is disabled for style files. - -It can also contain subdirectories with the style files of -various universities. diff --git a/macros/latex/contrib/fithesis/style/EXAMPLE/DESCRIPTION b/macros/latex/contrib/fithesis/style/EXAMPLE/DESCRIPTION deleted file mode 100644 index c9cc7a7030..0000000000 --- a/macros/latex/contrib/fithesis/style/EXAMPLE/DESCRIPTION +++ /dev/null @@ -1,2 +0,0 @@ -This is an empty directory. You can rename it to match the name of -your university and place the respective style files in here. diff --git a/macros/latex/contrib/fithesis/style/Makefile b/macros/latex/contrib/fithesis/style/Makefile deleted file mode 100644 index 495787c7a2..0000000000 --- a/macros/latex/contrib/fithesis/style/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -LOGS=base.log -OUTPUT=fithesis-base.sty -.PHONY: explode implode all - -# These targets create all the locale files. -all: explode -explode: $(LOGS) - -# This target creates the locale files from -# one DTX file. -%.log: %.ins %.dtx - xetex $< - -# This target removes all the locale files. -implode: - rm -f $(OUTPUT) $(LOGS) diff --git a/macros/latex/contrib/fithesis/style/mu/DESCRIPTION b/macros/latex/contrib/fithesis/style/mu/DESCRIPTION deleted file mode 100644 index cabf32db3f..0000000000 --- a/macros/latex/contrib/fithesis/style/mu/DESCRIPTION +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains the style files of the Masaryk University -(Brno, Czech Republic). diff --git a/macros/latex/contrib/fithesis/style/mu/Makefile b/macros/latex/contrib/fithesis/style/mu/Makefile deleted file mode 100644 index 6d43d8eab2..0000000000 --- a/macros/latex/contrib/fithesis/style/mu/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -LOGS=base.log fi.log sci.log phil.log ped.log fss.log law.log \ - econ.log med.log fsps.log -OUTPUT=fithesis-base.sty fithesis-1[012].clo fithesis-fi.sty \ - fithesis-sci.sty fithesis-phil.sty fithesis-ped.sty \ - fithesis-fss.sty fithesis-law.sty fithesis-econ.sty \ - fithesis-med.sty fithesis-fsps.sty - -# These targets create all the locale files. -all: explode -explode: $(LOGS) - -# This target creates the locale files from -# one DTX file. -%.log: %.ins %.dtx - xetex $< - -# This target removes all the locale files. -implode: - rm -f $(OUTPUT) $(LOGS) diff --git a/macros/latex/contrib/fithesis/style/mu/base.dtx b/macros/latex/contrib/fithesis/style/mu/base.dtx index 2bf55b0e17..3c34a6cb0e 100644 --- a/macros/latex/contrib/fithesis/style/mu/base.dtx +++ b/macros/latex/contrib/fithesis/style/mu/base.dtx @@ -7,7 +7,7 @@ % after \texttt{style/fithesis-base.sty}, regardless of the value % of the |\thesis@style| macro. % \begin{macrocode} -\ProvidesPackage{fithesis/style/mu/fithesis-base}[2017/06/02] +\ProvidesPackage{fithesis/style/mu/fithesis-base}[2018/12/25] \NeedsTeXFormat{LaTeX2e} % \end{macrocode} % The file recognizes the following options: \begin{itemize} @@ -361,7 +361,6 @@ \def\thesis@bibliography@setup#1{% \setkeys{thesis@bibliography}{#1}} % \end{macrocode} -% \end{macro} % The following key-value pairs are supported: % \begin{enumerate} % \item\marg{\texttt{style}=style} -- Stores \texttt{style} in @@ -383,6 +382,26 @@ \def\thesis@bibliography@sorting{#1}% \fi} % \end{macrocode} +% \changes{v0.3.51}{2018/06/15}{^^A +% Added the \texttt{bibliography} extra field to the style files +% of the Masaryk University in Brno, Czech Republic} +% The following extra data field is defined for the macro: +% \begin{itemize} +% \item|bibliography| -- the comma-delimited list of key-value +% pairs accepted by |\thesis@bibliography@setup|. If the data +% field was specified, it is immediately passed to +% |\thesis@bibliography@setup| and it overrides any defaults +% specified in faculty style files. +% \end{itemize} +% \begin{macrocode} +\thesis@def@extra[]{bibliography} +\ifx\thesis@extra@bibliography + \thesis@placeholder@extra@bibliography\else + \expandafter\thesis@bibliography@setup\expandafter{% + \thesis@extra@bibliography}% +\fi +% \end{macrocode} +% \end{macro} % \begin{macro}{\thesis@bibliography@load} % When |\ifthesis@bibliography@| is true and % |\ifthesis@bibliography@loaded@| is false, the @@ -448,12 +467,20 @@ % \end{macrocode} % \end{macro} ^^A The nested \ifthesis@bibliography@included@ def % \end{macro} ^^A The \thesis@bibliography@load macro definition -% The \textsf{hyperref} package is configured to support both roman -% and arabic page numbering in one document and to decorate -% hyperlinks with an underline instead of a rectangular box. +% In the digital version, the \textsf{hyperref} package is configured to +% decorate hyperlinks with an underline instead of a rectangular box. +% In the printed version, the \textsf{hyperref} package is configured to +% hide links. +% \changes{v0.3.51}{2018/12/25}{^^A +% In the printed version, the \textsf{hyperref} package is configured to +% hide links. [VN]} % \begin{macrocode} \thesis@require{hyperref} -\hypersetup{pdfborderstyle={/S/U/W 1}} % Less obtrusive borders +\ifthesis@digital@ + \hypersetup{pdfborderstyle={/S/U/W 1}} +\else + \hypersetup{hidelinks} +\fi % \end{macrocode} % Clubs and widows are set to be infinitely bad. % \begin{macrocode} diff --git a/macros/latex/contrib/fithesis/style/mu/econ.dtx b/macros/latex/contrib/fithesis/style/mu/econ.dtx index 822cbd8621..da1bef6fcc 100644 --- a/macros/latex/contrib/fithesis/style/mu/econ.dtx +++ b/macros/latex/contrib/fithesis/style/mu/econ.dtx @@ -5,12 +5,13 @@ % \changes{v0.3.46}{2017/06/02}{The documentation now points to the % 2/2017 dean's directive for the Faculty of Economics and % Administration, Masaryk University, Brno. [VN]} -% published at the website of the faculty\footnote{See \url{ht^^A -% tps://is.muni.cz/auth/do/econ/predpisy/smernice/prehled/6715^^A -% 9928/SmerniceDekana2017-c.2-o_zaverecnych_pracich_2017.pdf}}. +% published at the website of the faculty\footnote{See \url{htt^^A +% ps://is.muni.cz/auth/do/econ/uredni_deska/predpisy_ESF/smerni^^A +% ce/smernice_dekana/prehled/67159928/SmerniceDekana2017-c.9-o_^^A +% zaverecnych_pracich_2017.docx}}. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{fithesis/style/mu/fithesis-econ}[2018/02/11] +\ProvidesPackage{fithesis/style/mu/fithesis-econ}[2018/06/11] % \end{macrocode} % The file defines the color scheme of the respective faculty. Note % the the color definitions are in RGB, which makes the resulting @@ -126,11 +127,9 @@ % \begin{macrocode} \def\thesis@blocks@frontMatter{% \thesis@blocks@clear - % In case of double-sided typesetting, change the geometry - \ifthesis@twoside@ - \newgeometry{top=25mm,bottom=20mm,left=35mm, - right=15mm, includeheadfoot} - \fi\pagestyle{empty} + \newgeometry{top=25mm,bottom=20mm,left=35mm, + right=15mm, includeheadfoot} + \pagestyle{empty} \parindent 1.5em \setcounter{page}{1} \pagenumbering{arabic}} @@ -143,11 +142,9 @@ % \begin{macrocode} \def\thesis@blocks@mainMatter{% \thesis@blocks@clear - % In case of double-sided typesetting, change the geometry - \ifthesis@twoside@ - \newgeometry{top=25mm,bottom=20mm,left=35mm, - right=15mm, includeheadfoot} - \fi\pagestyle{thesisheadings} + \newgeometry{top=25mm,bottom=20mm,left=35mm, + right=15mm, includeheadfoot} + \pagestyle{thesisheadings} \parindent 1.5em\relax} % \end{macrocode} % \end{macro}\begin{macro}{\thesis@blocks@tables} @@ -295,19 +292,39 @@ % in \texttt{style/mu/fithesis-econ.sty} in accordance with the % example documents. The patch was submitted by Jana Ratajská. % [VN]} +% \changes{v0.3.51}{2020/03/09}{The \cs{thesis@blocks@bibEntry} +% command now accomodates long titles and other information that +% may span multiple lines. [VN]} % \begin{macrocode} \def\thesis@blocks@bibEntry{% \thesis@blocks@clear - \noindent\begin{thesis@newtable@old}{@{}>{\bfseries}ll@{}} - \thesis@@{bib@author}: & \thesis@author \\ - \thesis@@{bib@thesisTitle}: & \thesis@title \\ - \ifthesis@english\else - \thesis@@{bib@thesisTitleEn}: & \thesis@titleEn \\ - \fi - \thesis@@{bib@department}: & \thesis@department \\ - \thesis@@{bib@advisor}: & \thesis@advisor \\ - \thesis@@{bib@year}: & \thesis@year \\ - \end{thesis@newtable@old}} + {\let\@A\relax\newlength{\@A} + \settowidth{\@A}{{\bf\thesis@@{bib@author}}} + \@B=\@A + \settowidth{\@A}{{\bf\thesis@@{bib@thesisTitle}}} + \ifdim\@A>\@B\@B=\@A\fi + \ifthesis@english\else + \settowidth{\@A}{{\bf\thesis@@{bib@thesisTitleEn}}} + \ifdim\@A>\@B\@B=\@A\fi + \fi + \settowidth{\@A}{{\bf\thesis@@{bib@department}}} + \ifdim\@A>\@B\@B=\@A\fi + \settowidth{\@A}{{\bf\thesis@@{bib@advisor}}} + \ifdim\@A>\@B\@B=\@A\fi + \settowidth{\@A}{{\bf\thesis@@{bib@year}}} + \ifdim\@A>\@B\@B=\@A\fi + \noindent\begin{thesis@newtable@old}{@{}>{\bfseries}% + p{\dimexpr(\@B + \tabcolsep)}% + p{\dimexpr(\textwidth - \@B - 2\tabcolsep)}@{}} + \thesis@@{bib@author}: & \thesis@author \\ + \thesis@@{bib@thesisTitle}: & \thesis@title \\ + \ifthesis@english\else + \thesis@@{bib@thesisTitleEn}: & \thesis@titleEn \\ + \fi + \thesis@@{bib@department}: & \thesis@department \\ + \thesis@@{bib@advisor}: & \thesis@advisor \\ + \thesis@@{bib@year}: & \thesis@year \\ + \end{thesis@newtable@old}}} % \end{macrocode} % \end{macro} % Note that there is no direct support for the seminar paper and diff --git a/macros/latex/contrib/fithesis/style/mu/fi.dtx b/macros/latex/contrib/fithesis/style/mu/fi.dtx index e1fc1e28c9..28a1530743 100644 --- a/macros/latex/contrib/fithesis/style/mu/fi.dtx +++ b/macros/latex/contrib/fithesis/style/mu/fi.dtx @@ -3,7 +3,9 @@ % Informatics at the Masaryk University in Brno. It has been % prepared in accordance with the formal requirements published at % the website of the faculty\footnote{See -% \url{http://www.fi.muni.cz/docs/BP_DP_na_FI.pdf}}. +% \url{https://is.muni.cz/do/fi/uredni_deska/predpisy/smernice/^^A +% Smernice_dekana_1_2018_zaverecne_prace.pdfa.pdf}, and +% \url{http://www.fi.muni.cz/docs/BP_DP_na_FI.pdf}.}. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{fithesis/style/mu/fithesis-fi}[2016/04/18] diff --git a/macros/latex/contrib/fithesis/style/mu/fsps.dtx b/macros/latex/contrib/fithesis/style/mu/fsps.dtx index 02c8c2da1b..9efba78442 100644 --- a/macros/latex/contrib/fithesis/style/mu/fsps.dtx +++ b/macros/latex/contrib/fithesis/style/mu/fsps.dtx @@ -2,8 +2,9 @@ % This is the style file for the theses written at the Faculty of % Sports Studies at the Masaryk University in Brno. It has been % prepared in accordance with the formal requirements published at -% the website of the faculty\footnote{See \url{https://is.muni.cz/^^A -% auth/do/fsps/studijni/info-stud/SZZ/pokyny_ZP_13-5-2013.pdf}}. +% the website of the faculty\footnote{See \url{https://is.muni.^^A +% cz/auth/do/fsps/studijni/info-stud/SZZ/44862261/pokyny_ZP_13-^^A +% 5-2013.pdf}}. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{fithesis/style/mu/fithesis-fsps}[2018/02/11] diff --git a/macros/latex/contrib/fithesis/style/mu/fss.dtx b/macros/latex/contrib/fithesis/style/mu/fss.dtx index bea5704bce..820f180eea 100644 --- a/macros/latex/contrib/fithesis/style/mu/fss.dtx +++ b/macros/latex/contrib/fithesis/style/mu/fss.dtx @@ -1,19 +1,18 @@ % \file{style/mu/fithesis-fss.sty} % This is the style file for the theses written at the Faculty of -% Social Studies at the Masaryk University in Brno. Because of the -% inexistence of faculty-wide formal requirements and -% recommendations with each department defining their own with -% varying degrees of -% rigour\footnote{\raggedright See -% \url{http://psych.fss.muni.cz/node/351}, -% \url{http://medzur.fss.muni.cz/informace-pro-studenty/pravidla^^A -% -pro-diplomky/soubory/Pravidla pro zaverecne prace na KMSZ - v^^A -% er. 2-83.doc}, \url{http://soc.fss.muni.cz/?q=node/44}, \url{h^^A -% ttp://polit.fss.muni.cz/informace-pro-studenty/pol/}, \url{htt^^A -% p://humenv.fss.muni.cz/studium/bakalarske-studium/pravidla-pro^^A -% -vypracovani-bakalarske-prace}}, this style is a mere skeleton, -% which is unlikely to satisfy the exact requirements of any -% department and will require modification by the user. +% Social Studies at the Masaryk University in Brno. Since there +% exists no faculty-wide formal requirement or recommendation,^^A +% \footnote{See \url{https://medzur.fss.muni.cz/informace-pro-st^^A +% udenty/bakalarske-a-diplomove-prace}, \url{https://is.muni.cz/^^A +% do/fss/kspsp/mvplzszz/dp_pokyny.html}, \url{https://psych.fss.^^A +% muni.cz/media/3054818/pokyny_pro_psani_zaverecnych_praci.pdf}, +% \url{http://mve.fss.muni.cz/cs/studium/studijni-agenda/pokyny-^^A +% ke-szz}, \url{https://humenv.fss.muni.cz/mgr/zaverecne-prace}, +% and \url{https://medzur.fss.muni.cz/media/11356/pravidla_pro_z^^A +% averecne_prace_na_kmszu_verze_2013.pdf}.} +% this style is just a skeleton, which is unlikely to satisfy the +% exact requirements of any department and will require +% modification by the individual departments. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{fithesis/style/mu/fithesis-fss}[2016/04/18] diff --git a/macros/latex/contrib/fithesis/style/mu/law.dtx b/macros/latex/contrib/fithesis/style/mu/law.dtx index 9c7cb865f8..fb02d5dde0 100644 --- a/macros/latex/contrib/fithesis/style/mu/law.dtx +++ b/macros/latex/contrib/fithesis/style/mu/law.dtx @@ -3,7 +3,8 @@ % Law at the Masaryk University in Brno. It has been prepared in % accordance with the formal requirements published at the % website of the faculty\footnote{See \url{http://is.muni.cz/d^^A -% o/law/ud/predp/smer/S-07-2012.pdf}}. +% o/law/ud/predp/smer/S-07-2012.pdf}, and \url{https://is.muni^^A +% .cz/do/law/ud/predp/smer/S-04-2013_O_citacich_dokumentu.pdf}}. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{fithesis/style/mu/fithesis-law}[2017/05/21] @@ -26,6 +27,12 @@ sorting=nyt} \thesis@bibliography@load % \end{macrocode} +% Each footnote is uniquely numbered across the entire document as +% per the formal requirements of the faculty. +% \begin{macrocode} +\thesis@require{chngcntr} +\counterwithout{footnote}{chapter} +% \end{macrocode} % The style file configures the cover and title page headers to % include only the faculty name and the department name. % Along with the macros required by the locale file interface, diff --git a/macros/latex/contrib/fithesis/style/mu/med.dtx b/macros/latex/contrib/fithesis/style/mu/med.dtx index 323f3de902..812e4c7273 100644 --- a/macros/latex/contrib/fithesis/style/mu/med.dtx +++ b/macros/latex/contrib/fithesis/style/mu/med.dtx @@ -7,7 +7,7 @@ % ZITOSTI_ZAVERECNE_PRACE.doc}}. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{fithesis/style/mu/fithesis-med}[2018/02/11] +\ProvidesPackage{fithesis/style/mu/fithesis-med}[2018/06/11] % \end{macrocode} % The file defines the color scheme of the respective faculty. Note % the the color definitions are in RGB, which makes the resulting @@ -112,11 +112,9 @@ % \begin{macrocode} \def\thesis@blocks@frontMatter{% \thesis@blocks@clear - % In case of double-sided typesetting, change the geometry - \ifthesis@twoside@ - \newgeometry{top=25mm,bottom=20mm,left=35mm, - right=15mm, includeheadfoot} - \fi\pagestyle{empty} + \newgeometry{top=25mm,bottom=20mm,left=35mm, + right=15mm, includeheadfoot} + \pagestyle{empty} \parindent 1.5em \setcounter{page}{1} \pagenumbering{roman}} @@ -128,11 +126,9 @@ % \begin{macrocode} \def\thesis@blocks@mainMatter{% \thesis@blocks@clear - % In case of double-sided typesetting, change the geometry - \ifthesis@twoside@ - \newgeometry{top=25mm,bottom=20mm,left=35mm, - right=15mm, includeheadfoot} - \fi\setcounter{page}{1} + \newgeometry{top=25mm,bottom=20mm,left=35mm, + right=15mm, includeheadfoot} + \setcounter{page}{1} \pagenumbering{arabic} \pagestyle{thesisheadings} \parindent 1.5em diff --git a/macros/latex/contrib/fithesis/style/mu/ped.dtx b/macros/latex/contrib/fithesis/style/mu/ped.dtx index f7a58bb091..49c2b643cb 100644 --- a/macros/latex/contrib/fithesis/style/mu/ped.dtx +++ b/macros/latex/contrib/fithesis/style/mu/ped.dtx @@ -2,8 +2,9 @@ % This is the style file for the theses written at the Faculty of % Education at the Masaryk University in Brno. It has been prepared % in accordance with the formal requirements published at the -% of the faculty\footnote{See \url{https://is.muni.cz/auth/do/^^A -% ped/VPAN/46952359/53057289}}. +% of the faculty\footnote{See \url{https://is.muni.cz/do/ped/VPA^^A +% N/pokdek/c._1_2015_K_realizaci_zaverecnych_praci.pdf}, and +% \url{http://moodlinka.ics.muni.cz/course/view.php?id=632}}. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{fithesis/style/mu/fithesis-ped}[2016/04/18] diff --git a/macros/latex/contrib/fithesis/style/mu/phil.dtx b/macros/latex/contrib/fithesis/style/mu/phil.dtx index 8f02f5d4e5..2c95f13967 100644 --- a/macros/latex/contrib/fithesis/style/mu/phil.dtx +++ b/macros/latex/contrib/fithesis/style/mu/phil.dtx @@ -2,8 +2,8 @@ % This is the style file for the theses written at the Faculty of % Arts at the Masaryk University in Brno. It has been prepared in % accordance with the formal requirements published at the website -% of the faculty\footnote{See \url{http://is.muni.cz/auth/do/^^A -% 1421/4581421/Vzor_bakalarske_prace.pdf}}. +% of the faculty\footnote{See \url{https://is.muni.cz/do/phil/P^^A +% racoviste/SO/vzory_praci/Vzor_bakalarske_prace.pdf}}. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{fithesis/style/mu/fithesis-phil}[2016/04/18] @@ -22,7 +22,7 @@ % used and the bibliography is sorted by name, title, and year. % \begin{macrocode} \thesis@bibliography@setup{ - style=iso-numeric, + style=iso-authoryear, sorting=nty} \thesis@bibliography@load % \end{macrocode} @@ -55,21 +55,18 @@ \fi % \end{macrocode} % \begin{macro}{\thesis@blocks@titlePage} -% In the case of a KISK thesis, the style file redefines the cover -% and title page footers to include the thesis advisor's name. +% The style file redefines the cover and title page footers to include the +% thesis advisor's name. +% \changes{v0.3.51} {2018/11/05}{Always typeset the name of the advisor +% on the title page for the Faculty of Arts at the Masaryk University +% in Brno, Czech Republic. [VN]} % \begin{macrocode} -\ifx\thesis@department\thesis@departments@kisk - \def\thesis@blocks@titlePage@content{% - {\thesis@titlePage@Huge\bf\thesis@TeXtitle\par\vfil}\vskip 0.8in - {\thesis@titlePage@large\sc\thesis@@{typeName}\\[0.3in]} - {\thesis@titlePage@Large\bf\thesis@author} - % If this is a KISK thesis, typeset the name of the thesis - % advisor. - \ifx\thesis@department\thesis@departments@kisk - {\thesis@titlePage@large\\[0.3in] - {\bf\thesis@@{advisorTitle}:} \thesis@advisor} - \fi}% -\fi +\def\thesis@blocks@titlePage@content{% + {\thesis@titlePage@Huge\bf\thesis@TeXtitle\par\vfil}\vskip 0.8in + {\thesis@titlePage@large\sc\thesis@@{typeName}\\[0.3in]} + {\thesis@titlePage@Large\bf\thesis@author} + {\thesis@titlePage@large\\[0.3in] + {\bf\thesis@@{advisorTitle}:} \thesis@advisor}} % \end{macrocode} % \end{macro} % Note that there is no direct support for the seminar paper and diff --git a/macros/latex/contrib/fithesis/style/mu/sci.dtx b/macros/latex/contrib/fithesis/style/mu/sci.dtx index ca1630a0f3..db7059fbec 100644 --- a/macros/latex/contrib/fithesis/style/mu/sci.dtx +++ b/macros/latex/contrib/fithesis/style/mu/sci.dtx @@ -3,7 +3,9 @@ % Science at the Masaryk University in Brno. It has been % prepared in accordance with the formal requirements published at % the website of the faculty\footnote{See -% \url{http://www.sci.muni.cz/NW/predpisy/od/OD-2014-05.pdf}}. +% \url{http://www.sci.muni.cz/NW/predpisy/od/OD-2014-05.pdf}, and +% \url{http://www.sci.muni.cz/cz/BcMgrStudium/Legislativa/Sablon^^A +% y}}. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{fithesis/style/mu/fithesis-sci}[2017/06/02] diff --git a/macros/latex/contrib/fithesis/test/DESCRIPTION b/macros/latex/contrib/fithesis/test/DESCRIPTION deleted file mode 100644 index 898fa495a7..0000000000 --- a/macros/latex/contrib/fithesis/test/DESCRIPTION +++ /dev/null @@ -1,3 +0,0 @@ -This directory contains the tests for the base fithesis3 class. -It can also contain subdirectories with tests for the files of -various universities.
\ No newline at end of file diff --git a/macros/latex/contrib/fithesis/test/EXAMPLE/DESCRIPTION b/macros/latex/contrib/fithesis/test/EXAMPLE/DESCRIPTION deleted file mode 100644 index 5b795c1c89..0000000000 --- a/macros/latex/contrib/fithesis/test/EXAMPLE/DESCRIPTION +++ /dev/null @@ -1,2 +0,0 @@ -This is an empty directory. You can rename it to match the name of -your university and place the respective test files in here. diff --git a/macros/latex/contrib/fithesis/test/Makefile b/macros/latex/contrib/fithesis/test/Makefile deleted file mode 100644 index ea672afc06..0000000000 --- a/macros/latex/contrib/fithesis/test/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -.PHONY: all clean implode - -# This target runs all the tests. -all: implode - for file in *.tex; do \ - [ $$file = '*.tex' ] && continue; \ - ln -s "$$file" current.tex && \ - pdflatex current && pdflatex current && make clean && \ - lualatex current && lualatex current && make implode; \ - done - -# This target removes any auxiliary files. -clean: - rm -f *.aux *.log *.out *.lot *.lof *.toc - -# This target removes any files created during the testing. -implode: clean - rm -f texput.log current.* diff --git a/macros/latex/contrib/fithesis/test/mu/DESCRIPTION b/macros/latex/contrib/fithesis/test/mu/DESCRIPTION deleted file mode 100644 index 02b882e3cb..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/DESCRIPTION +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains the test files for the style files of the -Masaryk University (Brno, Czech Republic). diff --git a/macros/latex/contrib/fithesis/test/mu/blind/DESCRIPTION b/macros/latex/contrib/fithesis/test/mu/blind/DESCRIPTION deleted file mode 100644 index 9701c3423e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/blind/DESCRIPTION +++ /dev/null @@ -1,4 +0,0 @@ -This directory contains blind test files for the style files of the -Masaryk University (Brno, Czech Republic). Each blind test file is -compiled by pdfTeX, XeTeX and LuaTeX in an attempt to make them -fail the compilation. diff --git a/macros/latex/contrib/fithesis/test/mu/blind/Makefile b/macros/latex/contrib/fithesis/test/mu/blind/Makefile deleted file mode 100644 index ea672afc06..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/blind/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -.PHONY: all clean implode - -# This target runs all the tests. -all: implode - for file in *.tex; do \ - [ $$file = '*.tex' ] && continue; \ - ln -s "$$file" current.tex && \ - pdflatex current && pdflatex current && make clean && \ - lualatex current && lualatex current && make implode; \ - done - -# This target removes any auxiliary files. -clean: - rm -f *.aux *.log *.out *.lot *.lof *.toc - -# This target removes any files created during the testing. -implode: clean - rm -f texput.log current.* diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/DESCRIPTION b/macros/latex/contrib/fithesis/test/mu/compare-example/DESCRIPTION deleted file mode 100644 index dd4129bf2c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/DESCRIPTION +++ /dev/null @@ -1,7 +0,0 @@ -This directory contains precompiled files from the `/example/mu` -directory. These files are visually compared against fresh-compiled -files from the `/example/mu` directory. - -By running `make UPDATE_FAILED=true`, the precompiled files will be -automatically replaced with fresh-compiled ones, if the two are -visually incompatible. diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/Makefile b/macros/latex/contrib/fithesis/test/mu/compare-example/Makefile deleted file mode 100644 index b40b7d6e97..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -.PHONY: all implode bootstrap -FAKETIME=faketime '2000-01-01 01:01:01' -COMPARE=../comparepdf.sh -EXAMPLEDIR=../../../example/mu -PROTOTYPES=expected-econ-lualatex.pdf expected-fss-pdflatex.pdf \ - expected-phil-lualatex.pdf expected-econ-pdflatex.pdf \ - expected-law-lualatex.pdf expected-phil-pdflatex.pdf \ - expected-fi-lualatex.pdf expected-law-pdflatex.pdf \ - expected-sci-lualatex.pdf expected-fi-pdflatex.pdf \ - expected-med-lualatex.pdf expected-sci-pdflatex.pdf \ - expected-fsps-lualatex.pdf expected-med-pdflatex.pdf \ - expected-fsps-pdflatex.pdf expected-ped-lualatex.pdf \ - expected-fss-lualatex.pdf expected-ped-pdflatex.pdf - -# This target typesets all the test documents and -# compares them with the prototypes. -all: - make -C $(EXAMPLEDIR) implode - $(FAKETIME) make -C $(EXAMPLEDIR) all - for PROTOTYPE in $(PROTOTYPES); do \ - $(COMPARE) "$$PROTOTYPE" $(EXAMPLEDIR)/"$${PROTOTYPE##expected-}" || \ - { [ "$(UPDATE_FAILED)" = true ] && \ - mv $(EXAMPLEDIR)/"$${PROTOTYPE##expected-}" "$$PROTOTYPE"; } || exit 1; \ - done - make -C $(EXAMPLEDIR) implode - -# This target typesets all the prototypes. -bootstrap: - make -C $(EXAMPLEDIR) implode - $(FAKETIME) make -C $(EXAMPLEDIR) all - make $(PROTOTYPES) - make -C $(EXAMPLEDIR) implode - -# This target copies a single typeset prototype. -expected-%.pdf: $(EXAMPLEDIR)/%.pdf - cp $< $@ - -# This is a dummy target. -implode: - diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-econ-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-econ-lualatex.pdf Binary files differdeleted file mode 100644 index 6de98f9d92..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-econ-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-econ-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-econ-pdflatex.pdf Binary files differdeleted file mode 100644 index 542d93afa1..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-econ-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fi-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fi-lualatex.pdf Binary files differdeleted file mode 100644 index c13279030c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fi-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fi-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fi-pdflatex.pdf Binary files differdeleted file mode 100644 index fad1965288..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fi-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fsps-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fsps-lualatex.pdf Binary files differdeleted file mode 100644 index 226c809a7f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fsps-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fsps-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fsps-pdflatex.pdf Binary files differdeleted file mode 100644 index 6c96921f21..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fsps-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fss-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fss-lualatex.pdf Binary files differdeleted file mode 100644 index 0eea189ed7..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fss-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fss-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fss-pdflatex.pdf Binary files differdeleted file mode 100644 index 12ce0dcfe6..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-fss-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-law-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-law-lualatex.pdf Binary files differdeleted file mode 100644 index 929d57c30e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-law-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-law-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-law-pdflatex.pdf Binary files differdeleted file mode 100644 index 2c74d49b7d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-law-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-med-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-med-lualatex.pdf Binary files differdeleted file mode 100644 index 0d3ed50b96..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-med-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-med-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-med-pdflatex.pdf Binary files differdeleted file mode 100644 index fffa136fbf..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-med-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-ped-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-ped-lualatex.pdf Binary files differdeleted file mode 100644 index 003a2c9c8e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-ped-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-ped-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-ped-pdflatex.pdf Binary files differdeleted file mode 100644 index 8c3ad9cb6f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-ped-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-phil-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-phil-lualatex.pdf Binary files differdeleted file mode 100644 index 81ba78d518..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-phil-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-phil-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-phil-pdflatex.pdf Binary files differdeleted file mode 100644 index e515b06e62..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-phil-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-sci-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-sci-lualatex.pdf Binary files differdeleted file mode 100644 index 4f10a064bc..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-sci-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-sci-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare-example/expected-sci-pdflatex.pdf Binary files differdeleted file mode 100644 index 0aeaf4a351..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare-example/expected-sci-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/DESCRIPTION b/macros/latex/contrib/fithesis/test/mu/compare/DESCRIPTION deleted file mode 100644 index dd4129bf2c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/DESCRIPTION +++ /dev/null @@ -1,7 +0,0 @@ -This directory contains precompiled files from the `/example/mu` -directory. These files are visually compared against fresh-compiled -files from the `/example/mu` directory. - -By running `make UPDATE_FAILED=true`, the precompiled files will be -automatically replaced with fresh-compiled ones, if the two are -visually incompatible. diff --git a/macros/latex/contrib/fithesis/test/mu/compare/Makefile b/macros/latex/contrib/fithesis/test/mu/compare/Makefile deleted file mode 100644 index 4c74b60b9d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/Makefile +++ /dev/null @@ -1,135 +0,0 @@ -.PHONY: all implode bootstrap all -FAKETIME=faketime '2000-01-01 01:01:01' -COMPARE=../comparepdf.sh -SOURCES=base-digital.tex base-printed.tex base-10pt.tex \ - base-11pt.tex base-12pt.tex econ-czech.tex econ-english.tex \ - econ-oldtable.tex econ-slovak.tex econ-table.tex fi-color.tex \ - fi-czech.tex fi-english.tex fi-czech-male.tex \ - fi-czech-female.tex fi-slovak-male.tex fi-slovak-female.tex \ - fi-oldtable.tex fi-rigorous.tex fi-slovak.tex fi-table.tex \ - fsps-czech.tex fsps-english.tex fsps-oldtable.tex \ - fsps-slovak.tex fsps-table.tex fss-czech.tex fss-english.tex \ - fss-oldtable.tex fss-slovak.tex fss-table.tex \ - fss-czech-male.tex fss-czech-female.tex \ - fss-slovak-male.tex fss-slovak-female.tex law-czech.tex \ - law-english.tex law-oldtable.tex law-slovak.tex law-table.tex \ - med-czech.tex med-english.tex med-oldtable.tex med-slovak.tex \ - med-table.tex ped-czech.tex ped-english.tex ped-oldtable.tex \ - ped-slovak.tex ped-table.tex phil-czech.tex phil-english.tex \ - phil-kisk-english.tex phil-kisk-czech.tex phil-kisk-slovak.tex \ - phil-oldtable.tex phil-slovak.tex phil-table.tex sci-color.tex \ - sci-czech.tex sci-czech-male.tex sci-czech-female.tex \ - sci-slovak-male.tex sci-slovak-female.tex sci-english.tex \ - sci-oldtable.tex sci-rigorous.tex sci-slovak.tex sci-table.tex \ - phil-kisk-czech-male.tex phil-kisk-czech-female.tex \ - phil-kisk-slovak-male.tex phil-kisk-slovak-female.tex \ - phil-czech-female.tex phil-czech-male.tex \ - phil-slovak-female.tex phil-slovak-male.tex \ - toc-01.tex toc-02.tex toc-03.tex toc-04.tex toc-05.tex \ - toc-06.tex toc-07.tex toc-08.tex toc-09.tex toc-10.tex \ - toc-11.tex toc-12.tex toc-13.tex toc-14.tex toc-15.tex \ - toc-16.tex toc-17.tex toc-18.tex toc-19.tex toc-20.tex \ - toc-21.tex toc-22.tex toc-23.tex toc-24.tex toc-25.tex \ - toc-26.tex toc-27.tex toc-28.tex $(BIB) \ - fi-digital-emptyassignment.tex fi-digital-noassignment.tex \ - fi-digital-someassignment.tex fi-printed-emptyassignment.tex \ - fi-printed-noassignment.tex \ - fi-printed-someassignment-oneside.tex \ - fi-printed-someassignment-twoside.tex \ - sci-digital-emptyassignment.tex sci-digital-noassignment.tex \ - sci-digital-someassignment-oneside.tex \ - sci-digital-someassignment-twoside.tex \ - sci-printed-emptyassignment.tex sci-printed-noassignment.tex \ - sci-printed-someassignment-oneside.tex \ - sci-printed-someassignment-twoside.tex fi-proposal -BIB_UNSOLICITED=econ-bibliography-unsolicited.tex \ - fi-bibliography-unsolicited.tex \ - fsps-bibliography-unsolicited.tex \ - fss-bibliography-unsolicited.tex \ - law-bibliography-unsolicited.tex \ - med-bibliography-unsolicited.tex \ - ped-bibliography-unsolicited.tex \ - phil-bibliography-unsolicited.tex \ - sci-bibliography-unsolicited.tex -BIB_SOLICITED=econ-bibliography-solicited.tex \ - fi-bibliography-solicited.tex \ - fsps-bibliography-solicited.tex \ - fss-bibliography-solicited.tex \ - law-bibliography-solicited.tex \ - med-bibliography-solicited.tex \ - ped-bibliography-solicited.tex \ - phil-bibliography-solicited.tex \ - sci-bibliography-solicited.tex -BIB=$(BIB_UNSOLICITED) $(BIB_SOLICITED) -TESTS=$(addsuffix -pdflatex.pdf,$(basename $(SOURCES))) \ - $(addsuffix -lualatex.pdf,$(basename $(SOURCES))) -PROTOTYPES=$(addprefix expected-,$(TESTS)) - -# This target typesets all the test documents, -# compares them with the prototypes, and cleans -# up afterwards. -all: $(TESTS) implode - -# This target typesets all the prototypes. -bootstrap: $(PROTOTYPES) clean - -# This target typesets a pdfLaTeX prototype. -expected-%-pdflatex.pdf: %.tex - rm -f $@ - make $(basename $<)-pdflatex.pdf - mv $(basename $<)-pdflatex.pdf $@ - -# This target typesets a LuaLaTeX prototype. -expected-%-lualatex.pdf: %.tex - rm -f $@ - make $(basename $<)-lualatex.pdf - mv $(basename $<)-lualatex.pdf $@ - -# This target typesets a pdfLaTeX test file and compares -# it against a prototype. -%-pdflatex.pdf: %.tex - @# The first run. - $(FAKETIME) pdflatex -jobname $(basename $@) $< - @# Prepare bibliography, if necessary. - ! [ -e $(basename $<)-pdflatex.bcf ] || \ - (biber $(basename $<)-pdflatex.bcf && \ - $(FAKETIME) pdflatex -jobname $(basename $@) $<) - @# Prepare index, if necessary. - ! [ -e $(basename $<)-pdflatex.idx ] || \ - (texindy -I latex -C utf8 -L english \ - $(basename $<)-pdflatex.idx && \ - $(FAKETIME) pdflatex -jobname $(basename $@) $<) - @# The second run. - $(FAKETIME) pdflatex -jobname $(basename $@) $< - @# Compare the result with the prototype. - ! [ -e expected-$@ ] || $(COMPARE) expected-$@ $@ || \ - { [ "$(UPDATE_FAILED)" = true ] && mv $@ expected-$@; } - -# This target typesets a LuaLaTeX test file and compares -# it against a prototype. -%-lualatex.pdf: %.tex - @# The first run. - $(FAKETIME) lualatex -jobname $(basename $@) $< - @# Prepare bibliography, if necessary. - ! [ -e $(basename $<)-lualatex.bcf ] || \ - (biber $(basename $<)-lualatex.bcf && \ - $(FAKETIME) lualatex -jobname $(basename $@) $<) - @# Prepare index, if necessary. - ! [ -e $(basename $<)-lualatex.idx ] || \ - (texindy -I latex -C utf8 -L english \ - $(basename $<)-lualatex.idx && \ - $(FAKETIME) lualatex -jobname $(basename $@) $<) - @# The second run. - $(FAKETIME) lualatex -jobname $(basename $@) $< - @# Compare the result with the prototype. - ! [ -e expected-$@ ] || $(COMPARE) expected-$@ $@ || \ - { [ "$(UPDATE_FAILED)" = true ] && mv $@ expected-$@; } - -# This target removes any auxiliary files. -clean: - rm -f *.aux *.log *.out *.toc *.lot *.lof *.bcf *.blg *.run.xml \ - *.bbl *.idx *.ind *.ilg - -# This target removes any auxiliary files and the output PDF files. -implode: clean - rm -f $(TESTS) diff --git a/macros/latex/contrib/fithesis/test/mu/compare/base-10pt.tex b/macros/latex/contrib/fithesis/test/mu/compare/base-10pt.tex deleted file mode 100644 index 83fbc62cf9..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/base-10pt.tex +++ /dev/null @@ -1,4 +0,0 @@ -\documentclass[10pt]{fithesis3} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/base-11pt.tex b/macros/latex/contrib/fithesis/test/mu/compare/base-11pt.tex deleted file mode 100644 index 94189f3175..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/base-11pt.tex +++ /dev/null @@ -1,4 +0,0 @@ -\documentclass[11pt]{fithesis3} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/base-12pt.tex b/macros/latex/contrib/fithesis/test/mu/compare/base-12pt.tex deleted file mode 100644 index d1f181e426..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/base-12pt.tex +++ /dev/null @@ -1,4 +0,0 @@ -\documentclass[12pt]{fithesis3} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/base-digital.tex b/macros/latex/contrib/fithesis/test/mu/compare/base-digital.tex deleted file mode 100644 index ec0d90f1ab..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/base-digital.tex +++ /dev/null @@ -1,4 +0,0 @@ -\documentclass[digital]{fithesis3} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/base-printed.tex b/macros/latex/contrib/fithesis/test/mu/compare/base-printed.tex deleted file mode 100644 index bb7bb4618b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/base-printed.tex +++ /dev/null @@ -1,4 +0,0 @@ -\documentclass[printed]{fithesis3} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/econ-bibliography-solicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/econ-bibliography-solicited.tex deleted file mode 100644 index 5704834034..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/econ-bibliography-solicited.tex +++ /dev/null @@ -1,9 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=econ, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} - {\printbibliography[heading=bibintoc]} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/econ-bibliography-unsolicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/econ-bibliography-unsolicited.tex deleted file mode 100644 index 7bc55916e1..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/econ-bibliography-unsolicited.tex +++ /dev/null @@ -1,8 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=econ, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/econ-czech.tex b/macros/latex/contrib/fithesis/test/mu/compare/econ-czech.tex deleted file mode 100644 index 474265c6b5..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/econ-czech.tex +++ /dev/null @@ -1,12 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{faculty=econ} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/econ-english.tex b/macros/latex/contrib/fithesis/test/mu/compare/econ-english.tex deleted file mode 100644 index 1c3fd08239..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/econ-english.tex +++ /dev/null @@ -1,12 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{english} -\else - \usepackage[english]{babel} -\fi -\thesissetup{faculty=econ} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/econ-oldtable.tex b/macros/latex/contrib/fithesis/test/mu/compare/econ-oldtable.tex deleted file mode 100644 index 0581273c31..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/econ-oldtable.tex +++ /dev/null @@ -1,18 +0,0 @@ -\documentclass[oldtable,color]{fithesis3} -\usepackage{tabularx} -\usepackage{tabu} -\thesissetup{faculty=econ} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/econ-slovak.tex b/macros/latex/contrib/fithesis/test/mu/compare/econ-slovak.tex deleted file mode 100644 index cc9f829a97..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/econ-slovak.tex +++ /dev/null @@ -1,12 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{faculty=econ} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/econ-table.tex b/macros/latex/contrib/fithesis/test/mu/compare/econ-table.tex deleted file mode 100644 index e4650f2a39..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/econ-table.tex +++ /dev/null @@ -1,17 +0,0 @@ -\documentclass[table,color]{fithesis3} -\usepackage{tabu} -\thesissetup{faculty=econ} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-10pt-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-base-10pt-lualatex.pdf Binary files differdeleted file mode 100644 index bd3c1fd607..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-10pt-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-10pt-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-base-10pt-pdflatex.pdf Binary files differdeleted file mode 100644 index 4755d5b463..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-10pt-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-11pt-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-base-11pt-lualatex.pdf Binary files differdeleted file mode 100644 index 6d268edb41..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-11pt-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-11pt-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-base-11pt-pdflatex.pdf Binary files differdeleted file mode 100644 index 64ff3b1577..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-11pt-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-12pt-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-base-12pt-lualatex.pdf Binary files differdeleted file mode 100644 index 7b24a2e67b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-12pt-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-12pt-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-base-12pt-pdflatex.pdf Binary files differdeleted file mode 100644 index bb27161cd4..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-12pt-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-digital-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-base-digital-lualatex.pdf Binary files differdeleted file mode 100644 index 721f5c736e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-digital-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-digital-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-base-digital-pdflatex.pdf Binary files differdeleted file mode 100644 index a52916326b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-digital-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-printed-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-base-printed-lualatex.pdf Binary files differdeleted file mode 100644 index 7836de918b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-printed-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-printed-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-base-printed-pdflatex.pdf Binary files differdeleted file mode 100644 index 527c46e93c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-base-printed-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-bibliography-solicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-bibliography-solicited-lualatex.pdf Binary files differdeleted file mode 100644 index 0c736fd402..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-bibliography-solicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-bibliography-solicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-bibliography-solicited-pdflatex.pdf Binary files differdeleted file mode 100644 index b1919406d9..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-bibliography-solicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-bibliography-unsolicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-bibliography-unsolicited-lualatex.pdf Binary files differdeleted file mode 100644 index 5d79010773..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-bibliography-unsolicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-bibliography-unsolicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-bibliography-unsolicited-pdflatex.pdf Binary files differdeleted file mode 100644 index b9c72c4468..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-bibliography-unsolicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-czech-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-czech-lualatex.pdf Binary files differdeleted file mode 100644 index 0d2023e3e9..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-czech-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-czech-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-czech-pdflatex.pdf Binary files differdeleted file mode 100644 index 1210eeb36c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-czech-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-english-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-english-lualatex.pdf Binary files differdeleted file mode 100644 index 09d3813afa..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-english-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-english-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-english-pdflatex.pdf Binary files differdeleted file mode 100644 index a24cb24a55..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-english-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-oldtable-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-oldtable-lualatex.pdf Binary files differdeleted file mode 100644 index fda79709ea..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-oldtable-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-oldtable-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-oldtable-pdflatex.pdf Binary files differdeleted file mode 100644 index a6ebb97125..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-oldtable-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-slovak-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-slovak-lualatex.pdf Binary files differdeleted file mode 100644 index 20cdb9967b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-slovak-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-slovak-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-slovak-pdflatex.pdf Binary files differdeleted file mode 100644 index aa506832aa..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-slovak-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-table-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-table-lualatex.pdf Binary files differdeleted file mode 100644 index 4ea3cda063..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-table-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-table-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-table-pdflatex.pdf Binary files differdeleted file mode 100644 index ffdae7b11c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-econ-table-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-bibliography-solicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-bibliography-solicited-lualatex.pdf Binary files differdeleted file mode 100644 index eb63016009..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-bibliography-solicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-bibliography-solicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-bibliography-solicited-pdflatex.pdf Binary files differdeleted file mode 100644 index 8bf40b1b04..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-bibliography-solicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-bibliography-unsolicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-bibliography-unsolicited-lualatex.pdf Binary files differdeleted file mode 100644 index accd497272..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-bibliography-unsolicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-bibliography-unsolicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-bibliography-unsolicited-pdflatex.pdf Binary files differdeleted file mode 100644 index 33c63de5f5..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-bibliography-unsolicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-color-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-color-lualatex.pdf Binary files differdeleted file mode 100644 index ca4a483ff8..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-color-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-color-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-color-pdflatex.pdf Binary files differdeleted file mode 100644 index 80dcb5e434..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-color-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-female-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-female-lualatex.pdf Binary files differdeleted file mode 100644 index 838d5dac0a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-female-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-female-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-female-pdflatex.pdf Binary files differdeleted file mode 100644 index a4f658eeac..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-female-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-lualatex.pdf Binary files differdeleted file mode 100644 index 556a7631a9..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-male-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-male-lualatex.pdf Binary files differdeleted file mode 100644 index c0228cdeb7..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-male-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-male-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-male-pdflatex.pdf Binary files differdeleted file mode 100644 index 112d91407c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-male-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-pdflatex.pdf Binary files differdeleted file mode 100644 index 7531dac73b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-czech-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-emptyassignment-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-emptyassignment-lualatex.pdf Binary files differdeleted file mode 100644 index a2c81fdf28..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-emptyassignment-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-emptyassignment-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-emptyassignment-pdflatex.pdf Binary files differdeleted file mode 100644 index e5552587ba..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-emptyassignment-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-noassignment-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-noassignment-lualatex.pdf Binary files differdeleted file mode 100644 index 2e22e9b23d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-noassignment-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-noassignment-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-noassignment-pdflatex.pdf Binary files differdeleted file mode 100644 index 3ab38581a4..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-noassignment-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-someassignment-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-someassignment-lualatex.pdf Binary files differdeleted file mode 100644 index d87cba7f9a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-someassignment-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-someassignment-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-someassignment-pdflatex.pdf Binary files differdeleted file mode 100644 index fab031dbc5..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-digital-someassignment-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-english-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-english-lualatex.pdf Binary files differdeleted file mode 100644 index 9245cdb554..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-english-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-english-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-english-pdflatex.pdf Binary files differdeleted file mode 100644 index 6de1a5900a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-english-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-oldtable-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-oldtable-lualatex.pdf Binary files differdeleted file mode 100644 index 141addae60..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-oldtable-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-oldtable-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-oldtable-pdflatex.pdf Binary files differdeleted file mode 100644 index a5855abf8c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-oldtable-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-emptyassignment-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-emptyassignment-lualatex.pdf Binary files differdeleted file mode 100644 index daa2231346..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-emptyassignment-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-emptyassignment-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-emptyassignment-pdflatex.pdf Binary files differdeleted file mode 100644 index 9969ce9a57..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-emptyassignment-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-noassignment-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-noassignment-lualatex.pdf Binary files differdeleted file mode 100644 index ab316866c9..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-noassignment-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-noassignment-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-noassignment-pdflatex.pdf Binary files differdeleted file mode 100644 index 72a54c1d8e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-noassignment-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-someassignment-oneside-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-someassignment-oneside-lualatex.pdf Binary files differdeleted file mode 100644 index 47adf62ba1..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-someassignment-oneside-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-someassignment-oneside-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-someassignment-oneside-pdflatex.pdf Binary files differdeleted file mode 100644 index 47a85979be..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-someassignment-oneside-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-someassignment-twoside-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-someassignment-twoside-lualatex.pdf Binary files differdeleted file mode 100644 index c380f30521..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-someassignment-twoside-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-someassignment-twoside-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-someassignment-twoside-pdflatex.pdf Binary files differdeleted file mode 100644 index c689c95655..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-printed-someassignment-twoside-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-proposal-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-proposal-lualatex.pdf Binary files differdeleted file mode 100644 index 8d98cda4c3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-proposal-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-proposal-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-proposal-pdflatex.pdf Binary files differdeleted file mode 100644 index 1107472b3f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-proposal-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-rigorous-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-rigorous-lualatex.pdf Binary files differdeleted file mode 100644 index b47c1736fc..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-rigorous-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-rigorous-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-rigorous-pdflatex.pdf Binary files differdeleted file mode 100644 index 125d25f53a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-rigorous-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-female-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-female-lualatex.pdf Binary files differdeleted file mode 100644 index 4c31afe44d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-female-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-female-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-female-pdflatex.pdf Binary files differdeleted file mode 100644 index 6e627a298b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-female-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-lualatex.pdf Binary files differdeleted file mode 100644 index 28f1854839..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-male-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-male-lualatex.pdf Binary files differdeleted file mode 100644 index 5653ffa2e0..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-male-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-male-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-male-pdflatex.pdf Binary files differdeleted file mode 100644 index 5d7f6eebdd..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-male-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-pdflatex.pdf Binary files differdeleted file mode 100644 index 5d671f997f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-slovak-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-table-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-table-lualatex.pdf Binary files differdeleted file mode 100644 index f8c9907c71..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-table-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-table-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-table-pdflatex.pdf Binary files differdeleted file mode 100644 index 73e0333308..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fi-table-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-bibliography-solicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-bibliography-solicited-lualatex.pdf Binary files differdeleted file mode 100644 index 0aa3c41dce..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-bibliography-solicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-bibliography-solicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-bibliography-solicited-pdflatex.pdf Binary files differdeleted file mode 100644 index 6c1e6a1d12..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-bibliography-solicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-bibliography-unsolicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-bibliography-unsolicited-lualatex.pdf Binary files differdeleted file mode 100644 index d552fcfaa1..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-bibliography-unsolicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-bibliography-unsolicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-bibliography-unsolicited-pdflatex.pdf Binary files differdeleted file mode 100644 index 5af77358bd..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-bibliography-unsolicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-czech-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-czech-lualatex.pdf Binary files differdeleted file mode 100644 index e6ce4095ef..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-czech-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-czech-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-czech-pdflatex.pdf Binary files differdeleted file mode 100644 index 8f201ee153..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-czech-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-english-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-english-lualatex.pdf Binary files differdeleted file mode 100644 index 037414b23a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-english-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-english-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-english-pdflatex.pdf Binary files differdeleted file mode 100644 index ea7124033e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-english-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-oldtable-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-oldtable-lualatex.pdf Binary files differdeleted file mode 100644 index 16297bedf3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-oldtable-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-oldtable-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-oldtable-pdflatex.pdf Binary files differdeleted file mode 100644 index db90c8f889..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-oldtable-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-slovak-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-slovak-lualatex.pdf Binary files differdeleted file mode 100644 index 0d7c623591..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-slovak-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-slovak-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-slovak-pdflatex.pdf Binary files differdeleted file mode 100644 index 91d853f270..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-slovak-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-table-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-table-lualatex.pdf Binary files differdeleted file mode 100644 index 4913d0d392..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-table-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-table-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-table-pdflatex.pdf Binary files differdeleted file mode 100644 index c040ebdf39..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fsps-table-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-bibliography-solicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-bibliography-solicited-lualatex.pdf Binary files differdeleted file mode 100644 index b0f431ec36..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-bibliography-solicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-bibliography-solicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-bibliography-solicited-pdflatex.pdf Binary files differdeleted file mode 100644 index b6616257ea..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-bibliography-solicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-bibliography-unsolicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-bibliography-unsolicited-lualatex.pdf Binary files differdeleted file mode 100644 index eac555447b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-bibliography-unsolicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-bibliography-unsolicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-bibliography-unsolicited-pdflatex.pdf Binary files differdeleted file mode 100644 index 4c003bbec6..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-bibliography-unsolicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-female-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-female-lualatex.pdf Binary files differdeleted file mode 100644 index 15edc71c48..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-female-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-female-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-female-pdflatex.pdf Binary files differdeleted file mode 100644 index a8e0bc7a51..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-female-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-lualatex.pdf Binary files differdeleted file mode 100644 index aee29c45ad..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-male-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-male-lualatex.pdf Binary files differdeleted file mode 100644 index 41cebdb7a8..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-male-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-male-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-male-pdflatex.pdf Binary files differdeleted file mode 100644 index d5e5da7e2d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-male-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-pdflatex.pdf Binary files differdeleted file mode 100644 index 27f0c8f3dc..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-czech-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-english-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-english-lualatex.pdf Binary files differdeleted file mode 100644 index 11e4a2b282..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-english-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-english-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-english-pdflatex.pdf Binary files differdeleted file mode 100644 index 29e7eb0b4e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-english-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-oldtable-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-oldtable-lualatex.pdf Binary files differdeleted file mode 100644 index a2f59069ab..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-oldtable-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-oldtable-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-oldtable-pdflatex.pdf Binary files differdeleted file mode 100644 index 9423dddb2a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-oldtable-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-female-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-female-lualatex.pdf Binary files differdeleted file mode 100644 index 2a4a8da021..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-female-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-female-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-female-pdflatex.pdf Binary files differdeleted file mode 100644 index 5e200d3437..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-female-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-lualatex.pdf Binary files differdeleted file mode 100644 index be8f04e837..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-male-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-male-lualatex.pdf Binary files differdeleted file mode 100644 index a5165c7f39..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-male-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-male-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-male-pdflatex.pdf Binary files differdeleted file mode 100644 index 600a37a551..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-male-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-pdflatex.pdf Binary files differdeleted file mode 100644 index 09336ff319..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-slovak-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-table-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-table-lualatex.pdf Binary files differdeleted file mode 100644 index f0695ed9fd..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-table-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-table-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-table-pdflatex.pdf Binary files differdeleted file mode 100644 index feceaa7b77..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-fss-table-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-bibliography-solicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-bibliography-solicited-lualatex.pdf Binary files differdeleted file mode 100644 index 1d75a2cce5..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-bibliography-solicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-bibliography-solicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-bibliography-solicited-pdflatex.pdf Binary files differdeleted file mode 100644 index bd6dc89b66..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-bibliography-solicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-bibliography-unsolicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-bibliography-unsolicited-lualatex.pdf Binary files differdeleted file mode 100644 index 3ef45a5d12..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-bibliography-unsolicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-bibliography-unsolicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-bibliography-unsolicited-pdflatex.pdf Binary files differdeleted file mode 100644 index 803bd47963..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-bibliography-unsolicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-czech-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-czech-lualatex.pdf Binary files differdeleted file mode 100644 index 99d6d34817..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-czech-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-czech-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-czech-pdflatex.pdf Binary files differdeleted file mode 100644 index 4d3bc7dc6d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-czech-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-english-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-english-lualatex.pdf Binary files differdeleted file mode 100644 index 80c5667297..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-english-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-english-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-english-pdflatex.pdf Binary files differdeleted file mode 100644 index 4592ec647d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-english-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-oldtable-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-oldtable-lualatex.pdf Binary files differdeleted file mode 100644 index 5d7c004dfd..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-oldtable-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-oldtable-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-oldtable-pdflatex.pdf Binary files differdeleted file mode 100644 index ccebe58055..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-oldtable-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-slovak-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-slovak-lualatex.pdf Binary files differdeleted file mode 100644 index 79e1bac710..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-slovak-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-slovak-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-slovak-pdflatex.pdf Binary files differdeleted file mode 100644 index f1b826751a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-slovak-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-table-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-table-lualatex.pdf Binary files differdeleted file mode 100644 index 2dc7b7bc63..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-table-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-table-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-law-table-pdflatex.pdf Binary files differdeleted file mode 100644 index 4303e8467e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-law-table-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-bibliography-solicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-bibliography-solicited-lualatex.pdf Binary files differdeleted file mode 100644 index 9023ee89a9..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-bibliography-solicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-bibliography-solicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-bibliography-solicited-pdflatex.pdf Binary files differdeleted file mode 100644 index 863d3eca41..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-bibliography-solicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-bibliography-unsolicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-bibliography-unsolicited-lualatex.pdf Binary files differdeleted file mode 100644 index 8672e81216..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-bibliography-unsolicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-bibliography-unsolicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-bibliography-unsolicited-pdflatex.pdf Binary files differdeleted file mode 100644 index cd8406ad39..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-bibliography-unsolicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-czech-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-czech-lualatex.pdf Binary files differdeleted file mode 100644 index 2b5347ca4c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-czech-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-czech-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-czech-pdflatex.pdf Binary files differdeleted file mode 100644 index c43a1cb7d8..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-czech-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-english-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-english-lualatex.pdf Binary files differdeleted file mode 100644 index b1f0041d4a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-english-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-english-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-english-pdflatex.pdf Binary files differdeleted file mode 100644 index d00dc66703..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-english-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-oldtable-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-oldtable-lualatex.pdf Binary files differdeleted file mode 100644 index 3321ec7464..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-oldtable-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-oldtable-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-oldtable-pdflatex.pdf Binary files differdeleted file mode 100644 index 6bc16b638b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-oldtable-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-slovak-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-slovak-lualatex.pdf Binary files differdeleted file mode 100644 index 0d724633a4..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-slovak-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-slovak-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-slovak-pdflatex.pdf Binary files differdeleted file mode 100644 index 804fcb2b23..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-slovak-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-table-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-table-lualatex.pdf Binary files differdeleted file mode 100644 index 7db0b7e506..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-table-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-table-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-med-table-pdflatex.pdf Binary files differdeleted file mode 100644 index 75af7f83e5..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-med-table-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-bibliography-solicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-bibliography-solicited-lualatex.pdf Binary files differdeleted file mode 100644 index 35434a3321..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-bibliography-solicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-bibliography-solicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-bibliography-solicited-pdflatex.pdf Binary files differdeleted file mode 100644 index 558d893ef3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-bibliography-solicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-bibliography-unsolicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-bibliography-unsolicited-lualatex.pdf Binary files differdeleted file mode 100644 index ef4a044f6d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-bibliography-unsolicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-bibliography-unsolicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-bibliography-unsolicited-pdflatex.pdf Binary files differdeleted file mode 100644 index eed69421ca..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-bibliography-unsolicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-czech-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-czech-lualatex.pdf Binary files differdeleted file mode 100644 index f9fc211f3a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-czech-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-czech-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-czech-pdflatex.pdf Binary files differdeleted file mode 100644 index eb76cb7d6e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-czech-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-english-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-english-lualatex.pdf Binary files differdeleted file mode 100644 index 6811c1b490..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-english-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-english-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-english-pdflatex.pdf Binary files differdeleted file mode 100644 index 68d874e67c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-english-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-oldtable-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-oldtable-lualatex.pdf Binary files differdeleted file mode 100644 index 37ff7af9f3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-oldtable-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-oldtable-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-oldtable-pdflatex.pdf Binary files differdeleted file mode 100644 index fb6775530e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-oldtable-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-slovak-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-slovak-lualatex.pdf Binary files differdeleted file mode 100644 index 53077117d0..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-slovak-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-slovak-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-slovak-pdflatex.pdf Binary files differdeleted file mode 100644 index eb9350c904..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-slovak-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-table-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-table-lualatex.pdf Binary files differdeleted file mode 100644 index c0ebdb8d30..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-table-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-table-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-table-pdflatex.pdf Binary files differdeleted file mode 100644 index 4a0f1a2477..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-ped-table-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-bibliography-solicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-bibliography-solicited-lualatex.pdf Binary files differdeleted file mode 100644 index 0ff6170c0f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-bibliography-solicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-bibliography-solicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-bibliography-solicited-pdflatex.pdf Binary files differdeleted file mode 100644 index 23172e31b8..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-bibliography-solicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-bibliography-unsolicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-bibliography-unsolicited-lualatex.pdf Binary files differdeleted file mode 100644 index 0ce5dbb59b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-bibliography-unsolicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-bibliography-unsolicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-bibliography-unsolicited-pdflatex.pdf Binary files differdeleted file mode 100644 index 28be3adee8..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-bibliography-unsolicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-female-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-female-lualatex.pdf Binary files differdeleted file mode 100644 index 59f364a4d3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-female-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-female-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-female-pdflatex.pdf Binary files differdeleted file mode 100644 index 24daeef1bb..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-female-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-lualatex.pdf Binary files differdeleted file mode 100644 index 101e284a38..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-male-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-male-lualatex.pdf Binary files differdeleted file mode 100644 index 7c6cebf051..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-male-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-male-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-male-pdflatex.pdf Binary files differdeleted file mode 100644 index e1ac9acccb..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-male-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-pdflatex.pdf Binary files differdeleted file mode 100644 index 67816c08b5..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-czech-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-english-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-english-lualatex.pdf Binary files differdeleted file mode 100644 index 9c6a9214a3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-english-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-english-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-english-pdflatex.pdf Binary files differdeleted file mode 100644 index 9ef88404e0..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-english-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-female-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-female-lualatex.pdf Binary files differdeleted file mode 100644 index 2f3accd2fe..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-female-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-female-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-female-pdflatex.pdf Binary files differdeleted file mode 100644 index 82b025a173..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-female-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-lualatex.pdf Binary files differdeleted file mode 100644 index 843d62ea79..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-male-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-male-lualatex.pdf Binary files differdeleted file mode 100644 index f2cddcf95c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-male-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-male-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-male-pdflatex.pdf Binary files differdeleted file mode 100644 index 11e615ff49..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-male-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-pdflatex.pdf Binary files differdeleted file mode 100644 index 92477b95cc..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-czech-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-english-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-english-lualatex.pdf Binary files differdeleted file mode 100644 index 96f01887b3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-english-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-english-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-english-pdflatex.pdf Binary files differdeleted file mode 100644 index 303ba238da..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-english-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-female-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-female-lualatex.pdf Binary files differdeleted file mode 100644 index fce491b2cd..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-female-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-female-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-female-pdflatex.pdf Binary files differdeleted file mode 100644 index 41fbb9dfee..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-female-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-lualatex.pdf Binary files differdeleted file mode 100644 index 10dec0120d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-male-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-male-lualatex.pdf Binary files differdeleted file mode 100644 index 5b7efb9fcd..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-male-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-male-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-male-pdflatex.pdf Binary files differdeleted file mode 100644 index 06eb7e0442..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-male-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-pdflatex.pdf Binary files differdeleted file mode 100644 index ffa6251bd3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-kisk-slovak-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-oldtable-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-oldtable-lualatex.pdf Binary files differdeleted file mode 100644 index 3ebcd7cabc..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-oldtable-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-oldtable-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-oldtable-pdflatex.pdf Binary files differdeleted file mode 100644 index 25c540eba4..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-oldtable-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-female-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-female-lualatex.pdf Binary files differdeleted file mode 100644 index 0c89cdc0d9..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-female-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-female-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-female-pdflatex.pdf Binary files differdeleted file mode 100644 index 45b92e4b8b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-female-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-lualatex.pdf Binary files differdeleted file mode 100644 index 0a91e5b185..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-male-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-male-lualatex.pdf Binary files differdeleted file mode 100644 index df310f0da5..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-male-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-male-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-male-pdflatex.pdf Binary files differdeleted file mode 100644 index e66c89eb27..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-male-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-pdflatex.pdf Binary files differdeleted file mode 100644 index 0979c190ff..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-slovak-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-table-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-table-lualatex.pdf Binary files differdeleted file mode 100644 index e9b70b555f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-table-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-table-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-table-pdflatex.pdf Binary files differdeleted file mode 100644 index bbcb518346..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-phil-table-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-bibliography-solicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-bibliography-solicited-lualatex.pdf Binary files differdeleted file mode 100644 index 95c765db3e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-bibliography-solicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-bibliography-solicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-bibliography-solicited-pdflatex.pdf Binary files differdeleted file mode 100644 index 1201ff3f25..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-bibliography-solicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-bibliography-unsolicited-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-bibliography-unsolicited-lualatex.pdf Binary files differdeleted file mode 100644 index b4b9e2fb00..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-bibliography-unsolicited-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-bibliography-unsolicited-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-bibliography-unsolicited-pdflatex.pdf Binary files differdeleted file mode 100644 index 00c766dbbf..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-bibliography-unsolicited-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-color-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-color-lualatex.pdf Binary files differdeleted file mode 100644 index 8992210d34..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-color-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-color-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-color-pdflatex.pdf Binary files differdeleted file mode 100644 index a4bc80878f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-color-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-female-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-female-lualatex.pdf Binary files differdeleted file mode 100644 index 633c172ef4..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-female-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-female-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-female-pdflatex.pdf Binary files differdeleted file mode 100644 index 25ab0fd77e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-female-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-lualatex.pdf Binary files differdeleted file mode 100644 index 7552654003..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-male-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-male-lualatex.pdf Binary files differdeleted file mode 100644 index bdfd751a6e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-male-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-male-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-male-pdflatex.pdf Binary files differdeleted file mode 100644 index 6ea01ffa16..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-male-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-pdflatex.pdf Binary files differdeleted file mode 100644 index 56a3d9c2ce..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-czech-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-emptyassignment-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-emptyassignment-lualatex.pdf Binary files differdeleted file mode 100644 index cde9506516..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-emptyassignment-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-emptyassignment-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-emptyassignment-pdflatex.pdf Binary files differdeleted file mode 100644 index 607d78dc35..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-emptyassignment-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-noassignment-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-noassignment-lualatex.pdf Binary files differdeleted file mode 100644 index 642e71ac4b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-noassignment-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-noassignment-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-noassignment-pdflatex.pdf Binary files differdeleted file mode 100644 index 25b867505d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-noassignment-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-someassignment-oneside-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-someassignment-oneside-lualatex.pdf Binary files differdeleted file mode 100644 index 81681218ac..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-someassignment-oneside-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-someassignment-oneside-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-someassignment-oneside-pdflatex.pdf Binary files differdeleted file mode 100644 index 2144b37e1c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-someassignment-oneside-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-someassignment-twoside-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-someassignment-twoside-lualatex.pdf Binary files differdeleted file mode 100644 index 44d6cef2bd..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-someassignment-twoside-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-someassignment-twoside-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-someassignment-twoside-pdflatex.pdf Binary files differdeleted file mode 100644 index 7869c7d3e3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-digital-someassignment-twoside-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-english-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-english-lualatex.pdf Binary files differdeleted file mode 100644 index d627b20f4f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-english-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-english-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-english-pdflatex.pdf Binary files differdeleted file mode 100644 index ab1f5ee3da..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-english-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-oldtable-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-oldtable-lualatex.pdf Binary files differdeleted file mode 100644 index a66da347e3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-oldtable-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-oldtable-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-oldtable-pdflatex.pdf Binary files differdeleted file mode 100644 index ae84fb7fa8..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-oldtable-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-emptyassignment-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-emptyassignment-lualatex.pdf Binary files differdeleted file mode 100644 index bdf1744e14..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-emptyassignment-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-emptyassignment-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-emptyassignment-pdflatex.pdf Binary files differdeleted file mode 100644 index 197da57d5b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-emptyassignment-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-noassignment-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-noassignment-lualatex.pdf Binary files differdeleted file mode 100644 index 47e3f3df1a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-noassignment-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-noassignment-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-noassignment-pdflatex.pdf Binary files differdeleted file mode 100644 index 783b90858b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-noassignment-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-someassignment-oneside-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-someassignment-oneside-lualatex.pdf Binary files differdeleted file mode 100644 index 357aad03d8..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-someassignment-oneside-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-someassignment-oneside-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-someassignment-oneside-pdflatex.pdf Binary files differdeleted file mode 100644 index 4282bb2d68..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-someassignment-oneside-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-someassignment-twoside-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-someassignment-twoside-lualatex.pdf Binary files differdeleted file mode 100644 index 9886e13fcb..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-someassignment-twoside-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-someassignment-twoside-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-someassignment-twoside-pdflatex.pdf Binary files differdeleted file mode 100644 index 8ff30bf18f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-printed-someassignment-twoside-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-rigorous-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-rigorous-lualatex.pdf Binary files differdeleted file mode 100644 index 705e56b197..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-rigorous-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-rigorous-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-rigorous-pdflatex.pdf Binary files differdeleted file mode 100644 index b9076cd732..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-rigorous-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-female-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-female-lualatex.pdf Binary files differdeleted file mode 100644 index 1e1fbd196e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-female-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-female-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-female-pdflatex.pdf Binary files differdeleted file mode 100644 index 9402a9d0de..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-female-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-lualatex.pdf Binary files differdeleted file mode 100644 index 629fb7e4f7..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-male-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-male-lualatex.pdf Binary files differdeleted file mode 100644 index a0ed76c6fb..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-male-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-male-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-male-pdflatex.pdf Binary files differdeleted file mode 100644 index 741dac16af..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-male-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-pdflatex.pdf Binary files differdeleted file mode 100644 index 6031cb38c2..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-slovak-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-table-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-table-lualatex.pdf Binary files differdeleted file mode 100644 index 2544c025a6..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-table-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-table-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-table-pdflatex.pdf Binary files differdeleted file mode 100644 index 62498eb074..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-sci-table-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-01-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-01-lualatex.pdf Binary files differdeleted file mode 100644 index 544d00a76d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-01-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-01-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-01-pdflatex.pdf Binary files differdeleted file mode 100644 index c076168e8a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-01-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-02-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-02-lualatex.pdf Binary files differdeleted file mode 100644 index 33b4440b59..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-02-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-02-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-02-pdflatex.pdf Binary files differdeleted file mode 100644 index 34fb116914..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-02-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-03-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-03-lualatex.pdf Binary files differdeleted file mode 100644 index ae3a2cc88a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-03-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-03-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-03-pdflatex.pdf Binary files differdeleted file mode 100644 index bcb3a82fb5..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-03-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-04-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-04-lualatex.pdf Binary files differdeleted file mode 100644 index 127f1e444a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-04-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-04-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-04-pdflatex.pdf Binary files differdeleted file mode 100644 index ce5b7f9821..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-04-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-05-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-05-lualatex.pdf Binary files differdeleted file mode 100644 index febca40118..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-05-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-05-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-05-pdflatex.pdf Binary files differdeleted file mode 100644 index d0213fee74..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-05-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-06-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-06-lualatex.pdf Binary files differdeleted file mode 100644 index b81a0bdc77..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-06-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-06-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-06-pdflatex.pdf Binary files differdeleted file mode 100644 index 133b271ecc..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-06-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-07-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-07-lualatex.pdf Binary files differdeleted file mode 100644 index be1536ec45..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-07-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-07-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-07-pdflatex.pdf Binary files differdeleted file mode 100644 index ea666d866d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-07-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-08-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-08-lualatex.pdf Binary files differdeleted file mode 100644 index e8ce9d5202..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-08-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-08-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-08-pdflatex.pdf Binary files differdeleted file mode 100644 index 454d7c7897..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-08-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-09-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-09-lualatex.pdf Binary files differdeleted file mode 100644 index 6ef001a8c9..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-09-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-09-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-09-pdflatex.pdf Binary files differdeleted file mode 100644 index 7fc38cdfc3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-09-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-10-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-10-lualatex.pdf Binary files differdeleted file mode 100644 index 47cafd47d8..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-10-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-10-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-10-pdflatex.pdf Binary files differdeleted file mode 100644 index 059b103a33..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-10-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-11-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-11-lualatex.pdf Binary files differdeleted file mode 100644 index 7481c5b488..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-11-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-11-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-11-pdflatex.pdf Binary files differdeleted file mode 100644 index f5f3d322d2..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-11-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-12-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-12-lualatex.pdf Binary files differdeleted file mode 100644 index 8db17b8d14..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-12-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-12-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-12-pdflatex.pdf Binary files differdeleted file mode 100644 index fdbc967d84..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-12-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-13-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-13-lualatex.pdf Binary files differdeleted file mode 100644 index 8fe89a18c2..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-13-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-13-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-13-pdflatex.pdf Binary files differdeleted file mode 100644 index deb641e546..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-13-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-14-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-14-lualatex.pdf Binary files differdeleted file mode 100644 index a8fd376734..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-14-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-14-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-14-pdflatex.pdf Binary files differdeleted file mode 100644 index 956e1698e1..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-14-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-15-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-15-lualatex.pdf Binary files differdeleted file mode 100644 index 805dbf0389..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-15-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-15-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-15-pdflatex.pdf Binary files differdeleted file mode 100644 index 22b268df88..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-15-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-16-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-16-lualatex.pdf Binary files differdeleted file mode 100644 index 9d51e62ea7..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-16-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-16-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-16-pdflatex.pdf Binary files differdeleted file mode 100644 index 7c8928241f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-16-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-17-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-17-lualatex.pdf Binary files differdeleted file mode 100644 index 5c476a4feb..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-17-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-17-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-17-pdflatex.pdf Binary files differdeleted file mode 100644 index b52e3c56c0..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-17-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-18-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-18-lualatex.pdf Binary files differdeleted file mode 100644 index 6692f3b62a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-18-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-18-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-18-pdflatex.pdf Binary files differdeleted file mode 100644 index 56307da382..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-18-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-19-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-19-lualatex.pdf Binary files differdeleted file mode 100644 index dfec69427b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-19-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-19-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-19-pdflatex.pdf Binary files differdeleted file mode 100644 index c5dc09bcde..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-19-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-20-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-20-lualatex.pdf Binary files differdeleted file mode 100644 index 4d67643d19..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-20-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-20-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-20-pdflatex.pdf Binary files differdeleted file mode 100644 index 60b14ce76a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-20-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-21-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-21-lualatex.pdf Binary files differdeleted file mode 100644 index 21b57d5c61..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-21-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-21-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-21-pdflatex.pdf Binary files differdeleted file mode 100644 index 63b4903d03..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-21-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-22-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-22-lualatex.pdf Binary files differdeleted file mode 100644 index 139fbc8aa8..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-22-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-22-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-22-pdflatex.pdf Binary files differdeleted file mode 100644 index 0b56e38cd6..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-22-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-23-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-23-lualatex.pdf Binary files differdeleted file mode 100644 index 6f3c0d3ec0..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-23-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-23-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-23-pdflatex.pdf Binary files differdeleted file mode 100644 index beb585ea9e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-23-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-24-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-24-lualatex.pdf Binary files differdeleted file mode 100644 index e644f53a1e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-24-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-24-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-24-pdflatex.pdf Binary files differdeleted file mode 100644 index 77107c9983..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-24-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-25-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-25-lualatex.pdf Binary files differdeleted file mode 100644 index 459b262f7c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-25-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-25-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-25-pdflatex.pdf Binary files differdeleted file mode 100644 index dd27dbc683..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-25-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-26-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-26-lualatex.pdf Binary files differdeleted file mode 100644 index d6266ab46d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-26-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-26-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-26-pdflatex.pdf Binary files differdeleted file mode 100644 index 91f1e615f2..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-26-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-27-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-27-lualatex.pdf Binary files differdeleted file mode 100644 index 694f817b47..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-27-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-27-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-27-pdflatex.pdf Binary files differdeleted file mode 100644 index 6cb6dafe1e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-27-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-28-lualatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-28-lualatex.pdf Binary files differdeleted file mode 100644 index f114637f7a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-28-lualatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-28-pdflatex.pdf b/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-28-pdflatex.pdf Binary files differdeleted file mode 100644 index ab6adf09a4..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/expected-toc-28-pdflatex.pdf +++ /dev/null diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-bibliography-solicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-bibliography-solicited.tex deleted file mode 100644 index ae6c8142a2..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-bibliography-solicited.tex +++ /dev/null @@ -1,9 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=fi, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} - {\printbibliography[heading=bibintoc]} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-bibliography-unsolicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-bibliography-unsolicited.tex deleted file mode 100644 index bcec6d8000..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-bibliography-unsolicited.tex +++ /dev/null @@ -1,8 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=fi, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-color.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-color.tex deleted file mode 100644 index 6eabc71ccd..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-color.tex +++ /dev/null @@ -1,5 +0,0 @@ -\documentclass[color]{fithesis3} -\thesissetup{faculty=fi} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-czech-female.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-czech-female.tex deleted file mode 100644 index 33111f1e16..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-czech-female.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=fi, - gender=f} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-czech-male.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-czech-male.tex deleted file mode 100644 index 32eda09953..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-czech-male.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=fi, - gender=m} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-czech.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-czech.tex deleted file mode 100644 index 85b9da7b83..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-czech.tex +++ /dev/null @@ -1,12 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{faculty=fi} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-digital-emptyassignment.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-digital-emptyassignment.tex deleted file mode 100644 index 4c406bc816..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-digital-emptyassignment.tex +++ /dev/null @@ -1,4 +0,0 @@ -\documentclass[digital]{fithesis3} -\thesissetup{assignment = {}} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-digital-noassignment.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-digital-noassignment.tex deleted file mode 100644 index 1a849dce6a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-digital-noassignment.tex +++ /dev/null @@ -1,3 +0,0 @@ -\documentclass[digital]{fithesis3} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-digital-someassignment.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-digital-someassignment.tex deleted file mode 100644 index 7f2c49a387..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-digital-someassignment.tex +++ /dev/null @@ -1,5 +0,0 @@ -\documentclass[digital]{fithesis3} -\thesissetup{% - assignment = {resources/blindtext, resources/blindtext}} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-english.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-english.tex deleted file mode 100644 index 007658302a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-english.tex +++ /dev/null @@ -1,12 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{english} -\else - \usepackage[english]{babel} -\fi -\thesissetup{faculty=fi} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-oldtable.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-oldtable.tex deleted file mode 100644 index c5bd068f65..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-oldtable.tex +++ /dev/null @@ -1,18 +0,0 @@ -\documentclass[oldtable,color]{fithesis3} -\usepackage{tabularx} -\usepackage{tabu} -\thesissetup{faculty=fi} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-printed-emptyassignment.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-printed-emptyassignment.tex deleted file mode 100644 index f524de7178..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-printed-emptyassignment.tex +++ /dev/null @@ -1,4 +0,0 @@ -\documentclass[printed]{fithesis3} -\thesissetup{assignment = {}} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-printed-noassignment.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-printed-noassignment.tex deleted file mode 100644 index faf630a18f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-printed-noassignment.tex +++ /dev/null @@ -1,3 +0,0 @@ -\documentclass[printed]{fithesis3} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-printed-someassignment-oneside.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-printed-someassignment-oneside.tex deleted file mode 100644 index 6813f4f4a5..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-printed-someassignment-oneside.tex +++ /dev/null @@ -1,5 +0,0 @@ -\documentclass[printed,oneside]{fithesis3} -\thesissetup{% - assignment = {resources/blindtext, resources/blindtext}} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-printed-someassignment-twoside.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-printed-someassignment-twoside.tex deleted file mode 100644 index 550e2b6b6d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-printed-someassignment-twoside.tex +++ /dev/null @@ -1,5 +0,0 @@ -\documentclass[printed,twoside]{fithesis3} -\thesissetup{% - assignment = {resources/blindtext, resources/blindtext}} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-proposal.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-proposal.tex deleted file mode 100644 index 7a4d565dbf..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-proposal.tex +++ /dev/null @@ -1,7 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\thesissetup{ - faculty=fi, - type=prop} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-rigorous.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-rigorous.tex deleted file mode 100644 index 8e75a17cdd..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-rigorous.tex +++ /dev/null @@ -1,7 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\thesissetup{ - faculty=fi, - type=r} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-slovak-female.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-slovak-female.tex deleted file mode 100644 index 70a32689da..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-slovak-female.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=fi, - gender=f} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-slovak-male.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-slovak-male.tex deleted file mode 100644 index d0e35e2c84..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-slovak-male.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=fi, - gender=m} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-slovak.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-slovak.tex deleted file mode 100644 index ccb911fc1a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-slovak.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=fi} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fi-table.tex b/macros/latex/contrib/fithesis/test/mu/compare/fi-table.tex deleted file mode 100644 index b3f65e6e8a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fi-table.tex +++ /dev/null @@ -1,17 +0,0 @@ -\documentclass[table,color]{fithesis3} -\usepackage{tabu} -\thesissetup{faculty=fi} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fsps-bibliography-solicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/fsps-bibliography-solicited.tex deleted file mode 100644 index 8ca760b7b2..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fsps-bibliography-solicited.tex +++ /dev/null @@ -1,9 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=fsps, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} - {\printbibliography[heading=bibintoc]} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fsps-bibliography-unsolicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/fsps-bibliography-unsolicited.tex deleted file mode 100644 index 6049b4d48f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fsps-bibliography-unsolicited.tex +++ /dev/null @@ -1,8 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=fsps, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fsps-czech.tex b/macros/latex/contrib/fithesis/test/mu/compare/fsps-czech.tex deleted file mode 100644 index e9b2c4b834..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fsps-czech.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=fsps} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fsps-english.tex b/macros/latex/contrib/fithesis/test/mu/compare/fsps-english.tex deleted file mode 100644 index d8803b2dc5..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fsps-english.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{english} -\else - \usepackage[english]{babel} -\fi -\thesissetup{ - faculty=fsps} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fsps-oldtable.tex b/macros/latex/contrib/fithesis/test/mu/compare/fsps-oldtable.tex deleted file mode 100644 index 42eab65bc7..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fsps-oldtable.tex +++ /dev/null @@ -1,18 +0,0 @@ -\documentclass[oldtable,color]{fithesis3} -\usepackage{tabularx} -\usepackage{tabu} -\thesissetup{faculty=fsps} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fsps-slovak.tex b/macros/latex/contrib/fithesis/test/mu/compare/fsps-slovak.tex deleted file mode 100644 index 0f4066df54..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fsps-slovak.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=fsps} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fsps-table.tex b/macros/latex/contrib/fithesis/test/mu/compare/fsps-table.tex deleted file mode 100644 index 0162c4751d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fsps-table.tex +++ /dev/null @@ -1,17 +0,0 @@ -\documentclass[table,color]{fithesis3} -\usepackage{tabu} -\thesissetup{faculty=fsps} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fss-bibliography-solicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/fss-bibliography-solicited.tex deleted file mode 100644 index 4a369a6a66..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fss-bibliography-solicited.tex +++ /dev/null @@ -1,9 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=fss, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} - {\printbibliography[heading=bibintoc]} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fss-bibliography-unsolicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/fss-bibliography-unsolicited.tex deleted file mode 100644 index a365d23b82..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fss-bibliography-unsolicited.tex +++ /dev/null @@ -1,8 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=fss, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fss-czech-female.tex b/macros/latex/contrib/fithesis/test/mu/compare/fss-czech-female.tex deleted file mode 100644 index 34fd39b140..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fss-czech-female.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=fss, - gender=f} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fss-czech-male.tex b/macros/latex/contrib/fithesis/test/mu/compare/fss-czech-male.tex deleted file mode 100644 index 4403db8748..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fss-czech-male.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=fss, - gender=m} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fss-czech.tex b/macros/latex/contrib/fithesis/test/mu/compare/fss-czech.tex deleted file mode 100644 index 96388a75f3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fss-czech.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=fss} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fss-english.tex b/macros/latex/contrib/fithesis/test/mu/compare/fss-english.tex deleted file mode 100644 index 88a0a28255..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fss-english.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{english} -\else - \usepackage[english]{babel} -\fi -\thesissetup{ - faculty=fss} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fss-oldtable.tex b/macros/latex/contrib/fithesis/test/mu/compare/fss-oldtable.tex deleted file mode 100644 index 622ab5a405..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fss-oldtable.tex +++ /dev/null @@ -1,18 +0,0 @@ -\documentclass[oldtable,color]{fithesis3} -\usepackage{tabularx} -\usepackage{tabu} -\thesissetup{faculty=fss} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fss-slovak-female.tex b/macros/latex/contrib/fithesis/test/mu/compare/fss-slovak-female.tex deleted file mode 100644 index 2bc3eedc10..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fss-slovak-female.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=fss, - gender=f} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fss-slovak-male.tex b/macros/latex/contrib/fithesis/test/mu/compare/fss-slovak-male.tex deleted file mode 100644 index 393c6d5177..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fss-slovak-male.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=fss, - gender=m} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fss-slovak.tex b/macros/latex/contrib/fithesis/test/mu/compare/fss-slovak.tex deleted file mode 100644 index f06abb307e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fss-slovak.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=fss} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/fss-table.tex b/macros/latex/contrib/fithesis/test/mu/compare/fss-table.tex deleted file mode 100644 index 749e491133..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/fss-table.tex +++ /dev/null @@ -1,17 +0,0 @@ -\documentclass[table,color]{fithesis3} -\usepackage{tabu} -\thesissetup{faculty=fss} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/law-bibliography-solicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/law-bibliography-solicited.tex deleted file mode 100644 index a217d30252..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/law-bibliography-solicited.tex +++ /dev/null @@ -1,9 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=law, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} - {\printbibliography[heading=bibintoc]} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/law-bibliography-unsolicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/law-bibliography-unsolicited.tex deleted file mode 100644 index f50c895898..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/law-bibliography-unsolicited.tex +++ /dev/null @@ -1,8 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=law, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/law-czech.tex b/macros/latex/contrib/fithesis/test/mu/compare/law-czech.tex deleted file mode 100644 index e8b0c77a6a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/law-czech.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=law} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/law-english.tex b/macros/latex/contrib/fithesis/test/mu/compare/law-english.tex deleted file mode 100644 index b1510bb3d4..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/law-english.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{english} -\else - \usepackage[english]{babel} -\fi -\thesissetup{ - faculty=law} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/law-oldtable.tex b/macros/latex/contrib/fithesis/test/mu/compare/law-oldtable.tex deleted file mode 100644 index c3a376ef3b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/law-oldtable.tex +++ /dev/null @@ -1,18 +0,0 @@ -\documentclass[oldtable,color]{fithesis3} -\usepackage{tabularx} -\usepackage{tabu} -\thesissetup{faculty=law} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/law-slovak.tex b/macros/latex/contrib/fithesis/test/mu/compare/law-slovak.tex deleted file mode 100644 index 81430b9141..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/law-slovak.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=law} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/law-table.tex b/macros/latex/contrib/fithesis/test/mu/compare/law-table.tex deleted file mode 100644 index 771c36166e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/law-table.tex +++ /dev/null @@ -1,17 +0,0 @@ -\documentclass[table,color]{fithesis3} -\usepackage{tabu} -\thesissetup{faculty=law} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/med-bibliography-solicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/med-bibliography-solicited.tex deleted file mode 100644 index 3665538f12..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/med-bibliography-solicited.tex +++ /dev/null @@ -1,9 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=med, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} - {\printbibliography[heading=bibintoc]} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/med-bibliography-unsolicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/med-bibliography-unsolicited.tex deleted file mode 100644 index 6a3a7a786c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/med-bibliography-unsolicited.tex +++ /dev/null @@ -1,8 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=med, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/med-czech.tex b/macros/latex/contrib/fithesis/test/mu/compare/med-czech.tex deleted file mode 100644 index 2386114751..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/med-czech.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=med} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/med-english.tex b/macros/latex/contrib/fithesis/test/mu/compare/med-english.tex deleted file mode 100644 index e4476e5f71..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/med-english.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{english} -\else - \usepackage[english]{babel} -\fi -\thesissetup{ - faculty=med} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/med-oldtable.tex b/macros/latex/contrib/fithesis/test/mu/compare/med-oldtable.tex deleted file mode 100644 index cdc464bafd..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/med-oldtable.tex +++ /dev/null @@ -1,18 +0,0 @@ -\documentclass[oldtable,color]{fithesis3} -\usepackage{tabularx} -\usepackage{tabu} -\thesissetup{faculty=med} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/med-slovak.tex b/macros/latex/contrib/fithesis/test/mu/compare/med-slovak.tex deleted file mode 100644 index e2dbc133b6..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/med-slovak.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=med} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/med-table.tex b/macros/latex/contrib/fithesis/test/mu/compare/med-table.tex deleted file mode 100644 index 74d247fcc5..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/med-table.tex +++ /dev/null @@ -1,17 +0,0 @@ -\documentclass[table,color]{fithesis3} -\usepackage{tabu} -\thesissetup{faculty=med} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/ped-bibliography-solicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/ped-bibliography-solicited.tex deleted file mode 100644 index 5851daaf70..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/ped-bibliography-solicited.tex +++ /dev/null @@ -1,9 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=ped, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} - {\printbibliography[heading=bibintoc]} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/ped-bibliography-unsolicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/ped-bibliography-unsolicited.tex deleted file mode 100644 index 17452fed1a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/ped-bibliography-unsolicited.tex +++ /dev/null @@ -1,8 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=ped, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/ped-czech.tex b/macros/latex/contrib/fithesis/test/mu/compare/ped-czech.tex deleted file mode 100644 index f9ecf3efd7..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/ped-czech.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=ped} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/ped-english.tex b/macros/latex/contrib/fithesis/test/mu/compare/ped-english.tex deleted file mode 100644 index 4c5fe4575b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/ped-english.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{english} -\else - \usepackage[english]{babel} -\fi -\thesissetup{ - faculty=ped} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/ped-oldtable.tex b/macros/latex/contrib/fithesis/test/mu/compare/ped-oldtable.tex deleted file mode 100644 index 0272f13766..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/ped-oldtable.tex +++ /dev/null @@ -1,18 +0,0 @@ -\documentclass[oldtable,color]{fithesis3} -\usepackage{tabularx} -\usepackage{tabu} -\thesissetup{faculty=ped} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/ped-slovak.tex b/macros/latex/contrib/fithesis/test/mu/compare/ped-slovak.tex deleted file mode 100644 index 8b27dfe990..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/ped-slovak.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=ped} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/ped-table.tex b/macros/latex/contrib/fithesis/test/mu/compare/ped-table.tex deleted file mode 100644 index fd8a223a48..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/ped-table.tex +++ /dev/null @@ -1,17 +0,0 @@ -\documentclass[table,color]{fithesis3} -\usepackage{tabu} -\thesissetup{faculty=ped} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-bibliography-solicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-bibliography-solicited.tex deleted file mode 100644 index ff32e0dab7..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-bibliography-solicited.tex +++ /dev/null @@ -1,9 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=phil, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} - {\printbibliography[heading=bibintoc]} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-bibliography-unsolicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-bibliography-unsolicited.tex deleted file mode 100644 index 4932854891..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-bibliography-unsolicited.tex +++ /dev/null @@ -1,8 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=phil, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-czech-female.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-czech-female.tex deleted file mode 100644 index e70e647015..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-czech-female.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=phil, - gender=f} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-czech-male.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-czech-male.tex deleted file mode 100644 index 3ccf22513d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-czech-male.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=phil, - gender=m} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-czech.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-czech.tex deleted file mode 100644 index a3196943d6..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-czech.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=phil} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-english.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-english.tex deleted file mode 100644 index 2e8ada01e1..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-english.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{english} -\else - \usepackage[english]{babel} -\fi -\thesissetup{ - faculty=phil} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-czech-female.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-czech-female.tex deleted file mode 100644 index 774b7be73a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-czech-female.tex +++ /dev/null @@ -1,15 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=phil, - department=kisk, - gender=f} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-czech-male.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-czech-male.tex deleted file mode 100644 index d7bc93c28f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-czech-male.tex +++ /dev/null @@ -1,15 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=phil, - department=kisk, - gender=m} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-czech.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-czech.tex deleted file mode 100644 index 3f0d9ccc1b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-czech.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=phil, - department=kisk} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-english.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-english.tex deleted file mode 100644 index d3ece46e1b..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-english.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{english} -\else - \usepackage[english]{babel} -\fi -\thesissetup{ - faculty=phil, - department=kisk} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-slovak-female.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-slovak-female.tex deleted file mode 100644 index f66be46dc6..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-slovak-female.tex +++ /dev/null @@ -1,15 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=phil, - department=kisk, - gender=f} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-slovak-male.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-slovak-male.tex deleted file mode 100644 index 843e65d1db..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-slovak-male.tex +++ /dev/null @@ -1,15 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=phil, - department=kisk, - gender=m} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-slovak.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-slovak.tex deleted file mode 100644 index 1a9fa75c84..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-kisk-slovak.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=phil, - department=kisk} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-oldtable.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-oldtable.tex deleted file mode 100644 index 85c63f2b86..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-oldtable.tex +++ /dev/null @@ -1,18 +0,0 @@ -\documentclass[oldtable,color]{fithesis3} -\usepackage{tabularx} -\usepackage{tabu} -\thesissetup{faculty=phil} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-slovak-female.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-slovak-female.tex deleted file mode 100644 index 8a5c7bb1f3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-slovak-female.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=phil, - gender=f} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-slovak-male.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-slovak-male.tex deleted file mode 100644 index e776d8c962..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-slovak-male.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=phil, - gender=m} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-slovak.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-slovak.tex deleted file mode 100644 index 53edd2893f..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-slovak.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=phil} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/phil-table.tex b/macros/latex/contrib/fithesis/test/mu/compare/phil-table.tex deleted file mode 100644 index 77cbc6d9bd..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/phil-table.tex +++ /dev/null @@ -1,17 +0,0 @@ -\documentclass[table,color]{fithesis3} -\usepackage{tabu} -\thesissetup{faculty=phil} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-bibliography-solicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-bibliography-solicited.tex deleted file mode 100644 index 4dcad2a213..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-bibliography-solicited.tex +++ /dev/null @@ -1,9 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=sci, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} - {\printbibliography[heading=bibintoc]} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-bibliography-unsolicited.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-bibliography-unsolicited.tex deleted file mode 100644 index dcff5cc0c6..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-bibliography-unsolicited.tex +++ /dev/null @@ -1,8 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{ - faculty=sci, - bib=../../../example/mu/example.bib} -\begin{document} - Foo bar - \nocite{*} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-color.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-color.tex deleted file mode 100644 index dd767a5bec..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-color.tex +++ /dev/null @@ -1,6 +0,0 @@ -\documentclass[color]{fithesis3} -\thesissetup{ - faculty=sci} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-czech-female.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-czech-female.tex deleted file mode 100644 index 0a73ed87d6..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-czech-female.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=sci, - gender=f} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-czech-male.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-czech-male.tex deleted file mode 100644 index 11ea4088f6..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-czech-male.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=sci, - gender=m} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-czech.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-czech.tex deleted file mode 100644 index 2eeaf29a55..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-czech.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{czech} -\else - \usepackage[czech]{babel} -\fi -\thesissetup{ - faculty=sci} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-digital-emptyassignment.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-digital-emptyassignment.tex deleted file mode 100644 index 4e07fffdcc..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-digital-emptyassignment.tex +++ /dev/null @@ -1,6 +0,0 @@ -\documentclass[digital]{fithesis3} -\thesissetup{ - faculty = sci, - assignment = {}} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-digital-noassignment.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-digital-noassignment.tex deleted file mode 100644 index fdea4cc4a5..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-digital-noassignment.tex +++ /dev/null @@ -1,4 +0,0 @@ -\documentclass[digital]{fithesis3} -\thesissetup{faculty = sci} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-digital-someassignment-oneside.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-digital-someassignment-oneside.tex deleted file mode 100644 index b27c09632a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-digital-someassignment-oneside.tex +++ /dev/null @@ -1,6 +0,0 @@ -\documentclass[digital,oneside]{fithesis3} -\thesissetup{% - faculty = sci, - assignment = {resources/blindtext, resources/blindtext}} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-digital-someassignment-twoside.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-digital-someassignment-twoside.tex deleted file mode 100644 index 495865fa77..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-digital-someassignment-twoside.tex +++ /dev/null @@ -1,6 +0,0 @@ -\documentclass[digital,twoside]{fithesis3} -\thesissetup{% - faculty = sci, - assignment = {resources/blindtext, resources/blindtext}} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-english.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-english.tex deleted file mode 100644 index 5adc7727f8..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-english.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{english} -\else - \usepackage[english]{babel} -\fi -\thesissetup{ - faculty=sci} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-oldtable.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-oldtable.tex deleted file mode 100644 index c611487bc9..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-oldtable.tex +++ /dev/null @@ -1,18 +0,0 @@ -\documentclass[oldtable,color]{fithesis3} -\usepackage{tabularx} -\usepackage{tabu} -\thesissetup{faculty=sci} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-printed-emptyassignment.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-printed-emptyassignment.tex deleted file mode 100644 index bd6524e24e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-printed-emptyassignment.tex +++ /dev/null @@ -1,6 +0,0 @@ -\documentclass[printed]{fithesis3} -\thesissetup{ - faculty = sci, - assignment = {}} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-printed-noassignment.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-printed-noassignment.tex deleted file mode 100644 index f8a45e7097..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-printed-noassignment.tex +++ /dev/null @@ -1,4 +0,0 @@ -\documentclass[printed]{fithesis3} -\thesissetup{faculty = sci} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-printed-someassignment-oneside.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-printed-someassignment-oneside.tex deleted file mode 100644 index ae2506d275..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-printed-someassignment-oneside.tex +++ /dev/null @@ -1,6 +0,0 @@ -\documentclass[printed,oneside]{fithesis3} -\thesissetup{% - faculty = sci, - assignment = {resources/blindtext, resources/blindtext}} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-printed-someassignment-twoside.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-printed-someassignment-twoside.tex deleted file mode 100644 index 97895896b0..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-printed-someassignment-twoside.tex +++ /dev/null @@ -1,6 +0,0 @@ -\documentclass[printed,twoside]{fithesis3} -\thesissetup{% - faculty = sci, - assignment = {resources/blindtext, resources/blindtext}} -\begin{document} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-rigorous.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-rigorous.tex deleted file mode 100644 index 317631a541..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-rigorous.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - type=r, - faculty=sci} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-slovak-female.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-slovak-female.tex deleted file mode 100644 index 32508865f2..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-slovak-female.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=sci, - gender=f} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-slovak-male.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-slovak-male.tex deleted file mode 100644 index 676a5e7029..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-slovak-male.tex +++ /dev/null @@ -1,14 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=sci, - gender=m} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-slovak.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-slovak.tex deleted file mode 100644 index 7757b11fc8..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-slovak.tex +++ /dev/null @@ -1,13 +0,0 @@ -\documentclass[monochrome]{fithesis3} -\usepackage{ifluatex} -\ifluatex - \usepackage{polyglossia} - \setmainlanguage{slovak} -\else - \usepackage[slovak]{babel} -\fi -\thesissetup{ - faculty=sci} -\begin{document} - foo bar -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/sci-table.tex b/macros/latex/contrib/fithesis/test/mu/compare/sci-table.tex deleted file mode 100644 index 2d5ca51b8c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/sci-table.tex +++ /dev/null @@ -1,17 +0,0 @@ -\documentclass[table,color]{fithesis3} -\usepackage{tabu} -\thesissetup{faculty=sci} -\begin{document} - \begin{tabular}{ccc} - a&b&c\\ - d&e&f - \end{tabular} - \begin{tabularx}{\textwidth}{ccc} - a&b&c\\ - d&e&f - \end{tabularx} - \begin{tabu}{ccc} - a&b&c\\ - d&e&f - \end{tabu} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-01.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-01.tex deleted file mode 100644 index 9c5e75ec34..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-01.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{-2} -\setcounter{secnumdepth}{-2} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-02.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-02.tex deleted file mode 100644 index c69b1d3bf5..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-02.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{-1} -\setcounter{secnumdepth}{-2} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-03.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-03.tex deleted file mode 100644 index c516245116..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-03.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{-1} -\setcounter{secnumdepth}{-1} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-04.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-04.tex deleted file mode 100644 index 613fd496e6..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-04.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{0} -\setcounter{secnumdepth}{-2} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-05.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-05.tex deleted file mode 100644 index 94ecc66bdf..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-05.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{0} -\setcounter{secnumdepth}{-1} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-06.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-06.tex deleted file mode 100644 index 62f6634f02..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-06.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{0} -\setcounter{secnumdepth}{0} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-07.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-07.tex deleted file mode 100644 index 0318438301..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-07.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{1} -\setcounter{secnumdepth}{-2} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-08.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-08.tex deleted file mode 100644 index 61622b8a74..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-08.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{1} -\setcounter{secnumdepth}{-1} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-09.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-09.tex deleted file mode 100644 index e8e7a79e83..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-09.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{1} -\setcounter{secnumdepth}{0} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-10.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-10.tex deleted file mode 100644 index c533930643..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-10.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{1} -\setcounter{secnumdepth}{1} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-11.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-11.tex deleted file mode 100644 index 7f29c5ad8c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-11.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{2} -\setcounter{secnumdepth}{-2} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-12.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-12.tex deleted file mode 100644 index 62fbfbe689..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-12.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{2} -\setcounter{secnumdepth}{-1} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-13.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-13.tex deleted file mode 100644 index d5d872bac6..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-13.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{2} -\setcounter{secnumdepth}{0} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-14.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-14.tex deleted file mode 100644 index d694a162f0..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-14.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{2} -\setcounter{secnumdepth}{1} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-15.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-15.tex deleted file mode 100644 index 9d51bf476a..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-15.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{2} -\setcounter{secnumdepth}{2} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-16.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-16.tex deleted file mode 100644 index 6f6f79d562..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-16.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{3} -\setcounter{secnumdepth}{-2} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-17.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-17.tex deleted file mode 100644 index 11a66b125d..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-17.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{3} -\setcounter{secnumdepth}{-1} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-18.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-18.tex deleted file mode 100644 index 1386778235..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-18.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{3} -\setcounter{secnumdepth}{0} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-19.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-19.tex deleted file mode 100644 index 8fcfe1bff2..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-19.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{3} -\setcounter{secnumdepth}{1} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-20.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-20.tex deleted file mode 100644 index cf8cff08a3..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-20.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{3} -\setcounter{secnumdepth}{2} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-21.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-21.tex deleted file mode 100644 index 871793870c..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-21.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{3} -\setcounter{secnumdepth}{3} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-22.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-22.tex deleted file mode 100644 index 03ac4f4266..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-22.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{4} -\setcounter{secnumdepth}{-2} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-23.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-23.tex deleted file mode 100644 index 1cba1daae0..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-23.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{4} -\setcounter{secnumdepth}{-1} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-24.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-24.tex deleted file mode 100644 index 41615e1b30..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-24.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{4} -\setcounter{secnumdepth}{0} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-25.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-25.tex deleted file mode 100644 index 7742bf891e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-25.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{4} -\setcounter{secnumdepth}{1} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-26.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-26.tex deleted file mode 100644 index 4ed8943575..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-26.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{4} -\setcounter{secnumdepth}{2} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-27.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-27.tex deleted file mode 100644 index db2fb59001..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-27.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{4} -\setcounter{secnumdepth}{3} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/compare/toc-28.tex b/macros/latex/contrib/fithesis/test/mu/compare/toc-28.tex deleted file mode 100644 index e06a2ef19e..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/compare/toc-28.tex +++ /dev/null @@ -1,28 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout = false} -\thesisload -\setcounter{tocdepth}{4} -\setcounter{secnumdepth}{4} -\begin{document} - \tableofcontents - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} - - \part{abc} - \chapter{def} - \section{ghi} - \subsection{jkl} - \subsubsection{mno} - \paragraph{pqr} - \subparagraph{stu} - \chapter{vwx} - \section{yz} -\end{document} diff --git a/macros/latex/contrib/fithesis/test/mu/comparepdf.sh b/macros/latex/contrib/fithesis/test/mu/comparepdf.sh deleted file mode 100755 index e30ec13fef..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/comparepdf.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh -# This script visually compares two PDF documents on a page-by-page basis. - -# Print an error message and die. -die() { - FORMAT="$1"; shift - printf "$FORMAT\n" "$@" 1>&2 - exit 1 -} - -# Check if a file exist. -exists() { - [ -e "$1" ] || die 'File "%s" does not exist.' "$1" -} - -# Check that the input files exist. -exists "$1" || exit 1 -exists "$2" || exit 1 - -# Burst the input files into temporary directories. -SOURCE_DIR=`mktemp -d` && trap 'rm -r $SOURCE_DIR' EXIT && - pdftk "$1" burst output $SOURCE_DIR/%04d.pdf -DEST_DIR=`mktemp -d` && trap 'rm -r $SOURCE_DIR $DEST_DIR' EXIT && - pdftk "$2" burst output $DEST_DIR/%04d.pdf - -# Compare the individual pages. -DIFFER=false; PAGES="" -for PAGE in `((cd $SOURCE_DIR && ls *.pdf) && (cd $DEST_DIR && ls *.pdf)) | sort -u`; do - PAGENUM=`echo ${PAGE%%.pdf} | sed 's/^0*//'` - if [ -e $SOURCE_DIR/$PAGE -a ! -e $DEST_DIR/$PAGE ]; then - die 'The document "%s" does not contain page "%d".' "$2" $PAGENUM - elif [ ! -e $SOURCE_DIR/$PAGE -a -e $DEST_DIR/$PAGE ]; then - die 'The document "%s" does not contain page "%d".' "$1" $PAGENUM - else - if ! comparepdf --compare=appearance --verbose=0 $SOURCE_DIR/$PAGE $DEST_DIR/$PAGE; then - DIFFER=true - PAGES="$PAGES, $PAGENUM" - fi - fi -done - -# Print out the result. -if $DIFFER; then - PAGES="$(echo "$PAGES" | tail -c+3)" - die 'The documents "%s" and "%s" differ in pages %s.' "$1" "$2" "$PAGES" -fi diff --git a/macros/latex/contrib/fithesis/test/mu/update-tests.sh b/macros/latex/contrib/fithesis/test/mu/update-tests.sh deleted file mode 100755 index 91b80db5f1..0000000000 --- a/macros/latex/contrib/fithesis/test/mu/update-tests.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -# Runs tests and updates any files that have changed. -exec 3>&1 -( - set -e - make -C compare UPDATE_FAILED=true - make -C compare-example UPDATE_FAILED=true -) 2>&1 1>&3 | grep -Ei 'error|does not contain page|differ in pages' >update-tests.log diff --git a/macros/latex/contrib/fithesis/test/parse-date.tex b/macros/latex/contrib/fithesis/test/parse-date.tex deleted file mode 100644 index 24d17760ec..0000000000 --- a/macros/latex/contrib/fithesis/test/parse-date.tex +++ /dev/null @@ -1,40 +0,0 @@ -\documentclass{fithesis3} -\thesissetup{autoLayout=false} -\begin{document}\makeatletter - % Unit tests for the `\thesis@parseDate` function. - \def\test#1#2#3#4#5#6#7{% - \def\expected@date{#1} - \def\expected@year{#2} - \def\expected@month{#3} - \def\expected@day{#4} - \def\expected@season{#5} - \def\expected@seasonYear{#6} - \def\expected@academicYear{#7} - \thesis@parseDate#1| - \ifx\thesis@date\expected@date - \ifx\thesis@year\expected@year - \ifx\thesis@month\expected@month - \ifx\thesis@day\expected@day - \ifx\thesis@season\expected@season - \ifx\thesis@seasonYear\expected@seasonYear - \ifx\thesis@academicYear\expected@academicYear - \else\errmessage{#1 @academicYear: \thesis@academicYear !=#7}\fi - \else\errmessage{#1 @seasonYear: \thesis@seasonYear !=#6}\fi - \else\errmessage{#1 @season: \thesis@season !=#5}\fi - \else\errmessage{#1 @day: \thesis@day !=#4}\fi - \else\errmessage{#1 @month: \thesis@month !=#3}\fi - \else\errmessage{#1 @year: \thesis@year !=#2}\fi - \else\errmessage{#1 @date: \thesis@date !=#1}\fi} - \test{2015/01/01}{2015}{01}{01}{fall}{2014}{2014/2015} - \test{2015/02/01}{2015}{02}{01}{fall}{2014}{2014/2015} - \test{2015/03/01}{2015}{03}{01}{spring}{2015}{2014/2015} - \test{2015/04/01}{2015}{04}{01}{spring}{2015}{2014/2015} - \test{2015/05/01}{2015}{05}{01}{spring}{2015}{2014/2015} - \test{2015/06/01}{2015}{06}{01}{spring}{2015}{2014/2015} - \test{2015/07/01}{2015}{07}{01}{spring}{2015}{2014/2015} - \test{2015/08/01}{2015}{08}{01}{spring}{2015}{2014/2015} - \test{2015/09/01}{2015}{09}{01}{fall}{2015}{2015/2016} - \test{2015/10/01}{2015}{10}{01}{fall}{2015}{2015/2016} - \test{2015/11/01}{2015}{11}{01}{fall}{2015}{2015/2016} - \test{2015/12/01}{2015}{12}{01}{fall}{2015}{2015/2016} -\makeatother\end{document} diff --git a/macros/latex/contrib/register/README b/macros/latex/contrib/register/README index f250c7dbc2..bcfbf4d89e 100644 --- a/macros/latex/contrib/register/README +++ b/macros/latex/contrib/register/README @@ -10,9 +10,10 @@ This package is designed for typesetting the programmable elements in digital hardware, i.e., registers. Such registers typically have many fields and can be quite wide; they are thus a challenge to typeset in a consistent manner. Register is similar in some aspects to the -bytefield package. Anyone doing hardware documentation using LaTeX -should examine both packages. Register requires version 2001/07/25 or -newer of the float package. +bytefield and bitpattern packages. Anyone doing hardware +documentation using LaTeX should examine those packages. + +Register requires version 2001/07/25 or newer of the float package. An example Perl module and script are provided, to convert the register specifications into structures suitable for, say, a @@ -38,7 +39,7 @@ documentation includes some representative examples of package usage. Copyright and license --------------------- -Copyright (C) 2001-2018 Matthew Lovell, lovells@gmail.com +Copyright (C) 2001-2020 Matthew Lovell, lovells@gmail.com This package may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this diff --git a/macros/latex/contrib/register/register.dtx b/macros/latex/contrib/register/register.dtx index 2c2b41cf6d..edbc2f54b7 100644 --- a/macros/latex/contrib/register/register.dtx +++ b/macros/latex/contrib/register/register.dtx @@ -4,7 +4,7 @@ % Register diagrams with field descriptions % % Author: Matthew Lovell (lovells@gmail.com) -% Copyright 2001-2019 by Matthew B. Lovell +% Copyright 2001-2020 by Matthew B. Lovell % % Run LaTeX on the file `register.ins' to get a .sty-file and % then on `register.dtx' to obtain instructions. @@ -20,10 +20,10 @@ \ProvidesFile{register.dtx} %</dtx> % \fi -% \CheckSum{785} +% \CheckSum{804} % -% \def\fileversion{v1.9} -% \def\filedate{2019/01/01} +% \def\fileversion{v2.0} +% \def\filedate{2020/03/22} % \title{Register diagrams with field descriptions} % \author{Matthew Lovell\\ % \texttt{lovells@gmail.com} @@ -40,7 +40,8 @@ % they are thus a challenge to typeset in a consistent manner. % This package attempts to address such issues. It is similar % in some aspects to the |bitfield| package by Reuben Thomas and the -% |bytefield| package by Scott Pakin. +% |bytefield| package by Scott Pakin. Authors may also wish to +% inspect the |bitpattern| package by Jean-Marc Bourguet. % \end{abstract} % % \StopEventually @@ -543,6 +544,8 @@ % \item [\textbf{v1.7}] (2018/08/18) Added color option to package, suggested by Marco Stolba % \item [\textbf{v1.8}] (2018/11/10) Added unnumbered |register*| environment, suggested and written by Stephan Bauroth % \item [\textbf{v1.9}] (2019/01/01) Switched to a re-definable macro to provide default float name and LoR name, suggested by Benyuan Liu. +% \item [\textbf{v2.0}] (2020/03/22) Added package options for captions and replaced |\bf| usage, suggested by Andrea Bettati. % +% Also attempt to work better with |memoir| class. % \end{itemize} % % @@ -562,7 +565,7 @@ % % Announce the name and unconditionally load most of the required packages: % \begin{macrocode} -\ProvidesPackage{register} [2019/01/01 v1.9 Register macros with +\ProvidesPackage{register} [2020/03/22 v2.0 Register macros with hyperref/LyX support] \RequirePackage{ifthen}[1997/11/02] @@ -573,29 +576,42 @@ hyperref/LyX support] % % Declare the package options and some booleans. There are options indicating % whether |register| is being used with \LyX{} or |hyperref|. The marginal -% TR flags can also be turned on or off with an option. +% TR flags can also be turned on or off with an option. A new package +% option, |botcaption| serves to change the default caption location to +% below the register diagram, rather than above. Finally, |nocaption| turns +% off the |\caption| invocation internal to the |register| environment +% entirely, for users who would rather craft their own caption. Note than +% one can specify \emph{both} |botcaption| and |nocaption| -- explicit +% author-specified captions would then appear at the bottom of each diagram. % \begin{macrocode} +% \DeclareOption{LyX}{\setboolean{RegisterLyX}{true}} \DeclareOption{hyperref}{\setboolean{RegisterHyperref}{true}} \DeclareOption{TRflags}{\setboolean{RegisterTRFlags}{true}} \DeclareOption{TRboxed}{\setboolean{RegisterTRBoxed}{true}} \DeclareOption{color}{\setboolean{RegisterColors}{true}} +\DeclareOption{botcaption}{\setboolean{RegisterBottom}{true}} +\DeclareOption{nocaption}{\setboolean{RegisterNoCaption}{true}} \DeclareOption*{% Emit a warning for other options \PackageWarning{register}{Unknown option '\CurrentOption'}% } -\newboolean{RegisterLyX} -\newboolean{RegisterHyperref} -\newboolean{RegisterTRFlags} -\newboolean{RegisterTRBoxed} -\newboolean{RegisterColors} +\newboolean{RegisterLyX}% Work with LyX +\newboolean{RegisterHyperref}% Work with hyperref package +\newboolean{RegisterTRFlags}% TR release flags +\newboolean{RegisterTRBoxed}% Place frame around TR flags +\newboolean{RegisterColors}% Permit color-filling register fields +\newboolean{RegisterBottom}% Move caption location to beneath register +\newboolean{RegisterNoCaption}% Disable environment's built-in caption \setboolean{RegisterLyX}{false} \setboolean{RegisterHyperref}{false} \setboolean{RegisterTRFlags}{false} \setboolean{RegisterTRBoxed}{false} \setboolean{RegisterColors}{false} +\setboolean{RegisterBottom}{false} +\setboolean{RegisterNoCaption}{false} \ProcessOptions\relax % Process package options % \end{macrocode} @@ -636,16 +652,26 @@ hyperref/LyX support] % \end{macrocode} -% \subsection{Float Declaration \& Lengths} \label{sec:float} +% \subsection{New Float Declaration} \label{sec:float} % % Declare the new register float type and the lengths which the % macros will use. The register diagrams tend to look best with -% the caption at the top of the float. If |\chapter| is defined in +% the caption at the top of the float. Note, however, that caption +% placement \emph{can} be changed in the document itself. For example, +% one can use the macro |\floatstyle{plain}|, followed by +% |\restylefloat{Regfloat}|, to alter how all subsequent register +% captions are typeset. +% +% \begin{macrocode} +\ifthenelse{\boolean{RegisterBottom}}{\floatstyle{plain}}{\floatstyle{plaintop}} +% \end{macrocode} +% +% If |\chapter| is defined in % the current document class, then the register diagrams will count % by chapter, otherwise they will count by section. % % \begin{macrocode} -\floatstyle{plaintop} \@ifundefined{chapter} +\@ifundefined{chapter} {\newfloat{Regfloat}{tbp}{rdf}[section]} {\newfloat{Regfloat}{tbp}{rdf}[chapter]} \floatname{Regfloat}{\regFloatName} @@ -699,7 +725,7 @@ hyperref/LyX support] \newcommand{\regResetSize}{\scriptsize} \newcommand{\regLabelSize}{\footnotesize} \newcommand{\regLabelFamily}{\rmfamily} -\newcommand{\regDescFamily}{\bf} +\newcommand{\regDescFamily}{\bfseries} % \end{macrocode} % The lengths below control the vertical spacing between a % register diagrams and the register field descriptions. This @@ -806,9 +832,11 @@ hyperref/LyX support] \setlength{\partopsep}{0pt}% \setlength{\topsep}{0pt}% \setboolean{RegisterContext}{true}% - \ifthenelse{\equal{#3}{}}% - {\caption[#2]{\textsc{#2}}}% else - {\caption[#2]{\textsc{#2} ({#3})}}% + \ifthenelse{\boolean{RegisterNoCaption}}{}% + {\ifthenelse{\equal{#3}{}}% + {\caption[#2]{\textsc{#2}}}% else + {\caption[#2]{\textsc{#2} ({#3})}}% + }% \centering} {% restore lengths \leftskip\z@% @@ -1213,13 +1241,24 @@ hyperref/LyX support] % \end{macrocode} % % -% % The |\chapter| command, if present, is also redefined in order % to get identical chapter-related spacing in the list of registers % as appears in the LoF and LoT. Kjetil Oftedal provided a fix % wherein we test that @mainmatter is defined prior to using it. +% +% This change to |\chapter| is not particularly friendly if one is +% using the |memoir| package, however! So, we first check what +% document class is being used. If |memoir| is being used, we invoke +% its |\memchapinfo| hook rather than attempt any redefinition of +% |\chapter|. +% +% % \begin{macrocode} \@ifundefined{@mainmatter}{\newif\if@mainmatter \@mainmattertrue}{} +\@ifclassloaded{memoir}{% +\renewcommand{\memchapinfo}[4]{% + \addtocontents{rdf}{\protect\addvspace{10pt}}} +}{% \@ifundefined{chapter}{} {% Adjust chapter definition slightly for Regfloats \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne @@ -1244,7 +1283,7 @@ hyperref/LyX support] \@makechapterhead{#2}% \@afterheading \fi} -} +}} % \end{macrocode} % % diff --git a/macros/latex/contrib/register/register.pdf b/macros/latex/contrib/register/register.pdf Binary files differindex 1a0ad7f95c..c6f74959f6 100644 --- a/macros/latex/contrib/register/register.pdf +++ b/macros/latex/contrib/register/register.pdf diff --git a/macros/latex/contrib/rest-api/README.md b/macros/latex/contrib/rest-api/README.md new file mode 100644 index 0000000000..a092c4b8dd --- /dev/null +++ b/macros/latex/contrib/rest-api/README.md @@ -0,0 +1,6 @@ +# describe restapi +LaTeX package for describing rest apis + +Developed by Dennis Klein <dennis94.kl@gmail.com> + +This material is subject to the LATEX Project Public License 1.3c.
\ No newline at end of file diff --git a/macros/latex/contrib/rest-api/rest-api.dtx b/macros/latex/contrib/rest-api/rest-api.dtx new file mode 100644 index 0000000000..fa195fdf78 --- /dev/null +++ b/macros/latex/contrib/rest-api/rest-api.dtx @@ -0,0 +1,969 @@ +% \iffalse meta-comment +% +% Copyright (C) 2020 by Dennis Klein dennis94.kl@gmail.com +% --------------------------------------------------------------------------- +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% 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.3 or later is part of all distributions of LaTeX +% version 2008/05/04 or later. +% +% This work consists of the files rest-api.dtx and rest-api.ins +% and the derived filebase rest-api.sty. +% +% \fi +% +% \iffalse +%<*driver> +\ProvidesFile{rest-api.dtx} +%</driver> +%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] +%<package>\ProvidesPackage{rest-api} +%<*package> + [2020/03/22 v1.2 rest-api package] +%</package> +% +%<*driver> +\documentclass{ltxdoc} +\EnableCrossrefs +\usepackage{listings} +\CodelineIndex +\RecordChanges +\begin{document} + \setlength{\parindent}{0pt} + \DocInput{rest-api.dtx} + \PrintChanges + \PrintIndex +\end{document} +%</driver> +% \fi +% +% \CheckSum{424} +% +% \CharacterTable +% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +% Digits \0\1\2\3\4\5\6\7\8\9 +% Exclamation \! Double quote \" Hash (number) \# +% Dollar \$ Percent \% Ampersand \& +% Acute accent \' Left paren \( Right paren \) +% Asterisk \* Plus \+ Comma \, +% Minus \- Point \. Solidus \/ +% Colon \: Semicolon \; Less than \< +% Equals \= Greater than \> Question mark \? +% Commercial at \@ Left bracket \[ Backslash \\ +% Right bracket \] Circumflex \^ Underscore \_ +% Grave accent \` Left brace \{ Vertical bar \| +% Right brace \} Tilde \~} +% +% +% \changes{v1.2}{2020/03/22}{Corrections for CTAN, rename to rest-api} +% \changes{v1.1}{2020/03/21}{Add documentation and usage} +% \changes{v1.0}{2020/02/18}{Converted to DTX file} +% \changes{v0.3}{2020/02/17}{Add commands for color customization} +% \changes{v0.2}{2020/02/17}{Add command to enable/disable breaks in route environments} +% \changes{v0.1}{2020/02/15}{Start project} +% +% \DoNotIndex{\newcommand,\newenvironment} +% +% \providecommand*{\url}{\texttt} +% \GetFileInfo{rest-api.dtx} +% \title{The \textsf{rest-api} package} +% \author{Dennis Klein \\ \url{dennis94.kl@gmail.com}} +% \date{\fileversion~from \filedate} +% +% \maketitle +% +% \section{Introduction} +% A package to discribe a REST API for documentation. +% +% +% \section{Usage} +% \paragraph{GET Request with parameter} \ +% \iffalse +%<*example> +% \fi +\begin{lstlisting}[frame=single,breaklines=true] + \begin{apiRoute}{get}{/api/storage/\{id\}}{get specific storage with id} + \begin{routeParameter} + \routeParamItem{id}{id of storage} + \end{routeParameter} + \begin{routeResponse}{application/json} + \begin{routeResponseItem}{200}{ok} + \begin{routeResponseItemBody} +{ + "id": 867654678, + "name" : "Apfelmus", + "count" : 25 +} + \end{routeResponseItemBody} + \end{routeResponseItem} + \begin{routeResponseItem}{404}{error: storage not found} + \begin{routeResponseItemBody} +{ + "message": "storage with id '11' not found!" +} + \end{routeResponseItemBody} + \end{routeResponseItem} + \end{routeResponse} +\end{apiRoute} +\end{lstlisting} +% \iffalse +%</example> +% \fi + +% \paragraph{GET Request without parameter} \ +% \iffalse +%<*example> +% \fi +\begin{lstlisting}[frame=single,breaklines=true] +\begin{apiRoute}{get}{/api/storage/}{get a list of all storage's} + \begin{routeParameter} + \noRouteParamter{no parameter} + \end{routeParameter} + \begin{routeResponse}{application/json} + \begin{routeResponseItem}{200}{ok} + \begin{routeResponseItemBody} +[ + { + "id": 867654678, + "name" : "Apfelmus", + "count" : 25 + }, + { + "id": 342523, + "name" : "Birnenmus", + "count" : 1 + }, + ... +] + \end{routeResponseItemBody} + \end{routeResponseItem} + \end{routeResponse} +\end{apiRoute} +\end{lstlisting} +% \iffalse +%</example> +% \fi + +% \paragraph{GET Request without parameter and response} \ +% \iffalse +%<*example> +% \fi +\begin{lstlisting}[frame=single,breaklines=true] +\begin{apiRoute}{get}{/api/storage/}{} + \begin{routeParameter} + \noRouteParamter{no parameter} + \end{routeParameter} + \begin{routeResponse}{application/json} + \noRouteResponse{no response} + \end{routeResponse} +\end{apiRoute} +\end{lstlisting} +% \iffalse +%</example> +% \fi + +% \paragraph{POST Request} \ +% \iffalse +%<*example> +% \fi +\begin{lstlisting}[frame=single,breaklines=true] +\begin{apiRoute}{post}{/api/storage/}{create a new storage} + \begin{routeParameter} + \noRouteParamter{no parameter} + \end{routeParameter} + \begin{routeRequest}{application/json} + \begin{routeRequestBody} +{ + "name" : "Apfelmus", + "count" : 25 +} + \end{routeRequestBody} + \end{routeRequest} + \begin{routeResponse}{application/json} + \begin{routeResponseItem}{200}{ok} + \begin{routeResponseItemBody} +{ + "id": 867654678, + "name" : "Apfelmus", + "count" : 25 +} + \end{routeResponseItemBody} + \end{routeResponseItem} + \end{routeResponse} +\end{apiRoute} +\end{lstlisting} +% \iffalse +%</example> +% \fi + +% \paragraph{PUT Request} \ +% \iffalse +%<*example> +% \fi +\begin{lstlisting}[frame=single,breaklines=true] +\begin{apiRoute}{put}{/api/storage/\{id\}}{change a existing storage with id} + \begin{routeParameter} + \routeParamItem{id}{id of storage} + \end{routeParameter} + \begin{routeRequest}{application/json} + \begin{routeRequestBody} +{ + "id": 867654678, + "name" : "Apfelmus", + "count" : 255 +} + \end{routeRequestBody} + \end{routeRequest} + \begin{routeResponse}{application/json} + \begin{routeResponseItem}{200}{ok} + \begin{routeResponseItemBody} +{ + "id": 867654678, + "name" : "Apfelmus", + "count" : 255 +} + \end{routeResponseItemBody} + \end{routeResponseItem} + \begin{routeResponseItem}{404}{error: storage not found} + \begin{routeResponseItemBody} +{ + "message": "storage with id '11' not found!" +} + \end{routeResponseItemBody} + \end{routeResponseItem} + \end{routeResponse} +\end{apiRoute} +\end{lstlisting} +% \iffalse +%</example> +% \fi + +% \paragraph{DELETE Request} \ +% \iffalse +%<*example> +% \fi +\begin{lstlisting}[frame=single,breaklines=true] +\begin{apiRoute}{delete}{/api/storage/\{id\}}{remove a storage with id} + \begin{routeParameter} + \routeParamItem{id}{id of storage} + \end{routeParameter} + \begin{routeResponse}{application/json} + \begin{routeResponseItem}{200}{ok} + + \end{routeResponseItem} + \begin{routeResponseItem}{404}{error: storage not found} + \begin{routeResponseItemBody} +{ + "message": "storage with id '11' not found!" +} + \end{routeResponseItemBody} + \end{routeResponseItem} + \end{routeResponse} +\end{apiRoute} +\end{lstlisting} +% \iffalse +%</example> +% \fi + +% +% +% +% \subsection{Usercallable macros and environments} +% +% \DescribeMacro{\getGetColor} +% Return the main color for routes with get method. +% +% \DescribeMacro{\getGetBorderColor} +% Return the border color for routes with get method. +% +% \DescribeMacro{\getGetLightColor} +% Return the background color for routes with get method. +% +% \DescribeMacro{\getPostColor} +% Return the main color for routes with post method. +% +% \DescribeMacro{\getPostBorderColor} +% Return the border color for routes with post method. +% +% \DescribeMacro{\getPostLightColor} +% Return the background color for routes with post method. +% +% \DescribeMacro{\getPutColor} +% Return the main color for routes with put method. +% +% \DescribeMacro{\getPutBorderColor} +% Return the border color for routes with put method. +% +% \DescribeMacro{\getPutLightColor} +% Return the background color for routes with put method. +% +% \DescribeMacro{\getDeleteColor} +% Return the main color for routes with delete method. +% +% \DescribeMacro{\getDeleteBorderColor} +% Return the border color for routes with delete method. +% +% \DescribeMacro{\getDeleteLightColor} +% Return the background color for routes with delete method. +% +% \DescribeMacro{\noBreakRoute} +% Set \textbackslash routeBreakValue true. +% +% \DescribeMacro{\breakRoute} +% Set \textbackslash routeBreakValue false. +% +% \DescribeEnv{apiRoute} +% Describe an endpoint with path, method and describtion. +% Contains other environments with further information. +% +% \DescribeEnv{routeRequest} +% Describe the content type of the request. +% Contains the request body. +% +% \DescribeEnv{routeParameter} +% Describe the path parameter. +% Contains a list of \textbackslash routeParamItem commands. +% If no paramters excists you can use the command \textbackslash noRouteParamter. +% +% \DescribeMacro{\routeParamItem} +% Describe a parameter with name and describtion. +% +% \DescribeMacro{\noRouteParamter} +% Show a text e.g. 'no parameter'. +% +% \DescribeEnv{routeResponse} +% Describe the content type of the response. +% Contains a list of routeResponseItem environments or the command \textbackslash noRouteResponse. +% +% \DescribeMacro{\noRouteResponse} +% Show a text e.g. 'no response'. +% +% \DescribeEnv{routeResponseItem} +% Describe the the http status code with describtion. +% Contains the response body. +% +% +% \subsection{Helper macros} +% +% \DescribeMacro{\routeBreakValue} +% Return true or false to enable/disable noBreak of a route. +% +% \DescribeMacro{\methodColor} +% Return the main color of the current route. +% +% \DescribeMacro{\methodLightColor} +% Return the background color of the current route. +% +% \DescribeMacro{\methodBorderColor} +% Return the border color of the current route. +% +% \DescribeMacro{\methodJson} +% Set the with \\lstset color scheme for the listings of the current route. +% + +% +% \StopEventually{} +% +% \section{Implementation} +% +% \iffalse +%<*package> +% \fi +% +% this is my first package +% +% (c) Dennis Klein +% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN archives +%% in directory macros/latex/base/lppl.txt. +% +% +% \begin{macrocode} +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{restapi}[2020/02/18 REST API package] +\RequirePackage[T1]{fontenc} +\RequirePackage{tabularx,colortbl} +\RequirePackage{transparent} +\RequirePackage{xcolor} +\RequirePackage{color} +\RequirePackage{xifthen, xstring} +\RequirePackage{tikz} +\RequirePackage[framemethod=tikz]{mdframed} +\RequirePackage{array} +\RequirePackage{verbatim} +\RequirePackage{listings} +% \end{macrocode} +% +% \begin{macrocode} +\definecolor{getBlue}{HTML}{1391FF} +\definecolor{getBlueBorder}{HTML}{61affe} +\definecolor{getLightBlue}{HTML}{ECF6FF} +% \end{macrocode} +% +% \begin{macro}{\getGetColor} +% \begin{macrocode} +\newcommand{\getGetColor}{getBlue} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\getGetBorderColor} +% \begin{macrocode} +\newcommand{\getGetBorderColor}{getBlueBorder} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\getGetLightColor} +% \begin{macrocode} +\newcommand{\getGetLightColor}{getLightBlue} +% \end{macrocode} +% \end{macro} +% +% \begin{macrocode} +\definecolor{postGreen}{HTML}{009D77} +\definecolor{postGreenBorder}{HTML}{49CC97} +\definecolor{postLightGreen}{HTML}{EBF7F4} +% \end{macrocode} +% +% \begin{macro}{\getPostColor} +% \begin{macrocode} +\newcommand{\getPostColor}{postGreen} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\getPostBorderColor} +% \begin{macrocode} +\newcommand{\getPostBorderColor}{postGreenBorder} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\getPostLightColor} +% \begin{macrocode} +\newcommand{\getPostLightColor}{postLightGreen} +% \end{macrocode} +% \end{macro} +% +% \begin{macrocode} +\definecolor{putOrange}{HTML}{E97500} +\definecolor{putOrangeBorder}{HTML}{fca130} +\definecolor{putLightOrange}{HTML}{FEF4EB} +% \end{macrocode} +% +% \begin{macro}{\getPutColor} +% \begin{macrocode} +\newcommand{\getPutColor}{putOrange} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\getPutBorderColor} +% \begin{macrocode} +\newcommand{\getPutBorderColor}{putOrangeBorder} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\getPutLightColor} +% \begin{macrocode} +\newcommand{\getPutLightColor}{putLightOrange} +% \end{macrocode} +% \end{macro} +% +% \begin{macrocode} +\definecolor{deleteRed}{HTML}{CF3030} +\definecolor{deleteRedBorder}{HTML}{f93e3e} +\definecolor{deleteLightRed}{HTML}{FBEEEE} +% \end{macrocode} +% +% \begin{macro}{\getDeleteColor} +% \begin{macrocode} +\newcommand{\getDeleteColor}{deleteRed} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\getDeleteBorderColor} +% \begin{macrocode} +\newcommand{\getDeleteBorderColor}{deleteRedBorder} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\getDeleteLightColor} +% \begin{macrocode} +\newcommand{\getDeleteLightColor}{deleteLightRed} +% \end{macrocode} +% \end{macro} +% +% \begin{macrocode} +\colorlet{punct}{black} +\definecolor{background}{HTML}{EEEEEE} +\colorlet{delimGet}{\getGetColor} +\colorlet{numbGet}{delimGet} +\colorlet{delimPost}{\getPostColor} +\colorlet{numbPost}{delimPost} +\colorlet{delimPut}{\getPutColor} +\colorlet{numbPut}{delimPut} +\colorlet{delimDelete}{\getDeleteColor} +\colorlet{numbDelete}{delimDelete} +\lstdefinelanguage{jsonGet}{ + basicstyle=\small\ttfamily\color{black}, + numberstyle=\small\color{black}, + keywordstyle=\color{black}, + commentstyle=\color{black}, + stringstyle=\color{black}, + frame=L, + framesep=8pt, + framerule=2pt, + xleftmargin=50pt, + xrightmargin=0pt, + rulesep=0pt, + backgroundcolor=\color{white}, + numbersep=8pt, + tabsize=4, + showstringspaces=false, + breaklines=true, + literate= + *{0}{{{\color{numbGet}0}}}{1} + {1}{{{\color{numbGet}1}}}{1} + {2}{{{\color{numbGet}2}}}{1} + {3}{{{\color{numbGet}3}}}{1} + {4}{{{\color{numbGet}4}}}{1} + {5}{{{\color{numbGet}5}}}{1} + {6}{{{\color{numbGet}6}}}{1} + {7}{{{\color{numbGet}7}}}{1} + {8}{{{\color{numbGet}8}}}{1} + {9}{{{\color{numbGet}9}}}{1} + {:}{{{\color{punct}{:}}}}{1} + {,}{{{\color{punct}{,}}}}{1} + {\{}{{{\color{delimGet}{\{}}}}{1} + {\}}{{{\color{delimGet}{\}}}}}{1} + {[}{{{\color{delimGet}{[}}}}{1} + {]}{{{\color{delimGet}{]}}}}{1}, +} +\lstdefinelanguage{jsonPost}{ + basicstyle=\small\ttfamily\color{black}, + numberstyle=\small\color{black}, + keywordstyle=\color{black}, + commentstyle=\color{black}, + stringstyle=\color{black}, + frame=L, + framesep=8pt, + framerule=2pt, + xleftmargin=50pt, + xrightmargin=0pt, + rulesep=0pt, + backgroundcolor=\color{white}, + numbersep=8pt, + tabsize=4, + showstringspaces=false, + breaklines=true, + literate= + *{0}{{{\color{numbPost}0}}}{1} + {1}{{{\color{numbPost}1}}}{1} + {2}{{{\color{numbPost}2}}}{1} + {3}{{{\color{numbPost}3}}}{1} + {4}{{{\color{numbPost}4}}}{1} + {5}{{{\color{numbPost}5}}}{1} + {6}{{{\color{numbPost}6}}}{1} + {7}{{{\color{numbPost}7}}}{1} + {8}{{{\color{numbPost}8}}}{1} + {9}{{{\color{numbPost}9}}}{1} + {:}{{{\color{punct}{:}}}}{1} + {,}{{{\color{punct}{,}}}}{1} + {\{}{{{\color{delimPost}{\{}}}}{1} + {\}}{{{\color{delimPost}{\}}}}}{1} + {[}{{{\color{delimPost}{[}}}}{1} + {]}{{{\color{delimPost}{]}}}}{1}, +} +\lstdefinelanguage{jsonPut}{ + basicstyle=\small\ttfamily\color{black}, + numberstyle=\small\color{black}, + keywordstyle=\color{black}, + commentstyle=\color{black}, + stringstyle=\color{black}, + frame=L, + framesep=8pt, + framerule=2pt, + xleftmargin=50pt, + xrightmargin=0pt, + rulesep=0pt, + backgroundcolor=\color{white}, + numbersep=8pt, + tabsize=4, + showstringspaces=false, + breaklines=true, + literate= + *{0}{{{\color{numbPut}0}}}{1} + {1}{{{\color{numbPut}1}}}{1} + {2}{{{\color{numbPut}2}}}{1} + {3}{{{\color{numbPut}3}}}{1} + {4}{{{\color{numbPut}4}}}{1} + {5}{{{\color{numbPut}5}}}{1} + {6}{{{\color{numbPut}6}}}{1} + {7}{{{\color{numbPut}7}}}{1} + {8}{{{\color{numbPut}8}}}{1} + {9}{{{\color{numbPut}9}}}{1} + {:}{{{\color{punct}{:}}}}{1} + {,}{{{\color{punct}{,}}}}{1} + {\{}{{{\color{delimPut}{\{}}}}{1} + {\}}{{{\color{delimPut}{\}}}}}{1} + {[}{{{\color{delimPut}{[}}}}{1} + {]}{{{\color{delimPut}{]}}}}{1}, +} +\lstdefinelanguage{jsonDelete}{ + basicstyle=\small\ttfamily\color{black}, + numberstyle=\small\color{black}, + keywordstyle=\color{black}, + commentstyle=\color{black}, + stringstyle=\color{black}, + frame=L, + framesep=8pt, + framerule=2pt, + xleftmargin=50pt, + xrightmargin=0pt, + rulesep=0pt, + backgroundcolor=\color{white}, + numbersep=8pt, + tabsize=4, + showstringspaces=false, + breaklines=true, + literate= + *{0}{{{\color{numbDelete}0}}}{1} + {1}{{{\color{numbDelete}1}}}{1} + {2}{{{\color{numbDelete}2}}}{1} + {3}{{{\color{numbDelete}3}}}{1} + {4}{{{\color{numbDelete}4}}}{1} + {5}{{{\color{numbDelete}5}}}{1} + {6}{{{\color{numbDelete}6}}}{1} + {7}{{{\color{numbDelete}7}}}{1} + {8}{{{\color{numbDelete}8}}}{1} + {9}{{{\color{numbDelete}9}}}{1} + {:}{{{\color{punct}{:}}}}{1} + {,}{{{\color{punct}{,}}}}{1} + {\{}{{{\color{delimDelete}{\{}}}}{1} + {\}}{{{\color{delimDelete}{\}}}}}{1} + {[}{{{\color{delimDelete}{[}}}}{1} + {]}{{{\color{delimDelete}{]}}}}{1}, +} +\mdfdefinestyle{mystyle}{ + linecolor=\methodBorderColor, + backgroundcolor=\methodLightColor, + skipabove=0pt, + linewidth=1.5pt, + skipbelow=0pt, + innertopmargin=0pt, + innerbottommargin=-3pt, + innerrightmargin=0pt, + innerleftmargin=0pt, + leftmargin=0pt, + rightmargin=0pt, + nobreak=true +} +% \end{macrocode} +% +% \begin{macro}{\routeBreakValue} +% \begin{macrocode} +\newcommand{\routeBreakValue}{true} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\noBreakRoute} +% \begin{macrocode} +\newcommand{\noBreakRoute} +% \end{macrocode} +% \end{macro} +% +% \begin{macrocode} +{ + \renewcommand{\routeBreakValue}{true} +} +% \end{macrocode} +% +% \begin{macro}{\breakRoute} +% \begin{macrocode} +\newcommand{\breakRoute} +% \end{macrocode} +% \end{macro} +% +% \begin{macrocode} +{ + \renewcommand{\routeBreakValue}{false} +} +% \end{macrocode} +% +% \begin{macro}{\methodColor} +% \begin{macrocode} +\newcommand{\methodColor}{getBlue} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\methodLightColor} +% \begin{macrocode} +\newcommand{\methodLightColor}{getLightBlue} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\methodBorderColor} +% \begin{macrocode} +\newcommand{\methodBorderColor}{getBlueBorder} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\methodJson} +% \begin{macrocode} +\newcommand{\methodJson} +% \end{macrocode} +% \end{macro} +% +% \begin{macrocode} +{ + \lstset{language=jsonGet,rulecolor=\color{\methodColor}} +} +\begin{comment} + \newcommand{\apiCorner}{notround} + + \newcommand{\apiCornerRound} + { + \renewcommand{\apiCorner}{round} + } + + \newcommand{\apiCornerNotRound} + { + \renewcommand{\apiCorner}{notround} + } +\end{comment} +% \end{macrocode} +% +% \begin{environment}{apiRoute} +% \begin{macrocode} +\newenvironment{apiRoute}[3] +{ + \newcommand{\method}{#1} + \newcommand{\urlPath}{#2} + \newcommand{\routeDescription}{#3} + + \ifthenelse{\equal{\method}{get}} + { + \renewcommand{\methodColor}{\getGetColor} + \renewcommand{\methodLightColor}{\getGetLightColor} + \renewcommand{\methodBorderColor}{\getGetBorderColor} + \renewcommand{\methodJson} + { + \colorlet{delimGet}{\methodColor} + \colorlet{numbGet}{delimGet} + \lstset{language=jsonGet,rulecolor=\color{\methodColor}} + } + } + {} + + \ifthenelse{\equal{\method}{post}} + { + \renewcommand{\methodColor}{\getPostColor} + \renewcommand{\methodLightColor}{\getPostLightColor} + \renewcommand{\methodBorderColor}{\getPostBorderColor} + \renewcommand{\methodJson} + { + \colorlet{delimPost}{\methodColor} + \colorlet{numbPost}{delimPost} + \lstset{language=jsonPost,rulecolor=\color{\methodColor}} + } + } + {} + + \ifthenelse{\equal{\method}{put}} + { + \renewcommand{\methodColor}{\getPutColor} + \renewcommand{\methodLightColor}{\getPutLightColor} + \renewcommand{\methodBorderColor}{\getPutBorderColor} + \renewcommand{\methodJson} + { + \colorlet{delimPut}{\methodColor} + \colorlet{numbPut}{delimPut} + \lstset{language=jsonPut,rulecolor=\color{\methodColor}} + } + } + {} + \ifthenelse{\equal{\method}{delete}} + { + \renewcommand{\methodColor}{\getDeleteColor} + \renewcommand{\methodLightColor}{\getDeleteLightColor} + \renewcommand{\methodBorderColor}{\getDeleteBorderColor} + \renewcommand{\methodJson} + { + \colorlet{delimDelete}{\methodColor} + \colorlet{numbDelete}{delimDelete} + \lstset{language=jsonDelete,rulecolor=\color{\methodColor}} + } + } + {} + + \ifthenelse{\equal{\routeDescription}{}} + { + \newcommand{\printDescription}{} + } + { + \newcommand{\printDescription} + { + \rowcolor{\methodLightColor} + & \textit{\routeDescription} \\ + } + + } + + + \begingroup + \setlength{\parindent}{0em} + \begin{mdframed}[style=mystyle,nobreak=\routeBreakValue] + \begin{tabularx}{\textwidth}{p{1.6cm} X} + \rowcolor{\methodLightColor} + + \cellcolor{\methodColor} + \centering + \textcolor{white}{\textbf{\textsc{\method}}} + & \textbf{\urlPath} \\ + + \printDescription + + \rowcolor{\methodLightColor} & \\ + \end{tabularx} +} +% \end{macrocode} +% \end{environment} +% +% \begin{macrocode} +{ + \end{mdframed} + \endgroup +} +% \end{macrocode} +% +% \begin{environment}{routeRequest} +% \begin{macrocode} +\newenvironment{routeRequest}[1] +{ + \arrayrulecolor{\methodColor} + + \begin{tabularx}{\textwidth}{X l} + \rowcolor{\methodLightColor!20} + \textbf{Body} & #1 \\ \hline + \end{tabularx} + \vspace{1ex} +} +% \end{macrocode} +% \end{environment} +% +% \begin{macrocode} +{ + \bigskip +} +\lstnewenvironment{routeRequestBody} +{ + \methodJson +} +{} +% \end{macrocode} +% +% \begin{environment}{routeParameter} +% \begin{macrocode} +\newenvironment{routeParameter} +{ + \newcommand{\routeParamItem}[2] + { + \rowcolor{\methodLightColor} ##1 & ##2 \\ + } + \newcommand{\noRouteParamter}[1] + { + \small{\textit{##1}} + } + %\vspace{-0.61em} + + \arrayrulecolor{\methodColor} + + \begin{tabularx}{\textwidth}{X} + \rowcolor{\methodLightColor!20} + \textbf{Parameter} \\ \hline + \end{tabularx} + + \tabularx{\textwidth}{l X} +} +% \end{macrocode} +% \end{environment} +% +% \begin{macrocode} +{ + \endtabularx +} +% \end{macrocode} +% +% \begin{environment}{routeResponse} +% \begin{macrocode} +\newenvironment{routeResponse}[1] +{ + \newcommand{\noRouteResponse}[1] + { + \begin{tabularx}{\textwidth}{X} + \rowcolor{\methodLightColor} + \small{\textit{##1}} \\ + \end{tabularx} + } + + \arrayrulecolor{\methodColor} + \begin{tabularx}{\textwidth}{X l} + \rowcolor{\methodLightColor!20} + \textbf{Response} & #1 \\ \hline + \end{tabularx} +} +% \end{macrocode} +% \end{environment} +% +% \begin{macrocode} +{} +% \end{macrocode} +% +% \begin{environment}{routeResponseItem} +% \begin{macrocode} +\newenvironment{routeResponseItem}[2] +{ + \begin{tabularx}{\textwidth}{l X} + \textbf{#1} & #2 \\ + \end{tabularx} +} +% \end{macrocode} +% \end{environment} +% +% \begin{macrocode} +{ + \medskip +} +\lstnewenvironment{routeResponseItemBody} +{ + \vspace{-1.4em} + \methodJson +} +{} +\endinput +% \end{macrocode} +%% +%% End of file `rest-api.sty'. +% + +% +% \iffalse +%</package> +% \fi +% +% \Finale +\endinput diff --git a/macros/latex/contrib/rest-api/rest-api.ins b/macros/latex/contrib/rest-api/rest-api.ins new file mode 100644 index 0000000000..eba18ecd93 --- /dev/null +++ b/macros/latex/contrib/rest-api/rest-api.ins @@ -0,0 +1,61 @@ +%% +%% Copyright (C) 2020 by Dennis Klein <dennis94.kl@gmail.com> +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3c 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.3c or later is part of all distributions of LaTeX +%% version 2008/05/04 or later. +%% + +\input docstrip.tex + +\Msg{************************************************************************} +\Msg{* Installation *} +\Msg{* Package: rest-api 2020/03/22 v1.2 *} +\Msg{************************************************************************} + +\keepsilent + +\usedir{tex/latex/rest-api} + +\preamble + +This is a generated file. + +Copyright (C) 2020 by Dennis Klein <dennis94.kl@gmail.com> + +This file may be distributed and/or modified under the conditions of +the LaTeX Project Public License, either version 1.3c 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.3c or later is part of all distributions of LaTeX +version 2008/05/04 or later. + +\endpreamble + +\generate{\file{rest-api.sty}{\from{rest-api.dtx}{package}}} + +\obeyspaces +\Msg{*************************************************************} +\Msg{* *} +\Msg{* To finish the installation you have to move the following *} +\Msg{* file into a directory searched by TeX: *} +\Msg{* *} +\Msg{* rest-api.sty *} +\Msg{* *} +\Msg{* To produce the documentation run the file rest-api.dtx *} +\Msg{* through LaTeX. *} +\Msg{* *} +\Msg{* Happy TeXing! *} +\Msg{* *} +\Msg{*************************************************************} + +\endbatchfile
\ No newline at end of file diff --git a/macros/latex/contrib/rest-api/rest-api.pdf b/macros/latex/contrib/rest-api/rest-api.pdf Binary files differnew file mode 100644 index 0000000000..d126896306 --- /dev/null +++ b/macros/latex/contrib/rest-api/rest-api.pdf diff --git a/macros/latex/required/babel/base/README.md b/macros/latex/required/babel/base/README.md index 3fb49b3d49..1274e405b3 100644 --- a/macros/latex/required/babel/base/README.md +++ b/macros/latex/required/babel/base/README.md @@ -1,4 +1,4 @@ -## Babel 3.41 +## Babel 3.42 This package manages culturally-determined typographical (and other) rules, and hyphenation patterns for a wide range of languages. Many @@ -7,9 +7,9 @@ lualatex out of the box. A few even work with plain formats. The latest stable version is available on <https://ctan.org/pkg/babel>. -Changes in version 3.41 are described in: +Changes in version 3.42 are described in: -https://github.com/latex3/babel/wiki/What's-new-in-babel-3.41 +https://github.com/latex3/babel/wiki/What's-new-in-babel-3.42 Included is a set of ini files for about 200 languages. @@ -44,6 +44,23 @@ respective authors. ### Latest changes ``` +3.42 2020-03-22 + - \getlocaleproperty, to get the value of a field from the loaded + ini files. + - Added ini files for Syriac, Coptic and Church Slavic. Improved + some others (Armenian, Sanskrit). + - Added a new field tag.bcp47.likely to many files. + - Improved line breaking with xetex. + - Fixes: + - Remove extra space with languages loaded on the fly (bug + introduced in 3.41). + - Line breaking was no always correct with languages loaded on + the fly. + - Avoid a harmless warning about redefining a protected command + (#52). + - Locale was not switched correctly with COMBINING characters + (#54). + 3.41 2020-02-27 - Counters and numerals added in some ini files, based on those defined in CSS (Abjad, Alphabetic Hebrew, Japanese, etc.). @@ -51,6 +68,7 @@ respective authors. (#51). - Fix - Error when french was loaded and an ini file read (#50). - Fix - A typo in Greek files: Miriad must read Myriad. +See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.41 3.40 2020-02-14 - New ini files for Latin and Greek (xe/lua). diff --git a/macros/latex/required/babel/base/babel.dtx b/macros/latex/required/babel/base/babel.dtx index 37f4e71835..4b7e721f21 100644 --- a/macros/latex/required/babel/base/babel.dtx +++ b/macros/latex/required/babel/base/babel.dtx @@ -31,7 +31,7 @@ % % \iffalse %<*filedriver> -\ProvidesFile{babel.dtx}[2020/02/28 v3.41 The Babel package] +\ProvidesFile{babel.dtx}[2020/03/22 v3.42 The Babel package] \documentclass{ltxdoc} \GetFileInfo{babel.dtx} \usepackage{fontspec} @@ -238,14 +238,14 @@ Xe\largetex \item This user guide focuses on internationalization and localization with \LaTeX. There are also some notes on its use with Plain \TeX. -\item Changes and new features with relation to version 3.8 are +\item Changes and new features with relation to version 3.8 are highlighted with \New{X.XX}\hspace{-.5em}, and there are some notes for the latest versions in - \href{https://github.com/latex3/babel/wiki}{the \babel{} wiki}. - The most recent features - could be still unstable. Please, report any issues you find in - \href{https://github.com/latex3/babel/issues}{GitHub}, which is better - than just complaining on an e-mail list or a web forum. + \href{https://github.com/latex3/babel/wiki}{the \babel{} wiki}. The + most recent features could be still unstable. Please, report any + issues you find in + \href{https://github.com/latex3/babel/issues}{GitHub}, which is + better than just complaining on an e-mail list or a web forum. \item If you are interested in the \TeX{} multilingual support, please join the \href{http://tug.org/mailman/listinfo/kadingira}{kadingira @@ -1384,7 +1384,11 @@ captions): \tag{cgg} Chiga \tag{chr} Cherokee \tag{ckb} Central Kurdish +\tag{cop} Coptic \tag{cs} Czech\hascapu\hascapl +\tag{cu} Church Slavic +\tag{cu-Cyrs} Church Slavic +\tag{cu-Glag} Church Slavic \tag{cy} Welsh\hascapu\hascapl \tag{da} Danish\hascapu\hascapl \tag{dav} Taita @@ -1439,7 +1443,7 @@ captions): \tag{hr} Croatian\hascapu\hascapl \tag{hsb} Upper Sorbian\hascapu\hascapl \tag{hu} Hungarian\hascapu\hascapl -\tag{hy} Armenian +\tag{hy} Armenian\hascapu \tag{ia} Interlingua\hascapu\hascapl \tag{id} Indonesian\hascapu\hascapl \tag{ig} Igbo @@ -1687,6 +1691,13 @@ chinese-traditional-hongkongsarchina\\ chinese-traditional-macausarchina\\ chinese-traditional\\ chinese\\ +churchslavic\\ +churchslavic-cyrs\\ +churchslavic-oldcyrillic\footnote{The name in the CLDR +is Old Church Slavonic Cyrillic, but it has been shortened +for practical reasons.}\\ +churchsslavic-glag\\ +churchsslavic-glagolitic\\ colognian\\ cornish\\ croatian\\ @@ -2352,14 +2363,13 @@ inconsistent, this makes setting a language up easier in most typical cases. \Describe{onchar=}{\texttt{ids} $\string|$ \texttt{fonts}} -\New{3.38} This option is much like an ‘event’ called with a character +\New{3.38} This option is much like an ‘event’ called when a character belonging to the script of this locale is found. There are currently two ‘actions’, which can be used at the same time (separated by a space): with |ids| the |\language| and the |\localeid| are set to the values of this locale; with |fonts|, the fonts are changed to those of -the this locale (as set with |\babelfont|). This option is not -compatible with |mapfont|. Characters can be added with -|\babelcharproperty|. +this locale (as set with |\babelfont|). This option is not compatible +with |mapfont|. Characters can be added with |\babelcharproperty|. \Describe{mapfont=}{\texttt{direction}} Assigns the font for the writing direction of this language (only with @@ -2569,10 +2579,28 @@ expandable and the available fields are: but not always, the same as BCP 47). \end{description} +\Describe{\getlocaleproperty}{\marg{macro}\marg{locale}\marg{property}} + +\New{3.42} The value of any locale property as set by the |ini| files +(or added/modified with |\babelprovide|) can be retrieved and stored in +a macro with this command. For example, after: +\begin{verbatim} + \getlocaleproperty\hechap{hebrew}{captions/chapter} +\end{verbatim} +the macro |\hechap| will contain the string +{\fontspec[Scale=.87,Script=Hebrew]{Liberation Mono}\textdir TRT פרק}. + +\Babel{} remembers which |ini| files have been loaded. There is a loop +named |\LocaleForEach| to traverse the list, where |#1| is the name of +the current item, so that |\LocaleForEach{\message{ **#1** }}| just +shows the loaded |ini|’s. + +\begin{note} |ini| files are loaded with |\babelprovide| and also when languages are selected if there is a |\babelfont|. To ensure the |ini| files are loaded (and therefore the corresponding data) even if these two -conditions are not met, write |\BabelEnsureInfo|. +conditions are not met, write |\BabelEnsureInfo| in the preamble. +\end{note} \subsection{Hyphenation and line breaking} @@ -4428,8 +4456,8 @@ help from Bernd Raichle, for which I am grateful. % \section{Tools} % % \begin{macrocode} -%<<version=3.41>> -%<<date=2020/02/28>> +%<<version=3.42>> +%<<date=2020/03/22>> % \end{macrocode} % % \textbf{Do not use the following macros in \texttt{ldf} files. They @@ -4456,6 +4484,7 @@ help from Bernd Raichle, for which I am grateful. \def\bbl@xin@{\@expandtwoargs\in@} \def\bbl@csarg#1#2{\expandafter#1\csname bbl@#2\endcsname}% \def\bbl@cs#1{\csname bbl@#1\endcsname} +\def\bbl@cl#1{\csname bbl@#1@\languagename\endcsname} \def\bbl@loop#1#2#3{\bbl@@loop#1{#3}#2,\@nnil,} \def\bbl@loopx#1#2{\expandafter\bbl@loop\expandafter#1\expandafter{#2}} \def\bbl@@loop#1#2#3,{% @@ -5617,12 +5646,12 @@ help from Bernd Raichle, for which I am grateful. \newcommand\DisableBabelHook[1]{\bbl@csarg\let{hk@#1}\@gobble} \def\bbl@usehooks#1#2{% \def\bbl@elt##1{% - \@nameuse{bbl@hk@##1}{\@nameuse{bbl@ev@##1@#1@}#2}}% - \@nameuse{bbl@ev@#1@}% + \bbl@cs{hk@##1}{\bbl@cs{ev@##1@#1@}#2}}% + \bbl@cs{ev@#1@}% \ifx\languagename\@undefined\else % Test required for Plain (?) \def\bbl@elt##1{% - \@nameuse{bbl@hk@##1}{\@nameuse{bbl@ev@##1@#1@\languagename}#2}}% - \@nameuse{bbl@ev@#1@\languagename}% + \bbl@cs{hk@##1}{\bbl@cl{ev@##1@#1}#2}}% + \bbl@cl{ev@#1}% \fi} % \end{macrocode} % @@ -5638,7 +5667,7 @@ help from Bernd Raichle, for which I am grateful. adddialect=2,patterns=2,defaultcommands=0,encodedcommands=2,write=0,% beforeextras=0,afterextras=0,stopcommands=0,stringprocess=0,% hyphenation=2,initiateactive=3,afterreset=0,foreign=0,foreign*=0,% - beforestart=0} + beforestart=0,languagename=0} % \end{macrocode} % % \begin{macro}{\babelensure} @@ -5665,7 +5694,7 @@ help from Bernd Raichle, for which I am grateful. \newcommand\babelensure[2][]{% TODO - revise test files \AddBabelHook{babel-ensure}{afterextras}{% \ifcase\bbl@select@type - \@nameuse{bbl@e@\languagename}% + \bbl@cl{e}% \fi}% \begingroup \let\bbl@ens@include\@empty @@ -5869,9 +5898,9 @@ help from Bernd Raichle, for which I am grateful. \bbl@usehooks{beforestart}{}% \global\let\bbl@beforestart\relax} \AtBeginDocument{% - \@nameuse{bbl@beforestart}% + \bbl@cs{beforestart}% \if@filesw - \immediate\write\@mainaux{\string\@nameuse{bbl@beforestart}}% + \immediate\write\@mainaux{\string\bbl@cs{beforestart}}% \fi \expandafter\selectlanguage\expandafter{\bbl@main@language}% \ifbbl@single % must go after the line above @@ -8020,16 +8049,16 @@ help from Bernd Raichle, for which I am grateful. \def\bbl@presec@x#1[#2]#3{% \bbl@exp{% \\\select@language@x{\bbl@main@language}% - \\\@nameuse{bbl@sspre@#1}% - \\\@nameuse{bbl@ss@#1}% + \\\bbl@cs{sspre@#1}% + \\\bbl@cs{ss@#1}% [\\\foreignlanguage{\languagename}{\unexpanded{#2}}]% {\\\foreignlanguage{\languagename}{\unexpanded{#3}}}% \\\select@language@x{\languagename}}} \def\bbl@presec@s#1#2{% \bbl@exp{% \\\select@language@x{\bbl@main@language}% - \\\@nameuse{bbl@sspre@#1}% - \\\@nameuse{bbl@ss@#1}*% + \\\bbl@cs{sspre@#1}% + \\\bbl@cs{ss@#1}*% {\\\foreignlanguage{\languagename}{\unexpanded{#2}}}% \\\select@language@x{\languagename}}} \IfBabelLayout{sectioning}% @@ -8089,6 +8118,7 @@ help from Bernd Raichle, for which I am grateful. \let\bbl@KVP@onchar\@nil \let\bbl@KVP@alph\@nil \let\bbl@KVP@Alph\@nil + \let\bbl@KVP@info\@nil % Ignored with import? Or error/warning? \bbl@forkv{#1}{% TODO - error handling \in@{/}{##1}% \ifin@ @@ -8139,6 +8169,7 @@ help from Bernd Raichle, for which I am grateful. \bbl@read@ini{##1}{basic data}% \bbl@exportkey{chrng}{characters.ranges}{}% \bbl@exportkey{dgnat}{numbers.digits.native}{}% + \bbl@exportkey{prehc}{typography.prehyphenchar}{}% \bbl@exportkey{lnbrk}{typography.linebreaking}{h}% \bbl@exportkey{hyphr}{typography.hyphenrules}{}% \bbl@exportkey{hyoth}{typography.hyphenate.other}{}% @@ -8175,9 +8206,9 @@ help from Bernd Raichle, for which I am grateful. {\\\bbl@patterns@lua{\languagename}}}% % TODO - error/warning if no script \directlua{ - if Babel.script_blocks['\bbl@cs{sbcp@\languagename}'] then + if Babel.script_blocks['\bbl@cl{sbcp}'] then Babel.loc_to_scr[\the\localeid] = - Babel.script_blocks['\bbl@cs{sbcp@\languagename}'] + Babel.script_blocks['\bbl@cl{sbcp}'] Babel.locale_props[\the\localeid].lc = \the\localeid\space Babel.locale_props[\the\localeid].lg = \the\@nameuse{l@\languagename}\space end @@ -8188,9 +8219,9 @@ help from Bernd Raichle, for which I am grateful. \bbl@ifunset{bbl@lsys@\languagename}{\bbl@provide@lsys{\languagename}}{}% \bbl@ifunset{bbl@wdir@\languagename}{\bbl@provide@dirs{\languagename}}{}% \directlua{ - if Babel.script_blocks['\bbl@cs{sbcp@\languagename}'] then + if Babel.script_blocks['\bbl@cl{sbcp}'] then Babel.loc_to_scr[\the\localeid] = - Babel.script_blocks['\bbl@cs{sbcp@\languagename}'] + Babel.script_blocks['\bbl@cl{sbcp}'] end}% \ifx\bbl@mapselect\@undefined \AtBeginDocument{% @@ -8255,7 +8286,7 @@ help from Bernd Raichle, for which I am grateful. \else \SetHyphenMap{\BabelLower{##1}{##1}}% \fi}% - \bbl@endcommands} + \bbl@endcommands}% % == maparabic == % Native digits, if provided in ini (TeX level, xe and lua) \ifcase\bbl@engine\else @@ -8286,7 +8317,7 @@ help from Bernd Raichle, for which I am grateful. Babel.digits_mapped = true Babel.digits = Babel.digits or {} Babel.digits[\the\localeid] = - table.pack(string.utfvalue('\bbl@cs{dgnat@\languagename}')) + table.pack(string.utfvalue('\bbl@cl{dgnat}')) if not Babel.numbers then function Babel.numbers(head) local LOCALE = luatexbase.registernumber'bbl@attr@locale' @@ -8425,8 +8456,8 @@ help from Bernd Raichle, for which I am grateful. \bbl@endcommands \bbl@exp{% \def\<#1hyphenmins>{% - {\bbl@ifunset{bbl@lfthm@#1}{2}{\@nameuse{bbl@lfthm@#1}}}% - {\bbl@ifunset{bbl@rgthm@#1}{3}{\@nameuse{bbl@rgthm@#1}}}}}% + {\bbl@ifunset{bbl@lfthm@#1}{2}{\bbl@cs{lfthm@#1}}}% + {\bbl@ifunset{bbl@rgthm@#1}{3}{\bbl@cs{rgthm@#1}}}}}% \bbl@provide@hyphens{#1}% \ifx\bbl@KVP@main\@nil\else \expandafter\main@language\expandafter{#1}% @@ -8468,25 +8499,18 @@ help from Bernd Raichle, for which I am grateful. \fi \ifx\bbl@tempa\relax % if no opt or no language in opt found \ifx\bbl@KVP@import\@nil\else % if importing - \bbl@exp{% and hyphenrules is not empty - \\\bbl@ifblank{\@nameuse{bbl@hyphr@#1}}% + \bbl@exp{% and hyphenrules is not empty + \\\bbl@ifblank{\bbl@cs{hyphr@#1}}% {}% - {\let\\\bbl@tempa\<l@\@nameuse{bbl@hyphr@\languagename}>}}% + {\let\\\bbl@tempa\<l@\bbl@cl{hyphr}>}}% \fi \fi \bbl@ifunset{bbl@tempa}% ie, relax or undefined {\bbl@ifunset{l@#1}% no hyphenrules found - fallback {\bbl@exp{\\\adddialect\<l@#1>\language}}% {}}% so, l@<lang> is ok - nothing to do - {\bbl@exp{\\\adddialect\<l@#1>\bbl@tempa}}% found in opt list or ini - \bbl@ifunset{bbl@prehc@\languagename}% - {}% TODO - XeTeX, based on \babelfont and HyphenChar? - {\ifodd\bbl@engine\bbl@exp{% - \\\bbl@ifblank{\@nameuse{bbl@prehc@#1}}% - {}% - {\\\AddBabelHook[\languagename]{babel-prehc-\languagename}{patterns}% - {\prehyphenchar=\@nameuse{bbl@prehc@\languagename}\relax}}}% - \fi}} + {\bbl@exp{\\\adddialect\<l@#1>\bbl@tempa}}}% found in opt list or ini + % \end{macrocode} % % The reader of |ini| files. There are 3 possible cases: a section name @@ -8497,8 +8521,18 @@ help from Bernd Raichle, for which I am grateful. \ifx\bbl@readstream\@undefined \csname newread\endcsname\bbl@readstream \fi +\def\bbl@inipreread#1=#2\@@{% + \bbl@trim@def\bbl@tempa{#1}% Redundant below !! + \bbl@trim\toks@{#2}% + % Move trims here ?? + \bbl@ifunset{bbl@KVP@\bbl@section/\bbl@tempa}% + {\bbl@exp{% + \\\g@addto@macro\\\bbl@inidata{% + \\\bbl@elt{\bbl@section}{\bbl@tempa}{\the\toks@}}}% + \expandafter\bbl@inireader\bbl@tempa=#2\@@}% + {}}% \def\bbl@read@ini#1#2{% - \global\@namedef{bbl@lini@\languagename}{#1}% + \bbl@csarg\edef{lini@\languagename}{#1}% \openin\bbl@readstream=babel-#1.ini \ifeof\bbl@readstream \bbl@error @@ -8507,16 +8541,11 @@ help from Bernd Raichle, for which I am grateful. is not complete.}% {Fix the name or reinstall babel.}% \else + \bbl@exp{\def\\\bbl@inidata{\\\bbl@elt{identificacion}{tag.ini}{#1}}}% \let\bbl@section\@empty \let\bbl@savestrings\@empty \let\bbl@savetoday\@empty \let\bbl@savedate\@empty - \def\bbl@inipreread##1=##2\@@{% - \bbl@trim@def\bbl@tempa{##1}% Redundant below !! - % Move trims here ?? - \bbl@ifunset{bbl@KVP@\bbl@section/\bbl@tempa}% - {\expandafter\bbl@inireader\bbl@tempa=##2\@@}% - {}}% \let\bbl@inireader\bbl@iniskip \bbl@info{Importing #2 for \languagename\\% from babel-#1.ini. Reported}% @@ -8534,10 +8563,12 @@ help from Bernd Raichle, for which I am grateful. \global\let\bbl@renewlist\@empty % Ends last section. See \bbl@inisec \def\bbl@elt##1##2{\bbl@inireader##1=##2\@@}% - \@nameuse{bbl@renew@\bbl@section}% + \bbl@cs{renew@\bbl@section}% \global\bbl@csarg\let{renew@\bbl@section}\relax - \@nameuse{bbl@secpost@\bbl@section}% -% \bbl@csarg\bbl@toglobal{inikeys@\languagename}% + \bbl@cs{secpost@\bbl@section}% + \bbl@csarg{\global\expandafter\let}{inidata@\languagename}\bbl@inidata + \bbl@exp{\\\bbl@add@list\\\bbl@ini@loaded{\languagename}}% + \bbl@toglobal\bbl@ini@loaded \fi} \def\bbl@iniline#1\bbl@iniline{% \@ifnextchar[\bbl@inisec{\@ifnextchar;\bbl@iniskip\bbl@inipreread}#1\@@}% ] @@ -8553,15 +8584,22 @@ help from Bernd Raichle, for which I am grateful. % \begin{macrocode} \def\bbl@iniskip#1\@@{}% if starts with ; \def\bbl@inisec[#1]#2\@@{% if starts with opening bracket - \def\bbl@elt##1##2{\bbl@inireader##1=##2\@@}% - \@nameuse{bbl@renew@\bbl@section}% + \def\bbl@elt##1##2{% + \expandafter\toks@\expandafter{% + \expandafter{\bbl@section}{##1}{##2}}% + \bbl@exp{% + \\\g@addto@macro\\\bbl@inidata{\\\bbl@elt\the\toks@}}% + \bbl@inireader##1=##2\@@}% + \bbl@cs{renew@\bbl@section}% \global\bbl@csarg\let{renew@\bbl@section}\relax - \@nameuse{bbl@secpost@\bbl@section}% ends previous section - \def\bbl@section{#1}% starts current section + \bbl@cs{secpost@\bbl@section}% + % The previous code belongs to the previous section. + % Now start the current one. + \def\bbl@section{#1}% \def\bbl@elt##1##2{% \@namedef{bbl@KVP@#1/##1}{}}% - \@nameuse{bbl@renew@#1}% - \@nameuse{bbl@secpre@#1}% pre-section `hook' + \bbl@cs{renew@#1}% + \bbl@cs{secpre@#1}% pre-section `hook' \bbl@ifunset{bbl@inikv@#1}% {\let\bbl@inireader\bbl@iniskip}% {\bbl@exp{\let\\\bbl@inireader\<bbl@inikv@#1>}}} @@ -8607,8 +8645,8 @@ help from Bernd Raichle, for which I am grateful. \def\bbl@iniwarning#1{% \bbl@ifunset{bbl@@kv@identification.warning#1}{}% {\bbl@warning{% - From babel-\@nameuse{bbl@lini@\languagename}.ini:\\% - \@nameuse{bbl@@kv@identification.warning#1}\\% + From babel-\bbl@cs{lini@\languagename}.ini:\\% + \bbl@cs{@kv@identification.warning#1}\\% Reported }}} \let\bbl@inikv@identification\bbl@inikv \def\bbl@secpost@identification{% @@ -8804,6 +8842,12 @@ help from Bernd Raichle, for which I am grateful. \bbl@csarg\bbl@add@list{lsys@#1}{Script=\bbl@cs{sname@#1}}% \bbl@ifunset{bbl@lname@#1}{}% {\bbl@csarg\bbl@add@list{lsys@#1}{Language=\bbl@cs{lname@#1}}}% + \ifcase\bbl@engine\or\or + \bbl@ifunset{bbl@prehc@#1}{}% + {\bbl@exp{\\\bbl@ifblank{\bbl@cs{prehc@#1}}}% + {}% + {\bbl@csarg\bbl@add@list{lsys@#1}{HyphenChar="200B}}}% + \fi \bbl@csarg\bbl@toglobal{lsys@#1}} % \end{macrocode} % @@ -8851,7 +8895,7 @@ help from Bernd Raichle, for which I am grateful. % special case. for a fixed form (see |babel-he.ini|, for example). % % \begin{macrocode} -\newcommand\localenumeral[2]{\@nameuse{bbl@cntr@#1@\languagename}{#2}} +\newcommand\localenumeral[2]{\bbl@cs{cntr@#1@\languagename}{#2}} \def\bbl@localecntr#1#2{\localenumeral{#2}{#1}} \newcommand\localecounter[2]{% \expandafter\bbl@localecntr\csname c@#2\endcsname{#1}} @@ -8867,15 +8911,15 @@ help from Bernd Raichle, for which I am grateful. \fi} \def\bbl@alphnumeral@ii#1#2#3#4#5#6#7#8{% \bbl@ifunset{bbl@cntr@#1.F.\number#5#6#7#8@\languagename}% - {\@nameuse{bbl@cntr@#1.4@\languagename}#5% - \@nameuse{bbl@cntr@#1.3@\languagename}#6% - \@nameuse{bbl@cntr@#1.2@\languagename}#7% - \@nameuse{bbl@cntr@#1.1@\languagename}#8% + {\bbl@cs{cntr@#1.4@\languagename}#5% + \bbl@cs{cntr@#1.3@\languagename}#6% + \bbl@cs{cntr@#1.2@\languagename}#7% + \bbl@cs{cntr@#1.1@\languagename}#8% \ifnum#6#7#8>\z@ % An ad hod rule for Greek. Ugly. To be fixed. \bbl@ifunset{bbl@cntr@#1.S.321@\languagename}{}% - {\@nameuse{bbl@cntr@#1.S.321@\languagename}}% + {\bbl@cs{cntr@#1.S.321@\languagename}}% \fi}% - {\@nameuse{bbl@cntr@#1.F.\number#5#6#7#8@\languagename}}} + {\bbl@cs{cntr@#1.F.\number#5#6#7#8@\languagename}}} \def\bbl@alphnum@invalid#1{% \bbl@error{Alphabetic numeral too large (#1)}% {Currently this is the limit.}} @@ -8891,7 +8935,7 @@ help from Bernd Raichle, for which I am grateful. The corresponding ini file has not been loaded\\% Perhaps it doesn't exist}% {See the manual for details.}}% - {\@nameuse{bbl@\csname bbl@info@#1\endcsname @\languagename}}} + {\bbl@cs{\csname bbl@info@#1\endcsname @\languagename}}} % \@namedef{bbl@info@name.locale}{lcname} \@namedef{bbl@info@tag.ini}{lini} \@namedef{bbl@info@name.english}{elname} @@ -8910,6 +8954,30 @@ help from Bernd Raichle, for which I am grateful. \fi}} % \end{macrocode} % +% More general, but non-expandable, is |\getlocaleproperty|. To inspect +% every possible loaded |ini|, we define |\LocaleForEach|, where +% |\bbl@ini@loaded| is a comma-separated list of locales, built by +% |\bbl@read@ini|. +% +% \begin{macrocode} +\newcommand\getlocaleproperty[3]{% + \let#1\relax + \def\bbl@elt##1##2##3{% + \bbl@ifsamestring{##1/##2}{#3}% + {\providecommand#1{##3}% + \def\bbl@elt####1####2####3{}}% + {}}% + \bbl@cs{inidata@#2}% + \ifx#1\relax + \bbl@error + {Unknown key for locale '#2':\\% + #3\\% + \string#1 will be set to \relax}% + {Perhaps you misspelled it.}% + \fi} +\newcommand\LocaleForEach{\bbl@foreach\bbl@ini@loaded} +% \end{macrocode} +% % \section{Adjusting the Babel bahavior} % % A generic high level inteface is provided to adjust some global @@ -8917,7 +8985,7 @@ help from Bernd Raichle, for which I am grateful. % % \begin{macrocode} \newcommand\babeladjust[1]{% TODO. Error handling. - \bbl@forkv{#1}{\@nameuse{bbl@ADJ@##1@##2}}} + \bbl@forkv{#1}{\bbl@cs{ADJ@##1@##2}}} % \def\bbl@adjust@lua#1#2{% \ifvmode @@ -9821,7 +9889,7 @@ help from Bernd Raichle, for which I am grateful. \def\bbl@switchdir{% \bbl@ifunset{bbl@lsys@\languagename}{\bbl@provide@lsys{\languagename}}{}% \bbl@ifunset{bbl@wdir@\languagename}{\bbl@provide@dirs{\languagename}}{}% - \bbl@exp{\\\bbl@setdirs\bbl@cs{wdir@\languagename}}} + \bbl@exp{\\\bbl@setdirs\bbl@cl{wdir}}} \def\bbl@setdirs#1{% TODO - math \ifcase\bbl@select@type % TODO - strictly, not the right test \bbl@bodydir{#1}% @@ -10046,7 +10114,7 @@ help from Bernd Raichle, for which I am grateful. (\string\language\the\count@)}% \def\bbl@elt####1####2####3####4{}% \fi}% - \@nameuse{bbl@languages}% + \bbl@cs{languages}% \endgroup} % \end{macrocode} % @@ -10079,7 +10147,8 @@ help from Bernd Raichle, for which I am grateful. \lowercase\expandafter{\bbl@tempd}}}% \@empty \edef\bbl@tempd{\endgroup\def\noexpand#1{#1}}% - \bbl@tempd} + \bbl@tempd + \bbl@usehooks{languagename}{}} \def\bbl@iflanguage#1{% \@ifundefined{l@#1}{\@nolanerr{#1}\@gobble}\@firstofone} % \end{macrocode} @@ -10268,7 +10337,7 @@ help from Bernd Raichle, for which I am grateful. }% \fi}% {}% - \chardef\localeid\@nameuse{bbl@id@@\languagename}} + \chardef\localeid\bbl@cl{id@}} % \end{macrocode} % % The unprotected part of |\selectlanguage|. @@ -10342,20 +10411,9 @@ help from Bernd Raichle, for which I am grateful. \expandafter\bbl@switch\expandafter{\languagename}% \fi}} \def\babel@aux#1#2{% - \expandafter\ifx\csname date#1\endcsname\relax - \expandafter\ifx\csname bbl@auxwarn@#1\endcsname\relax - \@namedef{bbl@auxwarn@#1}{}% - \bbl@warning - {Unknown language `#1'. Very likely you\\% - requested it in a previous run. Expect some\\% - wrong results in this run, which should vanish\\% - in the next one. Reported}% - \fi - \else - \select@language{#1}% - \bbl@foreach\BabelContentsFiles{% - \@writefile{##1}{\babel@toc{#1}{#2}}}% %% TODO - ok in plain? - \fi} + \select@language{#1}% + \bbl@foreach\BabelContentsFiles{% + \@writefile{##1}{\babel@toc{#1}{#2}}}}% %% TODO - ok in plain? \def\babel@toc#1#2{% \select@language{#1}} % \end{macrocode} @@ -10903,7 +10961,9 @@ help from Bernd Raichle, for which I am grateful. Reported}} \def\@nolanerr#1{% \bbl@error - {You haven't defined the language #1\space yet}% + {You haven't defined the language #1\space yet.\\% + Perhaps you misspelled it or your installation\\% + is not complete}% {Your command will be ignored, type <return> to proceed}} \def\@nopatterns#1{% \bbl@warning @@ -11447,7 +11507,7 @@ help from Bernd Raichle, for which I am grateful. \gdef\bbl@switchfont{% \bbl@ifunset{bbl@lsys@\languagename}{\bbl@provide@lsys{\languagename}}{}% \bbl@exp{% eg Arabic -> arabic - \lowercase{\edef\\\bbl@tempa{\bbl@cs{sname@\languagename}}}}% + \lowercase{\edef\\\bbl@tempa{\bbl@cl{sname}}}}% \bbl@foreach\bbl@font@fams{% \bbl@ifunset{bbl@##1dflt@\languagename}% (1) language? {\bbl@ifunset{bbl@##1dflt@*\bbl@tempa}% (2) from script? @@ -11467,7 +11527,7 @@ help from Bernd Raichle, for which I am grateful. \global\bbl@csarg\let{famrst@##1}\relax}% {\bbl@exp{% order is relevant \\\bbl@add\\\originalTeX{% - \\\bbl@font@rst{\bbl@cs{##1dflt@\languagename}}% + \\\bbl@font@rst{\bbl@cl{##1dflt}}% \<##1default>\<##1family>{##1}}% \\\bbl@font@set\<bbl@##1dflt@\languagename>% the main part! \<##1default>\<##1family>}}}% @@ -11496,11 +11556,13 @@ help from Bernd Raichle, for which I am grateful. \expandafter\xdef\csname ##1default\endcsname{\f@family}}% {}}% \ifx\bbl@tempa\@empty\else - \bbl@infowarn{The following fonts are not babel standard families:\\% + \bbl@infowarn{The following font families will use the default\\% + settings for all or some languages:\\% \bbl@tempa There is nothing intrinsically wrong with it, but\\% - 'babel' will no set Script and Language. Consider\\% - defining a new family with \string\babelfont.\\% + 'babel' will no set Script and Language, which could\\% + be relevant in some languages. If your document uses\\% + these families, consider redefining them with \string\babelfont.\\% Reported}% \fi \endgroup} @@ -11531,18 +11593,14 @@ help from Bernd Raichle, for which I am grateful. \let\bbl@tempe\bbl@mapselect \let\bbl@mapselect\relax \let\bbl@temp@fam#4% eg, '\rmfamily', to be restored below - \let#4\relax % So that can be used with \newfontfamily + \let#4\@empty % Make sure \renewfontfamily is valid \bbl@exp{% \let\\\bbl@temp@pfam\<\bbl@stripslash#4\space>% eg, '\rmfamily ' - \<keys_if_exist:nnF>{fontspec-opentype}% - {Script/\bbl@cs{sname@\languagename}}% - {\\\newfontscript{\bbl@cs{sname@\languagename}}% - {\bbl@cs{sotf@\languagename}}}% - \<keys_if_exist:nnF>{fontspec-opentype}% - {Language/\bbl@cs{lname@\languagename}}% - {\\\newfontlanguage{\bbl@cs{lname@\languagename}}% - {\bbl@cs{lotf@\languagename}}}% - \\\newfontfamily\\#4% + \<keys_if_exist:nnF>{fontspec-opentype}{Script/\bbl@cl{sname}}% + {\\\newfontscript{\bbl@cl{sname}}{\bbl@cl{sotf}}}% + \<keys_if_exist:nnF>{fontspec-opentype}{Language/\bbl@cl{lname}}% + {\\\newfontlanguage{\bbl@cl{lname}}{\bbl@cl{lotf}}}% + \\\renewfontfamily\\#4% [\bbl@cs{lsys@\languagename},#2]}{#3}% ie \bbl@exp{..}{#3} \begingroup #4% @@ -11735,37 +11793,51 @@ help from Bernd Raichle, for which I am grateful. \xebbl@stop \let\xebbl@stop\relax} \def\bbl@intraspace#1 #2 #3\@@{% - \bbl@csarg\gdef{xeisp@\bbl@cs{sbcp@\languagename}}% + \bbl@csarg\gdef{xeisp@\languagename}% {\XeTeXlinebreakskip #1em plus #2em minus #3em\relax}} \def\bbl@intrapenalty#1\@@{% - \bbl@csarg\gdef{xeipn@\bbl@cs{sbcp@\languagename}}% + \bbl@csarg\gdef{xeipn@\languagename}% {\XeTeXlinebreakpenalty #1\relax}} \def\bbl@provide@intraspace{% - \bbl@xin@{\bbl@cs{sbcp@\languagename}}{Thai,Laoo,Khmr}% - \ifin@ % sea (currently ckj not handled) - \bbl@ifunset{bbl@intsp@\languagename}{}% - {\expandafter\ifx\csname bbl@intsp@\languagename\endcsname\@empty\else - \ifx\bbl@KVP@intraspace\@nil - \bbl@exp{% - \\\bbl@intraspace\bbl@cs{intsp@\languagename}\\\@@}% - \fi - \ifx\bbl@KVP@intrapenalty\@nil - \bbl@intrapenalty0\@@ - \fi - \fi - \ifx\bbl@KVP@intraspace\@nil\else % We may override the ini - \expandafter\bbl@intraspace\bbl@KVP@intraspace\@@ - \fi - \ifx\bbl@KVP@intrapenalty\@nil\else - \expandafter\bbl@intrapenalty\bbl@KVP@intrapenalty\@@ - \fi - \ifx\bbl@ispacesize\@undefined - \AtBeginDocument{% - \expandafter\bbl@add - \csname selectfont \endcsname{\bbl@ispacesize}}% - \def\bbl@ispacesize{\bbl@cs{xeisp@\bbl@cs{sbcp@\languagename}}}% - \fi}% - \fi} + \bbl@xin@{\bbl@cl{lnbrk}}{s}% + \ifin@\else\bbl@xin@{\bbl@cl{lnbrk}}{c}\fi + \ifin@ + \bbl@ifunset{bbl@intsp@\languagename}{}% + {\expandafter\ifx\csname bbl@intsp@\languagename\endcsname\@empty\else + \ifx\bbl@KVP@intraspace\@nil + \bbl@exp{% + \\\bbl@intraspace\bbl@cl{intsp}\\\@@}% + \fi + \ifx\bbl@KVP@intrapenalty\@nil + \bbl@intrapenalty0\@@ + \fi + \fi + \ifx\bbl@KVP@intraspace\@nil\else % We may override the ini + \expandafter\bbl@intraspace\bbl@KVP@intraspace\@@ + \fi + \ifx\bbl@KVP@intrapenalty\@nil\else + \expandafter\bbl@intrapenalty\bbl@KVP@intrapenalty\@@ + \fi + \bbl@exp{% + \\\bbl@add\<extras\languagename>{% + \XeTeXlinebreaklocale "\bbl@cl{lbcp}"% + \<bbl@xeisp@\languagename>% + \<bbl@xeipn@\languagename>}% + \\\bbl@toglobal\<extras\languagename>% + \\\bbl@add\<noextras\languagename>{% + \XeTeXlinebreaklocale "en"}% + \\\bbl@toglobal\<noextras\languagename>}% + \ifx\bbl@ispacesize\@undefined + \gdef\bbl@ispacesize{\bbl@cl{xeisp}}% + \ifx\AtBeginDocument\@notprerr + \expandafter\@secondoftwo % to execute right now + \fi + \AtBeginDocument{% + \expandafter\bbl@add + \csname selectfont \endcsname{\bbl@ispacesize}% + \expandafter\bbl@toglobal\csname selectfont \endcsname}% + \fi}% + \fi} \AddBabelHook{xetex}{loadkernel}{% <@Restore Unicode catcodes before loading patterns@>} \ifx\DisableBabelHook\@undefined\endinput\fi @@ -12174,7 +12246,11 @@ help from Bernd Raichle, for which I am grateful. \number\language) }}% \xdef\bbl@pttnlist{\bbl@pttnlist\number\language,}% \fi - \endgroup}} + \endgroup}% + \bbl@exp{% + \bbl@ifunset{bbl@prehc@\languagename}{}% + {\\\bbl@ifblank{\bbl@cs{prehc@\languagename}}{}% + {\prehyphenchar=\bbl@cl{prehc}\relax}}}} \AddBabelHook{luatex}{everylanguage}{% \def\process@language##1##2##3{% \def\process@line####1####2 ####3 ####4 {}}} @@ -12415,7 +12491,7 @@ help from Bernd Raichle, for which I am grateful. \def\bbl@provide@intraspace{% \bbl@ifunset{bbl@intsp@\languagename}{}% {\expandafter\ifx\csname bbl@intsp@\languagename\endcsname\@empty\else - \bbl@xin@{\bbl@cs{lnbrk@\languagename}}{c}% + \bbl@xin@{\bbl@cl{lnbrk}}{c}% \ifin@ % cjk \bbl@cjkintraspace \directlua{ @@ -12423,18 +12499,18 @@ help from Bernd Raichle, for which I am grateful. Babel.locale_props = Babel.locale_props or {} Babel.locale_props[\the\localeid].linebreak = 'c' }% - \bbl@exp{\\\bbl@intraspace\bbl@cs{intsp@\languagename}\\\@@}% + \bbl@exp{\\\bbl@intraspace\bbl@cl{intsp}\\\@@}% \ifx\bbl@KVP@intrapenalty\@nil \bbl@intrapenalty0\@@ \fi \else % sea \bbl@seaintraspace - \bbl@exp{\\\bbl@intraspace\bbl@cs{intsp@\languagename}\\\@@}% + \bbl@exp{\\\bbl@intraspace\bbl@cl{intsp}\\\@@}% \directlua{ Babel = Babel or {} Babel.sea_ranges = Babel.sea_ranges or {} - Babel.set_chranges('\bbl@cs{sbcp@\languagename}', - '\bbl@cs{chrng@\languagename}') + Babel.set_chranges('\bbl@cl{sbcp}', + '\bbl@cl{chrng}') }% \ifx\bbl@KVP@intrapenalty\@nil \bbl@intrapenalty0\@@ @@ -12494,13 +12570,16 @@ Babel.script_blocks = { ['Armn'] = {{0x0530, 0x058F}}, ['Beng'] = {{0x0980, 0x09FF}}, ['Cher'] = {{0x13A0, 0x13FF}, {0xAB70, 0xABBF}}, + ['Copt'] = {{0x03E2, 0x03EF}, {0x2C80, 0x2CFF}, {0x102E0, 0x102FF}}, ['Cyrl'] = {{0x0400, 0x04FF}, {0x0500, 0x052F}, {0x1C80, 0x1C8F}, {0x2DE0, 0x2DFF}, {0xA640, 0xA69F}}, ['Deva'] = {{0x0900, 0x097F}, {0xA8E0, 0xA8FF}}, ['Ethi'] = {{0x1200, 0x137F}, {0x1380, 0x139F}, {0x2D80, 0x2DDF}, {0xAB00, 0xAB2F}}, ['Geor'] = {{0x10A0, 0x10FF}, {0x2D00, 0x2D2F}}, - ['Grek'] = {{0x0370, 0x03FF}, {0x1F00, 0x1FFF}}, + % Don't follow strictly Unicode, which places some Coptic letters in + % the 'Greek and Coptic' block + ['Grek'] = {{0x0370, 0x03E1}, {0x03F0, 0x03FF}, {0x1F00, 0x1FFF}}, ['Hans'] = {{0x2E80, 0x2EFF}, {0x3000, 0x303F}, {0x31C0, 0x31EF}, {0x3300, 0x33FF}, {0x3400, 0x4DBF}, {0x4E00, 0x9FFF}, {0xF900, 0xFAFF}, {0xFE30, 0xFE4F}, {0xFF00, 0xFFEF}, @@ -12524,6 +12603,7 @@ Babel.script_blocks = { ['Mymr'] = {{0x1000, 0x109F}, {0xAA60, 0xAA7F}, {0xA9E0, 0xA9FF}}, ['Orya'] = {{0x0B00, 0x0B7F}}, ['Sinh'] = {{0x0D80, 0x0DFF}, {0x111E0, 0x111FF}}, + ['Syrc'] = {{0x0700, 0x074F}, {0x0860, 0x086F}}, ['Taml'] = {{0x0B80, 0x0BFF}}, ['Telu'] = {{0x0C00, 0x0C7F}}, ['Tfng'] = {{0x2D30, 0x2D7F}}, @@ -12533,6 +12613,7 @@ Babel.script_blocks = { ['Yiii'] = {{0xA000, 0xA48F}, {0xA490, 0xA4CF}} } +Babel.script_blocks.Cyrs = Babel.script_blocks.Cyrl Babel.script_blocks.Hant = Babel.script_blocks.Hans Babel.script_blocks.Kana = Babel.script_blocks.Jpan @@ -12542,6 +12623,7 @@ function Babel.locale_map(head) local LOCALE = luatexbase.registernumber'bbl@attr@locale' local GLYPH = node.id('glyph') local inmath = false + local toloc_save for item in node.traverse(head) do local toloc if not inmath and item.id == GLYPH then @@ -12559,7 +12641,15 @@ function Babel.locale_map(head) end end end - % Now, take action + % Now, take action, but treat composite chars in a different + % fashion, because they 'inherit' the previous locale. Not yet + % optimized. + if not toloc and + (item.char >= 0x0300 and item.char <= 0x036F) or + (item.char >= 0x1AB0 and item.char <= 0x1AFF) or + (item.char >= 0x1DC0 and item.char <= 0x1DFF) then + toloc = toloc_save + end if toloc and toloc > -1 then if Babel.locale_props[toloc].lg then item.lang = Babel.locale_props[toloc].lg @@ -12568,6 +12658,7 @@ function Babel.locale_map(head) if Babel.locale_props[toloc]['/'..item.font] then item.font = Babel.locale_props[toloc]['/'..item.font] end + toloc_save = toloc end elseif not inmath and item.id == 7 then item.replace = item.replace and Babel.locale_map(item.replace) @@ -12603,7 +12694,7 @@ end {See the manual for futher info}}% {}% \loop - \@nameuse{bbl@chprop@#2}{#3}% + \bbl@cs{chprop@#2}{#3}% \ifnum\count@<\@tempcnta \advance\count@\@ne \repeat} @@ -12629,7 +12720,7 @@ end \directlua{ Babel.chr_to_loc = Babel.chr_to_loc or {} Babel.chr_to_loc[\the\count@] = - \bbl@ifblank{#1}{-1000}{\the\@nameuse{bbl@id@@#1}}\space + \bbl@ifblank{#1}{-1000}{\the\bbl@cs{id@@#1}}\space }} % \end{macrocode} % diff --git a/macros/latex/required/babel/base/babel.ins b/macros/latex/required/babel/base/babel.ins index be654b14b1..194f706e24 100644 --- a/macros/latex/required/babel/base/babel.ins +++ b/macros/latex/required/babel/base/babel.ins @@ -26,7 +26,7 @@ %% and covered by LPPL is defined by the unpacking scripts (with %% extension .ins) which are part of the distribution. %% -\def\filedate{2020/02/28} +\def\filedate{2020/03/22} \def\batchfile{babel.ins} \input docstrip.tex diff --git a/macros/latex/required/babel/base/babel.pdf b/macros/latex/required/babel/base/babel.pdf Binary files differindex b71e60883c..854f18bea2 100644 --- a/macros/latex/required/babel/base/babel.pdf +++ b/macros/latex/required/babel/base/babel.pdf diff --git a/macros/latex/required/babel/base/bbcompat.dtx b/macros/latex/required/babel/base/bbcompat.dtx index 2a943ee42b..0e831a596e 100644 --- a/macros/latex/required/babel/base/bbcompat.dtx +++ b/macros/latex/required/babel/base/bbcompat.dtx @@ -30,7 +30,7 @@ % % \iffalse %<*dtx> -\ProvidesFile{bbcompat.dtx}[2020/02/28 v3.41] +\ProvidesFile{bbcompat.dtx}[2020/03/22 v3.42] %</dtx> % %% File 'bbcompat.dtx' diff --git a/macros/xetex/latex/xepersian-hm/README.txt b/macros/xetex/latex/xepersian-hm/README.txt index 5bd2194c2e..f271209861 100644 --- a/macros/xetex/latex/xepersian-hm/README.txt +++ b/macros/xetex/latex/xepersian-hm/README.txt @@ -1,10 +1,26 @@ +%% +%% This is file `README.txt' +%% +%% Copyright (c) Hossein Movahhedian 2020 +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% The XEPERSIAN-HM package ------------------------ -Kashida feature in xepersian has problem with some fonts such as HM Series -fonts available at 'https://dma8hm1334.bitbucket.io' and XB Series fonts -available at 'http://wiki.irmug.com/index.php/X_Series_2'. The `xepersian-hm' +Kashida feature in `xepersian' has problem with some fonts such as `HM Series' +fonts available at `https://dma8hm1334.bitbucket.io' and `X Series 2' fonts +available at `http://wiki.irmug.com/index.php/X_Series_2'. The `xepersian-hm' package fixes this problem. -The file texmf-dist/doc/xelatex/xepersian-hm/test-kashida.tex can be used as +The file `texmf-dist/doc/xelatex/xepersian-hm/test-kashida.tex' can be used as a simple example of the usage of the package. + +Any comments or suggestions would be gratefully appreciated. +Please report any bugs or issues to `dma8hm1334@gmail.com'. + +I will do my best to fix all the bugs you report, but, unfortunately, +time is a big hurdle to overcome; so, my apologies in advance for those +which I cannot make time to fix. diff --git a/macros/xetex/latex/xepersian-hm/kashida-xepersian-hm.def b/macros/xetex/latex/xepersian-hm/kashida-xepersian-hm.def index b1d21e2813..9d57fff997 100644 --- a/macros/xetex/latex/xepersian-hm/kashida-xepersian-hm.def +++ b/macros/xetex/latex/xepersian-hm/kashida-xepersian-hm.def @@ -10,7 +10,7 @@ %% Copyright notice: the following code is partly adapted from the code in %% 'kashida-xepersian.def' from xepersian package (v22.8). \ExplSyntaxOn -\ProvidesExplFile {kashida-xepersian-hm.def} {2020/03/19} {0.2} { Fixes~implementation~of~Kashida~in~xepersian~package } +\ProvidesExplFile {kashida-xepersian-hm.def} {2020-03-23} {0.3} { Fixes~implementation~of~Kashida~in~xepersian~package } \int_const:Nn \c_xepersianhm_zwj_int {"200D} % zero-width joiner \int_const:Nn \c_xepersianhm_lrm_int {"200E} % left-right-mark diff --git a/macros/xetex/latex/xepersian-hm/test-kasida.pdf b/macros/xetex/latex/xepersian-hm/test-kashida.pdf Binary files differindex e2c92cbc99..ec20b35a83 100644 --- a/macros/xetex/latex/xepersian-hm/test-kasida.pdf +++ b/macros/xetex/latex/xepersian-hm/test-kashida.pdf diff --git a/macros/xetex/latex/xepersian-hm/test-kasida.tex b/macros/xetex/latex/xepersian-hm/test-kashida.tex index 1c599c1cc0..d3492c93ef 100644 --- a/macros/xetex/latex/xepersian-hm/test-kasida.tex +++ b/macros/xetex/latex/xepersian-hm/test-kashida.tex @@ -1,25 +1,20 @@ +% \PassOptionsToPackage{Kashida=off,RTLdocument=on}{xepersian} % Load xepersian with a few options \documentclass{report} -\usepackage{graphicx} \usepackage{xcolor} -% \usepackage[Kashida=off,fontsloadable=true,RTLdocument=on]{xepersian} % Load xepersian with a few options -\usepackage[Kashida,kashidastretch=0.14 em plus 0.5 em]{xepersian-hm} % Succeeds -% \usepackage[Kashida,kashidastretch=noskip]{xepersian-hm} % Succeeds -% \usepackage[Kashida,kashidastretch=default]{xepersian-hm} % Succeeds -% \usepackage[Kashida,kashidastretch=kayhan]{xepersian-hm} % Succeeds -% \usepackage[Kashida,kashidastretch=khorramshahr]{xepersian-hm} % Succeeds - -% \settextfont[Scale=4.5,Colour=darkgray]{IRXLotus} - -% \settextfont[Scale=4.5,Colour=darkgray]{IRLotus} - +% \usepackage[Kashida]{xepersian} % Fails +\usepackage[Kashida,kashidastretch=0.14 em plus 0.5 em]{xepersian-hm} % Succeeds +% \usepackage[Kashida,kashidastretch=noskip]{xepersian-hm} % Succeeds +% \usepackage[Kashida,kashidastretch=default]{xepersian-hm} % Succeeds +% \usepackage[Kashida,kashidastretch=kayhan]{xepersian-hm} % Succeeds +% \usepackage[Kashida,kashidastretch=khorramshahr]{xepersian-hm} % Succeeds + +% \settextfont[Scale=4.5,Colour=darkgray]{XB Kayhan} \settextfont[Scale=4.5,Colour=darkgray]{HM XKayhan} - % \settextfont[Scale=4.5,Colour=darkgray]{HM XNiloofar} - % \settextfont[Scale=4.5,Colour=darkgray]{HM XYas} - % \settextfont[Scale=4.5,Colour=darkgray]{HM XZar} +% \setlatintextfont[Scale=2.5,Colour=teal]{XB Kayhan} \setlatintextfont[Scale=2.5,Colour=teal]{HM XKayhan} \def\SampleText{راهی جایی تابی چاپی چاههی تلاشهایی شتابهایی تابی چاپی راهی تلاشهــایی که کتابهایی که کلاههایی که} diff --git a/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.pdf b/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.pdf Binary files differnew file mode 100644 index 0000000000..a4bf9aa17d --- /dev/null +++ b/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.pdf diff --git a/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.tex b/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.tex new file mode 100644 index 0000000000..9320152898 --- /dev/null +++ b/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.tex @@ -0,0 +1,113 @@ +%% +%% This is file `xepersian-hm-doc.tex' +%% +%% Copyright (c) Hossein Movahhedian 2020 +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +\documentclass{ltxdoc} +\usepackage{hypdoc} + +\title{ + The \textsf{xepersian-hm} package\\Fixing kashida in xepersian +} + +\author{ + Hossein Movahhedian\thanks + { + E-mail: + \href{mailto:dma8hm1334@gmail.com} + {\textsf{dma8hm1334@gmail.com}} + } +} + +\date{Released 2020-03-23} + +\begin{document} + +\maketitle + +Kashida feature in \textsf{xepersian} has problem with some fonts such as \texttt{HM Series} +fonts available at +\href{https://dma8hm1334.bitbucket.io}{\texttt{https://dma8hm1334.bitbucket.io}} +and \texttt{X Series 2} fonts available at +\href{http://wiki.irmug.com/index.php/X_Series_2}{\texttt{http://wiki.irmug.com/index.php/X\_Series\_2}}. +The \textsf{xepersian-hm} package fixes this problem. + +The file \texttt{texmf-dist/doc/xelatex/xepersian-hm/test-kashida.tex} can be +used as a simple example of the usage of the package. + +Any comments or suggestions would be gratefully appreciated. +Please report any bug or issue to \href{mailto:dma8hm1334@gmail.com}{\textsf{dma8hm1334@gmail.com}}. + +I will do my best to fix all the bugs you report, but, unfortunately, +time is a big hurdle to overcome; so, my apologies in advance for those +which I cannot make time to fix. + +Please note that \textsf{xepersian-hm} loads \textsf{xepersian} automatically, +so you may only pass options to the package using the command +\verb|\PassOptionsToPackage| before \verb|\documentclass|, for example: + +\begin{verbatim} +\PassOptionsToPackage{Kashida=off,RTLdocument=on}{xepersian} +\documentclass{report} +\usepackage{xcolor} +\usepackage[Kashida,kashidastretch=0.14 em plus 0.5 em]{xepersian-hm} +\end{verbatim} + +The options available in \textsf{xepersian-hm} are: +\begin{itemize} + \item \texttt{Kashida}: with two possible values, \texttt{on} which enables + \texttt{Kashida} feature and \texttt{off} which disables that feature. For + example \texttt{Kashida=on} enables \texttt{Kashida} feature. + \item \texttt{kashidastretch}: which specifies the amount of extra stretching + for some combinations of characters. You may strictly specify the value of + this option. For example \texttt{'kashidastretch=0.14 em plus 0.5 em'} or you + may use the default values. The available default values are: + + \begin{tabular}{ll} + \texttt{kayhan} & \texttt{0.14 em plus 0.5 em} \\ + \texttt{khorramshahr} & \texttt{0.131 em plus 0.5 em} \\ + \texttt{kayhannavaar} & \texttt{0.129 em plus 0.5 em} \\ + \texttt{kayhanpook} & \texttt{0.133 em plus 0.5 em} \\ + \texttt{kayhansayeh} & \texttt{0.135 em plus 0.5 em} \\ + \texttt{khoramshahr} & \texttt{0.128 em plus 0.5 em} \\ + \texttt{khorramshahr} & \texttt{0.13 em plus 0.5 em} \\ + \texttt{niloofar} & \texttt{0.132 em plus 0.5 em} \\ + \texttt{paatch} & \texttt{0.127 em plus 0.5 em} \\ + \texttt{riyaz} & \texttt{0.125 em plus 0.5 em} \\ + \texttt{roya} & \texttt{0.142 em plus 0.5 em} \\ + \texttt{shafigh} & \texttt{0.143 em plus 0.5 em} \\ + \texttt{shafighKurd} & \texttt{0.126 em plus 0.5 em} \\ + \texttt{shafighUzbek} & \texttt{0.123 em plus 0.5 em} \\ + \texttt{shiraz} & \texttt{0.122 em plus 0.5 em} \\ + \texttt{sols} & \texttt{0.124 em plus 0.5 em} \\ + \texttt{tabriz} & \texttt{0.119 em plus 0.5 em} \\ + \texttt{titr} & \texttt{0.12 em plus 0.5 em} \\ + \texttt{titre} & \texttt{0.121 em plus 0.5 em} \\ + \texttt{traffic} & \texttt{0.124 em plus 0.5 em} \\ + \texttt{vahid} & \texttt{0.134 em plus 0.5 em} \\ + \texttt{vosta} & \texttt{0.136 em plus 0.5 em} \\ + \texttt{yaghut} & \texttt{0.138 em plus 0.5 em} \\ + \texttt{yagut} & \texttt{0.137 em plus 0.5 em} \\ + \texttt{yas} & \texttt{0.126 em plus 0.5 em} \\ + \texttt{yekan} & \texttt{0.141 em plus 0.5 em} \\ + \texttt{yermook} & \texttt{0.139 em plus 0.5 em} \\ + \texttt{zar} & \texttt{0.116 em plus 0.5 em} \\ + \texttt{ziba} & \texttt{0.119 em plus 0.5 em} \\ + \texttt{default} & \texttt{0.14 em plus 0.5 em} \\ + \texttt{noskip} & \texttt{0 em plus 0.5 em} + \end{tabular} + + For example: \mbox{\texttt{'kashidastretch=titr'}} is equivalent to\linebreak + \mbox{\texttt{'kashidastretch=0.12 em plus 0.5 em'}} +\end{itemize} + +\end{document} + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% End: diff --git a/macros/xetex/latex/xepersian-hm/xepersian-hm.sty b/macros/xetex/latex/xepersian-hm/xepersian-hm.sty index 441eac197f..e7330b2022 100644 --- a/macros/xetex/latex/xepersian-hm/xepersian-hm.sty +++ b/macros/xetex/latex/xepersian-hm/xepersian-hm.sty @@ -11,7 +11,7 @@ \NeedsTeXFormat{LaTeX2e} \RequirePackage{l3keys2e} \RequirePackage{xepersian} -\ProvidesExplPackage {xepersian-hm} {2020-03-19} {0.2} { Fixes~issues~in~xepersian~package } +\ProvidesExplPackage {xepersian-hm} {2020-03-23} {0.3} { Fixes~issues~in~xepersian~package } \tl_set:Nn \l_kayhan_tl { kayhan } \tl_set:Nn \l_khorramshahr_tl { khorramshahr } |