
我設定了頁面幾何形狀以刪除邊注、頁腳和頭部,以便它使用所有可用空間。雖然我設法將頁面中的文字居中,但現在圖形未居中
\marginparwidth 0pt
\marginparsep 0pt
\footskip 0pt
\headheight 0pt
\headsep 0pt
\setlength{\oddsidemargin}{\dimexpr \hmargin -1in}
\setlength{\hsize}{\dimexpr \pdfpagewidth -2\oddsidemargin -2in}
\setlength{\textwidth}{\hsize}
\begin{figure}[h!]
\centering
\def\svgwidth{10em}
\input{logo.pdf_tex}
\end{figure}
\begin{center}
...
\end{center}
該圖現在不居中,但當我刪除 \hsize 定義時,它以文字居中,這讓我覺得有某種模糊變數控制著位置,並且它仍然設定為預設值,但我找不到任何變數。
編輯
我發現這是由於 pdf_tex 變成圖形而不是 png 圖像引起的。\input{logo.pdf_tex}
在圖形外部和中心環境中定義效果完美