我需要交换第一列和第二列。我不知道该把 A 放在哪里!上面的表格是原始表格。下面的表格是我正在处理的表格。
\documentclass[12pt, onecolumn]{article}
\usepackage{multicol, multirow, array}
\usepackage{tensor}
\usepackage{calc}
\usepackage{colortbl}
\usepackage{geometry}
\usepackage{enumitem}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{arydshln}
\usepackage{booktabs}
\usepackage{bigstrut}
\usepackage{bm}
\geometry{tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in}
\pagestyle{fancy}
\thispagestyle{plain}
\fancyhead{}
\lhead{}
\chead{\fontsize{7}{12} \selectfont \textbf{Remarks on Notation, Size, and Shape of the Operating Matricies and Row and Column Vectors in ROSE} \\ \fontsize{6}{9} \selectfont Carl Ledbetter 3 June 2019}
\rhead{}
\title {Remarks on Notation, Size, and Shape of the Operating Matricies and Row and Column Vectors in ROSE}
\author{Carl Ledbetter}
\date{3 June 2019}
\thispagestyle{plain}
\begin{document}
\maketitle
\[
\begin{array}{|>{\centering\bigstrut$}p{3cm}<{$}|>{\centering$}p{3cm}<{$}|c|}
\hline
& & \\
A & & \hat b \\
& & \\
\cdashline{1-1} \cdashline{3-3}
\bar c &\multirow{-4}{*}{$I_{(m+1)}$} & d\\
\hline
\bar 0_n & \bar 0_{(m+1)} & 0\\
\hline
\end{array}
\] \
\[
\begin{array}{|>{\centering\bigstrut$}p{3cm}<{$}|>{\centering$}p{3cm}<{$}|c|}
\hline
& &\\
\multirow{-4}{*}{$I_{(m+1)}$} && \hat b \\
& & \\
\cdashline{2-2} \cdashline{3-3}
& \bar c & d\\
\hline
\bar 0_{(m+1)} & \bar 0_n & 0\\
\hline
\end{array}
\] \
\end{document}
答案1
希望我正确理解了这个问题。
\documentclass{article}
\usepackage{multirow,array}
\usepackage{mathtools}
\usepackage{arydshln}
\usepackage{bigstrut}
\begin{document}
\[
\begin{array}{|>{\centering\bigstrut$}p{3cm}<{$}|>{\centering$}p{3cm}<{$}|c|}
\hline
& & \\
A & & \hat b \\
& & \\
\cdashline{1-1} \cdashline{3-3}
\bar c &\multirow{-4}{*}{$I_{(m+1)}$} & d\\
\hline
\bar 0_n & \bar 0_{(m+1)} & 0\\
\hline
\end{array}
\] \
%1st and 2nd column switched around:
\[
\begin{array}{| >{\centering$}p{3cm}<{$} | >{\centering\bigstrut$}p{3cm}<{$} | c |}
\hline
& & \\
& A & \hat b \\
& & \\
\cdashline{2-2} \cdashline{3-3} %or \cdashline{2-3}
\multirow{-4}{*}{$I_{(m+1)}$} & \bar c & d \\
\hline
\bar 0_{(m+1)} & \bar 0_n & 0 \\
\hline
\end{array}
\] \
\end{document}
您\cdashline{2-3}
也可以在第二个中这样做,但是第三列中的梯度看起来与第一张图片有点不同,不知道您是否需要两个版本或只需要翻转的版本。