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:
  
\documentclass[12pt]{article}
+
<nowiki>\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}
+
\end{document}</nowiki>
  
  
Line 23: Line 23:
  
  
\documentclass[12pt]{article}
+
<nowiki>\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}
+
\end{document}</nowiki>

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