Lyx 1.4.4: pdflatex doesn't run bibtex
Hi, I'm running 1.4.4 on Mac PPC, and I've encountered a minor problem. If I try to run pdflatex (View, Update or Export on PDF(pdflatex)), then LyX fails to recognize that it needs to run bibtex and/or rerun pdflatex. However, PDF(ps2pdf) works properly, so it's not a major problem - I just run PDF(ps2pdf) first and then PDF(pdflatex). When I look at the latex log it contains the correct warnings: LaTeX Warning: Citation `TALK:D1.2a' on page 6 undefined on input line 409. ... LaTeX Warning: There were undefined references. The same problem occurs with cross-references and the TOC - but in this case I can just run PDF(pdflatex) several times in a row (but I'll have to type a space or something in between since LyX otherwise thinks that the pdf is up to date). regards, /Peter ___ _ ____ __ __ _ _ _ peter ljunglöf, göteborgs universitet
How do I do short citations without natbib?
Hi, I'm writing an article for a conference whose style file does not use natbib, but who does have the extra command \shortcite: \cite{aho-68} ==> (Aho, 1968) \shortcite{aho-68} ==> (1968) Aho \shortcite{aho-68} ==> Aho (1968) Is there some way for me to use the natbib interface, but not the natbib package? I tried to do the following, but it didn't work: I turned on natbib in Document Settings, and then redefined \citep and \citeyearpar to \cite and \shortcite. But \usepackage{natbib} interferes with the conference style file, and the citations became very strange. The only other thing I've come up with is to manually erase \usepackage{natbib} from the LaTeX file, but I hope there's a way form inside LyX. regards, Peter Ljunglöf ___ _ ____ __ __ _ _ _ peter ljunglöf, göteborgs universitet
A general environment paragraph style?
Hi, I would really like to have some kind of general "environment" paragraph style, so I could insert uncommon environments in a pseudo- lyx style. E.g., if I have only one or two theorems in my article (and I don't want to use an existing style which includes theorems), I don't want to design a new layout file just for that. My idea was that the text in the paragraph would be the name of the environment, and that one used indentation (environment depth) on the paragraphs that should be part of the environment. But perhaps there are better idea. Right now I have to resort to ERT for the \begin{X} and \end{X}, and the problem apart from being ugly is that X and X should match and that have to be done manually. I almost succeeded once, but I never figured out how to end the environment, since I didn't know how to remember its name. Have anyone implemented something useful in this direction? A suggestion for the future would be to have layout files for latex packages too. Then I could write a layout file for the theorem package, and in the document settings just add the theorem layout/ package, and the document class would be independent of that. (As it is now, if I want to be able to use package X in articles, reports, books and slides, I have to make layout files article_X, report_X, book_X and slide_X, which is cumbersome). regards, Peter ___ _ ____ __ __ _ _ _ peter ljunglöf, göteborgs universitet
Re: annoying behaviour in 1.4
7 mar 2007 kl. 22.40 skrev Jean-Marc Lasgouttes: "Gunnar" == Gunnar <[EMAIL PROTECTED]> writes: moved to the beginning of the next word. Apart from being just odd, there's a real problem with that: If I have the text "firstword [MATH] secondword", and the cursor is at "firstword", then I can not move (quickly) to the beginning of the [MATH] stuff, since C-right just moves past the math to the beginning of "secondword". Was this change intentional, or just a mistake? Gunnar> I think I reported it as a bug, but it was nothing that could Gunnar> be done, if I remember correctly. But I agree that it would be Gunnar> good if it didn't behave that way. Well, the intention is that a word is a word. If you want Ctrl+Right to go to math insets too, would you like it to consider math insets for spell checking too. I guess the answer is no :) So what would be the precise definition of a word for jumping? We do not want all insets, do we? And we have to settle on a definition that pleases _everybody_. There are two alternatives: * The Windows way: move to the start of the next word OR punctuation mark (or inline math), whichever comes first. * The MacOS way: move to the end of the current word. I'm okay with either, but not with the current implementation. regards, Peter ____ ___ _ __ __ _ _ _ peter ljunglöf, göteborgs universitet
Re: annoying behaviour in 1.4
7 mar 2007 kl. 19.14 skrev Paul A. Rubin: Peter Ljunglöf wrote: * The most important thing is the function 'word-forward' (bound to C-right). Previously it moved the cursor to the end of the current word (or the next if it already was at the end). That's the standard behaviour in most word processors and text editors. Now the cursor is moved to the beginning of the next word. I just checked a few programs. C-right moves the cursor to the _start_ of the next word in: MS Office; WordPerfect; NoteTab; MS Notepad; and MS Wordpad. This is on Win XP; maybe things work differently on a Mac? Hmm, interesting - it looks like there's a difference between Mac and Win. On my Mac (OSX 10.4), the behaviour is the following: Moved to the _start_ of the _next_ word: * Word 2004 for Mac * OpenOffice and NeoOffice Moved to the _end_ of the _current_ word: * TextEdit * Mac Mail * GNUMail * TeXShop * BibDesk * Emacs (both CarbonEmacs and AquamacsEmacs) * Script Editor * Mozilla Seamonkey HTML Composer Anyway, I'm okay with moving the cursor to the start of the next word, _except_ in the following cases: * When there's a punctuation character inbetween - then it should stop before the dot, comma, semicolon, dash or whatever. * When there's inline math - then it should stop before the math. This is in fact what MS Word does, and that's why Word is not annoying (in the cursor moving sense, that is:) So, that is my humble wish - to get decent cursor movement back into LyX... regards, Peter ___ _ ____ __ __ _ _ _ peter ljunglöf, göteborgs universitet
annoying behaviour in 1.4
Hi, there are some things I find annoying with 1.4.4, which behaved much better in 1.3. * The most important thing is the function 'word-forward' (bound to C- right). Previously it moved the cursor to the end of the current word (or the next if it already was at the end). That's the standard behaviour in most word processors and text editors. Now the cursor is moved to the beginning of the next word. Apart from being just odd, there's a real problem with that: If I have the text "firstword [MATH] secondword", and the cursor is at "firstword", then I can not move (quickly) to the beginning of the [MATH] stuff, since C-right just moves past the math to the beginning of "secondword". Was this change intentional, or just a mistake? * Another (much less important) thing is the shortcut preview in the status bar. When I select a menu item, or execute a lyx function (via M-x), the shortcuts are previewed in the status bar - an excellent feature. But on 1.4.4, the "M", "S" and "C" modifiers are just shown as "?". I'm using LyX-Mac/PPC, so I guess it's a Mac specific bug. * Also, the shortcuts shown for the menu items are not changed when I change the bind file, which can be slightly disrupting. This could also be Mac-specific I guess. regards, Peter Ljunglöf ___ _ __ __ _ _ _ peter ljunglöf, göteborgs universitet
Re: LyX 1.4.3 doesn't run bibtex
Hi, I have some more information: when I run ordinary latex, LyX recognizes that there are undefined references, and runs bibtex (and latex again and again). BUT, when I try pdflatex, LyX doesn't recognize that it should run bibtex. The problem is the same with cross-references. Ordinary latex runs twice as it should do, but pdflatex doesn't. (But the second time I run pdflatex it works of course, but I have to do it manually). If I look at the pdflatex log (Document > Latex log), it contains the following lines: Package natbib Warning: Citation `Aho1968-indexed' on page 1 undefined on input line 14. Package natbib Warning: Citation `Allen1994:Natural-Language- Understanding' on page 1 undefined on input line 14. No file test.bbl. Package natbib Warning: There were undefined citations. (The log of the ordinary latex run doesn't have these warnings) regards, Peter 28 feb 2007 kl. 14.47 skrev Bennett Helm: On Feb 28, 2007, at 6:36 AM, Peter Ljunglöf wrote: I upgraded to 1.4.3, and now LyX doesn't seem to run bibtex at all. So I have to resort to running bibtex at the command-line, which is a bit annoying. I'm using the OS X veresion of LyX 1.4.3 on a Mac Powerbook G4. Am I the only one who has encountered this problem? I don't remember hearing this reported before. Are you sure bibtex is located in one of the directories specified in PATH Prefix (LyX > Preferences > Paths)? Yes, the paths are all correct (since ordinary latex works). I have used i-Installer, so everything is in the directory /usr/local/teTeX/ bin/powerpc-apple-darwin-current/. Also, bibtex used to work with pdflatex (inside LyX) on my previous LyX-version (which was some 1.3 version). ____ ___ _ __ __ _ _ _ peter ljunglöf, göteborgs universitet
LyX 1.4.3 doesn't run bibtex
Hi, I upgraded to 1.4.3, and now LyX doesn't seem to run bibtex at all. So I have to resort to running bibtex at the command-line, which is a bit annoying. I'm using the OS X veresion of LyX 1.4.3 on a Mac Powerbook G4. Am I the only one who has encountered this problem? regards, Peter Ljunglöf ___ _ __ __ _ _ _ peter ljunglöf, göteborgs universitet
LyX/Mac 1.4.4 - old version
Hi, Yesterday (Feb 20) I downloaded the PPC version of LyX/Mac 1.4.4, i.e. the file 'LyX-1.4.4-Mac-PPC-3.dmg'. Unfortunately, the LyX application is still version 1.4.3. Not that I care that much, 1.4.3 is good too, but I thought someone would like to know... regards, Peter Ljunglöf ___ _ __ __ _ _ _ peter ljunglöf, göteborgs universitet
Wrapping very wide math equations?
Hi all, again, Now my question (or perhaps bug report) is the following: In my current work I tend to get quite wide math equations; i.e. they are wide LaTeX-wise (and also in LyX), but they will be printed on one line in the end. I guess one reason is that I use some LaTeX commands which I have defined in the preamble and not in the LyX file. An equation might look like this (in LyX): \Rule{\Item{o}{i-j;f:A.r->s0 X1 s1 ... sn-1 Xn sn}\Item{o}{jd-kd;Xd}}{\Item{x}{A->f[B];r=j...k; G}}\When{Gi=(r'=j'...k'|Xd=Bi.r')} The commands \Rule, \Item, \When are defined in the preamble, since they are quite complicated. In the dvi file, the equation looks nice, but in LyX the equation is too wide and does not fit in the window. The problem is that it gets difficult to edit, since I don't see what I write at the end of the equation... Either I would like a way of manually line breaking an equation, only in LyX, not in the dvi/pdf/ps file. Or I'd request that the equation view follows the cursor so that I can see what I write even at the end. regards, Peter Ljunglöf --- --- Peter Ljunglöf PhD student, Göteborg University -- --- [EMAIL PROTECTED] http://www.cs.chalmers.se/~peb ---
Temp-directory cannot be deleted (LyX/Aqua)
Hi, I'm using the latest version 1.3.5 of LyX/Aqua, and get the following minor problem: When I'm using "instant preview", and tries to quit LyX, it displays an error message that it cannot delete temporary directory. This didn't happen in 1.3.4. Ok, it's not a big issue, I can always delete the directory myself, but anyway I thought I'd ask if it's a bug, or if it's something in my own setup of the system. regards, Peter Ljunglöf ------- --- Peter Ljunglöf PhD student, Göteborg University -- --- [EMAIL PROTECTED] http://www.cs.chalmers.se/~peb ---
Re: Math font problem in Mac-LyX 1.3.5
2004-10-14 kl. 15.32, Stephen Buonopane wrote: (I installed by double-clicking on each font file, and then choosing "install font" - of some strange reason the font file has been removed from the original location, but it works, so I'm happy) Peter, Which font files are you double clicking on? I am guessing you went into LyX.app/Contents/Resources/Fonts using Go To Folder from the Finder. All of them (the .ttf files) When I double click on one of these fonts it opens the FontBook application and there is no obvious "install font" option Are you using OS X 10.2, which does not have FontBook? I am using OS X 10.3.5? Strange, I tried to double-click on the files again, and it just opened the FontBook, and no "install font" option. Not even if I remove a font, and then double-click on the font file. But the first time I tried it opened the FontBook, and previewed the font, and there was a "install font" button. Sorry, I have no good explanation -- I'm not a MacOS expert. /Peter
Re: Math font problem in Mac-LyX 1.3.5
Thanks for the tip; I simply installed the font files in LyX.app/Contents/Resources/Fonts, and now it works! (I installed by double-clicking on each font file, and then choosing "install font" - of some strange reason the font file has been removed from the original location, but it works, so I'm happy) /Peter Ljunglöf I wrote: BUT: there's another problem now: Math symbols becomes garbage! I've tried several fonts and sizes, and the result is the same. The old version (1.3.4) still works fine. (Note: it's just the LyX window that looks strange -- the LaTeX code and the dvi files are just fine). Stephen Buonopane and Jean-Marc Lasgouttes wrote: Stephen> This is a problem that many have been experiencing on Stephen> Lyx/Mac. In my case it happens in both 1.3.4 and 1.3.5. There Stephen> are some workarounds that involve copying some font files Stephen> from Lyx.app bundle to your user/Library/Fonts directory. Stephen> Search the lyx-users list and also lyx-devel there should be Stephen> more detailed instructions. Unfortunately they are not Stephen> foolproof...in my case it did not work. Good luck, Steve Jean-Marc> Note that we have a tentative patch for this problem, and hopefully Jean-Marc> 1.3.5 will be updated soon-ish. ------- --- Peter Ljunglöf PhD student, Göteborg University -- --- [EMAIL PROTECTED] http://www.cs.chalmers.se/~peb ---
Math font problem in Mac-LyX 1.3.5
Hi all, I've just installed the new Mac-LyX 1.3.5, and it seems faster on my 120 page document than 1.3.4 was, so I guess the efficiency problem is partly solved (but it's still only about 1/2 as fast as LyX/Xforms). BUT: there's another problem now: Math symbols becomes garbage! I've tried several fonts and sizes, and the result is the same. The old version (1.3.4) still works fine. (Note: it's just the LyX window that looks strange -- the LaTeX code and the dvi files are just fine). I've put some pictures of how it looks and how it looked, together with the source LyX file on my webpage (I don't want to send images by mail): http://www.cs.chalmers.se/~peb/temp/ regards, Peter Ljunglöf --- --- Peter Ljunglöf PhD student, Göteborg University -- --- [EMAIL PROTECTED] http://www.cs.chalmers.se/~peb ---
Keyboard switching between documents?
Hi, I have a question on keyboard bindings and .bind files When working on multiple documents at once, it's nice to be able to switch between documents (buffers) fast. I have tried a bit to add this feature to my personal .bind file, but without success so far. Q: Is it possible to make a .bind file for keyboard switching between open documents/buffers? * Either, binding "C-M-Left" to "next buffer" and "C-M-Right" to "previous buffer". * Or, an alternative, binding "C-M-1" to "buffer nr 1" and "C-M-2" to "buffer nr 2" and "C-M-3" to "buffer nr 3" etc. I know there is a function "buffer-switch", but it has to get the full filename as argument. And I know that it is possible to use bookmarks, but then I have to save the bookmark everytime I leave the buffer. regards, Peter --- --- Peter Ljunglöf PhD student, Göteborg University -- --- [EMAIL PROTECTED] http://www.cs.chalmers.se/~peb ---
Re: Mac-LyX is slow
Hi, thanks for the reply, Bennett. 2004-09-29 at 16.17, Bennett Helm wrote: On Sep 29, 2004, at 4:59 AM, Peter Ljunglöf wrote: 1) The native LyX/Mac port has become terribly slow -- it takes several seconds just to open a math-macro (with arguments), and writing inside a math formula can be as slow as 1 character per second. Editing the main text is also slow, but not that much. I haven't experienced speeds anywhere near that slow on a 466MHz iBook. It was quite fast when I only had 20-30 pages. But now I'm reaching 120 pages, and it's a pain to work with. I know I could split the document into several parts, but I like having one document to work with, and since LyX/Xforms is fast I stick to that. At least for now. But this reminds me of a question of keyboard binding. I send that question as a separate mail though. 2) So I tried both LyX/Qt and LyX/Xforms, installing via fink. LyX/Qt is much faster, and LyX/Xforms is lightning fast! Q: Why the extreme differences? Is there any way to make LyX/Mac faster (it has the best interface, so I'd want to use it) The next version of LyX/Mac will be compiled with an updated (and somewhat faster) version of Qt. Hopefully performance will be acceptable for you. Yes, let's hope so.. 3) The truetype screen fonts look bad -- antialiasing seems not to be working. This is true for both Qt and Xforms. Now I'm using the Xforms interface with bitmap fonts -- it's fast and looks, well, it's readable at least... Q: Can I turn on antialiasing? I believe X11 has antialiasing on by default. LyX/Mac should be antialiased as well. Yes, my LyX/Mac version has antialiasing on. But not LyX/Xforms. How do I know if X11 has antialiasing on? (xdvi and gv shows antialiased text). 4) I also have some kind of X11 problem. The apple cmd key functions as LyX meta, as it does with e.g. X11/emacs. (I have unchecked "Follow system keyboard layout" and "Enable key equivalents under X11" in X11 preferences). BUT: sometimes, I have not figured out when, LyX forgets that cmd/meta exists -- i.e. pressing "cmd-q a" gives me "qa", and not greek alpha. Q: Has anyone got any idea for this problem? I haven't experienced this problem with other X11 programs, but it's been a very long time since I tried LyX on X11. Perhaps we could be more helpful if you could figure out a pattern to the problem. (Do these problems occur for other programs run under X11 in those cases? -- It might be an X11 problem, then.) Ok, this problem is solved - it was a bad X11 init file... regards, Peter --- --- Peter Ljunglöf PhD student, Göteborg University -- --- [EMAIL PROTECTED] http://www.cs.chalmers.se/~peb ---
Mac-LyX is slow
Hi all, this mail concerns the different LyX's for Mac. I'm writing my thesis in LyX on my 1GHz Powerbook G4 (1GB of memory), and have reached about 120 pages so far. The thesis is about computational linguistics, meaning that I have some mathematical formulae (say 5 per page or so), but most of them are quite simple. I consider myself not an expert, but quite advanced user of both LaTeX and LyX; but my expertise in unix/X11 is not equally good... I'm using LyX version 1.3.4. So, now to my problems/questions: 1) The native LyX/Mac port has become terribly slow -- it takes several seconds just to open a math-macro (with arguments), and writing inside a math formula can be as slow as 1 character per second. Editing the main text is also slow, but not that much. 2) So I tried both LyX/Qt and LyX/Xforms, installing via fink. LyX/Qt is much faster, and LyX/Xforms is lightning fast! Q: Why the extreme differences? Is there any way to make LyX/Mac faster (it has the best interface, so I'd want to use it) But now I encounter other problems: 3) The truetype screen fonts look bad -- antialiasing seems not to be working. This is true for both Qt and Xforms. Now I'm using the Xforms interface with bitmap fonts -- it's fast and looks, well, it's readable at least... Q: Can I turn on antialiasing? 4) I also have some kind of X11 problem. The apple cmd key functions as LyX meta, as it does with e.g. X11/emacs. (I have unchecked "Follow system keyboard layout" and "Enable key equivalents under X11" in X11 preferences). BUT: sometimes, I have not figured out when, LyX forgets that cmd/meta exists -- i.e. pressing "cmd-q a" gives me "qa", and not greek alpha. Q: Has anyone got any idea for this problem? Finally, I would really like to use the native LyX/Mac port, and hope that the speed will be improved soon. regards, Peter Ljunglöf --- --- Peter Ljunglöf PhD student, Göteborg University -- --- [EMAIL PROTECTED] http://www.cs.chalmers.se/~peb ---