On Wed, Feb 15, 2012 at 5:45 AM, Eric Weir <eew...@bellsouth.net> wrote: > > On Feb 14, 2012, at 4:47 PM, Enrico Forestieri wrote: > >> Eric Weir writes: >>> I'm attempting to use the workaround suggested by Stefano to get LyX to >>> recognize a Unicoded document as Unicoded. The workaround involves use >>> of the tex2lyx command. >>> >>> I'm on a Mac. When I run the command I get a command not found message. >>> When I do locate tex2lyx, however, the file shows up in two locations: >>> /Applications/LyX.app/Contents/MacOS and >>> /Applications/TeX/LyX.app/Contents/MacOS >>> >>> How do I get the command to run? >> >> Why don't you simply modify the converter in >> Tools->Preferences->File Handling->Converters->LaTeX (plain) -> LyX >> and then use File->Import->LaTeX (plain) ? > > Thanks, Enrico. I've checked that out. With help it may be something I'd want > to try. For now, I got the command to run by specifying the path and with the > default settings in document > settings compiling to pdflatex recognizes the > unicode coding. >
Eric, following on Enrico's excellent suggestion, here is how you can solve your Scrivener-related problem in a Lyx-way. The developers are working on a permanent solution, it seems. So this may turn unnecessary very shortly. At any rate, here it goes: 1, Create a new format in Tools>>Preferences>>File formats. Click "New" and call it Scrivener or something like it. 2. Save. 3. In Tools>>Preferences>>FIle Converters, create a new converter from Scrivener to Lyx: select "Scrivener" in the From dropdown list, and "Lyx" in the "to list. Enter the call to tex2lyx with the UTF8 switch in the "Converter field": tex2lyx -e UTF8 -f $$i $$o 4. Click "Add" and click "Save." Now you should have the "Scrivener" (or whatever you called the format) option in File>>Import, without needing to go to the command line. In fact Lyx does internally exactaly what you'd on the command line. Cheers, Stefano -- __________________________________________________ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A&M University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org