<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%%
%% This is the original source file advi.sty
%%
%% Package `commandline' to use with LaTeX 2e
%% Copyright Didier Remy.
%% All rights reserved.

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{argv}
         [2001/29/08 v0.40 Argv Package for parsing command line options]

%%

%% Identification
%% Preliminary declarations

\RequirePackage {keyval}

%% Options

\newif \ifrun@argv
\DeclareOption {run}{\run@argvtrue}
\ProcessOptions

%% More Declarations

\def \defargv {\define@key{argv}}
\def \runargv
  {\@ifundefined{argv}{}{\def \do {\setkeys{argv}}\expandafter \do
  \expandafter {\argv}}}

%% Some predefine keys

\defargv {use}{\AtEndOfPackage{\RequirePackage{#1}}}
\defargv {driver}{\rundriver {#1}}
\def \rundriver #1{\@ifundefined {argv@#1@}
   {\PackageWarning {Argv}{Undefined driver #1}{}}
   {\@nameuse {argv@#1@}}}
\def \do #1{
  \expandafter \def \csname argv@#1@\endcsname {%
    \PassOptionsToPackage{ignore}{advi}%
    \PassOptionsToPackage{#1}{hyperref}%
    \PassOptionsToPackage{#1}{graphicx}%
  }}
\do {dvipdfm}
\do {dvips}
\do {pdftex}
\expandafter \def \csname argv@ps2pdf@\endcsname 
  {\PassOptionsToPackage{ignore}{advi}%
   \PassOptionsToPackage{ps2pdf}{hyperref}}

\let \do \relax

\ifrun@argv
\runargv
\fi

\endinput




  
</pre></body></html>