Re: declare destination directory for converted files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Lagemann wrote: Hello all, I'm trying to customize the conversion to html via the tools-preferences dialog but I can't seem to find anything about how to control where the output is written to (especially which directory it is written to). I recognize the variables $$i and $$o but they only seem to refer to the filenames without their absolute or relative path. The effect is that if I call my own bash script from within LyX I get all resulting files written into the tmp directory. Ok, I found out that this is generally the case and that the copying of generated files after conversion is done by a separate script which can also be customized from the Tools-Preferences dialogue. The reason why my files were not copied from the tmp directory to the working directory was that my script put the resulting file into a subdirectory and therefore the copy script did not find the newly generated files. So the solution for my particular problem was to make my script put the files into the tmp directory(which is the working directory(accessible via pwd in a Linux shell) when the script is executed. However some questions remain which I think are of general interest for those who like to customize Lyx to their needs. * Are there any other built in variables than $$i,$$o,$$s? * Is there any way to change their value? * Is there any way to change the name of the subdirectory where generated files are copied to? * Is this going to be documented or is it regarded internal or subject to frequent change? Regards, Andreas Lagemann -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHFG1XNfV8qlW7iaERAspDAKCC9XD3OogVX6AWM2DEvF/XZ8tq9ACffZOf Ip0lNQpZMxfwxkCaZAVvCP8= =P8v0 -END PGP SIGNATURE-
Re: Toggle between documents
Jean-Marc Lasgouttes wrote: Nicolás [EMAIL PROTECTED] writes: Thanks a lot for the answer. Now I have a second quetion. Could I replace Ctrl-PageUp/Down with Alt-TAB? Well, Alt-tab is hijacked by windows already. JMarc Sorry, I meant Ctrl-Tab. I have seen now that I may configure switching between documents by modifying the bind file. I have tried to assign C-Tab to buffer-next, but it does not work. Actually, by default, if I press C-Tab I get a command disabled message. Could someone explain me what this means? By the way, I have seen that the standard cua.bind file includes three different bindings for buffer-next! Cheers, Nicolás
lyx 1.5.2 compilation problems
Javid Atai Mon, 15 Oct 2007 16:26:43 -0700 Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: ... snip ... ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:33: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete typemake[7]: *** [GuiApplication.lo] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[7]: Leaving directory There is a similar error reported just now for Mac OSX in the lyx- devel list and (I believe) also for Sun. I have not experienced this with LyX1.5.2. However I am experiencing very similar failures (with similar error types and related to .lo- files) with LyX1.6 trunk at the moment on the same configuration for which 1.5.2 compiles. /Anders
Re: Using \fbox as an environment? SOLVED
On Saturday 13 October 2007 05:27, Steve Litt wrote: Hi all, The documented way to use \fbox is like this: \fbox{this is my text} I'd like to do something like this: \begin{fbox}this is my text\end{fbox} However, doing that draws a tiny box around the first character. Anyone know a way to turn \fbox into an environment, or an environment equivalent for \fbox, or a way to put a border around a minipage? Thanks SteveT Hi all, I found the answer in the Fancybox documentation (fancybox.doc). Search for the string: since the former doesn't Look above and below that string. Here's their solution: \newenvironment{fminipage}% {\begin{Sbox}\begin{minipage}}% {\end{minipage}\end{Sbox}\fbox{\TheSbox}} \begin{document} \begin{fminipage}{2in} Since the former doesn't use braces to delimit the contents of the box, $\ldots$ \end{fminipage} Pretty cool, huh? SteveT Steve Litt Books written in LyX: Troubleshooting Techniques of the Successful Technologist Twenty Eight Tales of Troubleshooting Troubleshooting: Just the Facts
Re: What's the problem with encoding?
On Friday 12 October 2007 00:02:00 Armando Duarte Senra Martins wrote: Hello! Olá, I am trying to get through with Latex using Lyx to type a document in portuguese. I had a document previously typed with a WYSIWYG. When I imported it to Lyx lots af characters were lost. So I had to do find replace to restore de accented characters. I tried many options: switched betweenn \usepackage[iso-8859-1]{oberdiek} \usepackage[latin1]{inputenc} \usepackage[utf-8]{inputenc} How did you import the document? I even tried to change the setting s of the document (changing language to portuguese and encondint to UTF-8) In every case I ended up with the same message (latin1.sty not found) I have tried to do the same with another processor the result was the same. I have MiKTeX installed (Windows XP). Thanks for your help. Do you have a small document that shows this problem? If necessary you can send me that document privately. Armando Duarte Senra Martins Universidade de Évora Departamento de Linguística e Literaturas Ap. 94 7002-554 ÉVORA -- José Abílio
Re: Toggle between documents
Nicolás [EMAIL PROTECTED] writes: Jean-Marc Lasgouttes wrote: Nicolás [EMAIL PROTECTED] writes: Thanks a lot for the answer. Now I have a second quetion. Could I replace Ctrl-PageUp/Down with Alt-TAB? Well, Alt-tab is hijacked by windows already. Sorry, I meant Ctrl-Tab. Actually, it is already the bound to buffer-next in cua.bind! Actually, by default, if I press C-Tab I get a command disabled message. Could someone explain me what this means? Do you have several documents loaded? By the way, I have seen that the standard cua.bind file includes three different bindings for buffer-next! Yes, including the one you want. JMarc
Re: lyx 1.5.2 compilation problems
Javid Atai [EMAIL PROTECTED] writes: Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: Could you try the following patch? JMarc svndiff src/frontends/qt4/ Index: src/frontends/qt4/GuiApplication.cpp === --- src/frontends/qt4/GuiApplication.cpp (révision 20971) +++ src/frontends/qt4/GuiApplication.cpp (copie de travail) @@ -92,6 +92,22 @@ namespace frontend { GuiApplication * guiApp; + +// Mac specific stuff goes here... + +class MenuTranslator : public QTranslator { +public: + virtual ~MenuTranslator() {}; + virtual QString translate(const char * context, + const char * sourceText, + const char * comment = 0) const; +}; + +/// +// You can find more platform specific stuff +// at the end of this file... +/// + GuiApplication::~GuiApplication() { @@ -373,15 +389,6 @@ bool GuiApplication::x11EventFilter(XEve // Mac specific stuff goes here... -class MenuTranslator : public QTranslator { -public: - virtual ~MenuTranslator() {}; - virtual QString translate(const char * context, - const char * sourceText, - const char * comment = 0) const; -}; - - QString MenuTranslator::translate(const char * /*context*/, const char * sourceText, const char *) const
Re: For Lyx users, a problem in sharing a Lyx file
Robert Orr wrote: I used to try going into the file with the text editor and changing the lyxformat tag so that the file matched what version of LyX I was using.That sometimes solved the program. That may seem to work, but it is a dangerous game to play. When LyX reads a file, it doesn't really expect that the lyxformat tag doesn't match content. So any mismatching content might put LyX in a strange internal state, which may manifest itself later as strange crashes or even strange stuff written when you eventually save the file. LyX has very little protection against such problems. That is actually what the lyxformat tag is for - it prevents LyX from trying to read 'dangerous stuff'. Helge Hafting
Re: using lyx as a front end
Dov Kruger wrote: I'd like to enter an equation in lyx and have my code process the equation. In general, this question might be more appropriate for the developer forum, but I noticed that the converters may have hooks to get at the document. Is there any user-configurable way to get a piece of a document to a converter? If not, where is the appropriate forum to go? Well, try the developer forum. LyX itself is the only thing I know that is capable of getting at parts of the document. The various converters gets whole files that LyX exports. I think LyX has some mechanisms internally, for getting parts of code. view-view source can show parts of the document in latex format, for example. And of course cutpaste works with parts. The existing computer algebra setup is already capable of sending formulas to external software and get something back. Maybe you can set your program up as another computer algebra system for lyx to use? I think you need to compile LyX to do this though. Helge Hafting
Re: Lyx 1.5.1 and LyX 1.5.2 Spellchecker Could not be started
Marc Driftmeyer wrote: This is where an architecture package management by Debian eliminates much of one's headache. The dpkg system doesn't throw stuff here and there. Even more important, dpkg actually keeps track of every little file it installs. And it never lets different packages mess with the same file. Therefore, uninstalls are clean and easy - even 3 years later. Helge Hafting
Re: lyx 1.5.2 compilation problems
Hi, I solved the problem by configuring lyx with extra libraries and includes, i.e. ./configure --prefix=/usr/local --with-extra-lib=/usr/local/lib --with-extra-inc=/usr/local/include --with-qt4-dir=/usr/local/Qt4 It seems that this problem occurs only for RH9. In my laptop which runs Fedora core 4, lyx-1.5.2 can be compiled successfully without specifying the extra libs and includes. Javid Atai Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: ... snip ... ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:33: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete typemake[7]: *** [GuiApplication.lo] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[7]: Leaving directory
formatting an integral or limit
I only know how to format a limit using a subscript, which puts the condition below and to the right of the limit. Is there any way to put it underneath? ie: lim_x \tends \infinity
Re: lyx 1.5.2 compilation problems
Javid Atai [EMAIL PROTECTED] writes: Hi, I solved the problem by configuring lyx with extra libraries and includes, i.e. ./configure --prefix=/usr/local --with-extra-lib=/usr/local/lib --with-extra-inc=/usr/local/include --with-qt4-dir=/usr/local/Qt4 This is very weird... JMarc
itemize and enumerate in Spanish language
The style 'spanish' for babel sets up certain values overwriting the defaults and preventing customized bullets. The behavior of the lists itemize and enumerate is special to labeling the items. With the last version of 'spanish' is possible to change all that (and more) using options and commands. I have writed a small document describing the options and commands availables in 'spanish' for customizing the label bullets, with some examples. The LyX document is in Spanish, obviously, and is attached. Regards Ignacio babel-spanish.lyx Description: application/lyx
Re: formatting an integral or limit
Dov Kruger wrote: I only know how to format a limit using a subscript, which puts the condition below and to the right of the limit. Is there any way to put it underneath? ie: lim_x \tends \infinity In a displayed math environment, the condition will go under the lim symbol. If you want to do that within an inline math environment, type \displaystyle in the math inset, then type the limit stuff inside the blue box LyX displays. /Paul
Re: itemize and enumerate in Spanish language
You should put this on the Wiki, although I do not know the user and password :-( Ignacio García wrote: The style 'spanish' for babel sets up certain values overwriting the defaults and preventing customized bullets. The behavior of the lists itemize and enumerate is special to labeling the items. With the last version of 'spanish' is possible to change all that (and more) using options and commands. I have writed a small document describing the options and commands availables in 'spanish' for customizing the label bullets, with some examples. The LyX document is in Spanish, obviously, and is attached. Regards Ignacio
Re: LyXWinInstaller 1.5.2 error, Removing old version
For the record, I left the User Preferences intact (unchecked that option in the uninstaller), and the installation of 1.5.2 by the small LyXWinInstaller went wonderfully. Back up and running... Dave Hewitt wrote: (Uwe, I'm posting to the list because I thought others might be curious as well.) I used Uwe's LyXWinInstaller Update to upgrade to 1.5.2 on WinXP, but encountered the advertised problem with ImageMagick. Uwe indicated (to the list as well, I believe) that all we need to do is uninstall LyX 1.5.1 and then use his small installer for 1.5.2 to get ImageMagick back and working properly. When I run the uninstall program I get a window that asks whether I want to remove the LyX User Preferences as well (the LyX program is grayed out b/c you can't opt not to uninstall that, obviously). Does anyone know whether I need to remove the User Preferences in order for the 1.5.2 install to work properly (i.e., fix ImageMagick)? I don't really know what's included in the Preferences, but I made some changes to defaults and would prefer not to lose that if I don't have to. Thanks, Dave Hewitt Nothing in the user directory relates to the broken IM path in the registry, so you should be able to leave the user preferences intact and just uninstall the program. It's certainly worth trying that first. You can always uninstall again (nuking the preferences) if it comes to that. /Paul
exporting to rtf?
Hello all, Is there a way I can export my LyX document as an RTF including footnotes, section references, images and bibliography? I tried exporting as HTML, where most stuff works but not the bibliography. I suppose I would need to manually convert my PDF figures to png? Thanks, B. Bogart
Re: LyX1.5.2: Keyboard problem
Nicolás wrote: Hi! In previous versions of LyX I could use (in Windows) (Alt gr + ´) + o in order to get an accented o: ó. In LyX 1.5.2 (and I think also in 1.5.1) this does not work. Is this a bug or do I have to configure something? Thanks! Cheers, Nicolás I have no idea how the mechanism you describe used to work, but here's a long shot: try turning off the Right-to-left language support option in the preferences, and see if that makes a difference. If it does, please let us know! Dov
Re: table settings and setting border does all or nothing
On Mon, 15 Oct 2007, Paul A. Rubin wrote: Jeremy C. Reed wrote: On first row, using the Table Settings dialog (in lyx 1.5.2), the top border selection is for entire row. I can't get it to work for a single cell. Anyone else have that problem? SOP for LaTeX. If you want to customize borders for individual cells, declare each such cell to be multicolumn (where in this case multi = 1). Multicolumn cells get their own personal borders. Thanks. That worked. Is it standard for not being able to align text in a cell vertically? My capitalized letters are touching the top of the cell border -- but their is a big whitespace gap below each character. Why not centered? The Settings menu tool tip popup says for fixed width. Jeremy C. Reed
Re: LyX 1.5.2.'s fuzzy screen in Mac + wrong path to Aspell
On Oct 15, 2007, at 3:49 PM, Abdelrazak Younes wrote: Bennett Helm wrote: On Oct 15, 2007, at 12:08 PM, Abdelrazak Younes wrote: Margarida Truninger wrote: Ufff...so one's down! Finally met Mr Spellchecker, lovely guy!:) About the fuzzy screen, no worries, I'm back in 1.5.1 which is already too good to be true! the Hum, are you talking about bad rendering? It's perhaps the same problem as the one reported by Stefan on the devel list. Bennett, perhaps you could provide a package with the pixmap cache disabled (in qt4/GuiPainter.cpp) for those users that don't need the speed boost? If I'm remembering correctly, people complaining about fuzzy screens have all been on PPC Mac. In the past I've had troubles cross-compiling for PPC (which is why Anders has done it for me), but I'll try it and see what problems might crop up. (The other catch is that PPC users are more likely the ones to need the speed boost) Too bad! In any case, GuiPainter.cpp is only in trunk; what's the equivalent file in 1.5.2? (Or am I blind?) No you aren't, it's QLPainter.cpp sorry. Let's see if that solve the problem anyway. It does add sub-pixel antialiasing, but the font size is still bigger. Bennett
Backup failure w/ LyX 1.5.2
Whenever I try to save LyX documents (File - Save or Ctrl-S), I get a Backup Failure notification (image attached). After I hit OK, the Save option in the File menu is grayed out, indicating that the file has been saved. When I reopen the file, it looks fine, so the file itself is saving OK. Apparently LyX is (was, below) only having a problem accessing the backup directory. In Tools - Preferences - Paths, my backup directory is given as C:\Program Files\LyX 1.5.2\backup, but no directory called 'backup' was created with the installation. I created a new folder in that location and named it 'backup', and (not surprisingly) everything now works fine. I'm just curious as to whether this is the most appropriate solution? If so, why was there no 'backup' directory created in the first place when LyX defaults to that path for backups? And, no files of any type are appearing in this new backup directory I created, so where are these backups going (i.e., what is the purpose of this folder)? Finally, are any of the other paths in the Preferences likely to be affected in this way? Dave Hewitt dhewitt[at]vims.eduattachment: backupfailure.gif
Re: table settings and setting border does all or nothing
Jeremy C. Reed wrote: Thanks. That worked. Is it standard for not being able to align text in a cell vertically? My capitalized letters are touching the top of the cell border -- but their is a big whitespace gap below each character. Is this in the GUI or when you generate a DVI or PDF? (The GUI gives only an approximate representation of what the final document will look like.) If you're talking about the end product, do any of the letters have descenders? What looks like a big gap below might not look so big with a descender taking root in it. /Paul
Re: Backup failure w/ LyX 1.5.2
Dave Hewitt wrote: Whenever I try to save LyX documents (File - Save or Ctrl-S), I get a Backup Failure notification (image attached). After I hit OK, the Save option in the File menu is grayed out, indicating that the file has been saved. When I reopen the file, it looks fine, so the file itself is saving OK. Apparently LyX is (was, below) only having a problem accessing the backup directory. In Tools - Preferences - Paths, my backup directory is given as C:\Program Files\LyX 1.5.2\backup, but no directory called 'backup' was created with the installation. I created a new folder in that location and named it 'backup', and (not surprisingly) everything now works fine. I'm just curious as to whether this is the most appropriate solution? Matter of taste, I guess. I don't rely on LyX for backups (I do that outside LyX). If so, why was there no 'backup' directory created in the first place when LyX defaults to that path for backups? A better question is why LyX had that path. My copy has the backup path blank, but then it inherited settings from earlier versions rather than being a first install. And, no files of any type are appearing in this new backup directory I created, so where are these backups going (i.e., what is the purpose of this folder)? Maybe there aren't any. Do you have Tools - Preferences... - Look and feel - User interface - Backup documents turned on? Finally, are any of the other paths in the Preferences likely to be affected in this way? Don't have an answer to that one, but I suspect it's unlikely. /Paul
Re: table settings and setting border does all or nothing
On Tue, 16 Oct 2007, Paul A. Rubin wrote: Is it standard for not being able to align text in a cell vertically? My capitalized letters are touching the top of the cell border -- but their is a big whitespace gap below each character. Is this in the GUI or when you generate a DVI or PDF? (The GUI gives only an approximate representation of what the final document will look like.) If you're talking about the end product, do any of the letters have descenders? What looks like a big gap below might not look so big with a descender taking root in it. In the generated output. Not all the rows have a descender (a g). Every row has the characters jammed up to the top. All the rows appear to be the same height. And even the bottom of the g doesn't touch the bottom of the row (the border), but the tops of letters like TTL and Fl touch the top of row (top border). Looks bad. I can provide PDF. (Just noticed that my upgrade from 1.4.x to 1.5.2 lost my PDF export and view using just latex to create the PDF.) Jeremy C. Reed
Re: exporting to rtf?
B. Bogart wrote: Is there a way I can export my LyX document as an RTF including footnotes, section references, images and bibliography? I tried exporting as HTML, where most stuff works but not the bibliography. I suppose I would need to manually convert my PDF figures to png? You can try latex2rtf (LyX will recognize it when it is installed and provide an Export-RTF option). It's not perfect and the quality of the result depends on the content, but the new version that was released some days ago is not bad http://latex2rtf.sourceforge.net/ Jürgen
Re: Backup failure w/ LyX 1.5.2
Dave Hewitt wrote: Whenever I try to save LyX documents (File - Save or Ctrl-S), I get a Backup Failure notification (image attached). After I hit OK, the Save option in the File menu is grayed out, indicating that the file has been saved. When I reopen the file, it looks fine, so the file itself is saving OK. Apparently LyX is (was, below) only having a problem accessing the backup directory. In Tools - Preferences - Paths, my backup directory is given as C:\Program Files\LyX 1.5.2\backup, but no directory called 'backup' was created with the installation. I created a new folder in that location and named it 'backup', and (not surprisingly) everything now works fine. I'm just curious as to whether this is the most appropriate solution? Matter of taste, I guess. I don't rely on LyX for backups (I do that outside LyX). If so, why was there no 'backup' directory created in the first place when LyX defaults to that path for backups? A better question is why LyX had that path. My copy has the backup path blank, but then it inherited settings from earlier versions rather than being a first install. Maybe since I left User Preferences intact when I updated to LyX 1.5.2, there was a default to include that path in LyX 1.5.1 (the first version I used). And, no files of any type are appearing in this new backup directory I created, so where are these backups going (i.e., what is the purpose of this folder)? Maybe there aren't any. Do you have Tools - Preferences... - Look and feel - User interface - Backup documents turned on? Yes, and I recall that files with little tildes at the end (backups, presumably) appeared in the same directory as the file was located when I was using LyX 1.5.1. There would almost always be a file with the same name and an added tilde each place I had a LyX document. Finally, are any of the other paths in the Preferences likely to be affected in this way? Don't have an answer to that one, but I suspect it's unlikely. /Paul Dave Hewitt
where is ExportFormats documented?
I am trying to figure out why after my upgrade from 1.4.x to 1.5.2 I lost my Export menu option and View choice for PDF (pdflatex). It appears to be fine under my preferences. I do have dvipdfm and ps2pdf but I don't want to use DVI or postscript first. I see my user interface (stdmenus.inc) has ExportFormats. Where is the documented? Where is that defined? I don't see in docs for 1.5.2. I have this converter definition: LaTeX (pdflatex) - PDF (pdflatex) Converter: pdflatext $$i Extra flag: latex I have thjis File format: PDF (pdflatex) Format: pdf2 (I don't know that) Shortcut: F Viewer: xpdf GUI name: PDF (pdflatex) Extension: pdf Editor: **nothing there** Document format is not checked. Vector graphics format is checked. My log has: /home/reed/.lyx/configure.log:checking for the pdflatex program... /home/reed/.lyx/configure.log:+checking for pdflatex... yes My /home/reed/.lyx/lyxrc.defaults has: \Format pdflatex texLaTeX (pdflatex)gvim document ... \Format pdf2 pdfPDF (pdflatex)F xpdf document,vector ... \converter pdflatex pdf2 pdflatex $$i latex And ~/.lyx/preferences has: \format pdf2 pdf PDF (pdflatex) F xpdf vector Jeremy C. Reed
Re: where is ExportFormats documented?
On Oct 16, 2007, at 5:42 PM, Jeremy C. Reed wrote: I am trying to figure out why after my upgrade from 1.4.x to 1.5.2 I lost my Export menu option and View choice for PDF (pdflatex). ... I have thjis File format: PDF (pdflatex) Format: pdf2 (I don't know that) Shortcut: F Viewer: xpdf GUI name: PDF (pdflatex) Extension: pdf Editor: **nothing there** Document format is not checked. Vector graphics format is checked. You need to check the document format option. Bennett
Re: Backup failure w/ LyX 1.5.2
Dave Hewitt wrote: And, no files of any type are appearing in this new backup directory I created, so where are these backups going (i.e., what is the purpose of this folder)? Maybe there aren't any. Do you have Tools - Preferences... - Look and feel - User interface - Backup documents turned on? Yes, and I recall that files with little tildes at the end (backups, presumably) appeared in the same directory as the file was located when I was using LyX 1.5.1. There would almost always be a file with the same name and an added tilde each place I had a LyX document. That's what I get ... sometimes ... (I have timed backups deselected, but apparently there are untimed backups triggered by alignment of the planets or something). There are also #filename# copies that get dumped under certain circumstances (less than graceful exit from LyX?), again in the source directory. So you're saying you have timed backups set and, even with a valid backup path and having the document open past the time limit, you're not getting a backup file? /Paul
Re: table settings and setting border does all or nothing
Jeremy C. Reed wrote: In the generated output. Not all the rows have a descender (a g). Every row has the characters jammed up to the top. All the rows appear to be the same height. And even the bottom of the g doesn't touch the bottom of the row (the border), but the tops of letters like TTL and Fl touch the top of row (top border). Looks bad. I can provide PDF. I think posting a small example (both LyX and PDF) would be a good idea. /Paul
Re: where is ExportFormats documented?
On Tue, 16 Oct 2007, Bennett Helm wrote: On Oct 16, 2007, at 5:42 PM, Jeremy C. Reed wrote: I am trying to figure out why after my upgrade from 1.4.x to 1.5.2 I lost my Export menu option and View choice for PDF (pdflatex). ... I have thjis File format: PDF (pdflatex) Format: pdf2 (I don't know that) Shortcut: F Viewer: xpdf GUI name: PDF (pdflatex) Extension: pdf Editor: **nothing there** Document format is not checked. Vector graphics format is checked. You need to check the document format option. Thanks. I now see that documented in 3.5.1 Formats. I was looking in the wrong place and reading about the user interface (3.4). This in the Customizations documentation. Now I see my interface was already using pdflatex for: Item View PDF (pdflatex) buffer-view pdf2 Item Update PDF (pdflatex) buffer-update pdf2 (in my /usr/pkg/share/lyx/ui/stdtoolbars.inc) but just wasn't in my View or Export menus. Thanks again Jeremy C. Reed
Re: table settings and setting border does all or nothing
On Tue, 16 Oct 2007, Paul A. Rubin wrote: In the generated output. Not all the rows have a descender (a g). Every row has the characters jammed up to the top. All the rows appear to be the same height. And even the bottom of the g doesn't touch the bottom of the row (the border), but the tops of letters like TTL and Fl touch the top of row (top border). Looks bad. I can provide PDF. I think posting a small example (both LyX and PDF) would be a good idea. Attached. Jeremy C. Reed#LyX 1.5.2 created this file. For more info see http://www.lyx.org/ \lyxformat 276 \begin_document \begin_header \textclass article \language english \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize default \papersize default \use_geometry false \use_amsmath 1 \use_esint 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \author \end_header \begin_body \begin_layout Standard \begin_inset Tabular lyxtabular version=3 rows=1 columns=1 features column alignment=center valignment=top leftline=true rightline=true width=0 row topline=true bottomline=true cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \begin_layout Standard AbCdEfghijKl \end_layout \end_inset /cell /row /lyxtabular \end_inset \end_layout \begin_layout Standard Another table: \end_layout \begin_layout Standard \begin_inset Tabular lyxtabular version=3 rows=2 columns=1 features column alignment=center valignment=top leftline=true rightline=true width=0 row topline=true bottomline=true cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \begin_layout Standard TTL \end_layout \end_inset /cell /row row topline=true bottomline=true cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \begin_layout Standard padding \end_layout \end_inset /cell /row /lyxtabular \end_inset \end_layout \end_body \end_document newfile7.pdf Description: Adobe PDF document
Re: Backup failure w/ LyX 1.5.2
Marc, the directory is set to: C:\Program Files\LyX 1.5.2\backup (Recall that I created this folder to make it available and stop the error messages on every save instance.) Dave Hewitt wrote: And, no files of any type are appearing in this new backup directory I created, so where are these backups going (i.e., what is the purpose of this folder)? Maybe there aren't any. Do you have Tools - Preferences... - Look and feel - User interface - Backup documents turned on? Yes, and I recall that files with little tildes at the end (backups, presumably) appeared in the same directory as the file was located when I was using LyX 1.5.1. There would almost always be a file with the same name and an added tilde each place I had a LyX document. That's what I get ... sometimes ... (I have timed backups deselected, but apparently there are untimed backups triggered by alignment of the planets or something). There are also #filename# copies that get dumped under certain circumstances (less than graceful exit from LyX?), again in the source directory. Marc indicated that the files with tildes are the just-prior saved version (an at-the-time-of-last-opening backup, if you will). So those aren't the backups. But, like you Paul, I get the #...# files in the same directory as I'm working in. I get those files regularly when LyX has a document open, like a backup. So I'm confused about what those are (they're not going to the 'backup' directory, if they are backups). So you're saying you have timed backups set and, even with a valid backup path and having the document open past the time limit, you're not getting a backup file? Correct. Could this have something to do with the odd path that was given in the error message? LyX thought I wanted backups in 'backup' directory (which didn't exist), but the error message says: Cannot create backup file: C:/Program Files/LyX 1.5.2/backup/C:!Documents and Settings!dhewitt!Desktop!newfile1.lyx~. Please check... (It seems odd that this is an error for backup creation, and the file it wants to make has a tilde on it, which I've been told is not a backup.) /Paul Dave Hewitt
Re: Backup failure w/ LyX 1.5.2
Do either of you have RCS installed and running on your systems? http://www.gnu.org/software/rcs This is the RCS system accessible via LyX under File-Version Control The system doesn't have a GUI to work within. It's command line driven. I'm using LyX on Debian Linux Sid and OS X 10.4.10 - Marc On Oct 16, 2007, at 3:40 PM, Dave Hewitt wrote: Marc, the directory is set to: C:\Program Files\LyX 1.5.2\backup (Recall that I created this folder to make it available and stop the error messages on every save instance.) Dave Hewitt wrote: And, no files of any type are appearing in this new backup directory I created, so where are these backups going (i.e., what is the purpose of this folder)? Maybe there aren't any. Do you have Tools - Preferences... - Look and feel - User interface - Backup documents turned on? Yes, and I recall that files with little tildes at the end (backups, presumably) appeared in the same directory as the file was located when I was using LyX 1.5.1. There would almost always be a file with the same name and an added tilde each place I had a LyX document. That's what I get ... sometimes ... (I have timed backups deselected, but apparently there are untimed backups triggered by alignment of the planets or something). There are also #filename# copies that get dumped under certain circumstances (less than graceful exit from LyX?), again in the source directory. Marc indicated that the files with tildes are the just-prior saved version (an at-the-time-of-last-opening backup, if you will). So those aren't the backups. But, like you Paul, I get the #...# files in the same directory as I'm working in. I get those files regularly when LyX has a document open, like a backup. So I'm confused about what those are (they're not going to the 'backup' directory, if they are backups). So you're saying you have timed backups set and, even with a valid backup path and having the document open past the time limit, you're not getting a backup file? Correct. Could this have something to do with the odd path that was given in the error message? LyX thought I wanted backups in 'backup' directory (which didn't exist), but the error message says: Cannot create backup file: C:/Program Files/LyX 1.5.2/backup/C:! Documents and Settings!dhewitt!Desktop!newfile1.lyx~. Please check... (It seems odd that this is an error for backup creation, and the file it wants to make has a tilde on it, which I've been told is not a backup.) /Paul Dave Hewitt
Re: table settings and setting border does all or nothing
Jeremy C. Reed writes: On Tue, 16 Oct 2007, Paul A. Rubin wrote: Is it standard for not being able to align text in a cell vertically? My capitalized letters are touching the top of the cell border -- but their is a big whitespace gap below each character. Is this in the GUI or when you generate a DVI or PDF? (The GUI gives only an approximate representation of what the final document will look like.) If you're talking about the end product, do any of the letters have descenders? What looks like a big gap below might not look so big with a descender taking root in it. In the generated output. Not all the rows have a descender (a g). Every row has the characters jammed up to the top. All the rows appear to be the same height. And even the bottom of the g doesn't touch the bottom of the row (the border), but the tops of letters like TTL and Fl touch the top of row (top border). Looks bad. I can provide PDF. LaTeX sizes the height of a row in table based on the height and depth of the font used, irrespectively of the fact that you have letters with ascenders or descenders. So the space above a T is the same as the space below a p such that in case of TTL the space below is indeed larger. However, you can control height and depth through a parameter. Indeed, LaTeX multiplies height and depth of a row in a table by \arraystretch. Now, given that the height is generally bigger than the depth, for a sufficiently high value of \arraystretch you will get a larger space above than below. I think that if you put in the preamble the following line: \renewcommand{\arraystretch}{1.5} you will get what you want. In case you want a finer control, you could try using the following in the preamble: \newbox\mystrutbox \setbox\mystrutbox\hbox{% [EMAIL PROTECTED]@[EMAIL PROTECTED]@} [EMAIL PROTECTED] Keep in mind that LaTeX uses .7 instead of .85 above, and that if you follow this second path, you will lose the ability to control the height of a table row through the \arraystretch parameter. HTH -- Enrico
Re: Backup failure w/ LyX 1.5.2
Marc Driftmeyer wrote: Do either of you have RCS installed and running on your systems? Not I. /Paul
Re: Backup failure w/ LyX 1.5.2
Dave Hewitt wrote: Marc indicated that the files with tildes are the just-prior saved version (an at-the-time-of-last-opening backup, if you will). So those aren't the backups. But, like you Paul, I get the #...# files in the same directory as I'm working in. I get those files regularly when LyX has a document open, like a backup. So I'm confused about what those are (they're not going to the 'backup' directory, if they are backups). Perhaps they're for File - Revert? So you're saying you have timed backups set and, even with a valid backup path and having the document open past the time limit, you're not getting a backup file? Correct. Could this have something to do with the odd path that was given in the error message? LyX thought I wanted backups in 'backup' directory (which didn't exist), but the error message says: Cannot create backup file: C:/Program Files/LyX 1.5.2/backup/C:!Documents and Settings!dhewitt!Desktop!newfile1.lyx~. Please check... (It seems odd that this is an error for backup creation, and the file it wants to make has a tilde on it, which I've been told is not a backup.) I'm guessing, since I don't do backups myself, but I suspect LyX wants to modify the file name -- lest you back up to the document folder and try to use the same name. So the tilde decoration doesn't surprise me. As to why you're still not getting backups, that's another question. I take it that, after creating C:\Program Files\LyX 1.5.2\backup you still have that set as the backup path? Do you still get the same error message, or do backups fail silently? /Paul /Paul Dave Hewitt
Re: table settings and setting border does all or nothing
another option that i've used for adding custom white space is to create a new command in the preamble using \rule. this is an extension of the suggestion by Enrico and you can fine tune the extra space as needed. \newcommand\T{\rule{0pt}{2.6ex}} \newcommand\B{\rule[-1.2ex]{0pt}{0pt}} add these commands to the preamble and then insert ERT into a row that you want extra white space above \T or below \B the letters. note that you'll need to add a space after the \T or \B otherwise latex will think that you have a undefined command. cheers, -brian On Oct 16, 2007, at 7:18 PM, Enrico Forestieri wrote: Jeremy C. Reed writes: On Tue, 16 Oct 2007, Paul A. Rubin wrote: Is it standard for not being able to align text in a cell vertically? My capitalized letters are touching the top of the cell border -- but their is a big whitespace gap below each character. Is this in the GUI or when you generate a DVI or PDF? (The GUI gives only an approximate representation of what the final document will look like.) If you're talking about the end product, do any of the letters have descenders? What looks like a big gap below might not look so big with a descender taking root in it. In the generated output. Not all the rows have a descender (a g). Every row has the characters jammed up to the top. All the rows appear to be the same height. And even the bottom of the g doesn't touch the bottom of the row (the border), but the tops of letters like TTL and Fl touch the top of row (top border). Looks bad. I can provide PDF. LaTeX sizes the height of a row in table based on the height and depth of the font used, irrespectively of the fact that you have letters with ascenders or descenders. So the space above a T is the same as the space below a p such that in case of TTL the space below is indeed larger. However, you can control height and depth through a parameter. Indeed, LaTeX multiplies height and depth of a row in a table by \arraystretch. Now, given that the height is generally bigger than the depth, for a sufficiently high value of \arraystretch you will get a larger space above than below. I think that if you put in the preamble the following line: \renewcommand{\arraystretch}{1.5} you will get what you want. In case you want a finer control, you could try using the following in the preamble: \newbox\mystrutbox \setbox\mystrutbox\hbox{% [EMAIL PROTECTED]@[EMAIL PROTECTED]@} [EMAIL PROTECTED] \fi} Keep in mind that LaTeX uses .7 instead of .85 above, and that if you follow this second path, you will lose the ability to control the height of a table row through the \arraystretch parameter. HTH -- Enrico
Re: declare destination directory for converted files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Lagemann wrote: Hello all, I'm trying to customize the conversion to html via the tools-preferences dialog but I can't seem to find anything about how to control where the output is written to (especially which directory it is written to). I recognize the variables $$i and $$o but they only seem to refer to the filenames without their absolute or relative path. The effect is that if I call my own bash script from within LyX I get all resulting files written into the tmp directory. Ok, I found out that this is generally the case and that the copying of generated files after conversion is done by a separate script which can also be customized from the Tools-Preferences dialogue. The reason why my files were not copied from the tmp directory to the working directory was that my script put the resulting file into a subdirectory and therefore the copy script did not find the newly generated files. So the solution for my particular problem was to make my script put the files into the tmp directory(which is the working directory(accessible via pwd in a Linux shell) when the script is executed. However some questions remain which I think are of general interest for those who like to customize Lyx to their needs. * Are there any other built in variables than $$i,$$o,$$s? * Is there any way to change their value? * Is there any way to change the name of the subdirectory where generated files are copied to? * Is this going to be documented or is it regarded internal or subject to frequent change? Regards, Andreas Lagemann -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHFG1XNfV8qlW7iaERAspDAKCC9XD3OogVX6AWM2DEvF/XZ8tq9ACffZOf Ip0lNQpZMxfwxkCaZAVvCP8= =P8v0 -END PGP SIGNATURE-
Re: Toggle between documents
Jean-Marc Lasgouttes wrote: Nicolás [EMAIL PROTECTED] writes: Thanks a lot for the answer. Now I have a second quetion. Could I replace Ctrl-PageUp/Down with Alt-TAB? Well, Alt-tab is hijacked by windows already. JMarc Sorry, I meant Ctrl-Tab. I have seen now that I may configure switching between documents by modifying the bind file. I have tried to assign C-Tab to buffer-next, but it does not work. Actually, by default, if I press C-Tab I get a command disabled message. Could someone explain me what this means? By the way, I have seen that the standard cua.bind file includes three different bindings for buffer-next! Cheers, Nicolás
lyx 1.5.2 compilation problems
Javid Atai Mon, 15 Oct 2007 16:26:43 -0700 Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: ... snip ... ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:33: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete typemake[7]: *** [GuiApplication.lo] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[7]: Leaving directory There is a similar error reported just now for Mac OSX in the lyx- devel list and (I believe) also for Sun. I have not experienced this with LyX1.5.2. However I am experiencing very similar failures (with similar error types and related to .lo- files) with LyX1.6 trunk at the moment on the same configuration for which 1.5.2 compiles. /Anders
Re: Using \fbox as an environment? SOLVED
On Saturday 13 October 2007 05:27, Steve Litt wrote: Hi all, The documented way to use \fbox is like this: \fbox{this is my text} I'd like to do something like this: \begin{fbox}this is my text\end{fbox} However, doing that draws a tiny box around the first character. Anyone know a way to turn \fbox into an environment, or an environment equivalent for \fbox, or a way to put a border around a minipage? Thanks SteveT Hi all, I found the answer in the Fancybox documentation (fancybox.doc). Search for the string: since the former doesn't Look above and below that string. Here's their solution: \newenvironment{fminipage}% {\begin{Sbox}\begin{minipage}}% {\end{minipage}\end{Sbox}\fbox{\TheSbox}} \begin{document} \begin{fminipage}{2in} Since the former doesn't use braces to delimit the contents of the box, $\ldots$ \end{fminipage} Pretty cool, huh? SteveT Steve Litt Books written in LyX: Troubleshooting Techniques of the Successful Technologist Twenty Eight Tales of Troubleshooting Troubleshooting: Just the Facts
Re: What's the problem with encoding?
On Friday 12 October 2007 00:02:00 Armando Duarte Senra Martins wrote: Hello! Olá, I am trying to get through with Latex using Lyx to type a document in portuguese. I had a document previously typed with a WYSIWYG. When I imported it to Lyx lots af characters were lost. So I had to do find replace to restore de accented characters. I tried many options: switched betweenn \usepackage[iso-8859-1]{oberdiek} \usepackage[latin1]{inputenc} \usepackage[utf-8]{inputenc} How did you import the document? I even tried to change the setting s of the document (changing language to portuguese and encondint to UTF-8) In every case I ended up with the same message (latin1.sty not found) I have tried to do the same with another processor the result was the same. I have MiKTeX installed (Windows XP). Thanks for your help. Do you have a small document that shows this problem? If necessary you can send me that document privately. Armando Duarte Senra Martins Universidade de Évora Departamento de Linguística e Literaturas Ap. 94 7002-554 ÉVORA -- José Abílio
Re: Toggle between documents
Nicolás [EMAIL PROTECTED] writes: Jean-Marc Lasgouttes wrote: Nicolás [EMAIL PROTECTED] writes: Thanks a lot for the answer. Now I have a second quetion. Could I replace Ctrl-PageUp/Down with Alt-TAB? Well, Alt-tab is hijacked by windows already. Sorry, I meant Ctrl-Tab. Actually, it is already the bound to buffer-next in cua.bind! Actually, by default, if I press C-Tab I get a command disabled message. Could someone explain me what this means? Do you have several documents loaded? By the way, I have seen that the standard cua.bind file includes three different bindings for buffer-next! Yes, including the one you want. JMarc
Re: lyx 1.5.2 compilation problems
Javid Atai [EMAIL PROTECTED] writes: Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: Could you try the following patch? JMarc svndiff src/frontends/qt4/ Index: src/frontends/qt4/GuiApplication.cpp === --- src/frontends/qt4/GuiApplication.cpp (révision 20971) +++ src/frontends/qt4/GuiApplication.cpp (copie de travail) @@ -92,6 +92,22 @@ namespace frontend { GuiApplication * guiApp; + +// Mac specific stuff goes here... + +class MenuTranslator : public QTranslator { +public: + virtual ~MenuTranslator() {}; + virtual QString translate(const char * context, + const char * sourceText, + const char * comment = 0) const; +}; + +/// +// You can find more platform specific stuff +// at the end of this file... +/// + GuiApplication::~GuiApplication() { @@ -373,15 +389,6 @@ bool GuiApplication::x11EventFilter(XEve // Mac specific stuff goes here... -class MenuTranslator : public QTranslator { -public: - virtual ~MenuTranslator() {}; - virtual QString translate(const char * context, - const char * sourceText, - const char * comment = 0) const; -}; - - QString MenuTranslator::translate(const char * /*context*/, const char * sourceText, const char *) const
Re: For Lyx users, a problem in sharing a Lyx file
Robert Orr wrote: I used to try going into the file with the text editor and changing the lyxformat tag so that the file matched what version of LyX I was using.That sometimes solved the program. That may seem to work, but it is a dangerous game to play. When LyX reads a file, it doesn't really expect that the lyxformat tag doesn't match content. So any mismatching content might put LyX in a strange internal state, which may manifest itself later as strange crashes or even strange stuff written when you eventually save the file. LyX has very little protection against such problems. That is actually what the lyxformat tag is for - it prevents LyX from trying to read 'dangerous stuff'. Helge Hafting
Re: using lyx as a front end
Dov Kruger wrote: I'd like to enter an equation in lyx and have my code process the equation. In general, this question might be more appropriate for the developer forum, but I noticed that the converters may have hooks to get at the document. Is there any user-configurable way to get a piece of a document to a converter? If not, where is the appropriate forum to go? Well, try the developer forum. LyX itself is the only thing I know that is capable of getting at parts of the document. The various converters gets whole files that LyX exports. I think LyX has some mechanisms internally, for getting parts of code. view-view source can show parts of the document in latex format, for example. And of course cutpaste works with parts. The existing computer algebra setup is already capable of sending formulas to external software and get something back. Maybe you can set your program up as another computer algebra system for lyx to use? I think you need to compile LyX to do this though. Helge Hafting
Re: Lyx 1.5.1 and LyX 1.5.2 Spellchecker Could not be started
Marc Driftmeyer wrote: This is where an architecture package management by Debian eliminates much of one's headache. The dpkg system doesn't throw stuff here and there. Even more important, dpkg actually keeps track of every little file it installs. And it never lets different packages mess with the same file. Therefore, uninstalls are clean and easy - even 3 years later. Helge Hafting
Re: lyx 1.5.2 compilation problems
Hi, I solved the problem by configuring lyx with extra libraries and includes, i.e. ./configure --prefix=/usr/local --with-extra-lib=/usr/local/lib --with-extra-inc=/usr/local/include --with-qt4-dir=/usr/local/Qt4 It seems that this problem occurs only for RH9. In my laptop which runs Fedora core 4, lyx-1.5.2 can be compiled successfully without specifying the extra libs and includes. Javid Atai Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: ... snip ... ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:33: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete typemake[7]: *** [GuiApplication.lo] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[7]: Leaving directory
formatting an integral or limit
I only know how to format a limit using a subscript, which puts the condition below and to the right of the limit. Is there any way to put it underneath? ie: lim_x \tends \infinity
Re: lyx 1.5.2 compilation problems
Javid Atai [EMAIL PROTECTED] writes: Hi, I solved the problem by configuring lyx with extra libraries and includes, i.e. ./configure --prefix=/usr/local --with-extra-lib=/usr/local/lib --with-extra-inc=/usr/local/include --with-qt4-dir=/usr/local/Qt4 This is very weird... JMarc
itemize and enumerate in Spanish language
The style 'spanish' for babel sets up certain values overwriting the defaults and preventing customized bullets. The behavior of the lists itemize and enumerate is special to labeling the items. With the last version of 'spanish' is possible to change all that (and more) using options and commands. I have writed a small document describing the options and commands availables in 'spanish' for customizing the label bullets, with some examples. The LyX document is in Spanish, obviously, and is attached. Regards Ignacio babel-spanish.lyx Description: application/lyx
Re: formatting an integral or limit
Dov Kruger wrote: I only know how to format a limit using a subscript, which puts the condition below and to the right of the limit. Is there any way to put it underneath? ie: lim_x \tends \infinity In a displayed math environment, the condition will go under the lim symbol. If you want to do that within an inline math environment, type \displaystyle in the math inset, then type the limit stuff inside the blue box LyX displays. /Paul
Re: itemize and enumerate in Spanish language
You should put this on the Wiki, although I do not know the user and password :-( Ignacio García wrote: The style 'spanish' for babel sets up certain values overwriting the defaults and preventing customized bullets. The behavior of the lists itemize and enumerate is special to labeling the items. With the last version of 'spanish' is possible to change all that (and more) using options and commands. I have writed a small document describing the options and commands availables in 'spanish' for customizing the label bullets, with some examples. The LyX document is in Spanish, obviously, and is attached. Regards Ignacio
Re: LyXWinInstaller 1.5.2 error, Removing old version
For the record, I left the User Preferences intact (unchecked that option in the uninstaller), and the installation of 1.5.2 by the small LyXWinInstaller went wonderfully. Back up and running... Dave Hewitt wrote: (Uwe, I'm posting to the list because I thought others might be curious as well.) I used Uwe's LyXWinInstaller Update to upgrade to 1.5.2 on WinXP, but encountered the advertised problem with ImageMagick. Uwe indicated (to the list as well, I believe) that all we need to do is uninstall LyX 1.5.1 and then use his small installer for 1.5.2 to get ImageMagick back and working properly. When I run the uninstall program I get a window that asks whether I want to remove the LyX User Preferences as well (the LyX program is grayed out b/c you can't opt not to uninstall that, obviously). Does anyone know whether I need to remove the User Preferences in order for the 1.5.2 install to work properly (i.e., fix ImageMagick)? I don't really know what's included in the Preferences, but I made some changes to defaults and would prefer not to lose that if I don't have to. Thanks, Dave Hewitt Nothing in the user directory relates to the broken IM path in the registry, so you should be able to leave the user preferences intact and just uninstall the program. It's certainly worth trying that first. You can always uninstall again (nuking the preferences) if it comes to that. /Paul
exporting to rtf?
Hello all, Is there a way I can export my LyX document as an RTF including footnotes, section references, images and bibliography? I tried exporting as HTML, where most stuff works but not the bibliography. I suppose I would need to manually convert my PDF figures to png? Thanks, B. Bogart
Re: LyX1.5.2: Keyboard problem
Nicolás wrote: Hi! In previous versions of LyX I could use (in Windows) (Alt gr + ´) + o in order to get an accented o: ó. In LyX 1.5.2 (and I think also in 1.5.1) this does not work. Is this a bug or do I have to configure something? Thanks! Cheers, Nicolás I have no idea how the mechanism you describe used to work, but here's a long shot: try turning off the Right-to-left language support option in the preferences, and see if that makes a difference. If it does, please let us know! Dov
Re: table settings and setting border does all or nothing
On Mon, 15 Oct 2007, Paul A. Rubin wrote: Jeremy C. Reed wrote: On first row, using the Table Settings dialog (in lyx 1.5.2), the top border selection is for entire row. I can't get it to work for a single cell. Anyone else have that problem? SOP for LaTeX. If you want to customize borders for individual cells, declare each such cell to be multicolumn (where in this case multi = 1). Multicolumn cells get their own personal borders. Thanks. That worked. Is it standard for not being able to align text in a cell vertically? My capitalized letters are touching the top of the cell border -- but their is a big whitespace gap below each character. Why not centered? The Settings menu tool tip popup says for fixed width. Jeremy C. Reed
Re: LyX 1.5.2.'s fuzzy screen in Mac + wrong path to Aspell
On Oct 15, 2007, at 3:49 PM, Abdelrazak Younes wrote: Bennett Helm wrote: On Oct 15, 2007, at 12:08 PM, Abdelrazak Younes wrote: Margarida Truninger wrote: Ufff...so one's down! Finally met Mr Spellchecker, lovely guy!:) About the fuzzy screen, no worries, I'm back in 1.5.1 which is already too good to be true! the Hum, are you talking about bad rendering? It's perhaps the same problem as the one reported by Stefan on the devel list. Bennett, perhaps you could provide a package with the pixmap cache disabled (in qt4/GuiPainter.cpp) for those users that don't need the speed boost? If I'm remembering correctly, people complaining about fuzzy screens have all been on PPC Mac. In the past I've had troubles cross-compiling for PPC (which is why Anders has done it for me), but I'll try it and see what problems might crop up. (The other catch is that PPC users are more likely the ones to need the speed boost) Too bad! In any case, GuiPainter.cpp is only in trunk; what's the equivalent file in 1.5.2? (Or am I blind?) No you aren't, it's QLPainter.cpp sorry. Let's see if that solve the problem anyway. It does add sub-pixel antialiasing, but the font size is still bigger. Bennett
Backup failure w/ LyX 1.5.2
Whenever I try to save LyX documents (File - Save or Ctrl-S), I get a Backup Failure notification (image attached). After I hit OK, the Save option in the File menu is grayed out, indicating that the file has been saved. When I reopen the file, it looks fine, so the file itself is saving OK. Apparently LyX is (was, below) only having a problem accessing the backup directory. In Tools - Preferences - Paths, my backup directory is given as C:\Program Files\LyX 1.5.2\backup, but no directory called 'backup' was created with the installation. I created a new folder in that location and named it 'backup', and (not surprisingly) everything now works fine. I'm just curious as to whether this is the most appropriate solution? If so, why was there no 'backup' directory created in the first place when LyX defaults to that path for backups? And, no files of any type are appearing in this new backup directory I created, so where are these backups going (i.e., what is the purpose of this folder)? Finally, are any of the other paths in the Preferences likely to be affected in this way? Dave Hewitt dhewitt[at]vims.eduattachment: backupfailure.gif
Re: table settings and setting border does all or nothing
Jeremy C. Reed wrote: Thanks. That worked. Is it standard for not being able to align text in a cell vertically? My capitalized letters are touching the top of the cell border -- but their is a big whitespace gap below each character. Is this in the GUI or when you generate a DVI or PDF? (The GUI gives only an approximate representation of what the final document will look like.) If you're talking about the end product, do any of the letters have descenders? What looks like a big gap below might not look so big with a descender taking root in it. /Paul
Re: Backup failure w/ LyX 1.5.2
Dave Hewitt wrote: Whenever I try to save LyX documents (File - Save or Ctrl-S), I get a Backup Failure notification (image attached). After I hit OK, the Save option in the File menu is grayed out, indicating that the file has been saved. When I reopen the file, it looks fine, so the file itself is saving OK. Apparently LyX is (was, below) only having a problem accessing the backup directory. In Tools - Preferences - Paths, my backup directory is given as C:\Program Files\LyX 1.5.2\backup, but no directory called 'backup' was created with the installation. I created a new folder in that location and named it 'backup', and (not surprisingly) everything now works fine. I'm just curious as to whether this is the most appropriate solution? Matter of taste, I guess. I don't rely on LyX for backups (I do that outside LyX). If so, why was there no 'backup' directory created in the first place when LyX defaults to that path for backups? A better question is why LyX had that path. My copy has the backup path blank, but then it inherited settings from earlier versions rather than being a first install. And, no files of any type are appearing in this new backup directory I created, so where are these backups going (i.e., what is the purpose of this folder)? Maybe there aren't any. Do you have Tools - Preferences... - Look and feel - User interface - Backup documents turned on? Finally, are any of the other paths in the Preferences likely to be affected in this way? Don't have an answer to that one, but I suspect it's unlikely. /Paul
Re: table settings and setting border does all or nothing
On Tue, 16 Oct 2007, Paul A. Rubin wrote: Is it standard for not being able to align text in a cell vertically? My capitalized letters are touching the top of the cell border -- but their is a big whitespace gap below each character. Is this in the GUI or when you generate a DVI or PDF? (The GUI gives only an approximate representation of what the final document will look like.) If you're talking about the end product, do any of the letters have descenders? What looks like a big gap below might not look so big with a descender taking root in it. In the generated output. Not all the rows have a descender (a g). Every row has the characters jammed up to the top. All the rows appear to be the same height. And even the bottom of the g doesn't touch the bottom of the row (the border), but the tops of letters like TTL and Fl touch the top of row (top border). Looks bad. I can provide PDF. (Just noticed that my upgrade from 1.4.x to 1.5.2 lost my PDF export and view using just latex to create the PDF.) Jeremy C. Reed
Re: exporting to rtf?
B. Bogart wrote: Is there a way I can export my LyX document as an RTF including footnotes, section references, images and bibliography? I tried exporting as HTML, where most stuff works but not the bibliography. I suppose I would need to manually convert my PDF figures to png? You can try latex2rtf (LyX will recognize it when it is installed and provide an Export-RTF option). It's not perfect and the quality of the result depends on the content, but the new version that was released some days ago is not bad http://latex2rtf.sourceforge.net/ Jürgen
Re: Backup failure w/ LyX 1.5.2
Dave Hewitt wrote: Whenever I try to save LyX documents (File - Save or Ctrl-S), I get a Backup Failure notification (image attached). After I hit OK, the Save option in the File menu is grayed out, indicating that the file has been saved. When I reopen the file, it looks fine, so the file itself is saving OK. Apparently LyX is (was, below) only having a problem accessing the backup directory. In Tools - Preferences - Paths, my backup directory is given as C:\Program Files\LyX 1.5.2\backup, but no directory called 'backup' was created with the installation. I created a new folder in that location and named it 'backup', and (not surprisingly) everything now works fine. I'm just curious as to whether this is the most appropriate solution? Matter of taste, I guess. I don't rely on LyX for backups (I do that outside LyX). If so, why was there no 'backup' directory created in the first place when LyX defaults to that path for backups? A better question is why LyX had that path. My copy has the backup path blank, but then it inherited settings from earlier versions rather than being a first install. Maybe since I left User Preferences intact when I updated to LyX 1.5.2, there was a default to include that path in LyX 1.5.1 (the first version I used). And, no files of any type are appearing in this new backup directory I created, so where are these backups going (i.e., what is the purpose of this folder)? Maybe there aren't any. Do you have Tools - Preferences... - Look and feel - User interface - Backup documents turned on? Yes, and I recall that files with little tildes at the end (backups, presumably) appeared in the same directory as the file was located when I was using LyX 1.5.1. There would almost always be a file with the same name and an added tilde each place I had a LyX document. Finally, are any of the other paths in the Preferences likely to be affected in this way? Don't have an answer to that one, but I suspect it's unlikely. /Paul Dave Hewitt
where is ExportFormats documented?
I am trying to figure out why after my upgrade from 1.4.x to 1.5.2 I lost my Export menu option and View choice for PDF (pdflatex). It appears to be fine under my preferences. I do have dvipdfm and ps2pdf but I don't want to use DVI or postscript first. I see my user interface (stdmenus.inc) has ExportFormats. Where is the documented? Where is that defined? I don't see in docs for 1.5.2. I have this converter definition: LaTeX (pdflatex) - PDF (pdflatex) Converter: pdflatext $$i Extra flag: latex I have thjis File format: PDF (pdflatex) Format: pdf2 (I don't know that) Shortcut: F Viewer: xpdf GUI name: PDF (pdflatex) Extension: pdf Editor: **nothing there** Document format is not checked. Vector graphics format is checked. My log has: /home/reed/.lyx/configure.log:checking for the pdflatex program... /home/reed/.lyx/configure.log:+checking for pdflatex... yes My /home/reed/.lyx/lyxrc.defaults has: \Format pdflatex texLaTeX (pdflatex)gvim document ... \Format pdf2 pdfPDF (pdflatex)F xpdf document,vector ... \converter pdflatex pdf2 pdflatex $$i latex And ~/.lyx/preferences has: \format pdf2 pdf PDF (pdflatex) F xpdf vector Jeremy C. Reed
Re: where is ExportFormats documented?
On Oct 16, 2007, at 5:42 PM, Jeremy C. Reed wrote: I am trying to figure out why after my upgrade from 1.4.x to 1.5.2 I lost my Export menu option and View choice for PDF (pdflatex). ... I have thjis File format: PDF (pdflatex) Format: pdf2 (I don't know that) Shortcut: F Viewer: xpdf GUI name: PDF (pdflatex) Extension: pdf Editor: **nothing there** Document format is not checked. Vector graphics format is checked. You need to check the document format option. Bennett
Re: Backup failure w/ LyX 1.5.2
Dave Hewitt wrote: And, no files of any type are appearing in this new backup directory I created, so where are these backups going (i.e., what is the purpose of this folder)? Maybe there aren't any. Do you have Tools - Preferences... - Look and feel - User interface - Backup documents turned on? Yes, and I recall that files with little tildes at the end (backups, presumably) appeared in the same directory as the file was located when I was using LyX 1.5.1. There would almost always be a file with the same name and an added tilde each place I had a LyX document. That's what I get ... sometimes ... (I have timed backups deselected, but apparently there are untimed backups triggered by alignment of the planets or something). There are also #filename# copies that get dumped under certain circumstances (less than graceful exit from LyX?), again in the source directory. So you're saying you have timed backups set and, even with a valid backup path and having the document open past the time limit, you're not getting a backup file? /Paul
Re: table settings and setting border does all or nothing
Jeremy C. Reed wrote: In the generated output. Not all the rows have a descender (a g). Every row has the characters jammed up to the top. All the rows appear to be the same height. And even the bottom of the g doesn't touch the bottom of the row (the border), but the tops of letters like TTL and Fl touch the top of row (top border). Looks bad. I can provide PDF. I think posting a small example (both LyX and PDF) would be a good idea. /Paul
Re: where is ExportFormats documented?
On Tue, 16 Oct 2007, Bennett Helm wrote: On Oct 16, 2007, at 5:42 PM, Jeremy C. Reed wrote: I am trying to figure out why after my upgrade from 1.4.x to 1.5.2 I lost my Export menu option and View choice for PDF (pdflatex). ... I have thjis File format: PDF (pdflatex) Format: pdf2 (I don't know that) Shortcut: F Viewer: xpdf GUI name: PDF (pdflatex) Extension: pdf Editor: **nothing there** Document format is not checked. Vector graphics format is checked. You need to check the document format option. Thanks. I now see that documented in 3.5.1 Formats. I was looking in the wrong place and reading about the user interface (3.4). This in the Customizations documentation. Now I see my interface was already using pdflatex for: Item View PDF (pdflatex) buffer-view pdf2 Item Update PDF (pdflatex) buffer-update pdf2 (in my /usr/pkg/share/lyx/ui/stdtoolbars.inc) but just wasn't in my View or Export menus. Thanks again Jeremy C. Reed
Re: table settings and setting border does all or nothing
On Tue, 16 Oct 2007, Paul A. Rubin wrote: In the generated output. Not all the rows have a descender (a g). Every row has the characters jammed up to the top. All the rows appear to be the same height. And even the bottom of the g doesn't touch the bottom of the row (the border), but the tops of letters like TTL and Fl touch the top of row (top border). Looks bad. I can provide PDF. I think posting a small example (both LyX and PDF) would be a good idea. Attached. Jeremy C. Reed#LyX 1.5.2 created this file. For more info see http://www.lyx.org/ \lyxformat 276 \begin_document \begin_header \textclass article \language english \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize default \papersize default \use_geometry false \use_amsmath 1 \use_esint 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \author \end_header \begin_body \begin_layout Standard \begin_inset Tabular lyxtabular version=3 rows=1 columns=1 features column alignment=center valignment=top leftline=true rightline=true width=0 row topline=true bottomline=true cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \begin_layout Standard AbCdEfghijKl \end_layout \end_inset /cell /row /lyxtabular \end_inset \end_layout \begin_layout Standard Another table: \end_layout \begin_layout Standard \begin_inset Tabular lyxtabular version=3 rows=2 columns=1 features column alignment=center valignment=top leftline=true rightline=true width=0 row topline=true bottomline=true cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \begin_layout Standard TTL \end_layout \end_inset /cell /row row topline=true bottomline=true cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \begin_layout Standard padding \end_layout \end_inset /cell /row /lyxtabular \end_inset \end_layout \end_body \end_document newfile7.pdf Description: Adobe PDF document
Re: Backup failure w/ LyX 1.5.2
Marc, the directory is set to: C:\Program Files\LyX 1.5.2\backup (Recall that I created this folder to make it available and stop the error messages on every save instance.) Dave Hewitt wrote: And, no files of any type are appearing in this new backup directory I created, so where are these backups going (i.e., what is the purpose of this folder)? Maybe there aren't any. Do you have Tools - Preferences... - Look and feel - User interface - Backup documents turned on? Yes, and I recall that files with little tildes at the end (backups, presumably) appeared in the same directory as the file was located when I was using LyX 1.5.1. There would almost always be a file with the same name and an added tilde each place I had a LyX document. That's what I get ... sometimes ... (I have timed backups deselected, but apparently there are untimed backups triggered by alignment of the planets or something). There are also #filename# copies that get dumped under certain circumstances (less than graceful exit from LyX?), again in the source directory. Marc indicated that the files with tildes are the just-prior saved version (an at-the-time-of-last-opening backup, if you will). So those aren't the backups. But, like you Paul, I get the #...# files in the same directory as I'm working in. I get those files regularly when LyX has a document open, like a backup. So I'm confused about what those are (they're not going to the 'backup' directory, if they are backups). So you're saying you have timed backups set and, even with a valid backup path and having the document open past the time limit, you're not getting a backup file? Correct. Could this have something to do with the odd path that was given in the error message? LyX thought I wanted backups in 'backup' directory (which didn't exist), but the error message says: Cannot create backup file: C:/Program Files/LyX 1.5.2/backup/C:!Documents and Settings!dhewitt!Desktop!newfile1.lyx~. Please check... (It seems odd that this is an error for backup creation, and the file it wants to make has a tilde on it, which I've been told is not a backup.) /Paul Dave Hewitt
Re: Backup failure w/ LyX 1.5.2
Do either of you have RCS installed and running on your systems? http://www.gnu.org/software/rcs This is the RCS system accessible via LyX under File-Version Control The system doesn't have a GUI to work within. It's command line driven. I'm using LyX on Debian Linux Sid and OS X 10.4.10 - Marc On Oct 16, 2007, at 3:40 PM, Dave Hewitt wrote: Marc, the directory is set to: C:\Program Files\LyX 1.5.2\backup (Recall that I created this folder to make it available and stop the error messages on every save instance.) Dave Hewitt wrote: And, no files of any type are appearing in this new backup directory I created, so where are these backups going (i.e., what is the purpose of this folder)? Maybe there aren't any. Do you have Tools - Preferences... - Look and feel - User interface - Backup documents turned on? Yes, and I recall that files with little tildes at the end (backups, presumably) appeared in the same directory as the file was located when I was using LyX 1.5.1. There would almost always be a file with the same name and an added tilde each place I had a LyX document. That's what I get ... sometimes ... (I have timed backups deselected, but apparently there are untimed backups triggered by alignment of the planets or something). There are also #filename# copies that get dumped under certain circumstances (less than graceful exit from LyX?), again in the source directory. Marc indicated that the files with tildes are the just-prior saved version (an at-the-time-of-last-opening backup, if you will). So those aren't the backups. But, like you Paul, I get the #...# files in the same directory as I'm working in. I get those files regularly when LyX has a document open, like a backup. So I'm confused about what those are (they're not going to the 'backup' directory, if they are backups). So you're saying you have timed backups set and, even with a valid backup path and having the document open past the time limit, you're not getting a backup file? Correct. Could this have something to do with the odd path that was given in the error message? LyX thought I wanted backups in 'backup' directory (which didn't exist), but the error message says: Cannot create backup file: C:/Program Files/LyX 1.5.2/backup/C:! Documents and Settings!dhewitt!Desktop!newfile1.lyx~. Please check... (It seems odd that this is an error for backup creation, and the file it wants to make has a tilde on it, which I've been told is not a backup.) /Paul Dave Hewitt
Re: table settings and setting border does all or nothing
Jeremy C. Reed writes: On Tue, 16 Oct 2007, Paul A. Rubin wrote: Is it standard for not being able to align text in a cell vertically? My capitalized letters are touching the top of the cell border -- but their is a big whitespace gap below each character. Is this in the GUI or when you generate a DVI or PDF? (The GUI gives only an approximate representation of what the final document will look like.) If you're talking about the end product, do any of the letters have descenders? What looks like a big gap below might not look so big with a descender taking root in it. In the generated output. Not all the rows have a descender (a g). Every row has the characters jammed up to the top. All the rows appear to be the same height. And even the bottom of the g doesn't touch the bottom of the row (the border), but the tops of letters like TTL and Fl touch the top of row (top border). Looks bad. I can provide PDF. LaTeX sizes the height of a row in table based on the height and depth of the font used, irrespectively of the fact that you have letters with ascenders or descenders. So the space above a T is the same as the space below a p such that in case of TTL the space below is indeed larger. However, you can control height and depth through a parameter. Indeed, LaTeX multiplies height and depth of a row in a table by \arraystretch. Now, given that the height is generally bigger than the depth, for a sufficiently high value of \arraystretch you will get a larger space above than below. I think that if you put in the preamble the following line: \renewcommand{\arraystretch}{1.5} you will get what you want. In case you want a finer control, you could try using the following in the preamble: \newbox\mystrutbox \setbox\mystrutbox\hbox{% [EMAIL PROTECTED]@[EMAIL PROTECTED]@} [EMAIL PROTECTED] Keep in mind that LaTeX uses .7 instead of .85 above, and that if you follow this second path, you will lose the ability to control the height of a table row through the \arraystretch parameter. HTH -- Enrico
Re: Backup failure w/ LyX 1.5.2
Marc Driftmeyer wrote: Do either of you have RCS installed and running on your systems? Not I. /Paul
Re: Backup failure w/ LyX 1.5.2
Dave Hewitt wrote: Marc indicated that the files with tildes are the just-prior saved version (an at-the-time-of-last-opening backup, if you will). So those aren't the backups. But, like you Paul, I get the #...# files in the same directory as I'm working in. I get those files regularly when LyX has a document open, like a backup. So I'm confused about what those are (they're not going to the 'backup' directory, if they are backups). Perhaps they're for File - Revert? So you're saying you have timed backups set and, even with a valid backup path and having the document open past the time limit, you're not getting a backup file? Correct. Could this have something to do with the odd path that was given in the error message? LyX thought I wanted backups in 'backup' directory (which didn't exist), but the error message says: Cannot create backup file: C:/Program Files/LyX 1.5.2/backup/C:!Documents and Settings!dhewitt!Desktop!newfile1.lyx~. Please check... (It seems odd that this is an error for backup creation, and the file it wants to make has a tilde on it, which I've been told is not a backup.) I'm guessing, since I don't do backups myself, but I suspect LyX wants to modify the file name -- lest you back up to the document folder and try to use the same name. So the tilde decoration doesn't surprise me. As to why you're still not getting backups, that's another question. I take it that, after creating C:\Program Files\LyX 1.5.2\backup you still have that set as the backup path? Do you still get the same error message, or do backups fail silently? /Paul /Paul Dave Hewitt
Re: table settings and setting border does all or nothing
another option that i've used for adding custom white space is to create a new command in the preamble using \rule. this is an extension of the suggestion by Enrico and you can fine tune the extra space as needed. \newcommand\T{\rule{0pt}{2.6ex}} \newcommand\B{\rule[-1.2ex]{0pt}{0pt}} add these commands to the preamble and then insert ERT into a row that you want extra white space above \T or below \B the letters. note that you'll need to add a space after the \T or \B otherwise latex will think that you have a undefined command. cheers, -brian On Oct 16, 2007, at 7:18 PM, Enrico Forestieri wrote: Jeremy C. Reed writes: On Tue, 16 Oct 2007, Paul A. Rubin wrote: Is it standard for not being able to align text in a cell vertically? My capitalized letters are touching the top of the cell border -- but their is a big whitespace gap below each character. Is this in the GUI or when you generate a DVI or PDF? (The GUI gives only an approximate representation of what the final document will look like.) If you're talking about the end product, do any of the letters have descenders? What looks like a big gap below might not look so big with a descender taking root in it. In the generated output. Not all the rows have a descender (a g). Every row has the characters jammed up to the top. All the rows appear to be the same height. And even the bottom of the g doesn't touch the bottom of the row (the border), but the tops of letters like TTL and Fl touch the top of row (top border). Looks bad. I can provide PDF. LaTeX sizes the height of a row in table based on the height and depth of the font used, irrespectively of the fact that you have letters with ascenders or descenders. So the space above a T is the same as the space below a p such that in case of TTL the space below is indeed larger. However, you can control height and depth through a parameter. Indeed, LaTeX multiplies height and depth of a row in a table by \arraystretch. Now, given that the height is generally bigger than the depth, for a sufficiently high value of \arraystretch you will get a larger space above than below. I think that if you put in the preamble the following line: \renewcommand{\arraystretch}{1.5} you will get what you want. In case you want a finer control, you could try using the following in the preamble: \newbox\mystrutbox \setbox\mystrutbox\hbox{% [EMAIL PROTECTED]@[EMAIL PROTECTED]@} [EMAIL PROTECTED] \fi} Keep in mind that LaTeX uses .7 instead of .85 above, and that if you follow this second path, you will lose the ability to control the height of a table row through the \arraystretch parameter. HTH -- Enrico
Re: declare destination directory for converted files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Lagemann wrote: > Hello all, > I'm trying to customize the conversion to html via the tools->preferences > dialog but > I can't seem to find anything about how to control where the output is > written to > (especially which directory it is written to). I recognize the variables $$i > and $$o > but they only seem to refer to the filenames without their absolute or > relative path. > The effect is that if I call my own bash script from within LyX I get all > resulting > files written into the tmp directory. > Ok, I found out that this is generally the case and that the copying of generated files after conversion is done by a separate script which can also be customized from the Tools->Preferences dialogue. The reason why my files were not copied from the tmp directory to the working directory was that my script put the resulting file into a subdirectory and therefore the copy script did not find the newly generated files. So the solution for my particular problem was to make my script put the files into the tmp directory(which is the "working directory(accessible via pwd in a Linux shell)" when the script is executed. However some questions remain which I think are of general interest for those who like to customize Lyx to their needs. * Are there any other built in variables than $$i,$$o,$$s? * Is there any way to change their value? * Is there any way to change the name of the subdirectory where generated files are copied to? * Is this going to be documented or is it regarded internal or subject to frequent change? Regards, Andreas Lagemann -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHFG1XNfV8qlW7iaERAspDAKCC9XD3OogVX6AWM2DEvF/XZ8tq9ACffZOf Ip0lNQpZMxfwxkCaZAVvCP8= =P8v0 -END PGP SIGNATURE-
Re: Toggle between documents
Jean-Marc Lasgouttes wrote: Nicolás <[EMAIL PROTECTED]> writes: Thanks a lot for the answer. Now I have a second quetion. Could I replace Ctrl-PageUp/Down with Alt-TAB? Well, Alt-tab is hijacked by windows already. JMarc Sorry, I meant Ctrl-Tab. I have seen now that I may configure switching between documents by modifying the "bind" file. I have tried to assign "C-Tab" to "buffer-next", but it does not work. Actually, by default, if I press "C-Tab" I get a "command disabled" message. Could someone explain me what this means? By the way, I have seen that the standard cua.bind file includes three different bindings for "buffer-next"! Cheers, Nicolás
lyx 1.5.2 compilation problems
Javid Atai Mon, 15 Oct 2007 16:26:43 -0700 Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: ... snip ... ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:33: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete typemake[7]: *** [GuiApplication.lo] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[7]: Leaving directory There is a similar error reported just now for Mac OSX in the lyx- devel list and (I believe) also for Sun. I have not experienced this with LyX1.5.2. However I am experiencing very similar failures (with similar error types and related to .lo- files) with LyX1.6 trunk at the moment on the same configuration for which 1.5.2 compiles. /Anders
Re: Using \fbox as an environment?
On Saturday 13 October 2007 05:27, Steve Litt wrote: > Hi all, > > The documented way to use \fbox is like this: > > \fbox{this is my text} > > I'd like to do something like this: > > \begin{fbox}this is my text\end{fbox} > > However, doing that draws a tiny box around the first character. Anyone > know a way to turn \fbox into an environment, or an environment equivalent > for \fbox, or a way to put a border around a minipage? > > Thanks > > SteveT Hi all, I found the answer in the Fancybox documentation (fancybox.doc). Search for the string: "since the former doesn't" Look above and below that string. Here's their solution: \newenvironment{fminipage}% {\begin{Sbox}\begin{minipage}}% {\end{minipage}\end{Sbox}\fbox{\TheSbox}} \begin{document} \begin{fminipage}{2in} Since the former doesn't use braces to delimit the contents of the box, $\ldots$ \end{fminipage} Pretty cool, huh? SteveT Steve Litt Books written in LyX: Troubleshooting Techniques of the Successful Technologist Twenty Eight Tales of Troubleshooting Troubleshooting: Just the Facts
Re: What's the problem with encoding?
On Friday 12 October 2007 00:02:00 Armando Duarte Senra Martins wrote: > Hello! Olá, > I am trying to get through with Latex using Lyx to type a document in > portuguese. > I had a document previously typed with a WYSIWYG. When I imported it to > Lyx lots af characters were lost. So I had to do find & replace to restore > de accented characters. > I tried many options: switched betweenn > \usepackage[iso-8859-1]{oberdiek} > \usepackage[latin1]{inputenc} > \usepackage[utf-8]{inputenc} How did you import the document? > I even tried to change the setting s of the document (changing language to > portuguese and encondint to UTF-8) > > In every case I ended up with the same message (latin1.sty not found) > I have tried to do the same with another processor the result was the same. > I have MiKTeX installed (Windows XP). > > Thanks for your help. Do you have a small document that shows this problem? If necessary you can send me that document privately. > Armando Duarte Senra Martins > Universidade de Évora > Departamento de Linguística e Literaturas > Ap. 94 > 7002-554 ÉVORA -- José Abílio
Re: Toggle between documents
Nicolás <[EMAIL PROTECTED]> writes: > Jean-Marc Lasgouttes wrote: >> Nicolás <[EMAIL PROTECTED]> writes: >> >>> Thanks a lot for the answer. Now I have a second quetion. Could I replace >>> Ctrl-PageUp/Down with Alt-TAB? >> >> Well, Alt-tab is hijacked by windows already. > Sorry, I meant Ctrl-Tab. Actually, it is already the bound to buffer-next in cua.bind! > Actually, by default, if I press "C-Tab" I get a "command disabled" > message. Could someone explain me what this means? Do you have several documents loaded? > By the way, I have seen that the standard cua.bind file includes > three different bindings for "buffer-next"! Yes, including the one you want. JMarc
Re: lyx 1.5.2 compilation problems
Javid Atai <[EMAIL PROTECTED]> writes: > Hi, > > I am trying to compile lyx-1.5.2 on my linux > box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). > I have already installed Qt-4.2.2 successfully. > > I get the following error message during compilation: Could you try the following patch? JMarc svndiff src/frontends/qt4/ Index: src/frontends/qt4/GuiApplication.cpp === --- src/frontends/qt4/GuiApplication.cpp (révision 20971) +++ src/frontends/qt4/GuiApplication.cpp (copie de travail) @@ -92,6 +92,22 @@ namespace frontend { GuiApplication * guiApp; + +// Mac specific stuff goes here... + +class MenuTranslator : public QTranslator { +public: + virtual ~MenuTranslator() {}; + virtual QString translate(const char * context, + const char * sourceText, + const char * comment = 0) const; +}; + +/// +// You can find more platform specific stuff +// at the end of this file... +/// + GuiApplication::~GuiApplication() { @@ -373,15 +389,6 @@ bool GuiApplication::x11EventFilter(XEve // Mac specific stuff goes here... -class MenuTranslator : public QTranslator { -public: - virtual ~MenuTranslator() {}; - virtual QString translate(const char * context, - const char * sourceText, - const char * comment = 0) const; -}; - - QString MenuTranslator::translate(const char * /*context*/, const char * sourceText, const char *) const
Re: For Lyx users, a problem in sharing a Lyx file
Robert Orr wrote: I used to try going into the file with the text editor and changing the lyxformat tag so that the file matched what version of LyX I was using.That sometimes solved the program. That may seem to work, but it is a dangerous game to play. When LyX reads a file, it doesn't really expect that the lyxformat tag doesn't match content. So any mismatching content might put LyX in a strange internal state, which may manifest itself later as strange crashes or even strange stuff written when you eventually save the file. LyX has very little protection against such problems. That is actually what the lyxformat tag is for - it prevents LyX from trying to read 'dangerous stuff'. Helge Hafting
Re: using lyx as a front end
Dov Kruger wrote: I'd like to enter an equation in lyx and have my code process the equation. In general, this question might be more appropriate for the developer forum, but I noticed that the converters may have hooks to get at the document. Is there any user-configurable way to get a piece of a document to a converter? If not, where is the appropriate forum to go? Well, try the developer forum. LyX itself is the only thing I know that is capable of getting at parts of the document. The various converters gets whole files that LyX exports. I think LyX has some mechanisms internally, for getting parts of code. "view->view source" can show parts of the document in latex format, for example. And of course cut works with parts. The existing computer algebra setup is already capable of sending formulas to external software and get something back. Maybe you can set your program up as another computer algebra system for lyx to use? I think you need to compile LyX to do this though. Helge Hafting
Re: Lyx 1.5.1 and LyX 1.5.2 Spellchecker Could not be started
Marc Driftmeyer wrote: This is where an architecture package management by Debian eliminates much of one's headache. The dpkg system doesn't throw stuff here and there. Even more important, dpkg actually keeps track of every little file it installs. And it never lets different packages mess with the same file. Therefore, uninstalls are clean and easy - even 3 years later. Helge Hafting
Re: lyx 1.5.2 compilation problems
Hi, I solved the problem by configuring lyx with extra libraries and includes, i.e. ./configure --prefix=/usr/local --with-extra-lib=/usr/local/lib --with-extra-inc=/usr/local/include --with-qt4-dir=/usr/local/Qt4 It seems that this problem occurs only for RH9. In my laptop which runs Fedora core 4, lyx-1.5.2 can be compiled successfully without specifying the extra libs and includes. Javid Atai > Hi, > I am trying to compile lyx-1.5.2 on my linux > box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). > I have already installed Qt-4.2.2 successfully. > I get the following error message during compilation: > ... snip ... > ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to > incomplete type >`lyx::frontend::MenuTranslator' > ../../../boost/boost/checked_delete.hpp:33: creating array with > size zero (`-1 >') > ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete > typemake[7]: *** [GuiApplication.lo] Error 1 > make[7]: Leaving directory > `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' > make[6]: *** [all-recursive] Error 1 > make[7]: Leaving directory
formatting an integral or limit
I only know how to format a limit using a subscript, which puts the condition below and to the right of the limit. Is there any way to put it underneath? ie: lim_x \tends \infinity
Re: lyx 1.5.2 compilation problems
Javid Atai <[EMAIL PROTECTED]> writes: > Hi, > > I solved the problem by configuring lyx with extra libraries and > includes, i.e. > > ./configure --prefix=/usr/local --with-extra-lib=/usr/local/lib > --with-extra-inc=/usr/local/include --with-qt4-dir=/usr/local/Qt4 > This is very weird... JMarc
itemize and enumerate in Spanish language
The style 'spanish' for babel sets up certain values overwriting the defaults and preventing customized bullets. The behavior of the lists itemize and enumerate is special to labeling the items. With the last version of 'spanish' is possible to change all that (and more) using options and commands. I have writed a small document describing the options and commands availables in 'spanish' for customizing the label bullets, with some examples. The LyX document is in Spanish, obviously, and is attached. Regards Ignacio babel-spanish.lyx Description: application/lyx
Re: formatting an integral or limit
Dov Kruger wrote: I only know how to format a limit using a subscript, which puts the condition below and to the right of the limit. Is there any way to put it underneath? ie: lim_x \tends \infinity In a displayed math environment, the condition will go under the lim symbol. If you want to do that within an inline math environment, type \displaystyle in the math inset, then type the limit stuff inside the blue box LyX displays. /Paul
Re: itemize and enumerate in Spanish language
You should put this on the Wiki, although I do not know the user and password :-( Ignacio García wrote: The style 'spanish' for babel sets up certain values overwriting the defaults and preventing customized bullets. The behavior of the lists itemize and enumerate is special to labeling the items. With the last version of 'spanish' is possible to change all that (and more) using options and commands. I have writed a small document describing the options and commands availables in 'spanish' for customizing the label bullets, with some examples. The LyX document is in Spanish, obviously, and is attached. Regards Ignacio
Re: LyXWinInstaller 1.5.2 error, Removing old version
For the record, I left the User Preferences intact (unchecked that option in the uninstaller), and the installation of 1.5.2 by the small LyXWinInstaller went wonderfully. Back up and running... Dave Hewitt wrote: (Uwe, I'm posting to the list because I thought others might be curious as well.) I used Uwe's LyXWinInstaller Update to upgrade to 1.5.2 on WinXP, but encountered the advertised problem with ImageMagick. Uwe indicated (to the list as well, I believe) that all we need to do is uninstall LyX 1.5.1 and then use his small installer for 1.5.2 to get ImageMagick back and working properly. When I run the uninstall program I get a window that asks whether I want to remove the LyX User Preferences as well (the LyX program is grayed out b/c you can't opt not to uninstall that, obviously). Does anyone know whether I need to remove the User Preferences in order for the 1.5.2 install to work properly (i.e., fix ImageMagick)? I don't really know what's included in the Preferences, but I made some changes to defaults and would prefer not to lose that if I don't have to. Thanks, Dave Hewitt Nothing in the user directory relates to the broken IM path in the registry, so you should be able to leave the user preferences intact and just uninstall the program. It's certainly worth trying that first. You can always uninstall again (nuking the preferences) if it comes to that. /Paul
exporting to rtf?
Hello all, Is there a way I can export my LyX document as an RTF including footnotes, section references, images and bibliography? I tried exporting as HTML, where most stuff works but not the bibliography. I suppose I would need to manually convert my PDF figures to png? Thanks, B. Bogart
Re: LyX1.5.2: Keyboard problem
Nicolás wrote: Hi! In previous versions of LyX I could use (in Windows) (Alt gr + "´") + "o" in order to get an accented o: "ó". In LyX 1.5.2 (and I think also in 1.5.1) this does not work. Is this a bug or do I have to configure something? Thanks! Cheers, Nicolás I have no idea how the mechanism you describe used to work, but here's a long shot: try turning off the "Right-to-left language support" option in the preferences, and see if that makes a difference. If it does, please let us know! Dov
Re: table settings and setting border does all or nothing
On Mon, 15 Oct 2007, Paul A. Rubin wrote: > Jeremy C. Reed wrote: > > On first row, using the Table Settings dialog (in lyx 1.5.2), the top border > > selection is for entire row. I can't get it to work for a single cell. > > > > Anyone else have that problem? > > > > SOP for LaTeX. If you want to customize borders for individual cells, > declare each such cell to be multicolumn (where in this case "multi" = > 1). > Multicolumn cells get their own personal borders. Thanks. That worked. Is it standard for not being able to align text in a cell vertically? My capitalized letters are touching the top of the cell border -- but their is a big whitespace gap below each character. Why not centered? The Settings menu tool tip popup says for fixed width. Jeremy C. Reed
Re: LyX 1.5.2.'s fuzzy screen in Mac + wrong path to Aspell
On Oct 15, 2007, at 3:49 PM, Abdelrazak Younes wrote: Bennett Helm wrote: On Oct 15, 2007, at 12:08 PM, Abdelrazak Younes wrote: Margarida Truninger wrote: Ufff...so one's down! Finally met Mr Spellchecker, lovely guy!:) About the fuzzy screen, no worries, I'm back in 1.5.1 which is already too good to be true! the Hum, are you talking about bad rendering? It's perhaps the same problem as the one reported by Stefan on the devel list. Bennett, perhaps you could provide a package with the pixmap cache disabled (in qt4/GuiPainter.cpp) for those users that don't need the speed boost? If I'm remembering correctly, people complaining about fuzzy screens have all been on PPC Mac. In the past I've had troubles cross-compiling for PPC (which is why Anders has done it for me), but I'll try it and see what problems might crop up. (The other catch is that PPC users are more likely the ones to need the speed boost) Too bad! In any case, GuiPainter.cpp is only in trunk; what's the equivalent file in 1.5.2? (Or am I blind?) No you aren't, it's QLPainter.cpp sorry. Let's see if that solve the problem anyway. It does add sub-pixel antialiasing, but the font size is still bigger. Bennett
Backup failure w/ LyX 1.5.2
Whenever I try to save LyX documents (File -> Save or Ctrl-S), I get a Backup Failure notification (image attached). After I hit OK, the Save option in the File menu is grayed out, indicating that the file has been saved. When I reopen the file, it looks fine, so the file itself is saving OK. Apparently LyX is (was, below) only having a problem accessing the backup directory. In Tools -> Preferences -> Paths, my backup directory is given as C:\Program Files\LyX 1.5.2\backup, but no directory called 'backup' was created with the installation. I created a new folder in that location and named it 'backup', and (not surprisingly) everything now works fine. I'm just curious as to whether this is the most appropriate solution? If so, why was there no 'backup' directory created in the first place when LyX defaults to that path for backups? And, no files of any type are appearing in this new backup directory I created, so where are these backups going (i.e., what is the purpose of this folder)? Finally, are any of the other paths in the Preferences likely to be affected in this way? Dave Hewitt dhewitt[at]vims.edu<>