\ProvidesPackage{extractable}
%
% This package should be used (via \RequirePackage) by each 
% tex-type extractable style.  You don't want to use it for
% list-type extractables, though that probably wouldn't kill you.


\RequirePackage{fancyhdr}
% Put off invoking the fancy headings until after the preamble is done
% with frobbing dimensions, so that it knows how wide to make things.
\AtBeginDocument{\pagestyle{fancy}}
%
% put the owner at the top of each page
\newdef\baselabel{\me{}}% \me defaults to saying ``Unowned'' until set by \name
\fancyhead[L]{\baselabel}
\fancyhead[R]{Page \thepage}
\geometry{includehead}
% kill footers, we have page number in the headers
\fancyfoot{}
\geometry{ignorefoot}


% This switch will be thrown in each character packet's extracted stuff
% for the extractable after the \extract ones have been done,
% just before doing the \secret ones.  Start a new page to put the
% secret ones on and label each page as secret.
%
\newdef\dosecretextracts{\newpage \lhead{\textbf{\large SECRET~}~\baselabel}}


% The macros used in a charsheet to cause stuff to be extracted
% should not themselves appear in the extracted stuff.
%
\newdef\nopenope{\@die{\string\extract, \string\mention, \string\secret:
	can only be used in charsheets}}
\newdef\extract{\nopenope}
\newdef\mention{\nopenope}
\newdef\secret{\nopenope}

% \notes are ok, their contents should just be ignored
%
\newdef\note[1]{}
