Compare commits

...
This repository has been archived on 2024-11-29. You can view files and clone it, but cannot push or open issues or pull requests.

1 Commits

Author SHA1 Message Date
Emil Miler
caaa192d14 Aplikování patche od Michala Hofticha 2020-04-06 20:26:49 +02:00
5 changed files with 101 additions and 74 deletions

View File

@ -4,10 +4,10 @@ all: prace.pdf sighup
# LaTeX je potreba spustit nekolikrat, aby spravne spocital odkazy
prace.pdf: prace.tex $(wildcard *.tex) literatura.bib prace.xmpdata
pdflatex $<
bibtex prace
pdflatex $<
pdflatex $<
lualatex $<
biber prace
lualatex $<
lualatex $<
clean:
rm -f *.log *.dvi *.aux *.toc *.lof *.lot *.out *.bbl *.blg *.xmpi *.lol

View File

@ -40,9 +40,9 @@ Generátor také vyždaduje konfigurační soubor \texttt{config.toml} v kořeno
# Adresa ze které se generují odkazy
base_url = "https://ucitelonline.pedf.cuni.cz"
# Název stránky
title = "Učitel online"
title = "%(*Učitel online*)"
# Popis stránky
description = "Web pro ditstribuci užitečných materiálů"
description = "%(*Web pro distribuci užitečných materiálů*)"
# Zda se bude zpracovávat CSS systémem Sass
compile_sass = true
\end{lstlisting}

View File

