latex

Some packages have to be included in the preamble to support it, as shown below.

\documentclass[a4paper,10pt]{article}
%In the preamble section include the arabtex and utf8 packages
\usepackage{arabtex}
\usepackage{utf8}

\begin{document}
%start encoding to unicode
%Note that your layout must support arabic text when compiling
\setcode{utf8}
%To start typing in Arabic use the command arabtext
hello
\begin{arabtext}
السَلامُ عَليكم ورَحمةُ الله وبَركاته
\end{arabtext}
arabic
\end{document}

How to write Arabic in Latex

\documentclass[a4paper,10pt]{article} %In the preamble section include the arabtex and utf8 packages \usepackage{arabtex} \usepackage{utf8} \begin{document} %start encoding to unicode %Note that your layout must support arabic text when compiling \setcode{utf8} %To start typing in Arabic use the command arabtext hello \begin{arabtext} السَلامُ عَليكم ورَحمةُ الله وبَركاته \end{arabtext} arabic \end{document}

Some packages have to be included in the preamble to support it, and it should be written as shown below:

\documentclass[a4paper,10pt]{article}
%In the preamble section include the arabtex and utf8 packages
\usepackage{arabtex}
\usepackage{utf8}

\begin{document}
%start encoding to unicode
%Note that your layout must support arabic text when compiling
\setcode{utf8}
%To start typing in Arabic use the command arabtext
hello
\<السَلامُ عَليكم ورَحمةُ الله وبَركاته >
arabic
\end{document}

How to write Arabic words in between English words in Latex

Writing Arabic words in between English words, in Latex.

How to write a LaTex formula in a Moodle forum entry

In Moodle forums, LaTex formulas can be embedded as separate formulas or inline formulas. For this purpose, the „Mathematics mode“ has to be activated. This can occur by doing the following: Creation of an inline formula: write a $ sign before and after the formula. Creation of a formula displayed in a separate line: write $$ before and after the formula.

I used to also use BibTex for referencing when I worked on Latex but now I find that Biblatex is a better option, its interface is easier and more flexible. Moreover, it has a better language localization than BibTex. I hope this helps you.

Overleaf project share

Many university projects request LaTex as preferred or even demanded task submission format. Since ShareLaTeX didn't quite work out for many colleagues of mine, another more simple and user friendly option established and pushed through. That is Overleaf, online LaTeX text editor. Apart from the fact that two of those lately connected powers, the problem of sharing and working on the same document turned out not being a part of the free "trial" version. There are two options offered to share a document: link sharing and e-Mail invitation. e-Mail invitation as a naturally logical sharing option is unfortunately not working.

Using TeXstudio for Creating LaTeX Documents

TeXstudio is an integrated writing environment for creating LaTeX documents. TeXstudio has numerous features like syntax-highlighting, integrated viewer, reference checking and various assistants. By using TeXstudio writing LaTeX is very easy and comfortable. Most of the LaTeX commands can be easily added to the documents by using the menu-bars or buttons of the TeXstudio. Therefore, by using TeXstudio, there is no need to remember all LaTeX commands and one can completely focus on writing.

Taggings:

Use latexdiff utility with "flatten" flag to see differences between two latex based documents

In order to see differences between two latex generated documents, one can use a program called latexdiff: https://www.sharelatex.com/blog/2013/02/16/using-latexdiff-for-marking-c...

latexdiff is a Perl script and requires an installation of Perl 5.8 or higher.

If you are a Windows user, you will have to go through the following setup to get latexdiff working on your machine:

1) Install Perl
2) Download latexdiff from CTAN (Comprehensive TeX Archive Network)
3) Unzip the latexdiff files and copy them to the Perl > bin folder (default installation in C: drive)

Mac OS X includes an installation of Perl and no additional setup is required. latexdiff can be found in any CTAN repository in TeX Live Utility.

It is important to use --flatten which makes latexdiff recursively operate on any included .tex files. Then use command line like that:
latexdiff --flatten v1.tex v2.tex > diff.tex

where v1.tex is one version (older) and v2.tex is changed (newer) version. diff.tex is then a tex file that is produces as an output.

Taggings:

Pages

Subscribe to latex