为什么 \diagbox 产生的对角线不接触表格单元格的角落?

为什么 \diagbox 产生的对角线不接触表格单元格的角落?

我尝试使用 \diagbox,但它无法从单元格的一个角移动到另一个角(查看图片)。有人能帮我吗?拜托。谢谢。

在此处输入图片描述

\documentclass [a4paper,11pt] {article}

\usepackage{multirow}
\usepackage{diagbox}

\usepackage [utf8] {inputenc}
\usepackage [portuges] {babel}
\usepackage {enumerate}
\usepackage {color}
\usepackage[many]{tcolorbox}
\usepackage {setspace}
\usepackage{palatino}
\usepackage {geometry}
\usepackage {fancyhdr}
\usepackage {graphicx}
\usepackage {url}
\usepackage {longtable}
\usepackage {rotating}
\usepackage {subfigure}
\usepackage[numbib,nottoc]{tocbibind}
\usepackage{alltt}
\usepackage[alf]{abntex2cite}

\sloppy

\geometry{left=2.5cm,right=2.5cm,top=2cm,bottom=2cm}

\font\apre = phvrc scaled 1200

\newcommand{\traco}{ \vspace{-0.9cm}
\noindent\rule{16.6cm}{0.4pt}}


\setlength{\parskip}{5pt}

\pagestyle{empty}
\begin {document}

\begin{figure} [!ht]
  \bfseries
  \mbox{
      \subfigure{
          \includegraphics [width=0.2\textwidth] {UTFPR.jpg}}\qquad
      \subfigure{
          \includegraphics [scale=0.6] {cabecalho.pdf}} \qquad
      \subfigure{
          \includegraphics [width=0.2\textwidth] {logo-DAINF-7_1.png}}
  }
\end{figure}

\begin{center}
\large{\textbf{Proposta de Trabalho de Conclusão de Curso}}
\end{center}\vspace{-0.3cm}

\tcboxfit[width=16.8cm,height=2.3cm,blank,
  borderline={1pt}{-4pt}{black},nobeforeafter,
  before=\noindent]{\normalsize\textbf{Título da Proposta: Estudo sobre constelações heterogêneas (diferentes) para detecção de canais.}\\
\textbf{Aluno: ...}\\
\textbf{Telefone: ...}\\
\textbf{E-mail: ...} \\
\textbf{Orientador: ...} }

\onehalfspacing

\section{Introdução}\traco

\begin{figure}[h!]
\centering
\includegraphics[scale=1.7]{universe}
\caption{O universo}
\label{fig:universe}
\end{figure}

\section{Objetivos} \traco

\section{Metodologia} \traco
    
\section{Cronogama} \vspace{-0.9cm}
\noindent\rule{16.6cm}{0.4pt}

 

\begin{table}[hbt]
    \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|}
    \hline
    \multirow{2}{*}{\diagbox[trim=l]{~}{~}} & \multicolumn{10}{c|}{2023} & \multicolumn{2}{c|}{2024} \\
 & Mar & Abr & Mai & Jun & Jul & Ago & Set & Out & Nov & Dez & Jan & Fev \\ 
\hline\hline
Atividade 1 & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & ~ & ~ & ~ & ~ & ~ & ~ & ~ \\ \hline
Atividade 2 & ~ & ~ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & ~ & ~ & ~ & ~ & ~ & ~ \\ \hline
Atividade 3 & ~ & ~ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & ~ & ~ & ~ & ~ & ~ & ~ \\ \hline 
Atividade 4 & ~ & ~ & ~ & ~ & ~ & $\bullet$ & $\bullet$ & $\bullet$ & ~ & ~ & ~ & ~ \\ \hline
Atividade 5 & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & ~ & ~ & ~ \\ \hline
Atividade 6 & ~ & ~ & ~ & ~ & ~ & ~ & ~ & ~ & ~ & $\bullet$ & ~ & ~ \\
\hline
\end{tabular}
\caption{Cronograma de atividades do projeto}
\label{tab:cronograma}
\end{table}


\section{Conclusão}

\citeonline{adams1995hitchhiker} diz que sempre acha que algo está fundamentalmente errado com o universo.


\bibliography{references} 
\end{document}

答案1

各位,我只能通过使用 \diagbox 的宽度参数来解决。谢谢@user202729。

\multirow{2}{*}{\diagbox[width=7em]{~}{~}} & \multicolumn{10}{c|}{2023} & \multicolumn{2}{c|}{2024} \\

相关内容