gutenberg / latex-awesomebox

A package to draw attention boxes in your documents, illustrated with FontAwesome icons (Mirror)

Home Page:https://git.umaneti.net/latex-awesomebox/about/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option for RTL languages

ali4heydari opened this issue · comments

Hi
It would be great to add an option for RTL languages. That means icon and vertical line goes to right and text goes left of vertical line.
thanks!

Hi, can you give me a minimal exemple document to help me work on it? The interesting part for me is how you configure the rest of your documents (with babel, geometry?).

Thank you very much!

I noticed there was a problem and apparently it was from my file. I apologize for opening the invalid issue.
The minimal file below is where your package works well for right-to-left and left-to-right environments:

\documentclass[a4paper]{article}

\usepackage{awesomebox}
\usepackage{xepersian} % for writing Persian text

\settextfont{Arial} % XePersian command for setting document main font
\begin{document}
  \notebox{
    این یک متن نمونه است.
  }

  \begin{latin}
    \notebox{
      This is sample text.
    }
  \end{latin}
\end{document}

result:
image
Thanks!

Glad to hear it work for you :) Thanks for the example, it may help another time.