.png)
표 형식과 정의된 너비를 사용하여 여러 행 셀에 방정식을 추가하고 싶습니다. 두 개의 다른 다중 행으로 구성된 셀을 제외하고 테이블의 모든 곳에서 작동했습니다. 이 경우 오류가 발생합니다. (첨부된 그림에서 셀은 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
다음 항목에 기사를 사용했습니다.
equation
나는 환경 안에 환경을 넣지 않을 것이고 tabular
이것이 오류 더미로 이어질 것이라고 생각했을 것입니다. 그래서 셀 내부에서 오류가 하나만 발생한다는 사실에 놀랐습니다 \multirow
. -column 유형 을 사용하고 있기 때문에 이것이 작동한다고 생각합니다 M
. 셀 equation
내부에 환경을 넣으려면 \multirow
당연히 해야 할 일은 환경을 equation
내부에 넣는 것입니다 minipage
. 이것을 사용하면 원하는 것을 수행하는 것 같습니다.
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}