表格未出现在文档中

表格未出现在文档中

我在编译文档时无法显示表格。不确定是缺少包还是未定义页面宽度。

\documentclass[a4paper, 10pt]{article}
\usepackage[left=2cm, right=2cm, top=3cm, bottom=3cm]{geometry}
\usepackage{setspace} \onehalfspacing
\renewcommand{\rmdefault}{ptm} % Formatting
\usepackage{lipsum}
\usepackage{graphicx}
\graphicspath{ {Figures/} }
\usepackage{mathptmx} % Times math font
\usepackage{mciteplus} % Bibliography preferences
\usepackage{rsc} 
\usepackage[nottoc,notlof,notlot]{tocbibind} 
\renewcommand\bibname{references}
\usepackage[font=small, labelfont=bf]{caption}
\usepackage{esdiff}
\usepackage{amsmath}
\setlength\parindent{1.0cm}
\usepackage{subfigure}
\usepackage[export]{adjustbox}
\usepackage{titlesec}
\usepackage{tabularx}
\usepackage{url}
\usepackage{multicol}

这是我想要制作的表格

\begin{table}[b]
    \caption{List of sequences} 
    \label{sequences}\ centering
    \centering
    \begin{tabular}[t]{c c c}
        \hline\hline \\ [-1.5ex]
        Experiment & Strand & Sequence \\ [0.5ex]
        \hline \\ [-1.5ex]
        Bulk & Q & "TTGCTAGGTCTCGCTATGAGGATCTAT"  \\ [0.5ex]
        Vesicles & B & “GTGTTGAGTAGTGAGATGTTTTTTTAGCGAGACCTAGCAATTGAAGTGGAGAAGAGC” \\ [0.5ex]
        \hline
    \end{tabular}
\end{table}

如果您有任何建议,请告诉我。我对此还很陌生,所以如果这是一个相当简单的问题,请原谅。

编辑:这似乎是 multicol 包的一个问题,它不允许使用浮点数和 marginpars?这里有一个示例文档,其中似乎没有显示。

\documentclass[a4paper, 10pt]{article}
\usepackage[left=2cm, right=2cm, top=3cm, bottom=3cm]{geometry}
\usepackage{setspace} \onehalfspacing
\renewcommand{\rmdefault}{ptm} % Formatting
\usepackage{lipsum}
\usepackage{graphicx}
\graphicspath{ {Figures/} }
\usepackage{mathptmx} % Times math font
\usepackage{mciteplus} % Bibliography preferences
\usepackage{rsc} 
\usepackage[nottoc,notlof,notlot]{tocbibind} 
\renewcommand\bibname{references}
\usepackage[font=small, labelfont=bf]{caption}
\usepackage{esdiff}
\usepackage{amsmath}
\setlength\parindent{1.0cm}
\usepackage{subfigure}
\usepackage[export]{adjustbox}
\usepackage{titlesec}
\usepackage{tabularx}
\usepackage{url}
\usepackage{multicol}

\titleformat{\chapter}[block]
  {\normalfont\huge\bfseries}{\thechapter}{20pt}{}
\titlespacing*{\chapter}
  {0pt}{20pt}{20pt}

\titleformat{\subsubsection}
  {\itshape\normalsize}{\thesubsubsection}{1em}{}

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

%trim={<left> <lower> <right> <upper>}

\title{Mini 1 project}
\author{JoshuaT31524}
\date{\today}

\begin{document}


\maketitle

    \begin{abstract}

 Insert amazing abstract here. 


    \end{abstract}

\section*{Acknowledgements}
Many thanks to my supervisor, etc

\begin{multicols}{2}

\subsection{Preparation of unilamellar vesicles by extrusion}

200 $\mu$L of 1,2-dioleoyl-sn-glycero-3-phosphocholine (DOPC) was placed in a vacuum desiccator for 1 h before being reconsituted in 500 $\mu$L of sucrose. The lipid solution was then freeze-thawed four times in liquid nitrogen and extruded through a 1 $\mu$m membrane multiple times to yield the vesicles suspended in sucrose.  

