名前: 道産子 日時: 2006-11-27 16:52:46 IPアドレス: 61.214.217.*
こんにちは,道産子です. jbook.cls で 章 (\chapter) と節 (\section) の体裁を以下の様に再定義して 使用していました.これをそのまま jsbook.cls に変更すると,章と節の体裁は問 題無く表示されたのですが,\section の後の文章で,行頭の鈎括弧"「"が全角2分 下がりになってしまいます.行頭の鈎括弧"「"が常に全角下がりとする為には, jsbook.cls の \section の定義のどの部分を再定義すれば良いのでしょうか. 宣しくお願い致します. %\documentclass[a4j,12pt]{jbook} \documentclass[a4j,12pt]{jsbook} % load packages \usepackage{type1cm} \usepackage[dvipdfm]{color} \makeatletter \def\@@afterheadings#1{% \@nobreaktrue \everypar{% \if@nobreak\@nobreakfalse\clubpenalty#1\relax% \else\clubpenalty \@clubpenalty\everypar{}% \fi}} \def\kintou#1#2{\hbox to#1{% \kanjiskip=0pt plus 1fill minus 1fill \xkanjiskip=\kanjiskip #2}} \def\fivekintou#1{% \settowidth{\@tempdima}{#1}% \@fivekintou{\@tempdima}{#1}} \def\@fivekintou#1#2{% \ifdim#1<1.2zw \hbox{#2}% \else\ifdim#1<2.4zw \kintou{4zw}{#2}% \else\ifdim#1<3.4zw \kintou{5zw}{#2}% \else\ifdim#1<4.4zw \kintou{5zw}{#2}% \else \hbox{#2}% \fi\fi\fi\fi} \def\@makechapterhead#1{% \hbox{}{\parindent\z@% \raggedright% \reset@font\fontsize{16pt}{\Cvs}\bfseries% \ifnum \c@secnumdepth >\m@ne% \vbox{% \hrule height.7pt depth 0pt \vskip2zh \hbox to \linewidth{% \textcolor[gray]{.7}{{\vrule height1zw depth 1mm width .40\linewidth}}% \hfil\@chapapp\thechapter\@chappos\hfil% \textcolor[gray]{.7}{{\vrule height1zw depth 1mm width .40\linewidth}}% }% \vskip1mm% }% \fi% \vbox{% \vskip1zh% \hbox to \linewidth{\hfil\fontsize{20pt}{\Cvs}% \bfseries\fivekintou{#1}\hfil}}}% \textcolor[gray]{.3}{\hrule height0pt depth 1zh}% \vskip2\Cvs} \def\@makeschapterhead#1{\hbox{}% \vskip2\Cvs {\parindent\z@% \centering% \reset@font\fontsize{16pt}{\Cvs}\bfseries% \setlength\@tempdima{\linewidth}% \vtop{\hsize\@tempdima#1}}% \vskip2\Cvs} \renewcommand{\section}{\par\vskip 1.5\Cvs \@plus.5\Cdp \@minus.2\Cdp% \secdef\@section\@ssection% } \def\@section[#1]#2{% \ifnum \c@secnumdepth >\z@\relax% \refstepcounter{section}% \fi% \begingroup% \reset@font% \fontsize{12pt}{\Cvs}\bfseries% \@tempdima\linewidth% \ifnum \c@secnumdepth >\z@\relax% \setbox0\hbox{\S\,\thesection\hskip1zw}% \advance\@tempdima-\wd0% \noindent\box0% \fi% \parbox[t]{\@tempdima}{% #2~\xleaders\hb@xt@2mm{\hss% \textcolor[gray]{.5}{\vrule height2mm depth-1mm width1mm}% \hss}\hfill\kern0pt}% \settowidth{\@tempdima}{#1}% \ifdim\@tempdima<1.2zw \sectionmark{\hbox{#1}}% \else\ifdim\@tempdima<2.4zw \sectionmark{\kintou{5zw}{#1}}% \else\ifdim\@tempdima<3.4zw \sectionmark{\kintou{5zw}{#1}}% \else\ifdim\@tempdima<4.4zw \sectionmark{\kintou{5zw}{#1}}% \else\sectionmark{\hbox{#1}}% \fi\fi\fi\fi\par% \endgroup% \ifnum \c@secnumdepth >\z@\relax% \addcontentsline{toc}{section}{\S\,\thesection\kern1zw#1}% \else% \addcontentsline{toc}{section}{#1}% \fi% \nobreak\vskip.5\Cvs\@@afterheadings{300}} \renewcommand{\thesection}{\thechapter.\@arabic\c@section} % redefine \section* \def\@ssection#1{% \begingroup% \centering\reset@font\fontsize{12pt}{\Cvs}\bfseries#1% \vskip.5\Cvs\@plus.3\Cdp% \endgroup% \markright{\hbox{#1}}% } \makeatother \begin{document} \chapter{章タイトル} □□□□□□□□□□□□□□□□□□□□□□□□□□□□ □□□□□□□□□□□□□□□□□□□□□ 「□□□」,□ \section{節タイトル} □□□□□□□□□□□□□□□□□□□□□□□□□□□□ □□□□□□□□□□□□□□□□□□□□□ 「□□□」,□ \end{document} -- 道産子
この書き込みへの返事: