"Fossies" - the Fresh Open Source Software Archive

Member "hevea-2.35/import.hva" (16 Jan 2021, 670 Bytes) of package /linux/www/hevea-2.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 \ProvidesPackage{import}
    2 \@primitives{import}
    3 \newcommand{\@imp@dir}{}
    4 \hva@newstack{@imp}
    5 \newcommand{\@imp@import}[3]
    6 {%
    7 \@imp@set{#2}%
    8 \@push@imp{\@imp@dir}%
    9 \renewcommand{\@imp@dir}{#2}%
   10 #1{#3}%
   11 \@pop@imp{\@imp@dir}%
   12 \@imp@set{\@imp@dir}%
   13 }
   14 \newcommand{\import}[2]{\@imp@import{\input}{#1}{#2}}
   15 \newcommand{\includefrom}[2]{\@imp@import{\include}{#1}{#2}}
   16 %%%%%%%%%%%%%%%%%%%%%%%%
   17 \newcommand{\@imp@sub}[3]
   18 {%
   19 \@push@imp{\@imp@dir}%
   20 \prim@def\@imp@dir{\@imp@dir{}#2}%
   21 \@imp@set{\@imp@dir}%
   22 #1{#3}%
   23 \@pop@imp{\@imp@dir}%
   24 \@imp@set{\@imp@dir}%
   25 }
   26 \newcommand{\subimport}[2]{\@imp@sub{\input}{#1}{#2}}
   27 \newcommand{\subincludefrom}[2]{\@imp@sub{\include}{#1}{#2}}
   28 %%%%
   29 
   30