GeneralText appears grey rather thn black, Citations OK ->hyperref?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
firefox666
Posts: 3
Joined: Sat Mar 22, 2008 11:41 am

Text appears grey rather thn black, Citations OK ->hyperref?

Post by firefox666 »

Hi all,

I've got a problem with text colors, which is quite odd. I've searched the net and this forum but didn't find a solution (or searched for the wrong things :roll: ).

Problem:
The Text in my document is rather grey than black. You don't really see it in the PDF, however you can see it when you print it out. Text appears greyish, citations are perfectly black (see image below)

Problem source
I think I've identified the source of the problem, it seems to be the hyperref package. I use it to avoid that links have a colored box in the document.
1) if I just use colorlinks=false, then the links are colored (oddly enough)
2) so, I decided to use colorlinks=true, and set the link colors to black (see code below)
Problem: now all the OTHER text is slightly grey :evil:

Switching between colorlinks=true/false gives me either colored links or grey text!

Thanks for your Help!

Cheers
m.


Using TexnicCenter 1 beta 7.01
PdfTeX Version 3.141592-1.40.4 (MiKTeX 2.7)

Code: Select all

\documentclass[
    smallheadings,
    oneside,      
    liststotoc,
    bibtotoc,  
    headsepline
    ]{scrbook}
\usepackage{a4}  
\usepackage[english,ngerman]{babel} 
\usepackage[latin1]{inputenc}  
\usepackage{subfigure}
\usepackage{epsfig}   
\usepackage{graphicx} 
\usepackage[
	dvips,
	breaklinks={true}, 
	pdftitle={Diplomarbeit},
	pdfauthor={me},
	pdfcreator={MiKTeX mit KOMA-Script und hyperref},
	pdfsubject={mythesis},
]{hyperref}
\hypersetup{ 
      colorlinks=true,
      linkcolor=black, 
      citecolor=black,
      filecolor=black,
      menucolor=black,
      pagecolor=black,
      urlcolor=black,
      breaklinks=true
}
\graphicspath{{grafiken}{../}{kapitel}} 
\usepackage{multirow}   
\usepackage{framed}
\usepackage{scrpage2}
\pagestyle{scrheadings}
\usepackage{natbib}   
%\usepackage{url}
\usepackage[hyphenbreaks]{breakurl}
\setlength{\parindent}{0pt}
\setlength{\parskip}\medskipamount 
\setkomafont{sectioning}{\normalfont\normalcolor\bfseries}
\ohead{\pagemark}
\cfoot{}
\cohead{}
\ihead{\headmark}
\setkomafont{pagehead}{\normalfont\bfseries}
\setkomafont{pagenumber}{\normalfont\bfseries}
\automark{section}

\begin{document} 
\selectlanguage{english}
\frontmatter     

[...]

\backmatter
\bibliographystyle{literatur/natdin}
\bibliography{literatur/da}

\end{document}
Attachments
Text grey (no good either)
Text grey (no good either)
text_grey.jpg (9.92 KiB) Viewed 11132 times
Links colored (no good)
Links colored (no good)
links_colored.jpg (16.96 KiB) Viewed 11131 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

vhii
Posts: 9
Joined: Sun Feb 10, 2008 11:11 pm

Text appears grey rather thn black, Citations OK ->hyperref?

Post by vhii »

Hi,

because I've got a similar greyness problem (see http://www.latex-community.org/viewtopic.php?f=5&t=1104), I've already got some pointers to a solution, it seems to have something to do with ps2pdf.

Have you tried using pdflatex instead of latex, dvi2ps, ps2pdf? I get the same effect as you when I use the latter on one of my files with hyperref. I suspect ps2pdf to be the cause, because the resulting PS files are black as they should be. So, just use pdflatex, I guess :|
firefox666
Posts: 3
Joined: Sat Mar 22, 2008 11:41 am

Re: Text appears grey rather thn black, Citations OK ->hyperref?

Post by firefox666 »

Thanks for your quick answer!

Unfortunately I cannot use pdflatex because I have tons of eps graphics in place that won't work with pdflatex...

I just checked my PS file with Ghostview - this one looks good (all text black, no colored links).

However, I haven't found a way to convert this ps into a pdf without getting grey text again...

Any Ideas?

Cheers,
m.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Text appears grey rather thn black, Citations OK ->hyperref?

Post by Stefan Kottwitz »

Hi,

I recommend to at least test it with pdflatex, because if this is working correctly, you still can convert your eps graphics to pdf, using eps2pdf or epstopdf or even the epstopdf package inside your document to do that on the fly, and further use pdflatex.

Stefan
firefox666
Posts: 3
Joined: Sat Mar 22, 2008 11:41 am

Re: Text appears grey rather thn black, Citations OK ->hyperref?

Post by firefox666 »

Thanks, Stefan - some guys from another forum found another way to solve it :)
-----
Just if anyone happens to have the same problem:

by using pdfborder={0 0 0} instead of colorlinks=true and the color definitions, the boxes vanish as well and the text stays pitch black.

happy easter!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Text appears grey rather thn black, Citations OK ->hyperref?

Post by Stefan Kottwitz »

Guess, who one of those guys was. ;)

Happy Easter too!

Stefan
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Text appears grey rather thn black, Citations OK ->hyperref?

Post by Juanjo »

firefox666 wrote:Thanks, Stefan - some guys from another forum found another way to solve it :)
Which forum, please? Which thread in that forum?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Text appears grey rather thn black, Citations OK ->hyperref?

Post by localghost »

Juanjo wrote: Which forum, please? Which thread in that forum?
A german developer board which also hosts a LaTeX forum [1]. Try your luck with German.

[1] Text erscheint grau, Quellenangaben ok. --> hyperref? - mrunix.de


Best regards
Thorsten¹
Post Reply