Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #+LATEX_CLASS: article
- #+LATEX_HEADER: usepackage{graphicx}
- #+begin_src latex :exports results :results latex
- begin{table}
- caption{a table that scales to the linewidth}
- centering
- resizebox{linewidth}{!}{%
- begin{tabular}{ll}
- A & 1\
- B & 2\
- end{tabular}}
- label{tab:scaled}
- end{table}
- #+end_src
- #+LATEX_CLASS: article
- #+LATEX_HEADER: usepackage{graphicx}
- #+CAPTION: a table that does not scale to the linewidth
- #+LABEL: tab:uncaled
- | A | 1 |
- | B | 2 |
- #+LATEX_CLASS: article
- #+LATEX_HEADER: usepackage{graphicx}
- #+CAPTION: a table that does not scale to the linewidth
- #+ATTR_LATEX: :math-prefix resizebox{linewidth}{!}{% :math-suffix }
- | A | 1 |
- | B | 2 |
- #+LATEX_CLASS: article
- #+LATEX_HEADER: usepackage{graphicx}
- #+LATEX_HEADER: usepackage{adjustbox}
- #+begin_src latex :exports results :results latex
- begin{table}
- caption{a table that scales to the linewidth}
- centering
- begin{adjustbox}{width=textwidth}
- begin{tabular}{ll}
- A & 1\
- B & 2\
- end{tabular}
- end{adjustbox}
- label{tab:scaled}
- end{table}
- #+end_src
- begin{center}
- begin{tabular}{lr}
- A & 1\
- B & 2\
- end{tabular}
- end{center}
- #+begin_table
- #+LATEX: caption{Description of table.}
- #+LATEX: label{tab:my-table}
- #+LATEX: centering
- #+LATEX: adjustbox{max width=linewidth}{
- #+ATTR_LATEX: :center nil
- | A | 1 |
- | B | 2 |
- #+end_table
- #+caption: Your table
- #+ATTR_LATEX: :environment tabularx :width textwidth :align XX
- | A | 1 |
- | B | 2 |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement