[texhax] customizing caption
Vladimir Lomov
lomov.vl at gmail.com
Wed Mar 17 06:48:54 CET 2010
** Muhammad Najmi Ahmad Zabidi [2010-03-17 11:29:40 +0800]:
> najmi at auber:/usr/share/texmf-texlive/tex/generic/babel$ grep -r -w -i
> "gambar" *
> bahasai.ldf: \def\listfigurename{Daftar Gambar}%
> bahasai.ldf: \def\figurename{Gambar}%
> bahasam.ldf: \def\listfigurename{Senarai Gambar}%
> bahasam.ldf: \def\figurename{Gambar}%
> [sudo] password for najmi:
> najmi at auber:/usr/share/texmf-texlive/tex/generic/babel$ sudo vi bahasam.ldf
> you're late.. i hardcoded :-p
Simply search UK FAQ.
Use 'caption' package (I assume that you use TL 2009 or other modern TeX
distribution, like MiKTeX 2.8), found in 'caption' package
documentation:
\captionsetup{figurename=Rajah}
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=captsty
While there is another way to accomplish your task (see UK FAQ) I
recommend use 'caption' package because it could solve many more your
problems which could arise in future.
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=fixnam
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=latexwords
Solution:
\addto\captionbahasam{%
\renewcommand{\figurename}%
{Rajah}%
}
--
Real Users are afraid they'll break the machine -- but they're never
afraid to break your face.
More information about the texhax
mailing list