2019-03-14 01:22:28 +01:00
|
|
|
% Options for packages loaded elsewhere
|
2019-03-23 05:35:55 +01:00
|
|
|
\PassOptionsToPackage{unicode}{hyperref}
|
2017-08-14 22:19:54 +02:00
|
|
|
\PassOptionsToPackage{hyphens}{url}
|
|
|
|
%
|
2019-01-01 23:47:02 +01:00
|
|
|
\documentclass[
|
|
|
|
]{article}
|
2020-11-26 01:08:10 +01:00
|
|
|
\usepackage{amsmath,amssymb}
|
2015-10-17 14:48:42 +02:00
|
|
|
\usepackage{lmodern}
|
2021-02-03 17:54:11 +01:00
|
|
|
\usepackage{iftex}
|
|
|
|
\ifPDFTeX
|
2015-10-17 14:48:42 +02:00
|
|
|
\usepackage[T1]{fontenc}
|
|
|
|
\usepackage[utf8]{inputenc}
|
2019-04-03 02:18:36 +02:00
|
|
|
\usepackage{textcomp} % provide euro and other symbols
|
2019-03-23 05:35:55 +01:00
|
|
|
\else % if luatex or xetex
|
2017-02-06 10:50:36 +01:00
|
|
|
\usepackage{unicode-math}
|
2019-01-13 02:39:47 +01:00
|
|
|
\defaultfontfeatures{Scale=MatchLowercase}
|
|
|
|
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
|
2015-10-17 14:48:42 +02:00
|
|
|
\fi
|
2019-03-14 01:22:28 +01:00
|
|
|
% Use upquote if available, for straight quotes in verbatim environments
|
2015-10-17 14:48:42 +02:00
|
|
|
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
|
2019-01-01 23:47:02 +01:00
|
|
|
\IfFileExists{microtype.sty}{% use microtype if available
|
|
|
|
\usepackage[]{microtype}
|
|
|
|
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
|
2015-10-17 14:48:42 +02:00
|
|
|
}{}
|
2018-12-11 22:21:45 +01:00
|
|
|
\makeatletter
|
2019-01-01 23:47:02 +01:00
|
|
|
\@ifundefined{KOMAClassName}{% if non-KOMA class
|
2018-12-11 19:22:31 +01:00
|
|
|
\IfFileExists{parskip.sty}{%
|
2018-12-11 22:21:45 +01:00
|
|
|
\usepackage{parskip}
|
2018-12-11 19:22:31 +01:00
|
|
|
}{% else
|
2018-12-11 22:21:45 +01:00
|
|
|
\setlength{\parindent}{0pt}
|
|
|
|
\setlength{\parskip}{6pt plus 2pt minus 1pt}}
|
2019-01-01 23:47:02 +01:00
|
|
|
}{% if KOMA class
|
2018-12-11 22:21:45 +01:00
|
|
|
\KOMAoptions{parskip=half}}
|
|
|
|
\makeatother
|
2019-01-03 04:34:17 +01:00
|
|
|
\usepackage{xcolor}
|
2019-03-14 01:22:28 +01:00
|
|
|
\setlength{\emergencystretch}{3em} % prevent overfull lines
|
2017-05-18 22:46:58 +02:00
|
|
|
\providecommand{\tightlist}{%
|
|
|
|
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
2019-03-05 00:58:20 +01:00
|
|
|
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
|
2021-10-04 04:27:37 +02:00
|
|
|
\ifLuaTeX
|
|
|
|
\usepackage[bidi=basic]{babel}
|
2021-10-17 08:34:53 +02:00
|
|
|
\else
|
|
|
|
\usepackage[bidi=default]{babel}
|
2021-10-04 04:27:37 +02:00
|
|
|
\fi
|
|
|
|
\babelprovide[main,import]{english}
|
|
|
|
\babelprovide[import]{ngerman}
|
|
|
|
\babelprovide[import]{british}
|
|
|
|
\babelprovide[import]{nswissgerman}
|
|
|
|
\babelprovide[import]{spanish}
|
|
|
|
\babelprovide[import]{french}
|
2020-11-25 17:25:30 +01:00
|
|
|
% get rid of language-specific shorthands (see #6817):
|
|
|
|
\let\LanguageShortHands\languageshorthands
|
|
|
|
\def\languageshorthands#1{}
|
2021-02-03 17:54:11 +01:00
|
|
|
\ifLuaTeX
|
2020-07-15 22:28:44 +02:00
|
|
|
\usepackage{selnolig} % disable illegal ligatures
|
|
|
|
\fi
|
2021-02-03 17:54:11 +01:00
|
|
|
\ifPDFTeX
|
2015-10-17 14:48:42 +02:00
|
|
|
\TeXXeTstate=1
|
|
|
|
\newcommand{\RL}[1]{\beginR #1\endR}
|
|
|
|
\newcommand{\LR}[1]{\beginL #1\endL}
|
|
|
|
\newenvironment{RTL}{\beginR}{\endR}
|
|
|
|
\newenvironment{LTR}{\beginL}{\endL}
|
|
|
|
\fi
|
2022-03-13 18:48:09 +01:00
|
|
|
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
|
2022-03-21 18:42:18 +01:00
|
|
|
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
|
|
|
\urlstyle{same} % disable monospaced font for URLs
|
2022-03-13 18:48:09 +01:00
|
|
|
\hypersetup{
|
|
|
|
pdflang={en},
|
|
|
|
hidelinks,
|
|
|
|
pdfcreator={LaTeX via pandoc}}
|
2015-10-17 14:48:42 +02:00
|
|
|
|
2021-07-04 00:21:43 +02:00
|
|
|
\author{}
|
|
|
|
\date{}
|
|
|
|
|
2015-10-17 14:48:42 +02:00
|
|
|
\begin{document}
|
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{empty-divs-and-spans}{%
|
|
|
|
\section{Empty Divs and Spans}\label{empty-divs-and-spans}}
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
Some text and
|
|
|
|
|
|
|
|
div contents
|
|
|
|
|
|
|
|
and more text.
|
|
|
|
|
2016-01-09 21:16:24 +01:00
|
|
|
Next paragraph with a {span} and a word-thatincludesa{span}right?
|
2015-10-17 14:48:42 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{directionality}{%
|
|
|
|
\section{Directionality}\label{directionality}}
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
Some text and
|
|
|
|
|
|
|
|
\begin{RTL}
|
|
|
|
rtl div contents
|
|
|
|
\end{RTL}
|
|
|
|
|
|
|
|
and more text.
|
|
|
|
|
|
|
|
\begin{LTR}
|
|
|
|
and a ltr div. with a \RL{rtl span}.
|
|
|
|
\end{LTR}
|
|
|
|
|
|
|
|
Next paragraph with a \RL{rtl span} and a
|
|
|
|
word-that-includesa\LR{ltrspan}right?
|
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{languages}{%
|
|
|
|
\section{Languages}\label{languages}}
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
Some text and
|
|
|
|
|
2021-09-10 03:32:37 +02:00
|
|
|
\begin{otherlanguage}{ngerman}
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
German div contents
|
|
|
|
|
2021-09-10 03:32:37 +02:00
|
|
|
\end{otherlanguage}
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
and more text.
|
|
|
|
|
2021-09-10 03:32:37 +02:00
|
|
|
Next paragraph with a \foreignlanguage{british}{British span} and a
|
|
|
|
word-that-includesa\foreignlanguage{nswissgerman}{Swiss German
|
|
|
|
span}right?
|
2015-10-17 14:48:42 +02:00
|
|
|
|
2021-09-10 03:32:37 +02:00
|
|
|
Some \foreignlanguage{spanish}{Spanish text}.
|
2015-10-17 14:48:42 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{combined}{%
|
|
|
|
\section{Combined}\label{combined}}
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
Some text and
|
|
|
|
|
|
|
|
\begin{RTL}
|
2021-09-10 03:32:37 +02:00
|
|
|
\begin{otherlanguage}{french}
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
French rtl div contents
|
|
|
|
|
2021-09-10 03:32:37 +02:00
|
|
|
\end{otherlanguage}
|
2015-10-17 14:48:42 +02:00
|
|
|
\end{RTL}
|
|
|
|
|
|
|
|
and more text.
|
|
|
|
|
2021-09-10 03:32:37 +02:00
|
|
|
Next paragraph with a \LR{\foreignlanguage{british}{British ltr span}}
|
|
|
|
and a word-that-includesa\LR{\foreignlanguage{nswissgerman}{Swiss German
|
|
|
|
ltr span}}right?
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
\end{document}
|