Difference between revisions of "LaTeX on CSE"

From CsWiki
Jump to: navigation, search
 
Line 1: Line 1:
 
This is a short tutorial to use simple LaTeX document preparing system.
 
This is a short tutorial to use simple LaTeX document preparing system.
 +
See at here an example: http://www.sciencebits.com/files/computing/he_sample.tex http://www.sciencebits.com/files/computing/he_sample.pdf
 +
 +
Start an document like this:
 +
 +
\documentclass[12pt]{article}
 +
\usepackage{ucs}  % package to add unicode support
 +
\usepackage[utf8x]{inputenc}  % adding the UTF-8 encoding
 +
\usepackage[english,hebrew]{babel}
 +
 +
\begin{document}
 +
שלום!
 +
\begin{otherlanguage}{english}
 +
        English text with \R{\small טכסט בעברית}.
 +
        And one more English.
 +
\end{otherlanguage}
 +
 +
    כותבים בעברית!
 +
\end{document}
 +
 +
 +
Or if you want English as primary language
 +
 +
 +
\documentclass[12pt]{article}
 +
\usepackage{ucs}  % package to add unicode support
 +
\usepackage[utf8x]{inputenc}  % adding the UTF-8 encoding
 +
\usepackage[hebrew,english]{babel}
 +
 +
\begin{document}
 +
 +
Sample for English and Hebrew \\ %  new line
 +
 +
\centerline{ \R{שלום!} }
 +
 +
\begin{otherlanguage}{hebrew}
 +
        טכסט בעברית
 +
        \newline        % new line (also \\ )
 +
        \L{and english also}
 +
\end{otherlanguage}
 +
 +
\rightline{ \R{כותבים בעברית!} }
 +
\end{document}

Revision as of 10:48, 1 November 2007

This is a short tutorial to use simple LaTeX document preparing system. See at here an example: http://www.sciencebits.com/files/computing/he_sample.tex http://www.sciencebits.com/files/computing/he_sample.pdf

Start an document like this:

\documentclass[12pt]{article} \usepackage{ucs}  % package to add unicode support \usepackage[utf8x]{inputenc}  % adding the UTF-8 encoding \usepackage[english,hebrew]{babel}

\begin{document} שלום! \begin{otherlanguage}{english}

       English text with \R{\small טכסט בעברית}.
       And one more English.

\end{otherlanguage}

   כותבים בעברית!

\end{document}


Or if you want English as primary language


\documentclass[12pt]{article} \usepackage{ucs}  % package to add unicode support \usepackage[utf8x]{inputenc}  % adding the UTF-8 encoding \usepackage[hebrew,english]{babel}

\begin{document}

Sample for English and Hebrew \\ % new line

\centerline{ \R{שלום!} }

\begin{otherlanguage}{hebrew}

       טכסט בעברית
       \newline        % new line (also \\ )
       \L{and english also}

\end{otherlanguage}

\rightline{ \R{כותבים בעברית!} } \end{document}