複数行(表形式)に方程式を追加する

複数行(表形式)に方程式を追加する

表形式と定義された幅を使用して、複数行のセルに数式を追加したいと思います。 2 つの複数行からなる複数行のセルを除いて、表のどこでも機能しました。 この場合、エラーが発生します。 (添付画像では、セルは HERE として示されています)。 解決方法をご存知ですか? ありがとうございます!ここに画像の説明を入力してください

    \RequirePackage[patch]{kvoptions} 
  \documentclass{DissOnlineLatex}
\usepackage{amsmath}
\usepackage{mathtools, eqparbox}
\usepackage[makeroom]{cancel}
\newcommand{\eqbox}[2][]{\eqmakebox[#1][l]{\mbox{#2~}}}
\usepackage{dsfont}
\usepackage{longtable}
\usepackage{supertabular}
\usepackage{tabu}
\usepackage{multirow, tabularx}
\usepackage{multicol}
\newcolumntype{T}{>{\centering\arraybackslash\hsize=0.4\hsize}X}
\newcolumntype{V}{>{\centering\arraybackslash\hsize=0.65\hsize}X}
\newcolumntype{s}{>{\hsize=0.2\hsize}X}
\newcolumntype{b}{>{\hsize=1.0\hsize}X}
\newcolumntype{d}{>{\hsize=0.5\hsize}X}
\usepackage{tabulary}
\usepackage{longtable}
\usepackage{array}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\newcolumntype{L}[1]{>{\raggedleft\arraybackslash}p{#1}}
\usepackage{lscape}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage[outdir=./]{epstopdf}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{float}
\usepackage{rotating}
\usepackage{SIunits}
\usepackage{blindtext}
\usepackage[latin1]{inputenc}
\usepackage[   
    backend=biber,
    style=numeric,
    sortcites,   
    sorting = anyvt,
    isbn=false,
    url=false,
    doi=false,
    eprint=false,
    backref,
    natbib,
    hyperref
  ]{biblatex}
  \begin{document}
  
\begin{table}[htb]
    \renewcommand\tabularxcolumn[1]{m{#1}}
    \caption{Necessary liquid-gas ratios for concave and convex equilibrium lines.}
    \label{table:Nec_LG}
    \setlength\abovedisplayskip{0pt}
    \setlength\belowdisplayskip{0pt}
    \centering
    \begin{tabular}{|c|M{4.0cm}|M{2.0cm}|M{3.0cm}|M{4.0cm}|}        
        \hline
        \textbf{LG} & \textbf{Description} &\textbf{Goal} & {\textbf{Case}} & {\textbf{LG=}}\\
        \hline
        \hline
        \multirow{2}[4]{*}{$LG_a$} & \multirow{2}[4]{=}{Minimal LG for maximal (de)humidification} & \multirow{2}[4]{*}{$\omega_t=\omega_t^*$} & Convex & \begin{equation}
        \frac{\partial \omega^*}{\partial \xi}\Bigr\rvert_{\xi = \xi_t}
        \label{eq:ratio_a_pinch_convex}
        \end{equation} \\
        \cline{4-5}          &       &       & Concave & \multirow{2}{*}{
            HERE
        } \\
        \cline{1-4}    \multirow{2}[4]{*}{$LG_d$} & \multirow{2}[4]{=}{Maximal LG for maximal dilution or regeneration} & \multirow{2}[4]{*}{$\xi_b=\xi_b^*$} & Concave &  \\
        \cline{4-5}          &       &       & Convex & \begin{equation}
        \frac{\partial \omega^*}{\partial \xi}\Bigr\rvert_{\xi = \xi_b^*} 
        \label{eq:ratio_d_pinch_convex} \end{equation} \\
        \hline
        \hline          
        \multirow{4}{*}{$LG_h$} & \multirow{4}{=}{Minimal LG for specified (de)-humidification} & \multirow{4}{*}{$\omega_t=\omega_{t,goal}$}& Straight, concave and convex $LG_h\le LG_d$& \begin{equation}
        \frac{\omega_b-\omega_{t,goal}}{\xi_b^*-\xi_t}
        \label{eq:ratio_h_pinch_concave}
        \end{equation}\\        
        \cline{4-5}
        &  &  & convex $LG_h\ge LG_d$ & \begin{equation}
        \frac{\omega^*(\hat{\xi})-\omega_{t,goal}}{\hat{\xi}-\xi_t}
        \label{eq:ratio_h_pinch_convex}
        \end{equation} \\
        \hline
        \multirow{4}{*}{$LG_r$} & \multirow{4}{=}{Maximal LG for specified  dilution or regeneration} & \multirow{4}{*}{$\xi_b=\xi_{b,goal}$}& Straight, concave and convex $LG_r\ge LG_a$& \begin{equation}
        \frac{\omega_b-\omega_t^*}{\xi_{b,goal}-\xi_t}
        \label{eq:ratio_r_pinch_concave}
        \end{equation}\\        
        \cline{4-5}
        &  &  & convex $LG_r<LG_a$ & \begin{equation}
        \frac{\omega_{b}-\omega^*(\hat{\xi})}{\xi_{b,goal}-\hat{\xi}}
        \label{eq:ratio_r_pinch_convex}
        \end{equation} \\
        \hline      
        \hline      
    \end{tabular}
\end{table}

\end{document}

答え1

私はドキュメント クラスを持っていないDissOnlineLatexので、以下では article を使用しました。

equation私は環境の中に環境を置くことはしませんtabularし、そうすると大量のエラーが発生すると考えていました。そのため、\multirowセル内にエラーが 1 つしか発生しないことに驚きました。これは、-column タイプを使用しているために機能しているのだと思います。セル内に環境Mを置きたい場合は、環境内にを置くのが当然です。これを使用すると、目的の結果が得られそうです。equation\multirowequationminipage

ここに画像の説明を入力してください

環境の幅minipageを に設定すると\linbewidth、理論上は正しい幅になるはずです。試行錯誤の結果、 を使用すると、0.97\linewidthこのセルの方程式番号が他の方程式番号と適切に揃うため、より効果的であることがわかりました。変更後の MWE は次のとおりです。

\RequirePackage[patch]{kvoptions}
\documentclass{article}
\usepackage{amsmath}
\usepackage{mathtools, eqparbox}
\usepackage[makeroom]{cancel}
\newcommand{\eqbox}[2][]{\eqmakebox[#1][l]{\mbox{#2~}}}
\usepackage{dsfont}
\usepackage{longtable}
\usepackage{supertabular}
\usepackage{tabu}
\usepackage{multirow, tabularx}
\usepackage{multicol}
\newcolumntype{T}{>{\centering\arraybackslash\hsize=0.4\hsize}X}
\newcolumntype{V}{>{\centering\arraybackslash\hsize=0.65\hsize}X}
\newcolumntype{s}{>{\hsize=0.2\hsize}X}
\newcolumntype{b}{>{\hsize=1.0\hsize}X}
\newcolumntype{d}{>{\hsize=0.5\hsize}X}
\usepackage{tabulary}
\usepackage{longtable}
\usepackage{array}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\newcolumntype{L}[1]{>{\raggedleft\arraybackslash}p{#1}}
\usepackage{lscape}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage[outdir=./]{epstopdf}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{float}
\usepackage{rotating}
\usepackage{SIunits}
\usepackage{blindtext}
\usepackage[latin1]{inputenc}
\usepackage[
    backend=biber,
    style=numeric,
    sortcites,
    sorting = anyvt,
    isbn=false,
    url=false,
    doi=false,
    eprint=false,
    backref,
    natbib,
    hyperref
  ]{biblatex}
  \begin{document}

\begin{table}[htb]
    \renewcommand\tabularxcolumn[1]{m{#1}}
    \caption{Necessary liquid-gas ratios for concave and convex equilibrium lines.}
    \label{table:Nec_LG}
    \setlength\abovedisplayskip{0pt}
    \setlength\belowdisplayskip{0pt}
    \centering
    \begin{tabular}{|c|M{4.0cm}|M{2.0cm}|M{3.0cm}|M{4.0cm}|}
        \hline
        \textbf{LG} & \textbf{Description} &\textbf{Goal} & {\textbf{Case}} & {\textbf{LG=}}\\
        \hline
        \hline
        \multirow{2}[4]{*}{$LG_a$} & \multirow{2}[4]{=}{Minimal LG for maximal (de)humidification} & \multirow{2}[4]{*}{$\omega_t=\omega_t^*$} & Convex & \begin{equation}
        \frac{\partial \omega^*}{\partial \xi}\Bigr\rvert_{\xi = \xi_t}
        \label{eq:ratio_a_pinch_convex}
        \end{equation} \\
        \cline{4-5}          &       &       & Concave & \multirow{2}{*}{
        \begin{minipage}{0.97\linewidth}
        \begin{equation}\label{E:}
\frac{\partial \omega^*}{\partial \xi}\Bigr\rvert_{\xi = \xi_b^*}
        \end{equation}
        \end{minipage}
        } \\
        \cline{1-4}    \multirow{2}[4]{*}{$LG_d$} & \multirow{2}[4]{=}{Maximal LG for maximal dilution or regeneration} & \multirow{2}[4]{*}{$\xi_b=\xi_b^*$} & Concave &  \\
        \cline{4-5}          &       &       & Convex & \begin{equation}
        \frac{\partial \omega^*}{\partial \xi}\Bigr\rvert_{\xi = \xi_b^*}
        \label{eq:ratio_d_pinch_convex} \end{equation} \\
        \hline
        \hline
        \multirow{4}{*}{$LG_h$} & \multirow{4}{=}{Minimal LG for specified (de)-humidification} & \multirow{4}{*}{$\omega_t=\omega_{t,goal}$}& Straight, concave and convex $LG_h\le LG_d$& \begin{equation}
        \frac{\omega_b-\omega_{t,goal}}{\xi_b^*-\xi_t}
        \label{eq:ratio_h_pinch_concave}
        \end{equation}\\
        \cline{4-5}
        &  &  & convex $LG_h\ge LG_d$ & \begin{equation}
        \frac{\omega^*(\hat{\xi})-\omega_{t,goal}}{\hat{\xi}-\xi_t}
        \label{eq:ratio_h_pinch_convex}
        \end{equation} \\
        \hline
        \multirow{4}{*}{$LG_r$} & \multirow{4}{=}{Maximal LG for specified  dilution or regeneration} & \multirow{4}{*}{$\xi_b=\xi_{b,goal}$}& Straight, concave and convex $LG_r\ge LG_a$& \begin{equation}
        \frac{\omega_b-\omega_t^*}{\xi_{b,goal}-\xi_t}
        \label{eq:ratio_r_pinch_concave}
        \end{equation}\\
        \cline{4-5}
        &  &  & convex $LG_r<LG_a$ & \begin{equation}
        \frac{\omega_{b}-\omega^*(\hat{\xi})}{\xi_{b,goal}-\hat{\xi}}
        \label{eq:ratio_r_pinch_convex}
        \end{equation} \\
        \hline
        \hline
    \end{tabular}
\end{table}

\end{document}

関連情報