Hi, I have problem , when I include babel package, \renewcommand doesn't work any more. Have any idea what can be problem?
Here is the example code:
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{url}
\usepackage{float}
\usepackage{comment}
\usepackage[T2A,OT1]{fontenc}
\usepackage[ot2enc]{inputenc}
\usepackage[russian,english]{babel}
\renewcommand{\figurename}{slika}
\begin{document}
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=4cm]{.//slikecad//pk}
\end{center}
\caption{pk}
\end{figure}
\end{document}
Fonts & Character Sets ⇒ babel package and \renewcommand
NEW: TikZ book now 40% off at Amazon.com for a short time.
babel package and \renewcommand
Hi and welcome to the forum.
1. Please read Board rules (pay special attention to section 2).
2. Since your default language is english, \addto\captionsenglish would solve the problem. See the following example (your code, but slightly modified for setting the caption; also book document class and "demo" option for graphicx package are added):
1. Please read Board rules (pay special attention to section 2).
2. Since your default language is english, \addto\captionsenglish would solve the problem. See the following example (your code, but slightly modified for setting the caption; also book document class and "demo" option for graphicx package are added):
Code: Select all
\documentclass{book}
\usepackage{amsfonts}
\usepackage[demo]{graphicx}% I used "demo" option since you haven't provided the picture you were using
\usepackage{url}
\usepackage{float}
\usepackage{comment}
\usepackage[T2A,OT1]{fontenc}
\usepackage[ot2enc]{inputenc}
\usepackage[russian,english]{babel}
\addto\captionsenglish{%
\renewcommand{\figurename}{slika}}
\begin{document}
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=4cm]{.//slikecad//pk}
\end{center}
\caption{pk}
\end{figure}
\end{document}
-
- Posts: 5
- Joined: Thu Aug 19, 2010 9:05 am
Re: babel package and \renewcommand
Thank you, it has solved the problem 
