Re: overcite

名前: 清水
日時: 2004-03-14 22:09:52
IPアドレス: 219.178.88.*

>>27150 頂いたサンプルでは確かに[]が表示されるのですが、下記のように既存のプリアンブルに挟むとうまくいかなくなるのです。4行目です。プリアンブルは書籍スタイルでWebで提供されているものです。 --- ここから --- % 書名:基本レイアウト Ver3.5 % 2003/06/01 T.Usui, T.Toya, Y.Harada \NeedsTeXFormat{pLaTeX2e} \makeatletter \def\@cite#1#2{$^{[\mbox{#1\if@tempswa , #2\fi}]}$} %overcite \newdimen\Jpt\Jpt1.052632pt \newdimen\JQ \JQ 0.263173mm \DeclareFontShape{JY1}{mc}{m}{n}{<-> s * [0.9873043]min10}{} \DeclareFontShape{JY1}{mc}{bx}{n}{<-> ssub * gt/m/n}{} \DeclareFontShape{JY1}{mc}{m}{it}{<-> ssub * mc/m/n}{} \DeclareFontShape{JY1}{mc}{bx}{it}{<->ssub * gt/m/n}{} \DeclareFontShape{JY1}{gt}{m}{n}{<-> s * [0.9873043]goth10}{} \DeclareFontShape{JY1}{gt}{bx}{n}{<-> ssub * gt/m/n}{} \DeclareFontShape{JY1}{gt}{m}{it}{<-> ssub * gt/m/n}{} \DeclareFontShape{JY1}{gt}{bx}{it}{<-> ssub * gt/m/n}{} \normalfont \renewcommand{\normalsize}{% \@setfontsize\normalsize{9.5\Jpt}{18} \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ \abovedisplayshortskip \z@ \@plus3\p@ \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ \belowdisplayskip \abovedisplayskip \let\@listi\@listI} \normalsize \setcounter{@paper}{2}% \setlength\paperheight{210mm}% \setlength\paperwidth{148mm}% \setlength{\headheight}{5mm} \setlength{\headsep}{6mm} \setlength{\topskip}{1\Cht} \setlength{\footskip}{11mm} \setlength{\textwidth}{33zw} \oddsidemargin=\paperwidth \advance\oddsidemargin-\textwidth \oddsidemargin=.5\oddsidemargin \advance\oddsidemargin-1in \evensidemargin=\oddsidemargin \setlength{\textheight}{28\baselineskip} \advance\textheight\topskip \topmargin=\paperheight \advance\topmargin-\textheight \topmargin=.5\topmargin \advance\topmargin-\headheight \advance\topmargin-\headsep \advance\topmargin-1in \def\@nombrefont#1#2{% \gdef\num@font{\fontsize{#1}{\z@}\selectfont#2}% \pagestyle{headings}} \@nombrefont{8}{\bfseries\itshape} \def\@hasirafont#1#2{% \gdef\head@font{\fontsize{#1}{\z@}\selectfont#2}% \pagestyle{headings}} \@hasirafont{8\Jpt}{} \def\ps@headings{% \let\ps@jpl@in\ps@plain \let\@mkboth=\markboth \def\@oddfoot{}% \let\@oddfoot\@empty\let\@evenfoot\@empty \def\@oddhead{% \underline{\hbox to \textwidth {\reset@font\hfil{\head@font\rightmark}\hfil\llap{\num@font\thepage}}}}% \def\@evenhead{% \underline{\hbox to \textwidth {\reset@font\rlap{\num@font\thepage}\hfil{\head@font\leftmark}\hfil}}}% \let\@mkboth\markboth \def\chaptermark##1{\markboth{% \ifnum \c@secnumdepth >\m@ne \if@mainmatter\@chapapp\thechapter\@chappos\hskip1zw\fi \fi##1}{}}% \def\sectionmark##1{\markright{% \ifnum\c@secnumdepth >\z@\thesection\hskip1zw\fi##1}}} \def\ps@plain{\let\@mkboth\@gobbletwo \let\ps@jpl@in\ps@plain \def\@oddfoot{}% \def\@evenfoot{}% \def\@oddhead{\reset@font\small\hfil{\num@font\thepage}}% \def\@evenhead{\reset@font\small{\num@font\thepage}\hfil}% } \let\ps@jpl@in\ps@plain \pagestyle{headings} \def\ps@empty{\let\ps@jpl@in\ps@empty \let\@mkboth\@gobbletwo\let\@oddhead\@empty\let\@oddfoot\@empty \let\@evenhead\@empty\let\@evenfoot\@empty } \def\@@afterheadings#1{% \@nobreaktrue \everypar{% \if@nobreak\@nobreakfalse\clubpenalty#1\relax% \else\clubpenalty \@clubpenalty\everypar{}% \fi}} \def\ZEN#1{\leavevmode\hb@xt@1zw{\hss#1\hss}} \def\HAN#1{\leavevmode\hb@xt@.5zw{\hss#1\hss}} \def\@ZENKAK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6}}\or\ZEN{\HAN{4\kern-.5zw7}}\or \ZEN{\HAN{4\kern-.5zw8}}\or\ZEN{\HAN{4\kern-.5zw9}}\or \ZEN{\HAN{5\kern-.5zw0}}\fi} % パターンE \def\@makechapterhead#1{% \hbox{}{\parindent\z@ \reset@font\fontsize{14\Jpt}{\Cvs}\bfseries \ifnum \c@secnumdepth >\m@ne \noindent \fboxsep0pt \colorbox[gray]{.3}{% \vbox to 50mm{\hsize=\textwidth\vskip10mm% \textcolor[named]{White}{\hfil\fontsize{14\Jpt}{\Cvs}\bfseries \@chapapp\thechapter\@chappos% \hfil \\ \vskip-2mm {\hfil\fontsize{20\Jpt}{\Cvs}\bfseries#1\hfil}\vfil}}} \fi}} \renewcommand{\section}{\par \addvspace{1.5\Cvs} \secdef\@section\@ssection} \def\@section[#1]#2{% \ifnum \c@secnumdepth >\z@\relax \refstepcounter{section}% \fi \begingroup \@tempdima=\textwidth\advance\@tempdima-22.5mm \reset@font \fontsize{12\Jpt}{\Cvs}\bfseries \ifnum \c@secnumdepth >\z@\relax \hbox{% \textcolor[gray]{.3}{\vrule width5mm}\hskip1mm \textcolor[gray]{.5}{\vrule width2mm}\hskip1mm \textcolor[gray]{.7}{\vrule width1mm}\hskip1mm \vbox to 10mm{\hsize=\@tempdima \color[gray]{.7}% \hrule height.5mm \vfill \hbox to\@tempdima{\hfil\textcolor{black} {\thesection\hskip1zw{\fontsize{12\Jpt}{\Cvs}\selectfont#2}} \hfil}% \vfill \hrule height.5mm}% \hskip-.25mm% \llap{\raisebox{9.5mm}{\textcolor[gray]{.7} {\vrule height.5mm width\@tempdima}}} \textcolor[gray]{.7}{\vrule width1mm}\hskip1mm \textcolor[gray]{.5}{\vrule width2mm}\hskip1mm \textcolor[gray]{.3}{\vrule width5mm}}\par \nointerlineskip\vskip6mm \sectionmark{#1}\par \fi \endgroup \ifnum \c@secnumdepth >\z@\relax \addcontentsline{toc}{section}{\thesection\kern1zw#1}% \else \addcontentsline{toc}{section}{#1}% \fi \nobreak\vskip.5\Cvs\@@afterheadings{300}} \renewcommand{\thesection}{\thechapter.\@arabic\c@section} \renewcommand{\thefigure}{ \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure} \renewcommand{\thetable}{ \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table} \let\figure@org\figure \let\endfigure@org\endfigure \renewenvironment{figure}[1][htbp] {\figure@org[#1] \fontsize{8\Jpt}{\Cvs}\selectfont} {\endfigure@org} \let\table@org\table \let\endtable@org\endtable \renewenvironment{table}[1][htbp] {\table@org[#1] \fontsize{8\Jpt}{\Cvs}\selectfont} {\endtable@org} \setlength\abovecaptionskip{10\p@} \setlength\belowcaptionskip{2mm} \long\def\@makecaption#1#2{% \vskip\abovecaptionskip\fontsize{8\Jpt}{.8\Cvs}\selectfont \setbox0\hbox{\bfseries#1\kern1zw}% \setbox1\hbox{#2} \@tempdima\hsize \advance\@tempdima by-\wd0 \ifdim\wd1>\@tempdima \leftskip4mm \begin{minipage}{.8\linewidth} \leavevmode\box0 \vtop{\hsize=\@tempdima #2}\par \end{minipage} \else \@minipagefalse \hbox to\hsize{\hfil\box0\box1\hfil}% \fi \vskip\belowcaptionskip} \renewcommand{\thefootnote}{*\arabic{footnote}} \@addtoreset{footnote}{chapter} \renewcommand\@makefntext[1]{% \begingroup \setbox0\hbox{\@makefnmark} \leftskip2zw \hskip-\wd0 \leavevmode\@makefnmark{#1}\par \endgroup} \renewcommand{\footnoterule}{ \kern-3\p@ \hrule width \columnwidth \kern 2.6\p@} \def\@eqnnum{{\normalfont \normalcolor (\theequation)}} %%% %%% 囲み %%% \newif\ifvsplit@continue \newdimen\囲み幅 \newdimen\中身幅 \newenvironment{囲み}{\par \fontsize{9\Jpt}{12}\selectfont \setbox0\vbox\bgroup\vskip2mm\hsize\中身幅\linewidth\hsize} {\egroup \parindent\z@ \splittopskip\topskip\splitmaxdepth\maxdepth \clubpenalty\@M\baselineskip\z@\lineskiplimit\p@\lineskip\z@ \vfuzz\maxdimen \vsplit@continuetrue \addvspace{\Cvs \@plus.1\Cvs \@minus-.1\Cvs}% \hfil\vbox{\hrule width\囲み幅}\par \nobreak \loop \setbox1=\vsplit0 to \z@ \setbox1=\vbox{\unvbox1}% \ifvoid0 \vsplit@continuefalse \fi \@tempdima\ht\strutbox\ifdim\ht1>\@tempdima\@tempdima\ht1\fi \@tempdimb\dp\strutbox\ifdim\dp1>\@tempdimb\@tempdimb\dp1\fi \hfil\hb@xt@\囲み幅{% \vrule height\@tempdima depth\@tempdimb \hfil\hb@xt@\中身幅{\box1\hfil}\hfil \vrule}\par \ifvsplit@continue \repeat \nobreak \hfil\hb@xt@\囲み幅{% \vrule height2mm depth0mm \hfil\hb@xt@\中身幅{\hfil}\hfil \vrule}\par \hfil\vbox{\hrule width\囲み幅}\par \addvspace{\Cvs \@plus.1\Cvs \@minus-.1\Cvs}} \囲み幅.9\textwidth \中身幅.9\textwidth\advance\中身幅-2zw %%% %%% 丸囲み %%% \newdimen\丸囲み幅 \newdimen\丸囲み中身幅 \newenvironment{丸囲み}{\par \fontsize{8\Jpt}{11}\selectfont \setbox0\vbox\bgroup\hsize\丸囲み中身幅\linewidth\hsize} {\egroup \splittopskip\topskip\splitmaxdepth\maxdepth \clubpenalty\@M\baselineskip\z@\lineskiplimit\z@\lineskip\z@ \vfuzz\maxdimen \vsplit@continuetrue \addvspace{\Cvs \@plus.1\Cvs \@minus-.1\Cvs}% \moveleft6pt\vbox{\hfil\hb@xt@\丸囲み中身幅{% \raisebox{-6pt}{\@oval(12,12)[tl]}% \hrulefill% \raisebox{-6pt}{\@oval(12,12)[tr]}}} \vskip-2.5mm \nobreak \loop \setbox1=\vsplit0 to \z@ \setbox1=\vbox{\unvbox1}% \ifvoid0 \vsplit@continuefalse \fi \@tempdima\ht\strutbox \@tempdimb\dp\strutbox \ifdim\ht1>\@tempdima\@tempdima\ht1\fi \ifdim\dp1>\@tempdimb\@tempdimb\dp1\advance\@tempdimb1mm\fi \丸囲み幅.9\textwidth\advance\丸囲み幅-6pt \hfil\hb@xt@\丸囲み幅{\hskip-2mm% \vrule height\@tempdima depth\@tempdimb \hfil\hb@xt@\丸囲み中身幅{\box1\hfil}\hfil \vrule\hfil}\par \ifvsplit@continue \repeat \nobreak \moveleft6pt\vbox{\hfil\hb@xt@\丸囲み中身幅{% \raisebox{6pt}{\@oval(12,12)[bl]}% \hrulefill% \raisebox{6pt}{\@oval(12,12)[br]}}} \vskip-2mm \addvspace{\Cvs \@plus.1\Cvs \@minus-.1\Cvs}} \丸囲み幅.9\textwidth \丸囲み中身幅.9\textwidth\advance\丸囲み中身幅-2zw %%% %%% 影付き囲み %%% %\definecolor{grayIII}{cmyk}{0,0,0,0.3} %\definecolor{grayV}{cmyk}{0,0,0,0.5} \definecolor{grayVII}{cmyk}{0,0,0,0.7} \newif\iffirstline \newdimen\影付き囲み幅 \newdimen\影付き中身幅 \newdimen\影幅\影幅2mm \newenvironment{影付き囲み}{\par \fontsize{9\Jpt}{12}\selectfont \setbox0\vbox\bgroup\vskip2mm\hsize\影付き中身幅\linewidth\hsize} {\egroup \splittopskip\topskip\splitmaxdepth\maxdepth \clubpenalty\@M\baselineskip\z@\lineskiplimit\z@\lineskip\z@ \vfuzz\maxdimen \vsplit@continuetrue \firstlinetrue \offinterlineskip \影付き囲み幅.9\textwidth\advance\影付き囲み幅-\影幅 \moveright20pt\vbox{\hsize\影付き囲み幅{\hrule\hfil}} \nobreak \loop \setbox1=\vsplit0 to \z@ \setbox1=\vbox{\unvbox1}% \ifvoid0 \vsplit@continuefalse \fi \@tempdima\ht\strutbox \@tempdimb\dp\strutbox \ifdim\ht1>\@tempdima\@tempdima\ht1\fi \ifdim\dp1>\@tempdimb\@tempdimb\dp1\advance\@tempdimb1mm\fi \影付き囲み幅.9\textwidth \hfil\hb@xt@\影付き囲み幅{% \vrule height\@tempdima depth\@tempdimb \hss\hb@xt@\影付き中身幅{\box1}\hss \vrule \iffirstline \global\firstlinefalse \raisebox{-\影幅}[\z@][\z@]{% \@tempdimc\@tempdimb\advance\@tempdimc-\影幅\color{grayVII}% 影の濃度 \vrule height\@tempdima depth\@tempdimc width\影幅}% \else \color{grayVII}\vrule width\影幅% 影の濃度 \fi }\par \ifvsplit@continue \repeat \nointerlineskip \nobreak \hfil\hb@xt@\影付き囲み幅{% \vrule height2mm depth0.4pt \hfil\hb@xt@\影付き中身幅{\hfil}\hskip12.5pt\hfil \vrule\hfil \hb@xt@2mm{\color{grayVII}\vrule height2mm depth0.4pt width\影幅}}\par \影付き囲み幅.9\textwidth\advance\影付き囲み幅-\影幅 \moveright20pt\vbox{\hsize\影付き囲み幅{\hrule\hfil}} \nointerlineskip \moveright1mm\vbox{\hfil\hb@xt@\影付き囲み幅{ \color{grayVII}\leaders\hrule height\影幅\hfill}}\par \addvspace{\Cvs \@plus.1\Cvs \@minus-.1\Cvs}} \影付き囲み幅.9\textwidth \影付き中身幅.9\textwidth\advance\影付き中身幅-2zw %% \definecolor{grayII}{cmyk}{0,0,0,0.2} \newenvironment{網掛け}[1][]{\par \ifdim\lastskip=-2.5mm\vskip2.5mm\fi % 網伏せが連続した時の対策 \setbox0\vbox\bgroup \abovedisplayskip\z@\belowdisplayskip\z@ \abovedisplayshortskip\z@\belowdisplayshortskip\z@ \topsep\z@\partopsep\z@\parsep\z@} {\egroup \setbox0=\vbox{\unvbox0}% \begin{center} \fboxsep\z@ \colorbox{grayII}{% 濃度 \vbox{\hsize\linewidth \vskip1mm \hb@xt@\linewidth{\hss\box0\hss}% \vskip1mm }% }% \end{center}% \vskip-2.5mm } \makeatother

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます)