MSYSに関するメモ
2012/02/29
MSYSでのmake install
MinGWの環境に確実にmake installするには,次のようなオプション付きで実行しなければならない.make install prefix=/mingwこれ,重要です.
そして,wxWidgetsが正常にコンパイルできるのは,MSYS内だけであることも非常に注意すべき内容です.
make install prefix=/mingwこれ,重要です.
\makeatletter
\def\ps@fancy{%
%\def\sectionmark##1{\markboth{\ifnum \c@secnumdepth>\z@ \thesection\hskip 1em\relax \fi ##1}{}}%
\def\chaptermark##1{\markboth{\ifnum \c@secnumdepth>\z@ \thechapter\hskip 0.5em\relax \fi ##1}{}}%
%\def\subsectionmark##1{\markright {\ifnum \c@secnumdepth >\@ne \thesubsection\hskip 1em\relax \fi ##1}}%
\def\sectionmark##1{\markright {\ifnum \c@secnumdepth >\@ne \thesection\hskip 0.5em\relax \fi ##1}}%
\ps@@fancy
\gdef\ps@fancy{\@fancyplainfalse\ps@@fancy}%
\ifdim\headwidth<0sp
\global\advance\headwidth123456789sp\global\advance\headwidth\textwidth
\fi
}
\makeatother
for %%A in (%1) do gswin32c -q -sDEVICE=epswrite -sOutputFile="%%A".eps -dNOPAUSE -dBATCH -dSAFER -dEPSCrop "%%A"
\newcommand{\parcaption}[2]{
\addtocounter{figure}{1}
{\bf 図 \arabic{chapter}.\arabic{figure}}\parbox[t]{#1zw}{\rule{0pt}{2.5ex}
\quad#2\rule[-0.5zh]{0pt}{2.5ex}}
}
使い方は次のようになります.つまらないマクロですが,意外と便利です.
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=35zw,bb=0 0 1024 768]{figure/IMGP0000.jpg}
\parcaption{25}{ああああああああああああああああああああああああああああああああああああ}
\label{aaaaa}
\end{center}
\end{figure}
さすが自分で適当に書いたパッケージ.
\usepackage[hang,small,bf]{caption}
と書き,\captionの前に
\captionsetup{margin=90pt}
などと書けば完璧です.もっと早くに知っておくべきでした.Unparsed material at end of special ignored.これはdviをpdfに変換すると画像出力されないと同じ症状だが,同じ対策をしても改善しなかった.