TeXでとある魔術のロゴ作成

これも昔やってたお遊びの一つ. 二年前位に作って, ニコ動に動画で投稿したけど, あまりに酷くて(動画の編集技術が無かった. あの失敗から, ニコ技にうpするには動画編集の力がいるんだなぁと痛感したものです. )直ぐに消した. ソースコードが出てきたので貼っておきます.

\documentclass{article}
\usepackage[dvipdfm]{graphicx}
\usepackage[usenames]{color}
\pagestyle{empty}
\makeatletter
\def\toaru{\@ifnextchar[{\@toaru}{\@toaru[black]}}
\def\@toaru[#1]#2#3#4#5#6#7#8{\leavevmode\kern-0.0em\lower-0.5em\hbox{%
\kern-0.00em\lower-0.00em\hbox{\resizebox{1.00em}{!}{\textcolor{#1}{}}}%
\kern-0.28em\lower-0.00em\hbox{\resizebox{0.70em}{!}{\textcolor{#1}{}}}%
\kern-0.19em\lower-0.23em\hbox{\resizebox{0.60em}{!}{\textcolor{#1}{}}}%
\kern-0.12em\lower-0.05em\hbox{\resizebox{0.85em}{!}{\textcolor{#1}{#2}}}%
\kern-0.10em\lower-0.04em\hbox{\resizebox{0.75em}{!}{\textcolor{#1}{#3}}}%
\kern-0.07em\lower-0.00em\hbox{\resizebox{0.80em}{!}{\textcolor{#1}{}}}%
\kern-3.40em\lower0.90em\hbox{\resizebox{0.90em}{!}{\setlength{\fboxsep}{0.02em}\colorbox{#1}{\textcolor{white}{#4}}}}%
\kern-0.0em\lower0.80em\hbox{\resizebox{0.70em}{!}{\textcolor{#1}{#5}}}%
\kern-0.0em\lower0.80em\hbox{\resizebox{0.70em}{!}{\textcolor{#1}{#6}}}%
\kern-0.0em\lower0.90em\hbox{\resizebox{0.90em}{!}{\textcolor{#1}{#7}}}%
\kern-2.2em\lower1.05em\hbox{\resizebox{!}{0.14em}{\warituke{7em}{\bf \textcolor{#1}{#8}}}}%
\kern1.2em\lower0em\hbox{}}}%
\newcommand{\warituke}[2]{\makebox[#1][s]{#2}}
\makeatother

\begin{document}
\centering
\resizebox{40em}{!}{\toaru[RoyalBlue]魔術禁書目録{イ ン デ ッ ク ス}}\newpage
\end{document}

kernとlowerで位置をあわせてresizeboxで大きさを変えてるだけですね. 簡単です.

勿論, 色んな文字で作れます. 角カッコの中で色を指定する感じ. それがなかったら黒が用いられる. 小さい「ッ」がある奴は, スペースを入れたほうが詰まってなくてきれいだと思う.

\begin{document}
\resizebox{40em}{!}{\toaru[RoyalBlue]魔術禁書目録{イ ン デ ッ ク ス}}

\resizebox{40em}{!}{\toaru[YellowOrange]科学超電磁砲{レールガン}}

\resizebox{40em}{!}{\toaru[Magenta]変態風紀委員{ジ ャ ッ ジ メ ン ト}}

\resizebox{40em}{!}{\toaru[Orange]ゆいうんたん{桜高軽音部♪}}

\resizebox{40em}{!}{\toaru[Gray]視力矯正器具{コンタクト}}

\resizebox{40em}{!}{\toaru 大人日経新聞{ステータス}}
\end{document}



文章の中に埋め込むことも出来ます.

私は\toaru[RoyalBlue]魔術禁書目録{イ ン デ ッ ク ス}\toaru[Orange]科学超電磁砲{レールガン}が大好きです。

TeXは思ったことが自由にできるから楽しいです(吐血

本当なら, 公式のロゴとフォントも合わせてやったらいいのだけど, うんぬんかんぬん. デザイナーの方がrefineしていただけるとありがたい. ただ, 公式のロゴとぴったり合わせると, 他の文字でやった時に変に見えるので注意. あらゆる文字でも美しくなる調整は難しい. ホンキでやろうと思ったら, それぞれの文字の幅からkernやらの数字を変え(げほげほ




※このエントリーは, 昔のプロジェクトの掘り返し記事の一つです. 大体掘り返し記事はこれで終わりです. あと2つくらい大きなプロジェクトが残ってるんですが, 書くのが面倒なので記事にするか迷ってます.