以下の文章では、3つのファイルのそれぞれにfigs/01/
を追加したいと思います。あなたが見ることができるように、ファイルはpdf、png、または拡張子を持たないことがあり、場合によっては\includegraphics
がいくつかの行に分割されます。ファイルパスをLatexの図に追加しますか?
私の現在の考え方は
cat figs.tex | ruby -ne 'puts $_.gsub(/\\includegraphics\[.*?\]\{.*?\}/) { |x| x.do_something_here }'
ですが、私は、検索と置換する部分を再度検索する必要がありますので、それは、ひよこと卵の問題です。
質問
誰もがこのような状況を解決する方法を見ることができますか?
\begin{figure}[ht]
\centerline{ \includegraphics[height=55mm]{plotLn} \includegraphics[height=55mm]{plotLnZoom.pdf}}
\caption{Funktionen $f(x) = \ln(x)$ \ref{examg0} (bl)}
\end{figure}
\begin{example}[Parameterfremstilling for ret linje]\label{tn6.linje}
\begin{think}
Givet linjen $\,m\,$,
\includegraphics[trim=1cm 11.5cm 1cm
11.5cm,width=0.60\textwidth,clip]{vektor8.png}
\end{think}
{\ * [^ {}]}/'/ \\ includegraphicsを\ [[^ \] \ [] * \] \試してみてください' –
' figs/01/figs/06/vektor8.png'や 'figs/01/vektor8.png'という3つのファイルで何を得たいですか(言い換えると、元のパスを保持しますか? )? –
これはTeX.SEではうまくいかないでしょうか? –