diff options
author | Karl Berry <karl@freefriends.org> | 2015-07-20 22:09:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-07-20 22:09:40 +0000 |
commit | e6ddecda975d353fc842ec9a616498a1ef02cca5 (patch) | |
tree | 20592eb088970fea70ff07b82b977778151c73c0 /Master/texmf-dist/tex/latex/skrapport/skrapport.cls | |
parent | 18c85ced132ad148f981205f76f18aac1792be5e (diff) |
skrapport (20jul15)
git-svn-id: svn://tug.org/texlive/trunk@37911 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/skrapport/skrapport.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/skrapport/skrapport.cls | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/skrapport/skrapport.cls b/Master/texmf-dist/tex/latex/skrapport/skrapport.cls index 9684dc50f07..6dec7cc8e1b 100644 --- a/Master/texmf-dist/tex/latex/skrapport/skrapport.cls +++ b/Master/texmf-dist/tex/latex/skrapport/skrapport.cls @@ -1,7 +1,7 @@ %% This is file `skrapport.cls', generated from `skrapport.tex' (key `class'). %% skrapport Skånings rapportklass %% -%% Copyright (C) 2012-2013 by Simon Sigurdhsson <sigurdhsson@gmail.com> +%% Copyright (C) 2012-2015 by Simon Sigurdhsson <sigurdhsson@gmail.com> %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -29,7 +29,7 @@ \RequirePackage{expl3,l3keys2e,xparse,xstring,etoolbox} \ProvidesExplClass{skrapport}% - {2013/09/09}{0.12c}{stylish report document class} + {2015/07/17}{0.12e}{stylish report document class} \msg_new:nnnn{skrapport}{option-deprecated}{Option~`#1'~deprecated!} {Please~use~`#2'~instead.} \msg_new:nnnn{skrapport}{option-no-effect}{Option~`#1'~deprecated!} @@ -80,7 +80,7 @@ \bool_new:N\g__skrapport_has_polyglossia_bool \int_new:N\g__skrapport_grid_lines_int \cs_new:Npn\__skrapport_setup_paper:n#1{ - \str_case:nnn{#1}{ + \str_case:nnF{#1}{ {a4}{ \PassOptionsToPackage{paper=A4}{typearea} \int_gset:Nn\g__skrapport_grid_lines_int{40} @@ -96,7 +96,7 @@ \AtBeginDocument{\recalctypearea} } \cs_new:Npn\__skrapport_setup_ptsize:n#1{ - \str_case:nnn{#1}{ + \str_case:nnF{#1}{ {10pt}{\int_const:Nn\c__skrapport_ptsize_int{0}} {11pt}{\int_const:Nn\c__skrapport_ptsize_int{1}} {12pt}{\int_const:Nn\c__skrapport_ptsize_int{2}} @@ -270,7 +270,7 @@ \file_input:n{fleqn.clo} } \cs_new:Npn\__skrapport_setup_titles:n#1{ - \str_case:nnn{#1}{ + \str_case:nnF{#1}{ {rm}{\cs_new_protected:Nn\__skrapport_title_style:{\rmfamily}} {it}{\cs_new_protected:Nn\__skrapport_title_style:{\itshape}} {bf}{\cs_new_protected:Nn\__skrapport_title_style:{\bfseries}} @@ -281,7 +281,7 @@ } } \cs_new:Npn\__skrapport_setup_lang:n#1{ - \str_case:nnn{#1}{ + \str_case:nnF{#1}{ {sv}{ \bool_if:NTF\g__skrapport_has_polyglossia_bool{ \setmainlanguage{swedish} @@ -324,12 +324,6 @@ \cs_gset:Nn\__skrapport_etc_word:{\emph{etc.}} \cs_gset:Nn\__skrapport_cf_word:{jfr.} \cs_gset:Nn\__skrapport_viz_word:{dvs.} - \cs_gset:Npn\contentsname{Innehåll} - \cs_gset:Npn\refname{Referenser} - \cs_gset:Npn\figurename{Figur} - \cs_gset:Npn\tablename{Tabell} - \cs_gset:Npn\appendixname{Bilaga} - \cs_gset:Npn\abstractname{Sammanfattning} } \cs_gset:Npn\dateswedish{ \cs_gset:Npn\today @@ -344,12 +338,6 @@ \cs_gset:Nn\__skrapport_etc_word:{\emph{etc.}} \cs_gset:Nn\__skrapport_cf_word:{\emph{cf.}} \cs_gset:Nn\__skrapport_viz_word:{\emph{viz.}} - \cs_gset:Npn\contentsname{Contents} - \cs_gset:Npn\refname{References} - \cs_gset:Npn\figurename{Figurr} - \cs_gset:Npn\tablename{Table} - \cs_gset:Npn\appendixname{Appendix} - \cs_gset:Npn\abstractname{Abstract} } \cs_gset:Npn\datebritish{ \cs_gset:Npn\today @@ -364,12 +352,6 @@ \cs_gset:Nn\__skrapport_etc_word:{usw.} \cs_gset:Nn\__skrapport_cf_word:{vgl.} \cs_gset:Nn\__skrapport_viz_word:{\emph{viz.}} - \cs_gset:Npn\contentsname{Inhaltsverzeichnis} - \cs_gset:Npn\refname{Literatur} - \cs_gset:Npn\figurename{Abbildung} - \cs_gset:Npn\tablename{Tabelle} - \cs_gset:Npn\appendixname{Anhang} - \cs_gset:Npn\abstractname{Zusammenfassung} } \cs_gset:Npn\datengerman{ \cs_gset:Npn\today @@ -379,7 +361,7 @@ \cs_new:Npn\__skrapport_setup_font:n#1{ \PassOptionsToPackage{intlimits}{amsmath} \PassOptionsToPackage{full}{textcomp} - \str_case:nnn{#1}{ + \str_case:nnF{#1}{ {none}{ \bool_if:nT{\luatex_if_engine_p: || \xetex_if_engine_p:}{ \RequirePackage[quiet]{fontspec} @@ -1536,6 +1518,11 @@ \DeclareDocumentCommand\viz{}{ \__skrapport_peek_punctuation:x{\__skrapport_viz_word:} } +\DeclareDocumentCommand\dash{}{ + \cs_if_exist_use:NT\texorpdfstring + {\unskip\nobreak\thinspace\textemdash\thinspace\ignorespaces}{{ - }} +} +\cs_if_exist_use:NT\DeclareUnicodeCharacter{{2014}{\dash}} \bool_if:NT\g__skrapport_color_bool{ \apptocmd{\bfseries} {\color{skrapport@boldcolor}}{} |