Hi, as I am fairly new to LaTeX at all, would like to ask you how to change color of table of content. The problem is that it sets automatically red and dunno how to change it :/. Thanks in advance
Creck
Graphics, Figures & Tables ⇒ Color of Table of Content
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10340
- Joined: Mon Mar 10, 2008 9:44 pm
Color of Table of Content
Hi Creck,
welcome to the board!
The default is black color. So you have a setting which causes red color. We could see that if you would post your preamble. I guess it's red because TOC entries are hyperlinks to the sections in the text if you use the
hyperref manual.
Stefan
welcome to the board!
The default is black color. So you have a setting which causes red color. We could see that if you would post your preamble. I guess it's red because TOC entries are hyperlinks to the sections in the text if you use the
hyperref
package. So disable hyperlinking in the TOC or change the hyperlink color. Both is described in the 
Stefan
LaTeX.org admin
Color of Table of Content
Thanks for reply,
the problem is that I gotta use http package, because of adding an email link at the title page, btw here is the code ...
I've copied most of the packages from the sample form of my project, as I have no idea which of them should be attached....
the problem is that I gotta use http package, because of adding an email link at the title page, btw here is the code ...
Code: Select all
\documentclass[12pt, a4paper]{article}
%Lang & fonts
\usepackage[slovak]{babel}
\usepackage[utf8]{inputenc}
%Http
\usepackage[bookmarksopen,colorlinks,plainpages=false,urlcolor=blue,unicode]{hyperref}
\usepackage{url}
%Images
\usepackage[dvipdf]{graphicx}
%Page settings
\usepackage[top=3.5cm, left=2.5cm, text={17cm, 24cm}, ignorefoot]{geometry}
\begin{document}
\input{./title.tex}
% Content
\tableofcontents
\pagenumbering{roman}
\setcounter{page}{0}
\newpage
\pagenumbering{arabic}
\setcounter{page}{1}
\section{Section1}
\subsection{Subsection}
\section{Section 2}
\end{document}
Color of Table of Content
Well, I have fixed it adding "
Creck
colorlinks=black
" into \usepackage[]{hyperref}
, thanks anyway.Creck
Last edited by cgnieder on Fri Nov 09, 2012 11:53 am, edited 1 time in total.
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
Color of Table of Content
@Creck: See this post for my settings when using hyperref. It is a setup that I find aestheticly pleasing.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
-- Zapp Brannigan, Futurama (season 1, episode 4)
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Color of Table of Content
Just use the optionCreck wrote:Well, I have fixed it adding "colorlinks=black" into \usepackage[]{hyperref}, thanks anyway.[…]
hidelinks
.Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10