调整表格宽度而不弄乱论文指南的初步设定

调整表格宽度而不弄乱论文指南的初步设定

嗨,我正在向 IJNT 发表论文。我从相应的网站下载了页面指南。我遇到的唯一问题是我无法调整表格以适应 IJNT 设置的页边距。以下是我的表格代码

    \documentclass[12pt,a4paper,twoside]{report}
\usepackage{tabularx,ragged2e,booktabs,caption}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{bm}
\begin{document}
\begin{table}
    \centering
    \def\arraystretch{3.0}
    \begin{scriptsize}
    \begin{tabular}{|c|c|c|}
    \cline{1-3}
     $\mu \in Y$ & $\mu P \oplus T'$  & $Z(nP)$ \\ \cline{1-3}
    $-4$ & $\bigg(\dfrac{4482}{361}\beta + \dfrac{3489}{361}, \dfrac{-52002}{6859}\beta + \dfrac{2057238}{6859}\bigg)$  & $2^{22}\cdot3^{44}\cdot19^{-32}\cdot \bm{13\cdot1789}\cdot[-46931113911612188165\beta + 242506871209270916181]^2$  \\ \cline{1-3}
    $-3$ & $\bigg(\dfrac{-99}{8}\beta + \dfrac{93}{8}, \dfrac{-81}{16}\beta - \dfrac{5049}{16}\bigg)$  & $2^{-32}\cdot3^{34}\cdot\bm{5\cdot29}\cdot\bigg[\dfrac{-143654012463}{2}\beta + \dfrac{596091741497}{2}\bigg]^2$  \\ \cline{1-3}
     $-2$ & $(162\beta + 681,-5994\beta - 24786)$ & $[2^{13}\cdot3^{22}\cdot5\cdot19\cdot379\cdot1433\cdot1481\beta + 2^{13}\cdot3^{23}\cdot199\cdot527732929]^2$\\ \cline{1-3}
    $-1$ & $(-18\beta + 69, -162\beta + 918)$  & $2^{24}\cdot3^{34}\cdot\bm{5\cdot29}\cdot[95293 +23052\beta]^2$  \\ \cline{1-3}
    $0$ & $\bigg(\frac{3}{2}(-5 - 9\beta),0\bigg)$  & $2^{10}\cdot 3^{44}\cdot \bm{13\cdot1789}\cdot[21\beta + 7]^2 $  \\ \cline{1-3}
    $3$ & $\bigg(\dfrac{-99}{8}\beta + \dfrac{93}{8}, \dfrac{81}{16}\beta + \dfrac{5049}{16}\bigg)$  & $2^{-32}\cdot3^{34}\cdot\bm{5333\cdot97324757}\cdot\bigg[\dfrac{2188485}{2}\beta + \dfrac{12121421}{2}\bigg]^2$  \\ \cline{1-3}
    \end{tabular}
\end{scriptsize}
    \caption{$Z(\widetilde{Q})$ a square for $\mu \in Y$.\label{znpsquare}}
    \end{table}

\end{document}

有没有办法(不弄乱他们的准备工作),我可以调整这个表格以适合边距。我已为生成的表格附加了一张图片。

在此处输入图片描述

答案1

正如我在评论中所说,你的只有一行方程的表格太宽了。合理的解决方案是将方程分成更多行。例如,借助multlinedfrommathtools包:

\documentclass[12pt,a4paper,twoside]{report}
\usepackage{array, makecell}
\setcellgapes{5pt}
\usepackage{mathtools}

%-------------------------------- show page layout, only for test
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

\begin{document}
    \begin{table}
\makegapedcells
\setlength\arraycolsep{3pt}
\centering
\[
\begin{array}{|c|c|c|}
    \hline
\mu \in Y & \mu P \oplus T'  
    & Z(nP) \\ 
    \hline
-4  &   \begin{multlined}
        \bigg(\dfrac{4482}{361}\beta + \dfrac{3489}{361},\\[-2ex]
        \dfrac{-52002}{6859}\beta + \dfrac{2057238}{6859}\bigg)
        \end{multlined}  
        &   \begin{multlined}
            2^{22}\cdot3^{44}\cdot19^{-32}\cdot \mathbf{13\cdot1789}    \\[-2ex]
            \cdot[-46931113911612188165\beta + \\
                242506871209270916181]^2
            \end{multlined}         \\ 
    \hline
-3  &   \begin{multlined}
        \bigg(\dfrac{-99}{8}\beta + \dfrac{93}{8}, \\[-2ex]
        \dfrac{-81}{16}\beta - \dfrac{5049}{16}\bigg)  
        \end{multlined}
        &   \begin{multlined}
            2^{-32}\cdot3^{34}\cdot\mathbf{5\cdot29}   \\[-2ex]
            \cdot\bigg[\dfrac{-143654012463}{2}\beta + \dfrac{596091741497}{2}\bigg]^2  
            \end{multlined}         \\ 
    \hline
 -2 &   \begin{multlined}
        (162\beta + 681,\\[-2ex]
        -5994\beta - 24786)
        \end{multlined}
        &   \begin{multlined}
            [2^{13}\cdot3^{22}\cdot5\cdot19\cdot379\cdot1433\cdot1481\beta +\\[-2ex] 2^{13}\cdot3^{23}\cdot199\cdot527732929]^2
            \end{multlined} \\
        \hline
-1  &   \begin{multlined}
        (-18\beta + 69, \\[-2ex]
        -162\beta + 918)  
        \end{multlined}
        &   \begin{multlined}
        2^{24}\cdot3^{34}\cdot\mathbf{5\cdot29} \\[-2ex]
            \cdot[95293 +23052\beta]^2  
            \end{multlined} \\ 
    \hline
0   &   \bigg(\frac{3}{2}(-5 - 9\beta), 0\bigg)  
        &   2^{10}\cdot 3^{44} \cdot \mathbf{13\cdot1789}\cdot[21\beta + 7]^2 
                            \\  
    \hline
3   &   \begin{multlined}
        \bigg(\dfrac{-99}{8}\beta + \dfrac{93}{8}, \\[-2ex]
        \dfrac{81}{16}\beta + \dfrac{5049}{16}\bigg)  
        \end{multlined}
        &  \begin{multlined}
            2^{-32}\cdot3^{34}\cdot\mathbf{5333\cdot97324757}\\[-2ex]
            \cdot\bigg[\dfrac{2188485}{2}\beta + \dfrac{12121421}{2}\bigg]^2
            \end{multlined} \\
    \hline
\end{array}
\]
    \caption{$Z(\widetilde{Q})$ a square for $\mu \in Y$.}
\label{znpsquare}
    \end{table}
\end{document}

这使:

在此处输入图片描述

在代码中我做了一些更改,如下所示:

  • tabulararray封装在数学环境中的
  • 对于粗体变量\mathbf{...}使用
  • 数学表达式周围的更多垂直空间是通过序言中的\makegapedcells包获得的makecell ,仅加载设置此表所需的包

相关内容