![对齐问题(图中 3 个小页)](https://linux22.com/image/345012/%E5%AF%B9%E9%BD%90%E9%97%AE%E9%A2%98%EF%BC%88%E5%9B%BE%E4%B8%AD%203%20%E4%B8%AA%E5%B0%8F%E9%A1%B5%EF%BC%89.png)
我是 LaTeX 新手,我必须用 LaTeX 为我的课程重新创建一个文档。但我发现了问题。代码:
\documentclass[12pt]{article}
\usepackage{a4wide}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[czech]{babel}
\usepackage[T1]{fontenc}
\usepackage[demo]{graphicx}
\usepackage{caption}
\begin{document}
\begin{figure}
\begin{minipage}[b]{0.33\textwidth}
\centering\includegraphics[width=3cm]{box.eps}
\captionof{figure}{Obrazek}\label{obr4}
\end{minipage}%
\begin{minipage}[b]{0.20\textwidth}
A jeste nejaky text mezi obrazkem a tabulkou.
\end{minipage}
\begin{minipage}[b]{0.44\textwidth}
\centering
\begin{tabular}{|c|c|}
\hline
Den & Datum \\
\hline
\hline
Pondeli & 14.\,6. \\
Utery & 14.\,5. \\
Streda & 14.\,3. \\
Ctvrtek & 14.\,2. \\
Patek & 14.\,9. \\
\hline
\end{tabular}
\captionof{table}{Tabulka vedle obrazku}\label{tab1}
\end{minipage}
\end{figure}
\end{document}
它的外观如何以及它应该是什么样子:
问题描述:在我的工作中,文本的底线(在第二个小页面中)低于图片和表格的标题,我无法找出原因。请查看我的代码或提出任何其他问题。提前致谢。
答案1
影响\label
垂直对齐,将它们放置在里面标题:
\documentclass[12pt]{article}
\usepackage{a4wide}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[czech]{babel}
\usepackage[T1]{fontenc}
\usepackage[demo]{graphicx}
\usepackage{caption}
\begin{document}
\begin{figure}
\begin{minipage}[b]{0.33\textwidth}
\centering\includegraphics[width=3cm]{box.eps}
\captionof{figure}{Obrazek\label{obr4}}
\end{minipage}%
\begin{minipage}[b]{0.20\textwidth}
A jeste nejaky text mezi obrazkem a tabulkou.
\end{minipage}
\begin{minipage}[b]{0.44\textwidth}
\centering
\begin{tabular}{|c|c|}
\hline
Den & Datum \\
\hline
\hline
Pondeli & 14.\,6. \\
Utery & 14.\,5. \\
Streda & 14.\,3. \\
Ctvrtek & 14.\,2. \\
Patek & 14.\,9. \\
\hline
\end{tabular}
\captionof{table}{Tabulka vedle obrazku\label{tab1}}
\end{minipage}
\end{figure}
\end{document}