批次修改檔名-Emacs Dired

將 pdf 檔中的圖像擷取圖像,並重新創建新的 pdf 檔

在 PDF 轉出的圖像的檔名,為 out-1-001.png ... out-10-100.png,其中每頁的圖像數量不一致。如果要把其載入 pdflatex 使用時,於 main.tex 中手動輸入

\includegraphics[width=\textwidth]{out-1-001.png}\newpage
\includegraphics[width=\textwidth]{out-1-002.png}\newpage
\includegraphics[width=\textwidth]{out-1-003.png}\newpage
...
\includegraphics[width=\textwidth]{out-10-100.png}\newpage

由於圖像檔名沒有規則的順序,所以在手動加入圖像時要依目前的圖像導入。此時會花一些時間處理。

在 Emacs Dired 批次修改目錄中的檔名

將 Dired 進入要修改的目錄之中,鍵入( C-x C-q ),啟用 wdired 模式,將所需修改的檔名修改完成後,按下 wdired-finish-edit (快捷鍵 C-c C-c) 確認修改。 如此輸入 main.tex 時就可以有規則性的使用圖檔名。



留言

這個網誌中的熱門文章

計算碟形端板的內容積/calculate internal volume of spherically dished

壓力容器設計:最低設計金屬溫度 (MDMT)

壓寶計劃:如何設計桶槽的容積刻度尺/ How to design the volume scale of the barrel tank