aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r--arabluatex.dtx49
1 files changed, 16 insertions, 33 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index b323ada..6f5132b 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -2282,24 +2282,6 @@ word that \cs{arbnull} is applied to.
2282%</example> 2282%</example>
2283% \fi 2283% \fi
2284% 2284%
2285% \paragraph{Color}
2286% Here comes the example:
2287% For example, to distinguish words with a different color, one may
2288% proceed like so:---
2289% \iffalse
2290%<*example>
2291% \fi
2292\begin{arabluacode}
2293\begin{arab}
2294_tumma "intalaqa _dU 'l-qarn-ayni 'il_A 'ummaT-iN 'u_hr_A fI
2295\arbcolor{red}{\arb[fullvoc]{((ma.tli`-i 'l-^sams-i))}}
2296wa-lA binA'-a la-hum yu'amminu-hum mina 'l-^sams-i.
2297\end{arab}
2298\end{arabluacode}
2299% \iffalse
2300%</example>
2301% \fi
2302%
2303% \section{Transliteration} 2285% \section{Transliteration}
2304% \label{sec:transliteration} 2286% \label{sec:transliteration}
2305% It may be more appropriate to speak of \enquote{romanization} than 2287% It may be more appropriate to speak of \enquote{romanization} than
@@ -2813,6 +2795,22 @@ al-muqAtil-Ina.}, wa-kAnat 'ummI min `u.zamA'-i buyUt-i
2813% \cs{LR}\marg{arg}, but typesets its argument from right to left. Even 2795% \cs{LR}\marg{arg}, but typesets its argument from right to left. Even
2814% in an Arabic environment, this command may be useful. 2796% in an Arabic environment, this command may be useful.
2815% 2797%
2798% For example, to distinguish words with a different color, one may
2799% proceed like so:---
2800% \iffalse
2801%<*example>
2802% \fi
2803\begin{arabluacode}
2804\begin{arab}
2805 _tumma "intalaqa _dU 'l-qarn-ayni 'il_A 'ummaT-iN 'u_hr_A fI
2806 \textcolor{red}{\arb[fullvoc]{((ma.tli`-i 'l-^sams-i))}} wa-lA
2807 binA'-a la-hum yu'amminu-hum mina 'l-^sams-i.
2808\end{arab}
2809\end{arabluacode}
2810% \iffalse
2811%</example>
2812% \fi
2813%
2816% \DescribeMacro{\LRfootnote} \DescribeMacro{\RLfootnote} 2814% \DescribeMacro{\LRfootnote} \DescribeMacro{\RLfootnote}
2817% \cs{LRfootnote}\marg{text} and \cs{RLfootnote}\marg{text} typeset 2815% \cs{LRfootnote}\marg{text} and \cs{RLfootnote}\marg{text} typeset
2818% left-to-right and right-to-left footnotes respectively in Arabic 2816% left-to-right and right-to-left footnotes respectively in Arabic
@@ -3463,21 +3461,6 @@ wa-ya.sIru ta.hta 'l-jild-i
3463 \else \fi\fi\fi\fi}[\par] 3461 \else \fi\fi\fi\fi}[\par]
3464% \end{macrocode} 3462% \end{macrocode}
3465% \end{environment} 3463% \end{environment}
3466% \begin{macro}{\arbcolor}
3467% \changes{v1.8.6}{2017/06/25}{New \cs{arbcolor} command}
3468% \cs{arbcolor} is the equivalent for the \cs{textcolor} command. Just
3469% as the latter, it takes two mandatory arguments. Of course,
3470% \cs{textcolor} must be defined for \cs{arbcolor} to work.
3471% takes two mandatory arguments.
3472% \begin{macrocode}
3473\NewDocumentCommand{\arbcolor}{m m}{%
3474 \ifdefined\textcolor%
3475 \textcolor{#1}{#2}%
3476 \else\@gobble#1%
3477 \arb{#2}
3478 \fi}
3479% \end{macrocode}
3480% \end{macro}
3481% \begin{environment}{arabverse} 3464% \begin{environment}{arabverse}
3482% \changes{v1.6}{2016/12/17}{New environment \texttt{arabverse} for 3465% \changes{v1.6}{2016/12/17}{New environment \texttt{arabverse} for
3483% typesetting Arabic poetry} The |arabverse| environment may receive 3466% typesetting Arabic poetry} The |arabverse| environment may receive