Skip to content

Commit

Permalink
Merge branch 'master' of github.com:omidraha/mystack
Browse files Browse the repository at this point in the history
  • Loading branch information
omidraha committed Nov 22, 2018
2 parents 33b82fd + 0820a26 commit 2be9b6a
Show file tree
Hide file tree
Showing 5 changed files with 101 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

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


.. code-block:: bash
$ sudo apt-get install texlive-xetex
$ sudo apt-get install texlive-lang-arabic
Write Persian in Latex
----------------------



Use `bidi` package and `RTL` :


.. code-block:: latex

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

\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\setmainfont{B Nazanin}
\usepackage{bidi}
\RTL
\begin{document}
\textbf{سلام لاتک! }
فارسی نویسی در لاتک به این صورت است!
\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
$ xelatex sample.tex
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
18 changes: 18 additions & 0 deletions src/virtualization/docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -458,3 +458,21 @@ Set maximum concurrent download for docker pull
$ sudo systemctl daemon-reload
$ systemctl restart docker
Override the ENTRYPOINT using docker run
----------------------------------------


.. code-block:: bash
docker run -it --entrypoint "/bin/bash" --rm -v "$PWD":/ws/omr/ lsakalauskas/sdaps
Set image name when building a custom image
-------------------------------------------

.. code-block:: bash
$ docker build -t image_name .

0 comments on commit 2be9b6a

Please sign in to comment.