我想在表格后显示一个图形(其中有介绍 blablablabatrtrtrt...),为此我不使用环境,figure
以便图形保持在原位,但它显示在表格之前。通常,即使我使用了环境,table
它也不应该影响仅浮动的段落
\documentclass[review]{elsarticle}
\DeclareGraphicsExtensions{.pdf,.gif,.jpg}
\usepackage{lineno}
\modulolinenumbers[5]
\usepackage{graphicx}
\usepackage{amssymb,amsmath,nccmath}
\usepackage{cclicenses}
%%\usepackage{caption} % is loaded automatically by 'subcaption'
\usepackage{lscape,array}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} % centered 'p' col.
%%\usepackage{natbib} % is loaded automatically by elsarticle doc class
\usepackage{subcaption}
\usepackage{framed} % Framing content
\usepackage{nomencl} % Nomenclature package
\makenomenclature
\setlength{\nomitemsep}{-\parskip}\usepackage{booktabs,multirow}
%% Load the next two packages *last*:
\usepackage[colorlinks]{hyperref}
\usepackage[nameinlink]{cleveref}
\journal{Journal of \LaTeX\ Templates}
\bibliographystyle{elsarticle-num}
\begin{document}
\section{Introduction}
bhellohellohello\\hellohellohello\\
\begin{table}[!h]
\centering
\begin{tabular}{@{} c *{3}{C{0.45cm}} *{2}{C{1.69cm}} c c @{}}
\toprule
Voltage N\textsuperscript{o} & \multicolumn{3}{c}{Switching states} &
\multicolumn{2}{c}{Voltage output} & Magnitude & Phase \\
\cmidrule(lr){2-4} \cmidrule(lr){5-6}
$V_n$ & $S_a$ & $S_b$ & $S_c$ & $V_{\alpha}$ & $V_{\beta}$ &
$U_{\mathrm{ref}}$ & $\alpha$ \\
\midrule
$V_{0o}$ & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
$V_{0p}$ & 1 & 1 & 1 & 0 & 0 & 0 & 0 \\
$V_{0n}$ & -1 & -1 & -1 & 0 & 0 & 0 & 0 \\
$V_{1p}$ & 1 & 0 & 0 & $U_{dc}/3$ & 0 & $U_{dc}/3$
& 0 \\
$V_{1n}$ & 0 & -1 & -1 & $U_{dc}/3$ & 0 & $U_{dc}/3$ & 0
\\
$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}$ $U_{dc}$/3 & 5$\pi$/6 \\
$V_{10}$ & -1 & 0 & 1 & -$U_{dc}$/2 & -$\sqrt{3}$ $U_{dc}/6$ &
$\sqrt{3}$ $U_{dc}$/3 & 7$\pi$/6 \\
$V_{11}$ & 0 & -1 & 1 & 0 & -$\sqrt{3}$ $U_{dc}/3$ & $\sqrt{3}$
$U_{dc}$/3 & 3$\pi$/2 \\
$V_{12}$ & 1 & -1 & 0 & $U_{dc}$/2 & -$\sqrt{3}$ $U_{dc}/6$ &
$\sqrt{3}$ $U_{dc}$/3 & 11$\pi$/6 \\
$V_{13}$ & 1 & -1 & -1 & 2$U_{dc}$/3 & 0 & 2 $U_{dc}$/3 & 0 \\
$V_{14}$ & 1 & 1 & -1 & $U_{dc}$/3 & $\sqrt{3}$ $U_{dc}/3$ &
2$U_{dc}$/3 & $\pi$/3 \\
$V_{15}$ & -1 & 1 & -1 & -$U_{dc}$/3 & $\sqrt{3}$ $U_{dc}/3$ &
2$U_{dc}$/3 & 2$\pi$/3 \\
$V_{16}$ & -1 & 1 & 1 & -2$U_{dc}$/3 & 0 & 2$U_{dc}$/3 & $\pi$ \\
$V_{17}$ & -1 & -1 & 1 & -$U_{dc}$/3 & -$\sqrt{3}$ $U_{dc}/3$ &
2$U_{dc}$/3 & 4$\pi$/3 \\
$V_{18}$ & 1 & -1 & 1 & $U_{dc}$/3 & -$\sqrt{3}$ $U_{dc}/3$ &
2$U_{dc}$/3 & 5$\pi$/3 \\
\bottomrule
\end{tabular}
\end{table}
\begin{center}
\includegraphics[scale=0.500]{imagetest.png}
\end{center}
\end{document}
答案1
好了,结束吧:我猜,你没有读过我编辑的 回答你的第二个问题。请重新阅读,重新思考,然后检查以下 MWE:
\documentclass[review]{elsarticle}
\DeclareGraphicsExtensions{.pdf,.gif,.jpg}
\usepackage{lineno}
\modulolinenumbers[5]
\usepackage{graphicx}
\usepackage{showframe,blindtext}
\usepackage{longtable} % <==============================================
\usepackage{amssymb,amsmath,nccmath}
\usepackage{cclicenses}
%%\usepackage{caption} % is loaded automatically by 'subcaption'
\usepackage{lscape,array}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} % centered 'p' col.
%%\usepackage{natbib} % is loaded automatically by elsarticle doc class
\usepackage{subcaption}
\usepackage{framed} % Framing contents
\usepackage{nomencl} % Nomenclature package
\makenomenclature
\setlength{\nomitemsep}{-\parskip}\usepackage{booktabs,multirow}
%% Load the next two packages *last*:
\usepackage[colorlinks]{hyperref}
\usepackage[nameinlink]{cleveref}
\journal{Journal of \LaTeX\ Templates}
\bibliographystyle{elsarticle-num}
\begin{document}
\blindtext
\begin{longtable}{@{} c *{3}{C{0.45cm}} *{2}{C{1.69cm}} c c @{}} % <=============
\toprule
Voltage N\textsuperscript{o} & \multicolumn{3}{c}{Switching states} &
\multicolumn{2}{c}{Voltage output} & Magnitude & Phase \\
\cmidrule(lr){2-4} \cmidrule(lr){5-6}
$V_n$ & $S_a$ & $S_b$ & $S_c$ & $V_{\alpha}$ & $V_{\beta}$ &
$U_{\mathrm{ref}}$ & $\alpha$ \\
\midrule
$V_{0o}$ & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
$V_{0p}$ & 1 & 1 & 1 & 0 & 0 & 0 & 0 \\
$V_{0n}$ & -1 & -1 & -1 & 0 & 0 & 0 & 0 \\
$V_{1p}$ & 1 & 0 & 0 & $U_{dc}/3$ & 0 & $U_{dc}/3$
& 0 \\
$V_{1n}$ & 0 & -1 & -1 & $U_{dc}/3$ & 0 & $U_{dc}/3$ & 0
\\
$V_{2p}$ & 1 & 1 & 0 & $U_{dc}/6$ & $\sqrt{3}\,U_{dc}/6$ & $U_{dc}/3$
& $\pi/3$ \\
$V_{2n}$ & 0 & 0 & -1 & $U_{dc}$/6 & $\sqrt{3}$ $U_{dc}/6$ &
$U_{dc}$/3 & $\pi/3$ \\
$V_{3p}$ & 0 & 1 & 0 & -$U_{dc}$/6 & $\sqrt{3}$ $U_{dc}/6$ &
$U_{dc}$/3 & 2$\p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}$/2 & -$\sqrt{3}$ $U_{dc}/6$ &
$\sqrt{3}$ $U_{dc}$/3 & 11$\pi$/6 \\
$V_{13}$ & 1 & -1 & -1 & 2$U_{dc}$/3 & 0 & 2 $U_{dc}$/3 & 0 \\
$V_{14}$ & 1 & 1 & -1 & $U_{dc}$/3 & $\sqrt{3}$ $U_{dc}/3$ &
2$U_{dc}$/3 & $\pi$/3 \\
$V_{15}$ & -1 & 1 & -1 & -$U_{dc}$/3 & $\sqrt{3}$ $U_{dc}/3$ &
2$U_{dc}$/3 & 2$\pi$/3 \\
$V_{16}$ & -1 & 1 & 1 & -2$U_{dc}$/3 & 0 & 2$U_{dc}$/3 & $\pi$ \\
$V_{17}$ & -1 & -1 & 1 & -$U_{dc}$/3 & -$\sqrt{3}$ $U_{dc}/3$ &
2$U_{dc}$/3 & 4$\pi$/3 \\
$V_{18}$ & 1 & -1 & 1 & $U_{dc}$/3 & -$\sqrt{3}$ $U_{dc}/3$ &
2$U_{dc}$/3 & 5$\pi$/3 \\
\bottomrule
\end{longtable} % <=====================================================
\blindtext
\begin{center}
\includegraphics[scale=0.500]{example-image}
\end{center}
\blindtext
\end{document}
然后,在编译之后,你会发现第二页上首先是表格,然后是文本,然后是图像。我想这就是你想要的吧?请看,我曾经longtable
得到一个可以在页面末尾中断的表格...
结果第 2 页是: