LaTeX: Change the chapter name

How to change the chapter name to something else? For example to have it in other language, such as Malay. In order to do it, put the code below in the preamble of your LaTeX document.

\documentclass{report}

\renewcommand{\chaptername}{Bab}

\begin{document}

\chapter{Introduction}

Testing

\end{document}

Related

This entry was posted in LaTeX and tagged . Bookmark the permalink.

9 Responses to LaTeX: Change the chapter name

  1. mzaini says:

    I would like to write a document in Malay language using LaTeX. The problems here are how to change Figure/Table to Malay language.

    Table = Jadual (Malay)
    Figure = Rajah (Malay)

  2. Selinap says:

    @mzaini: To change a command, you could use the \renewcommand{}{}.

    Change Figure to Rajah:
    \renewcommand{\figurename}{Rajah}

    Change Table to Jadual:
    \renewcommand{\tablename}{Jadual}

    For more information, please read this article.

  3. Elyseum says:

    Be aware that this will not work if you are using Babel. If you are just looking for the translation (e.g. you want it in Dutch) you should use
    \usepackage[english,dutch]{babel}
    Mind the order of the languages (first english, then your language; so in order of low priority first).

    If you still want to use the command you should check out http://www.tex.ac.uk/cgi-bin/texfaq2html?label=latexwords

  4. Selinap says:

    @Elyseum: Thanks for the info about Babel.

  5. john says:

    how i can write in 2 languages in a chapter??
    for example english,greek:

    \gr\chapter{???????? \en {abc} }

    but this is not correct!!! how???

  6. Selinap says:

    @john: You could use \selectlanguage command.

    For example,

    \documentclass{article}
    
    \usepackage[greek,british]{babel}
    
    \begin{document}
    
    \selectlanguage{greek}
    
    Greek text goes here
    
    \selectlanguage{british}
    
    English text goes here
    
    \end{document}
    
  7. john says:

    yes, but i can’t do this in headings like chapter, section,…

    for example:

    \documentclass{report}
    \renewcommand{\chaptername}{Bab}
    \usepackage[greek,british]{babel}
    \begin{document}

    %here how i will change language… i want to use in chapter english and greek!!! both!!!
    \chapter{Introduction, i want to write here in greek and kai elliniko keimeno ???????? ???????}

    Testing
    \end{document}

  8. Selinap says:

    @john: Place the \selectlanguage command before the \chapter command.

    \documentclass{report}
    
    \usepackage[greek,british]{babel}
    
    \begin{document}
    
    \selectlanguage{greek}
    \chapter{greek chapter}
    Greek text goes here
    
    \selectlanguage{british}
    \chapter{english chapter}
    English text goes here
    
    \end{document}
  9. john says:

    yes, but i want to write both, greek and english inside the “command” \chapter{english chapter “gfvhvhvgh”, ????? ??????}

    for example:

    \documentclass{report}
    \usepackage[greek,british]{babel}

    \begin{document}

    %\selectlanguage{greek}
    \chapter{greek chapter, i want to write here also in english!!!!! and i cant!!!!!!english and greek together!!!}

    \selectlanguage{greek}
    Greek text goes here

    %\selectlanguage{british}
    \chapter{english chapter, i want to write here also in greek and i cant!!!!!! english and greek together!!!}

    \selectlanguage{british}
    English text goes here

    \end{document}
    ——————————————————-

    \selectlanguage{greek}
    \chapter{greek chapter, i want to write here also in english!!!!! and i cant!!!!!!english and greek together!!!}
    with this command i will write only in greek
    how can i write english and greek together inside chapter ????

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>