Tag Info

42

Try the lscape package: % lscape.sty Produce landscape pages in a (mainly) portrait document. \usepackage{lscape} ... \begin{landscape} ... \end{landscape} This modifies the margins and rotates the page contents but not the page number. Useful, for example, with large multipage tables, and is compatible with the packages longtable and supertabular. If ...

20

The important issues to handle for such a project would be the handling of floats. Normally photo books or similar documents do not have a large amount of words and if you use floats and marginpars, the text will certainly end up in the wrong place. I would first choose a few page designs and then use minipages or better TeX vbox and hbox primitives to ...

12

If your document class is compatible with the caption package, you can use its \captionsetup command for the particular table (I removed parts of your code not relevant to the caption issue): \documentclass{article} \usepackage{caption} \begin{document} \listoftables \begin{table} \captionsetup{font=scriptsize} \centering \begin{tabular}{lc} \hline ...

11

The lscape package is not designed for this. It's designed for rotating wide figures or tables, for example. And the geometry package explicitly says that \newgeometry can't change the paper size or orientation. So I don't think there's a way to do this automatically. You can include landscape oriented pdf pages using the pdfpages package. (Include them ...

10

It depends a little on the kind of landscape page you want to create. The easiest way to do it is to put your landscape material into a caption-less [p] float (except it is a figure or table which should have a caption). Without the caption the float number isn't increased so it doesn't affect other, "real" floats. You can create the landscape mode then by ...

10

Answering the various points "why does lscape package recommend a different package" well it doesn't really. The ctan catalog package descriptions are not (in general) by the package authors but a third party review of the package. There are three places that "rotation" can occur when considering a page in a pdf file. lscape only considers one of them [* ...

10

First off, don't use both table and longtable -- the two environments shouldn't (and mustn't) be nested. Separately, since a longtable isn't a float (in the LaTeX sense of the word), there's no point providing location directives such as [!htb]. Second, to force the width of the longtable environment to be equal to \textwidth, type something like ...

9

This question is very similar to the one you posted yesterday, How to fit landscape multi-page table to textwidth. Hence, the answer I provided there will also work for your reworked example. (The main difference, AFAICT, between the two MWEs is that the first piece contains a 15-column table whereas the second piece contains a 24-column table.) For your ...

9

You can save the figure + caption in a box and then rotate the box, or use the sidewaysfigure environment from the rotating package. It puts the figure on its own page. For a small figure you can use the \rotcaption command to rotate the caption. \documentclass{memoir} \usepackage{caption} \captionsetup{font=small,labelfont=bf} \usepackage{graphicx} ...

9

If you are feeling brave you can use the afterpage package and go \afterpage{\begin{landscape}.....\end{landscape}} If the table is big (or it has any verbatim material) it is better to put it in a separate file mytable.tex and then just have \afterpage{\input{mytable}} this isn't a real float but it does delay starting the table until the next page ...

9

Similar like my answer to How to wrap text around landscape page I would use \afterpage from the afterpage package to place the table at the next page of where it was declared. Here a non-floating replacement of table is used instead, e.g. the \captionof{table}{...} is used (capt-of or caption) package. One issue are potential other tables which should be ...

8

You want lscape (or its younger sibling pdflscape) and longtable and then \begin{landscape} \begin{longtable}{ll} ... don't put the table in a table or sidewaystabe environment or \colorbox command, all of which make unbreakable boxes that never split over a page.

8

I'm a bit hesitant about calling this a bug in pdflatex, but from my not-very-extensive investigations, it would appear that the position returned by the primitive \pdfsavepos is offset when in landscape mode and producing dvi. One way to explain the behaviour (though I've no idea how accurate this picture is) is that it is as if when \pdfsavepos runs then ...

8

There is a "design comprimise" in package lscape (in other packages it would be called "design flaw" ;-), of course). Environment landscape only rotates \textheight and \textwidth remains unchanged. However package geometry expects unchanged values, thus it gets surprised with \textheight having the old value of \textwidth. The following example fixes this ...

8

You should be able to do this using the rotating package's sidewaystable environment: \documentclass[twocolumn]{article} \usepackage{rotating} \usepackage{booktabs} \usepackage{array} \usepackage{caption} \usepackage{kantlipsum} % for dummy text \begin{document} \begin{sidewaystable} \centering \begin{tabular}{*{22}{c}} \toprule A & B & C & D ...

7

