diff options
author | 2017-05-13 14:41:43 +0200 | |
---|---|---|
committer | 2017-05-13 14:41:43 +0200 | |
commit | ba572aacb1787b55468f2d8f854bbb076c46eb5c (patch) | |
tree | 79a6df7f93d54779739ae56e635ec3b4dc33b1d0 /decisions | |
parent | Add experimental cls file for single summary (diff) | |
download | council-ba572aacb1787b55468f2d8f854bbb076c46eb5c.tar.gz council-ba572aacb1787b55468f2d8f854bbb076c46eb5c.tar.bz2 council-ba572aacb1787b55468f2d8f854bbb076c46eb5c.zip |
Improve compatibility with TeX4ht.
Load hyperref in document class hook, after tex4ht is set up.
Use T1 font encoding, otherwise the underscore package won't work.
Diffstat (limited to 'decisions')
-rw-r--r-- | decisions/councilsummary.cls | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/decisions/councilsummary.cls b/decisions/councilsummary.cls index 7899334..2604e45 100644 --- a/decisions/councilsummary.cls +++ b/decisions/councilsummary.cls @@ -4,11 +4,15 @@ \LoadClass[a4,twoside]{article} \RequirePackage{datetime} -\RequirePackage{hyperref} \RequirePackage{textcomp} \RequirePackage{color} \RequirePackage{underscore} \RequirePackage[utf8]{inputenc} +\RequirePackage[T1]{fontenc} + +\g@addto@macro\@documentclasshook{ + \RequirePackage{hyperref} +} \newcommand{\summary}[3]{ \begin{center}\LARGE \bf @@ -97,12 +101,14 @@ summary}. \definecolor{darkblue}{rgb}{0,0,0.7} \definecolor{darkred}{rgb}{0.7,0,0} -\hypersetup{% -colorlinks=true, -linkcolor={darkblue}, -citecolor={darkblue}, -urlcolor={darkblue}, -pdftitle={Council meeting summary}, -} +\g@addto@macro\@documentclasshook{ + \hypersetup{% + colorlinks=true, + linkcolor={darkblue}, + citecolor={darkblue}, + urlcolor={darkblue}, + pdftitle={Council meeting summary}, + } +} \setlength{\parindent}{0cm} |