Graphics, Figures & TablesTables in Arabic

Information and discussion about graphics, figures & tables in LaTeX documents.
Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Tables in Arabic

Post by Asma_F »

Hi there

I want to resize the table to fit the page. the table contains Arabic characters and I tried to use adjustbox but It did not work. This is my code

Code: Select all

\documentclass[11pt]{article}



\usepackage[a4paper, total={7in, 9in}]{geometry}
\usepackage{color}
\usepackage[export]{adjustbox}
\usepackage[table]{xcolor}
\usepackage{amssymb}
\usepackage{graphicx}

\usepackage{arabtex}
\usepackage[utf8]{inputenc}
\usepackage[LFE,LAE]{fontenc}
\usepackage[arabic]{babel}
\usepackage{array}

\newsavebox{\mybox}
\usepackage{array}
\newcolumntype{C}{>{\begin{lrbox}{\mybox}}c<{\end{lrbox}\AR{\unhbox\mybox}}}


\title{
    \Huge\textsc{ التأثيرات البيولوجية للإشعاعات المؤينة }}
\date{}

\begin{document}
\maketitle


\begin{table}[h]
\centering
\begin{adjustbox}{width=0.4\textwidth,center}
         \begin{tabular}[]{|C|C|}
         \hline
                 التعريف & المصطلح
         \\\hline
         \hline
                 هي التأثيرات الناتجة في جسم نفس الكائن الحي الذي تعرض للإشعاعات & التأثيرات الذاتية
         \\\hline
         \hline
                  هي التأثيرات الناتجة في ذرية الكائن نتيجة للتلف الإشعاعي للأعضاء التناسلية للشخص المتعرض & التأثيرات الوراثية
         \\\hline
         \hline
                 وظائف أعضاء جسم الانسان وأجهزته المختلفة & فيسولوجية الإنسان
         \\\hline
         \hline
                 هو عبارة عن دارة مغلقة من الأنابيب ينتقل خلالها الدم إلى جميع أجزاء الجسم ثم يعود من هذه الأجزاء إلى القلب & الجهاز الدوري
         \\\hline
         \hline
                 هي التأثيرات  التي يظهر  أثرها على المدى البعيد والناتجة عن التعرض لجرعات صغير من الإشعاع 
 & التأثيرات المتأخرة
         \\\hline
         \hline
                  تضاعف الخلايا في العضو المعين بمعدل فوق المعدل الطبيعي & السرطان
         \\\hline
                 احتمال الإصابةبالمرض العشوائي عند التعرض لجرعة إشعاعية محددة & معامل المخاطرة 
         \\\hline
         \end{tabular}
\end{adjustbox}
\end{table}


\end{document}
Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Tables in Arabic

Post by Stefan Kottwitz »

but It did not work
And this means? Error, warning, no output, wrong outpout, what exactly?

Stefan
LaTeX.org admin
Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Tables in Arabic

Post by Asma_F »

process exited with error(s) and no output. But there are no red messages indicate the error so I don't know what is the problem.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Tables in Arabic

Post by Stefan Kottwitz »

Perhaps show us the error messages, or post the .log file as attachment.

Stefan
LaTeX.org admin
Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Tables in Arabic

Post by Asma_F »

This is the .log file
Attachments
Definitions.log
(35.72 KiB) Downloaded 392 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Tables in Arabic

Post by Stefan Kottwitz »

Can you try XeLaTeX instead of pdfLaTeX?

Stefan
LaTeX.org admin
Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Tables in Arabic

Post by Asma_F »

It required to install (xetex-def) package. I tried to install it but It says the package not found

! LaTeX Error: File `xetex.def' not found.Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: def)Enter file name:! Emergency stop.<read > ...ed{ver@\Gin@driver}{\input{\Gin@driver}}{}

I tried to install it from Package Manager admin and an error pop out (Unknown archive file size.)
Attachments
Definitions.log
(3.95 KiB) Downloaded 354 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Tables in Arabic

Post by Stefan Kottwitz »

Install also graphics-def.

Stefan
LaTeX.org admin
Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Tables in Arabic

Post by Asma_F »

I can't install any packages. I don't know what happened!
Attachments
1.png
1.png (23.62 KiB) Viewed 7694 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Tables in Arabic

Post by Stefan Kottwitz »

Perhaps try updating MiKTeX.

Stefan
LaTeX.org admin
Post Reply