So behalten Sie die Schriftgröße im Dokument und in der Tabelle bei

So behalten Sie die Schriftgröße im Dokument und in der Tabelle bei

Ich schreibe einen Aufsatz in acmart (von ACM SIGCOMM bereitgestellter Stil). Der Aufsatz enthält einige Tabellen. Die Schriftgrößen in den Tabellen sind jedoch unterschiedlich. Mal sind sie groß, mal klein. Gibt es eine Möglichkeit, die Schriftgröße in Latex-Tabellen konstant zu halten?

Ich habe hier einen Beispielcode hinzugefügt. Sie können ihn auf der Rückseite ausführen.

\documentclass[sigconf]{acmart}

\usepackage{booktabs} % For formal tables \usepackage{amsmath} \usepackage{multirow}

% Copyright1 %\setcopyright{none} %\setcopyright{acmcopyright} %\setcopyright{acmlicensed} \setcopyright{rightsretained} %\setcopyright{usgov} %\setcopyright{usgovmixed} %\setcopyright{cagov} %\setcopyright{cagovmixed}

% DOI \acmDOI{10.475/123_4}

% ISBN \acmISBN{123-4567-24-567/08/06}

%Conference \acmConference[Conf Short Name]{Conference Full Name}{Month Year}{Venue} \acmYear{1997} \copyrightyear{2016}


\acmArticle{4} \acmPrice{15.00}

% These commands are optional %\acmBooktitle{Transactions of the ACM Woodstock conference} \editor{Jennifer B. Sartor} \editor{Theo D'Hondt} \editor{Wolfgang De Meuter}


\begin{document} \title{Test ACMART for table } \titlenote{Produces the permission block, and   copyright information} \subtitle{Extended Abstract} \subtitlenote{The full version of the author's guide is available as   \texttt{acmart.pdf} document}


\author{Author 1} \authornote{Dr.~Trovato insisted his name be first.} \orcid{1234-5678-9012} \affiliation{%   \institution{X X University}   \streetaddress{P.O. Box 1212}   \city{Kent}   \state{Ohio}   \postcode{44240} } \email{[email protected]}



% The default list of authors is too long for headers. \renewcommand{\shortauthors}{Das et al.}


\begin{abstract} This is a sample abstract for testing.   %===========================MAT comparison \begin{table}   \caption{My table}   \resizebox{\textwidth}{!}{ \begin{tabular}{llllll} \hline  &  & Header 1     & \multicolumn{1}{r}{\begin{tabular}[c]{@{}r@{}}Header\\ 7170\end{tabular}} & \begin{tabular}[c]{@{}l@{}}Agilio \\ Cx\end{tabular} & Header 3    \\ \hline
                                                                                   \multirow{6}{*}{\textbf{\begin{tabular}[c]{@{}l@{}}Static \\ Features\end{tabular}}} & 

\begin{tabular}[c]{@{}l@{}}Long column 1\\ Long column 1\\Long column 1\\Long column 1Long column\\ 1Long column 1\\ \end{tabular}      & \begin{tabular}[c]{@{}l@{}}col2\end{tabular}    & \multicolumn{1}{r}{\begin{tabular}[c]{@{}r@{}}All P4v16 data types.\\Bit,varbit, int,\\string, structure, enum.\\But no float\end{tabular}}   & \begin{tabular}[c]{@{}l@{}}NA\end{tabular}  & \begin{tabular}[c]{@{}l@{}}NA\end{tabular}     \\ \cline{2-6} 
    \\ \hline

\end{tabular} } \end{table} \end{abstract} \keywords{SDN, Data Plane, Programmable Switch Architecture} \maketitle \bibliographystyle{ACM-Reference-Format}

\end{document}

Antwort1

\documentclass{acmart}
\showoutput
\begin{document}


main text 

\begin{table}[h]
  \centering
  \begin{tabular}{ll}
    table & text
  \end{tabular}
  \caption{caption text}
  \label{tab:zz}
\end{table}
\end{document}

Bildbeschreibung hier eingeben

das Protokoll zeigt

.....\T1/LinuxLibertineT-TLF/m/n/9 m
...........\T1/LinuxLibertineT-TLF/m/n/9 t
.........\T1/LinuxBiolinumT-TLF/m/n/8 T

Das ist der Haupttext und die Tabelle sind 9pt LinuxLibertine und die Überschrift ist 8pt LinuxBiolinum

Der einzige Grund, eine Publisher-Klasse wie zu verwenden, amsartbesteht darin, die Hausstilregeln des Herausgebers durchzusetzen und dem Autor solche Entscheidungen zu entziehen. Daher wird normalerweise empfohlen, solche Stilentscheidungen nicht zu ändern. Es wäre jedoch möglich, die Überschrift in einer größeren Schriftart zu setzen, wenn Sie das wirklich brauchen, aber beachten Sie die TabelleIstauf die gleiche Größe wie der Dokumenttext eingestellt.

Die Beschriftungseinstellung (standardmäßig klein) hängt von der Journaloption ab. Die Klasse verwendet Code wie

\if@ACM@journal
  \captionsetup{labelfont={sf, small},
    textfont={sf, small}, margin=\z@}
  \captionsetup[figure]{name={Fig.}}
\else
 .....

verwandte Informationen