Skip to content

Instantly share code, notes, and snippets.

@zk-phi
Last active March 24, 2022 10:05
Show Gist options
  • Save zk-phi/0cb6752e3509abdb109b to your computer and use it in GitHub Desktop.
Save zk-phi/0cb6752e3509abdb109b to your computer and use it in GitHub Desktop.

履歴書LaTeXクラスファイル 理系新卒採用向け?パッチ

新卒採用向けに、あまり PR に使えない枠を縮小・削除し、その分「学生時代 に打ち込んだこと」などの項目を広く取るように変更するパッチです。

顔写真も添付できるようになります (あまりよくない作法らしいですが)。

いちいち押印するのが面倒なので「印」の欄は削除しました (調べてみると市 販の履歴書にもそういうものがあるようです)。

追加されるコマンド

\顔写真{<path>}
顔写真を指定します。3cm × 2cm に縮小されるの で、画像は事前に3:2にトリミングしておきます。
\専門科目{...}
「得意科目」に相当します。見出しが「専攻・研究テー マ」に変更されています。
\学生時代{...}
学業やその他学生時代の活動成果を記入します。

削除されるコマンド

  • \得意科目{...}
  • \本人希望{...}

その他の変更

  • 自己 PR 系の枠のフォントサイズを調整
  • 「印」の欄を削除

パッチ

http://bm.hus.osaka-u.ac.jp/~yusuke/archive/rireki/ から必要なファイルをダウンロードして

patch -u

で rireki.cls にパッチを当ててください。

--- rireki.cls.old  Mon Apr 27 14:57:42 2015
+++ rireki.cls  Mon Apr 27 12:54:38 2015
@@ -4,6 +4,8 @@
 %% Copyright (C) 2002 MIYAMOTO Yusuke
 %% All rights reserved.

+\usepackage{graphicx}
+
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{rireki}
 \ProcessOptions
@@ -102,8 +104,7 @@
 \MoveTo(0,0)
 \Put(0,0){\Large\bfseries\kanjiskip=5mm\historyname}
 \Put(100,2){\makebox(0,5)[rc]{\scriptsize\@date 現在}}
-\Put(105,31){\dashbox{0.5}(28,38)[c]{\scriptsize %
-  \shortstack[c]{写真を貼る位置 \\ 縦 36 〜 40 mm\\ 横 24 〜 30 mm}}}
+\Put(105,31){\@photo}
 \@tempcnta=\number\paperheight
 \divide\@tempcnta by 2
 \advance\@tempcnta by -\number\topmargin
@@ -129,8 +130,10 @@
 \Put(42,24){\makebox(42,16)[l]{\LARGE\kanjiskip=3mm\hspace{12pt}\@forename}}
 \Put(42,7){\makebox(42,5)[l]{\scriptsize\hspace{12pt}\kana@forename}}
 \Put(87,2){\line(0,-1){22}}
