Viewers for PDF, PS, and DVIProblem with Okular and landscape

Information and discussion about output viewers related to LaTeX (e.g. Adobe Reader, Ghostview, YAP, ...)
Post Reply
Huno
Posts: 2
Joined: Thu Dec 10, 2009 12:01 pm

Problem with Okular and landscape

Post by Huno »

Hi everybody.
I want to use Kile for my Latex document. So i have install Kubuntu 9.10 and Kile 2.1 beta 3.
My document is :

Code: Select all

\documentclass[11pt,landscape,twocolumn]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[francais]{babel}
\usepackage{amssymb}
\usepackage{amscd}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage[all]{xy}
\usepackage{enumerate}
\usepackage{geometry}
\usepackage{pstricks,pstricks-add,pst-math,pst-xkey}
\usepackage{mathrsfs}

\geometry{scale=0.9, nohead}

\newtheorem{act}{Activité}
\newtheorem*{theo*}{Théorème}

\newsavebox{\fmbox}
\newenvironment{fmpage}[1]
     {\begin{lrbox}{\fmbox}\begin{minipage}{#1}}
     {\end{minipage}\end{lrbox}\fbox{\usebox{\fmbox}}}

\begin{document}

\section{Le cercle}
\bigskip
\begin{fmpage}{11cm}
   \begin{act}
\begin{enumerate}[1.]
\item Placer un point O. Placer six points disctincts situés à 5 cm d u point O. Peut-on en placer d'autres ? Combien ? Comment peut-on tracer tous ces points?
\item Sur la figure cicontre, les points A, B et C appartiennent au cercle $\mathscr{(C)}$ de centre G. Comparer GA, BG et GC. Qu'est ce qu'on peut dire sur tous les points du cerlce $\mathscr{(C)}$ ?
$$\psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dotstyle=*,dotsize=3pt 0,linewidth=0.8pt,arrowsize=3pt 2,arrowinset=0.25}
\begin{pspicture*}(-3.5,-3)(3,3)
\pscircle(0,0){2.47}
\psdots[dotstyle=+](0,0)
\rput[bl](0.08,0.12){\darkgray{$G$}}
\psdots[dotsize=5pt, dotstyle=|](-0.84,2.32)
\rput[bl](-0.9,2.55){$A$}
\rput[bl](-3.2,0){$\mathscr{(C)}$}
\psdots[dotsize=5pt, dotstyle=|](-1.55,-1.92)
\rput[bl](-1.7,-2.5){$B$}
\psdots[dotsize=5pt, dotstyle=|](2.03,-1.4)
\rput[bl](1.9,-1.9){$C$}
\end{pspicture*}$$
\end{enumerate}
   \end{act}
\end{fmpage}
\end{document}
I buil this file with : LateX->DVItoPS->PstoPDF->ViewPDF
My viewer is : Okular.

The problem is that the page is not in landscape but in portrait. I cannot view my page in landscape, and i don't find any option in Okular which can resolve this problem. I really want to use Linux and especially Kile because i think that it is the best.

Please help me!

Huno

PS : sorry for my English. French guy....

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Re: Problem with Okular and landscape

Post by php1ic »

Looks like the problem is the conversion from dvi->ps->pdf

http://amath.colorado.edu/documentation ... landscape/

so you need to change how Kile builds the final pdf, or just use the terminal.
Huno
Posts: 2
Joined: Thu Dec 10, 2009 12:01 pm

Re: Problem with Okular and landscape

Post by Huno »

Thanks a lot php1ic.
There is no problem now. I can use Kubuntu with Kile and see my work in landscape.
(I have change option "build" in Kile)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with Okular and landscape

Post by localghost »

I have no problem with the following example (compiled via »LaTeX -> DVI -> PS -> PDF« with Kile 2.1 beta 2).

Code: Select all

\documentclass[11pt,a4paper,landscape,twocolumn,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[includeheadfoot,margin=2cm]{geometry}
\usepackage[math]{blindtext}

\begin{document}
  \blinddocument
\end{document}
Without any modifications to the default settings of Kile.


Best regards and welcome to the board
Thorsten
Attachments
landscape-xmpl.pdf
The given code compiled compiled via »LaTeX -> DVI -> PS -> PDF« with Kile 2.1 beta 2
(41.42 KiB) Downloaded 331 times
Post Reply