Re: footnote in caption
I had the same problem. It's a LaTeX limitation: footnotes in floats do not work... (for German users: http://www.dante.de/faq/de-tex-faq/html/makros2.html#57) If any possible it'd be the best way not to use footnotes in captions -- if you have to I prefer this way: set the footnotemark in the caption via \setcounter{footnote}{\value{footnote}}\protect\footnotemark set the footnotetext via \footnotetext{This is the footnote text.} unfortunately this has to be set on the correct page (the page used by LaTeX for the float) by hand, which means you might have to change this at the very end and you cannot rely on LaTeX to do everything... As far as I know there is no other way to get it working the expected way. All other options are something like putting footnotemark and footnotetext in a minipage which is quite sure not what you wanted. Toby Original Message Subject: Re: footnote in caption From: Richard Heck [EMAIL PROTECTED] To: Alexander Sklar [EMAIL PROTECTED] Date: Wed Oct 24 2007 04:37:30 GMT+0200 Alexander Sklar wrote: Well...it compiles, but doesn't produced the expected result :) (see attached pdf, where's the footnote?) I was afraid something like that would happen. So it's probably an issue with captions and footnotes. Someone here will know what to do. rh Thanks, Alex -Original Message- From: Richard Heck [mailto:[EMAIL PROTECTED] Sent: Martes, 23 de Octubre de 2007 06:55 p.m. To: Alexander Sklar Cc: lyx-users@lists.lyx.org Subject: Re: footnote in caption Alexander Sklar wrote: Hi All, First of all, thanks to all the great people who make LyX J My thesis would look terrible and be impossibly difficult to write without it J I don't know if this is a known bug or not, but when I tried to insert a footnote inside a graphics float's caption, the file won't compile and give: Argument of [EMAIL PROTECTED] has an extra }. Paragraph ended before [EMAIL PROTECTED] was complete. I'm pretty sure this isn't a LyX bug but a LaTeX limitation. It may be that \footnote needs to be \protected in this context, in which case it is a LyX bug. So you might try putting \protect in ERT immediately before the footnote, and see if that helps. If not, then it's a LaTeX issue. rh
Re: Severe font caching problem with Zoom and Lyx 1.5.2 on Mac/PPC
Geoff Ghose wrote: I just installed 1.5.2 and am having horrible font problems. I understand that there's a new pixmap cache scheme, but it seems to be broken when you change the Zoom on Screen fonts. It adjusts the spacing appopriately, but not actual characters. So, when you increase the zoom, you still have small characters but they're spaced far apart. Conversely, when you decrease the zoom, the characters are on top on one another. I created a brand new preferences file and folder and this didn't solve the problem. On the other hand, when you quit the program and start it up, it's ok. But currently you can never change the zoom and expect it to behave properly without restarting. This bug will be fixed in 1.5.3. FYI, it was not just about the pixmap cache but also the font metrics cache. Abdel.
How to nest enumerate environments in Theorems
Hi LyXers, sorry for a perhaps silly question, but I was unable to solve it with the User Guide. In AMS-style, I need to enumerate items inside Example, Theorem, or Lemma environments I want them to look roughly as follows: Theorem (i) blabla (ii) blablu kjkjkjk oioioi oioio (iii) blubla oipoipoi ipoipoipoipoipoi The only way I was able to nest an enum environment inside a theorem is by putting Ctrl-Space Enter in the Theorem then do an enum and increase its depth. Unfortunately, this produces the layout Theorem (i) blabla (ii) blablu (iii) blubla But I don't want - the empty line after Theorem - the exaggerated indentation Wat is the trick, or where can I read how to do it ? Thx, H.Peter Gumm
Re: footnote in caption
Can someone file a bug report about this? The footnote-insert LFUN should be disabled in floats if it doesn't work. Surely there is a solution to this problem, though. The footnote package seems to address some issues like this. rh Tobias Krause wrote: I had the same problem. It's a LaTeX limitation: footnotes in floats do not work... (for German users: http://www.dante.de/faq/de-tex-faq/html/makros2.html#57) If any possible it'd be the best way not to use footnotes in captions -- if you have to I prefer this way: set the footnotemark in the caption via \setcounter{footnote}{\value{footnote}}\protect\footnotemark set the footnotetext via \footnotetext{This is the footnote text.} unfortunately this has to be set on the correct page (the page used by LaTeX for the float) by hand, which means you might have to change this at the very end and you cannot rely on LaTeX to do everything... As far as I know there is no other way to get it working the expected way. All other options are something like putting footnotemark and footnotetext in a minipage which is quite sure not what you wanted. Toby Original Message Subject: Re: footnote in caption From: Richard Heck [EMAIL PROTECTED] To: Alexander Sklar [EMAIL PROTECTED] Date: Wed Oct 24 2007 04:37:30 GMT+0200 Alexander Sklar wrote: Well...it compiles, but doesn't produced the expected result :) (see attached pdf, where's the footnote?) I was afraid something like that would happen. So it's probably an issue with captions and footnotes. Someone here will know what to do. rh Thanks, Alex -Original Message- From: Richard Heck [mailto:[EMAIL PROTECTED] Sent: Martes, 23 de Octubre de 2007 06:55 p.m. To: Alexander Sklar Cc: lyx-users@lists.lyx.org Subject: Re: footnote in caption Alexander Sklar wrote: Hi All, First of all, thanks to all the great people who make LyX J My thesis would look terrible and be impossibly difficult to write without it J I don't know if this is a known bug or not, but when I tried to insert a footnote inside a graphics float's caption, the file won't compile and give: Argument of [EMAIL PROTECTED] has an extra }. Paragraph ended before [EMAIL PROTECTED] was complete. I'm pretty sure this isn't a LyX bug but a LaTeX limitation. It may be that \footnote needs to be \protected in this context, in which case it is a LyX bug. So you might try putting \protect in ERT immediately before the footnote, and see if that helps. If not, then it's a LaTeX issue. rh
Re: Issues with v1.5.2 on OS X
Adam Treverrow wrote: 2. The second issue relates to typing lag. I realise this issue has been reported previously for OS X. Typing is unbearably slow in notes, floats etc. I have instant preview turned off. Typing in standard text is variable, but in general too slow for me to use 1.5.2. I've been working with some large files, originally created in v1.3.7, but saved as new versions using 1.5.2. Adding text to an existing paragraph of standard text in these documents results in typing lag. The lag is greatest when text is added at or near the beginning of a paragraph. The typing lag does not occur when typing in a newly created paragraph - it emerges as the paragraph length increases. I can reproduce both aspects of this behaviour in new files created using 1.5.2. I still see this at times under Linux, too. Resizing the window usually helps. I intend to figure this out at some point fairly soon. For anyone who wants to have a go, what you need to do is put some timer code into LyXFunc.cpp and try to figure out where the slowness is coming from. This is the code: #include QTime ... QTime timer; timer.start(); ...do stuff lyxerr timer.restart() std::endl; ...do more stuff lyxerr timer.restart() std::endl; ...etc Now look at the output and see what's taking so long, and then try to break that up a bit until you isolate exactly which function call is the problem. Then go into that function and do the same thing, etc. Most of the time here is spent recompiling Richard Richard
Re: footnote in caption
Richard Heck wrote: Can someone file a bug report about this? The footnote-insert LFUN should be disabled in floats if it doesn't work. It works if you put a minipage in the float. Jürgen
Re: Issues with v1.5.2 on OS X
On 10/24/07, Adam Treverrow [EMAIL PROTECTED] wrote: I've struck two problems. 1. When quitting LyX and copying/pasting I get a screen message along the lines of: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf2 This issue was reported recently here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59368.html with no solution that I can see. I've experienced the same problem. The pop ups when copying and pasting are particularly annoying. I reported this and I still have the problem. My attempts to compile lyx 1.5.2 to find out what is wrong have so far been unsuccessful. It appears the code might be effectively locked into OSX 10.4. 2. The second issue relates to typing lag. I see this also. Does anyone have experience of recently building an X version of lyx under OSX?
Re: footnote in caption
It works if you put a minipage in the float. What exactly do you mean by put a minipage in the float, could you post an example file? Or to do you rather mean put the float in a minipage, whereas the footnote appears within this minipage instead of the regular page? Toby
Re: footnote in caption
Tobias Krause wrote: What exactly do you mean by put a minipage in the float, could you post an example file? Like the attached. This probably doesn't look like you want it, but footnotes in floats are particularly tricky. Both the float and the footnote are floating objects, and this is simply too complex for LaTeX. Also cf. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ftncapt for some more workaorunds. Jürgen footnotefloat.lyx Description: application/lyx
Re: Issues with v1.5.2 on OS X
On Oct 24, 2007, at 6:25 AM, Adam Treverrow wrote: Hi all, I've been very happily using LyX 1.3.7 on a Mac G4 iBook (933 MHz PPC, 640 MB, OS X 10.3.9) for some time now - thanks to all the developers! I recently upgraded to v1.5.2 (PPC version). I never got around to using v1.4.x I've struck two problems. 1. When quitting LyX and copying/pasting I get a screen message along the lines of: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/ lyx_tmpbuf2 Console.app says: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/ lyx_tmpbuf1 Could not delete /private/tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf2. (boost::filesystem::basic_directory_iterator increment) Warning: Could not remove temporary directory This issue was reported recently here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59368.html with no solution that I can see. I've experienced the same problem. The pop ups when copying and pasting are particularly annoying. 2. The second issue relates to typing lag. I realise this issue has been reported previously for OS X. Typing is unbearably slow in notes, floats etc. I have instant preview turned off. Typing in standard text is variable, but in general too slow for me to use 1.5.2. I've been working with some large files, originally created in v1.3.7, but saved as new versions using 1.5.2. Adding text to an existing paragraph of standard text in these documents results in typing lag. The lag is greatest when text is added at or near the beginning of a paragraph. The typing lag does not occur when typing in a newly created paragraph - it emerges as the paragraph length increases. I can reproduce both aspects of this behaviour in new files created using 1.5.2. Any help is appreciated as I'd like to give 1.5.2 a go! It's faster if you turn preview on! pdv thanks AT
Re: footnote in caption
This probably doesn't look like you want it That's why I use the described way, although it's annoying to put the footnotetext by hand... Toby
Re: footnote in caption
Tobias Krause wrote: That's why I use the described way, although it's annoying to put the footnotetext by hand... and highly fragile. As soon as your layout changes and the float floats after the footnotetext, your document will be messed up. Jürgen
Re: footnote in caption
On Oct 24, 2007, at 7:59 PM, Tobias Krause wrote: It works if you put a minipage in the float. What exactly do you mean by put a minipage in the float, could you post an example file? Or to do you rather mean put the float in a minipage, whereas the footnote appears within this minipage instead of the regular page? Toby Included is an example file (+graphic) For me this only works if you put a (possibly empty) short title in the caption. I also thought you needed package ccaption, but apparently this is not true. testfigurecaption.lyx Description: Binary data testfigure.pdf Description: Adobe PDF document
Re: How to nest enumerate environments in Theorems
H. Peter Gumm wrote: Hi LyXers, sorry for a perhaps silly question, but I was unable to solve it with the User Guide. In AMS-style, I need to enumerate items inside Example, Theorem, or Lemma environments I want them to look roughly as follows: Theorem (i) blabla (ii) blablu kjkjkjk oioioi oioio (iii) blubla oipoipoi ipoipoipoipoipoi The only way I was able to nest an enum environment inside a theorem is by putting Ctrl-Space Enter in the Theorem then do an enum and increase its depth. Unfortunately, this produces the layout Theorem (i) blabla (ii) blablu (iii) blubla But I don't want - the empty line after Theorem - the exaggerated indentation Wat is the trick, or where can I read how to do it ? I don't think this is easy, since list environments automatically start a new paragraph. I've attached a fairly ugly kludge. You can fiddle with the lengths to taste. There should be a better way to do this, or at least a better way to define the length offsets (one that is less vulnerable to changes in font size), but whatever that might be is beyond my limited TeXpertise. /Paul PS: This is not to be considered an endorsement of your format. :-) thmenum.lyx Description: application/lyx
Re: subscript in superscript
Stacia Hartleben wrote: Hi guys, this is a really simple question and I'm probably just missing something, but I can't get subscripts to work within superscripts. I want to write N^log_b(a) but the underscore always shows up no matter what I do. Tips? How are you putting in the log? If you use \log, it should work fine. If you are using something like \textrm{log}, you need to cursor out of the textrm box before you hit the underscore (space won't get you out -- LyX will think the space is part of the text). Actually, it's hard for me _not_ to get the underscore to trigger a subscript, so this seems a bit strange. /Paul
Generating an index
Is there some way I can automate the generation of a Lyx index? Manually selecting all the entries (multiple times) can be tiresome and time-consuming... FN -- Frederick Noronha http://fn.goa-india.org Ph 0091-832-2409490 11866 downloadable, sharable hi-res photos http://www.flickr.com/photos/fn-goa/
Exporting to Rich Text Format with latex2rtf, issues and a fix
Over the past few days I've struggled to get LyX 1.5.2 on WinXP to recognize and use latex2rtf for Rich Text Format exports. Jurgen suggested this to someone and it was a tool I needed, so I gave it a shot. The process was beset by many troubles, and now that I finally have it working, I describe it here to help other users on WinXP that need a way of sharing documents with the underclass that use M$ products (hat tip to Paul). Jurgen helped me a LOT along the way. Ideally, one would simply: (1) install latex2rtf from sourceforge (win-gui download here - http://sourceforge.net/project/showfiles.php?group_id=22654) (2) add the latex2rtf folder (C:\l2r -- see below) to the Windows search path (see section 2.4 here - http://sourceforge.net/project/showfiles.php?group_id=22654) (3) open LyX, reconfigure, close, and restart and the converter for Latex (plain) - Rich Text Format would be sorted out by LyX and a Rich Text Format option would be made available under File - Export. Unfortunately, it ain't that easy. First off, the above strategy works fine if all you want to do is use the latex2rtf GUI (l2rshell.exe; the icon on the desktop calls this) to convert existing .tex files to .rtf files. In fact, you only need (1) and (2) above for that, and then you just export plain latex from LyX and run the conversion manually. Getting LyX to recognize the converter (latex2rt.exe) is the hard part, but it's nice to have LyX do all the work behind the scenes. The first issue is that you should simply avoid installing the program anywhere but C:\l2r. All of the defaults for the program assume that it is installed at this path. I installed to Program Files because I had not read section 2.4 here - http://sourceforge.net/project/showfiles.php?group_id=22654 - first. It explains how to adjust the three configuration files (more on these in a minute) to make latex2rtf work from any installation path, but it never worked for me, and I tried a lot of different things. No matter what I tried, running LyX from the command prompt showed that the error was that latex2rtf could not find its config directory (the cfg directory under the latex2rtf root directory). It always assumed that the root directory was C:\l2r despite the fact that all entries in the configuration files were adjusted to reflect C:\Program Files\latex2rtf, where I installed it. So, make your life easy and install to C:\l2r. I never checked this with the latex2rtf folks, but the simple solution seems to be obvious. Next, you do need to add the latex2rtf folder to the Windows search path: a. Right-click My Computer and go to Properties. b. Advanced Tab - Environment Variables - System Variables - Path, add C:\l2r; (no quotes) somewhere in the line. The next step varies depending on how you have LaTeX set up on your machine. I used the LyXWinInstaller and this presents a new wrinkle for latex2rtf. Those three configuration files (.bat files) are in the latex2rtf root and are L2R.BAT, L2RSEM.BAT, and L2RPREP.BAT. You'll need to edit them (use a good text editor; i.e., not Notepad). L2R and L2RSEM are almost identical, but notice that one of them (don't recall which, I changed it), on line 15, has the German windows settings line unremarked. The other one has the English windows settings unremarked. I changed them both to have the English settings unremarked (i.e., functional) and the German settings remarked (i.e., unfunctional). I didn't actually test whether this mattered, but it seemed prudent. The paths should all be fine if you installed to C:\l2r and you need do nothing more with these files. At this point, I tried reconfiguring LyX and it still failed to find the converter. L2RPREP comes in - this is a bit tougher. I ran this file from a command prompt to see that it set the paths correctly. As best I could tell, which always failed to find the Ghostscript, LaTeX, and ImageMagick files. So, I edited it to look as below (changes starting on line 8). Again, this applies for people that use LyXWinInstaller only. rem set folder containing Ghostscript executables here: %l2rpath%\which gswin32c nul if errorlevel 1 SET PATH=C:\Program Files\LyX 1.5.2\etc\Ghostscript\bin;C:\Program Files\LyX 1.5.2\etc\Ghostscript\lib;%PATH% rem set folder containing ImageMagick executables here: %l2rpath%\which identify nul if errorlevel 1 SET PATH=C:\Program Files\LyX 1.5.2\etc\ImageMagick;%PATH% rem set folder containing LaTeX and dvips executables here: %l2rpath%\which latex nul if errorlevel 1 SET PATH=C:\Program Files\MiKTeX 2.6\miktex\bin;%PATH% The final set l2rpath= line appears superfluous, but it doesn't stop things from working. I also added C:\Program Files\LyX 1.5.2; (no quotes) to the Windows search path. In my inexperienced mind this was to help which find the above files, but I also edited the L2RPREP before reconfiguring LyX, so these events are confounded when it comes to
Re: Generating an index
On Wednesday 24 October 2007 17:00, Frederick Noronha [फ़रेदरिक नोरोनया] wrote: Is there some way I can automate the generation of a Lyx index? Manually selecting all the entries (multiple times) can be tiresome and time-consuming... FN The following answer to your question is my subjective opinion -- treat it as such. You could write a script to generate index entries, but the result would be a disservice to your readers. Having an index entry for every occurrence of a word, which is what would be produced by an index-entry-making script, would produce many irrelevent index entries, and drown the important entries in a sea of irrelevencies. Not only that, but in many cases you need to mark a range of pages as an index entry (using |( and |)), and that could not be produced with an index-entry-making script. As a result, index entries must be input by hand. It's the most boring, dirty, distasteful work an author does, but it's necessary to produce a product useful to the reader. Here's how I do it: 1) I write the LyX file out to text. 2) Using Vim, I put each word on its own line A: %s/\s\s*/\r/g 3) I run the resulting file through sort -u 4) I now have an alphabetized list of every word in the book. For each word, I think of all book relevent phrases that could be made with that word. I add such phrases to the list. If the word is not important, nor is it part of a relevent phrase, I delete it from the list. Generally speaking, I can delete all non upper case words 4 letters or less. That gets rid of a heck of a lot of stuff at once. 5) When finished with step 4, I have a list of every desired index item. Starting at the top, I go through the book and find all occurrences I wish to index, and mark them. The preceding took me about a day for an 80 page book. It's a horrible job, but if you self publish you've gotta do it. HTH SteveT Steve Litt Books written in LyX: Troubleshooting Techniques of the Successful Technologist Twenty Eight Tales of Troubleshooting Troubleshooting: Just the Facts
Re: Exporting to Rich Text Format with latex2rtf, issues and a fix
On Wed, Oct 24, 2007 at 05:26:19PM -0400, Dave Hewitt wrote: Over the past few days I've struggled to get LyX 1.5.2 on WinXP to recognize and use latex2rtf for Rich Text Format exports. Jurgen suggested this to someone and it was a tool I needed, so I gave it a shot. The process was beset by many troubles, and now that I finally have it working, I describe it here to help other users on WinXP that need a way of sharing documents with the underclass that use M$ products (hat tip to Paul). Jurgen helped me a LOT along the way. [...] Maybe you could add that to the wiki... Andre'
Re: Issues with v1.5.2 on OS X
On 25/10/2007, at 6:02 AM, Patrick De Visschere wrote: On Oct 24, 2007, at 6:25 AM, Adam Treverrow wrote: Hi all, I've been very happily using LyX 1.3.7 on a Mac G4 iBook (933 MHz PPC, 640 MB, OS X 10.3.9) for some time now - thanks to all the developers! I recently upgraded to v1.5.2 (PPC version). I never got around to using v1.4.x I've struck two problems. 1. When quitting LyX and copying/pasting I get a screen message along the lines of: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf2 Console.app says: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf1 Could not delete /private/tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf2. (boost::filesystem::basic_directory_iterator increment) Warning: Could not remove temporary directory This issue was reported recently here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59368.html with no solution that I can see. I've experienced the same problem. The pop ups when copying and pasting are particularly annoying. 2. The second issue relates to typing lag. I realise this issue has been reported previously for OS X. Typing is unbearably slow in notes, floats etc. I have instant preview turned off. Typing in standard text is variable, but in general too slow for me to use 1.5.2. I've been working with some large files, originally created in v1.3.7, but saved as new versions using 1.5.2. Adding text to an existing paragraph of standard text in these documents results in typing lag. The lag is greatest when text is added at or near the beginning of a paragraph. The typing lag does not occur when typing in a newly created paragraph - it emerges as the paragraph length increases. I can reproduce both aspects of this behaviour in new files created using 1.5.2. Any help is appreciated as I'd like to give 1.5.2 a go! It's faster if you turn preview on! Yes, that certainly helps -thanks. Collapsing floats and notes also helps, but typing within an existing paragraph of text can still result in excessive lag, which is a problem when editing text. I didn't notice any improvement with Richard's suggestion to alter the window size. ta AT
Re: Exporting to Rich Text Format with latex2rtf, issues and a fix
Dave Hewitt writes: Over the past few days I've struggled to get LyX 1.5.2 on WinXP to recognize and use latex2rtf for Rich Text Format exports. Jurgen suggested this to someone and it was a tool I needed, so I gave it a shot. The process was beset by many troubles, and now that I finally have it working, I describe it here to help other users on WinXP that need a way of sharing documents with the underclass that use M$ products (hat tip to Paul). Jurgen helped me a LOT along the way. The problem here is that the option -P for specifying the config directory to latex2rtf is broken on Windows. However, the RTFPATH variable works, so a simpler option is creating a latex2rtf.bat file as follows: @echo off set RTFPATH=C:/Program Files/latex2rtf/cfg latex2rt %* exit 0 You only need installing latex2rtf, starting LyX and reconfigure. Then, go to Tools-Preferences-Converters and modify the entry for the LaTeX to Rich Text Format converter changing latex2rt into latex2rtf. Note that this last step is only necessary because the configure.py script is braindead and simply checks for the existence of program or program.exe, but not for program.bat, or program.cmd, or ... (sigh). -- Enrico
RE: footnote in caption
Thanks for your replies, I visited the page Jürgen suggested, and perhaps this is a silly question but how do I add an optional parameter to a caption (to make it look different in the table of figures than in the actual caption text)? This would be somewhat of a workaround to have a footnote for the caption Thanks again Alex -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Juergen Spitzmueller Sent: Miércoles, 24 de Octubre de 2007 12:00 p.m. To: lyx-users@lists.lyx.org Subject: Re: footnote in caption Tobias Krause wrote: What exactly do you mean by put a minipage in the float, could you post an example file? Like the attached. This probably doesn't look like you want it, but footnotes in floats are particularly tricky. Both the float and the footnote are floating objects, and this is simply too complex for LaTeX. Also cf. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ftncapt for some more workaorunds. Jürgen
Re: Re: exporting to rtf?
Thanks Paul, I did indeed do reconfigure and restarted LyX. LyX complains about the file with the following: The layout file requested by this document, apa.layout, is not usable. This is probably because a LaTeX class or style file required by it is not available. See the Customization documentation for more information. LyX will not be able to produce output. I confirm that I do have APA installed: $ kpsewhich apa.cls /usr/share/texmf-texlive/tex/latex/apa/apa.cls Perhaps apa.layout was included in the ubuntu 1.4.x package, but not in 1.5.1? Nothing about rtf in export either, I can see Rich Text Format in Export - Custom, but OK and Apply are ghosted. Actually both are ghosted for all the formates listed (See screenshot attached). Perhaps these issues are a packaging problem? If I knew how LyX was supposed to behave I could submit a bug report to ubuntu. Thanks for your efforts. B. Bogart Paul A. Rubin wrote: div class=moz-text-flowed style=font-family: -moz-fixedB. Bogart wrote: Hi again, So I've upgraded to ubuntu gutsy (lyx 1.5.1) since my last email, and am having a few troubles. #1. I've installed latex2rtf (1.9.16a-3ubuntu1) but it does not seem to get registered Export now only shows: CJK LyX 1.4.x (big5) CJK LyX 1.4.x (euc-jp) CJK LyX 1.4.x (euc-kr) LyX 1.3.x LyX 1.4.x Plain Text Custom... I have no idea what the CJK stuff is, Something to do with Chinese/Japanese/Korean, I think. but HTML is missing (which was there in LyX 1.4.x) and no latex2rtf. Did you reconfigure and restart LyX after installing latex2rtf? #2. I had a 1.4.x document in article(APA) class, but now 1.5.1 says it can't find that class and it shows up as unavailable in the list. How can I get RTF export to work, and how can I get back my APA class? I don't know what would have changed, as far as I can tell I have the same texlive packages, just newer versions as before. Try 'kpsewhich apa.cls' in a terminal window to see if you still have the APA class installed. If not, after installing it be sure to reconfigure and restart LyX. /Paul /div inline: Screenshot.png
article(APA) does not work in 1.5.x as it did in 1.4.x WAS exporting to rtf?
Hi all, Apologies for my last message. Turns out indeed RTF export (and all the other explort types) are working, and it was the fact that the file I was using to test was the one using the APA class (so no export was possible). So I reiterate that I was able to use article(APA) in 1.4.x, but that it is not working in 1.5.x. I did not create my own apa.layout, I was just able to select it in the document settings. Thanks for your patience. B. Bogart Paul A. Rubin wrote: div class=moz-text-flowed style=font-family: -moz-fixedB. Bogart wrote: Hi again, So I've upgraded to ubuntu gutsy (lyx 1.5.1) since my last email, and am having a few troubles. #1. I've installed latex2rtf (1.9.16a-3ubuntu1) but it does not seem to get registered Export now only shows: CJK LyX 1.4.x (big5) CJK LyX 1.4.x (euc-jp) CJK LyX 1.4.x (euc-kr) LyX 1.3.x LyX 1.4.x Plain Text Custom... I have no idea what the CJK stuff is, Something to do with Chinese/Japanese/Korean, I think. but HTML is missing (which was there in LyX 1.4.x) and no latex2rtf. Did you reconfigure and restart LyX after installing latex2rtf? #2. I had a 1.4.x document in article(APA) class, but now 1.5.1 says it can't find that class and it shows up as unavailable in the list. How can I get RTF export to work, and how can I get back my APA class? I don't know what would have changed, as far as I can tell I have the same texlive packages, just newer versions as before. Try 'kpsewhich apa.cls' in a terminal window to see if you still have the APA class installed. If not, after installing it be sure to reconfigure and restart LyX. /Paul /div
Re: footnote in caption
I had the same problem. It's a LaTeX limitation: footnotes in floats do not work... (for German users: http://www.dante.de/faq/de-tex-faq/html/makros2.html#57) If any possible it'd be the best way not to use footnotes in captions -- if you have to I prefer this way: set the footnotemark in the caption via \setcounter{footnote}{\value{footnote}}\protect\footnotemark set the footnotetext via \footnotetext{This is the footnote text.} unfortunately this has to be set on the correct page (the page used by LaTeX for the float) by hand, which means you might have to change this at the very end and you cannot rely on LaTeX to do everything... As far as I know there is no other way to get it working the expected way. All other options are something like putting footnotemark and footnotetext in a minipage which is quite sure not what you wanted. Toby Original Message Subject: Re: footnote in caption From: Richard Heck [EMAIL PROTECTED] To: Alexander Sklar [EMAIL PROTECTED] Date: Wed Oct 24 2007 04:37:30 GMT+0200 Alexander Sklar wrote: Well...it compiles, but doesn't produced the expected result :) (see attached pdf, where's the footnote?) I was afraid something like that would happen. So it's probably an issue with captions and footnotes. Someone here will know what to do. rh Thanks, Alex -Original Message- From: Richard Heck [mailto:[EMAIL PROTECTED] Sent: Martes, 23 de Octubre de 2007 06:55 p.m. To: Alexander Sklar Cc: lyx-users@lists.lyx.org Subject: Re: footnote in caption Alexander Sklar wrote: Hi All, First of all, thanks to all the great people who make LyX J My thesis would look terrible and be impossibly difficult to write without it J I don't know if this is a known bug or not, but when I tried to insert a footnote inside a graphics float's caption, the file won't compile and give: Argument of [EMAIL PROTECTED] has an extra }. Paragraph ended before [EMAIL PROTECTED] was complete. I'm pretty sure this isn't a LyX bug but a LaTeX limitation. It may be that \footnote needs to be \protected in this context, in which case it is a LyX bug. So you might try putting \protect in ERT immediately before the footnote, and see if that helps. If not, then it's a LaTeX issue. rh
Re: Severe font caching problem with Zoom and Lyx 1.5.2 on Mac/PPC
Geoff Ghose wrote: I just installed 1.5.2 and am having horrible font problems. I understand that there's a new pixmap cache scheme, but it seems to be broken when you change the Zoom on Screen fonts. It adjusts the spacing appopriately, but not actual characters. So, when you increase the zoom, you still have small characters but they're spaced far apart. Conversely, when you decrease the zoom, the characters are on top on one another. I created a brand new preferences file and folder and this didn't solve the problem. On the other hand, when you quit the program and start it up, it's ok. But currently you can never change the zoom and expect it to behave properly without restarting. This bug will be fixed in 1.5.3. FYI, it was not just about the pixmap cache but also the font metrics cache. Abdel.
How to nest enumerate environments in Theorems
Hi LyXers, sorry for a perhaps silly question, but I was unable to solve it with the User Guide. In AMS-style, I need to enumerate items inside Example, Theorem, or Lemma environments I want them to look roughly as follows: Theorem (i) blabla (ii) blablu kjkjkjk oioioi oioio (iii) blubla oipoipoi ipoipoipoipoipoi The only way I was able to nest an enum environment inside a theorem is by putting Ctrl-Space Enter in the Theorem then do an enum and increase its depth. Unfortunately, this produces the layout Theorem (i) blabla (ii) blablu (iii) blubla But I don't want - the empty line after Theorem - the exaggerated indentation Wat is the trick, or where can I read how to do it ? Thx, H.Peter Gumm
Re: footnote in caption
Can someone file a bug report about this? The footnote-insert LFUN should be disabled in floats if it doesn't work. Surely there is a solution to this problem, though. The footnote package seems to address some issues like this. rh Tobias Krause wrote: I had the same problem. It's a LaTeX limitation: footnotes in floats do not work... (for German users: http://www.dante.de/faq/de-tex-faq/html/makros2.html#57) If any possible it'd be the best way not to use footnotes in captions -- if you have to I prefer this way: set the footnotemark in the caption via \setcounter{footnote}{\value{footnote}}\protect\footnotemark set the footnotetext via \footnotetext{This is the footnote text.} unfortunately this has to be set on the correct page (the page used by LaTeX for the float) by hand, which means you might have to change this at the very end and you cannot rely on LaTeX to do everything... As far as I know there is no other way to get it working the expected way. All other options are something like putting footnotemark and footnotetext in a minipage which is quite sure not what you wanted. Toby Original Message Subject: Re: footnote in caption From: Richard Heck [EMAIL PROTECTED] To: Alexander Sklar [EMAIL PROTECTED] Date: Wed Oct 24 2007 04:37:30 GMT+0200 Alexander Sklar wrote: Well...it compiles, but doesn't produced the expected result :) (see attached pdf, where's the footnote?) I was afraid something like that would happen. So it's probably an issue with captions and footnotes. Someone here will know what to do. rh Thanks, Alex -Original Message- From: Richard Heck [mailto:[EMAIL PROTECTED] Sent: Martes, 23 de Octubre de 2007 06:55 p.m. To: Alexander Sklar Cc: lyx-users@lists.lyx.org Subject: Re: footnote in caption Alexander Sklar wrote: Hi All, First of all, thanks to all the great people who make LyX J My thesis would look terrible and be impossibly difficult to write without it J I don't know if this is a known bug or not, but when I tried to insert a footnote inside a graphics float's caption, the file won't compile and give: Argument of [EMAIL PROTECTED] has an extra }. Paragraph ended before [EMAIL PROTECTED] was complete. I'm pretty sure this isn't a LyX bug but a LaTeX limitation. It may be that \footnote needs to be \protected in this context, in which case it is a LyX bug. So you might try putting \protect in ERT immediately before the footnote, and see if that helps. If not, then it's a LaTeX issue. rh
Re: Issues with v1.5.2 on OS X
Adam Treverrow wrote: 2. The second issue relates to typing lag. I realise this issue has been reported previously for OS X. Typing is unbearably slow in notes, floats etc. I have instant preview turned off. Typing in standard text is variable, but in general too slow for me to use 1.5.2. I've been working with some large files, originally created in v1.3.7, but saved as new versions using 1.5.2. Adding text to an existing paragraph of standard text in these documents results in typing lag. The lag is greatest when text is added at or near the beginning of a paragraph. The typing lag does not occur when typing in a newly created paragraph - it emerges as the paragraph length increases. I can reproduce both aspects of this behaviour in new files created using 1.5.2. I still see this at times under Linux, too. Resizing the window usually helps. I intend to figure this out at some point fairly soon. For anyone who wants to have a go, what you need to do is put some timer code into LyXFunc.cpp and try to figure out where the slowness is coming from. This is the code: #include QTime ... QTime timer; timer.start(); ...do stuff lyxerr timer.restart() std::endl; ...do more stuff lyxerr timer.restart() std::endl; ...etc Now look at the output and see what's taking so long, and then try to break that up a bit until you isolate exactly which function call is the problem. Then go into that function and do the same thing, etc. Most of the time here is spent recompiling Richard Richard
Re: footnote in caption
Richard Heck wrote: Can someone file a bug report about this? The footnote-insert LFUN should be disabled in floats if it doesn't work. It works if you put a minipage in the float. Jürgen
Re: Issues with v1.5.2 on OS X
On 10/24/07, Adam Treverrow [EMAIL PROTECTED] wrote: I've struck two problems. 1. When quitting LyX and copying/pasting I get a screen message along the lines of: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf2 This issue was reported recently here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59368.html with no solution that I can see. I've experienced the same problem. The pop ups when copying and pasting are particularly annoying. I reported this and I still have the problem. My attempts to compile lyx 1.5.2 to find out what is wrong have so far been unsuccessful. It appears the code might be effectively locked into OSX 10.4. 2. The second issue relates to typing lag. I see this also. Does anyone have experience of recently building an X version of lyx under OSX?
Re: footnote in caption
It works if you put a minipage in the float. What exactly do you mean by put a minipage in the float, could you post an example file? Or to do you rather mean put the float in a minipage, whereas the footnote appears within this minipage instead of the regular page? Toby
Re: footnote in caption
Tobias Krause wrote: What exactly do you mean by put a minipage in the float, could you post an example file? Like the attached. This probably doesn't look like you want it, but footnotes in floats are particularly tricky. Both the float and the footnote are floating objects, and this is simply too complex for LaTeX. Also cf. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ftncapt for some more workaorunds. Jürgen footnotefloat.lyx Description: application/lyx
Re: Issues with v1.5.2 on OS X
On Oct 24, 2007, at 6:25 AM, Adam Treverrow wrote: Hi all, I've been very happily using LyX 1.3.7 on a Mac G4 iBook (933 MHz PPC, 640 MB, OS X 10.3.9) for some time now - thanks to all the developers! I recently upgraded to v1.5.2 (PPC version). I never got around to using v1.4.x I've struck two problems. 1. When quitting LyX and copying/pasting I get a screen message along the lines of: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/ lyx_tmpbuf2 Console.app says: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/ lyx_tmpbuf1 Could not delete /private/tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf2. (boost::filesystem::basic_directory_iterator increment) Warning: Could not remove temporary directory This issue was reported recently here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59368.html with no solution that I can see. I've experienced the same problem. The pop ups when copying and pasting are particularly annoying. 2. The second issue relates to typing lag. I realise this issue has been reported previously for OS X. Typing is unbearably slow in notes, floats etc. I have instant preview turned off. Typing in standard text is variable, but in general too slow for me to use 1.5.2. I've been working with some large files, originally created in v1.3.7, but saved as new versions using 1.5.2. Adding text to an existing paragraph of standard text in these documents results in typing lag. The lag is greatest when text is added at or near the beginning of a paragraph. The typing lag does not occur when typing in a newly created paragraph - it emerges as the paragraph length increases. I can reproduce both aspects of this behaviour in new files created using 1.5.2. Any help is appreciated as I'd like to give 1.5.2 a go! It's faster if you turn preview on! pdv thanks AT
Re: footnote in caption
This probably doesn't look like you want it That's why I use the described way, although it's annoying to put the footnotetext by hand... Toby
Re: footnote in caption
Tobias Krause wrote: That's why I use the described way, although it's annoying to put the footnotetext by hand... and highly fragile. As soon as your layout changes and the float floats after the footnotetext, your document will be messed up. Jürgen
Re: footnote in caption
On Oct 24, 2007, at 7:59 PM, Tobias Krause wrote: It works if you put a minipage in the float. What exactly do you mean by put a minipage in the float, could you post an example file? Or to do you rather mean put the float in a minipage, whereas the footnote appears within this minipage instead of the regular page? Toby Included is an example file (+graphic) For me this only works if you put a (possibly empty) short title in the caption. I also thought you needed package ccaption, but apparently this is not true. testfigurecaption.lyx Description: Binary data testfigure.pdf Description: Adobe PDF document
Re: How to nest enumerate environments in Theorems
H. Peter Gumm wrote: Hi LyXers, sorry for a perhaps silly question, but I was unable to solve it with the User Guide. In AMS-style, I need to enumerate items inside Example, Theorem, or Lemma environments I want them to look roughly as follows: Theorem (i) blabla (ii) blablu kjkjkjk oioioi oioio (iii) blubla oipoipoi ipoipoipoipoipoi The only way I was able to nest an enum environment inside a theorem is by putting Ctrl-Space Enter in the Theorem then do an enum and increase its depth. Unfortunately, this produces the layout Theorem (i) blabla (ii) blablu (iii) blubla But I don't want - the empty line after Theorem - the exaggerated indentation Wat is the trick, or where can I read how to do it ? I don't think this is easy, since list environments automatically start a new paragraph. I've attached a fairly ugly kludge. You can fiddle with the lengths to taste. There should be a better way to do this, or at least a better way to define the length offsets (one that is less vulnerable to changes in font size), but whatever that might be is beyond my limited TeXpertise. /Paul PS: This is not to be considered an endorsement of your format. :-) thmenum.lyx Description: application/lyx
Re: subscript in superscript
Stacia Hartleben wrote: Hi guys, this is a really simple question and I'm probably just missing something, but I can't get subscripts to work within superscripts. I want to write N^log_b(a) but the underscore always shows up no matter what I do. Tips? How are you putting in the log? If you use \log, it should work fine. If you are using something like \textrm{log}, you need to cursor out of the textrm box before you hit the underscore (space won't get you out -- LyX will think the space is part of the text). Actually, it's hard for me _not_ to get the underscore to trigger a subscript, so this seems a bit strange. /Paul
Generating an index
Is there some way I can automate the generation of a Lyx index? Manually selecting all the entries (multiple times) can be tiresome and time-consuming... FN -- Frederick Noronha http://fn.goa-india.org Ph 0091-832-2409490 11866 downloadable, sharable hi-res photos http://www.flickr.com/photos/fn-goa/
Exporting to Rich Text Format with latex2rtf, issues and a fix
Over the past few days I've struggled to get LyX 1.5.2 on WinXP to recognize and use latex2rtf for Rich Text Format exports. Jurgen suggested this to someone and it was a tool I needed, so I gave it a shot. The process was beset by many troubles, and now that I finally have it working, I describe it here to help other users on WinXP that need a way of sharing documents with the underclass that use M$ products (hat tip to Paul). Jurgen helped me a LOT along the way. Ideally, one would simply: (1) install latex2rtf from sourceforge (win-gui download here - http://sourceforge.net/project/showfiles.php?group_id=22654) (2) add the latex2rtf folder (C:\l2r -- see below) to the Windows search path (see section 2.4 here - http://sourceforge.net/project/showfiles.php?group_id=22654) (3) open LyX, reconfigure, close, and restart and the converter for Latex (plain) - Rich Text Format would be sorted out by LyX and a Rich Text Format option would be made available under File - Export. Unfortunately, it ain't that easy. First off, the above strategy works fine if all you want to do is use the latex2rtf GUI (l2rshell.exe; the icon on the desktop calls this) to convert existing .tex files to .rtf files. In fact, you only need (1) and (2) above for that, and then you just export plain latex from LyX and run the conversion manually. Getting LyX to recognize the converter (latex2rt.exe) is the hard part, but it's nice to have LyX do all the work behind the scenes. The first issue is that you should simply avoid installing the program anywhere but C:\l2r. All of the defaults for the program assume that it is installed at this path. I installed to Program Files because I had not read section 2.4 here - http://sourceforge.net/project/showfiles.php?group_id=22654 - first. It explains how to adjust the three configuration files (more on these in a minute) to make latex2rtf work from any installation path, but it never worked for me, and I tried a lot of different things. No matter what I tried, running LyX from the command prompt showed that the error was that latex2rtf could not find its config directory (the cfg directory under the latex2rtf root directory). It always assumed that the root directory was C:\l2r despite the fact that all entries in the configuration files were adjusted to reflect C:\Program Files\latex2rtf, where I installed it. So, make your life easy and install to C:\l2r. I never checked this with the latex2rtf folks, but the simple solution seems to be obvious. Next, you do need to add the latex2rtf folder to the Windows search path: a. Right-click My Computer and go to Properties. b. Advanced Tab - Environment Variables - System Variables - Path, add C:\l2r; (no quotes) somewhere in the line. The next step varies depending on how you have LaTeX set up on your machine. I used the LyXWinInstaller and this presents a new wrinkle for latex2rtf. Those three configuration files (.bat files) are in the latex2rtf root and are L2R.BAT, L2RSEM.BAT, and L2RPREP.BAT. You'll need to edit them (use a good text editor; i.e., not Notepad). L2R and L2RSEM are almost identical, but notice that one of them (don't recall which, I changed it), on line 15, has the German windows settings line unremarked. The other one has the English windows settings unremarked. I changed them both to have the English settings unremarked (i.e., functional) and the German settings remarked (i.e., unfunctional). I didn't actually test whether this mattered, but it seemed prudent. The paths should all be fine if you installed to C:\l2r and you need do nothing more with these files. At this point, I tried reconfiguring LyX and it still failed to find the converter. L2RPREP comes in - this is a bit tougher. I ran this file from a command prompt to see that it set the paths correctly. As best I could tell, which always failed to find the Ghostscript, LaTeX, and ImageMagick files. So, I edited it to look as below (changes starting on line 8). Again, this applies for people that use LyXWinInstaller only. rem set folder containing Ghostscript executables here: %l2rpath%\which gswin32c nul if errorlevel 1 SET PATH=C:\Program Files\LyX 1.5.2\etc\Ghostscript\bin;C:\Program Files\LyX 1.5.2\etc\Ghostscript\lib;%PATH% rem set folder containing ImageMagick executables here: %l2rpath%\which identify nul if errorlevel 1 SET PATH=C:\Program Files\LyX 1.5.2\etc\ImageMagick;%PATH% rem set folder containing LaTeX and dvips executables here: %l2rpath%\which latex nul if errorlevel 1 SET PATH=C:\Program Files\MiKTeX 2.6\miktex\bin;%PATH% The final set l2rpath= line appears superfluous, but it doesn't stop things from working. I also added C:\Program Files\LyX 1.5.2; (no quotes) to the Windows search path. In my inexperienced mind this was to help which find the above files, but I also edited the L2RPREP before reconfiguring LyX, so these events are confounded when it comes to
Re: Generating an index
On Wednesday 24 October 2007 17:00, Frederick Noronha [फ़रेदरिक नोरोनया] wrote: Is there some way I can automate the generation of a Lyx index? Manually selecting all the entries (multiple times) can be tiresome and time-consuming... FN The following answer to your question is my subjective opinion -- treat it as such. You could write a script to generate index entries, but the result would be a disservice to your readers. Having an index entry for every occurrence of a word, which is what would be produced by an index-entry-making script, would produce many irrelevent index entries, and drown the important entries in a sea of irrelevencies. Not only that, but in many cases you need to mark a range of pages as an index entry (using |( and |)), and that could not be produced with an index-entry-making script. As a result, index entries must be input by hand. It's the most boring, dirty, distasteful work an author does, but it's necessary to produce a product useful to the reader. Here's how I do it: 1) I write the LyX file out to text. 2) Using Vim, I put each word on its own line A: %s/\s\s*/\r/g 3) I run the resulting file through sort -u 4) I now have an alphabetized list of every word in the book. For each word, I think of all book relevent phrases that could be made with that word. I add such phrases to the list. If the word is not important, nor is it part of a relevent phrase, I delete it from the list. Generally speaking, I can delete all non upper case words 4 letters or less. That gets rid of a heck of a lot of stuff at once. 5) When finished with step 4, I have a list of every desired index item. Starting at the top, I go through the book and find all occurrences I wish to index, and mark them. The preceding took me about a day for an 80 page book. It's a horrible job, but if you self publish you've gotta do it. HTH SteveT Steve Litt Books written in LyX: Troubleshooting Techniques of the Successful Technologist Twenty Eight Tales of Troubleshooting Troubleshooting: Just the Facts
Re: Exporting to Rich Text Format with latex2rtf, issues and a fix
On Wed, Oct 24, 2007 at 05:26:19PM -0400, Dave Hewitt wrote: Over the past few days I've struggled to get LyX 1.5.2 on WinXP to recognize and use latex2rtf for Rich Text Format exports. Jurgen suggested this to someone and it was a tool I needed, so I gave it a shot. The process was beset by many troubles, and now that I finally have it working, I describe it here to help other users on WinXP that need a way of sharing documents with the underclass that use M$ products (hat tip to Paul). Jurgen helped me a LOT along the way. [...] Maybe you could add that to the wiki... Andre'
Re: Issues with v1.5.2 on OS X
On 25/10/2007, at 6:02 AM, Patrick De Visschere wrote: On Oct 24, 2007, at 6:25 AM, Adam Treverrow wrote: Hi all, I've been very happily using LyX 1.3.7 on a Mac G4 iBook (933 MHz PPC, 640 MB, OS X 10.3.9) for some time now - thanks to all the developers! I recently upgraded to v1.5.2 (PPC version). I never got around to using v1.4.x I've struck two problems. 1. When quitting LyX and copying/pasting I get a screen message along the lines of: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf2 Console.app says: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf1 Could not delete /private/tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf2. (boost::filesystem::basic_directory_iterator increment) Warning: Could not remove temporary directory This issue was reported recently here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59368.html with no solution that I can see. I've experienced the same problem. The pop ups when copying and pasting are particularly annoying. 2. The second issue relates to typing lag. I realise this issue has been reported previously for OS X. Typing is unbearably slow in notes, floats etc. I have instant preview turned off. Typing in standard text is variable, but in general too slow for me to use 1.5.2. I've been working with some large files, originally created in v1.3.7, but saved as new versions using 1.5.2. Adding text to an existing paragraph of standard text in these documents results in typing lag. The lag is greatest when text is added at or near the beginning of a paragraph. The typing lag does not occur when typing in a newly created paragraph - it emerges as the paragraph length increases. I can reproduce both aspects of this behaviour in new files created using 1.5.2. Any help is appreciated as I'd like to give 1.5.2 a go! It's faster if you turn preview on! Yes, that certainly helps -thanks. Collapsing floats and notes also helps, but typing within an existing paragraph of text can still result in excessive lag, which is a problem when editing text. I didn't notice any improvement with Richard's suggestion to alter the window size. ta AT
Re: Exporting to Rich Text Format with latex2rtf, issues and a fix
Dave Hewitt writes: Over the past few days I've struggled to get LyX 1.5.2 on WinXP to recognize and use latex2rtf for Rich Text Format exports. Jurgen suggested this to someone and it was a tool I needed, so I gave it a shot. The process was beset by many troubles, and now that I finally have it working, I describe it here to help other users on WinXP that need a way of sharing documents with the underclass that use M$ products (hat tip to Paul). Jurgen helped me a LOT along the way. The problem here is that the option -P for specifying the config directory to latex2rtf is broken on Windows. However, the RTFPATH variable works, so a simpler option is creating a latex2rtf.bat file as follows: @echo off set RTFPATH=C:/Program Files/latex2rtf/cfg latex2rt %* exit 0 You only need installing latex2rtf, starting LyX and reconfigure. Then, go to Tools-Preferences-Converters and modify the entry for the LaTeX to Rich Text Format converter changing latex2rt into latex2rtf. Note that this last step is only necessary because the configure.py script is braindead and simply checks for the existence of program or program.exe, but not for program.bat, or program.cmd, or ... (sigh). -- Enrico
RE: footnote in caption
Thanks for your replies, I visited the page Jürgen suggested, and perhaps this is a silly question but how do I add an optional parameter to a caption (to make it look different in the table of figures than in the actual caption text)? This would be somewhat of a workaround to have a footnote for the caption Thanks again Alex -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Juergen Spitzmueller Sent: Miércoles, 24 de Octubre de 2007 12:00 p.m. To: lyx-users@lists.lyx.org Subject: Re: footnote in caption Tobias Krause wrote: What exactly do you mean by put a minipage in the float, could you post an example file? Like the attached. This probably doesn't look like you want it, but footnotes in floats are particularly tricky. Both the float and the footnote are floating objects, and this is simply too complex for LaTeX. Also cf. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ftncapt for some more workaorunds. Jürgen
Re: Re: exporting to rtf?
Thanks Paul, I did indeed do reconfigure and restarted LyX. LyX complains about the file with the following: The layout file requested by this document, apa.layout, is not usable. This is probably because a LaTeX class or style file required by it is not available. See the Customization documentation for more information. LyX will not be able to produce output. I confirm that I do have APA installed: $ kpsewhich apa.cls /usr/share/texmf-texlive/tex/latex/apa/apa.cls Perhaps apa.layout was included in the ubuntu 1.4.x package, but not in 1.5.1? Nothing about rtf in export either, I can see Rich Text Format in Export - Custom, but OK and Apply are ghosted. Actually both are ghosted for all the formates listed (See screenshot attached). Perhaps these issues are a packaging problem? If I knew how LyX was supposed to behave I could submit a bug report to ubuntu. Thanks for your efforts. B. Bogart Paul A. Rubin wrote: div class=moz-text-flowed style=font-family: -moz-fixedB. Bogart wrote: Hi again, So I've upgraded to ubuntu gutsy (lyx 1.5.1) since my last email, and am having a few troubles. #1. I've installed latex2rtf (1.9.16a-3ubuntu1) but it does not seem to get registered Export now only shows: CJK LyX 1.4.x (big5) CJK LyX 1.4.x (euc-jp) CJK LyX 1.4.x (euc-kr) LyX 1.3.x LyX 1.4.x Plain Text Custom... I have no idea what the CJK stuff is, Something to do with Chinese/Japanese/Korean, I think. but HTML is missing (which was there in LyX 1.4.x) and no latex2rtf. Did you reconfigure and restart LyX after installing latex2rtf? #2. I had a 1.4.x document in article(APA) class, but now 1.5.1 says it can't find that class and it shows up as unavailable in the list. How can I get RTF export to work, and how can I get back my APA class? I don't know what would have changed, as far as I can tell I have the same texlive packages, just newer versions as before. Try 'kpsewhich apa.cls' in a terminal window to see if you still have the APA class installed. If not, after installing it be sure to reconfigure and restart LyX. /Paul /div inline: Screenshot.png
article(APA) does not work in 1.5.x as it did in 1.4.x WAS exporting to rtf?
Hi all, Apologies for my last message. Turns out indeed RTF export (and all the other explort types) are working, and it was the fact that the file I was using to test was the one using the APA class (so no export was possible). So I reiterate that I was able to use article(APA) in 1.4.x, but that it is not working in 1.5.x. I did not create my own apa.layout, I was just able to select it in the document settings. Thanks for your patience. B. Bogart Paul A. Rubin wrote: div class=moz-text-flowed style=font-family: -moz-fixedB. Bogart wrote: Hi again, So I've upgraded to ubuntu gutsy (lyx 1.5.1) since my last email, and am having a few troubles. #1. I've installed latex2rtf (1.9.16a-3ubuntu1) but it does not seem to get registered Export now only shows: CJK LyX 1.4.x (big5) CJK LyX 1.4.x (euc-jp) CJK LyX 1.4.x (euc-kr) LyX 1.3.x LyX 1.4.x Plain Text Custom... I have no idea what the CJK stuff is, Something to do with Chinese/Japanese/Korean, I think. but HTML is missing (which was there in LyX 1.4.x) and no latex2rtf. Did you reconfigure and restart LyX after installing latex2rtf? #2. I had a 1.4.x document in article(APA) class, but now 1.5.1 says it can't find that class and it shows up as unavailable in the list. How can I get RTF export to work, and how can I get back my APA class? I don't know what would have changed, as far as I can tell I have the same texlive packages, just newer versions as before. Try 'kpsewhich apa.cls' in a terminal window to see if you still have the APA class installed. If not, after installing it be sure to reconfigure and restart LyX. /Paul /div
Re: footnote in caption
I had the same problem. It's a LaTeX limitation: footnotes in floats do not work... (for German users: http://www.dante.de/faq/de-tex-faq/html/makros2.html#57) If any possible it'd be the best way not to use footnotes in captions -- if you have to I prefer this way: set the footnotemark in the caption via \setcounter{footnote}{\value{footnote}}\protect\footnotemark set the footnotetext via \footnotetext{This is the footnote text.} unfortunately this has to be set on the correct page (the page used by LaTeX for the float) by hand, which means you might have to change this at the very end and you cannot rely on LaTeX to do everything... As far as I know there is no other way to get it working the expected way. All other options are something like putting footnotemark and footnotetext in a minipage which is quite sure not what you wanted. Toby Original Message Subject: Re: footnote in caption From: Richard Heck <[EMAIL PROTECTED]> To: Alexander Sklar <[EMAIL PROTECTED]> Date: Wed Oct 24 2007 04:37:30 GMT+0200 Alexander Sklar wrote: Well...it compiles, but doesn't produced the expected result :) (see attached pdf, where's the footnote?) I was afraid something like that would happen. So it's probably an issue with captions and footnotes. Someone here will know what to do. rh Thanks, Alex -Original Message- From: Richard Heck [mailto:[EMAIL PROTECTED] Sent: Martes, 23 de Octubre de 2007 06:55 p.m. To: Alexander Sklar Cc: lyx-users@lists.lyx.org Subject: Re: footnote in caption Alexander Sklar wrote: Hi All, First of all, thanks to all the great people who make LyX J My thesis would look terrible and be impossibly difficult to write without it J I don't know if this is a known bug or not, but when I tried to insert a footnote inside a graphics float's caption, the file won't compile and give: Argument of [EMAIL PROTECTED] has an extra }. Paragraph ended before [EMAIL PROTECTED] was complete. I'm pretty sure this isn't a LyX bug but a LaTeX limitation. It may be that \footnote needs to be \protected in this context, in which case it is a LyX bug. So you might try putting "\protect" in ERT immediately before the footnote, and see if that helps. If not, then it's a LaTeX issue. rh
Re: Severe font caching problem with Zoom and Lyx 1.5.2 on Mac/PPC
Geoff Ghose wrote: I just installed 1.5.2 and am having horrible font problems. I understand that there's a new pixmap cache scheme, but it seems to be broken when you change the Zoom on Screen fonts. It adjusts the spacing appopriately, but not actual characters. So, when you increase the zoom, you still have small characters but they're spaced far apart. Conversely, when you decrease the zoom, the characters are on top on one another. I created a brand new preferences file and folder and this didn't solve the problem. On the other hand, when you quit the program and start it up, it's ok. But currently you can never change the zoom and expect it to behave properly without restarting. This bug will be fixed in 1.5.3. FYI, it was not just about the pixmap cache but also the font metrics cache. Abdel.
How to nest enumerate environments in Theorems
Hi LyXers, sorry for a perhaps silly question, but I was unable to solve it with the User Guide. In AMS-style, I need to enumerate items inside Example, Theorem, or Lemma environments I want them to look roughly as follows: Theorem (i) blabla (ii) blablu kjkjkjk oioioi oioio (iii) blubla oipoipoi ipoipoipoipoipoi The only way I was able to nest an enum environment inside a theorem is by putting in the Theorem then do an enum and increase its depth. Unfortunately, this produces the layout Theorem (i) blabla (ii) blablu (iii) blubla But I don't want - the empty line after "Theorem" - the exaggerated indentation Wat is the trick, or where can I read how to do it ? Thx, H.Peter Gumm
Re: footnote in caption
Can someone file a bug report about this? The footnote-insert LFUN should be disabled in floats if it doesn't work. Surely there is a solution to this problem, though. The footnote package seems to address some issues like this. rh Tobias Krause wrote: I had the same problem. It's a LaTeX limitation: footnotes in floats do not work... (for German users: http://www.dante.de/faq/de-tex-faq/html/makros2.html#57) If any possible it'd be the best way not to use footnotes in captions -- if you have to I prefer this way: set the footnotemark in the caption via \setcounter{footnote}{\value{footnote}}\protect\footnotemark set the footnotetext via \footnotetext{This is the footnote text.} unfortunately this has to be set on the correct page (the page used by LaTeX for the float) by hand, which means you might have to change this at the very end and you cannot rely on LaTeX to do everything... As far as I know there is no other way to get it working the expected way. All other options are something like putting footnotemark and footnotetext in a minipage which is quite sure not what you wanted. Toby Original Message Subject: Re: footnote in caption From: Richard Heck <[EMAIL PROTECTED]> To: Alexander Sklar <[EMAIL PROTECTED]> Date: Wed Oct 24 2007 04:37:30 GMT+0200 Alexander Sklar wrote: Well...it compiles, but doesn't produced the expected result :) (see attached pdf, where's the footnote?) I was afraid something like that would happen. So it's probably an issue with captions and footnotes. Someone here will know what to do. rh Thanks, Alex -Original Message- From: Richard Heck [mailto:[EMAIL PROTECTED] Sent: Martes, 23 de Octubre de 2007 06:55 p.m. To: Alexander Sklar Cc: lyx-users@lists.lyx.org Subject: Re: footnote in caption Alexander Sklar wrote: Hi All, First of all, thanks to all the great people who make LyX J My thesis would look terrible and be impossibly difficult to write without it J I don't know if this is a known bug or not, but when I tried to insert a footnote inside a graphics float's caption, the file won't compile and give: Argument of [EMAIL PROTECTED] has an extra }. Paragraph ended before [EMAIL PROTECTED] was complete. I'm pretty sure this isn't a LyX bug but a LaTeX limitation. It may be that \footnote needs to be \protected in this context, in which case it is a LyX bug. So you might try putting "\protect" in ERT immediately before the footnote, and see if that helps. If not, then it's a LaTeX issue. rh
Re: Issues with v1.5.2 on OS X
Adam Treverrow wrote: 2. The second issue relates to typing lag. I realise this issue has been reported previously for OS X. Typing is unbearably slow in notes, floats etc. I have instant preview turned off. Typing in standard text is variable, but in general too slow for me to use 1.5.2. I've been working with some large files, originally created in v1.3.7, but saved as new versions using 1.5.2. Adding text to an existing paragraph of standard text in these documents results in typing lag. The lag is greatest when text is added at or near the beginning of a paragraph. The typing lag does not occur when typing in a newly created paragraph - it emerges as the paragraph length increases. I can reproduce both aspects of this behaviour in new files created using 1.5.2. I still see this at times under Linux, too. Resizing the window usually helps. I intend to figure this out at some point fairly soon. For anyone who wants to have a go, what you need to do is put some timer code into LyXFunc.cpp and try to figure out where the slowness is coming from. This is the code: #include ... QTime timer; timer.start(); ...do stuff lyxerr << timer.restart() << std::endl; ...do more stuff lyxerr << timer.restart() << std::endl; ...etc Now look at the output and see what's taking so long, and then try to break that up a bit until you isolate exactly which function call is the problem. Then go into that function and do the same thing, etc. Most of the time here is spent recompiling Richard Richard
Re: footnote in caption
Richard Heck wrote: > Can someone file a bug report about this? The footnote-insert LFUN > should be disabled in floats if it doesn't work. It works if you put a minipage in the float. Jürgen
Re: Issues with v1.5.2 on OS X
On 10/24/07, Adam Treverrow <[EMAIL PROTECTED]> wrote: > I've struck two problems. > > 1. When quitting LyX and copying/pasting I get a screen message along > the lines of: > > Could not remove the temporary directory > /tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf2 > > This issue was reported recently here: > > http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59368.html > > with no solution that I can see. I've experienced the same problem. The > pop ups when copying and pasting are particularly annoying. I reported this and I still have the problem. My attempts to compile lyx 1.5.2 to find out what is wrong have so far been unsuccessful. It appears the code might be effectively locked into OSX 10.4. > 2. The second issue relates to typing lag. I see this also. Does anyone have experience of recently building an X version of lyx under OSX?
Re: footnote in caption
It works if you put a minipage in the float. What exactly do you mean by "put a minipage in the float", could you post an example file? Or to do you rather mean put the float in a minipage, whereas the footnote appears within this minipage instead of the regular page? Toby
Re: footnote in caption
Tobias Krause wrote: > What exactly do you mean by "put a minipage in the float", could you > post an example file? Like the attached. This probably doesn't look like you want it, but footnotes in floats are particularly tricky. Both the float and the footnote are floating objects, and this is simply too complex for LaTeX. Also cf. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ftncapt for some more workaorunds. Jürgen footnotefloat.lyx Description: application/lyx
Re: Issues with v1.5.2 on OS X
On Oct 24, 2007, at 6:25 AM, Adam Treverrow wrote: Hi all, I've been very happily using LyX 1.3.7 on a Mac G4 iBook (933 MHz PPC, 640 MB, OS X 10.3.9) for some time now - thanks to all the developers! I recently upgraded to v1.5.2 (PPC version). I never got around to using v1.4.x I've struck two problems. 1. When quitting LyX and copying/pasting I get a screen message along the lines of: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/ lyx_tmpbuf2 Console.app says: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/ lyx_tmpbuf1 Could not delete /private/tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf2. (boost::filesystem::basic_directory_iterator increment) Warning: Could not remove temporary directory This issue was reported recently here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59368.html with no solution that I can see. I've experienced the same problem. The pop ups when copying and pasting are particularly annoying. 2. The second issue relates to typing lag. I realise this issue has been reported previously for OS X. Typing is unbearably slow in notes, floats etc. I have instant preview turned off. Typing in standard text is variable, but in general too slow for me to use 1.5.2. I've been working with some large files, originally created in v1.3.7, but saved as new versions using 1.5.2. Adding text to an existing paragraph of standard text in these documents results in typing lag. The lag is greatest when text is added at or near the beginning of a paragraph. The typing lag does not occur when typing in a newly created paragraph - it emerges as the paragraph length increases. I can reproduce both aspects of this behaviour in new files created using 1.5.2. Any help is appreciated as I'd like to give 1.5.2 a go! It's faster if you turn preview on! pdv thanks AT
Re: footnote in caption
This probably doesn't look like you want it That's why I use the described way, although it's annoying to put the footnotetext by hand... Toby
Re: footnote in caption
Tobias Krause wrote: > That's why I use the described way, although it's annoying to put the > footnotetext by hand... and highly fragile. As soon as your layout changes and the float floats after the footnotetext, your document will be messed up. Jürgen
Re: footnote in caption
On Oct 24, 2007, at 7:59 PM, Tobias Krause wrote: It works if you put a minipage in the float. What exactly do you mean by "put a minipage in the float", could you post an example file? Or to do you rather mean put the float in a minipage, whereas the footnote appears within this minipage instead of the regular page? Toby Included is an example file (+graphic) For me this only works if you put a (possibly empty) short title in the caption. I also thought you needed package ccaption, but apparently this is not true. testfigurecaption.lyx Description: Binary data testfigure.pdf Description: Adobe PDF document
Re: How to nest enumerate environments in Theorems
H. Peter Gumm wrote: Hi LyXers, sorry for a perhaps silly question, but I was unable to solve it with the User Guide. In AMS-style, I need to enumerate items inside Example, Theorem, or Lemma environments I want them to look roughly as follows: Theorem (i) blabla (ii) blablu kjkjkjk oioioi oioio (iii) blubla oipoipoi ipoipoipoipoipoi The only way I was able to nest an enum environment inside a theorem is by putting in the Theorem then do an enum and increase its depth. Unfortunately, this produces the layout Theorem (i) blabla (ii) blablu (iii) blubla But I don't want - the empty line after "Theorem" - the exaggerated indentation Wat is the trick, or where can I read how to do it ? I don't think this is easy, since list environments automatically start a new paragraph. I've attached a fairly ugly kludge. You can fiddle with the lengths to taste. There should be a better way to do this, or at least a better way to define the length offsets (one that is less vulnerable to changes in font size), but whatever that might be is beyond my limited TeXpertise. /Paul PS: This is not to be considered an endorsement of your format. :-) thmenum.lyx Description: application/lyx
Re: subscript in superscript
Stacia Hartleben wrote: Hi guys, this is a really simple question and I'm probably just missing something, but I can't get subscripts to work within superscripts. I want to write N^log_b(a) but the underscore always shows up no matter what I do. Tips? How are you putting in the log? If you use \log, it should work fine. If you are using something like \textrm{log}, you need to cursor out of the textrm box before you hit the underscore (space won't get you out -- LyX will think the space is part of the text). Actually, it's hard for me _not_ to get the underscore to trigger a subscript, so this seems a bit strange. /Paul
Generating an index
Is there some way I can automate the generation of a Lyx index? Manually selecting all the entries (multiple times) can be tiresome and time-consuming... FN -- Frederick Noronha http://fn.goa-india.org Ph 0091-832-2409490 11866 downloadable, sharable hi-res photos http://www.flickr.com/photos/fn-goa/
Exporting to Rich Text Format with latex2rtf, issues and a fix
Over the past few days I've struggled to get LyX 1.5.2 on WinXP to recognize and use latex2rtf for Rich Text Format exports. Jurgen suggested this to someone and it was a tool I needed, so I gave it a shot. The process was beset by many troubles, and now that I finally have it working, I describe it here to help other users on WinXP that need a way of sharing documents with the underclass that use M$ products (hat tip to Paul). Jurgen helped me a LOT along the way. Ideally, one would simply: (1) install latex2rtf from sourceforge (win-gui download here - http://sourceforge.net/project/showfiles.php?group_id=22654) (2) add the latex2rtf folder (C:\l2r -- see below) to the Windows search path (see section 2.4 here - http://sourceforge.net/project/showfiles.php?group_id=22654) (3) open LyX, reconfigure, close, and restart and the converter for Latex (plain) -> Rich Text Format would be sorted out by LyX and a Rich Text Format option would be made available under File -> Export. Unfortunately, it ain't that easy. First off, the above strategy works fine if all you want to do is use the latex2rtf GUI (l2rshell.exe; the icon on the desktop calls this) to convert existing .tex files to .rtf files. In fact, you only need (1) and (2) above for that, and then you just export plain latex from LyX and run the conversion manually. Getting LyX to recognize the converter (latex2rt.exe) is the hard part, but it's nice to have LyX do all the work behind the scenes. The first issue is that you should simply avoid installing the program anywhere but C:\l2r. All of the defaults for the program assume that it is installed at this path. I installed to Program Files because I had not read section 2.4 here - http://sourceforge.net/project/showfiles.php?group_id=22654 - first. It explains how to adjust the three configuration files (more on these in a minute) to make latex2rtf work from any installation path, but it never worked for me, and I tried a lot of different things. No matter what I tried, running LyX from the command prompt showed that the error was that latex2rtf could not find its config directory (the cfg directory under the latex2rtf root directory). It always assumed that the root directory was C:\l2r despite the fact that all entries in the configuration files were adjusted to reflect "C:\Program Files\latex2rtf", where I installed it. So, make your life easy and install to C:\l2r. I never checked this with the latex2rtf folks, but the simple solution seems to be obvious. Next, you do need to add the latex2rtf folder to the Windows search path: a. Right-click My Computer and go to Properties. b. Advanced Tab -> Environment Variables -> System Variables -> Path, add "C:\l2r;" (no quotes) somewhere in the line. The next step varies depending on how you have LaTeX set up on your machine. I used the LyXWinInstaller and this presents a new wrinkle for latex2rtf. Those three configuration files (.bat files) are in the latex2rtf root and are L2R.BAT, L2RSEM.BAT, and L2RPREP.BAT. You'll need to edit them (use a good text editor; i.e., not Notepad). L2R and L2RSEM are almost identical, but notice that one of them (don't recall which, I changed it), on line 15, has the German windows settings line unremarked. The other one has the English windows settings unremarked. I changed them both to have the English settings unremarked (i.e., functional) and the German settings remarked (i.e., unfunctional). I didn't actually test whether this mattered, but it seemed prudent. The paths should all be fine if you installed to C:\l2r and you need do nothing more with these files. At this point, I tried reconfiguring LyX and it still failed to find the converter. L2RPREP comes in - this is a bit tougher. I ran this file from a command prompt to see that it set the paths correctly. As best I could tell, "which" always failed to find the Ghostscript, LaTeX, and ImageMagick files. So, I edited it to look as below (changes starting on line 8). Again, this applies for people that use LyXWinInstaller only. rem set folder containing Ghostscript executables here: %l2rpath%\which gswin32c >nul if errorlevel 1 SET PATH="C:\Program Files\LyX 1.5.2\etc\Ghostscript\bin";"C:\Program Files\LyX 1.5.2\etc\Ghostscript\lib";%PATH% rem set folder containing ImageMagick executables here: %l2rpath%\which identify >nul if errorlevel 1 SET PATH="C:\Program Files\LyX 1.5.2\etc\ImageMagick";%PATH% rem set folder containing LaTeX and dvips executables here: %l2rpath%\which latex >nul if errorlevel 1 SET PATH="C:\Program Files\MiKTeX 2.6\miktex\bin";%PATH% The final "set l2rpath=" line appears superfluous, but it doesn't stop things from working. I also added "C:\Program Files\LyX 1.5.2;" (no quotes) to the Windows search path. In my inexperienced mind this was to help "which" find the above files, but I also edited the L2RPREP before reconfiguring LyX, so these events are
Re: Generating an index
On Wednesday 24 October 2007 17:00, Frederick Noronha [फ़रेदरिक नोरोनया] wrote: > Is there some way I can automate the generation of a Lyx index? > Manually selecting all the entries (multiple times) can be tiresome > and time-consuming... FN The following answer to your question is my subjective opinion -- treat it as such. You could write a script to generate index entries, but the result would be a disservice to your readers. Having an index entry for every occurrence of a word, which is what would be produced by an index-entry-making script, would produce many irrelevent index entries, and drown the important entries in a sea of irrelevencies. Not only that, but in many cases you need to mark a range of pages as an index entry (using |( and |)), and that could not be produced with an index-entry-making script. As a result, index entries must be input by hand. It's the most boring, dirty, distasteful work an author does, but it's necessary to produce a product useful to the reader. Here's how I do it: 1) I write the LyX file out to text. 2) Using Vim, I put each word on its own line A: %s/\s\s*/\r/g 3) I run the resulting file through sort -u 4) I now have an alphabetized list of every word in the book. For each word, I think of all book relevent phrases that could be made with that word. I add such phrases to the list. If the word is not important, nor is it part of a relevent phrase, I delete it from the list. Generally speaking, I can delete all non upper case words 4 letters or less. That gets rid of a heck of a lot of stuff at once. 5) When finished with step 4, I have a list of every desired index item. Starting at the top, I go through the book and find all occurrences I wish to index, and mark them. The preceding took me about a day for an 80 page book. It's a horrible job, but if you self publish you've gotta do it. HTH SteveT Steve Litt Books written in LyX: Troubleshooting Techniques of the Successful Technologist Twenty Eight Tales of Troubleshooting Troubleshooting: Just the Facts
Re: Exporting to Rich Text Format with latex2rtf, issues and a fix
On Wed, Oct 24, 2007 at 05:26:19PM -0400, Dave Hewitt wrote: > Over the past few days I've struggled to get LyX 1.5.2 on WinXP to > recognize and use latex2rtf for Rich Text Format exports. Jurgen suggested > this to someone and it was a tool I needed, so I gave it a shot. The > process was beset by many troubles, and now that I finally have it working, > I describe it here to help other users on WinXP that need a way of sharing > documents with the underclass that use M$ products (hat tip to Paul). > Jurgen helped me a LOT along the way. > [...] Maybe you could add that to the wiki... Andre'
Re: Issues with v1.5.2 on OS X
On 25/10/2007, at 6:02 AM, Patrick De Visschere wrote: On Oct 24, 2007, at 6:25 AM, Adam Treverrow wrote: Hi all, I've been very happily using LyX 1.3.7 on a Mac G4 iBook (933 MHz PPC, 640 MB, OS X 10.3.9) for some time now - thanks to all the developers! I recently upgraded to v1.5.2 (PPC version). I never got around to using v1.4.x I've struck two problems. 1. When quitting LyX and copying/pasting I get a screen message along the lines of: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf2 Console.app says: Could not remove the temporary directory /tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf1 Could not delete /private/tmp/lyx_tmpdir7301LYxr4/lyx_tmpbuf2. (boost::filesystem::basic_directory_iterator increment) Warning: Could not remove temporary directory This issue was reported recently here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59368.html with no solution that I can see. I've experienced the same problem. The pop ups when copying and pasting are particularly annoying. 2. The second issue relates to typing lag. I realise this issue has been reported previously for OS X. Typing is unbearably slow in notes, floats etc. I have instant preview turned off. Typing in standard text is variable, but in general too slow for me to use 1.5.2. I've been working with some large files, originally created in v1.3.7, but saved as new versions using 1.5.2. Adding text to an existing paragraph of standard text in these documents results in typing lag. The lag is greatest when text is added at or near the beginning of a paragraph. The typing lag does not occur when typing in a newly created paragraph - it emerges as the paragraph length increases. I can reproduce both aspects of this behaviour in new files created using 1.5.2. Any help is appreciated as I'd like to give 1.5.2 a go! It's faster if you turn preview on! Yes, that certainly helps -thanks. Collapsing floats and notes also helps, but typing within an existing paragraph of text can still result in excessive lag, which is a problem when editing text. I didn't notice any improvement with Richard's suggestion to alter the window size. ta AT
Re: Exporting to Rich Text Format with latex2rtf, issues and a fix
Dave Hewitt writes: > Over the past few days I've struggled to get LyX 1.5.2 on WinXP to > recognize and use latex2rtf for Rich Text Format exports. Jurgen suggested > this to someone and it was a tool I needed, so I gave it a shot. The > process was beset by many troubles, and now that I finally have it working, > I describe it here to help other users on WinXP that need a way of sharing > documents with the underclass that use M$ products (hat tip to Paul). > Jurgen helped me a LOT along the way. The problem here is that the option -P for specifying the config directory to latex2rtf is broken on Windows. However, the RTFPATH variable works, so a simpler option is creating a latex2rtf.bat file as follows: @echo off set RTFPATH=C:/Program Files/latex2rtf/cfg latex2rt %* exit 0 You only need installing latex2rtf, starting LyX and reconfigure. Then, go to Tools->Preferences->Converters and modify the entry for the LaTeX to Rich Text Format converter changing latex2rt into latex2rtf. Note that this last step is only necessary because the configure.py script is braindead and simply checks for the existence of program or program.exe, but not for program.bat, or program.cmd, or ... (sigh). -- Enrico
RE: footnote in caption
Thanks for your replies, I visited the page Jürgen suggested, and perhaps this is a silly question but how do I add an optional parameter to a caption (to make it look different in the table of figures than in the actual caption text)? This would be somewhat of a workaround to have a footnote for the caption Thanks again Alex -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Juergen Spitzmueller Sent: Miércoles, 24 de Octubre de 2007 12:00 p.m. To: lyx-users@lists.lyx.org Subject: Re: footnote in caption Tobias Krause wrote: > What exactly do you mean by "put a minipage in the float", could you > post an example file? Like the attached. This probably doesn't look like you want it, but footnotes in floats are particularly tricky. Both the float and the footnote are floating objects, and this is simply too complex for LaTeX. Also cf. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ftncapt for some more workaorunds. Jürgen
Re: Re: exporting to rtf?
Thanks Paul, I did indeed do "reconfigure" and restarted LyX. LyX complains about the file with the following: The layout file requested by this document, apa.layout, is not usable. This is probably because a LaTeX class or style file required by it is not available. See the Customization documentation for more information. LyX will not be able to produce output. I confirm that I do have APA installed: $ kpsewhich apa.cls /usr/share/texmf-texlive/tex/latex/apa/apa.cls Perhaps apa.layout was included in the ubuntu 1.4.x package, but not in 1.5.1? Nothing about rtf in export either, I can see "Rich Text Format" in "Export" -> "Custom", but "OK" and "Apply" are ghosted. Actually both are ghosted for all the formates listed (See screenshot attached). Perhaps these issues are a packaging problem? If I knew how LyX was supposed to behave I could submit a bug report to ubuntu. Thanks for your efforts. B. Bogart Paul A. Rubin wrote: > B. Bogart > wrote: >> Hi again, >> >> So I've upgraded to ubuntu gutsy (lyx 1.5.1) since my last email, and am >> having a few troubles. >> >> #1. I've installed latex2rtf (1.9.16a-3ubuntu1) but it does not seem to >> get "registered" Export now only shows: >> >> CJK LyX 1.4.x (big5) >> CJK LyX 1.4.x (euc-jp) >> CJK LyX 1.4.x (euc-kr) >> LyX 1.3.x >> LyX 1.4.x >> Plain Text >> Custom... >> >> I have no idea what the CJK stuff is, > > Something to do with Chinese/Japanese/Korean, I think. > >> but HTML is missing (which was >> there in LyX 1.4.x) and no latex2rtf. > > Did you reconfigure and restart LyX after installing latex2rtf? >> >> #2. I had a 1.4.x document in article(APA) class, but now 1.5.1 says it >> can't find that class and it shows up as "unavailable" in the list. >> >> How can I get RTF export to work, and how can I get back my APA class? I >> don't know what would have changed, as far as I can tell I have the same >> texlive packages, just newer versions as before. > > Try 'kpsewhich apa.cls' in a terminal window to see if you still have > the APA class installed. If not, after installing it be sure to > reconfigure and restart LyX. > > /Paul > > <>
article(APA) does not work in 1.5.x as it did in 1.4.x WAS exporting to rtf?
Hi all, Apologies for my last message. Turns out indeed RTF export (and all the other explort types) are working, and it was the fact that the file I was using to test was the one using the APA class (so no export was possible). So I reiterate that I was able to use "article(APA)" in 1.4.x, but that it is not working in 1.5.x. I did not create my own apa.layout, I was just able to select it in the document settings. Thanks for your patience. B. Bogart Paul A. Rubin wrote: > B. Bogart > wrote: >> Hi again, >> >> So I've upgraded to ubuntu gutsy (lyx 1.5.1) since my last email, and am >> having a few troubles. >> >> #1. I've installed latex2rtf (1.9.16a-3ubuntu1) but it does not seem to >> get "registered" Export now only shows: >> >> CJK LyX 1.4.x (big5) >> CJK LyX 1.4.x (euc-jp) >> CJK LyX 1.4.x (euc-kr) >> LyX 1.3.x >> LyX 1.4.x >> Plain Text >> Custom... >> >> I have no idea what the CJK stuff is, > > Something to do with Chinese/Japanese/Korean, I think. > >> but HTML is missing (which was >> there in LyX 1.4.x) and no latex2rtf. > > Did you reconfigure and restart LyX after installing latex2rtf? >> >> #2. I had a 1.4.x document in article(APA) class, but now 1.5.1 says it >> can't find that class and it shows up as "unavailable" in the list. >> >> How can I get RTF export to work, and how can I get back my APA class? I >> don't know what would have changed, as far as I can tell I have the same >> texlive packages, just newer versions as before. > > Try 'kpsewhich apa.cls' in a terminal window to see if you still have > the APA class installed. If not, after installing it be sure to > reconfigure and restart LyX. > > /Paul > >