発言者: tDB
発言日: 2010 04/27 12:25
発言元: ntchba303102.chba.nt.ftth.ppp.infoweb.ne.jp
おやりになりたいことが今ひとつはっきりしないのですが,
左の解答領域
右の注釈領域
を等幅にしたいということなら,
\tyuuhaba
を
.5\textwidth-\marginparsep
とすればよいはずです(\marginparsep の値は無関係)。
外したかな?
% ---------------------------------------------------------
\documentclass[a4j]{jarticle}
\usepackage{color}
\usepackage{emathBk}
\usepackage{itembbox}
\begin{document}
下で,色つきの横罫線の長さは
\begin{jquote}
\begin{tabular}{ll}
青(blue) & \verb+\textwidth+\\
赤(red) & \verb+0.5\textwidth+
\end{tabular}
\end{jquote}
としてあります。さて,デフォルトでは
\begin{itemsquarebox}{例題}
\repeatstr{問題}{25}
\end{itemsquarebox}
\begin{tyuukai}
\noindent
\begin{picture}(0,0)\relax
\dimen255=.5\textwidth
\makeatletter
\edef\tmplnwd{\strip@pt\dimen255}%
\put(0,0){{\color{red}\line(1,0){\tmplnwd}}}\relax
\edef\tmplnwd{\strip@pt\textwidth}%
\put(0,-2){{\color{blue}\line(1,0){\tmplnwd}}}\relax
\makeatother
\end{picture}\relax
\repeatstr{解答}{20}
\tyuu{\repeatstr{注釈}{3}}
ここで注釈をつけます。
\repeatstr{解答}{5}
\end{tyuukai}
\verb+{<tyuuhaba=.5\textwidth-\marginparsep>}+とした場合は
\begin{itemsquarebox}{例題}
\repeatstr{問題}{25}
\end{itemsquarebox}
\begin{tyuukai}<tyuuhaba=.5\textwidth-\marginparsep>
\noindent
\begin{picture}(0,0)\relax
\dimen255=.5\textwidth
\makeatletter
\edef\tmplnwd{\strip@pt\dimen255}%
\put(0,0){{\color{red}\line(1,0){\tmplnwd}}}\relax
\edef\tmplnwd{\strip@pt\textwidth}%
\put(0,-2){{\color{blue}\line(1,0){\tmplnwd}}}\relax
\makeatother
\end{picture}\relax
\repeatstr{解答}{20}
\tyuu{\repeatstr{注釈}{3}}
ここで注釈をつけます。
\repeatstr{解答}{5}
\end{tyuukai}
\repeatstr{本文}{30}
\end{document}
▼関連発言
│
└◆8803:tyuukai環境とmarginparsep [Kay] 04/27 11:13
└◆8804:Re:tyuukai環境とmarginparsep [tDB] 04/27 12:25
└◆8811:Re[2]:tyuukai環境とmarginparsep [Kay] 04/27 16:25
└◆8813:Re[3]:tyuukai環境とmarginparsep [tDB] 04/27 16:37
└◆8816:Re[4]:tyuukai環境とmarginparsep [Kay] 04/27 17:22<-last