Skip to content

Instantly share code, notes, and snippets.

@chikoski
Created January 20, 2009 06:13
Show Gist options
  • Save chikoski/49360 to your computer and use it in GitHub Desktop.
Save chikoski/49360 to your computer and use it in GitHub Desktop.
\typeout{`atode.sty by chikoski@gmail.com'}
\def\@atode@list{}
\newcounter{c@atode}
\setcounter{c@atode}{0}
\def\supplement#1#2{
\ifx#1\empty\edef#1{#2}
\else\edef#1{#1,#2}
\fi
}
\def\atode#1{
\supplement\@atode@list{#1}
\addtocounter{c@atode}{1}
(\textbf{あとでやる[\arabic{c@atode}]{#1}})
}
\def\outputlist#1{
\begin{enumerate}
\@for\linebuf:=#1\do{
\item \linebuf
}
\end{enumerate}
}
\AtEndDocument{
\ifnum\value{c@atode}>0
\section*{あとでやる : \arabic{c@atode}個}
\outputlist\@atode@list
\fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment