\ProvidesPackage{ElstobManual}

\usepackage{microtype}
\usepackage{fancyhdr}
%\usepackage[english,greek,lithuanian,polish,latin]{babel}
\usepackage[quiet]{fontspec}
%\setmainfont{ElstobD}[
%  UprightFont = {*-Regular},
%  ItalicFont = {*-Italic},
%  BoldFont = {*-Bold},
%  BoldItalicFont = {*-Bold Italic},
%  Numbers={Lowercase,Proportional},
%  StylisticSet=10,
%  UprightFeatures={
%    SizeFeatures={
%      {Size={-10.99}, Font=*-Medium},
%      {Size={11-21.59},  Font=*-Regular},
%      {Size={21.6-},     Font=*-Light}
%    },
%  },
%  ItalicFeatures={
%    SizeFeatures={
%      {Size={-10.99}, Font={*-Medium Italic}},
%      {Size={11-21.59},  Font=*-Italic},
%      {Size={21.6-},     Font={*-Light Italic}}
%    },
%  },
%  BoldFeatures={
%    SizeFeatures={
%      {Size={-10.99}, Font=*-Bold},
%      {Size={11-21.59},  Font=*-Semibold},
%      {Size={21.6-},     Font=*-Medium}
%    },
%  },
%  BoldItalicFeatures={
%    SizeFeatures={
%      {Size={-10.99}, Font={*-Bold Italic}},
%      {Size={11-21.59},  Font={*-Semibold Italic}},
%      {Size={21.6-},     Font={*-Medium Italic}}
%    },
%  },
%]
\setmainfont{Elstob.ttf}[
  ItalicFont = Elstob-Italic.ttf,
  BoldFont = Elstob.ttf,
  BoldItalicFont = Elstob-Italic.ttf,
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  UprightFeatures={
    SizeFeatures={
      {Size={-8.5},      RawFeature={axis={wght=400,opsz=8,GRAD=0,SPAC=0}}},
      {Size={8.5-10.5},  RawFeature={axis={wght=400,opsz=10,GRAD=0,SPAC=0}}},
      {Size={10.5-13.5}, RawFeature={axis={wght=400,opsz=12,GRAD=0,SPAC=0}}},
      {Size={13.5-15.5}, RawFeature={axis={wght=400,opsz=14,GRAD=0,SPAC=0}}},
      {Size={15.5-},     RawFeature={axis={wght=400,opsz=18,GRAD=0,SPAC=0}}}
    },
  },
  ItalicFeatures={
    SizeFeatures={
      {Size={-8.5},      RawFeature={axis={wght=400,opsz=8,slnt=8,GRAD=0,SPAC=0}}},
      {Size={8.5-10.5},  RawFeature={axis={wght=400,opsz=10,slnt=8,GRAD=0,SPAC=0}}},
      {Size={10.5-13.5}, RawFeature={axis={wght=400,opsz=12,slnt=8,GRAD=0,SPAC=0}}},
      {Size={13.5-15.5}, RawFeature={axis={wght=400,opsz=14,slnt=8,GRAD=0,SPAC=0}}},
      {Size={15.5-},     RawFeature={axis={wght=400,opsz=18,slnt=8,GRAD=0,SPAC=0}}}
    },
  },
  BoldFeatures={
    SizeFeatures={
      {Size={-8.5},      RawFeature={axis={wght=700,opsz=8,GRAD=0,SPAC=0}}},
      {Size={8.5-10.5},  RawFeature={axis={wght=700,opsz=10,GRAD=0,SPAC=0}}},
      {Size={10.5-13.5}, RawFeature={axis={wght=700,opsz=12,GRAD=0,SPAC=0}}},
      {Size={13.5-15.5}, RawFeature={axis={wght=700,opsz=14,GRAD=0,SPAC=0}}},
      {Size={15.5-},     RawFeature={axis={wght=700,opsz=18,GRAD=0,SPAC=0}}}
    },
  },
  BoldItalicFeatures={
    SizeFeatures={
      {Size={-8.5},      RawFeature={axis={wght=700,opsz=8,slnt=8,GRAD=0,SPAC=0}}},
      {Size={8.5-10.5},  RawFeature={axis={wght=700,opsz=10,slnt=8,GRAD=0,SPAC=0}}},
      {Size={10.5-13.5}, RawFeature={axis={wght=700,opsz=12,slnt=8,GRAD=0,SPAC=0}}},
      {Size={13.5-15.5}, RawFeature={axis={wght=700,opsz=14,slnt=8,GRAD=0,SPAC=0}}},
      {Size={15.5-},     RawFeature={axis={wght=700,opsz=18,slnt=8,GRAD=0,SPAC=0}}}
    },
  },
]
\newfontface\extralight{Elstob.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=200,opsz=8,GRAD=0,SPAC=0}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=200,opsz=10,GRAD=0,SPAC=0}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=200,opsz=12,GRAD=0,SPAC=0}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=200,opsz=14,GRAD=0,SPAC=0}}},
    {Size={15.5-},     RawFeature={axis={wght=200,opsz=18,GRAD=0,SPAC=0}}}
  },
]
\newfontface\light{Elstob.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=300,opsz=8,GRAD=0,SPAC=0}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=300,opsz=10,GRAD=0,SPAC=0}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=300,opsz=12,GRAD=0,SPAC=0}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=300,opsz=14,GRAD=0,SPAC=0}}},
    {Size={15.5-},     RawFeature={axis={wght=300,opsz=18,GRAD=0,SPAC=0}}}
  },
]
\newfontface\medium{Elstob.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=500,opsz=8,GRAD=0,SPAC=0}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=500,opsz=10,GRAD=0,SPAC=0}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=500,opsz=12,GRAD=0,SPAC=0}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=500,opsz=14,GRAD=0,SPAC=0}}},
    {Size={15.5-},     RawFeature={axis={wght=500,opsz=18,GRAD=0,SPAC=0}}}
  },
]
\newfontface\semibold{Elstob.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=600,opsz=8,GRAD=0,SPAC=0}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=600,opsz=10,GRAD=0,SPAC=0}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=600,opsz=12,GRAD=0,SPAC=0}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=600,opsz=14,GRAD=0,SPAC=0}}},
    {Size={15.5-},     RawFeature={axis={wght=600,opsz=18,GRAD=0,SPAC=0}}}
  },
]
\newfontface\extrabold{Elstob.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=800,opsz=8,GRAD=0,SPAC=0}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=800,opsz=10,GRAD=0,SPAC=0}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=800,opsz=12,GRAD=0,SPAC=0}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=800,opsz=14,GRAD=0,SPAC=0}}},
    {Size={15.5-},     RawFeature={axis={wght=800,opsz=18,GRAD=0,SPAC=0}}}
  },
]
\newfontface\superbold{Elstob.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=800,opsz=8,GRAD=0.2,SPAC=0}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=800,opsz=10,GRAD=0.2,SPAC=0}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=800,opsz=12,GRAD=0.2,SPAC=0}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=800,opsz=14,GRAD=0.2,SPAC=0}}},
    {Size={15.5-},     RawFeature={axis={wght=800,opsz=18,GRAD=0.2,SPAC=0}}}
  },
]
\newfontface\waytoobold{Elstob.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=800,opsz=8,GRAD=1,SPAC=0}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=800,opsz=10,GRAD=1,SPAC=0}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=800,opsz=12,GRAD=1,SPAC=0}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=800,opsz=14,GRAD=1,SPAC=0}}},
    {Size={15.5-},     RawFeature={axis={wght=800,opsz=18,GRAD=1,SPAC=0}}}
  },
]
\newfontface\oddball{Elstob.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=523.45,opsz=8,GRAD=0,SPAC=0}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=523.45,opsz=10,GRAD=0,SPAC=0}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=523.45,opsz=12,GRAD=0,SPAC=0}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=523.45,opsz=14,GRAD=0,SPAC=0}}},
    {Size={15.5-},     RawFeature={axis={wght=523.45,opsz=18,GRAD=0,SPAC=0}}}
  },
]
\newfontface\spaced{Elstob.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=400,opsz=8,GRAD=0,SPAC=1}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=400,opsz=10,GRAD=0,SPAC=1}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=400,opsz=12,GRAD=0,SPAC=1}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=400,opsz=14,GRAD=0,SPAC=1}}},
    {Size={15.5-},     RawFeature={axis={wght=400,opsz=18,GRAD=0,SPAC=1}}}
  },
]
\newfontface\itallight{Elstob-Italic.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=300,opsz=8,slnt=8,GRAD=0,SPAC=0}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=300,opsz=10,slnt=8,GRAD=0,SPAC=0}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=300,opsz=12,slnt=8,GRAD=0,SPAC=0}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=300,opsz=14,slnt=8,GRAD=0,SPAC=0}}},
    {Size={15.5-},     RawFeature={axis={wght=300,opsz=18,slnt=8,GRAD=0,SPAC=0}}}
  },
]
\newfontface\italmedium{Elstob-Italic.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=500,opsz=8,slnt=8,GRAD=0,SPAC=0}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=500,opsz=10,slnt=8,GRAD=0,SPAC=0}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=500,opsz=12,slnt=8,GRAD=0,SPAC=0}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=500,opsz=14,slnt=8,GRAD=0,SPAC=0}}},
    {Size={15.5-},     RawFeature={axis={wght=500,opsz=18,slnt=8,GRAD=0,SPAC=0}}}
  },
]
\newfontface\italslanted{Elstob-Italic.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=400,opsz=8,slnt=0,GRAD=0,SPAC=0}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=400,opsz=10,slnt=0,GRAD=0,SPAC=0}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=400,opsz=12,slnt=0,GRAD=0,SPAC=0}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=400,opsz=14,slnt=0,GRAD=0,SPAC=0}}},
    {Size={15.5-},     RawFeature={axis={wght=400,opsz=18,slnt=0,GRAD=0,SPAC=0}}}
  },
]
\newfontface\italslantedmedium{Elstob-Italic.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=500,opsz=8,slnt=0,GRAD=0,SPAC=0}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=500,opsz=10,slnt=0,GRAD=0,SPAC=0}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=500,opsz=12,slnt=0,GRAD=0,SPAC=0}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=500,opsz=14,slnt=0,GRAD=0,SPAC=0}}},
    {Size={15.5-},     RawFeature={axis={wght=500,opsz=18,slnt=0,GRAD=0,SPAC=0}}}
  },
]
\newfontface\italupright{Elstob-Italic.ttf}[
  Contextuals=Alternate,
  Numbers={Lowercase,Proportional},
  RawFeature={mode=harf},
  SizeFeatures={
    {Size={-8.5},      RawFeature={axis={wght=400,opsz=8,slnt=15,GRAD=0,SPAC=0}}},
    {Size={8.5-10.5}, RawFeature={axis={wght=400,opsz=10,slnt=15,GRAD=0,SPAC=0}}},
    {Size={10.5-13.5}, RawFeature={axis={wght=400,opsz=12,slnt=15,GRAD=0,SPAC=0}}},
    {Size={13.5-15.5},  RawFeature={axis={wght=400,opsz=14,slnt=15,GRAD=0,SPAC=0}}},
    {Size={15.5-},     RawFeature={axis={wght=400,opsz=18,slnt=15,GRAD=0,SPAC=0}}}
  },
]
\usepackage{microtype}
\usepackage{graphicx}
\usepackage[table,dvipsnames]{xcolor}
\definecolor{BrickRed}{RGB}{146,18,6}
\definecolor{SlateGray}{RGB}{112,128,144}
\definecolor{GGOrange}{RGB}{240,74,6}
\definecolor{RViolet}{RGB}{70,18,87}
\definecolor{myRed}{rgb}{0.5,0,0}
\definecolor{myBlue}{rgb}{0,0,0.5}
\definecolor{myLightRed}{RGB}{255,232,244}
\definecolor{myLightYellow}{RGB}{239,249,218}
\definecolor{myLightBlue}{RGB}{203,228,249}
\definecolor{myLightGreen}{RGB}{234,255,244}
\definecolor{myLightPurple}{RGB}{214,205,234}
\usepackage{multicol}
\usepackage{array}
\usepackage{tabto}
\usepackage{supertabular}
\usepackage{hhline}
\usepackage{metalogo}
\usepackage{hyperref}
\hypersetup{pdftex, colorlinks=true, linkcolor=blue, citecolor=blue, filecolor=blue,%
  urlcolor=blue, pdftitle=, pdfauthor=, pdfsubject=, pdfkeywords=}
