首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Latex中的迷你页无法编译

Latex中的迷你页无法编译
EN

Stack Overflow用户
提问于 2021-09-02 16:28:11
回答 1查看 1K关注 0票数 0

我想在我的文章tex文件上/下面放一个表格和图表,因为它们是相关的。到目前为止,它已经在这个文档中工作了,但是突然之间它就不能工作了,而且我无法在后面编译。请帮帮忙。

代码语言:javascript
运行
复制
\begin{document}

\begin{minipage}[b]{1\textwidth}

\centering
\captionof{table}{Best Case Scenario A IC values when synthesis, desiccation (and algae collection) have been excluded from the system.}
\label{tab:BestA_synthANDdesiccation_excluded}
\begin{tabular}{@{}llcc@{}}
\toprule
IC     & Unit         & Total (no collection) & Total (with collection) \\ \midrule
CC     & kg   CO2 eq  & -1.1E+03                                  & -7.0E+02                \\
Ecotox & CTUe         & 2.1E+02                                   & 1.4E+04                 \\
HTnc   & CTUh         & 6.9E-08                                   & 1.4E-05                 \\
PM     & disease inc. & 3.7E-07                                   & 1.0E-05                 \\
RUf    & MJ           & 9.3E+01                                   & 5.6E+03                 \\
RUm    & kg Sb eq     & 8.0E-06                                   & 3.6E-02                 \\ \bottomrule
\end{tabular}
\end{minipage}
\begin{minipage}
    \includegraphics[width=1\textwidth]{Pictures/A_best_nosynANDnodesiccationANDnocollection.png}
    \captionof{figure}{Characterisation of the sub-systems in best-case scenario A when synthesis, desiccation and algae collection have been excluded from the system boundaries. Method: EF 3.0 Method (adapted) V1.00}
    \label{fig:Abest_nosyn_nodesiccation}
\end{minipage}
\end{document}
EN

回答 1

Stack Overflow用户

发布于 2021-09-02 19:25:13

主要问题是,迷你页面有一个强制参数来指定宽度,所以您需要

代码语言:javascript
运行
复制
\begin{minipage}{\linewidth}

其他一些评论:

  • 最好不要为图像\includegraphics[width=1\textwidth]{Pictures/A_best_nosynANDnodesiccationANDnocollection}指定文件类型。如果您有不同格式的相同图像,则乳胶乳将包括最适合编译文档

的引擎。

  • ,除非您的小页面位于figuretable这样的浮动环境中,否则您希望在小页面之前添加\noindent。如果没有这一点,您的行中就没有足够的空间来适合带有\textwidth

的小型页面。

如果您想让表中的数字对齐,请查看包。

代码语言:javascript
运行
复制
\documentclass{article}

\usepackage{caption}
\usepackage{booktabs}
\usepackage{graphicx}

\begin{document}

\noindent%
\begin{minipage}[b]{1\textwidth}
\centering
\captionof{table}{Best Case Scenario A IC values when synthesis, desiccation (and algae collection) have been excluded from the system.}
\label{tab:BestA_synthANDdesiccation_excluded}
\begin{tabular}{@{}llcc@{}}
\toprule
IC     & Unit         & Total (no collection) & Total (with collection) \\ \midrule
CC     & kg   CO2 eq  & -1.1E+03                                  & -7.0E+02                \\
Ecotox & CTUe         & 2.1E+02                                   & 1.4E+04                 \\
HTnc   & CTUh         & 6.9E-08                                   & 1.4E-05                 \\
PM     & disease inc. & 3.7E-07                                   & 1.0E-05                 \\
RUf    & MJ           & 9.3E+01                                   & 5.6E+03                 \\
RUm    & kg Sb eq     & 8.0E-06                                   & 3.6E-02                 \\ \bottomrule
\end{tabular}
\end{minipage}
\begin{minipage}{\linewidth}
    \includegraphics[width=1\textwidth]{example-image-duck}
    \captionof{figure}{Characterisation of the sub-systems in best-case scenario A when synthesis, desiccation and algae collection have been excluded from the system boundaries. Method: EF 3.0 Method (adapted) V1.00}
    \label{fig:Abest_nosyn_nodesiccation}
\end{minipage}
\end{document}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69033998

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档