shellscriptの中身 #! /bin/sh HERE=`pwd` here=/home/ryuki/tex cp $1 $here/temp.eps cd $here platex $here/temp.tex dvipdfmx $here/temp.dvi lpr -C5900 $here/temp.pdf cd $HERE temp.texの中身 \documentclass{jsarticle} \input{/home/ryuki/tex/base.tex} \renewcommand{\tablename}{Table} \renewcommand{\figurename}{Fig} \begin{document} \thispagestyle{empty} \begin{figure} \begin{center} \includegraphics[width=12cm]{./temp.eps} \end{center} \end{figure} \end{document} |
こんな感じ(ソース見て) std::cin << num |