Re: 注釈を行下に書き込む方法はありますでしょうか。

名前: zyam62
日時: 2010-12-26 14:50:07
IPアドレス: 175.105.45.*

>>55489 以下のように、いくつかのコマンドを定義しておき、文字数に応じて使い分けるやり方で 当面対応します。 #1の文字数をカウントして、#2の\hsize=○○mmのところに代入して、自動化するにはどう したらよいでしょうか。教えていただければありがたいです。 \documentclass{jsarticle} \usepackage{amsmath} %%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\sitatyulong#1#2{% \text{$\underset{\text{\vbox{\hsize=30mm \baselineskip=8pt \noindent #2}}}{\text{#1}}$}}% %%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\sitatyu#1#2{% \text{$\underset{\text{\vbox{\hsize=20mm \baselineskip=8pt \noindent #2}}}{\text{#1}}$}}% %%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\sitatyushort#1#2{% \text{$\underset{\text{\vbox{\hsize=10mm \baselineskip=8pt \noindent #2}}}{\text{#1}}$}}% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \sitatyulong{ABCDEFGHIJKLM}{あああああいいいいいうううううえええええ} \sitatyu{abcdefghijklm}{あああああいいいいいううううう} \sitatyushort{ABCD}{あああああいいいいい} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \end{document}

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます。適宜改行を入れてください)