Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)
I tried 1) -- 8). I see the same problem as before. Command and control keys do not behave correctly. The result of 8) is preferences:\mac_dontswap_ctrl_meta true As for 5), in my case, Times is chosen at PreferencesScreen fontsRoman from the first. stiv. On Wed, Feb 1, 2012 at 2:16 AM, Jens Nöckel noec...@uoregon.edu wrote: Hi, since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried the following steps on my OS X 10.6.8 machine: 1) Move ~/Library/Application Support/LyX-2.0 to the Desktop. 2) Fresh download of LyX-2.0.2+qt4-cocoa.dmg from www.lyx.org 3) Move old LyX out of Application folder 4) Install downloaded LyX and launch it 5) In an unrelated note, I noticed that the default screen font wasn't correctly displayed: should be Times but is Helvetica. So I chnaged that font to Times New Roman and the display worked again. 6) In Preferences, I then chose the xemacs bind file, and checked the box Do not swap Apple and Control Keys 7) I restarted LyX and opened a new document with Control-d (it worked as expected). I then started a new math display formula with Apple-d and it worked as expected. 8) To double check, I went to the Terminal and navigated to ~/Library/Application Support/LyX-2.0 then issued the command: grep dontswap * with the expected result: preferences:\mac_dontswap_ctrl_meta true The last point is something you should definitely check, too. If you do the same things (including step 1) but still have the problem, then one has to start worrying that perhaps Qt is doing something wrong. Essentially what the don't swap check box does is to set a Qt flag that gets updated when LyX starts up. I can't really see how anything on the LyX side should fail in that process. Jens On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote: Am 31.01.2012 um 16:36 schrieb stiv. djobz.: Thanks. This is my first time to see the progress/debug messages... You're very clever ;-) The responses seems to be different. Yes, unfortunately. I suppose you have saved you preferences and LyX was restarted. So, it should work. But indeed it seems to ignore the don't swap option. Interestingly there is an additional line in your output I don't have: /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent has isNull() text ! The complete output I get for ctrl-b is: /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta- /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 16777250, with text '' /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 16777250, /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is Alt_L /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 66 keyState: Control- /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 66, with text ' ' /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 66, /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is b /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 0 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): action first set to [] /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): action now set to [] /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key [action=][Kontroll-B] I can see two possible explanations: 1. We are using different LyX-2.0.2 software packages (I use the package from www.lyx.org) 2. We have different environments and there is some critical setting I don't have I have a german desktop and no special settings made to the system keyboard mappings. Do you have another idea? Do you have your own keyboard tables assigned? Stephan I moved the .bind files in /Library/Application Support/LyX-2.0/bind/ to another place and restart lyx 2.0.2 with the same settings as yours. When I type ctrl+b, nothing appears on the document. The message is: /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta- /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 16777250, with text '' /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting
Re: install not finding classes in miktek
Furthermore, I just uninstalled lyx and miktex and reinstalled from the bundled installer. Same problem. Any clues at all???
error: cannot view file
Hi, When trying to view a document in pdf I get: ... Error: Cannot view file File does not exist: /var/tmp/lyx_tmpdir.J57590/lyx_tmpbuf2/xxx.pdf ... A process called pdfetex is started but just hits 100% cpu usage and nothing happens. I tried changing the tmp directory, reinstalled lyx, reinstalled tetex, deleted the .lyx directory in /home, but nothing works. The same thing happens when exporting to pdf or dvi. Has anyone an idea how to solve this? Thanks, Marco -- Lots of folks are forced to skimp to support a government that won't.
Import into LyX
Dear Users and Developers, Some time ago, I was experimenting with importing documents into LyX (specifically about how to crack the import MS Word to LyX nut). In the process, I got really excited about using OpenOffice to convert the word document to HTML, running tidy on the HTML and then importing that way. (The original blog article about this can be found at http://blog.oak-tree.us/index.php/2010/05/14/msword-lyx-import.) Since I'm (re)writing a book chapter about this topic, I thought that I would look at alternative strategies for importing Word (and other file formats) into LyX. While doing research, I came across a (potentially) much better solution. Somewhat recently (in 2010), a group of Python libraries were written that handle document conversions. They are part of the epub-tools library (http://code.google.com/p/epub-tools/). (I've been experimenting with ePub document creation from LyX, which is how I found them.) One of the tools in the library is able to parse Microsoft word documents and convert them to XHTML in preparation for generating an ePub file. I think that the tool can be adapted for directly converting Word docs to LyX. Not to LaTeX and then to LyX, but /directly to LyX/. I'm putting together a library to experiment with direct conversions (this is ostensibly being done for the never-ending book project, but will be released as open code), but before getting too deep into development, I wanted to poll: 1. Is this a tool that would prove useful to yourselves, your collaborators, and others? 2. What features would you consider essential? (Right now, styles based conversion looks pretty easy -- going from Heading 1 in Word to Chapter, for example. But I'm not sure how well it would convert maths. This is something I'll still need to look at, and may require writing an additional module.) 3. What is the best tool to look at for guidance in creating a new script for word2lyx? tex2lyx? 4. Does the script need to support special cases, such as importing Word track changes? 5. Just how important do you consider round-tripping a document, e.g., going from LyX to Word and back to LyX. 6. Is there anyone who might be interested in collaborating on this? Any thoughts would be greatly appreciated. Cheers, Rob Oakes
Re: Import into LyX
Hey Rob, that sounds like quite a nice project you have in mind! My two cents: it's not worth carrying it out if you can't get the math to import somewhat well. That seems to be the biggest problem with most ways of converting doc to lyx. I understand it's very difficult, but I think it's also the most important. I don't mean to discourage you, just my two cents. I don't think importing track changes is important at all (they should be able to go through the changes in word and get rid of them). And I don't think round-tripping is important. Of course, if you could pull these features off they would be nice additions. I looked at the google code project and it looks like it's still under development. Is that correct? It would be nice to choose a library that is still being actively developed. Good luck with it all and thanks for your effort on this. I think in the end it would indeed help a lot of would-be LyXers or already-LyXers but need to collaborate with a Word-er. Xu On Wed, Feb 1, 2012 at 2:59 PM, Rob Oakes rob.oa...@oak-tree.us wrote: Dear Users and Developers, Some time ago, I was experimenting with importing documents into LyX (specifically about how to crack the import MS Word to LyX nut). In the process, I got really excited about using OpenOffice to convert the word document to HTML, running tidy on the HTML and then importing that way. (The original blog article about this can be found at http://blog.oak-tree.us/index.php/2010/05/14/msword-lyx-import.) Since I'm (re)writing a book chapter about this topic, I thought that I would look at alternative strategies for importing Word (and other file formats) into LyX. While doing research, I came across a (potentially) much better solution. Somewhat recently (in 2010), a group of Python libraries were written that handle document conversions. They are part of the epub-tools library ( http://code.google.com/p/epub-tools/). (I've been experimenting with ePub document creation from LyX, which is how I found them.) One of the tools in the library is able to parse Microsoft word documents and convert them to XHTML in preparation for generating an ePub file. I think that the tool can be adapted for directly converting Word docs to LyX. Not to LaTeX and then to LyX, but *directly to LyX*. I'm putting together a library to experiment with direct conversions (this is ostensibly being done for the never-ending book project, but will be released as open code), but before getting too deep into development, I wanted to poll: 1. Is this a tool that would prove useful to yourselves, your collaborators, and others? 2. What features would you consider essential? (Right now, styles based conversion looks pretty easy -- going from Heading 1 in Word to Chapter, for example. But I'm not sure how well it would convert maths. This is something I'll still need to look at, and may require writing an additional module.) 3. What is the best tool to look at for guidance in creating a new script for word2lyx? tex2lyx? 4. Does the script need to support special cases, such as importing Word track changes? 5. Just how important do you consider round-tripping a document, e.g., going from LyX to Word and back to LyX. 6. Is there anyone who might be interested in collaborating on this? Any thoughts would be greatly appreciated. Cheers, Rob Oakes
Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)
So now it's becoming more likely that this is a low-level configuration problem with Qt (although I'm by no means certain). To test this, a stab in the dark suggestion would be: Create a new user account under the Mac's System Preferences Users and groups (you can of course delete this account again later, but this is a way to start from a clean slate without hidden .files in your home directory and other stuff in your ~/Library that could mess things up. Then launch LyX from there and see if that behaves properly when you check the swap box again and restart LyX. Jens On Feb 1, 2012, at 6:46 AM, stiv. djobz. wrote: I tried 1) -- 8). I see the same problem as before. Command and control keys do not behave correctly. The result of 8) is preferences:\mac_dontswap_ctrl_meta true As for 5), in my case, Times is chosen at PreferencesScreen fontsRoman from the first. stiv. On Wed, Feb 1, 2012 at 2:16 AM, Jens Nöckel noec...@uoregon.edu wrote: Hi, since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried the following steps on my OS X 10.6.8 machine: 1) Move ~/Library/Application Support/LyX-2.0 to the Desktop. 2) Fresh download of LyX-2.0.2+qt4-cocoa.dmg from www.lyx.org 3) Move old LyX out of Application folder 4) Install downloaded LyX and launch it 5) In an unrelated note, I noticed that the default screen font wasn't correctly displayed: should be Times but is Helvetica. So I chnaged that font to Times New Roman and the display worked again. 6) In Preferences, I then chose the xemacs bind file, and checked the box Do not swap Apple and Control Keys 7) I restarted LyX and opened a new document with Control-d (it worked as expected). I then started a new math display formula with Apple-d and it worked as expected. 8) To double check, I went to the Terminal and navigated to ~/Library/Application Support/LyX-2.0 then issued the command: grep dontswap * with the expected result: preferences:\mac_dontswap_ctrl_meta true The last point is something you should definitely check, too. If you do the same things (including step 1) but still have the problem, then one has to start worrying that perhaps Qt is doing something wrong. Essentially what the don't swap check box does is to set a Qt flag that gets updated when LyX starts up. I can't really see how anything on the LyX side should fail in that process. Jens On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote: Am 31.01.2012 um 16:36 schrieb stiv. djobz.: Thanks. This is my first time to see the progress/debug messages... You're very clever ;-) The responses seems to be different. Yes, unfortunately. I suppose you have saved you preferences and LyX was restarted. So, it should work. But indeed it seems to ignore the don't swap option. Interestingly there is an additional line in your output I don't have: /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent has isNull() text ! The complete output I get for ctrl-b is: /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta- /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 16777250, with text '' /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 16777250, /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is Alt_L /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 66 keyState: Control- /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 66, with text ' ' /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 66, /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is b /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 0 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): action first set to [] /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): action now set to [] /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key [action=][Kontroll-B] I can see two possible explanations: 1. We are using different LyX-2.0.2 software packages (I use the package from www.lyx.org) 2. We have different environments and there is some critical setting I don't have I
Re: error: cannot view file
On Wed, 1 Feb 2012, the wise Marco Beishuizen wrote: Hi, When trying to view a document in pdf I get: ... Error: Cannot view file File does not exist: /var/tmp/lyx_tmpdir.J57590/lyx_tmpbuf2/xxx.pdf ... A process called pdfetex is started but just hits 100% cpu usage and nothing happens. I tried changing the tmp directory, reinstalled lyx, reinstalled tetex, deleted the .lyx directory in /home, but nothing works. The same thing happens when exporting to pdf or dvi. I discovered that it has something to do with the Table Of Contents. When removed it works again, inserting it and it doesn't. -- No spitting on the Bus! Thank you, The Management.
Re: install not finding classes in miktek
OK, so now I reinstalled everything not in Program Files, thinking perhaps the UAC in Vista was causing the problem. I noticed as it was installing that: checking for an HTML previewer... +checking for firefox... no checking for a Postscript previewer... +checking for ghostview... no this seems strange since these are installed on my system...WUWT? checking for an OpenDocument/OpenOffice viewer... +checking for oowriter... no why not check for libreoffice? opening lyx...fingers crossed... YAYmy classes are there!! thank god for small favors
Re: Import into LyX
Hi Rob, first: great project! I constantly struggle with converting file to and from MS Word. I now use the Word--OOffice-- Latex-- Lyx Route, with the needed manual cleanup of Latex code and an additional cleanup of ERT code from LyX after LaTeX import. It is not fun. A project like yours would make LyX much, much easier to use in an academic environment. I am going to address your questions from the perspective of a Humanities scholar. My observations may not be representative of the vast majority of current LyX/LaTeX users. On the other hand, a project like yours may potentially expand LyX's user base by an order of magnitude, in my opinion. So here we go: Is this a tool that would prove useful to yourselves, your collaborators, and others? What features would you consider essential? (Right now, styles based conversion looks pretty easy -- going from Heading 1 in Word to Chapter, for example. But I'm not sure how well it would convert maths. This is something I'll still need to look at, and may require writing an additional module.) As I said, it would be very important. In my experience, there are three main scenarios where the tool would be precious: 1. Conversion of personal legacy documents (all the stuff you wrote before you discovered LyX) 2. Collaboration with colleagues and students 3. Submission to journals (I don't know of a single journal in my field and related fields that accepts Latex. They all want MS Word.) 1 and 3 are obviously one way (in opposite direction). 2 requires a Word--LyX roundtrip I think the most important scenarios are 2 and 3. And obviously 2 includes 3 and 1, so solving the collaboration scenario would be optimal. Features: I think a good starting assumption is that final formatting will NOT be provided by MS Word. If you (or your team) has to produce camera-ready output at the end of the collaborative work, LyX is a much better tool. If you submit to a journal or a press, they will do the formatting.This means most Word-based typography can be eliminated. I mean: margins, typefaces, font sizes, etc, with the exception of different scripts, which are of course crucial (although with Unicode this problem should be solved now). Only semantic formatting should be kept: emphasis/italics, sectioning info, lists, footnotes, etc. Plus all info about pictures and picture placement, tables (these are not trivial, I guess) and similar floats, and, mostly for books, indexing information. Preserving tracking info wold also be very useful. Cross-referencing would also be important (I have no idea how Word does it, if at all). Math, on the other hand, would not be very important. That is: I assume math would be finally produced by Latex, if camera-ready is required, or by the publishing house. A rough approximation would be sufficient (this from a Humanities perspective, of course). References would be very very important. What is the best tool to look at for guidance in creating a new script for word2lyx? tex2lyx? I would look at Word2Tex, which is proprietary, however. In general, though, most existing tools try hard to preserve the look of a document instead of following the approach I recommend, thereby getting into all sort of complications. There was a very useful tool for Framemaker -- LyX conversion that stuck to the semantic-only approach and worked pretty well (I was a Framemaker user before moving to LyX). It was very simple and I believe it is still available: http://pages.cs.brandeis.edu/~pablo/mif2lyx. It is a Perl script. Does the script need to support special cases, such as importing Word track changes? See above Just how important do you consider round-tripping a document, e.g., going from LyX to Word and back to LyX. Yes! Is there anyone who might be interested in collaborating on this? I am afraid I cannot help with coding. But I am willing to help in other ways if needed. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Trouble with Egyptian Hieroglyphs
Hi In the past I've happily used the CTAN Poor Man's Hieroglyphs package from within LyX to produce very acceptable Egyptian Hieroglyphs. The thing worked by simply putting into the preamble: \usepackage{hieroglf} Then you could use TeX macros such as \pmglyph{\HA}... and surround this if you wished in \cartouche{ ... } But With more recent versions of LyX (e.g. 1.6.4.2 on a Mac and 1.6.5 on Linux) this seems to be broken, I get the error messages: command \cedover unavailable in encoding T1 command \uunderer unavailable in encoding T1 Any ideas how I should proceed? The way I got into this originally was to copy the LaTeX file: hieroglf-trypmhg.tex to a local directory then import that into LyX. That worked on earlier versions and after cleaning up the TeX a bit I was able to use that as a template. The import produces the same errors re encoding listed above. When I look at the file hieroglf.sty I see that the uunder is defined as: \DeclareTextCommand{\uunder}{OT1}[1]% {{\o@lign{\relax#1\crcr\hidewidth\sh@ft{29}% \vbox to.2ex{\hbox{\char21}\vss}\hidewidth}}} There is a similar command for cedover. As you can see, they use the encoding OT1. How can I set LyX to use OT1 encoding (or is that undesirable)? Regards John O'Gorman
Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)
I tried 1) -- 8). I see the same problem as before. Command and control keys do not behave correctly. The result of 8) is preferences:\mac_dontswap_ctrl_meta true As for 5), in my case, Times is chosen at PreferencesScreen fontsRoman from the first. stiv. On Wed, Feb 1, 2012 at 2:16 AM, Jens Nöckel noec...@uoregon.edu wrote: Hi, since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried the following steps on my OS X 10.6.8 machine: 1) Move ~/Library/Application Support/LyX-2.0 to the Desktop. 2) Fresh download of LyX-2.0.2+qt4-cocoa.dmg from www.lyx.org 3) Move old LyX out of Application folder 4) Install downloaded LyX and launch it 5) In an unrelated note, I noticed that the default screen font wasn't correctly displayed: should be Times but is Helvetica. So I chnaged that font to Times New Roman and the display worked again. 6) In Preferences, I then chose the xemacs bind file, and checked the box Do not swap Apple and Control Keys 7) I restarted LyX and opened a new document with Control-d (it worked as expected). I then started a new math display formula with Apple-d and it worked as expected. 8) To double check, I went to the Terminal and navigated to ~/Library/Application Support/LyX-2.0 then issued the command: grep dontswap * with the expected result: preferences:\mac_dontswap_ctrl_meta true The last point is something you should definitely check, too. If you do the same things (including step 1) but still have the problem, then one has to start worrying that perhaps Qt is doing something wrong. Essentially what the don't swap check box does is to set a Qt flag that gets updated when LyX starts up. I can't really see how anything on the LyX side should fail in that process. Jens On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote: Am 31.01.2012 um 16:36 schrieb stiv. djobz.: Thanks. This is my first time to see the progress/debug messages... You're very clever ;-) The responses seems to be different. Yes, unfortunately. I suppose you have saved you preferences and LyX was restarted. So, it should work. But indeed it seems to ignore the don't swap option. Interestingly there is an additional line in your output I don't have: /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent has isNull() text ! The complete output I get for ctrl-b is: /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta- /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 16777250, with text '' /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 16777250, /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is Alt_L /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 66 keyState: Control- /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 66, with text ' ' /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 66, /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is b /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 0 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): action first set to [] /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): action now set to [] /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key [action=][Kontroll-B] I can see two possible explanations: 1. We are using different LyX-2.0.2 software packages (I use the package from www.lyx.org) 2. We have different environments and there is some critical setting I don't have I have a german desktop and no special settings made to the system keyboard mappings. Do you have another idea? Do you have your own keyboard tables assigned? Stephan I moved the .bind files in /Library/Application Support/LyX-2.0/bind/ to another place and restart lyx 2.0.2 with the same settings as yours. When I type ctrl+b, nothing appears on the document. The message is: /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta- /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 16777250, with text '' /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting
Re: install not finding classes in miktek
Furthermore, I just uninstalled lyx and miktex and reinstalled from the bundled installer. Same problem. Any clues at all???
error: cannot view file
Hi, When trying to view a document in pdf I get: ... Error: Cannot view file File does not exist: /var/tmp/lyx_tmpdir.J57590/lyx_tmpbuf2/xxx.pdf ... A process called pdfetex is started but just hits 100% cpu usage and nothing happens. I tried changing the tmp directory, reinstalled lyx, reinstalled tetex, deleted the .lyx directory in /home, but nothing works. The same thing happens when exporting to pdf or dvi. Has anyone an idea how to solve this? Thanks, Marco -- Lots of folks are forced to skimp to support a government that won't.
Import into LyX
Dear Users and Developers, Some time ago, I was experimenting with importing documents into LyX (specifically about how to crack the import MS Word to LyX nut). In the process, I got really excited about using OpenOffice to convert the word document to HTML, running tidy on the HTML and then importing that way. (The original blog article about this can be found at http://blog.oak-tree.us/index.php/2010/05/14/msword-lyx-import.) Since I'm (re)writing a book chapter about this topic, I thought that I would look at alternative strategies for importing Word (and other file formats) into LyX. While doing research, I came across a (potentially) much better solution. Somewhat recently (in 2010), a group of Python libraries were written that handle document conversions. They are part of the epub-tools library (http://code.google.com/p/epub-tools/). (I've been experimenting with ePub document creation from LyX, which is how I found them.) One of the tools in the library is able to parse Microsoft word documents and convert them to XHTML in preparation for generating an ePub file. I think that the tool can be adapted for directly converting Word docs to LyX. Not to LaTeX and then to LyX, but /directly to LyX/. I'm putting together a library to experiment with direct conversions (this is ostensibly being done for the never-ending book project, but will be released as open code), but before getting too deep into development, I wanted to poll: 1. Is this a tool that would prove useful to yourselves, your collaborators, and others? 2. What features would you consider essential? (Right now, styles based conversion looks pretty easy -- going from Heading 1 in Word to Chapter, for example. But I'm not sure how well it would convert maths. This is something I'll still need to look at, and may require writing an additional module.) 3. What is the best tool to look at for guidance in creating a new script for word2lyx? tex2lyx? 4. Does the script need to support special cases, such as importing Word track changes? 5. Just how important do you consider round-tripping a document, e.g., going from LyX to Word and back to LyX. 6. Is there anyone who might be interested in collaborating on this? Any thoughts would be greatly appreciated. Cheers, Rob Oakes
Re: Import into LyX
Hey Rob, that sounds like quite a nice project you have in mind! My two cents: it's not worth carrying it out if you can't get the math to import somewhat well. That seems to be the biggest problem with most ways of converting doc to lyx. I understand it's very difficult, but I think it's also the most important. I don't mean to discourage you, just my two cents. I don't think importing track changes is important at all (they should be able to go through the changes in word and get rid of them). And I don't think round-tripping is important. Of course, if you could pull these features off they would be nice additions. I looked at the google code project and it looks like it's still under development. Is that correct? It would be nice to choose a library that is still being actively developed. Good luck with it all and thanks for your effort on this. I think in the end it would indeed help a lot of would-be LyXers or already-LyXers but need to collaborate with a Word-er. Xu On Wed, Feb 1, 2012 at 2:59 PM, Rob Oakes rob.oa...@oak-tree.us wrote: Dear Users and Developers, Some time ago, I was experimenting with importing documents into LyX (specifically about how to crack the import MS Word to LyX nut). In the process, I got really excited about using OpenOffice to convert the word document to HTML, running tidy on the HTML and then importing that way. (The original blog article about this can be found at http://blog.oak-tree.us/index.php/2010/05/14/msword-lyx-import.) Since I'm (re)writing a book chapter about this topic, I thought that I would look at alternative strategies for importing Word (and other file formats) into LyX. While doing research, I came across a (potentially) much better solution. Somewhat recently (in 2010), a group of Python libraries were written that handle document conversions. They are part of the epub-tools library ( http://code.google.com/p/epub-tools/). (I've been experimenting with ePub document creation from LyX, which is how I found them.) One of the tools in the library is able to parse Microsoft word documents and convert them to XHTML in preparation for generating an ePub file. I think that the tool can be adapted for directly converting Word docs to LyX. Not to LaTeX and then to LyX, but *directly to LyX*. I'm putting together a library to experiment with direct conversions (this is ostensibly being done for the never-ending book project, but will be released as open code), but before getting too deep into development, I wanted to poll: 1. Is this a tool that would prove useful to yourselves, your collaborators, and others? 2. What features would you consider essential? (Right now, styles based conversion looks pretty easy -- going from Heading 1 in Word to Chapter, for example. But I'm not sure how well it would convert maths. This is something I'll still need to look at, and may require writing an additional module.) 3. What is the best tool to look at for guidance in creating a new script for word2lyx? tex2lyx? 4. Does the script need to support special cases, such as importing Word track changes? 5. Just how important do you consider round-tripping a document, e.g., going from LyX to Word and back to LyX. 6. Is there anyone who might be interested in collaborating on this? Any thoughts would be greatly appreciated. Cheers, Rob Oakes
Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)
So now it's becoming more likely that this is a low-level configuration problem with Qt (although I'm by no means certain). To test this, a stab in the dark suggestion would be: Create a new user account under the Mac's System Preferences Users and groups (you can of course delete this account again later, but this is a way to start from a clean slate without hidden .files in your home directory and other stuff in your ~/Library that could mess things up. Then launch LyX from there and see if that behaves properly when you check the swap box again and restart LyX. Jens On Feb 1, 2012, at 6:46 AM, stiv. djobz. wrote: I tried 1) -- 8). I see the same problem as before. Command and control keys do not behave correctly. The result of 8) is preferences:\mac_dontswap_ctrl_meta true As for 5), in my case, Times is chosen at PreferencesScreen fontsRoman from the first. stiv. On Wed, Feb 1, 2012 at 2:16 AM, Jens Nöckel noec...@uoregon.edu wrote: Hi, since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried the following steps on my OS X 10.6.8 machine: 1) Move ~/Library/Application Support/LyX-2.0 to the Desktop. 2) Fresh download of LyX-2.0.2+qt4-cocoa.dmg from www.lyx.org 3) Move old LyX out of Application folder 4) Install downloaded LyX and launch it 5) In an unrelated note, I noticed that the default screen font wasn't correctly displayed: should be Times but is Helvetica. So I chnaged that font to Times New Roman and the display worked again. 6) In Preferences, I then chose the xemacs bind file, and checked the box Do not swap Apple and Control Keys 7) I restarted LyX and opened a new document with Control-d (it worked as expected). I then started a new math display formula with Apple-d and it worked as expected. 8) To double check, I went to the Terminal and navigated to ~/Library/Application Support/LyX-2.0 then issued the command: grep dontswap * with the expected result: preferences:\mac_dontswap_ctrl_meta true The last point is something you should definitely check, too. If you do the same things (including step 1) but still have the problem, then one has to start worrying that perhaps Qt is doing something wrong. Essentially what the don't swap check box does is to set a Qt flag that gets updated when LyX starts up. I can't really see how anything on the LyX side should fail in that process. Jens On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote: Am 31.01.2012 um 16:36 schrieb stiv. djobz.: Thanks. This is my first time to see the progress/debug messages... You're very clever ;-) The responses seems to be different. Yes, unfortunately. I suppose you have saved you preferences and LyX was restarted. So, it should work. But indeed it seems to ignore the don't swap option. Interestingly there is an additional line in your output I don't have: /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent has isNull() text ! The complete output I get for ctrl-b is: /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta- /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 16777250, with text '' /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 16777250, /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is Alt_L /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 66 keyState: Control- /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 66, with text ' ' /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 66, /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is b /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 0 /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): action first set to [] /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): action now set to [] /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key [action=][Kontroll-B] I can see two possible explanations: 1. We are using different LyX-2.0.2 software packages (I use the package from www.lyx.org) 2. We have different environments and there is some critical setting I don't have I
Re: error: cannot view file
On Wed, 1 Feb 2012, the wise Marco Beishuizen wrote: Hi, When trying to view a document in pdf I get: ... Error: Cannot view file File does not exist: /var/tmp/lyx_tmpdir.J57590/lyx_tmpbuf2/xxx.pdf ... A process called pdfetex is started but just hits 100% cpu usage and nothing happens. I tried changing the tmp directory, reinstalled lyx, reinstalled tetex, deleted the .lyx directory in /home, but nothing works. The same thing happens when exporting to pdf or dvi. I discovered that it has something to do with the Table Of Contents. When removed it works again, inserting it and it doesn't. -- No spitting on the Bus! Thank you, The Management.
Re: install not finding classes in miktek
OK, so now I reinstalled everything not in Program Files, thinking perhaps the UAC in Vista was causing the problem. I noticed as it was installing that: checking for an HTML previewer... +checking for firefox... no checking for a Postscript previewer... +checking for ghostview... no this seems strange since these are installed on my system...WUWT? checking for an OpenDocument/OpenOffice viewer... +checking for oowriter... no why not check for libreoffice? opening lyx...fingers crossed... YAYmy classes are there!! thank god for small favors
Re: Import into LyX
Hi Rob, first: great project! I constantly struggle with converting file to and from MS Word. I now use the Word--OOffice-- Latex-- Lyx Route, with the needed manual cleanup of Latex code and an additional cleanup of ERT code from LyX after LaTeX import. It is not fun. A project like yours would make LyX much, much easier to use in an academic environment. I am going to address your questions from the perspective of a Humanities scholar. My observations may not be representative of the vast majority of current LyX/LaTeX users. On the other hand, a project like yours may potentially expand LyX's user base by an order of magnitude, in my opinion. So here we go: Is this a tool that would prove useful to yourselves, your collaborators, and others? What features would you consider essential? (Right now, styles based conversion looks pretty easy -- going from Heading 1 in Word to Chapter, for example. But I'm not sure how well it would convert maths. This is something I'll still need to look at, and may require writing an additional module.) As I said, it would be very important. In my experience, there are three main scenarios where the tool would be precious: 1. Conversion of personal legacy documents (all the stuff you wrote before you discovered LyX) 2. Collaboration with colleagues and students 3. Submission to journals (I don't know of a single journal in my field and related fields that accepts Latex. They all want MS Word.) 1 and 3 are obviously one way (in opposite direction). 2 requires a Word--LyX roundtrip I think the most important scenarios are 2 and 3. And obviously 2 includes 3 and 1, so solving the collaboration scenario would be optimal. Features: I think a good starting assumption is that final formatting will NOT be provided by MS Word. If you (or your team) has to produce camera-ready output at the end of the collaborative work, LyX is a much better tool. If you submit to a journal or a press, they will do the formatting.This means most Word-based typography can be eliminated. I mean: margins, typefaces, font sizes, etc, with the exception of different scripts, which are of course crucial (although with Unicode this problem should be solved now). Only semantic formatting should be kept: emphasis/italics, sectioning info, lists, footnotes, etc. Plus all info about pictures and picture placement, tables (these are not trivial, I guess) and similar floats, and, mostly for books, indexing information. Preserving tracking info wold also be very useful. Cross-referencing would also be important (I have no idea how Word does it, if at all). Math, on the other hand, would not be very important. That is: I assume math would be finally produced by Latex, if camera-ready is required, or by the publishing house. A rough approximation would be sufficient (this from a Humanities perspective, of course). References would be very very important. What is the best tool to look at for guidance in creating a new script for word2lyx? tex2lyx? I would look at Word2Tex, which is proprietary, however. In general, though, most existing tools try hard to preserve the look of a document instead of following the approach I recommend, thereby getting into all sort of complications. There was a very useful tool for Framemaker -- LyX conversion that stuck to the semantic-only approach and worked pretty well (I was a Framemaker user before moving to LyX). It was very simple and I believe it is still available: http://pages.cs.brandeis.edu/~pablo/mif2lyx. It is a Perl script. Does the script need to support special cases, such as importing Word track changes? See above Just how important do you consider round-tripping a document, e.g., going from LyX to Word and back to LyX. Yes! Is there anyone who might be interested in collaborating on this? I am afraid I cannot help with coding. But I am willing to help in other ways if needed. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Trouble with Egyptian Hieroglyphs
Hi In the past I've happily used the CTAN Poor Man's Hieroglyphs package from within LyX to produce very acceptable Egyptian Hieroglyphs. The thing worked by simply putting into the preamble: \usepackage{hieroglf} Then you could use TeX macros such as \pmglyph{\HA}... and surround this if you wished in \cartouche{ ... } But With more recent versions of LyX (e.g. 1.6.4.2 on a Mac and 1.6.5 on Linux) this seems to be broken, I get the error messages: command \cedover unavailable in encoding T1 command \uunderer unavailable in encoding T1 Any ideas how I should proceed? The way I got into this originally was to copy the LaTeX file: hieroglf-trypmhg.tex to a local directory then import that into LyX. That worked on earlier versions and after cleaning up the TeX a bit I was able to use that as a template. The import produces the same errors re encoding listed above. When I look at the file hieroglf.sty I see that the uunder is defined as: \DeclareTextCommand{\uunder}{OT1}[1]% {{\o@lign{\relax#1\crcr\hidewidth\sh@ft{29}% \vbox to.2ex{\hbox{\char21}\vss}\hidewidth}}} There is a similar command for cedover. As you can see, they use the encoding OT1. How can I set LyX to use OT1 encoding (or is that undesirable)? Regards John O'Gorman
Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)
I tried 1) -- 8). I see the same problem as before. Command and control keys do not behave correctly. The result of 8) is preferences:\mac_dontswap_ctrl_meta true As for 5), in my case, Times is chosen at Preferences>Screen fonts>Roman from the first. stiv. On Wed, Feb 1, 2012 at 2:16 AM, Jens Nöckelwrote: > Hi, > since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just > tried the following steps on my OS X 10.6.8 machine: > 1) > Move ~/Library/Application Support/LyX-2.0 to the Desktop. > > 2) > Fresh download of > LyX-2.0.2+qt4-cocoa.dmg > from www.lyx.org > > 3) > Move old LyX out of Application folder > > 4) > Install downloaded LyX and launch it > > 5) > In an unrelated note, I noticed that the default screen font wasn't > correctly displayed: should be Times but is Helvetica. So I chnaged that > font to Times New Roman and the display worked again. > > 6) > In Preferences, I then chose the xemacs bind file, and checked the box "Do > not swap Apple and Control Keys" > > 7) > I restarted LyX and opened a new document with Control-d (it worked as > expected). I then started a new math display formula with Apple-d and it > worked as expected. > > 8) > To double check, I went to the Terminal and navigated to > ~/Library/Application Support/LyX-2.0 > then issued the command: > grep dontswap * > with the expected result: > preferences:\mac_dontswap_ctrl_meta true > > The last point is something you should definitely check, too. If you do > the same things (including step 1) but still have the problem, then one has > to start worrying that perhaps Qt is doing something wrong. Essentially > what the "don't swap" check box does is to set a Qt flag that gets updated > when LyX starts up. I can't really see how anything on the LyX side should > fail in that process. > > Jens > > On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote: > > > Am 31.01.2012 um 16:36 schrieb stiv. djobz.: > > > >> Thanks. > >> This is my first time to see the progress/debug messages... > > > > You're very clever ;-) > > > >> The responses seems to be different. > > > > Yes, unfortunately. I suppose you have saved you preferences and LyX was > restarted. > > So, it should work. But indeed it seems to ignore the don't swap option. > > Interestingly there is an additional line in your output I don't have: > > > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): > keyevent has isNull() text ! > > > > The complete output I get for ctrl-b is: > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): > count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta- > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): > Getting key 16777250, with text '' > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): > Setting key to 16777250, > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): > isOK is 1 > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): > KeySym is Alt_L > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): > isOK is 1 > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): > isModifier is 1 > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): > count: 1 text: isAutoRepeat: 0 key: 66 keyState: Control- > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): > Getting key 66, with text ' ' > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): > Setting key to 66, > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): > isOK is 1 > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): > KeySym is b > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): > isOK is 1 > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): > isModifier is 0 > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): > action first set to [] > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): > action now set to [] > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): > Key [action=][Kontroll-B] > > > > I can see two possible explanations: > > 1. We are using different LyX-2.0.2 software packages (I use the package > from www.lyx.org) > > 2. We have different environments and there is some critical setting I > don't have > > I have a german desktop and no special settings made to the system > keyboard mappings. > > > > Do you have another idea? Do you have your own keyboard tables assigned? > > > > Stephan > > > >> I moved the .bind files in /Library/Application Support/LyX-2.0/bind/ > >> to another place and restart lyx 2.0.2 with the same settings as yours. > >> > >> When I type ctrl+b, nothing appears on the document. > >> The message is: > >> > >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): > count: 1 text: isAutoRepeat: 0 key: 16777250 keyState:
Re: install not finding classes in miktek
Furthermore, I just uninstalled lyx and miktex and reinstalled from the bundled installer. Same problem. Any clues at all???
error: cannot view file
Hi, When trying to view a document in pdf I get: ... Error: Cannot view file File does not exist: /var/tmp/lyx_tmpdir.J57590/lyx_tmpbuf2/xxx.pdf ... A process called pdfetex is started but just hits 100% cpu usage and nothing happens. I tried changing the tmp directory, reinstalled lyx, reinstalled tetex, deleted the .lyx directory in /home, but nothing works. The same thing happens when exporting to pdf or dvi. Has anyone an idea how to solve this? Thanks, Marco -- Lots of folks are forced to skimp to support a government that won't.
Import into LyX
Dear Users and Developers, Some time ago, I was experimenting with importing documents into LyX (specifically about how to crack the import MS Word to LyX nut). In the process, I got really excited about using OpenOffice to convert the word document to HTML, running tidy on the HTML and then importing that way. (The original blog article about this can be found at http://blog.oak-tree.us/index.php/2010/05/14/msword-lyx-import.) Since I'm (re)writing a book chapter about this topic, I thought that I would look at alternative strategies for importing Word (and other file formats) into LyX. While doing research, I came across a (potentially) much better solution. Somewhat recently (in 2010), a group of Python libraries were written that handle document conversions. They are part of the epub-tools library (http://code.google.com/p/epub-tools/). (I've been experimenting with ePub document creation from LyX, which is how I found them.) One of the tools in the library is able to parse Microsoft word documents and convert them to XHTML in preparation for generating an ePub file. I think that the tool can be adapted for directly converting Word docs to LyX. Not to LaTeX and then to LyX, but /directly to LyX/. I'm putting together a library to experiment with direct conversions (this is ostensibly being done for the never-ending book project, but will be released as open code), but before getting too deep into development, I wanted to poll: 1. Is this a tool that would prove useful to yourselves, your collaborators, and others? 2. What features would you consider essential? (Right now, styles based conversion looks pretty easy -- going from Heading 1 in Word to Chapter, for example. But I'm not sure how well it would convert maths. This is something I'll still need to look at, and may require writing an additional module.) 3. What is the best tool to look at for guidance in creating a new script for word2lyx? tex2lyx? 4. Does the script need to support special cases, such as importing Word "track changes"? 5. Just how important do you consider "round-tripping" a document, e.g., going from LyX to Word and back to LyX. 6. Is there anyone who might be interested in collaborating on this? Any thoughts would be greatly appreciated. Cheers, Rob Oakes
Re: Import into LyX
Hey Rob, that sounds like quite a nice project you have in mind! My two cents: it's not worth carrying it out if you can't get the math to import somewhat well. That seems to be the biggest problem with most ways of converting doc to lyx. I understand it's very difficult, but I think it's also the most important. I don't mean to discourage you, just my two cents. I don't think importing track changes is important at all (they should be able to go through the changes in word and get rid of them). And I don't think round-tripping is important. Of course, if you could pull these features off they would be nice additions. I looked at the google code project and it looks like it's still under development. Is that correct? It would be nice to choose a library that is still being actively developed. Good luck with it all and thanks for your effort on this. I think in the end it would indeed help a lot of would-be LyXers or already-LyXers but need to collaborate with a Word-er. Xu On Wed, Feb 1, 2012 at 2:59 PM, Rob Oakeswrote: > Dear Users and Developers, > > Some time ago, I was experimenting with importing documents into LyX > (specifically about how to crack the import MS Word to LyX nut). In the > process, I got really excited about using OpenOffice to convert the word > document to HTML, running tidy on the HTML and then importing that way. > (The original blog article about this can be found at > http://blog.oak-tree.us/index.php/2010/05/14/msword-lyx-import.) > > Since I'm (re)writing a book chapter about this topic, I thought that I > would look at alternative strategies for importing Word (and other file > formats) into LyX. While doing research, I came across a (potentially) much > better solution. > > Somewhat recently (in 2010), a group of Python libraries were written that > handle document conversions. They are part of the epub-tools library ( > http://code.google.com/p/epub-tools/). (I've been experimenting with ePub > document creation from LyX, which is how I found them.) > > One of the tools in the library is able to parse Microsoft word documents > and convert them to XHTML in preparation for generating an ePub file. I > think that the tool can be adapted for directly converting Word docs to > LyX. Not to LaTeX and then to LyX, but *directly to LyX*. > > I'm putting together a library to experiment with direct conversions (this > is ostensibly being done for the never-ending book project, but will be > released as open code), but before getting too deep into development, I > wanted to poll: > >1. Is this a tool that would prove useful to yourselves, your >collaborators, and others? >2. What features would you consider essential? > >(Right now, styles based conversion looks pretty easy -- going from >Heading 1 in Word to Chapter, for example. But I'm not sure how well it >would convert maths. This is something I'll still need to look at, and may >require writing an additional module.) > > 3. What is the best tool to look at for guidance in creating a new >script for word2lyx? tex2lyx? >4. Does the script need to support special cases, such as importing >Word "track changes"? >5. Just how important do you consider "round-tripping" a document, >e.g., going from LyX to Word and back to LyX. >6. Is there anyone who might be interested in collaborating on this? > > Any thoughts would be greatly appreciated. > > Cheers, > > Rob Oakes >
Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)
So now it's becoming more likely that this is a low-level configuration problem with Qt (although I'm by no means certain). To test this, a stab in the dark suggestion would be: Create a new user account under the Mac's "System Preferences > Users and groups" (you can of course delete this account again later, but this is a way to start from a clean slate without hidden .files in your home directory and other stuff in your ~/Library that could mess things up. Then launch LyX from there and see if that behaves properly when you check the "swap" box again and restart LyX. Jens On Feb 1, 2012, at 6:46 AM, stiv. djobz. wrote: > I tried 1) -- 8). > I see the same problem as before. > Command and control keys do not behave correctly. > > The result of 8) is > preferences:\mac_dontswap_ctrl_meta true > > As for 5), in my case, Times is chosen at > Preferences>Screen fonts>Roman > from the first. > > stiv. > On Wed, Feb 1, 2012 at 2:16 AM, Jens Nöckelwrote: > Hi, > since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried > the following steps on my OS X 10.6.8 machine: > 1) > Move ~/Library/Application Support/LyX-2.0 to the Desktop. > > 2) > Fresh download of > LyX-2.0.2+qt4-cocoa.dmg > from www.lyx.org > > 3) > Move old LyX out of Application folder > > 4) > Install downloaded LyX and launch it > > 5) > In an unrelated note, I noticed that the default screen font wasn't correctly > displayed: should be Times but is Helvetica. So I chnaged that font to Times > New Roman and the display worked again. > > 6) > In Preferences, I then chose the xemacs bind file, and checked the box "Do > not swap Apple and Control Keys" > > 7) > I restarted LyX and opened a new document with Control-d (it worked as > expected). I then started a new math display formula with Apple-d and it > worked as expected. > > 8) > To double check, I went to the Terminal and navigated to > ~/Library/Application Support/LyX-2.0 > then issued the command: > grep dontswap * > with the expected result: > preferences:\mac_dontswap_ctrl_meta true > > The last point is something you should definitely check, too. If you do the > same things (including step 1) but still have the problem, then one has to > start worrying that perhaps Qt is doing something wrong. Essentially what the > "don't swap" check box does is to set a Qt flag that gets updated when LyX > starts up. I can't really see how anything on the LyX side should fail in > that process. > > Jens > > On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote: > > > Am 31.01.2012 um 16:36 schrieb stiv. djobz.: > > > >> Thanks. > >> This is my first time to see the progress/debug messages... > > > > You're very clever ;-) > > > >> The responses seems to be different. > > > > Yes, unfortunately. I suppose you have saved you preferences and LyX was > > restarted. > > So, it should work. But indeed it seems to ignore the don't swap option. > > Interestingly there is an additional line in your output I don't have: > > > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): > > keyevent has isNull() text ! > > > > The complete output I get for ctrl-b is: > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): > > count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta- > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): > > Getting key 16777250, with text '' > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): > > Setting key to 16777250, > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK > > is 1 > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): > > KeySym is Alt_L > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK > > is 1 > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): > > isModifier is 1 > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): > > count: 1 text: isAutoRepeat: 0 key: 66 keyState: Control- > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): > > Getting key 66, with text ' ' > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): > > Setting key to 66, > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK > > is 1 > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): > > KeySym is b > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK > > is 1 > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): > > isModifier is 0 > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): > > action first set to [] > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): > > action now set to [] > > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): > > Key [action=][Kontroll-B] > > > > I can see two possible explanations: >
Re: error: cannot view file
On Wed, 1 Feb 2012, the wise Marco Beishuizen wrote: Hi, When trying to view a document in pdf I get: ... Error: Cannot view file File does not exist: /var/tmp/lyx_tmpdir.J57590/lyx_tmpbuf2/xxx.pdf ... A process called pdfetex is started but just hits 100% cpu usage and nothing happens. I tried changing the tmp directory, reinstalled lyx, reinstalled tetex, deleted the .lyx directory in /home, but nothing works. The same thing happens when exporting to pdf or dvi. I discovered that it has something to do with the Table Of Contents. When removed it works again, inserting it and it doesn't. -- No spitting on the Bus! Thank you, The Management.
Re: install not finding classes in miktek
OK, so now I reinstalled everything not in Program Files, thinking perhaps the UAC in Vista was causing the problem. I noticed as it was installing that: checking for an HTML previewer... +checking for "firefox"... no checking for a Postscript previewer... +checking for "ghostview"... no this seems strange since these are installed on my system...WUWT? checking for an OpenDocument/OpenOffice viewer... +checking for "oowriter"... no why not check for libreoffice? opening lyx...fingers crossed... YAYmy classes are there!! thank god for small favors
Re: Import into LyX
Hi Rob, first: great project! I constantly struggle with converting file to and from MS Word. I now use the Word-->OOffice--> Latex--> Lyx Route, with the needed manual cleanup of Latex code and an additional cleanup of ERT code from LyX after LaTeX import. It is not fun. A project like yours would make LyX much, much easier to use in an academic environment. I am going to address your questions from the perspective of a Humanities scholar. My observations may not be representative of the vast majority of current LyX/LaTeX users. On the other hand, a project like yours may potentially expand LyX's user base by an order of magnitude, in my opinion. So here we go: > Is this a tool that would prove useful to yourselves, your collaborators, > and others? > What features would you consider essential? > > (Right now, styles based conversion looks pretty easy -- going from Heading > 1 in Word to Chapter, for example. But I'm not sure how well it would > convert maths. This is something I'll still need to look at, and may require > writing an additional module.) > As I said, it would be very important. In my experience, there are three main scenarios where the tool would be precious: 1. Conversion of personal legacy documents (all the stuff you wrote before you discovered LyX) 2. Collaboration with colleagues and students 3. Submission to journals (I don't know of a single journal in my field and related fields that accepts Latex. They all want MS Word.) 1 and 3 are obviously one way (in opposite direction). 2 requires a Word<-->LyX roundtrip I think the most important scenarios are 2 and 3. And obviously 2 includes 3 and 1, so solving the collaboration scenario would be optimal. Features: I think a good starting assumption is that final formatting will NOT be provided by MS Word. If you (or your team) has to produce camera-ready output at the end of the collaborative work, LyX is a much better tool. If you submit to a journal or a press, they will do the formatting.This means most Word-based typography can be eliminated. I mean: margins, typefaces, font sizes, etc, with the exception of different scripts, which are of course crucial (although with Unicode this problem should be solved now). Only semantic formatting should be kept: emphasis/italics, sectioning info, lists, footnotes, etc. Plus all info about pictures and picture placement, tables (these are not trivial, I guess) and similar floats, and, mostly for books, indexing information. Preserving tracking info wold also be very useful. Cross-referencing would also be important (I have no idea how Word does it, if at all). Math, on the other hand, would not be very important. That is: I assume math would be finally produced by Latex, if camera-ready is required, or by the publishing house. A rough approximation would be sufficient (this from a Humanities perspective, of course). References would be very very important. > What is the best tool to look at for guidance in creating a new script for > word2lyx? tex2lyx? I would look at Word2Tex, which is proprietary, however. In general, though, most existing tools try hard to preserve the look of a document instead of following the approach I recommend, thereby getting into all sort of complications. There was a very useful tool for Framemaker <--> LyX conversion that stuck to the semantic-only approach and worked pretty well (I was a Framemaker user before moving to LyX). It was very simple and I believe it is still available: http://pages.cs.brandeis.edu/~pablo/mif2lyx. It is a Perl script. > Does the script need to support special cases, such as importing Word "track > changes"? See above > Just how important do you consider "round-tripping" a document, e.g., going > from LyX to Word and back to LyX. Yes! > Is there anyone who might be interested in collaborating on this? > I am afraid I cannot help with coding. But I am willing to help in other ways if needed. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Trouble with Egyptian Hieroglyphs
Hi In the past I've happily used the CTAN Poor Man's Hieroglyphs package from within LyX to produce very acceptable Egyptian Hieroglyphs. The thing worked by simply putting into the preamble: \usepackage{hieroglf} Then you could use TeX macros such as \pmglyph{\HA}... and surround this if you wished in \cartouche{ ... } But With more recent versions of LyX (e.g. 1.6.4.2 on a Mac and 1.6.5 on Linux) this seems to be broken, I get the error messages: command \cedover unavailable in encoding T1 command \uunderer unavailable in encoding T1 Any ideas how I should proceed? The way I got into this originally was to copy the LaTeX file: hieroglf-trypmhg.tex to a local directory then import that into LyX. That worked on earlier versions and after cleaning up the TeX a bit I was able to use that as a template. The import produces the same errors re encoding listed above. When I look at the file hieroglf.sty I see that the uunder is defined as: \DeclareTextCommand{\uunder}{OT1}[1]% {{\o@lign{\relax#1\crcr\hidewidth\sh@ft{29}% \vbox to.2ex{\hbox{\char21}\vss}\hidewidth}}} There is a similar command for cedover. As you can see, they use the encoding OT1. How can I set LyX to use OT1 encoding (or is that undesirable)? Regards John O'Gorman