简体   繁体   中英

How to add caption and fix the position of table in latex?

I'm tying to read a cvx file and make table in latex. I'm using \\csvautotabular{Figures/Mytable.csv} $. What is missing is that: I don't know how to fix the position of the table in may chapter. Second, how to add caption for it. Can someone help me with this?

Putting the \\csvautotabular in a table environment and adding a \\caption should work.

Similar to what is done in this stackexchange answer .

Like char's answer, you can do:

\begin{table}[]
    \centering
    \csvautotabular{tables/my-table.csv}
    \caption{Caption}
    \label{tab:my_label}
\end{table}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM