图表混排,哪里错了呢。

2019-10-28 13:53发布

```tex \documentclass[11pt,a4paper]{article} \usepackage{graphicx} \begin{document} \begin{figure} ...

```tex \documentclass[11pt,a4paper]{article} \usepackage{graphicx} \begin{document} \begin{figure} \begin{minipage}[b]{.5\textwidth} \centering \includegraphics[width=.4\textwidth]{lion.jpg} \caption{\TeX\ Live 吉祥物狮子} \end{minipage}% \begin{minipage}[b]{.5\textwidth} \centering \begin{tabular}{|*{5}{c|}} \hline 1996 & 1998 & 1999 & 2000 & 2001 \\ \hline 2002 & 2003 & 2004 & 2005 & 2007 \\ \hline 2008 & 2009 & 2010 & \dots & \\ \hline \end{tabular} \captionsetup{type=table} \caption{\TeX\ Live 的版本} \end{minipage} \end{figure} \end{document} ``` ![](https://wenda.latexstudio.net/data/attach/191028/e3q2jKqH.jpg)
该问题目前已经被作者或者管理员关闭, 无法添加新回复
3条回答
WoodMan
2019-10-28 14:23
\documentclass[11pt,a4paper]{article} \usepackage{graphicx} \usepackage{caption} \begin{document} \begin{figure} \begin{minipage}[b]{.5\textwidth} \centering \includegraphics[width=.4\textwidth]{lion.jpg} \caption{\TeX\ Live 吉祥物狮子} \end{minipage}% \begin{minipage}[b]{.5\textwidth} \centering \begin{tabular}{|*{5}{c|}} \hline 1996 & 1998 & 1999 & 2000 & 2001 \\ \hline 2002 & 2003 & 2004 & 2005 & 2007 \\ \hline 2008 & 2009 & 2010 & \dots & \\ \hline \end{tabular} \captionsetup{type=table} \caption{\TeX\ Live 的版本} \end{minipage} \end{figure} \end{document} 编译,现错误如下: (c:/texlive/2019/texmf-dist/tex/latex/caption/caption3.sty)) No file mwe_figuretable.aux. Runaway argument? "lion.jpg" \edef \Gin@ext {\Gin@sepdefault \filename@ext }\ifx \Gin@ext \ETC. ! Paragraph ended before \@tempa was complete. \par l.24 ? Process has been terminated ... ![](https://wenda.latexstudio.net/data/attach/191028/Ksa2iHGk.jpg)

一周热门 更多>