Greek in LaTeX

greek.tex

How to write Greek in LaTeX. There is also the method of writing in greeklish and getting output in Greek. The relation for this method is described here. In the link you can find many commands for LaTeX.

Download a version of LaTeX here or here.

\documentclass{article}
\date{29/5/12}
\usepackage{amsmath}
%\usepackage[english,greek]{babel}
%\usepackage[iso-8859-7]{inputenc}
\usepackage{polyglossia}
\setotherlanguage{greek}
\newfontfamily\greekfont[Script=Greek,Ligatures=TeX]{Times New Roman} % Has Greek characters
\title{\begin{greek}Αλγόριθμοι άσκηση 3\end{greek}}
\author{\begin{greek}Σαμαράς Γεώργιος\end{greek}\\\begin{large}$ std10093 $\end{large}}
\pdfpagewidth 8.5 in
\pdfpageheight 11 in
\setlength {\topmargin}{0in}
\setlength{\headheight}{0in}
\setlength {\headsep}{0in}
\setlength{\textheight}{7,7in}
\setlength {\textwidth}{6.5in}
\setlength {\oddsidemargin}{0in}
\setlength {\evensidemargin}{0in}
\setlength{\parindent}{0.25in}
\setlength {\parskip}{0.25in}
\newcommand{\tab}{\hspace*{2em}} 
\begin{document}
\maketitle
\begin{greek} Τεστάρω \end{greek}
\end{document}

This code comes from G. Samaras, but I would like to thank Vassilis Papapanagiotou for letting me know about this.
A tutorial suggested from Evaggelia Giannikou, can be found here.

Have questions about this code? Comments? Did you find a bug? Let me know!😀
Page created by G. (George) Samaras (DIT)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s