Graphics, Figures & TablesHeader with box made by tikZ

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
dlewin
Posts: 3
Joined: Fri Apr 23, 2010 2:07 pm

Header with box made by tikZ

Post by dlewin »

hi,

I finally found a header with nice graphic in it to make a tutorial (for PDF).
Unfortunatelly the tikZ example is in report class and I can't change the
header's names.

1/ What would be the beter class for a tutorial style ?
2/ in that style : how to change the header's names ?

The example is :

Fancy chapter headings
Author: Stefan Kottwitz
http://texblog.net/latex-archive/layout ... pter-tikz/

Thanks

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Header with box made by tikZ

Post by gmedina »

Hi,
dlewin wrote:... is in report class and I can't change the
header's names...
What exactly do you mean by "header's names"?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
dlewin
Posts: 3
Joined: Fri Apr 23, 2010 2:07 pm

Re: Header with box made by tikZ

Post by dlewin »

In this example, there are "Contents", "Main", etc

I could had changed Main and after, but not "Contents".
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Header with box made by tikZ

Post by gmedina »

"Contents", "Chapter" and some other names are predefined. They are language-sensitive, via the babel package. So if in the preamble of your document you load babel with, for example, spanish option

Code: Select all

\usepackage[spanish]{babel}
then "Contents" becomes "Índice General", "Chapter" changes to "Capítulo", and so on.

If you want to change those predefined names you have two options:

1) If you are not loading babel, a simple redefinition of the corresponding command is enough:

Code: Select all

\renewcommand\contentsname{New name}
\renewcommand\chaptername{New name}
etc.

2) If you are using babel with, for example, the spanish option then you will have to add something like this to the preamble:

Code: Select all

\addto\captionsspanish{%
  \renewcommand\contentsname{New name}
  \renewcommand\chaptername{New name}
}
A similar procedure should be applied if the option for babel is different from spanish, changing the \captionsspanish command for the appropriate idiomatic command.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
dlewin
Posts: 3
Joined: Fri Apr 23, 2010 2:07 pm

Re: Header with box made by tikZ

Post by dlewin »

ok I understand.
Thanks a lot.
Post Reply