Re: 2段組での脚注について

名前: しっぽ愛好家
日時: 2003-07-24 06:17:54
IPアドレス: 210.234.40.*

>>20426 >2段組の中で、左と右の両方に脚注をつける >というFormatで文書を作成することになっています。 LaTeX のデフォルトの 2 段組処理(i.e. \twocolumn (twocolumn クラスオプションでも同じこと))では, 左カラムで用いた脚注は左カラムの下部に出力され, 右カラムで用いた脚注は右カラムの下部に出力されますが… 一方, ``対訳'' の類の体裁で,原文に対する脚注と訳文に対する脚注を 左右別々に記述する という場合には multicolpar パッケージに下記の例にあるような調整を施して 用いるとどうでしょうか. \documentclass{jarticle} \usepackage{multicolpar} \makeatletter % %%% multicolpar パッケージの処理への脚注の導入 % \newbox\@footnotebox \newbox\@footnotebox@for@one@column \def\multicolumnparallelparagraphs#1#2{% \hbadness5000 \vbadness9999 \tolerance9999 \totalcolumns=#1 \separation=#2 \let\xpar=\par \vskip\parskip \columnsleft=#1\relax \hbox to\hsize\bgroup \let\par\nextmulticolumnparallelparagraph \dimen0=#2\advance\hsize-\columnsleft\dimen0 \advance\hsize\dimen0 \divide\hsize\columnsleft\relax \columnwidth\hsize \linewidth\hsize \let\@footnotetext\@multicolpar@footnotetext \global\setbox\@footnotebox\box\voidb@x \global\setbox\@footnotebox@for@one@column\box\voidb@x \vtop\bgroup} \def\endmulticolumnparallelparagraphs{% \egroup \advance\columnsleft-1 \ifnum\columnsleft>0 \hfil\vtop\bgroup\hbox to \hsize{}% \endmulticolumnparallelparagraphs \else \egroup \@add@footnotes@in@one@column@in@multicolpar \@put@footnotes@in@multicolpar \xpar \fi} \def\nextmulticolumnparallelparagraph{% \egroup \advance\columnsleft-1 \ifnum\columnsleft>0 \hfil \@add@footnotes@in@one@column@in@multicolpar \vtop\bgroup \else \egroup \@add@footnotes@in@one@column@in@multicolpar \@put@footnotes@in@multicolpar \xpar\vskip\baselineskip\xpar \multicolumnparallelparagraphs\totalcolumns\separation \fi} \long\def\@footnotetext#1{% \insert\footins{% \floatingpenalty \@MM \hbox{\vtop{% \unvbox\@footnotebox@for@one@column \reset@font\footnotesize \hsize\columnwidth \@parboxrestore \protected@edef\@currentlabel{% \csname p@footnote\endcsname\@thefnmark}% \color@begingroup \@makefntext{\rule\z@\footnotesep \ignorespaces#1\@finalstrut\strutbox}% \color@endgroup}\penalty\z@}}}% \long\def\@multicolpar@footnotetext#1{% \global\setbox\@footnotebox@for@one@column\vtop{% \unvbox\@footnotebox@for@one@column \reset@font\footnotesize \hsize\columnwidth \@parboxrestore \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}% \color@begingroup \@makefntext{\rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}% \color@endgroup}}% \def\@add@footnotes@in@one@column@in@multicolpar{% \ifvoid\@footnotebox@for@one@column\else \global\setbox\@footnotebox\hbox{% \unhbox\@footnotebox \box\@footnotebox@for@one@column \hskip\separation}% \fi} \def\@put@footnotes@in@multicolpar{% \ifvoid\@footnotebox\else \insert\footins{% \floatingpenalty \@MM \hbox{\unhbox\@footnotebox\unskip\penalty\@ne}}% \fi} % %%% 以下の記述は,体裁の調整のためのもので,本質的なものではありません. % \newbox\@reconstructed@footnotes \def\@reconstruct@footnotes{% \count@\z@ \@tempcnta\z@ \global\setbox\thr@@\box\voidb@x \setbox\z@\vbox{\unvbox\footins\@reconstruct@footnotes@prepare}% \ifnum\count@>4 \@latex@error{Too many columns in footnotes}\@ehc \fi \setbox\z@\vbox{\unvbox\thr@@}% \@reconstruct@footnotes@init@boxes \global\setbox\@reconstructed@footnotes\box\voidb@x \setbox\z@\vbox{\unvbox\z@\@reconstruct@footnotes@}% \box\@reconstructed@footnotes} \def\@reconstruct@footnotes@prepare{% \setbox\tw@\lastbox \ifvoid\tw@\else \global\setbox\@ne\box\voidb@x \setbox4\hbox{\unhbox\tw@ \count@\lastpenalty \unpenalty \xdef\@gtempb{\@tempcntb=\the\count@}%%% (#) \@reconstruct@footnotes@prepare@}% \@gtempa%%% see (*) \@gtempb%%% see (#) \global\setbox\@ne\hbox{\unhbox\@ne\penalty\@tempcntb}% \ifnum\@tempcnta>\count@ \count@\@tempcnta \fi \global\setbox\thr@@\vbox{\box\@ne\unvbox\thr@@}% \expandafter\@reconstruct@footnotes@prepare \fi} \def\@reconstruct@footnotes@prepare@{% \unskip \setbox6\lastbox \ifvoid6\relax \xdef\@gtempa{\@tempcnta=\the\@tempcnta}%%% (*) \else \global\setbox\@ne\hbox{\unhbox\@ne\box6}% \advance\@tempcnta\@ne \expandafter\@reconstruct@footnotes@prepare@ \fi} \def\@reconstruct@footnotes@{% \setbox\tw@\lastbox \ifvoid\tw@ \@reconstruct@footnotes@use@boxes \else \@tempcnta\@ne \setbox\tw@\hbox{% \unhbox\tw@ \@tempcntb=\lastpenalty \unpenalty \edef\@tempa{\@tempcntb=\the\@tempcntb\relax}% \expandafter}\@tempa \ifnum\@tempcntb>\z@ \setbox\tw@\hbox{\unhbox\tw@\@reconstruct@footnotes@@}% \else \@reconstruct@footnotes@use@boxes \global\setbox\@reconstructed@footnotes\vbox{% \box\tw@\unvbox\@reconstructed@footnotes}% \@reconstruct@footnotes@init@boxes \fi \expandafter\@reconstruct@footnotes@ \fi} \def\@reconstruct@footnotes@@{% \setbox4\lastbox \ifvoid4 \else \global\setbox\@tempcnta\vbox{\unvbox4 \unvbox\@tempcnta}% \advance\@tempcnta\tw@ \expandafter\@reconstruct@footnotes@@ \fi} \def\@reconstruct@footnotes@init@boxes{% \@tempcnta\m@ne \@whilenum9>\@tempcnta\do{% \advance\@tempcnta\tw@ \global\setbox\@tempcnta\box\voidb@x}} \def\@reconstruct@footnotes@use@boxes{% \global\setbox\@reconstructed@footnotes\vbox{% \hbox to\textwidth{% \@tempcnta\m@ne \dimen@\z@ \@whilenum9>\@tempcnta\do{% \advance\@tempcnta\tw@ \ifvoid\@tempcnta\else \@tempdima\ht\@tempcnta \advance\@tempdima\dp\@tempcnta \ifdim\@tempdima>\dimen@ \dimen@\@tempdima \fi \fi}% \@tempcnta\m@ne \@whilenum9>\@tempcnta\do{% \advance\@tempcnta\tw@ \ifvoid\@tempcnta\else \vbox to\dimen@{\unvbox\@tempcnta\vfil}% \hfil \fi}% \unskip}% \unvbox\@reconstructed@footnotes}} % %%% ページ構成処理の再定義 %%% \unvbox\footins を \@reconstruct@footnotes に変更 \def\@makecol{% \setbox\@outputbox\box\@cclv \xdef\@freelist{\@freelist\@midlist}% \global\let\@midlist\@empty \@combinefloats \ifvbox\@kludgeins \@makespecialcolbox \else \setbox\@outputbox\vbox to\@colht{% \@texttop \dimen@\dp\@outputbox \unvbox\@outputbox \iftdir \hskip\z@ \else \vskip-\dimen@ \fi \@textbottom \ifvoid\footins\else % for pLaTeX \vskip \skip\footins \color@begingroup \normalcolor \footnoterule \@reconstruct@footnotes \color@endgroup \fi}% \fi \global\maxdepth\@maxdepth} \def\@makespecialcolbox{% \setbox\@outputbox\vbox{% \@texttop \dimen@\dp\@outputbox \unvbox\@outputbox \vskip-\dimen@}% \@tempdima\@colht \ifdim\wd\@kludgeins>\z@ \advance\@tempdima-\ht\@outputbox \advance\@tempdima\pageshrink \setbox\@outputbox\vbox to \@colht{% \unvbox\@outputbox \vskip\@tempdima \@textbottom \ifvoid\footins\else % for pLaTeX \vskip\skip\footins \color@begingroup \normalcolor \footnoterule \@reconstruct@footnotes \color@endgroup \fi}% \else \advance\@tempdima-\ht\@kludgeins \setbox\@outputbox\vbox to \@colht{% \vbox to\@tempdima{% \unvbox\@outputbox \@textbottom \ifvoid\footins\else % for pLaTeX \vskip\skip\footins \color@begingroup \normalcolor \footnoterule \@reconstruct@footnotes \color@endgroup \fi}% \vss}% \fi {\setbox\@tempboxa\box\@kludgeins}} \makeatother \begin{document} \begin{multicolpar}{2} patapata oyoyo arere tohoho ottotto% \footnote{patapata oyoyo arere tohoho ottotto patapata oyoyo arere tohoho ottotto} patapata oyoyo arere tohoho ottotto patapata oyoyo arere tohoho ottotto patapata oyoyo arere tohoho ottotto patapata oyoyo arere tohoho ottotto ぱたぱたおよよあれれとほほおっとっと\footnote{脚注}% ぱたぱたおよよあれれとほほおっとっと ぱたぱたおよよあれれとほほおっとっと \end{multicolpar} \end{document}

この書き込みへの返事:

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