Em 08/06/2010 21:58, Richard Heck escreveu:
On 06/08/2010 03:03 PM, Marcelo wrote:
Disclaimer: I'm considerably new to TeX, and that's why I choose
Lyx... so I might be missing some basic concepts and/or terminology (:
I'm using abnTeX 0.8.2-a2 [1], a set of macros that follows the
brazilian standards. It's installed on my MiKTeX 2.7 dir and compiles
perfectly from the command line.
To make it work on Lyx 1.6.6.1, the project distributes a
"abnt.layout" file [2] - also installed on Lyx.
My problem is, it seems to me that Lyx does not recognize some
styles... for instance, the style "autor" (author) is recognized
perfectly. Some styles like "titulo" (title), "chapter" and "section",
however, are not. They are not listed on the "styles button" [3] and,
if one is to import a sample .tex file, they show as TeX Code on Lyx.
The "chapter" style is particularly annoying, since the "navigate"
feature is lost.
My guess is that there's a problem with the encoding of the file. The
chapter, title, and section styles all have accented characters in
their names, and LyX is probably failing to read them. Layout files
have to be UTF-8. This file is pre-LyX 1.5, and that is when the
change to Unicode happened. So you might try just re-saving the file
as UTF-8 and see if that works.
See
http://www.lyx.org/trac/browser/lyx-devel/tags/lyx_1_5_0/RELEASE-NOTES
for more info.
Richard
That's pretty incredible, just converted it with Notepad++ and... voilĂ !
Would never have guessed it (:
Many thanks!