LaTeX: Change the chapter name

Tuesday, June 17th, 2008
Advertisement

Subscribe.
Enter your email:

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}
If you are new here, you might want to subscribe to the RSS feed or newsletter.

Enter your email address:

Creates the exact copy of your hard disk and allows you to instantly restore the entire machine.
New Acronis True Image Home 2010 is the most reliable and easy in use backup solution. Now with online backup option!
15% Discount Code: FMAATIH2010

What else?

Like this article? Share it

 Digg  del.icio.us  TwitThis  Facebook  Reddit  StumbleUpon

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)

    • 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.

  2. 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

  3. 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???

    • 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}
      
      • 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}

        • 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}
          • 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

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