I am trying to write my first ugly .cls for LaTeX related to the following problem which Mike and me are trying to solve (we will post soon the link to Github for people who are interested to work with us). I have two baby questions which probably can be easily answered by reading the documentation but I would like to get at least some push.
First question is about multicolumn environment. This snippet of code
\RequirePackage{multicol}
% Two-column lists (itemize, description, etc.)
\SetEnumitemKey{twocol}{
itemsep=1\itemsep,
parsep=1\parsep,
before=\raggedcolumns\begin{multicols}{2},
after=\end{multicols}}
is just not working for me. The second question is how I can pass options to hyperref
\RequirePackage{color}
%\RequirePackage{hyperref}
%\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{hyperref}
%\ProcessOptions\relax
%\hypersetup{colorlinks}
%\definecolor{darkred}{rgb}{0.5,0,0}
%\definecolor{darkgreen}{rgb}{0,0.5,0}
%\definecolor{darkblue}{rgb}{0,0,0.5}
%\hypersetup{colorlinks,
%linkcolor=darkblue,
%filecolor=darkgreen,
%urlcolor=darkred,
%citecolor=darkblue}}
\RequirePackage{hyperref}
I made some experiments based on the answers found on TeX.SE but I was not able to change the default behavior.
News: The further development of Syllabus-Generator is moved to GitHub for people who are curious and have any desire to help at least with advices. If you would like a write access please send me an e-mail.
\DeclareOptionbit seems to be completely out of place. However it's impossible to give advice with such limited snippets of code. – egreg May 26 '12 at 18:08hyperrefwhich will pass all options to the package. – Marco Daniel May 28 '12 at 10:29