Bug 202612 - (DVI) no pstricks color at top of a page
Summary: (DVI) no pstricks color at top of a page
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.19.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-05 13:01 UTC by Laurent Claessens
Modified: 2021-03-09 23:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
DVI output of example-1.tex (728 bytes, application/x-dvi)
2009-08-05 13:24 UTC, Laurent Claessens
Details
DVI output of example-2.tex (852 bytes, application/x-dvi)
2009-08-05 13:26 UTC, Laurent Claessens
Details
minimal example - tex file (442 bytes, text/x-tex)
2010-01-29 02:38 UTC, Jorge Adriano
Details
minimal example - dvi file (876 bytes, application/x-dvi)
2010-01-29 02:38 UTC, Jorge Adriano
Details

Note You need to log in before you can comment on or make changes to this bug.
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.