Re: [問題] 用IEEEtrans的板模圖片caption怎麼置中?

看板LaTeX作者 (品質...)時間15年前 (2009/07/18 00:16), 編輯推噓3(300)
留言3則, 3人參與, 最新討論串2/2 (看更多)
※ 引述《DCSH (我有病...)》之銘言: : 我用IEEEtrans板模 : 圖片雖然是中間 : caption都會自動跑掉到左邊 : 用其他模板caption都是好好的待在圖片正下方... : 在\begin{figure}裡外放\begin{center}好像都沒用 : 請問要如何居中?? : 謝謝 1.7版本以後的無法用指令居中 在include package以後加入以下: \makeatletter \long\def\@makecaption#1#2{\ifx\@captype\@IEEEtablestring% \footnotesize\begin{center}{\normalfont\footnotesize #1}\\ {\normalfont\footnotesize\scshape #2}\end{center}% \@IEEEtablecaptionsepspace \else \@IEEEfigurecaptionsepspace \setbox\@tempboxa\hbox{\normalfont\footnotesize {#1.}~~ #2}% \ifdim \wd\@tempboxa >\hsize% \setbox\@tempboxa\hbox{\normalfont\footnotesize {#1.}~~ }% \parbox[t]{\hsize}{\normalfont\footnotesize \noindent\unhbox\@tempboxa#2}% \else \hbox to\hsize{\normalfont\footnotesize\hfil\box\@tempboxa\hfil}\fi\fi} \makeatother 就可以居中 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.120.37.68

04/20 21:25, , 1F
幫了大忙~推薦這篇文章
04/20 21:25, 1F

10/16 19:33, , 2F
推! 不過新的ieeetx好像都是靠左!!
10/16 19:33, 2F

06/05 00:41, , 3F
大推這篇!!!
06/05 00:41, 3F
文章代碼(AID): #1AOAFPog (LaTeX)
文章代碼(AID): #1AOAFPog (LaTeX)