我在表格之前和之後都有文本,但表格之後的文本不像以前那樣左對齊。我怎樣才能解決這個問題?
\documentclass[a4paper,10pt]{article}
\usepackage{geometry, mhchem, textgreek, tabularx, longtable}
\geometry{a4paper, left=2cm, right=2cm, top=1.5cm, bottom=3cm }
\title{Staining of differentiated macrophages\vspace*{-1.5cm}}
\date{}
\begin{document}
\maketitle
\setcounter{table}{0}
\section{Reagents}
\section{Methods}
test text
\begin{table}[h]
\centering
\caption{Staining panel for Milteny MacsQuant 10 (8 colors)}
\label{tab:stain_macs}
\begin{tabularx}{\textwidth}{|X|X|X|X|X|X|X|X|}
\hline
&CD14&CD11b&CD206&CD86&CD80&CD163&L/D \\
\hline
Fluorophore&PacificBue&BV510&FITC&PE&PE/Cy7&AF647&NearIR \\
\hline
Laser&Violet&Violet&Blue&Blue&Blue&Red&Red \\
\hline
Filter&V1&V1&B1&B2&B4&R1&R2 \\
\hline
Highest in&Mono&Mono/M0&M2&M1&M1&M2&\\
\hline
Dilution&1:80&\textit{1:50}&1:50&\textit{1:50}&1:50&\textit{1:50}&\textit{1:50}\\
\hline
\end{tabularx}
\end{table}
test text
如果我在表格後使用換行符,\\
它可以糾正此問題,但只要表格前面有文本,如果我刪除第一個“測試文本”,我會收到錯誤“這裡沒有行結束。 t”