Re: Import utf8 latex on MacOS
On Sun, Oct 12, 2008 at 10:59:50PM +0300, Dmitrii Dimandt wrote: >>> When I import this file into Lyx, I get anything but cyrillic in my >>> text: http://images.dmitriid.com/misc/tex/lyx.png (top of screenshot >>> is what it shouldve looked like and bottom of the picture is what it >>> looks like in Lyx) Yes, looks like a problem with tex2lyx. As a workaround replace the line \usepackage[english,russian]{babel} with \usepackage[russian]{babel} before you run tex2lyx. This should produce a usable .lyx file, but, unfortunately, drop the 'russian' option for babel. To fix this, set within LyX Document -> Settings -> Language -> Language to "Russian" Hope this helps. Andre'
Re: Import utf8 latex on MacOS
On Oct 11, 2008, at 7:11 PM, Andre Poenitz wrote: On Thu, Oct 09, 2008 at 02:20:36PM +0300, Dmitrii Dimandt wrote: Hi all I have a LaTeX file created with TexMate and saved with "UTF8(recommended)" When I import this file into Lyx, I get anything but cyrillic in my text: http://images.dmitriid.com/misc/tex/lyx.png (top of screenshot is what it shouldve looked like and bottom of the picture is what it looks like in Lyx) My settings for Lyx are: Default language: English Language package: \usepackage[english,russian]{babel} TeX encoding: T2A And for the document I tried everything: language Russian, default encoding, utf8 - nothing works :( I know that this issue has supposedly been fixed in 1.5.6, but here I am on 1.5.6 and importing utf8-encoded LaTeX files doesn't work :( I guess there's a misunderstanding between Texmate, MacOS and Lyx on what utf8 actually means :) I hope there's somebody who has this figured out. Anyone? Help? Can you send me a .tex file that LyX failed to import? Andre' sure. This is a minimal doc. I'll give it here and I'll attach it as well. \documentclass[a4paper]{article} \usepackage[T2A]{fontenc} \usepackage[utf8x]{inputenc} \usepackage{ucs} \usepackage[english,russian]{babel} \begin{document} Нажмите Ctrl-Alt-Del для достижения нирваны (Press Ctrl-Alt-Del to reach nirvana) \end{document} main2.tex Description: Binary data Make sure to save it as UTF8 under MacOS
Re: Import utf8 latex on MacOS
On Thu, Oct 09, 2008 at 02:20:36PM +0300, Dmitrii Dimandt wrote: > Hi all > > I have a LaTeX file created with TexMate and saved with > "UTF8(recommended)" > > When I import this file into Lyx, I get anything but cyrillic in my > text: http://images.dmitriid.com/misc/tex/lyx.png (top of screenshot is > what it shouldve looked like and bottom of the picture is what it looks > like in Lyx) > > My settings for Lyx are: > Default language: English > Language package: \usepackage[english,russian]{babel} > TeX encoding: T2A > > And for the document I tried everything: language Russian, default > encoding, utf8 - nothing works :( > > I know that this issue has supposedly been fixed in 1.5.6, but here I am > on 1.5.6 and importing utf8-encoded LaTeX files doesn't work :( > > I guess there's a misunderstanding between Texmate, MacOS and Lyx on > what utf8 actually means :) I hope there's somebody who has this figured > out. Anyone? Help? Can you send me a .tex file that LyX failed to import? Andre'
Re: Import utf8 latex on MacOS
Too bad I have no idea about unicode and bad at programming in general :) Oh well, I guess I'll just find the encoding that works, because I like Lyx :)
Re: Import utf8 latex on MacOS
On Fri, Oct 10, 2008 at 09:49:56AM +0200, Jürgen Spitzmüller wrote: > Dmitrii Dimandt wrote: > > I guess there's a misunderstanding between Texmate, MacOS and Lyx on > > what utf8 actually means :) I hope there's somebody who has this > > figured out. Anyone? Help? > > Unfortunately the tex2lyx converter cannot read utf8 yet. Well, it reads utf8 and passes it unmodified to the .lyx but does not mark it as such... Andre'
Re: Import utf8 latex on MacOS
Dmitrii Dimandt wrote: > I guess there's a misunderstanding between Texmate, MacOS and Lyx on > what utf8 actually means :) I hope there's somebody who has this > figured out. Anyone? Help? Unfortunately the tex2lyx converter cannot read utf8 yet. This is one of the more severe drawbacks we currently have, but until now no one volunteered to implement the support. So you need to save the tex file to another encoding. Jürgen
Import utf8 latex on MacOS
Hi all I have a LaTeX file created with TexMate and saved with "UTF8(recommended)" When I import this file into Lyx, I get anything but cyrillic in my text: http://images.dmitriid.com/misc/tex/lyx.png (top of screenshot is what it shouldve looked like and bottom of the picture is what it looks like in Lyx) My settings for Lyx are: Default language: English Language package: \usepackage[english,russian]{babel} TeX encoding: T2A And for the document I tried everything: language Russian, default encoding, utf8 - nothing works :( I know that this issue has supposedly been fixed in 1.5.6, but here I am on 1.5.6 and importing utf8-encoded LaTeX files doesn't work :( I guess there's a misunderstanding between Texmate, MacOS and Lyx on what utf8 actually means :) I hope there's somebody who has this figured out. Anyone? Help?