Skip to content

Commit

Permalink
Add latex docs
Browse files Browse the repository at this point in the history
  • Loading branch information
omidraha committed Nov 18, 2018
1 parent 07fbdec commit ac6f30e
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Contents:
src/irc/irc
src/java/java
src/javascript/javascript
src/latex/latex
src/linux/linux
src/machine_learning/machine_learning
src/mercurial/mercurial
Expand Down
11 changes: 11 additions & 0 deletions src/latex/latex.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Latex
=====


Contents:

.. toctree::
:maxdepth: 2

tips

30 changes: 30 additions & 0 deletions src/latex/tips.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Tips
====


.. code-block:: bash
$ sudo apt-get install texlive-xetex
$ sudo apt-get install texlive-lang-arabic
User RTL and persian
--------------------


.. code-block:: latex

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

\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage{fontspec}
\setmainfont{B Nazanin}
\usepackage{bidi}
\RTL
\begin{document}
\textbf{سلام لاتک! }
این یک نوشته‌ی آزمایشی است
\end{document}
11 changes: 11 additions & 0 deletions src/linux/cmds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1474,3 +1474,14 @@ Note that add `0x` prefix before the `5523BAEEB01FA116` key
Install fonts
-------------


.. code-block:: bash
$ sudo apt-get install font-manager
.. code-block:: bash
$ font-manager

0 comments on commit ac6f30e

Please sign in to comment.