Text FormattingWhy is it formatted like that?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
felixt
Posts: 2
Joined: Tue Mar 10, 2009 12:31 pm

Why is it formatted like that?

Post by felixt »

Hi!

At first I've to say that I'm a LaTeX newbie at all (at the moment ;-)).

My problem:

A friend of mine gave me this template:

Code: Select all

\documentclass[a4paper, 12pt, parskip]{scrartcl}
%Deutsche Einstellungen, Definition
\usepackage[ngerman]{babel}
\usepackage[latin1]{inputenc}	
%Geometrien und Bilder
\usepackage[metapost]{mfpic}
\usepackage{wrapfig}
\usepackage{subfig}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{epstopdf}
\usepackage{float}
%Anderes
\usepackage{makeidx}      	%index
\usepackage[square]{natbib} 	%Bibliothek
\usepackage[inner=3cm,outer=2.5cm,top=2.5cm,bottom=2.5cm,includeheadfoot]{geometry}
\usepackage{fancybox}
\usepackage{fancyhdr}
\usepackage{longtable}
\usepackage{hyperref}
\makeindex
%Kopfzeile, ect.
\pagestyle{fancy}

%============================================================== 

\begin{document}
\parindent = 0pt

%Titelblatt
\include{titelblatt}

\tableofcontents

\chapter{}
\pagestyle{fancy}
%Seitennummerierung
\pagenumbering{arabic}

%=====================
%Alle Dateien \INCLUDE
%\include{Sample}
\include{allgemein}
\include{aufnehmer_widerstand}
\include{induktive_aufnehmer}
\include{kapazitive_aufnehmer}
\include{digitale_laengengeber}
\include{kontaktlose_wegmessung}

%=====================

\end{document}
Now I'm wondering why the titles are formatted with an other font than the remaining text is.

Additionally I'm wondering why the references in the text are bounded with a red border.

Can anyone pleas help me?

thank you very much.

felix
Attachments
Bildschirmfoto-index.pdf.png
Bildschirmfoto-index.pdf.png (47.1 KiB) Viewed 3926 times

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Why is it formatted like that?

Post by localghost »

felixt wrote:[...] Now I'm wondering why the titles are formatted with an other font than the remaining text is. [...]
This is the default setting of document classes from KOMA Script. Read the manual to learn how to change that.
felixt wrote:[...] Additionally I'm wondering why the references in the text are bounded with a red border. [...]
This is done by the hyperref package to mark links inside the document. The printed output will not show these borders. Refer to the manual for more information.

Generally it is recommendable to study the manuals of the packages you are using for their purpose. You can find them on CTAN. For beginners we have a compilation of useful links [1]. Take a look at the introductions listed there.

[1] View topic: LaTeX Resources for Beginners


Best regards and welcome to the board
Thorsten¹
cibbuano
Posts: 4
Joined: Thu Mar 12, 2009 12:36 am

Why is it formatted like that?

Post by cibbuano »

If you don't like the red boxes in the TOC, you can set an option in the hyperref package.

For example, replace

Code: Select all

\usepackage{hyperref}
with

Code: Select all

\usepackage[pdftex,colorlinks,citecolor={blue},linkcolor={blue}]{hyperref}
This will give all the PDF links in blue, which I think looks quite nice!
felixt
Posts: 2
Joined: Tue Mar 10, 2009 12:31 pm

Re: Why is it formatted like that?

Post by felixt »

Hi guys!

thank you very much for your quick and very interesting answers.

THANK YOU!

yours
felix
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Why is it formatted like that?

Post by localghost »

Just a short addition. Driver options like pdftex should be omitted. Current versions of hyperref detect on their own which compiler is running and choose the right driver. The same is true for xcolor and graphicx.
Post Reply