如何使用“\adjustbox”来放大标题字体?

如何使用“\adjustbox”来放大标题字体?

我想让表格标题的字体变大。通常我这样做不会出什么问题。但是,这次我无法使用“\adjustbox”来实现。我的做法如下:

\documentclass[11pt]{article}
      
\usepackage{latexsym}% Package loading the LaTeX symbol.
\usepackage{graphicx}% Package necessary to put graphics in your TeX document
\usepackage{setspace}% Package for changing space between the lines
\usepackage{fancyhdr}% Package for making the fancy headers with names of authors and title of paper 
\usepackage{lscape}  % Package allowing to put your text in landscape
\usepackage{amsmath} % An extension package for LaTeX that provides various features to facilitate writing math formulas and to improve the typographical quality of their output
\usepackage{mathrsfs}    
\usepackage{longtable,epsfig}  
\usepackage{longtable,pdflscape}   
\usepackage[center,tight,small]{subfigure} 
\usepackage[font=large,skip=2pt,labelfont=bf,singlelinecheck=false,justification=centering]{caption}
\usepackage{natbib}         
\usepackage{epigraph}        
\usepackage{threeparttable}           
\usepackage{adjustbox}
\usepackage[latin1]{inputenc}  
\usepackage{booktabs} 
\usepackage{rotating}
\usepackage{epstopdf}      
\usepackage{multirow}    
\usepackage{titlesec}  
\usepackage{float}
\usepackage[hang]{footmisc}
\setlength{\footnotemargin}{2mm}
\usepackage{csquotes}
\usepackage{authblk}
\usepackage{ragged2e}
\usepackage{graphicx}     
\usepackage[usenames,dvipsnames,table]{xcolor}    

\begin{document}


\begin{table}[H]
\centering
\begin{adjustbox}{width=1\textwidth}
\begin{threeparttable}
\captionsetup{font= large}
\caption{Identifying Sign Restrictions}
\label{tab: tab3}
\vspace{0.2cm}
\setlength\extrarowheight{-10pt}
\begin{tabular}{lccccccc} 
    \toprule

     & Gov. Rev & Gov. Exp & EONIA & DFPA & GDP & HICP & CISS\\
    \midrule

     \textit{Fiscal Policy Shock} & $+$ &  & & & $-$ & $-$ &\\
    
     \textit{Monetary Policy Shock}  &  & & $+$ & & $-$ & $-$ &\\
   
     \textit{DFPA Shock}      & $+$ & $-$ & & $-$ & &  &\\

\bottomrule

\end{tabular}
\begin{tablenotes}
\linespread{1}\small
\item \textit{Note}: This table shows the sign restrictions on the impulse responses for each identified shock. A \enquote{$+$} means that the impulse response of the variable in question is restricted to be positive for twelve months following the shock, including the month of impact. Likewise, a \enquote{$-$} indicates a negative response. A blank entry indicates that no restrictions have been imposed.
\end{tablenotes}
\end{threeparttable}
\end{adjustbox}
\end{table}

\end{document}


谁能帮我这个?

谢谢!

答案1

这里有两个不同版本的表格,它们无需使用就可以适应可用的文本宽度adjustbox

在此处输入图片描述

\documentclass[11pt]{article}
\usepackage{csquotes}
\usepackage{threeparttable}            
\usepackage{booktabs} 
\usepackage[font=large,skip=2pt,labelfont=bf,singlelinecheck=false,justification=centering]{caption}

\usepackage{tabularx}
\usepackage{makecell}
\begin{document}


\begin{table}
\small
\setlength{\tabcolsep}{0pt}
\begin{threeparttable}
\caption{Identifying Sign Restrictions}
\label{tab: tab3}
\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}}>{\itshape}lccccccc} 
    \toprule
      & \thead{Gov.\\ Rev} & \thead{Gov.\\ Exp} & \thead{EONIA} & \thead{DFPA} & \thead{GDP} & \thead{HICP} & \thead{CISS}\\
    \midrule
     Fiscal Policy Shock & $+$ &  & & & $-$ & $-$ &\\
     Monetary Policy Shock  &  & & $+$ & & $-$ & $-$ &\\
    DFPA Shock      & $+$ & $-$ & & $-$ & &  &\\
\bottomrule
\end{tabular*}
\begin{tablenotes}[flushleft]
 \setlength\labelsep{0pt} 
\linespread{1}\small
\item \textit{Note}: This table shows the sign restrictions on the impulse responses for each identified shock. A \enquote{$+$} means that the impulse response of the variable in question is restricted to be positive for twelve months following the shock, including the month of impact. Likewise, a \enquote{$-$} indicates a negative response. A blank entry indicates that no restrictions have been imposed.
\end{tablenotes}
\end{threeparttable}
\end{table}

\begin{table}
\small
\begin{threeparttable}
\caption{Identifying Sign Restrictions}
\label{tab: tab3}
\begin{tabularx}{\linewidth}{@{}>{\itshape\raggedright\arraybackslash}Xccccccc@{}} 
    \toprule
      & Gov. Rev & Gov. Exp & EONIA & DFPA & GDP & HICP & CISS\\
    \midrule
     Fiscal Policy Shock & $+$ &  & & & $-$ & $-$ &\\ \addlinespace
     Monetary Policy Shock  &  & & $+$ & & $-$ & $-$ &\\ \addlinespace
    DFPA Shock      & $+$ & $-$ & & $-$ & &  &\\
\bottomrule
\end{tabularx}
\begin{tablenotes}[flushleft]
 \setlength\labelsep{0pt} 
\linespread{1}\small
\item \textit{Note}: This table shows the sign restrictions on the impulse responses for each identified shock. A \enquote{$+$} means that the impulse response of the variable in question is restricted to be positive for twelve months following the shock, including the month of impact. Likewise, a \enquote{$-$} indicates a negative response. A blank entry indicates that no restrictions have been imposed.
\end{tablenotes}
\end{threeparttable}
\end{table}

\end{document}

相关内容