making links to A-numbers

N. J. A. Sloane njas at research.att.com
Mon Dec 31 19:26:08 CET 2001


Thanks to Detlef Pauly for that new latex command
for making an A-number into a link.

I have two shell scripts that do similar things.
One makes A-numbers in a latex file into links,
the other does the same thing for html files.

Here they are (two separate files)

NJAS

--------------------------
# addlinks_tex.sh
# adds links to OEIS from A-numbers in a latex file,
# for use by the hyperef package
# revised Dec 9 2000

# check # of argts
if [ "$#" -eq 0 ]
then
echo "Incorrect no of argts. usage: addlinks_tex.sh file >out"
echo "Converts every sequence number A012345 etc into a link to the OEIS."
echo "Latex version"
exit 1
fi

cat $* | awk '
{ gsub( "A[0-9][0-9][0-9][0-9][0-9][0-9]",
"\\htmladdnormallink{&}{http:\/\/www.research.att.com\/cgi-bin\/access.cgi\/as\/njas\/sequences\/eisA.cgi?Anum=&}" )
print 
}

 '

----------------------------
# addlinks_html.sh
# adds links to OEIS from A-numbers in an html file
# revised Dec 9 2000

# check # of argts
if [ "$#" -eq 0 ]
then
echo "Incorrect no of argts. usage: addlinks_html.sh file >out"
echo "Converts every sequence number A012345 etc into a link to the OEIS."
echo "html version"
exit 1
fi

cat $* | awk '
{ gsub( "A[0-9][0-9][0-9][0-9][0-9][0-9]",
"<a href=\"http:\/\/www.research.att.com\/cgi-bin\/access.cgi\/as\/njas\/sequences\/eisA.cgi?Anum=&\">&<\/a>" )
print 
}
 '



MIME-Version: 1.0







More information about the SeqFan mailing list