1% Options for packages loaded elsewhere
2\PassOptionsToPackage{unicode}{hyperref}
3\PassOptionsToPackage{hyphens}{url}
9\usepackage{amssymb,amsmath}
10\usepackage{ifxetex,ifluatex}
11\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
12 \usepackage[T1]{fontenc}
13 \usepackage[utf8]{inputenc}
14 \usepackage{textcomp} % provide euro and other symbols
15\else % if luatex or xetex
16 \usepackage{unicode-math}
17 \defaultfontfeatures{Scale=MatchLowercase}
18 \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
20% Use upquote if available, for straight quotes in verbatim environments
21\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
22\IfFileExists{microtype.sty}{% use microtype if available
23 \usepackage[]{microtype}
24 \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
27\@ifundefined{KOMAClassName}{% if non-KOMA class
28 \IfFileExists{parskip.sty}{%
31 \setlength{\parindent}{0pt}
32 \setlength{\parskip}{6pt plus 2pt minus 1pt}}
34 \KOMAoptions{parskip=half}}
37\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
38\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
42 pdfcreator={LaTeX via pandoc}}
43\urlstyle{same} % disable monospaced font for URLs
44\setlength{\emergencystretch}{3em} % prevent overfull lines
45\providecommand{\tightlist}{%
46 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
47\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
49 % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
50 \usepackage{polyglossia}
51 \setmainlanguage[]{english}
52 \setotherlanguage[]{german}
53 \setotherlanguage[variant=british]{english}
54 \setotherlanguage[variant=swiss]{german}
55 \setotherlanguage[]{spanish}
56 \setotherlanguage[]{french}
58 \usepackage[shorthands=off,ngerman,british,nswissgerman,spanish,french,main=english]{babel}
59 \newcommand{\textgerman}[2][]{\foreignlanguage{ngerman}{#2}}
60 \newenvironment{german}[2][]{\begin{otherlanguage}{ngerman}}{\end{otherlanguage}}
61 \newcommand{\textenglish}[2][]{\foreignlanguage{british}{#2}}
62 \newenvironment{english}[2][]{\begin{otherlanguage}{british}}{\end{otherlanguage}}
63 \let\oritextspanish\textspanish
64 \AddBabelHook{spanish}{beforeextras}{\renewcommand{\textspanish}{\oritextspanish}}
65 \AddBabelHook{spanish}{afterextras}{\renewcommand{\textspanish}[2][]{\foreignlanguage{spanish}{##2}}}
66 \newcommand{\textfrench}[2][]{\foreignlanguage{french}{#2}}
67 \newenvironment{french}[2][]{\begin{otherlanguage}{french}}{\end{otherlanguage}}
70 % Load bidi as late as possible as it modifies e.g. graphicx
73\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
75 \newcommand{\RL}[1]{\beginR #1\endR}
76 \newcommand{\LR}[1]{\beginL #1\endL}
77 \newenvironment{RTL}{\beginR}{\endR}
78 \newenvironment{LTR}{\beginL}{\endL}
86\hypertarget{empty-divs-and-spans}{%
87\section{Empty Divs and Spans}\label{empty-divs-and-spans}}
95Next paragraph with a {span} and a word-thatincludesa{span}right?
97\hypertarget{directionality}{%
98\section{Directionality}\label{directionality}}
109and a ltr div. with a \RL{rtl span}.
112Next paragraph with a \RL{rtl span} and a
113word-that-includesa\LR{ltrspan}right?
115\hypertarget{languages}{%
116\section{Languages}\label{languages}}
128Next paragraph with a \textenglish[variant=british]{British span} and a
129word-that-includesa\textgerman[variant=swiss]{Swiss German span}right?
131Some \textspanish{Spanish text}.
133\hypertarget{combined}{%
134\section{Combined}\label{combined}}
141French rtl div contents
148Next paragraph with a \LR{\textenglish[variant=british]{British ltr
149span}} and a word-that-includesa\LR{\textgerman[variant=swiss]{Swiss
150German ltr span}}right?
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list