\begin{table}[b]
    \caption{A table displaying the sequences for the strands which make up the DNA receptors for both the bulk and vesicle experiments} 
    \label{sequences}\centering
    \centering
    \begin{tabular}[t]{c c c}
        \hline\hline \\ [-1.5ex]
        Experiment & Strand & Sequence \\ [0.5ex]
        \hline \\ [-1.5ex]
        Bulk & Q & "TTGCTAGGTCTCGCTATGAGGATCTAT"  \\ [0.5ex]
        Vesicles & B & “GTGTTGAGTAGTGAGATGTTTTTTTAGCGAGACCTAGCAATTGAAGTGGAGAAGAGC” \\ [0.5ex]
        \hline
    \end{tabular}
\end{table}

\end{multicols}
\end{document}

答案1

只需使用环境table*即可在下一页上获取包含两列/所有列的表格。在下面的 MWE 中,我添加了命令\lipsum来获取一些盲文。

使用以下 MWE(请参阅<======重要的代码更改)

\documentclass[a4paper, 10pt]{article}
\usepackage[left=2cm, right=2cm, top=3cm, bottom=3cm]{geometry}
\usepackage{setspace} \onehalfspacing
\renewcommand{\rmdefault}{ptm} % Formatting
\usepackage{lipsum}
\usepackage{graphicx}
\graphicspath{ {Figures/} }
\usepackage{mathptmx} % Times math font
\usepackage{mciteplus} % Bibliography preferences
\usepackage{rsc} 
\usepackage[nottoc,notlof,notlot]{tocbibind} 
\renewcommand\bibname{references}
\usepackage[font=small, labelfont=bf]{caption}
\usepackage{esdiff}
\usepackage{amsmath}
\setlength\parindent{1.0cm}
%\usepackage{subfigure} % outdated
\usepackage[export]{adjustbox}
\usepackage{titlesec}
\usepackage{tabularx}
\usepackage{url}
\usepackage{multicol}

\titleformat{\chapter}[block]
  {\normalfont\huge\bfseries}{\thechapter}{20pt}{}
\titlespacing*{\chapter}
  {0pt}{20pt}{20pt}

\titleformat{\subsubsection}
  {\itshape\normalsize}{\thesubsubsection}{1em}{}

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

%trim={<left> <lower> <right> <upper>}

\title{Mini 1 project}
\author{JoshuaT31524}
\date{\today}

\begin{document}


\maketitle

    \begin{abstract}

 Insert amazing abstract here. 


    \end{abstract}

\section*{Acknowledgements}
Many thanks to my supervisor, etc

\begin{multicols}{2}

\subsection{Preparation of unilamellar vesicles by extrusion}

200 $\mu$L of 1,2-dioleoyl-sn-glycero-3-phosphocholine (DOPC) was placed 
in a vacuum desiccator for 1 h before being reconsituted in 500 $\mu$L 
of sucrose. The lipid solution was then freeze-thawed four times in 
liquid nitrogen and extruded through a 1 $\mu$m membrane multiple times 
to yield the vesicles suspended in sucrose.  

\lipsum[1-4] % <========================================================

\begin{table*}[b] % t for top also possible <===========================
    \caption{A table displaying the sequences for the strands which make up the DNA receptors for both the bulk and vesicle experiments} 
    \label{sequences}\centering
    \centering
    \begin{tabular}[t]{c c c}
        \hline\hline \\ [-1.5ex]
        Experiment & Strand & Sequence \\ [0.5ex]
        \hline \\ [-1.5ex]
        Bulk & Q & "TTGCTAGGTCTCGCTATGAGGATCTAT"  \\ [0.5ex]
        Vesicles & B & “GTGTTGAGTAGTGAGATGTTTTTTTAGCGAGACCTAGCAATTGAAGTGGAGAAGAGC” \\ [0.5ex]
        \hline
    \end{tabular}
\end{table*} % <========================================================

\lipsum[5-11] % <=======================================================

\end{multicols}
\end{document}

您将获得以下第二页:

第二页

相关内容