Re: Errors on publishing [to pdf]
On Feb 13, 2012, at 9:16 AM, stefano franchi wrote: > you may have to check the encoding of your lyx file. If you use XeTeX > compilation (or LuaTeX, for that mater) the file should be in Unicode. > It looks like it isn't. Be sure: > > 1. that Scrivener-generated LateX code is in Unicode encoding (it may > be an option---LaTex was unable to read unicode until recently. Thanks, Stefano. I'm still waiting on a response from the Scrivener listserv. > 2. That Lyx properly treats the file as Unicode-encoded. IT should do > so automatically, but just to be on the safe side,go to > Document>>Settings>>Language under "Encoding" select the radio button > "Other" and from the drop-down list next to it choose *Unicode (XeTeX) > (UTF8)" I made this change and tried compiling with XeTeX and LuaTeX. Still getting the weird substitutions. Tried quitting LyX and compiling again with the same result. Is it possible that I will need to reimport the tex output from Scrivener? Sincerely, -- Eric Weir Decatur, GA USA eew...@bellsouth.net "Imagining the other is a powerful antidote to fanaticism and hatred." - Amos Oz
Re: Errors on publishing [to pdf]
On Mon, Feb 13, 2012 at 6:14 AM, Eric Weir wrote: > > On Feb 12, 2012, at 1:18 PM, Richard Heck wrote: > > Once you have the file in LyX, just try: View>PDF(XeTeX), e.g. That said, > I'm definitely not an expert on this encoding stuff. If you could produce a > really simple example file---create it in Scrivener and export it as > usual---that exhibits the problem, that will definitely help. > > > Thanks again, Richard. I thought the XeTeX/LuaTeX suggestion would involve > an additional compiling step. I see that it does not. Both compile, but > instead of giving error messages they substitute weird characters for the > problemmatic characters, e.g., an em-dash becomes âĂT. Sometimes it does > the same for en-dashes, sometimes not. Sometimes with the apostrophe, > sometimes not. Also with accented characters. > Eric, you may have to check the encoding of your lyx file. If you use XeTeX compilation (or LuaTeX, for that mater) the file should be in Unicode. It looks like it isn't. Be sure: 1. that Scrivener-generated LateX code is in Unicode encoding (it may be an option---LaTex was unable to read unicode until recently. 2. That Lyx properly treats the file as Unicode-encoded. IT should do so automatically, but just to be on the safe side,go to Document>>Settings>>Language under "Encoding" select the radio button "Other" and from the drop-down list next to it choose *Unicode (XeTeX) (UTF8)" Hope it helps, Stefano > The file I'm working on is not that complicated: 12 pages with bibliography > and footnotes; title, author, and section headings formatted KOMA-Script > default. > > Assuming that the problem is Unicode characters, I'm also gonna check with > the Scrivener forum to see if there's a way to stop that. > > Sincerely, > -- > Eric Weir > Decatur, GA USA > eew...@bellsouth.net > > > > -- __ 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
Re: Errors on publishing [to pdf]
On Feb 12, 2012, at 1:18 PM, Richard Heck wrote: > Once you have the file in LyX, just try: View>PDF(XeTeX), e.g. That said, I'm > definitely not an expert on this encoding stuff. If you could produce a > really simple example file---create it in Scrivener and export it as > usual---that exhibits the problem, that will definitely help. Thanks again, Richard. I thought the XeTeX/LuaTeX suggestion would involve an additional compiling step. I see that it does not. Both compile, but instead of giving error messages they substitute weird characters for the problemmatic characters, e.g., an em-dash becomes âĂT. Sometimes it does the same for en-dashes, sometimes not. Sometimes with the apostrophe, sometimes not. Also with accented characters. The file I'm working on is not that complicated: 12 pages with bibliography and footnotes; title, author, and section headings formatted KOMA-Script default. Assuming that the problem is Unicode characters, I'm also gonna check with the Scrivener forum to see if there's a way to stop that. Sincerely, -- Eric Weir Decatur, GA USA eew...@bellsouth.net
Re: Errors on publishing [to pdf]
On 02/12/2012 12:04 PM, Eric Weir wrote: On Feb 12, 2012, at 10:41 AM, Richard Heck wrote: The problem may be that these are Unicode characters (so is the quote you mentioned). You might try compiling with XeTeX or LuaTeX, which use Unicode. Thanks, Richard. My only way to get from Scrivener to LaTeX/LyX is to compile in Scrivener. The out from Scrivener is a tex file. Would I then compile that with XeTeX or LuaTex? If so, could you give me quick pointers how to get started with that? Or a reference to instructions? Once you have the file in LyX, just try: View>PDF(XeTeX), e.g. That said, I'm definitely not an expert on this encoding stuff. If you could produce a really simple example file---create it in Scrivener and export it as usual---that exhibits the problem, that will definitely help. I don't know if its possible, would another option be to get Scrivener to stop outputing Unicode characters? It might, but I don't know Scrivener. Richard
Re: Errors on publishing [to pdf]
On Feb 12, 2012, at 10:41 AM, Richard Heck wrote: > The problem may be that these are Unicode characters (so is the quote you > mentioned). You might try compiling with XeTeX or LuaTeX, which use Unicode. Thanks, Richard. My only way to get from Scrivener to LaTeX/LyX is to compile in Scrivener. The out from Scrivener is a tex file. Would I then compile that with XeTeX or LuaTex? If so, could you give me quick pointers how to get started with that? Or a reference to instructions? I don't know if its possible, would another option be to get Scrivener to stop outputing Unicode characters? -- Eric Weir Decatur, GA eew...@bellsouth.net "We do not inherit the earth from our ancestors, we borrow it from our children." - Chief Seattle.
Re: Errors on publishing [to pdf]
In addition to Richard's suggestion, another option would be to open your LyX document in a text editor and globally replace the Unicode character for the long dash with two ordinary dashes. Paul
Re: Errors on publishing [to pdf]
On 02/12/2012 07:15 AM, Eric Weir wrote: When I attempt to publish [format and print to pdf] a document compiled from Scrivener and imported into LyX I get a long list of errors, all of which have to do with Lyx--or the document class I'm using, KOMA-Script article--not liking some of the punctuation carried over from Scrivener. The major offender is--I'm going to describe, because I don't know the name--a long dash which Scrivener converts to when I enter two regular dashes in succession. Single dashes and some single and double quotation marks also give errors. [The error with the long dash--again, forgive my not knowing the name of the thing--may be due to the fact that I believe it is normally preceded and followed by a space; I recently switched to use of long dashes that without the preceding and following spaces.] The long dash is called an "em-dash". There's also a slightly shorter one called an "en-dash". In LyX, these would be entered as "---" and "--", respectively. The spaces won't matter, and (at least in US typesetting) one doesn't normally use them. This is the message I get regarding the long dash: We believe this impasse— between a rigorous method that is difficult You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key. The problem may be that these are Unicode characters (so is the quote you mentioned). You might try compiling with XeTeX or LuaTeX, which use Unicode. Richard
Errors on publishing [to pdf]
When I attempt to publish [format and print to pdf] a document compiled from Scrivener and imported into LyX I get a long list of errors, all of which have to do with Lyx--or the document class I'm using, KOMA-Script article--not liking some of the punctuation carried over from Scrivener. The major offender is--I'm going to describe, because I don't know the name--a long dash which Scrivener converts to when I enter two regular dashes in succession. Single dashes and some single and double quotation marks also give errors. [The error with the long dash--again, forgive my not knowing the name of the thing--may be due to the fact that I believe it is normally preceded and followed by a space; I recently switched to use of long dashes that without the preceding and following spaces.] This is the message I get regarding the long dash: We believe this impasse— between a rigorous method that is difficult You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key. My first thought was to go back to Scrivener and change the offending characters--adding spaces before and after double dashes--but that might be unnecessarily laborious, and will not work for the offending single dashes and single and double quotes. Here is an error message related to single quotes: Cartwright, N. (1989a). Nature’ s Capacities and Their Measurement. You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key. And double quotes: relatively specific practices ``instituting universal preschool'' You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key. Suggestions for resolving the problem would be appreciated. Sincerely, -- Eric Weir Decatur, GA USA eew...@bellsouth.net "Hatred destroys. Love heals." - Eknath Easwaran