看板 PhD 關於我們 聯絡資訊
※ 引述《jackyw99 (ㄚ政)》之銘言: : ※ 引述《kenlo0425 (邪惡博士)》之銘言: : : 感謝你提供這個方法,效果不錯 : : 我也試過前面幾篇的方法,但在我的環境我跑起來就是會有失真 大部分的程式都可以輸出 pdf 檔案吧, 然後直接使用 pdf 檔案, 就比較不會失真. Matlab 也可以直接輸出 pdf 檔案, 用 -dpdf 選項即可 例如在 .m 使用 print(gcf, '-dpdf', 檔名) ; 在LaTex中只要使用 \usepackage[pdftex] 就可以囉. 我的環境是 MikTex 和 WinEdt. 我是用下面的某人提供的程式自動判斷. 下面的指令會讓 tex 編譯的時候自動到你目前目錄下的 /figure-eps/ 或 /figure-pdf/ 尋找檔案 %請加在你的 tex 檔案前面 usepackage 的下面, \title 之前 %----------------------------------------------------- % Check for the existence of the variable \pdfoutput: \newif\ifpdf \ifx\pdfoutput\undefined \pdffalse % we are not running PDFLaTeX \else \pdfoutput=1 % we are running PDFLaTeX \pdftrue \fi %Then use the new variable \ifpdf \ifpdf \usepackage[pdftex]{graphicx} \graphicspath{{figure-pdf/}} \DeclareGraphicsExtensions{.pdf,.jpg,.png,.tif} \usepackage[pdftex]{hyperref} \usepackage[final]{pdfpages} \else \usepackage[dvips]{graphicx} \graphicspath{{figure-eps/}} \DeclareGraphicsExtensions{.eps,.ps} \newcommand{\href}[2]{% {#2}% } \newcommand{\url}[1]{% \texttt{#1}% } \fi % ----------------------------------------------------------------- ※ 編輯: illini 來自: 140.113.88.61 (04/18 19:22)