Bug 202612

Summary: (DVI) no pstricks color at top of a page
Product: [Applications] okular Reporter: Laurent Claessens <moky.math>
Component: generalAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: aacid, jorge.adriano
Priority: NOR    
Version: 0.19.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: DVI output of example-1.tex
DVI output of example-2.tex
minimal example - tex file
minimal example - dvi file

Description Laurent Claessens 2009-08-05 13:01:27 UTC
Version:           4.3 (using KDE 4.3.0)
OS:                Linux
Installed from:    Ubuntu Packages

When I use the command \green (or whatever color) for a text which appears at the top of a page, okular prints it in black.

Example :

------------ example-1.tex -----------

\documentclass[a4paper,12pt]{book}
\usepackage{pstricks}
\begin{document}

Hello

\vspace{19.5cm}

End of the page

{\green Green ?}

Au revoir.
\end{document} 
----------- end of example-1.tex ----------

The text "Green ?" appears in black. If I remove the \vspace, everithing is correct.


I have a strange example-2.tex. If I put my text in a theorem environment, the word "theorem" appears in green, but not the text.

------------ example-2.tex -----------
\documentclass[a4paper,12pt]{book}

\usepackage{amsmath}
\usepackage{amsthm}

\usepackage{pstricks}

\newtheoremstyle{PourLesCouleurs}%
        {9pt}{9pt}%
        {\green}%
        {}%
        {\bfseries}{}%
        {0pt}%
        {}%

\theoremstyle{PourLesCouleurs}
\newtheorem{hum}{Theorem}

\begin{document}

Hello

\vspace{19.5cm}

End of the page


\begin{hum}
	This text should be in green.
\end{hum}

Au revoir.

\end{document} 

----------- end of example-1.tex ----------

The word "Theorem 1" is in green, but not the text.

In both cases, compiling with pdflatex and opening (with okular) the pdf file works. 
I think that the bug is from okular because I do not have that problem with Evince.
Comment 1 Pino Toscano 2009-08-05 13:12:53 UTC
Can you please attach the generated dvi files for the two documents above?
Comment 2 Laurent Claessens 2009-08-05 13:24:11 UTC
Created attachment 35859 [details]
DVI output of example-1.tex 

Output of
latex example-1.tex

for the source

\documentclass[a4paper,12pt]{book}
\usepackage{pstricks}
\begin{document}

Hello

\vspace{19.5cm}

End of the page

{\green Green ?}

Au revoir.
\end{document}
Comment 3 Laurent Claessens 2009-08-05 13:26:41 UTC
Created attachment 35860 [details]
DVI output of example-2.tex 

output by
latex example-2.tex
of

\documentclass[

\usepackage{ams
\usepackage{ams

\usepackage{pst

\newtheoremstyl
        {9pt}{9
        {\green
        {}%
        {\bfser
        {0pt}%
        {}%

\theoremstyle{P
\newtheorem{hum

\begin{document

Hello

\vspace{19.5cm}

End of the page


\begin{hum}
    This text s
\end{hum}

Au revoir.

\end{document}
Comment 4 Jorge Adriano 2010-01-29 02:36:50 UTC
I can confirm this bug. Using KDE 4.4 RC2. 
Will add my own minimal example.
Comment 5 Jorge Adriano 2010-01-29 02:38:04 UTC
Created attachment 40333 [details]
minimal example - tex file
Comment 6 Jorge Adriano 2010-01-29 02:38:50 UTC
Created attachment 40334 [details]
minimal example - dvi file
Comment 7 Jorge Adriano 2010-01-29 02:40:38 UTC
I will also paste my LaTeX code here. As you can see, I only use the pacakge dvips. 

---------------------------------------

\documentclass{article}    
\usepackage[dvips]{color}
\begin{document}

\vspace*{18cm}
\color{blue}
This coloured text is split in two pages 
In the second page all colour is lost.
This coloured text is split in two pages 
In the second page all colour is lost.
This coloured text is split in two pages 
In the second page all colour is lost.
This coloured text is split in two pages 
In the second page all colour is lost.

\end{document}
Comment 8 Justin Zobel 2021-03-09 23:59:34 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.