0

Here is the preamble i used

\immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls}
\documentclass[paper=letter, fontsize=12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{fancyhdr}
\usepackage{geometry}
\usepackage{textcomp}
\usepackage{setspace}
\usepackage[font=small]{caption}
\usepackage{float}
\usepackage{lineno}
\usepackage{hyperref}
\usepackage{pdflscape}
\usepackage[Glenn]{fncychap} %Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
%\textwidth=450pt\oddsidemargin=0pt
%\geometry{verbose,a4paper,tmargin=25mm,bmargin=25mm,lmargin=25mm,rmargin=25mm}
\setlength{\parindent}{0in}
\onehalfspacing

\usepackage[numbers]{natbib}

\begin{document}
and I want to put a picture in landscape mode. I did in this way which did not worked for me:

\begin{landscape}
\begin{figure}[h!]
\begin{center}
\includegraphics[scale=0.5]{lhc_cross_section.jpg}
\caption{Cross sectional view of proton-proton collision.}
\end{center}
\end{figure}
\end{landscape}

Any suggestion will really be appreciated.

Torbjørn T.
  • 206,688
Higgs
  • 117
  • 1
    What exactly do you mean by "did not work"? How did it fail? – Torbjørn T. May 17 '18 at 08:12
  • I am getting an error i.e l.269 \begin{landscape} the picture is still in portrait mode. – Higgs May 17 '18 at 08:19
  • 2
    It would help if you would mention which error you get. And a complete, compilable example would help too. – Ulrike Fischer May 17 '18 at 08:23
  • Have you loaded the pdflscape package? (I don't think the landscape environment is provided by default.) – Torbjørn T. May 17 '18 at 08:25
  • See also https://tex.stackexchange.com/questions/337 – Torbjørn T. May 17 '18 at 08:27
  • By adding the \usepackage{pdflscape}the picture just moved to another page but still not in landscape mode. – Higgs May 17 '18 at 08:38
  • landscape will always start a new page. Your code works for me, so I don't know what could be wrong. Do you use pdflatex to make the PDF, or something else? – Torbjørn T. May 17 '18 at 08:43
  • yes i am using pdfltex chapter.tex – Higgs May 17 '18 at 08:48
  • @Torborn T. it is necessary that the uploaded picture to the code should be in landscape? – Higgs May 17 '18 at 08:51
  • Can you show the contents of the .log file? Have you tried other PDF viewers? (No idea if this is viewer dependent, so wild stab in the dark.) Note that the whole page is rotated, not the content on the page, and PDF viewers will show the rotated page. So if you don't zoom out it might not be obvious that it's rotated. – Torbjørn T. May 17 '18 at 08:52
  • It already worked. the whole page is rotated along with picture. thanks Torbjorn T. – Higgs May 17 '18 at 08:55
  • @Torbjørn T. On the same page the title of chapter is written. Is it possible to remove the title only for the this page? – Higgs May 17 '18 at 09:02
  • Try adding \thispagestyle{empty} right after \begin{landscape}. – Torbjørn T. May 17 '18 at 09:03

0 Answers0