图形尺寸问题

图形尺寸问题

各位同仁、各位朋友,大家好!

你知道为什么会发生这种情况吗?突然间,当我编译整个文档时,矩阵就像图片中那样出现了。我的文档中出现的每个图中都有这个:

\begin{figure}[!htb]
content
\end{figure}

还有这个:

\setlength{\parindent}{2em}
\setlength{\parskip}{0.5em}
\renewcommand{\baselinestretch}{1.1}

在此处输入图片描述

\documentclass{article}
\begin{document}
\begin{figure}[!htb]
    \centering

    $ \underbrace{
    \begin{bmatrix}
    \checkmark & \color{blue}\textbf{?} & \checkmark & \color{blue}\textbf{?}  & \color{blue}\textbf{?}\\ 
    \color{blue}\textbf{?}&\color{blue}\textbf{?}  & \color{blue}\textbf{?} & \color{blue}\textbf{?} & \checkmark\\ 
    \checkmark& \color{blue}\textbf{?} & \checkmark & \checkmark & \color{blue}\textbf{?}\\ 
    \color{blue}\textbf{?}& \color{blue}\textbf{?} & \checkmark & \color{blue}\textbf{?}& \color{blue}\textbf{?}\\ 
    \color{blue}\textbf{?} &  \checkmark&  \color{blue}\textbf{?}& \checkmark & \color{blue}\textbf{?}\\ 
    \checkmark & \color{blue}\textbf{?} & \color{blue}\textbf{?} &\color{blue}\textbf{?} & \checkmark
    \end{bmatrix}
}_{\textbf{}}
    \neq
    \underbrace{ 
    \begin{bmatrix}
    \checkmark & \checkmark & \checkmark & \checkmark & \checkmark\\ 
    \checkmark& \checkmark & \checkmark & \checkmark & \checkmark\\ 
    \checkmark& \checkmark &  \checkmark& \checkmark & \checkmark\\ 
    \checkmark&\checkmark  & \checkmark & \checkmark & \checkmark\\ 
    \checkmark&\checkmark  & \checkmark & \checkmark & \color{blue}\textbf{?}\\ 
    \checkmark&  \checkmark& \checkmark & \checkmark & \color{blue}\textbf{?}
    \end{bmatrix}
}_{\textbf{}} 
    $

\end{figure}
\end{document}

答案1

\documentclass[border=10pt]{standalone} 
%%%<
\usepackage{verbatim}
%%%>
\begin{comment}
:Title: A Venn diagram with PDF blending
:Tags: Diagrams;Cookbook
:Author: Stefan Kottwitz
:Slug: venn

PDF blend mode requires TikZ version 3.0 or above.
\end{comment}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \begin{scope}[blend group = soft light]
    \fill[red!30!white]   ( 90:1.2) circle (2);
    \fill[green!30!white] (210:1.2) circle (2);
    \fill[blue!30!white]  (330:1.2) circle (2);
  \end{scope}
  \node at ( 90:2)    {Typography};
  \node at ( 210:2)   {Design};
  \node at ( 330:2)   {Coding};
  \node [font=\Large] {\LaTeX};
\end{tikzpicture}
\end{document}

答案2

我能够修复它。并且我更改了复选标记的样式。

\DeclareRobustCommand{\blackcheck}{%
    \tikz\fill[scale=0.4, color=black]
    (0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;%
}

解决“问题”的方法是这样的:

\begin{spacing}{0.5}
\end{spacing}

代码:

   \begin{figure}[htbp]
    \centering
  \begin{spacing}{0.5}


    $ \underbrace{
    \begin{bmatrix}
    \blackcheck & \color{blue}\textbf{?} & \blackcheck & \color{blue}\textbf{?}  & \color{blue}\textbf{?}\\ 
    \color{blue}\textbf{?}&\color{blue}\textbf{?}  & \color{blue}\textbf{?} & \color{blue}\textbf{?} & \blackcheck\\ 
    \blackcheck& \color{blue}\textbf{?} & \blackcheck & \blackcheck & \color{blue}\textbf{?}\\ 
    \color{blue}\textbf{?}& \color{blue}\textbf{?} & \blackcheck & \color{blue}\textbf{?}& \color{blue}\textbf{?}\\ 
    \color{blue}\textbf{?} &  \blackcheck&  \color{blue}\textbf{?}& \blackcheck & \color{blue}\textbf{?}\\ 
    \checkmark & \color{blue}\textbf{?} & \color{blue}\textbf{?} &\color{blue}\textbf{?} & \blackcheck
    \end{bmatrix}
}_{\text{Predicción de calificaciones}}
    \neq
    \underbrace{ 
    \begin{bmatrix}
    \blackcheck & \blackcheck & \blackcheck & \blackcheck & \blackcheck\\ 
    \blackcheck& \blackcheck & \blackcheck & \blackcheck & \blackcheck\\ 
    \blackcheck& \blackcheck &  \blackcheck& \blackcheck & \blackcheck\\ 
    \blackcheck&\blackcheck  & \blackcheck & \blackcheck & \blackcheck\\ 
    \blackcheck&\blackcheck  & \blackcheck & \blackcheck & \color{blue}\textbf{?}\\ 
    \blackcheck&  \blackcheck& \blackcheck & \blackcheck & \color{blue}\textbf{?}
    \end{bmatrix}
}_{\text{Regresión o clasificación}} 
    $
\end{spacing}

在此处输入图片描述

谢谢你们!

相关内容