调整 displaymath 环境的大小或比例

调整 displaymath 环境的大小或比例

我想调整我使用displaymath环境制作的两个方案的大小。但是,我找不到任何有用的信息。我想将两个方案都放到一个页面中。

我的代码如下:

    \begin{figure}[H]
        \begin{minipage}[c]{1\textwidth}
            \centering

    \begin{center}
    \begin{displaymath}
        \text{Diagnoses } 
         \begin{cases}
            \text{Diagnoses}_1 & 
            \begin{cases}
                \text{Codes}_{1} &
                \begin{cases}
                    \text{Code}_{11}\\
                    \text{Code}_{12}\\  
                    \text{Code}_{13}\\\quad\quad\vdots\\ 
                    \text{Code}_{1Ncodes} &
                \end{cases}\\   
                \text{Code Events}_{1} &
                \begin{cases}
                    \text{Events}_{11}\\
                    \text{Events}_{12}\\    
                    \text{Events}_{13}\\\quad\quad\vdots\\ 
                    \text{Events}_{1Ncodes} &
                \end{cases}\\   

            \end{cases}
            \\
            \text{Diagnoses}_2\\
            \text{Diagnoses}_3\\\quad\quad\vdots\\ 
            \text{Diagnoses}_{Npatients}
        \end{cases}
    \end{displaymath}
    \end{center}

    \footnotetext{ ${Diagnoses}_i$   where  i=1..Npatients\\ ${Codes}_ i$ where i = 1..Npatients \\ ${Code}_{ij}$ where  i = 1..Npatients,    j = 1..Ncodes \\  ${Events}_{ij}$   where i = 1..Npatients,    j = 1..Ncodes}

    \end{minipage}
    \caption{Diagnoses structures per CRG and year extracted from original databases.}
    \label{scheme-diag_ppal/Secondary-final-db}

\end{figure}


\begin{figure}[H]
    \begin{minipage}[c]{1\textwidth}
        \centering
    \begin{center}

     \begin{displaymath}
    \text{Procedures }\begin{cases}
    \text{Procedures}_1 & 
    \begin{cases}
        \text{codes}_{1} &
        \begin{cases}
            \text{code}_{11}\\
            \text{code}_{12}\\  
            \text{code}_{13}\\\quad\quad\vdots\\ 
            \text{code}_{1Ncodes} &
        \end{cases}\\   
        \text{Code Events}_{1} &
        \begin{cases}
            \text{Events}_{11}\\
            \text{Events}_{12}\\    
            \text{Events}_{13}\\\quad\quad\vdots\\ 
            \text{Events}_{1Ncodes} &
        \end{cases}\\   

    \end{cases}
    \\
    \text{Procedures}_2\\
    \text{Procedures}_3\\\quad\quad\vdots\\ 
    \text{Procedures}_{Npatients}
    \end{cases}
    \end{displaymath}
\end{center}


    \footnotetext{ ${Diagnoses}_i$   where i=1..Npatients\\ ${Codes}_ i$ where i = 1..Npatients \\ ${Code}_{ij}$ where i = 1..Npatients,    j = 1..Ncodes \\  ${Events}_{ij}$  where i = 1..Npatients,    j = 1..Ncodes}

\end{minipage}
\caption{Procedures structures per CRG and year extracted from original databases.}
\label{scheme-proc_ppal/Secondary-final-db}
\end{figure}

答案1

您可以大大简化您的代码:minipage不需要 s,也不center需要环境。

此外,一个figure环境可以包含任意数量的\caption命令,因此您只需要一个(绝对没有[H]选项)。

\footnotesize环境启动后立即应用命令figure

我还将文本下标的外观修复为直立。

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{figure}
\footnotesize
\begin{displaymath}
\text{Diagnoses }
\begin{cases}
  \text{Diagnoses}_1 &
  \begin{cases}
    \text{Codes}_{1} &
    \begin{cases}
      \text{Code}_{11}\\
      \text{Code}_{12}\\  
      \text{Code}_{13}\\
      \quad\quad\vdots\\ 
      \text{Code}_{1\text{Ncodes}}
    \end{cases}\\   
    \text{Code Events}_{1} &
    \begin{cases}
      \text{Events}_{11}\\
      \text{Events}_{12}\\    
      \text{Events}_{13}\\
      \quad\quad\vdots\\ 
      \text{Events}_{1\text{Ncodes}}
    \end{cases}\\
  \end{cases}\\
  \text{Diagnoses}_2\\
  \text{Diagnoses}_3\\\quad\quad\vdots\\ 
  \text{Diagnoses}_{\text{Npatients}}
\end{cases}
\end{displaymath}

\medskip\footnoterule

Diagnoses$_i$ where $i=1..\text{Npatients}$\\
Codes$_i$ where $i=1..\text{Npatients}$\\
Code$_{ij}$ where $i=1..\text{Npatients}$, $j=1..\text{Ncodes}$\\
Events$_{ij}$ where $i=1..\text{Npatients}$, $j=1..\text{Ncodes}$

\caption{Diagnoses structures per CRG and year extracted from original databases.}
\label{scheme-diag_ppal/Secondary-final-db}

\begin{displaymath}
\text{Procedures }
\begin{cases}
  \text{Procedures}_1 &
  \begin{cases}
    \text{codes}_{1} &
    \begin{cases}
      \text{code}_{11}\\
      \text{code}_{12}\\  
      \text{code}_{13}\\
      \quad\quad\vdots\\ 
      \text{code}_{1\text{Ncodes}}
    \end{cases}\\   
    \text{Code Events}_{1} &
    \begin{cases}
      \text{Events}_{11}\\
      \text{Events}_{12}\\    
      \text{Events}_{13}\\
      \quad\quad\vdots\\ 
      \text{Events}_{1\text{Ncodes}}
    \end{cases}\\
  \end{cases}\\
  \text{Procedures}_2\\
  \text{Procedures}_3\\
  \quad\quad\vdots\\ 
  \text{Procedures}_{\text{Npatients}}
\end{cases}
\end{displaymath}

\medskip\footnoterule

Diagnoses$_i$ where $i=1..\text{Npatients}$\\
Codes$_i$ where $i=1..\text{Npatients}$\\
Code$_{ij}$ where $i=1..\text{Npatients}$, $j=1..\text{Ncodes}$\\
Events$_{ij}$ where $i=1..\text{Npatients}$, $j=1..\text{Ncodes}$

\caption{Procedures structures per CRG and year extracted from original databases.}
\label{scheme-proc_ppal/Secondary-final-db}
\end{figure}

\end{document}

在此处输入图片描述

相关内容