A new LaTeX command: \anum{} and a comment

dp dp at dettodet.de
Thu Dec 27 11:09:14 CET 2001



% ----------------------------------------------------------------
% LaTeX Paper *** anum.tex *** 2001-12-27
% Detlef Pauly, dp at dettodet.de
% **** -----------------------------------------------------------

\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage[colorlinks=true]{hyperref}

\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{.1in}
\setlength{\topmargin}{-.5in}
\setlength{\textheight}{8.9in}

% A new command: \anum{} -----------------------------------------

%with amsmath-package:
\newcommand{\anum}[1]
  {\text{\htmladdnormallink{A{#1}}
  {http://www.research.att.com:80/cgi-bin/access.cgi/as/njas/sequences/eisA.cgi?Anum=#1}}}

%without amsmath-package:
%\newcommand{\anum}[1]
%  {\htmladdnormallink{A{#1}}
%  {http://www.research.att.com:80/cgi-bin/access.cgi/as/njas/sequences/eisA.cgi?Anum=#1}}

% ----------------------------------------------------------------

\begin{document}

\textbf{A new \LaTeX\ command.}
\vspace{20pt}
\par\par
Hi seqfans.
\par
For example, to make a link to \anum{006125} use the small command

\begin{verbatim}
\anum{006125}
\end{verbatim}

instead of

\begin{footnotesize}
\begin{verbatim}
\htmladdnormallink{A006125}
{http://www.research.att.com:80/cgi-bin/access.cgi/as/njas/sequences/eisA.cgi?Anum=006125}
\end{verbatim}
\end{footnotesize}

\par
Type 13 chars instead of 117 chars. Yep, $117 /13 = 9$.
\par

% ----------------------------------------------------------------

\vspace{30pt}
A new comment on \anum{006059} (Connected labeled topologies with $n$ points)
and \anum{001035} (Partially ordered sets [``posets''] with $n$ labeled elements
[or labeled acyclic transitive digraphs]):
%A006059(n)=n*A001035(n-1), n>0

\begin{equation*}
  \anum{006059}(n) = n \, \anum{001035}(n-1) \quad ,\text{for } n>0
\end{equation*}

\begin{small}
\anum{006059} 1, 1, 2, 9, 76, 1095, 25386, 910161, 49038872, 3885510411, \par
445110425110, 72721717736613, 16755380125270788, 5393244363726095487, 2405910197342218830914,
1477264863856923105482745, 1241074736327051013648799024, 1419169006353332682835352361843
\end{small}

% ----------------------------------------------------------------

\begin{table}[hb]
  \caption{Test}
  \label{tb:Test}
  \tabcolsep 4pt
  \renewcommand {\arraystretch} {1.3}
  \begin{small}
    \begin{tabular}{cccccccccc}
      \anum{000016} & \anum{000088} & \anum{000171} & \anum{000273} & \anum{000568} &
      \anum{000595} & \anum{000666} & \anum{000717} & \anum{000831} & \anum{001174} \\
      \anum{001187} & \anum{001349} & \anum{001437} & \anum{002499} & \anum{002500} &
      \anum{002785} & \anum{003027} & \anum{003030} & \anum{003085} & \anum{003086} \\
    \end{tabular}
  \end{small}
\end{table}

\par
Any comments/modifications?

\vspace{30pt}
ATB,
\par
DET \href{mailto:dp at dettodet.de}{dp at dettodet.de}

\end{document}

% ----------------------------------------------------------------






More information about the SeqFan mailing list