% Footnotes configuration
\makeatletter
\renewcommand\thefootnote{\arabic{footnote}}
\makeatother
% Text styles
\linespread{1.1}
\newopentypefeature{MyStyle}{insular}{+ss02}
\newopentypefeature{MyStyle}{contextualr}{+ss16}
\newopentypefeature{MyStyle}{contextuals}{+ss08}
\newopentypefeature{MyStyle}{IPA}{+ss03}
\newopentypefeature{MyStyle}{thornswap}{+ss01}
\newopentypefeature{MyStyle}{liningnum}{+lnum}
\newopentypefeature{MyStyle}{propnum}{+pnum}
%\newopentypefeature{Ligatures}{histon}{+hlig}
\newopentypefeature{Ligatures}{histoff}{-hlig}
\newcommand\textex[1]{\textrm{\textbf{\color{BrickRed}#1}}}
\newcommand\textUName[1]{\textsc{#1}}
\newcommand\textSourceText[1]{{\color{GGOrange}\texttt{#1}}}
\newcommand\cvc[1]{{\color{magenta}#1}}
\newcommand\textstyleEmphasis[1]{\textit{#1}}
\newcommand\textstyleEntityRef[1]{\textrm{#1}}
\newcommand{\cvd}[3][0]{{\addfontfeature{CharacterVariant=#2:#1}#3}}
\newcommand{\hlig}[1]{{\addfontfeature{Ligatures=Historic}#1}}
\newcommand{\sups}[1]{{\addfontfeature{VerticalPosition = Superior}#1}}
\newcommand{\subs}[1]{{\addfontfeature{VerticalPosition = Inferior}#1}}
\newcommand{\oprop}[1]{{\addfontfeature{Numbers={Lowercase,Proportional}}#1}}
\newcommand{\lprop}[1]{{\addfontfeature{Numbers={Uppercase,Proportional}}#1}}
\newcommand{\otab}[1]{{\addfontfeature{Numbers={Lowercase,Monospaced}}#1}}
\newcommand{\ltab}[1]{{\addfontfeature{Numbers={Uppercase,Monospaced}}#1}}
\newcommand{\revthorn}[1]{{\addfontfeature{StylisticSet=1}#1}}
\newcommand{\fstr}[1]{{\addfontfeature{FakeStretch=0.85}#1}}
\newcommand{\ffstr}[1]{{\addfontfeature{FakeStretch=0.75}#1}}
\newcommand{\eng}{\addfontfeature{Language=English}}
\newcommand{\icel}{\addfontfeature{Language=Icelandic}}
\newcommand{\unic}[1]{{\addfontfeature{Numbers={Uppercase,Monospaced}}#1}}
\newcommand{\colongs}{\addfontfeature{Language=English,StylisticSet=8}}
\newcommand{\ltech}{Lua\kern-1.5pt\TeX}
\newcommand{\ctosc}[1]{{\addfontfeature{Letters=UppercaseSmallCaps}#1}}
\newcommand{\charvar}{\textSourceText{cvNN}}
\newcommand{\secletter}[1]{\textbf{#1}}
% Outline numbering
%\setcounter{secnumdepth}{0}
\makeatletter
\newcommand\arraybslash{\let\\\@arraycr}
\makeatother
% Page layout (geometry)
%\setlength\voffset{-1in}
%\setlength\hoffset{-0.75in}
%\setlength\topmargin{1in}
%\setlength\oddsidemargin{1in}
%\setlength\textheight{8.000001in}
%\setlength\textwidth{6in}
%\setlength\footskip{0.0cm}
\setlength\headheight{15pt}
%\setlength\headsep{0.2in}
% Footnote rule
%\setlength{\skip\footins}{14pt}
%\renewcommand\footnoterule{\vspace*{-0.0071in}\setlength\leftskip{0pt}\setlength\rightskip{0pt plus 1fil}\noindent\textcolor{black}{\rule{0.25\columnwidth}{0.0071in}}\vspace*{0.0398in}}
% Pages styles
\pagestyle{fancy}
\footskip = 30pt
\headsep = 30pt
\renewcommand{\headrule}{}
\fancyhead[L]{}
\fancyhead[C]{}
\fancyhead[R]{}
\fancyfoot[L]{}
\fancyfoot[C]{}
\fancyfoot[R]{}
\setlength\tabcolsep{1mm}
\renewcommand\arraystretch{1.3}
% Headers
%\usepackage{sectsty}
%\subsectionfont{\color{BrickRed}}
%\sectionfont{\color{SlateGray}}
\usepackage{titlesec}
\titleformat{\chapter}[hang]{\huge\color{RViolet}}{\thechapter.}{1em}{}
\titleformat{\section}[hang]{\Large\color{SlateGray}}{\thesection.}{1em}{}
\titleformat{\subsection}[hang]{\large\color{BrickRed}}{\thesubsection.}{1em}{}
% List styles
\newcommand\liststyleLi{%
\renewcommand\labelitemi{{\textbullet}}
\renewcommand\labelitemii{{\textbullet}}
\renewcommand\labelitemiii{{\textbullet}}
\renewcommand\labelitemiv{{\textbullet}}
}
\newcommand\liststyleLii{%
\renewcommand\labelitemi{{\textbullet}}
\renewcommand\labelitemii{{\textbullet}}
\renewcommand\labelitemiii{{\textbullet}}
\renewcommand\labelitemiv{{\textbullet}}
}
\newcounter{Feature}
\renewcommand\theFeature{\arabic{Feature}}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
\tolerance=1500
\widowpenalty=500
\clubpenalty=500
\frenchspacing
\raggedbottom
