Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have to change the orientation from portrait to landscape in the middle of a document. Only for 1 until 3 pages after that it have to portrait again.

I use this code in texmaker and running well


and use restoregeometry to get portrait again

But when I try to insert the code in LyX, I don't get an error message but the result is still in portrait. could anyone tell me why? And how to produce landscape pages in the middle a document in LyX?

share|improve this question
I set degree to rotate the picture in lyx graphics. –  mnKamarudin Feb 4 '14 at 3:17

1 Answer 1

I am not familiar with LyX, but instead of \newgeometry{landscape} you could try using the lscape package from the graphics package bundle (\begin{landscape}...\end{landscape}) or pdflscape package (if you want to produce a pdf, same \begin...\end) or another package found at http://www.ctan.org/search/?search=lscape&search_type=description.

share|improve this answer
I solved my problem by trick : set degree to rotate the picture in lyx graphics, but it seems can't be used to rotate the caption. btw thanks for the references. –  Verly Sep 18 '11 at 6:53
@Verly: Don't hesitate to post your solution as an answer of its own and to accept it afterwards, if that's how you solved your problem. –  doncherry Oct 17 '11 at 18:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.