[texhax] Include online files when compiling
Pavel Minev Penev
pavpen at uclink.berkeley.edu
Fri Nov 7 05:51:55 CET 2003
On Thu, Nov 06, 2003 at 04:30:11PM +0200, David Vannucci wrote:
> Hello All,
>
> I have got a little further thanks to Robin,
>
> For my windows install,
> Firstly I enabled the write18 command in \texmf\miktex\config\miktex.ini
> Secondly I downloaded a copy of wget for windows from
> http://www.fdisk.com/doslynx wget153.zip
> Then I made a command as suggested,
> \newcommand{\httpinput}[2]{\write18{wget #1#2} \write18{rename #2 #2.tex}
> \input{#2.tex}}
>
> and instead of
> > > \include{http://wordsmith.org/awad/archives/0103}
> now can use
> \httpinput{http://wordsmith.org/awad/archives/}{0103}
>
> The problems:
> Firstly #2.tex does not exist before texing, input files are checked to
> exist before comiling is done, so I have to precreate the file, not nice.
>
> Secondly the file has to be renamed if no extension exists hence the reason
> for rename #2 #2.tex
>
> Thirdly the file could have non latex characters like & instead of \&
> so instead of a normal input I used a verbatim type input
> \begin{alltt}\input{#2.tex}\end{alltt}, not what I had hoped for but getting
> there.
>
> This created another problem,
> Fourthly the text may be too long for one line and should be wrapped, but
> since I am using verbatim it does not get wrapped
>
> Any comments/ideas?
Use an ".aux"-like scheme to solve problem 1 (and possibly 2).
--
Pav
,.,
,``:'',
Gain your human right of {o ! o} My GPG/PGP key is now available at
privacy: use cryptography! ] -+- [ x-hkp://search.keyserver.net:11371.
\ ! /
`-'
`shell$ gpg --keyserver x-hkp://search.keyserver.net:11371 --recv-key 164C028F`
http://www.againsttcpa.com/index.shtml
More information about the texhax
mailing list