Skip to content

Instantly share code, notes, and snippets.

@ubnt-intrepid
Last active August 29, 2015 14:08
Show Gist options
  • Save ubnt-intrepid/1203daca2c069de34dcf to your computer and use it in GitHub Desktop.
Save ubnt-intrepid/1203daca2c069de34dcf to your computer and use it in GitHub Desktop.
% -*- coding: shift_jis -*-
%
% グループゼミ資料など小文書用のクラスファイル
% Created by : Yusuke Sasaki <y_sasaki@nuem.nagoya-u.ac.jp>
%
%
\typeout{Class File: 'groupseminor' <22 Aug 2014>. Ver1.0}
%
% jsarticle.clsの読込み
\DeclareOption*{\PassOptionsToClass{\CurrenyOption}{jsarticle}}
\ProcessOptions\relax
\LoadClass[10pt,a4paper,onecolumn,notitlepage,oneside]{jsarticle}
%
% 各種スタイルファイルの読込み
% よく使われるものに関しては,はじめから読み込んでおく
\RequirePackage{fancyhdr} % ヘッダの装飾
\RequirePackage{amsmath} % AMS-TeXによって作成された数式コマンド,環境定義
\RequirePackage{amssymb} % 同上
\RequirePackage{bm} % 数式モードにおける太字コマンド
\RequirePackage[dvipdfmx]{color} % 色の表示関連
\RequirePackage[dvipdfmx]{graphicx} % 図の挿入
\RequirePackage{tikz} % 図形描画関連
\RequirePackage{wrapfig} % 図の周りに文章を回り込ませるためのコマンド定義
% パラメータの設定
%\setlength{\hoffset}{-.29in}
%\setlength{\voffset}{-.37in}
\setlength{\oddsidemargin}{-10mm}
\setlength{\topmargin}{-10mm}
%\setlength{\headheight}{15pt}
%\setlength{\headsep}{13pt}
%\setlength{\textheight}{33\baselineskip}
\setlength{\textheight}{245mm}
\setlength{\textwidth}{\fullwidth}
\setlength{\textwidth}{180mm}
%\addtolength{\textheight}{\topskip}
%\setlength{\marginparsep}{0mm}
%\setlength{\marginparwidth}{0mm}
%\setlength{\footskip}{11pt}
%
% 図・表のキャプション表示に関する設定
\renewcommand{\figurename}{Fig.}
\renewcommand{\tablename}{Tab.}
\newcommand{\Figure}[1]{\figurename{\ref{#1}}}
\newcommand{\Table} [1]{\tablename {\ref{#1}}}
% 表と図の数合わせ
\makeatletter
\newcommand{\figcaption}[1]{\def\@captype{figure}\caption{#1}}
\newcommand{\tblcaption}[1]{\def\@captype{table}\caption{#1}}
%
%
% ヘッダ・フッタの整形(fancyhdr使用)
\pagestyle{fancy}
\lhead{\@leftheader}
\rhead{\@rightheader}
% ヘッダ情報を設定するコマンド
\newcommand{\leftheader} [1]{\def\@leftheader{#1}}
\newcommand{\rightheader}[1]{\def\@rightheader{#1}}
% デフォルトのマクロ定義
\leftheader {グループゼミ資料}
\rightheader{No. 1}
%
\renewcommand{\maketitle}{%
\begin{center}{\Large \@title}\end{center}%
\begin{flushright}\@author\\ \@date\end{flushright}%
\hrulefill\\}
%
\makeatother
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment