Created
September 10, 2010 23:24
-
-
Save spockz/574550 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\define@key{binksetup}{title} [A BINK software Document]{\def\documenttitle{#1}} | |
\define@key{binksetup}{author}[BINK software B.V.] {\def\documentauthor{#1}} | |
\define@key{binksetup}{date} [\today] {\def\documentdate{#1}} | |
\define@key{binksetup}{name} {\def\documentname{#1}} | |
\newcommand{\binksetup}[1]{% | |
\setkeys{binksetup}{#1} | |
\title{\documenttitle} | |
\author{\documentauthor} | |
\date{\documentdate} | |
\hypersetup{ | |
pdftitle=\documenttitle, | |
pdfauthor=\documentauthor | |
} | |
} | |
% Usage | |
\documentclass[a4paper]{article} | |
\usepackage{binksoftware} | |
\binksetup{title = {HHAAHARequirements for and intended usage of a new CMS for BINK software}, | |
author = {BINK software B.V.}, | |
date = 24nov } | |
\begin{document} | |
\maketitle | |
\tableofcontents | |
\section{Introduction} | |
... | |
% Error | |
! LaTeX Error: Missing \begin{document}. | |
See the LaTeX manual or LaTeX Companion for explanation. | |
Type H <return> for immediate help. | |
... | |
l.15 date = 24nov } | |
% And the error without the date in the binksetup call: | |
! Extra \fi. | |
\documentauthor ...K software B.V.}\relax \fi \fi | |
\fi \expandafter \KV@do \f... | |
l.33 \tableofcontents | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment