Re: [問題] 用IEEEtrans的板模圖片caption怎麼置中?
※ 引述《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
10/16 19:33, 2F
推
06/05 00:41, , 3F
06/05 00:41, 3F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):