%%
%% This is file `chextras.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% chextras.dtx  (with options: `chextras.sty')
%% 
%% Copyright 2010 - 2012 by Boris Oriet <http://boris.oriet.net>
%% 
%% 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.
%% 
%% This file has the LPPL maintenance status "author-maintained".
%% 
\NeedsTeXFormat{LaTeX2e}[1996/06/01]
\ProvidesPackage{chextras}[2012/07/20 v1.01 Swiss companion package]
\DeclareOption{nomath}{\PassOptionsToPackage{nomath}{lmodern}}
\DeclareOption{lighttt}{\PassOptionsToPackage{lighttt}{lmodern}}
\DeclareOption{variablett}{\PassOptionsToPackage{variablett}{lmodern}}
\DeclareOption{oldstyle}{\old@styletrue}
\DeclareOption{german}{\def\load@lang{german}}
\DeclareOption{french}{\def\load@lang{french}}
\DeclareOption{italian}{\def\load@lang{italian}}
\DeclareOption{english}{\def\load@lang{english}}
\DeclareOption{black}
{\def\load@href%
 {linkcolor=black,filecolor=black,urlcolor=black}}
\DeclareOption{gray}
{\def\load@href%
 {linkcolor=[gray]{0.5},filecolor=[gray]{0.5},urlcolor=[gray]{0.5}}}
\DeclareOption{color}
{\def\load@href%
 {}}
\DeclareOption{stdshape}{\std@shapetrue}
\DeclareOption{stdspace}{\std@spacetrue}
\DeclareOption{stdfield}{\std@fieldtrue}
\DeclareOption{stdparis}{\std@paristrue}
\DeclareOption{stddimen}{\std@dimentrue}
\DeclareOption{stdskips}{\std@skipstrue}
\DeclareOption{stdmgpar}{\std@mgpartrue}
\DeclareOption{stdlists}{\std@liststrue}
\DeclareOption{stdlabel}{\std@labeltrue}
\DeclareOption{stditems}{\std@itemstrue}
\DeclareOption{stdnotes}{\std@notestrue}
\DeclareOption{stdrules}{\std@rulestrue}
\newif\ifold@style
\newif\ifstd@shape
\newif\ifstd@space
\newif\ifstd@field
\newif\ifstd@paris
\newif\ifstd@dimen
\newif\ifstd@skips
\newif\ifstd@mgpar
\newif\ifstd@lists
\newif\ifstd@label
\newif\ifstd@items
\newif\ifstd@notes
\newif\ifstd@rules
\ProcessOptions\relax
\expandafter\ifx\csname XeTeXrevision\endcsname\relax
 \def\UTFencname{T1}
 \expandafter\ifx\csname directlua\endcsname\relax
  \RequirePackage[utf8]{inputenc}
 \else
  \RequirePackage[utf8]{luainputenc}
 \fi
 \DeclareUnicodeCharacter{00A0}{\nobreak\space}
