Using the standard babel package is compeltely counter-intuitive as the letters in the keyboard do not match the babel package and also the accent is in a different key which makes it impossible to write anything longer than a couple of lines (without real patience).
What I am looking is to directly type in greek in the TexnicCenter environment without having use the babel settings.
As suggested here http://www.eelvex.net/latex/greek-in-latex/ these two commands in the preamble should work
\usepackage[english,greek]{babel}
\usepackage[iso-8859-7]{inputenc}
but in that case the greek text compiles to ';;;;;;'. When I change the setting to iso-8 \usepackage[utf-8]{inputenc}the document does not compile at all.
Also I am trying to use \usepackage{auto-greek} but in that case I cannot find the package.
When I am saving the .tex file the default setting is in ANSI rather in any of the UTF options. When I change the encoding of the final saved file to UTF it compiles but still no greek in the output.
How is it possible to write greek direct to TexnicCenter and getting a proper document? (A small example of a document would greatly help)
Thanks
C:\Program Files\MiKTeX 2.9\tex\latex\base? or is a specific folder where I have to put this file. Is dropping it in a folder enough? Regarding the encoding for the .tex file UTF is the only option as the ANSI setting does not save the greek characters in the tex. I did try to run the part above and did not get anything but I think that has to do with the encoding file. – o4tlulz May 19 '11 at 10:21lgrenc.dfuinI:\UFlocaltexmf\tex\generic\babel\lgrenc.dfuwhere UFlocaltexmf is one of my local roots. How to add a local root with miktex is described in the documentation of miktex. – Ulrike Fischer May 19 '11 at 10:29\usepackage[utf8]{inputenc}with the file encoding when saved changed to UTF8 from the default ANSI and everything is fine. Will try to work with it and see if I come across any issues. – o4tlulz May 19 '11 at 12:10utf8xuses the ucs-package which is not really recommended. It is better to extend the standard inputenc/utf8 by adding the neededdfu-file. http://tex.stackexchange.com/questions/13067/utf8x-vs-utf8-inputenc – Ulrike Fischer May 19 '11 at 12:43\begin{document} Ελληνικό κείμενο \selectlanguage{english} text
\end{document}
– o4tlulz May 19 '11 at 14:41just does not include greek. I have saved the duf file in the babel folderC:\Program Files\MiKTeX 2.9\tex\generic\babel` which is already at the root folder of Miktex, refreshed all the Miktex configurations and the greek part still does not compile ot greek, rather than empty space.http://pastebin.com/bv8TFFtewith the repeating error being `! Undefined control sequence.l.7 Ε λληνικό κείμενο \selectlanguage{english} text The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g.,
– o4tlulz May 19 '11 at 15:19\hobx'), typeI' and the correct spelling (e.g.,I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.\usepackage[LGRx,T1]{fontenc}– Ulrike Fischer May 19 '11 at 15:44lgrxenc.defandlgrenc.dfufiles to be saved to a local or to the main root and using\usepackage[LGRx,T1]{fontenc}and the .tex file has to be saved in the UTF-8 encoding to have greek working within TexnicCenter. In this case the [utf8x] setting is not required. Many Thanks @Ulrike – o4tlulz May 19 '11 at 22:00