扩大表格

扩大表格

如何放大此表?提前谢谢

\begin{table}[ht]
            \large
            \centering

            \begin{tabular}{c|c||*{8}{c|}}
                \multicolumn{2}{c}{} & \multicolumn{8}{c}{j} \tabularnewline
                \cline{2-10}
                \multirow{9}*{\rotatebox{90}{i}} &  & \bfseries 0 & \bfseries 1 & \bfseries 2 & \bfseries 3 & \bfseries 4 & \bfseries 5 & \bfseries 6 & \bfseries 7  \tabularnewline[1 ex] 
                \cline{2-10} & \bfseries 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \tabularnewline [1ex] 
                \cline{2-10} & \bfseries 1 & 0 & 1 & 1 & 1 & 1 & 1 & 1 & 1\tabularnewline [1ex] 
                \cline{2-10} & \bfseries 2 & 0 & 1 & 1 & 4 & 5 & 5 & 5 & 5 \tabularnewline [1ex] 
                \cline{2-10} & \bfseries 3 & 0 & 1 & 1 & 4 & 5 & 6 & 6 & 9 \tabularnewline [1ex] 
                \cline{2-10} & \bfseries 4 & 0 & 1 & 1 & 4 & 5 & 7 & 8 & \bfseries 9 \tabularnewline [1 ex]
                \cline{2-10}
            \end{tabular}
        \end{table} 

答案1

\documentclass[10pt,a4paper,twoside]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{multirow}
\begin{document}
\begin{table}[ht]
    \Huge
    \centering
    \scalebox{1.5}{ %This is for scaling.
    \begin{tabular}{c|c||*{8}{c|}}
        \multicolumn{2}{c}{} & \multicolumn{8}{c}{j} \tabularnewline
        \cline{2-10}
        \multirow{9}*{\rotatebox{90}{i}} &  & \bfseries 0 & \bfseries 1 & \bfseries 2 & \bfseries 3 & \bfseries 4 & \bfseries 5 & \bfseries 6 & \bfseries 7  \tabularnewline[1 ex] 
        \cline{2-10} & \bfseries 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \tabularnewline [1ex] 
        \cline{2-10} & \bfseries 1 & 0 & 1 & 1 & 1 & 1 & 1 & 1 & 1\tabularnewline [1ex] 
        \cline{2-10} & \bfseries 2 & 0 & 1 & 1 & 4 & 5 & 5 & 5 & 5 \tabularnewline [1ex] 
        \cline{2-10} & \bfseries 3 & 0 & 1 & 1 & 4 & 5 & 6 & 6 & 9 \tabularnewline [1ex] 
        \cline{2-10} & \bfseries 4 & 0 & 1 & 1 & 4 & 5 & 7 & 8 & \bfseries 9 \tabularnewline [1 ex]
        \cline{2-10}
    \end{tabular}
}
\end{table} 
\end{document}

要放大表格,请将 large 改为 huge。此外,为了缩放,您可以在 tabular 环境之前使用 \scalebox{}。希望这对您有所帮助。

相关内容