Skip to content

Commit

Permalink
Update latex docs
Browse files Browse the repository at this point in the history
  • Loading branch information
omidraha committed Nov 19, 2018
1 parent 2560830 commit f37f5ac
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions src/latex/tips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@ Tips
User RTL and persian
--------------------
Write Persian in Latex
----------------------


The `sample.tex` file:

Use `bidi` package and `RTL` :


.. code-block:: latex

\documentclass[12pt,a4paper,oneside,english]{report}
\documentclass[12pt,a4paper,oneside]{report}

\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage{fontspec}
\setmainfont{B Nazanin}
\usepackage{bidi}
Expand All @@ -32,6 +33,25 @@ The `sample.tex` file:
\end{document}


Use `xepersian` package:


.. code-block:: latex

\documentclass[12pt,a4paper,oneside]{report}

\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\usepackage{xepersian}
\settextfont{B Nazanin}
\setlatintextfont{Lato Thin}

\begin{document}
\textbf{سلام لاتک! }
فارسی نویسی در لاتک به این صورت است!
\end{document}


Generate pdf file:

.. code-block:: bash
Expand Down

0 comments on commit f37f5ac

Please sign in to comment.