大久保弘崇
TeX
最終更新:
hirotakaohkubo
-
view
TeXに関するメモ
Haskellを手間をかけて美しく組版
多少手間をかけて、Haskellコードをきれいに組版するためのスタイル。
GitHubで触れるようにしました。
https://github.com/gotoki-no-joe/haskell-style
オリジナルは
http://www.cse.unsw.edu.au/~chak/haskell/haskell-style/
にあるものです。
多少のコマンド追加と日本語マニュアルを付けました。
(memo/TeX/haskell.styから移動)
https://github.com/gotoki-no-joe/haskell-style
オリジナルは
http://www.cse.unsw.edu.au/~chak/haskell/haskell-style/
にあるものです。
多少のコマンド追加と日本語マニュアルを付けました。
(memo/TeX/haskell.styから移動)
Haskellを手間をかけないでそれなりに組版
listings.styとhaskell.tex
okumacroとascmacの競合
\usepackage{okumacro}
\newcommand\Keytop[1]{{%
\def\oval{\ltxoval}\def\@oval{\ltx@oval}\keytop{#1}}}%
\usepackage{itembbox}% okumacro より後で読み込むこと jsbookで本文横幅が制限される
%「書籍では1行の長さが全角40文字を超えないようにしています。」を停止
\setlength{\textwidth}{\fullwidth}
\setlength{\evensidemargin}{\oddsidemargin} 日本語のしおりを付加
% 日本語のしおりを付加する
\usepackage[setpagesize=false,dvipdfmx,bookmarks=true,bookmarksnumbered=true,bookmarkstype=toc]{hyperref}
\ifnum 42146=\euc"A4A2 \AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}\else
\AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}\fi
コメント
添付ファイル