Eu tenho o script mostrado abaixo. O problema é que o tamanho da fonte da tabela é maior que o tamanho da fonte do documento especificado na primeira linha. Como fazer com que a fonte da tabela use o mesmo tamanho de fonte do restante do documento.
\documentclass[compsoc, conference, letterpaper, 10pt, times]{IEEEtran}
\ifCLASSOPTIONcompsoc
% IEEE Computer Society needs nocompress option
% requires cite.sty v4.0 or later (November 2003)
\usepackage[nocompress]{cite}
\else
\usepackage{cite}
\fi
\ifCLASSINFOpdf
\else
\fi
\usepackage{graphicx} %for images
\usepackage{array}
\usepackage{booktabs}
\usepackage{multirow}
\newcommand{\head}[1]{\textnormal{\textbf{#1}}}
\newcommand{\normal}[1]{\multicolumn{1}{l}{#1}}
\usepackage{amssymb}% http://ctan.org/pkg/amssymb
\usepackage{pifont}% http://ctan.org/pkg/pifont
\newcommand{\cmark}{\ding{51}}%
\newcommand{\xmark}{\ding{55}}%
\newcommand*\rot{\rotatebox{90}}
\begin{document}
\title{Test Document}
% make the title area
\maketitle
\section{Introduction}
This is an introduction.
\begin{table}[bt!]
\caption{A map}
\centering
\resizebox{\columnwidth}{!} {
\begin{tabular} {@{} lc*{3}l @{}}
\hline
Message Name &
Abbreviation &
Used In\\
\hline
Hello & H & Fig. \\
\hline
\end{tabular}
}%end resize box
\end{table}
\end{document}
Responder1
Usar tabularx
. Você nunca deve usar \resizebox
código que contenha texto. Use também as regras de booktabs
para dar algum preenchimento às suas regras:
\documentclass[compsoc, conference, letterpaper, 10pt, times]{IEEEtran}
\ifCLASSOPTIONcompsoc
% IEEE Computer Society needs nocompress option
% requires cite.sty v4.0 or later (November 2003)
\usepackage[nocompress]{cite}
\else
\usepackage{cite}
\fi
\ifCLASSINFOpdf
\else
\fi
\usepackage{graphicx} %for images
\usepackage{array}
\usepackage{booktabs}
\usepackage{multirow}
\newcommand{\head}[1]{\textnormal{\textbf{#1}}}
\newcommand{\normal}[1]{\multicolumn{1}{l}{#1}}
\usepackage{amssymb}% http://ctan.org/pkg/amssymb
\usepackage{pifont}% http://ctan.org/pkg/pifont
\newcommand{\cmark}{\ding{51}}%
\newcommand{\xmark}{\ding{55}}%
\newcommand*\rot{\rotatebox{90}}
\usepackage{tabularx, lipsum}
\begin{document}
\title{Test Document}
% make the title area
\maketitle
\section{Introduction}
This is an introduction.
\begin{table}[!hbt]
\caption{A map}
\centering
\begin{tabularx}{\columnwidth} {@{} l*{3}{X} @{}}
\toprule
Message Name &
Abbreviation &
Used In\\
\midrule
Hello & H & Fig. \\
\bottomrule
\end{tabularx}
\end{table}
\lipsum
\end{document}