\else
 \def\UTFencname{EU1}
 \RequirePackage{xunicode}
 \catcode`^^a0=\active\def^^a0{\nobreak\space}
\fi
\RequirePackage{fixltx2e}
\RequirePackage[\UTFencname]{fontenc}
\RequirePackage{lmodern}
\DeclareRobustCommand\rmosfamily{\fontfamily\rmosdefault\selectfont}
\DeclareRobustCommand\sfosfamily{\fontfamily\sfosdefault\selectfont}
\DeclareRobustCommand\ttosfamily{\fontfamily\ttosdefault\selectfont}
\DeclareTextFontCommand{\textrmos}{\rmosfamily}
\DeclareTextFontCommand{\textsfos}{\sfosfamily}
\DeclareTextFontCommand{\textttos}{\ttosfamily}
\edef\rmosdefault{\rmdefault os}
\edef\sfosdefault{\sfdefault os}
\edef\ttosdefault{\ttdefault os}
\ifold@style
 \renewcommand\rmdefault{\rmosdefault}
 \renewcommand\sfdefault{\sfosdefault}
 \renewcommand\ttdefault{\ttosdefault}
\fi
\ifstd@shape\else
 \def\sidefault{\scdefault\sldefault}
 \DeclareRobustCommand{\sishape}
 {\not@math@alphabet\sishape\relax\fontshape\sidefault\selectfont}
 \DeclareTextFontCommand{\textsi}{\sishape}
 \newcommand*{\ch@mrg}[3]{\edef\@tempa{#1}\edef\@tempb{#2}%
  \ifx\f@shape\@tempb
   \ifcsname\f@encoding/\f@family/\f@series/#3\endcsname
    \edef\@tempa{#3}\fi\fi\fontshape{\@tempa}\selectfont}
 \DeclareRobustCommand{\itshape}
 {\not@math@alphabet\itshape\mathit
  \ch@mrg\itdefault\scdefault\sidefault}
 \DeclareRobustCommand{\slshape}
 {\not@math@alphabet\slshape\relax
  \ch@mrg\sldefault\scdefault\sidefault}
 \DeclareRobustCommand{\scshape}
 {\not@math@alphabet\scshape\relax
  \ch@mrg\scdefault\itdefault\sidefault}
 \DeclareRobustCommand{\upshape}
 {\not@math@alphabet\upshape\relax
  \ch@mrg\updefault\sidefault\scdefault}
\fi
\expandafter\ifx\csname load@lang\endcsname\relax
\else
 \expandafter\ifx\csname XeTeXrevision\endcsname\relax
  \RequirePackage[\load@lang]{babel}
  \expandafter\ifx\csname frenchbsetup\endcsname\relax
  \else
   \frenchbsetup{og=«,fg=»,StandardLayout=true,FrenchSuperscripts=false}
   \ifstd@space\else\frenchbsetup{ThinColonSpace=true}\fi
  \fi
 \else
  \RequirePackage{etoolbox}
  \RequirePackage{xkeyval}
  \RequirePackage{makecmds}
  \let\old@Require\RequirePackage
  \let\old@ExplsyntaxOn\ExplSyntaxOn\let\old@ExplsyntaxOff\ExplSyntaxOff
  \def\new@Require#1[#2]{}\def\new@ExplSyntax{}
  \let\RequirePackage\new@Require
  \let\ExplSyntaxOn\new@ExplSyntax\let\ExplSyntaxOff\new@ExplSyntax
  \old@Require[nolocalmarks]{polyglossia}[2010/07/27]
  \let\RequirePackage\old@Require
  \let\ExplSyntaxOn\old@ExplSyntaxOn\let\ExplSyntaxOff\old@ExplSyntaxOff
  \setdefaultlanguage{\load@lang}
  \def\ch@thn{\nobreak\hskip.166667em plus.083333em minus\z@\relax}
  \def\ch@gll{\nobreak\hskip.25em plus\z@ minus.083333em\relax}
  \ifstd@space\def\ch@thk{\nobreak\space\relax}
  \else\let\ch@thk\ch@thn\fi
  \addto\french@punctuation
  {\XeTeXinterchartoks\z@\french@punctthin={\ch@thn}
   \XeTeXinterchartoks\z@\french@punctthick={\ch@thk}
   \XeTeXinterchartoks255\french@punctthin={\xpg@unskip\ch@thn}
   \XeTeXinterchartoks255\french@punctthick={\xpg@unskip\ch@thk}
   \XeTeXinterchartoks\french@punctguillstart\z@={\ch@gll}
   \XeTeXinterchartoks\z@\french@punctguillend={\ch@gll}
   \XeTeXinterchartoks\french@punctguillstart255={\ch@gll\xpg@nospace}
   \XeTeXinterchartoks255\french@punctguillend={\xpg@unskip\ch@gll}
   \XeTeXinterchartoks\french@punctguillend\french@punctthin={\ch@thn}
   \XeTeXinterchartoks\french@punctguillend\french@punctthick={\ch@thk}
   \XeTeXinterchartoks\french@punctthin\french@punctguillend={\ch@gll}
   \XeTeXinterchartoks\french@punctthick\french@punctguillend={\ch@gll}}
\fi
 \addto\captionsgerman
 {\def\ccname{\emph{Vert.}}\def\enclname{\emph{Anl.}}}
 \addto\captionsfrench
 {\def\ccname{\emph{Cop.}}\def\enclname{\emph{Ann.}}}
 \addto\captionsitalian
 {\def\ccname{\emph{e\,p.c.}}\def\enclname{\emph{All.}}}
 \addto\captionsenglish
 {\def\ccname{\emph{c.c.}}\def\enclname{\emph{encl.}}}
\fi
\expandafter\ifx\csname load@href\endcsname\relax
\else
 \ifstd@field\def\opts@href{colorlinks,unicode}\else
  \def\opts@href{colorlinks,unicode,pdfusetitle,pdfsubject=\jobname}
 \fi
 \RequirePackage[\opts@href,\load@href]{hyperref}[2010/09/17]
 \pdfstringdefDisableCommands{\def\up{}}
 \pdfstringdefDisableCommands{\def\no{}}
 \pdfstringdefDisableCommands{\def\bsc{}}
 \pdfstringdefDisableCommands{\def\ier{}}
 \pdfstringdefDisableCommands{\def\kern{}}
\fi
\@ifclassloaded{chletter}
{\@ifclasslater{chletter}{2010/01/01}
 {\newcommand\conc[2][l]%
  {\noindent\if#1l\hskip-\oddsidemargin\fi{\bfseries\object{#2}}}
  \let\letterindent\parindent\let\letterskip\parskip
  \let\fromheight\titletopheight
  \let\toheight\titlemidheight
  \let\stockheight\titlebotheight}{}}
{\ifstd@paris\else
  \parindent18\p@\parskip9\p@
 \fi
 \ifstd@dimen\else
  \topmargin\z@\headsep24\p@
  \footskip36\p@\footnotesep12\p@\skip\footins12\p@
  \textwidth\paperwidth\advance\textwidth-11895300sp
  \textheight\paperheight\advance\textheight-14093310sp
  \oddsidemargin36\p@\evensidemargin\z@
 \fi
 \ifstd@mgpar\else
  \marginparwidth48\p@\marginparsep6\p@\marginparpush6\p@
 \fi
 \ifstd@label\else
  \labelsep6\p@\labelwidth12\p@\leftmargin18\p@
 \fi}
\ifstd@lists\else
 \topsep\z@ plus1\p@\partopsep\smallskipamount
 \itemsep\z@ plus1\p@\parsep\smallskipamount
\fi
\ifstd@items\else
 \def\@listI{}\let\@listi\@listI\let\@listii\@listi
 \let\@listiii\@listi\let\@listiv\@listi
 \def\labelitemi{\textbf{\textendash}}\let\labelitemii\labelitemi
 \let\labelitemiii\labelitemi\let\labelitemiv\labelitemi
\fi
\ifstd@skips\else
 \advance\parskip by\z@ plus3\p@\ifdim\parskip>3\p@ minus3\p@\fi
 \advance\skip\footins by\z@ plus6\p@
\fi
\ifstd@notes\else
 \let\std@footnotemark\@footnotemark
 \def\alt@footnotemark{\unskip\thinspace\std@footnotemark}
 \let\@footnotemark\alt@footnotemark
 \long\def\@makefntext#1{\settowidth\@tempdima{.\kern\marginparsep}
 \parindent\z@
 \advance\parindent-\@tempdima
 \rule\z@\footnotesep
 \llap{\@thefnmark}.\kern\marginparsep#1}
\fi
\ifstd@rules\else
 \arrayrulewidth.25\p@
 \fboxrule.25\p@
 \def\underbar#1{\vtop{\hbox{#1}\hrule\@height.25\p@\kern-.25\p@}}
 \def\footnoterule%
 {\kern-3\p@\hrule\@width.4\columnwidth\@height.25\p@\kern2.75\p@}
\fi
\def\titlename{\@title}
\def\authorname{\@author}
\def\datename{\@date}
\let\up\textsuperscript
\def\no{n\up{o}\,}
\def\bsc#1{\hyphenpenalty\@M\textsc{#1}}
\def\ier{\up{er}}
\endinput
%%
%% End of file `chextras.sty'.
