
Eu recebo um arquivo de entrada table1.tex
que contém uma tabela (ou seja, table1.tex
começa com \begin{table} ... \{table}
)
Gostaria de imprimir esta tabela em modo paisagem, mas sem girar a página.
Tentei:
\begin{landscape}
\input{table1.tex}
\end{landscape}
mas isso gira a página inteira.
Responder1
Se você só precisa girar uma tabela, tente usar adjustbox
. Aliás, seu arquivo de entrada deve conter um ambiente tabular
(não ):table
\documentclass{article}
\usepackage{adjustbox}
\begin{document}
\begin{adjustbox}{rotate=270}
\input{table1.tex}
%table1.tex contains a tabular environment
%Input example:
%\begin{tabular}{l|l}
%This is & a table \\
%\end{tabular}
\end{adjustbox}
\end{document}
Se você realmente precisa utilizar um table
ambiente (com legendas e referências), você pode tentar o código abaixo (novamente, evitando que table
apareça dentro do arquivo de entrada):
\documentclass{article}
\usepackage{adjustbox}
\begin{document}
\begin{adjustbox}{addcode={\begin{minipage}{\width}}{\caption{yourcaptions}\end{minipage}},rotate=270,center,float=table}
\input{table1.tex}
%Input example:
%\begin{tabular}{l|l}
%This is & a table \\
%\end{tabular}
\end{adjustbox}
\end{document}