Difference between revisions of "LaTeX on CSE"

From CsWiki
Jump to: navigation, search
Line 4: Line 4:
 
Start an document like this:
 
Start an document like this:
  
<nowiki>\documentclass[12pt]{article}
+
<pre>\documentclass[12pt]{article}
 
\usepackage{ucs}  % package to add unicode support
 
\usepackage{ucs}  % package to add unicode support
 
\usepackage[utf8x]{inputenc}  % adding the UTF-8 encoding
 
\usepackage[utf8x]{inputenc}  % adding the UTF-8 encoding
Line 17: Line 17:
  
 
     כותבים בעברית!
 
     כותבים בעברית!
\end{document}</nowiki>
+
\end{document}</pre>
  
  
Line 23: Line 23:
  
  
<nowiki>\documentclass[12pt]{article}
+
<pre>\documentclass[12pt]{article}
 
\usepackage{ucs}  % package to add unicode support
 
\usepackage{ucs}  % package to add unicode support
 
\usepackage[utf8x]{inputenc}  % adding the UTF-8 encoding
 
\usepackage[utf8x]{inputenc}  % adding the UTF-8 encoding
Line 41: Line 41:
  
 
\rightline{ \R{כותבים בעברית!} }
 
\rightline{ \R{כותבים בעברית!} }
\end{document}</nowiki>
+
\end{document}</pre>

Revision as of 10:51, 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}