ALESS用TeXテンプレート

大学のALESSって授業の宿題のフォーマットが決まっているので色々調べてテンプレートを作ってみたので無意味に公開。欲しい人がいるとはあまり思わないが欲しければどうぞ。

タイプセットするとこんな感じになる。

%#!platex
\documentclass{jsarticle}
\input{include_aless}

%タイトル部設定ここから
\date{October 24, 2008} % ここを削除すると今日の日付が使われる
\title{This is The Title} % タイトルは論文全体の要約にすべきらしい
\numberofweek{2} % 何週目の宿題か
%設定ここまで

\begin{document}
\maketitle
\doublespace{}

Here you put your main text

test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test

\singlespace{}
\vfill
\begin{flushright}
 Reviewed by TAKAHASHI Taro
\end{flushright}
\smallskip
\begin{flushleft}
\noindent
References:\\

 $\cdot$ なんとかかんとか入門 [Introduction of nantoqa quantoqa]\\% [ ]内にタイトルの英訳を書く
\hfill http://www.example.com/\\
 $\cdot$ なんとかかんとか入門 [Introduction of nantoqa quantoqa]\\
\hfill http://www.example.com/\\
\end{flushleft}

\end{document}

んで以下をinclude_aless.texとして本文の.texファイルと同じディレクトリに置いとく。#####ではさまれた部分は適宜変更するべし。

\usepackage{setspace}
\usepackage[dviout]{graphicx}
\makeatletter
\renewcommand{\today}{%
   {\ifcase\month \or
      January\or February\or March\or
      April\or   May\or      June\or
      July\or    August\or   September\or
      October\or November\or December\fi}\space%
   {\ifnum \day < 10  0\the\day%
    \else \the\day%
    \fi}, \the\year%
}
\newcommand{\numberofweek}[1]{\gdef\@numberofweek{#1}}
\renewcommand{\maketitle}{
\begin{flushright}
%####################
MYOUJI Namae (123456A)\\
ALESS (Wednesday 1) Dr. Johnson\\
%####################
Homework \@numberofweek\\
\@date{}\\
\bigskip
\end{flushright}
\begin{center}
\LARGE{}
\@title\\
\end{center}
\bigskip
\par
}
\makeatother

タイトル以外のところももうちょいスマートにしたいところ。参考文献機能とか使ったことなかったから全然知らないからなあ。