General\tableofcontets in TeXnicCenter

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
toni
Posts: 7
Joined: Sat Feb 14, 2009 3:32 am

\tableofcontets in TeXnicCenter

Post by toni »

Hi all,

I've just started working with TeXnicCenter and have already a problem:

I have to write a document in an language for which one there doesn't exist a package (e.g. like for german: \package[german]{babel}), and so when I wirte \tableofcontets, I get the Content of the document, BUT: The title on the content-page is CONTENT, in english, but I want also this word "CONTENT" in the documentlanguage.

My question: Is it possible to change the word CONTENT, wich automatically appears in the document? How can I do it?

Regards.

Recommended reading 2024:

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

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

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

\tableofcontets in TeXnicCenter

Post by gmedina »

Hi,

in the preamble of your document write something like this:

Code: Select all

\renewcommand\contentsname{The desired name}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
toni
Posts: 7
Joined: Sat Feb 14, 2009 3:32 am

Re: \tableofcontets in TeXnicCenter

Post by toni »

Hi gmedina,

Thank you for your hint...
Unfortunatelly the command \renewcommand\contentsname{...} has no effect...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\tableofcontets in TeXnicCenter

Post by localghost »

Build a minimnal working example (MWE) that show what is not working. And maybe you can tell us which language you are writing in. babel supports many languages so that it is very unlikely not to find your language in the list. The suggestion of gmedina doesn't work if babel is loaded.


Best regards and welcome to the board
Thorsten¹
toni
Posts: 7
Joined: Sat Feb 14, 2009 3:32 am

Re: \tableofcontets in TeXnicCenter

Post by toni »

Hi Thorsten,

Thanks for your hints...

The document-language albanian; babel doesn't support this language.

When I write:


\documentclass{article}

\begin{document}
\tableofcontents
...
\end{document}

I get a blank page where you can read only "Content". But becaouse the text is in albanian, it doesn't go with "Content"; in stead of the word "Content" I want the albanian word for content, "Përmbajtje".

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

\tableofcontets in TeXnicCenter

Post by localghost »

I guess you didn't really read what a MWE looks like. Please do that and try again. Looking at the babel manual, I see that Albanian is supported very well (Section 50 - The Albanian language, p. 250ff). You may have to build the right format files on your LaTeX system.
toni
Posts: 7
Joined: Sat Feb 14, 2009 3:32 am

Re: \tableofcontets in TeXnicCenter

Post by toni »

Excuse me, I was confused...

Now it works with the gmedina's hint ;):
\renewcommand{\contentsname}{Përmbajtje}

The problem was: I had in Preambel two packackes which support the german language, and after I left them out, it works...

Thanks a lot for your help.

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

\tableofcontets in TeXnicCenter

Post by localghost »

Note that without any package supporting your language you won't have correct hyphenation. So try the babel package after building the right format files on your LaTeX system. Using MiKTeX this is easily done in the MiKTeX Settings.
toni
Posts: 7
Joined: Sat Feb 14, 2009 3:32 am

Re: \tableofcontets in TeXnicCenter

Post by toni »

ook, I'll try... Thanks for your hint ;).

Regards
Post Reply