\linewidth can be used instead: \begin{tabulary}{\linewidth}{RJL} Package lscape does rotate \textheight, but does not change \textwidth. Probably a bug. Update: It is a design compromise, see David Carlisle's comment.

7

Using fancyhdr you can define your own page style and move the page number/counter into the appropriate position. \usepackage{pdfpages}% http://ctan.org/pkg/pdfpages \usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr \fancypagestyle{mylandscape}{% \fancyhf{}% Clear header/footer \fancyfoot{% Footer \makebox[\textwidth][r]{% Right ...

7

If using pdflatex you may prefer pdflscape to the lscape package, which inserts some extra instructions to the pdf viewer. (note that pdf viewers often auto-rotate pages to get what they think is the correct reading orientation and they don't always get this right) You ask how to get the page numbers in the right place, but you don't say where that place ...

7

I would do it using a \parbox which has the maximum height (i.e. \textwidth because of the rotation) and contains some \vfill macros before and after the content to push it into the middle. Note that in such cases you shouldn't use the figure floating environment but add the captions using \captionof{figure} (capt-of or caption package). The float only ...

6

For this purpose it seems better to use the sidewaysfigure environment from the rotating package. \documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{rotating} \begin{document} \begin{sidewaysfigure} \centering \rule{6.4in}{3.6in} \caption{Dummy figure}\label{fig:dummy} \end{sidewaysfigure} \end{document} It will always ...

6

I need page numbers on the landscaped pages. And the page numbers should be at the bottom as shown in the second figure above. I have an idea. We can use \fancypagestyle to define a new pagestyle with landscaped page numbers. I use tikz to put the page number. \fancypagestyle{lscapedplain}{% \fancyhf{} \fancyfoot{% \tikz[remember ...

6

If I understand correctly the description of the problem you're describing, you (i) have come material of the form % lots of material \begin{landscape} \begin{longtable}{...} % content of longtable \end{longtable} \end{landscape} % lots more material and (ii) don't want (pdf)LaTeX to create a page break immediately upon encountering the \begin{landscape} ...

6

You can use the angle=90 option provided by graphicx package. \documentclass[12pt, oneside]{book} \usepackage[demo]{graphicx}%<----remove demo in your file \usepackage{wrapfig} \usepackage{lscape} \usepackage{rotating} \usepackage{epstopdf} \begin{document} \begin{figure}[ht] \centering ...

6

The 1 inch offsets come actually from TeX itself, and are kind of a pain because you need to take them into account as late as possible in any calculations. The paper size is defined in a configuration file (I forget its name), but with PDFTeX, you should be able to use commands \pdfpagewidth (default 210 true mm for A4), and \pdfpageheight (default 297 ...

5

Package pdflscape is just a wrapper for package lscape. It sets the /Rotate entry in the PDF page data structure. Thus the question shows the correct orientation of the paper, pages 2 and 3 are in landscape. However the contents of the third page is not shown correctly. Package lscape hooks into macros of the output routine that constructs the page contents ...

5

Please always post complete documents, not just fragments. tabularx isn't doing anything as there are no X columns so I switched to tabular. \it hasn't been defined by default in latex since LaTeX2.09 (ie before 1993) don't use it unless compatibility with old documents is needed. You can use the array package to insert font changes into each cell. ...

5

Is it like this? I used \parbox. The width of parbox may be adjusted as needed. \documentclass{article} \usepackage{longtable} \usepackage{pdflscape} \usepackage{siunitx} \begin{document} \begin{landscape} %\begin{sidewaystable} \centering %\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|} \begin{longtable}{|c|c|c|c|c|c|c|c|c|c|c|c|} \hline ...

5

I think you are making it look more complicated than it need be, you don't need afterpage (or a float at all) just position the images and locally double\pdfpagwidth so that the image is not cropped to an A4 page. An advantage of doing it this way is that the horizontal and vertical position can easily be tweaked by adjusting the spacing commands. ...

5

The problem is your use of the [!h] option (you should never use h without using p and probably t, it leaves LaTeX so few options Using the optional argument to figure generally restricts the places where the float is allowed. Remove all the [!h] and add \clearpage between each one.

5

\documentclass{article} \usepackage{graphicx} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyhead[C]{Fancy page header} \fancyfoot[C]{Footer} \fancyfoot[R]{\thepage} \usepackage{kantlipsum} \usepackage{afterpage} \usepackage{pdflscape} \begin{document} \kant[1] \afterpage{ \clearpage \begin{landscape} \begin{figure}[htb] \centering ...

Only top voted, non community-wiki answers of a minimum length are eligible