I have a document I have written in org-mode which contains several tables. The tables all have the following attributes.
#+begin_table
#+LATEX: \caption{Initial risk List}
#+LATEX: \label{tab:risk-list}
#+LATEX: \centering
#+LATEX: \adjustbox{max width=\textwidth}{
#+ATTR_LATEX: :center t :placement [h]
|Col1|Col2|
|----+----|
| 1 | 2 |
|----+----|
#+end_table
The configuration is to allow my tables to scale correctly for my document without running off the page which works, however, the [h]
argument isn't being read by LaTeX as all the tables get places on one page together in the pdf document instead of being at their positions in the text where I want them. Am I passing the wrong latex configuration or is it just not picking it up during the parsing? I am using spacemacs by the way I'm not sure if that changes anything.
After looking at the tex file org produced it seems there is no placement values put into the document.
[h]
, use[!htbp]
.table
environment to keep the adjust box contained to just the table\adjustbox
works, but it seems not the like thecenter
environment that org-export generates around thetabular
. There is also a syntax error: you need add a closing brace to close the\adjustbox
argument (and of course you need to\usepackage{adjustbox}
somehow, but I imagine that's been done).