gutenberg / latex-awesomebox

A package to draw attention boxes in your documents, illustrated with FontAwesome icons (Mirror)
https://git.umaneti.net/latex-awesomebox/about/
Do What The F*ck You Want To Public License
52 stars 6 forks source link

Add option for RTL languages #13

Closed ali4heydari closed 5 years ago

ali4heydari commented 5 years ago

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!

milouse commented 5 years ago

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!

ali4heydari commented 5 years ago

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!

milouse commented 5 years ago

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