Graphics, Figures & Tables ⇒ Tables in Arabic
Tables in Arabic
- Attachments
-
- 2.png (15.2 KiB) Viewed 19026 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
Tables in Arabic
Or consider installing TeX Live instead. It's supported by the TeX Users Group, cross-platform including Windows, stable and mature. That's what I use.
Stefan
Tables in Arabic
- Attachments
-
- Definitions.log
- (59.05 KiB) Downloaded 2750 times
Tables in Arabic
You should switch from inputenc to fontspec package, too.
Come to think of it, if Arabic is the only language used in your document, you could switch the main font:
Code: Select all
\documentclass[11pt]{article}
\usepackage[a4paper, total={7in, 9in}, showframe]{geometry}
\usepackage[export]{adjustbox}
\usepackage[table]{xcolor}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{fontspec}
\setmainfont[Script=Arabic]{Amiri}
\title{%
\Huge\textsc{ التأثيرات البيولوجية للإشعاعات المؤينة }}
\date{}
\author{}
\begin{document}
\maketitle
\begin{table}[h]
\centering
\begin{adjustbox}{width=0.4\textwidth,center}
\begin{tabular}[]{|c|c|}
\hline
التعريف & المصطلح
\\\hline
احتمال الإصابةبالمرض العشوائي عند التعرض لجرعة إشعاعية محددة & معامل المخاطرة
\\\hline
\end{tabular}
\end{adjustbox}
{\color{blue!60!black}\rule{0.3\textwidth}{1pc}\hfill\rule{0.3\textwidth}{1pc}}
\end{table}
\end{document}{adjustbox} environment.KR
Rainer
Tables in Arabic
(! fontspec error: "font-not-found"!! The font "Amiri" cannot be found.)
I faced another problem which is the order of the sentence is not as it should be. I mean in Arabic, sentences start from right to left but when I compile it start from left to right.
I really appreciate any help
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
Tables in Arabic
This is my code in case someone faces the same problem.
Code: Select all
\documentclass[11pt]{article}
\usepackage{polyglossia}
\usepackage[a4paper, total={7in, 9in}]{geometry}
\usepackage[export]{adjustbox}
\usepackage[table]{xcolor}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{fontspec}
\setmainfont[Script=Arabic]{Calibri}
\usepackage{bidi}
\setRTL
\begin{document}
\title{%
\Huge\textsc{ {التأثيرات البيولوجية للإشعاعات المؤينة }}}
\date{}
\author{}
\maketitle
\begin{table}[h]
\centering
\begin{adjustbox}{width=0.9\textwidth,center}
\begin{tabular}[]{|c|c|}
\hline
المصطلح & التعريف
\\\hline
معامل المخاطرة & احتمال الإصابةبالمرض العشوائي عند التعرض لجرعة إشعاعية محددة
\\\hline
\end{tabular}
\end{adjustbox}
\end{table}
\end{document}Tables in Arabic
Sorry about that---I didn't even realize my error---glad you've found a solution.Asma_F wrote: I faced another problem which is the order of the sentence is not as it should be. I mean in Arabic, sentences start from right to left but when I compile it start from left to right.
KR
Rainer
bidi