目錄
問題描述:
問題解決:
問題描述:
在使用draw.io進行繪圖,導(dǎo)出的時候不知道為什么周圍會有留白,比如下圖:
在導(dǎo)入latex的時候,會因為兩側(cè)的留白導(dǎo)致整張圖片縮小。 如果直接進行裁剪.pdf,可能需要開通會員
問題解決:
不得不感慨latex的強大,可以直接使用命令進行裁剪。
下面是原始的命令:
\centering
\includegraphics[width=1\textwidth]{figures/learning.pdf}
\caption{An overview of our dual-channel model framework.}
\label{fig:framework}
\end{figure*}
裁剪的命令:
\begin{figure*}[t]
\centering
\includegraphics[width=1\textwidth, trim=1cm 0cm 1cm 0cm, clip]{figures/learning.pdf}
% left, botton, right,top
\caption{An overview of our dual-channel model framework.}
\label{fig:framework}
\end{figure*}
注意在裁剪的時候,不建議把width=1\textwidth,這個去掉,這個去掉可能會影響圖片的居中擺放效果,可能會出現(xiàn)左傾或者右斜。文章來源:http://www.zghlxwxcb.cn/news/detail-724458.html
即下面的方式不可?。。?!文章來源地址http://www.zghlxwxcb.cn/news/detail-724458.html
\begin{figure*}[t]
\centering
\includegraphics[trim=1cm 0cm 1cm 0cm, clip]{figures/learning.pdf}
% left, botton, right,top
\caption{An overview of our dual-channel model framework.}
\label{fig:framework}
\end{figure*}
到了這里,關(guān)于latex如何對.pdf格式的圖片實現(xiàn)裁剪的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!