7

The command \rotate is useless.

I searched the web and somebody said it is common and weird.

How to rotate it then?

I download a 2028K configuration files herehttp://authortools.aas.org/aastex/downloads.html and the rotation problem is fixed.

However I still do not know how to fix it if I use my original configuration file. Can you rotate the table using the tex code below?

And can you put the whole table in a single page?

Test tex is as below:

\documentclass[12pt,preprint]{aastex}
\begin{document}
\rotate
\begin{deluxetable}{lllllllllllll}

\tabletypesize{\tiny}
\startdata
113b&2014-10-16:21.3&2014-10-17:20.6&2.76358799&11:07:53.107&+6:12:05.9&16.971279167&26.8683055556 &2014-10-17 13:21:00 &2014-10-17 19:26:00 &2014-10-17 21:21:00 &2014-10-18 03:25:00&ok\\`
\enddata

\end{deluxetable}
\end{document}
egreg
  • 1,121,712
questionhang
  • 171
  • 1
  • 4

1 Answers1

16

enter image description here

\rotate goes before the data but within the environment:

\documentclass{aastex}

\begin{document}

\begin{deluxetable}{ccc}
\startdata
11&22&33\\
aa&bb&cc
\enddata
\end{deluxetable}

\begin{deluxetable}{ccc}
\rotate
\startdata
11&22&33\\
aa&bb&cc
\enddata
\end{deluxetable}

\end{document}
David Carlisle
  • 757,742
  • I tried your way, but the result page is empty if I use my original configuration file. Does it work if you use more columns? The tex data above has 13 columns. Can you put the columns in a single page? – questionhang Sep 08 '14 at 14:57
  • @questionhang I used the MWE you have now supplied and it rotates as expected 9althougth it is too wide to fit on the page) – David Carlisle Sep 08 '14 at 15:29
  • You use a special configuration file as the 2028k file I mentioned above? The font size of the table could not be reduced any more? – questionhang Sep 08 '14 at 15:37
  • @questionhang The table is simply too wide: you'll need to rework it. I've no idea what you mean about a 'special configuration file': David has used the aastex class which provides both \rotate and deluxetable as in your example in the question. – Joseph Wright Sep 08 '14 at 16:14
  • @questionhang your question says "why is \rotate useless" but your comments seem to imply that your question is really "why does \rotate only rotate the table and not change fonts, or re-arrange the columns so the table is not wider than the page" ? – David Carlisle Sep 09 '14 at 10:41
  • @ David I can rotate the table only in the environment the 2028k file gives. I need to put many columns in one page, so I wonder whether the font could be reduced arbitrarily. – questionhang Sep 09 '14 at 11:07
  • 3
    @questionhang I assume the question about rotating is answered, if so you should accept or close this question. If you have a question about font sizes or table formatting ask a new question. But make sure the example in the question shows the problem, I and many other people answering do not fetch files from offsite servers. You can use a font size like \small or use a column spec like p{.5cm} instead of c to allow line breaking or .... – David Carlisle Sep 09 '14 at 12:16
  • @ I am sorry. I will close this topic soon. Could you please write a whole sentence about p{.5cm}? Thanks. – questionhang Sep 09 '14 at 13:07
  • @questionhang http://tex.stackexchange.com/questions/166743/automatic-line-break-in-tabular – David Carlisle Sep 09 '14 at 13:46
  • @ you mean \multicolumn{2}{p{4cm}|}? It has nothing to do with deluxetable,right? – questionhang Sep 09 '14 at 13:53
  • @questionhang I mean use p{1in} instead of c in \begin{deluxetable}{ccc} (I assume \multicolum also works with deluxetable as a matter of fact, it is just a wrapper around a standard tabular environment as far as I can see, although I have never used it) (but this is off topic for this rotating question) – David Carlisle Sep 09 '14 at 13:56