@ -9,7 +9,7 @@
@techreport{rfc7764,
author = {Leonard, Sean},
howpublished = {Internet Requests for Comments},
url = {Internet Requests for Comments},
institution = {Internet Engineering Task Force},
issn = {2070-1721},
journal = {IETF Documents},
@ -23,10 +23,10 @@
year = {2016}
}
@misc{slant,
@online{slant,
author = {Slant},
howpublished = {\url{https://web.archive.org/web/20200210061112/https://www.slant.co/topics/589/~best-markup-languages}},
note = {Cit. 2020-02-10},
url = {https://web.archive.org/web/20200210061112/https://www.slant.co/topics/589/~best-markup-languages},
urldate = {2020-02-10},
title = {What are the best markup languages?},
year = {2020}
}
@ -58,18 +58,18 @@
year = {2012}
}
@misc{pcmag_dynamic,
@online{pcmag_dynamic,
author = {{PC{ }Magazine}},
howpublished = {\url{https://web.archive.org/web/20170117040526/https://www.pcmag.com/encyclopedia/term/42199/dynamic-web-page}},
note = {Cit. 2020-02-12},
url = {https://web.archive.org/web/20170117040526/https://www.pcmag.com/encyclopedia/term/42199/dynamic-web-page},
urldate = {2020-02-12},
title = {Definition of: dynamic Web page},
year = {2017}
}
@misc{pcmag_static,
author = {{PC{ }Magazine}},
howpublished = {\url{https://web.archive.org/web/20200223095514/https://www.pcmag.com/encyclopedia/term/static-web-page}},
note = {Cit. 2020-02-12},
url = {https://web.archive.org/web/20200223095514/https://www.pcmag.com/encyclopedia/term/static-web-page},
urldate = {2020-02-12},
title = {Definition of: static Web page},
year = {2020}
}
@ -77,8 +77,8 @@
@misc{mozttfb,
author = {Hoffman, Billy},
date = {2013-09-26},
howpublished = {\url{https://web.archive.org/web/20190416124447/https://moz.com/blog/improving-search-rank-by-optimizing-your-time-to-first-byte}},
note = {Cit. 2020-02-12},
url = {https://web.archive.org/web/20190416124447/https://moz.com/blog/improving-search-rank-by-optimizing-your-time-to-first-byte},
urldate = {2020-02-12},
title = {Improving Search Rank by Optimizing Your Time to First Byte},
year = {2013}
}
@ -86,9 +86,9 @@
@misc{financialtimes,
author = {Chadburn, Matt and Lahav, Gadi},
date = {2016-04-04},
howpublished = {\url{https://web.archive.org/web/20180929125709/http://engineroom.ft.com/2016/04/04/a-faster-ft-com/}},
url = {https://web.archive.org/web/20180929125709/http://engineroom.ft.com/2016/04/04/a-faster-ft-com/},
journal = {Financial Times},
note = {Cit. 2020-02-15},
urldate = {2020-02-15},
title = {How slow websites damage publishers revenue},
year = {2016}
}
@ -96,34 +96,34 @@
@misc{nolatex,
author = {Ol{\v s}{\'a}k, Petr},
date = {1997-08-14},
howpublished = {\url{http://petr.olsak.net/ftp/olsak/bulletin/nolatex.pdf}},
url = {http://petr.olsak.net/ftp/olsak/bulletin/nolatex.pdf},
title = {Pro{\v c} nerad pou{\v z}{\'\i}v{\'a}m LaTeX},
year = {1997}
}
@misc{daringfireball,
@online{daringfireball,
author = {Gruber, John},
date = {2004-12-14},
howpublished = {\url{https://web.archive.org/web/20200227143926/https://daringfireball.net/projects/markdown/}},
note = {Cit. 2020-02-27},
url = {https://web.archive.org/web/20200227143926/https://daringfireball.net/projects/markdown/},
urldate = {2020-02-27},
title = {Markdown},
year = {2004}
}
@misc{softpedia_generators,
@article{softpedia_generators,
author = {Cimpanu, Catalin},
date = {2015-05-22},
howpublished = {\url{https://web.archive.org/web/20200316165614/https://news.softpedia.com/news/How-Static-Site-Generators-Work-482007.shtml}},
url = {https://web.archive.org/web/20200316165614/https://news.softpedia.com/news/How-Static-Site-Generators-Work-482007.shtml},
journal = {Softpedia},
note = {Cit. 2020-03-16},
urldate = {2020-03-16},
title = {How Static Site Generators Work},
year = {2015}
}
@misc{commonmark,
author = {MacFarlane, John},
howpublished = {\url{https://spec.commonmark.org/}},
note = {Cit. 2020-03-22},
url = {https://spec.commonmark.org/},
urldate = {2020-03-22},
title = {CommonMark Spec},
year = {2019}
}
@ -131,23 +131,23 @@
@misc{calomel_optimization,
author = {Calomel},
date = {2017-01-01},
howpublished = {\url{https://calomel.org/save_web_bandwidth.html}},
note = {Cit. 2020-03-23},
url = {https://calomel.org/save_web_bandwidth.html},
urldate = {2020-03-23},
title = {Webserver Optimization and Bandwidth Saving Tips},
year = {2017}
}
@misc{github_formal_markdown_spec,
author = {Mart{\'\i}, Vicent},
howpublished = {\url{https://github.blog/2017-03-14-a-formal-spec-for-github-markdown/}},
note = {Cit. 2020-03-23},
url = {https://github.blog/2017-03-14-a-formal-spec-for-github-markdown/},
urldate = {2020-03-23},
title = {A formal spec for GitHub Flavored Markdown},
year = {2017}
}
@techreport{owasp2017,
author = {OWASP},
howpublished = {\url{https://owasp.org/www-pdf-archive/OWASP_Top_10-2017_%28en%29.pdf.pdf}},
url = {https://owasp.org/www-pdf-archive/OWASP_Top_10-2017_\%28en\%29.pdf.pdf},
institution = {OWASP},
journal = {OWASP Top Ten},
organization = {OWASP},
@ -159,7 +159,7 @@
@misc{cve_wordpress,
author = {{CVE{ }Details}},
howpublished = {\url{https://www.cvedetails.com/product/4096/Wordpress-Wordpress.html?vendor_id=2337}},
url = {https://www.cvedetails.com/product/4096/Wordpress-Wordpress.html?vendor_id=2337},
organization = {CVE{ }Details},
title = {Wordpress : Vulnerability Statistics},
year = {2020}
@ -168,7 +168,7 @@
@article{thehackernews_wordpress_1,
author = {Khandelwal, Swati},
date = {2020-02-17},
howpublished = {\url{https://thehackernews.com/2020/02/themegrill-wordpress-plugin.html}},
url = {https://thehackernews.com/2020/02/themegrill-wordpress-plugin.html},
journal = {The Hacker News},
title = {Critical Bug in WordPress Theme Plugin Opens 200,000 Sites to Hackers},
year = {2020}
@ -177,7 +177,7 @@
@article{thehackernews_wordpress_2,
author = {Khandelwal, Swati},
date = {2019-12-13},
howpublished = {\url{https://thehackernews.com/2019/12/wordpress-elementor-beaver.html}},
url = {https://thehackernews.com/2019/12/wordpress-elementor-beaver.html},
journal = {The Hacker News},
title = {Flaw in Elementor and Beaver Addons Let Anyone Hack WordPress Sites},
year = {2019}
@ -185,7 +185,7 @@
@misc{cve_php,
author = {{CVE{ }Details}},
howpublished = {\url{https://www.cvedetails.com/product/4096/Wordpress-Wordpress.html?vendor_id=2337}},
url = {https://www.cvedetails.com/product/4096/Wordpress-Wordpress.html?vendor_id=2337},
organization = {CVE{ }Details},
title = {PHP : Vulnerability Statistics},
year = {2020}

View File

@ -9,7 +9,7 @@
%%% a unsrt jsou standardní součástí latexových distribucí. Styl czplainnat
%%% je dodáván s touto šablonou a bibTeX ho hledá v aktuálním adresáři.
\bibliographystyle{czplainnat} %% Autor (rok) s českými spojkami
%\bibliographystyle{czplainnat} %% Autor (rok) s českými spojkami
% \bibliographystyle{plainnat} %% Autor (rok) s anglickými spojkami
% \bibliographystyle{unsrt} %% [číslo]
@ -18,7 +18,8 @@
%%% Vytvoření seznamu literatury. Pozor, pokud jste necitovali ani jednu
%%% položku, seznam se automaticky vynechá.
\bibliography{literatura}
%\bibliography{literatura}
\printbibliography
%%% Kdybyste chtěli bibliografii vytvářet ručně (bez bibTeXu), lze to udělat
%%% následovně. V takovém případě se řiďte normou ISO 690 a zvyklostmi v oboru.

View File

@ -28,12 +28,37 @@
%% kódování
\usepackage{textcomp} % speciální symboly pro kódování T1
\usepackage[utf8]{inputenc} % vstupní kódování v UTF-8
\usepackage[T1]{fontenc} % výstupní kódování v T1 (české znaky)
% toto není v LuaLaTeXu potřeba
% \usepackage[utf8]{inputenc} % vstupní kódování v UTF-8
% \usepackage[T1]{fontenc} % výstupní kódování v T1 (české znaky)
\usepackage[czech]{babel} % České řetězce a dělení slov
%% bibliografie
\usepackage[czech]{babel} % Česká bibliografie
\usepackage[authoryear,colon,sort,round]{natbib}
% \usepackage[authoryear,colon,sort,round]{natbib}
% BibLaTeX je udržovaný balíček
% kvůli chybě v Babelu je ale třeba toto:
% zdroj: https://tex.stackexchange.com/a/529993/2891
\usepackage{etoolbox}
\makeatletter
\newcommand\my@hyphen{-}
\patchcmd\select@language{-}{\my@hyphen }{}{\fail}
\makeatother
\usepackage[style=iso-authoryear]{biblatex} % literatura ve stylu IS0 690
\let\citep\parencite % kompatibilita s natbibovými makry
\addbibresource{literatura.bib} % musíme nahrát literaturu
\ifdefined\directlua
\usepackage{luavlna}% zamezit jednoznakovým předložkám na koncích řádků
\fi
% použít dagger jako symbol pro poznámky pod čarou
% https://tex.stackexchange.com/a/829/2891
\usepackage[symbol,perpage]{footmisc}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\DefineFNsymbols*{myfootnote}{\dagger\ddagger*\S\P\|% pořadí symbolů pro poznámky
{**}{\dagger\dagger}{\ddagger\ddagger}}
\setfnsymbol{myfootnote}
%% Formátování podle předpisů PedF
% velikosti fontů jsou v základím nastavení správně
@ -72,38 +97,39 @@
showstringspaces=false,
tabsize=4,
breaklines=true,
escapeinside={\%(*}{*)},
extendedchars=true,
literate=
{á}{{\'a}}1
{č}{{\v{c}}}1
{ď}{{\v{d}}}1
{é}{{\'e}}1
{ě}{{\v{e}}}1
{í}{{\'i}}1
{ň}{{\v{n}}}1
{ó}{{\'o}}1
{ř}{{\v{r}}}1
{š}{{\v{s}}}1
{ť}{{\v{t}}}1
{ú}{{\'u}}1
{ů}{{\r{u}}}1
{ý}{{\'y}}1
{ž}{{\v{z}}}1
{Á}{{\'A}}1
{Č}{{\v{C}}}1
{Ď}{{\v{D}}}1
{É}{{\'E}}1
{Ě}{{\v{E}}}1
{Í}{{\'I}}1
{Ň}{{\v{N}}}1
{Ó}{{\'O}}1
{Ř}{{\v{R}}}1
{Š}{{\v{S}}}1
{Ť}{{\v{T}}}1
{Ú}{{\'U}}1
{Ů}{{\r{U}}}1
{Ý}{{\'Y}}1
{Ž}{{\v{Z}}}1
% literate=
% {á}{{\'a}}1
% {č}{{\v{c}}}1
% {ď}{{\v{d}}}1
% {é}{{\'e}}1
% {ě}{{\v{e}}}1
% {í}{{\'i}}1
% {ň}{{\v{n}}}1
% {ó}{{\'o}}1
% {ř}{{\v{r}}}1
% {š}{{\v{s}}}1
% {ť}{{\v{t}}}1
% {ú}{{\'u}}1
% {ů}{{\r{u}}}1
% {ý}{{\'y}}1
% {ž}{{\v{z}}}1
% {Á}{{\'A}}1
% {Č}{{\v{C}}}1
% {Ď}{{\v{D}}}1
% {É}{{\'E}}1
% {Ě}{{\v{E}}}1
% {Í}{{\'I}}1
% {Ň}{{\v{N}}}1
% {Ó}{{\'O}}1
% {Ř}{{\v{R}}}1
% {Š}{{\v{S}}}1
% {Ť}{{\v{T}}}1
% {Ú}{{\'U}}1
% {Ů}{{\r{U}}}1
% {Ý}{{\'Y}}1
% {Ž}{{\v{Z}}}1
}
\renewcommand{\lstlistingname}{Program} % Přejmenování popisků
\renewcommand{\lstlistlistingname}{Seznam programů} % Přejmenování názvu seznamu programů