-\Put(88,24){\makebox(12,16)[tl]{\tiny 印}}
-\Put(88,7){\makebox(12,5)[c]{\scriptsize\sexname\hskip 1ex\@sex}}
+%% \Put(88,24){\makebox(12,16)[tl]{\tiny 印}}
+%% \Put(88,7){\makebox(12,5)[c]{\scriptsize\sexname\hskip 1ex\@sex}}
+\Put(88,24){\makebox(12,16)[c]{\@sex}}
+\Put(88,7){\makebox(12,5)[c]{\scriptsize\sexname}}

 \Put(0,34){\makebox(100,10)[l]{\scriptsize\hspace{1ex}\birthdayname}}
 \Put(0,34){\makebox(100,10)[r]{\@birthday\hskip 2em
@@ -191,8 +194,6 @@
 \Put(0,224){\line(1,0){151}}

 \Put(0,75){\line(1,0){151}}
-\Put(0,164){\line(1,0){151}}
-\Put(0,194){\line(1,0){151}}
 \Put(0,203){\line(1,0){151}}

 %% 免許・資格
@@ -208,27 +209,25 @@
 \MultiPut(0,5)(0,7){10}{\line(1,0){151}}
 \@starttoc{lol} % list of licenses

-%% 得意科目
-\Put(75,75){\line(0,-1){56}}
-\Put(1,103){\makebox(75,27)[lt]{\scriptsize\subjectname}}
-\Put(1,103){\makebox(75,24){\@subject}}
+%% 専門科目・趣味
+\Put(75,75){\line(0,-1){14}}
+\Put(1,89){\makebox(75,13)[lt]{\scriptsize\subjectname}}
+\Put(1,89){\makebox(75,10){\small\@subject}}
+\Put(76,89){\makebox(75,13)[lt]{\scriptsize\hobbyname}}
+\Put(76,89){\makebox(75,10){\small\@hobby}}
+\Put(0,89){\line(1,0){151}}
 %% 自己分析
-\Put(76,103){\makebox(75,27)[lt]{\scriptsize\selfintroname}}
-\Put(76,103){\makebox(75,24){\@selfintro}}
-\Put(0,103){\line(1,0){151}}
-%% 趣味
-\Put(1,131){\makebox(75,27)[lt]{\scriptsize\hobbyname}}
-\Put(1,131){\makebox(75,24){\@hobby}}
-%% 特技
-\Put(76,131){\makebox(75,27)[lt]{\scriptsize\profname}}
-\Put(76,131){\makebox(75,24){\@prof}}
-\Put(0,131){\line(1,0){151}}
-%% 動機
-\Put(1,162){\makebox(150,30)[lt]{\scriptsize\motivename}}
-\Put(1,162){\makebox(150,26){\@motive}}
-%% 本人希望
-\Put(1,192){\makebox(150,27)[tl]{\scriptsize\wishname}}
-\Put(1,192){\makebox(150,24){\@wish}}
+\Put(1,124){\makebox(150,34)[lt]{\scriptsize\selfintroname}}
+\Put(1,124){\makebox(150,31){\small\@selfintro}}
+\Put(0,124){\line(1,0){151}}
+%% 打ち込んだこと
+\Put(1,159){\makebox(150,34)[lt]{\scriptsize\uchikominame}}
+\Put(1,159){\makebox(150,31){\small\@uchikomi}}
+\Put(0,159){\line(1,0){151}}
+%% 志望動機
+\Put(1,194){\makebox(150,34)[tl]{\scriptsize\motivename}}
+\Put(1,194){\makebox(150,31){\small\@motive}}
+\Put(0,194){\line(1,0){151}}
 %% 通勤時間
 \Put(1,203){\makebox(47,8)[lt]{\scriptsize\commutename}}
 \Put(1,203){\makebox(45,8)[r]{\@commute}}
@@ -270,7 +269,7 @@

 %%再生紙
 \newcommand{\RecycledPaper}{%
-  \AtSecondPage{\Put(150,225){\makebox(0,0)[rt]{\scriptsize
+  \AtSecondPage{\Put(150,225){\makebox(0,0)[rt]{\scriptsize
     この用紙には再生紙を利用しています。}}}
 }

@@ -385,23 +384,19 @@

 %% 自己分析
 \newcommand{\@selfintro}\@empty
-\newcommand{\SelfIntro}[1]{\long\def\@selfintro{\parbox{72mm}{#1}}}
+\newcommand{\SelfIntro}[1]{\long\def\@selfintro{\parbox{145mm}{#1}}}

 %% 趣味
 \newcommand{\@hobby}\@empty
 \newcommand{\Hobby}[1]{\long\def\@hobby{\parbox{72mm}{#1}}}

-%% 特技
-\newcommand{\@prof}\@empty
-\newcommand{\Prof}[1]{\long\def\@prof{\parbox{72mm}{#1}}}
-
 %% 志望動機
 \newcommand{\@motive}\@empty
 \newcommand{\Motive}[1]{\long\def\@motive{\parbox{145mm}{#1}}}

-%% 本人希望
-\newcommand{\@wish}\@empty
-\newcommand{\Wish}[1]{\long\def\@wish{\parbox{145mm}{#1}}}
+%% 学生時代に打ち込んだこと
+\newcommand{\@uchikomi}\@empty
+\newcommand{\Uchikomi}[1]{\long\def\@uchikomi{\parbox{145mm}{#1}}}

 %% 通勤時間
 \newcommand{\@commute}\@empty
@@ -446,6 +441,12 @@
 \newcommand{\GuardianPhone}[1]{%
   \def\@guardianphone{(電話: \texttt{#1})}}

+%% 写真
+\newcommand{\@photo}{\dashbox{0.5}(28,38)[c]{\scriptsize %
+    \shortstack[c]{写真を貼る位置 \\ 縦 36 〜 40 mm\\ 横 24 〜 30 mm}}}
+\newcommand{\Photo}[1]{%
+  \renewcommand{\@photo}{\includegraphics[height=4cm,width=3cm,bb=0 0 703 937]{#1}}}
+
 %% リスト出力用コマンド
 %% #1: y 座標
 %% #2: 年
@@ -507,14 +508,12 @@
 \let\ 資格=\License\relax
 \let\ 免許=\License\relax
 \let\Licence=\License\relax
-\let\ 得意科目=\Subject\relax
+\let\ 専門科目=\Subject\relax
 \let\ 自己分析=\SelfIntro\relax
 \let\ 趣味=\Hobby\relax
-\let\ 特技=\Prof\relax
 \let\ 動機=\Motive\relax
 \let\ 志望動機=\Motive\relax
-\let\ 希望=\Wish\relax
-\let\ 本人希望=\Wish\relax
+\let\ 学生時代=\Uchikomi\relax
 \let\ 通勤時間=\Commute\relax
 \let\ 扶養家族=\Dependents\relax
 \let\ 配偶者=\Mate\relax
@@ -523,7 +522,8 @@
 \let\ 保護者郵便番号 \GuardianPostalCode\relax
 \let\ 保護者住所=\GuardianAddress\relax
 \let\ 保護者電話番号=\GuardianPhone\relax
-\let\ 学歴リストの最後で改行=\BackgroundLastNewLine
+\let\ 学歴リストの最後で改行=\BackgroundLastNewLine\relax
+\let\ 顔写真=\Photo

 %% 項目名
 \newcommand{\historyname}{履歴書}
@@ -536,13 +536,12 @@
 \newcommand{\sexname}{性別}
 \newcommand{\backgroundname}{学歴・職歴}
 \newcommand{\licensename}{免許・資格}
-\newcommand{\subjectname}{得意な科目・分野}
+\newcommand{\subjectname}{専攻・研究テーマ}
 \newcommand{\selfintroname}{自己分析(性格・特徴・ PR など)}
 \newcommand{\hobbyname}{趣味・スポーツ・サークルなど}
 \newcommand{\profname}{特技など}
 \newcommand{\motivename}{志望の動機}
-\newcommand{\wishname}{本人希望記入欄(特に給料・職種・勤務時間・勤務地・
-  その他についての希望などがあれば記入)}
+\newcommand{\uchikominame}{学生時代に打ち込んだこと}
 \newcommand{\guardianname}{保護者 (本人が未成年の場合のみ記入)}
 \newcommand{\commutename}{通勤時間}
 \newcommand{\dependentsname}{扶養家族数}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment