[texhax] customizing caption

Lim Lian Tze liantze at gmail.com
Wed Mar 17 04:23:42 CET 2010


Works for me:

\documentclass{book}
\usepackage[bahasam]{babel}
\renewcommand\figurename{Rajah}
\begin{document}
\begin{figure}[htb!]
Cuba lagi
\caption{Boleh?}
\end{figure}
\end{document}

Try issuing the \renewcommand *after* \begin{document}

- Lim Lian Tze -




On Wed, Mar 17, 2010 at 11:16 AM, Muhammad Najmi Ahmad Zabidi
<najmi.zabidi at gmail.com> wrote:
> the renewcommand doesn't work.. it still "Gambar"
>
> On Wed, Mar 17, 2010 at 11:12 AM, Lim Lian Tze <liantze at gmail.com> wrote:
>>
>> % To fully localise all other keywords to Malay anyway
>> \usepackage[bahasam]{babel}
>>
>> % But default "Figure" in Malay is "Gambar", so re-define
>> \renewcommand\figurename{Rajah}
>>
>> - Lim Lian Tze -
>>
>>
>>
>>
>> On Wed, Mar 17, 2010 at 11:04 AM, Muhammad Najmi Ahmad Zabidi
>> <najmi.zabidi at gmail.com> wrote:
>> > hello all,
>> >
>> > what should i do given i want to customize my figure captions...
>> >
>> > say.. from Figure 1.1 to Rajah 1.1 (in Malay language Figure means
>> > Rajah).
>> >
>> > let say i'm using \captionof(figure}{bla bla} .. what should I do to
>> > replace
>> > the default Figure X.Y output?
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > TeX FAQ: http://www.tex.ac.uk/faq
>> > Mailing list archives: http://tug.org/pipermail/texhax/
>> > More links: http://tug.org/begin.html
>> >
>> > Automated subscription management:
>> > http://tug.org/mailman/listinfo/texhax
>> > Human mailing list managers: postmaster at tug.org
>> >
>
>


More information about the texhax mailing list