LaTeX插入矩阵、表格、带斜线表头的表格、图片、超链接 |
您所在的位置:网站首页 › 制表格的图片 › LaTeX插入矩阵、表格、带斜线表头的表格、图片、超链接 |
LaTeX插入数组、表格、带斜线表头的表格、图片、超链接
插入矩阵
一个 5×5 的矩阵: \begin{equation}\nonumber \begin{aligned} \left[ \begin{array}{ccccc} 5.57677536e-01&-5.57677536e-01&-5.57677536e-01&2.58819045e-01&0.00000000e+00\\ -1.49429245e-01&1.49429245e-01&1.49429245e-01&9.65925826e-01&0.00000000e+00\\ 0.00000000e+00&0.00000000e+00&0.00000000e+00&0.00000000e+00&1.00000000e+00\\ 7.91098826e-01&5.70540801e-01&2.20558025e-01&5.55111512e-17&-0.00000000e+00\\ 2.02062650e-01&-5.84080355e-01&7.86143005e-01&-2.56739074e-16&0.00000000e+00 \end{array} \right] \end{aligned} \end{equation}运行结果如下图所示: 若干矩阵运算,可以按如下代码写: \begin{equation}\nonumber \begin{aligned} \mathbf{A}=&\left[ \begin{array}{ccccc} -2&2&2&-2&0\\ -2&2&2&-2&0\\ 2&-2&-2&-2&0\\ 0&0&0&0&2\\ 0&0&0&0&2 \end{array} \right]\\ \xrightarrow[r_{3}+r_{1}]{r_{2}-r_{1}} &\left[ \begin{array}{ccccc} -2&2&2&-2&0\\ 0&0&0&0&0\\ 0&0&0&-4&0\\ 0&0&0&0&2\\ 0&0&0&0&2 \end{array} \right]\\ \underrightarrow{r_{5}-r_{4}} &\left[ \begin{array}{ccccc} -2&2&2&-2&0\\ 0&0&0&0&0\\ 0&0&0&-4&0\\ 0&0&0&0&2\\ 0&0&0&0&0 \end{array} \right]\\ \xrightarrow[r_{4}\times(\frac{1}{2})]{r_{3}\times(-\frac{1}{4})} &\left[ \begin{array}{ccccc} -2&2&2&-2&0\\ 0&0&0&0&0\\ 0&0&0&1&0\\ 0&0&0&0&1\\ 0&0&0&0&0 \end{array} \right]\\ \xrightarrow[r_{1}-r_{3}]{r_{1}\times(-\frac{1}{2})} &\left[ \begin{array}{ccccc} 1&-1&-1&0&0\\ 0&0&0&0&0\\ 0&0&0&1&0\\ 0&0&0&0&1\\ 0&0&0&0&0 \end{array} \right] \end{aligned} \end{equation}运行结果如下图所示: 插入表格需要添加宏包 \usepackage{graphics} ht为常用的图片位置参数 h 为 here: 表示在这里插入t 为 top: 表示在页面顶部插入b 为 bottom: 表示在页面底部插入p 为 page: 表示插入到下一页 caption : 表示表格的标题cc|c : 表示1、2列间没有竖线,2、3列间有竖线,表格中内容居中\hline : 表示画一条横线\ : 表示换行 \begin{table}[ht] \begin{center} \caption{table} \begin{tabular}{cc|c} \hline A &B &C \\ \hline 1 &2 &3 \\ 2 &3 &4 \\ 3 &4 &5 \\ 4 &5 &6 \\ \hline \end{tabular} \end{center} \end{table}运行结果如下图所示: 插入带斜线表头的表格代码如下: \begin{table}[ht] \begin{center} \begin{tabular}{|c|cc|} \hline \diagbox{bottom}{top} & A & B \\ \hline 1 &2 &3 \\ 2 &3 &4 \\ 3 &4 &5 \\ \hline \end{tabular} \end{center} \end{table}运行结果如下图所示: 插入图片 需要添加宏包 \usepackage{graphics}ht为常用的图片位置参数 h 为 here: 表示在这里插入t 为 top: 表示在页面顶部插入b 为 bottom: 表示在页面底部插入p 为 page: 表示插入到下一页 scale:在文档中显示图片的比例caption:为图片添加标题 \begin{figure}[ht] \centering \includegraphics[scale=0.4]{picture.jpg} \caption{picture} \label{figl} \end{figure} 插入超链接需要添加宏包 \usepackage{hyperref} 在文档中以蓝色字显示描述,点击可跳转,代码如下: \href{https://blog.csdn.net/Albert_Bolt}{\color{blue}CSDN}运行结果如下: |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |