Quero alterar o nome da lista de figuras de "قائمة الأشكال" para "قائمة الصور"
Quando tento incluir gráficos (pdf, eps) no texto árabe, a figura no pdf resultante fica sempre escondida à direita da página !!
Como posso alterar os números das seções de hindi para árabe sem usar poliglossia?
Como alinhar todos os números de página no sumário à direita.
\documentclass[a4paper, oneside, 12pt]{book}
\usepackage[top=23mm,bottom=22mm,left=2cm,right=3cm]{geometry}
\usepackage{arabtex}
\usepackage[utf8]{inputenc}
\usepackage[LFE,LAE]{fontenc}
\usepackage[arabic]{babel}
\usepackage{gensymb}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{fancyhdr}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\cfoot{\thepage}
\pagestyle{fancy}
\addto\captionsarabic{%
\renewcommand\chaptername{الفصل}
}
\addto{\captionsarabic}{\renewcommand*{\contentsname}{قائمة المحتويات}}
\begin{document}
\renewcommand{\baselinestretch}{1.5}
\thispagestyle{plain}
\pagenumbering{roman}
\tableofcontents
\listoffigures
\begin{otherlanguage}{arabic}
\chapter{الأول}
\section{الأول}
\subsection{الأول}
\subsection{الثاني}
\section{الثاني}
\subsection{الأول}
\subsection{الثاني}
\subsection{الثالث}
\section{الثالث}
\end{otherlanguage}
\end{document}
Responder1
Segue seu exemplo com algumas alterações (com alguns comentários). WRT para \includegraphics
, consultefigura usando Babel. Misturar instruções pdftex
requer muito trabalho duro, então considere mudar para xetex
ou luatex
(vejaÁrabe - Babel).
\documentclass[a4paper, oneside, 12pt]{book}
\usepackage[top=23mm,bottom=22mm,left=2cm,right=3cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1,LFE,LAE]{fontenc}
\usepackage[arabic]{babel}
\usepackage{gensymb}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{fancyhdr}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\cfoot{\thepage}
\pagestyle{fancy}
% Although there are a few alternatives, this is the
% canonical way to redefine captions:
\setlocalecaption{arabic}{chapter}{الفصل}
\setlocalecaption{arabic}{contents}{قائمة المحتويات}
\setlocalecaption{arabic}{listfigure}{قائمة الصور}
% The font encoding must be switched to get Latin characters:
\makeatletter
\renewcommand\thepart
{{\fontencoding{T1}\selectfont\@Roman\c@part}}
\renewcommand\thechapter
{{\fontencoding{T1}\selectfont\@arabic\c@chapter}}
\renewcommand\thesection
{{\fontencoding{T1}\selectfont\thechapter.\@arabic\c@section}}
\renewcommand\thesubsection
{{\fontencoding{T1}\selectfont\thesection.\@arabic\c@subsection}}
\renewcommand\thesubsubsection
{{\fontencoding{T1}\selectfont\thesubsection.\@arabic\c@subsubsection}}
\renewcommand\theparagraph
{{\fontencoding{T1}\selectfont\thesubsubsection.\@arabic\c@paragraph}}
\renewcommand\thesubparagraph
{{\fontencoding{T1}\selectfont\theparagraph.\@arabic\c@subparagraph}}
\renewcommand\thefigure
{{\fontencoding{T1}\selectfont\ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}}
\makeatother
\begin{document}
\renewcommand{\baselinestretch}{1.5}
\thispagestyle{plain}
\pagenumbering{roman}
\tableofcontents
\listoffigures
\selectlanguage{arabic}
\chapter{الأول}
\begin{figure}
\caption{شكل}
\foreignlanguage{english}{\includegraphics[width=6cm]{example-image-a.png}}
\end{figure}
\section{الأول}
\subsection{الأول}
\subsection{الثاني}
\end{document}