Latex排版遇到的常见问题及解决方法

1. 图片/ PDF 裁剪

1.1 PPT 画图转PDF

在这里插入图片描述

1.2 PPT裁剪

将输出的PDF文件裁剪成合适尺寸,可借助 pdfresizer

2. 表格内的文本换行问题

2.1 表格跨行显示

将一个宽表格分割到两个页面中,手动将表格分为两部分。在 LaTeX 中,创建两个独立的 tabular 环境,并将它们放置在连续的两页上。下面是一个简化的示例,说明如何将一个宽表格分为两部分:

% Table part 1
\begin{table}[!htbp]
\renewcommand\tabularxcolumn[1]{m{#1}}
\centering
\caption{Experimental validation of the SOFCs afterburners (Part 1).}
\label{table4_part1}
\begin{tabularx}{\textwidth}{@{}l>{\raggedright\arraybackslash}X>{\raggedright\arraybackslash}X>{\raggedright\arraybackslash}Xr@{}}
\toprule
\textbf{Research Subject} & \textbf{Modeling Approach} & \textbf{Phenomenon Description} & \textbf{Research Findings} & \textbf{Ref.} \\
\midrule
% ... Include the first half of the rows here ...
\bottomrule
\end{tabularx}
\end{table}

\clearpage % Move to the next page for the second part of the table

% Table part 2
\begin{table}[!htbp]
\renewcommand\tabularxcolumn[1]{m{#1}}
\centering
\caption{Experimental validation of the SOFCs afterburners (Part 2).}
\label{table4_part2}
\begin{tabularx}{\textwidth}{@{}l>{\raggedright\arraybackslash}X>{\raggedright\arraybackslash}X>{\raggedright\arraybackslash}Xr@{}}
\toprule
\textbf{Research Subject (continued)} & \textbf{Modeling Approach (continued)} & \textbf{Phenomenon Description (continued)} & \textbf{Research Findings (continued)} & \textbf{Ref.} \\
\midrule
% ... Include the second half of the rows here ...
\bottomrule
\end{tabularx}
\end{table}

2.2 表格内文本换行,使用 ‘makecell’ 包 换行

添加宏包

\usepackage{makecell}

然后,可以在表格中使用 \makecell 命令:

\begin{tabular}{|c|}
  \hline
  \makecell{第一行文本\\第二行文本} \\
  \hline
\end{tabular}

2.2 表格内文本添加 圆点 ·

使用 \textbullet
示例:

\documentclass{article}
\begin{document}

\begin{table}[h]
\centering
\begin{tabular}{|l|l|}
\hline
\textbf{项目}      & \textbf{描述}           \\ \hline
\textbullet{} 项目1 & 第一个项目的描述 \\ \hline
\textbullet{} 项目2 & 第二个项目的描述 \\ \hline
\textbullet{} 项目3 & 第三个项目的描述 \\ \hline
\end{tabular}
\caption{使用 \textbackslash{}textbullet 的表格示例}
\label{table:example}
\end{table}

\end{document}

未完待续…

  • 4
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值