Some LyX layout questions
I'm working on a self published book project in LyX. The book is a compilation of my articles that were previously published on the web. The book is just about finished, and I've figured out most of the stuff that I needed to customise, but there are a few fine tuning issues that I need to sort out. I am using the Komascript book class. I'd be very grateful for any suggestions that anyone can offer. I'll include all of the queries in this single post Chapter header I'm having difficulties suppressing the headers at the beginning of the book. The first Chapter is a starred chapter (Introduction) and as a result, the contents header leaks into it. This means that header for pages in my introduction says contents. I have tried using \thispagestyle{empty} in various places but it doesn't seem to surpress the contents header. Is there a way to assert a starred chapter heading as the current chapter in the headings? I have used some ERT to add the introduction to the contents. Another possibility would be to find a way to suppress the chapter header in the contents. I don't mind if headings are switched off until the first numbered chapter. Text on part pages Is there a way of putting text on part pages? I've seen some references to doing this but I've not been able to find a solution that can be applied to LyX. Adding an imported image would be even better. Margin titles Is it possible to have margin titles that hang slightly into the outside margins of the page? Chapters at top of page Is it possible to move the chapter titles to to the top of the page? As it stands, the chapter title starts about two inches from the top of the page. I suspect that a solution involves the sectsty package but I can't work out how to do it. Thanks in advance for any help. -- http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek culture freelance writer
Re: Include image in title page when documentclass = report
On Fri, 2008-08-22 at 11:20 +0200, Matthieu Stigler wrote: Hello I want to include an image in the title page. However, I see that using the class report puts automatically the image at the second page... is there a way to force the image to be on the first page within report documentclass? thank you! Mat You can use (for example) Ctrl-Enter after your Title Environment then InsertGraphics ... The image will be located in the title page after the Title. /Adi
Does anyone know how to import WIKI pages into lyx.
Currently I am preparing teaching materials for students. I found there are some wonderful things in WIKI. I hope I can directly import them into my materials. But the wiki page is not completely same as latex. For example, If ''N'' is a discrete random variable taking values on some subset of the non-negative [[integer|integers]], {''0,1, ...''}, then the ''probability-generating function'' of ''N'' is defined as: :mathG(x) = \textrm{E}(x^N) = \sum_{n=0}^{\infty}f_N(n)x^n,/math where ''fsubN/sub'' is the probability mass function of ''N''. Note that the equivalent notation ''G''sub''N''/sub is sometimes used to distinguish between the probability-generating functions of several random variables. In latex, N should be $N$, ''G''sub''N''/sub should be $G_N$. Does anyone have idea on this matter? Many thanks! 2008-08-23 wangyq
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
Steve Litt wrote: I have one book written in stone age LyX in 2001, using Dekl Tsur's color character style workaround. It's been upgraded to 1.4.2, and compiles on 1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in 1.5.6. But it has to be done :-) Would it be worth waiting for 1.6? I've been using it for a while. I'm finding 1.6 RC1 is crashy but usable on Windows. The testament to how good it is is that I'm willing to work around the occasional crashes rather than go back a version. You'd have to ask the developers what their ETA for the stable release though. -- http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek culture freelance writer
Re: Include image in title page when documentclass = report
On Fri, 2008-08-22 at 11:20 +0200, Matthieu Stigler wrote: Hello I want to include an image in the title page. However, I see that using the class report puts automatically the image at the second page... is there a way to force the image to be on the first page within report documentclass? thank you! Mat You can use (for example) Ctrl-Enter after your Title Environment then InsertGraphics ... The image will be located in the title page after the Title. /Adi Thank you for your help! I tried it and this works, but I'm unable to put spaces between the title and the image. As I wish to make something more complicate (a logo at the top, a picture at the bottom), I tried to use the \begin{titlepage} environment. This works but not entirely since the pictures are printed whith pdflatex (version pdf of the pictures) but not with the postscript (version pdf of the pictures). And there is still a spacing problem, the first image comes at the middle and not at the top... maybe should I just forget this idea and make myself the first page in a usual environment and then see with the counting of the images? Thank you!! Mattheiu
label and counter in custom layout
Hi all. I'm trying to create a custom layout. What I want is a style to display a counter at the beginning of the paragraph, automatically incremented. In LyX 1.5.3, I followed the customisation guide and ended up with: Counter Name Mycounter End Style My_Style LatexType Command LatexName emph LabelType Counter LabelCounterMycounter LabelSepxx LeftMargin xx ParSkip 0.0 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left End (nevermind the boring \emph{} command, at this stage it is used just as a placeholder) This doesn't work as expected, and I don't know what I'm missing. I was expecting to see a number at the beginning of the line, namely the value of Mycounter. Any help is much appreciated.
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
This doesn't answer the original question, nor directly apply to the response below it. However, I'd just like to state that I've been getting the 1.6 development version via svn every couple of days, and compiling it on linux. It's wonderful thus far: no crashes; nice interface; wonderful new capabilities, such as the split-screen thing and view of the LaTeX source at the same time. I think it'll be a fabulous release, and is, in my opinion, probably deserving of a 2.0 version number. C.O. - Original Message From: killermike [EMAIL PROTECTED] To: lyx-users@lists.lyx.org Sent: Saturday, August 23, 2008 4:40:32 AM Subject: Re: Any words of wisdom switching from 1.4.2 to 1.5.6? Steve Litt wrote: I have one book written in stone age LyX in 2001, using Dekl Tsur's color character style workaround. It's been upgraded to 1.4.2, and compiles on 1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in 1.5.6. But it has to be done :-) Would it be worth waiting for 1.6? I've been using it for a while. I'm finding 1.6 RC1 is crashy but usable on Windows. The testament to how good it is is that I'm willing to work around the occasional crashes rather than go back a version. You'd have to ask the developers what their ETA for the stable release though. -- http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek culture freelance writer
Re: Include image in title page when documentclass = report
Thank you for your help! I tried it and this works, but I'm unable to put spaces between the title and the image. You can control the space between lines Insert Formatting Vertical space if you set spacing to custom, then you may set the value of any unit you choose (mm, cm, pt ...etc) Regards was
Re: Does anyone know how to import WIKI pages into lyx.
On Sat, 23 Aug 2008, wangyq wrote: If ''N'' is a discrete random variable taking values on some subset of the non-negative [[integer|integers]], {''0,1, ...''}, then the ''probability-generating function'' of ''N'' is defined as: :mathG(x) = \textrm{E}(x^N) = \sum_{n=0}^{\infty}f_N(n)x^n,/math where ''fsubN/sub'' is the probability mass function of ''N''. Note that the equivalent notation ''G''sub''N''/sub is sometimes used to distinguish between the probability-generating functions of several random variables. I don't believe there are tools for this unfortunately. However, as for LaTeX math, try inserting the text into a LyX document. Then mark the math bit and press Ctrl-m. This will turn it into a formula. HTH /Christian -- Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
On Saturday 23 August 2008 06:40:32 am killermike wrote: Steve Litt wrote: I have one book written in stone age LyX in 2001, using Dekl Tsur's color character style workaround. It's been upgraded to 1.4.2, and compiles on 1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in 1.5.6. But it has to be done :-) Would it be worth waiting for 1.6? Definitely not. There's a high probability that 1.6 will require a Qt version higher than what my distribution gives me, requiring a HUGE expenditure of effort and troubleshooting. I had this problem moving up to 1.5.3 on Mandriva 2007. I've had this problem several times. Therefore, I limit LyX upgrades to versions giving a must have capability. For me, there have been only two must have capabilities -- character styles and outline mode. I'll probably stick with 1.5.6 until upgrading to Mandriva 2009 in mid 2009. Layout modules are pretty darned cool, but I can live without them for another year. SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
New ps2pdf can screw up, or else Acroread 8 screws up
Hi all, The new ps2pdf can screw up -- it can fail to correctly show Author, Title and the like when viewed in Acroread 8. I haven't tried viewing PDFs built with new ps2pdf on old Acroreads, so I can't draw a definitive conclusion. So I used ps2pdf12, and all the properties read correctly within Acroread 8. In my case, an old, lowest common denominator PDF is best. YMMV. But be aware, if your properties start screwing up in Acroread 8 (or maybe other acroreads), it might be as simple as your version of ps2pdf. SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: funny bug in bibliography
Florin Oprina wrote: Well, it's good to know it's fixed. I'm dying to see the new 1.6 version! Binaries are available for rc1, which is generally pretty stable. There are some crashes we still need to get at, but people are using it for serious work. You can see what 1.6 will be like, anyway. There won't be any significant new features now. rh On Sat, Aug 23, 2008 at 1:34 AM, rgheck [EMAIL PROTECTED] wrote: Johannes Knaus wrote: Hi Florin, I can confirm this for Lyx 1.5.6 and 1.6.x. This should be fixed in 1.6. I've just checked it, and it works fine for me. I'd send a screenshot, but the mailer won't let me. rh I realized this already but as the typesetting is ok, I thought this was maybe some weird but expected behaviour of Lyx. But as you pointed it out, it seems to be an error. Maybe you could post it on the bugtracker? http://bugzilla.lyx.org/ Grüße, Johannes Am 22.08.2008 um 13:01 schrieb Florin Oprina: Hi all. Today I've seen the funniest bug in LyX: I have a paper which uses natbib for citations. In my bib database, I have an entry which says: @ARTICLE{kageyama89, author = {Kageyama, Tarō}, title = {The Place of Morphology in the Grammar: Verb-Verb compounds in {J}apa nese}, journal = {Yearbook of Morphology}, year = {1989}, volume = {2}, pages = {73--94} } Now, when I try to cite this paper, in LyX I see Kageyama (Yearbook of Morphology), instead of the expected Kageyama(1989) If I typeset the paper, the result is just fine, so the problem is only with what LyX displays in the editor. I thought there is something wrong with my bib database, but everything was fine. WTF? And then it hit me: the word Year in the journal name must be the culprit. Probably LyX interprets it as some sort of keyword and displays that instead of the real year of publication. I played around a bit and my suspicion was confirmed: (i) removing Year from the journal name produces the correct result, as does (ii) changing the order between the journal and year fields in the bibfile. This happens in LyX 1.5.3 -- Sometimes I lie awake at night, and ask, Where have I gone wrong? Then a voice says to me, This is going to take more than one night. (Charlie Brown)
Re: Some LyX layout questions
killermike wrote: Chapter header I'm having difficulties suppressing the headers at the beginning of the book. The first Chapter is a starred chapter (Introduction) and as a result, the contents header leaks into it. This means that header for pages in my introduction says contents. I have tried using \thispagestyle{empty} in various places but it doesn't seem to surpress the contents header. Is there a way to assert a starred chapter heading as the current chapter in the headings? I have used some ERT to add the introduction to the contents. Another possibility would be to find a way to suppress the chapter header in the contents. I don't mind if headings are switched off until the first numbered chapter. Exactly what you will want, I don't know. But try in ERT, on the first line of the introduction: \markboth{Introduction}{Introduction}. Note that you'll have to put font changes into that, too, if you want them to show up in the output. By the way, you can let LyX do the font stuff for you. (This trick should be better known.) Do this: [ERT: \markboth{]Now Type In LyX[ERT: }{]More Stuff in LyX[ERT: }] And you can style Now Type In LyX any way you want, using bold, italic, whatever. Text on part pages Is there a way of putting text on part pages? I've seen some references to doing this but I've not been able to find a solution that can be applied to LyX. Adding an imported image would be even better. Look at the titlesec package. You can do almost anything with it. Margin titles Is it possible to have margin titles that hang slightly into the outside margins of the page? Yes. You can use fancy headers for this, and you can customize them endlessly. See section 12 of fancyhdr.dvi. Chapters at top of page Is it possible to move the chapter titles to to the top of the page? As it stands, the chapter title starts about two inches from the top of the page. I suspect that a solution involves the sectsty package but I can't work out how to do it. Yes, this can be done. Probably titlesec would do it, but I'm not sure. You may have to dig into your LaTeX class and redefine whatever is being used to create the heading. In book.cls, it is here: [EMAIL PROTECTED] [EMAIL PROTECTED] {\parindent \z@ \raggedright \normalfont \ifnum [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] \huge\bfseries [EMAIL PROTECTED] \thechapter \par\nobreak \vskip 20\p@ \fi \fi [EMAIL PROTECTED] \Huge \bfseries #1\par\nobreak \vskip 40\p@ }} If you were using book.cls, you could just copy this into your preamble and remove the first \vspace line, or change it. (You would need to put this between \makeatletter and \makeatother commands, as well.) rh
Re: label and counter in custom layout
Florin Oprina wrote: Hi all. I'm trying to create a custom layout. What I want is a style to display a counter at the beginning of the paragraph, automatically incremented. In LyX 1.5.3, I followed the customisation guide and ended up with: Counter Name Mycounter End Style My_Style LatexType Command LatexName emph LabelType Counter LabelCounterMycounter LabelSepxx LeftMargin xx ParSkip 0.0 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left End (nevermind the boring \emph{} command, at this stage it is used just as a placeholder) This doesn't work as expected, and I don't know what I'm missing. I was expecting to see a number at the beginning of the line, namely the value of Mycounter. You might need a LabelString command, like: LabelString \arabic{Mycounter} This tells LyX what to print as the label, whereas the LabelCounter, I think, tells LyX which counter to increment. rh Any help is much appreciated.
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
Steve Litt wrote: I have one book written in stone age LyX in 2001, using Dekl Tsur's color character style workaround. It's been upgraded to 1.4.2, and compiles on 1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in 1.5.6. But it has to be done :-) You might want to write a dirty script that will transform those into legitimate character styles. That may be the source of your problems. Hard to know, though. rh
Re: 1.5.6: Are layouts now findable in the current directory?
Steve Litt wrote: Is my impression correct, that 1.5.6 reads layout files in the current directory. Yes, it is supposed to do so. But be careful: If you move the file without moving the layout, chaos results. rh
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
By the way, Mandriva 2008.1 surely ships with a Qt version sufficient for 1.6. I can't remember what we need, but it may be just 4.2. It's 4.3 at most. rh
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
Steve Litt wrote: Definitely not. There's a high probability that 1.6 will require a Qt version higher than what my distribution gives me, requiring a HUGE expenditure of effort and troubleshooting. I had this problem moving up to 1.5.3 on Mandriva 2007. I've had this problem several times. The package list on the web suggests that Mandriva 2008.1 includes Qt 4.3.4, which is very much enough for 1.6, and will likely even be enough for 1.7. We try not to be overly cutting edge with what we require there. Therefore, I limit LyX upgrades to versions giving a must have capability. For me, there have been only two must have capabilities -- character styles and outline mode. The outliner is greatly improved in 1.6. rh
Re: Some LyX layout questions
I'm working on a self published book project in LyX. The book is a compilation of my articles that were previously published on the web. The book is just about finished, and I've figured out most of the stuff that I needed to customise, but there are a few fine tuning issues that I need to sort out. I am using the Komascript book class. I'd be very grateful for any suggestions that anyone can offer. I'll include all of the queries in this single post Chapter header I'm having difficulties suppressing the headers at the beginning of the book. The first Chapter is a starred chapter (Introduction) and as a result, the contents header leaks into it. This means that header for pages in my introduction says contents. I have tried using \thispagestyle{empty} in various places but it doesn't seem to surpress the contents header. Is there a way to assert a starred chapter heading as the current chapter in the headings? I have used some ERT to add the introduction to the contents. Another possibility would be to find a way to suppress the chapter header in the contents. I don't mind if headings are switched off until the first numbered chapter. In preamble put a thing like: ChapterPageStyle{empty} See doc because I am not sure of exactly sintax. Text on part pages Is there a way of putting text on part pages? I've seen some references to doing this but I've not been able to find a solution that can be applied to LyX. Adding an imported image would be even better. Margin titles Is it possible to have margin titles that hang slightly into the outside margins of the page? Chapters at top of page Is it possible to move the chapter titles to to the top of the page? As it stands, the chapter title starts about two inches from the top of the page. I suspect that a solution involves the sectsty package but I can't work out how to do it. For last to problem you can try with titlesec package. With titlesec you get total control over title parameters and TOC. Regards Marcelo ¡Buscá desde tu celular! Yahoo! oneSEARCH ahora está en Claro http://ar.mobile.yahoo.com/onesearch
Package ifpdf Error: Name clash, \ifpdf is already defined.
Hi all, One of my books, that used to compile, now gives me the following error message: Package ifpdf Error: Name clash, \ifpdf is already defined. I can toggle the symptom on and off by including or excluding the following: \usepackage[bookmarks, plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true] {hyperref} Trouble is, without that line, I can't get clickable chapters in the table of contents. Also, another one of my books has that line and doesn't exhibit this symptom. I've tried exploiting the differences, but with two 100 page books, each with sizeable layout files, I'm hoping one of you has seen this before so I don't need to keep carving things in half til I can toggle the problem with something other than the hyperref package. Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: Error message after Installation with current lyx-webinstaller (windows)
I appear to be having the same problem as the originator of this thread. First I thought that maybe my packages needed updating. So, using the advice in http://n2.nabble.com/cannot-find-styles-(ms-windows)-td477787.html#a477788 THIS thread. I tried updating all my packages. It turns our that four, out of about 50 or so (I didn't really count all of them) that needed updating, simply wouldn't install at all. (I can forward you the error log files if it would help. I also noted the error messages that the MiKTeX updater gave me for each failed update. I was unable to resolve the problem with these four on my own.) Afterwards, I was still getting the same error messages when trying to open the Tutorial and other help documents -- so clearly updating my packages wasn't the solution. Then I found this thread. If you start a new document and go to Document - Settings... - Document Class - Document class, are *all* the classes listed as unavailable, or just some (including scrbook)? Checking my document classes as per the instructions indicates that most, but not all classes are unavailable, including scrbook. Not being very sure what to do next, I forged on with the advice posted here. If they are all unavailable, LyX had a problem configuring itself. In that case, you can try the following: 1. Make sure that the MiKTeX bin directory is on your system command path. THIS advice has me very puzzled. WHAT does this mean?? Where do I check this? I checked the paths under Tools and Settings. Here's an image of what it shows for my paths. http://pic30.picturetrail.com/VOL1511/6799618/14409421/331519515.jpg I noticed that my Documents Templates path seemes hosed up. It reads: C:\Program Files\LyX15\Resources\.\templates\ But when I check the actual path, it's more like C:\Program Files\LyX15\Resources\templates\ (That's WITHOUT the extra .) However, I'm not smart enough to know if this is right or wrong. Also, I've tried changing it, and it has had no effect on anything as far as I can tell, PLUS it keeps changing back every time I re-open LyX. I also note that in this window, my PATH settings seem to be: C:\Program Files\LyX15\bin;C:\Program Files\LyX15\python;C:\Program Files\LyX15\ghostscript\bin;C:\Program Files\LyX15\imagemagick If THIS is the path that I'm supposed to be checking, it clearly says nothing whatsoever about MiKTeX. Am I supposed to type in something different here? If so, what? 2. Tools - Reconfigure, then restart LyX and see if things are better. I've tried various times to Reconfigure LyX, but that hasn't resolved my problem. If not ... 3. At a DOS prompt, run 'kpsewhich article.cls'. If MiKTeX doesn't find article.cls, your MiKTeX installation is somehow screwed up. If the OS doesn't find the kpsewhich command, either you didn't get the bin directory on the command path or your MiKTeX installation is severely messed up. Assuming MiKTeX is ok ... I tried the kpsewhich command at a dos prompt. (at C:\ that is) and I get a message back that says The system cannot execute the specified program. I'm not sure what exactly this message means, but it can't be good. At this point I have to confess that I'm WAY beyond my computer knowledge and have absolutely no idea of what to do. For all these hours of puzzling over this, I seem to be no further towards figuring out how to make LyX properly open the help documents. And if those won't open, how can I be confident that anything else I may want to do in LyX would work properly? Can you help me out?? ER...for reference, I am running Windows XP SP3, and used the installer LyX-1.5.6-Installer.exe to install. Based on the comments in this thread, that appears to have been the wrong one to use. Should I uninstall everything and start all over? If so, what all do I need to uninstall? -- View this message in context: http://n2.nabble.com/Error-message-after-Installation-with-current-lyx-webinstaller-%28windows%29-tp477745p779154.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Package ifpdf Error: Name clash, \ifpdf is already defined.
On Saturday 23 August 2008 07:43:30 pm Steve Litt wrote: Hi all, One of my books, that used to compile, now gives me the following error message: Package ifpdf Error: Name clash, \ifpdf is already defined. I can toggle the symptom on and off by including or excluding the following: \usepackage[bookmarks, plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true] {hyperref} More info. I got the problem down to a single hello world lyx file and a 7 line layout file. I can now toggle the problem by changing the layout's base document class between memoir and book. The original was written with memoir and fails. Changing it to book allows it to compile. S, I need to find a hyperref substitute that works within memoir. As I remember, memoir is pretty sophisticated, so it probably has its own hyperref substitute. Anyone have any ideas? Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: Error message after Installation with current lyx-webinstaller (windows)
grapeshot wrote: If you start a new document and go to Document - Settings... - Document Class - Document class, are *all* the classes listed as unavailable, or just some (including scrbook)? Checking my document classes as per the instructions indicates that most, but not all classes are unavailable, including scrbook. If any of them are marked available, then LyX was able to find MikTeX. If they are all unavailable, LyX had a problem configuring itself. In that case, you can try the following: 1. Make sure that the MiKTeX bin directory is on your system command path. THIS advice has me very puzzled. WHAT does this mean?? Where do I check this? This is a Windows issue, not something you would fix in LyX. In XP, right click My Computer, click Properties, Advanced, Environment Variables. You'll see varialbes named Path in both lists; the one on top is used only when you're logged in, while the one on the bottom is used when any user is logged in. But this would be to check whether MikTeX was on the system path, and apparently it is, or else the LyX configuration script would not find it and LyX would say that none of the document classes are available. I checked the paths under Tools and Settings. Here's an image of what it shows for my paths. http://pic30.picturetrail.com/VOL1511/6799618/14409421/331519515.jpg I noticed that my Documents Templates path seemes hosed up. It reads: C:\Program Files\LyX15\Resources\.\templates\ But when I check the actual path, it's more like C:\Program Files\LyX15\Resources\templates\ (That's WITHOUT the extra .) However, I'm not smart enough to know if this is right or wrong. Also, I've tried changing it, and it has had no effect on anything as far as I can tell, PLUS it keeps changing back every time I re-open LyX. The dot translates as this directory, so it's redundant but harmless. I also note that in this window, my PATH settings seem to be: C:\Program Files\LyX15\bin;C:\Program Files\LyX15\python;C:\Program Files\LyX15\ghostscript\bin;C:\Program Files\LyX15\imagemagick If THIS is the path that I'm supposed to be checking, it clearly says nothing whatsoever about MiKTeX. Am I supposed to type in something different here? If so, what? No, the system command path (which tells DOS where to look when you run a program that's not in the current directory) was the concern, but only if *no* classes are available. 2. Tools - Reconfigure, then restart LyX and see if things are better. I've tried various times to Reconfigure LyX, but that hasn't resolved my problem. If not ... 3. At a DOS prompt, run 'kpsewhich article.cls'. If MiKTeX doesn't find article.cls, your MiKTeX installation is somehow screwed up. If the OS doesn't find the kpsewhich command, either you didn't get the bin directory on the command path or your MiKTeX installation is severely messed up. Assuming MiKTeX is ok ... I tried the kpsewhich command at a dos prompt. (at C:\ that is) and I get a message back that says The system cannot execute the specified program. I'm not sure what exactly this message means, but it can't be good. I can't argue with your assessment of that. :-) It sounds as though Windows is finding kpsewhich (which is a MikTeX program) but that the file is corrupted or not a DOS program. (This could happen if you somehow installed, say, a Linux TeX distribution, except that then it wouldn't be MikTeX.) At this point I have to confess that I'm WAY beyond my computer knowledge and have absolutely no idea of what to do. For all these hours of puzzling over this, I seem to be no further towards figuring out how to make LyX properly open the help documents. And if those won't open, how can I be confident that anything else I may want to do in LyX would work properly? Can you help me out?? ER...for reference, I am running Windows XP SP3, and used the installer LyX-1.5.6-Installer.exe to install. Based on the comments in this thread, that appears to have been the wrong one to use. Should I uninstall everything and start all over? If so, what all do I need to uninstall? Did you install MikTeX yourself, or did the LyX-1.5.6-Installer.exe install it? I don't think that installer contains MikTeX, but I get confused by the various installer names. If DOS won't run kpsewhich, then I think there may be a problem with your MikTeX installation. If so, reinstalling LyX won't fix it; you'll need to either repair MikTeX or uninstall/reinstall MikTeX. But it's still a bit unclear what's going on; I've never seen that particular error message with kpsewhich. (FYI, kpsewhich is a program that tells you where your LaTeX distribution, in this case MikTeX, is finding various LaTeX files -- and, by implication, *if* it's finding those files.) Let's try a different tack here. Start in LyX, by looking at Help - LaTeX Configuration. Look for a few of the missing classes, and note down what package
Memoir/hyperref conflict is a known issue
Hi all, I need your help. It turns out to be a known problem that you can't use hyperref with Memoir. However, there's supposedly a fix, known as memhfixc.sty. Supposedly, if you \usepackage{memhfixc} AFTER you \usepackage{hyperref}, they can coexist. See this: http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us However, when I make a trivial latex file based on the preceding document, it fails. Here's the file: \documentclass{memoir} \usepackage{hyperref} \usepackage{memhfixc} \usepackage{mempatch} \begin{document} hello world. \end{document} And here's the error message it produces: (/usr/share/texmf/tex/latex/oberdiek/kvoptions.sty) Implicit mode ON; LaTeX internals redefined (/usr/share/texmf/tex/latex/url/url.sty) (/usr/share/texmf/tex/latex/oberdiek/bitset.sty (/usr/share/texmf/tex/latex/oberdiek/intcalc.sty) (/usr/share/texmf/tex/latex/oberdiek/bigintcalc.sty (/usr/share/texmf/tex/latex/oberdiek/pdftexcmds.sty))) (/usr/share/texmf/tex/latex/oberdiek/kvsetkeys.sty) (/usr/share/texmf/tex/latex/oberdiek/atbegshi.sty (/usr/share/texmf/tex/latex/oberdiek/ifpdf.sty ! Package ifpdf Error: Name clash, \ifpdf is already defined. See the ifpdf package documentation for explanation. If I comment out the hyperref, it compiles perfectly. Can someone please help me: 1) Please try to reproduce my results with the file I've quoted in here 2) Please make suggestions of how I can have colored, clickable table of contents in my Ebook. Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
PDF, DVI, and PS viewers don't work anymore
Up to a couple of hours I was able to see my lyx file in PDF format, but it mysteriously stopped working. If I attempt DVI or PS, it doesn't do anything, as if I didn't even click the buttons. Are there perhaps some processes hanging? Any help would be appreciated. Thanks -- View this message in context: http://n2.nabble.com/PDF%2C-DVI%2C-and-PS-viewers-don%27t-work-anymore-tp779260p779260.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: label and counter in custom layout
On Sun, Aug 24, 2008 at 6:01 AM, rgheck [EMAIL PROTECTED] wrote: You might need a LabelString command, like: LabelString \arabic{Mycounter} This tells LyX what to print as the label, whereas the LabelCounter, I think, tells LyX which counter to increment. rh Yes! That did the trick! Thank you!
How to make some paragraphs uselesstermporally?
Does anyone know how to make some paragraphs useless termporally? Now I want some paragraphs disappear termporally?. But I dont want to delete them, because I will use it in future. In WinEdt, the symbol % can do the job. Which symbol in lyx is charge of this function? 2008-08-24 wangyq
Some LyX layout questions
I'm working on a self published book project in LyX. The book is a compilation of my articles that were previously published on the web. The book is just about finished, and I've figured out most of the stuff that I needed to customise, but there are a few fine tuning issues that I need to sort out. I am using the Komascript book class. I'd be very grateful for any suggestions that anyone can offer. I'll include all of the queries in this single post Chapter header I'm having difficulties suppressing the headers at the beginning of the book. The first Chapter is a starred chapter (Introduction) and as a result, the contents header leaks into it. This means that header for pages in my introduction says contents. I have tried using \thispagestyle{empty} in various places but it doesn't seem to surpress the contents header. Is there a way to assert a starred chapter heading as the current chapter in the headings? I have used some ERT to add the introduction to the contents. Another possibility would be to find a way to suppress the chapter header in the contents. I don't mind if headings are switched off until the first numbered chapter. Text on part pages Is there a way of putting text on part pages? I've seen some references to doing this but I've not been able to find a solution that can be applied to LyX. Adding an imported image would be even better. Margin titles Is it possible to have margin titles that hang slightly into the outside margins of the page? Chapters at top of page Is it possible to move the chapter titles to to the top of the page? As it stands, the chapter title starts about two inches from the top of the page. I suspect that a solution involves the sectsty package but I can't work out how to do it. Thanks in advance for any help. -- http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek culture freelance writer
Re: Include image in title page when documentclass = report
On Fri, 2008-08-22 at 11:20 +0200, Matthieu Stigler wrote: Hello I want to include an image in the title page. However, I see that using the class report puts automatically the image at the second page... is there a way to force the image to be on the first page within report documentclass? thank you! Mat You can use (for example) Ctrl-Enter after your Title Environment then InsertGraphics ... The image will be located in the title page after the Title. /Adi
Does anyone know how to import WIKI pages into lyx.
Currently I am preparing teaching materials for students. I found there are some wonderful things in WIKI. I hope I can directly import them into my materials. But the wiki page is not completely same as latex. For example, If ''N'' is a discrete random variable taking values on some subset of the non-negative [[integer|integers]], {''0,1, ...''}, then the ''probability-generating function'' of ''N'' is defined as: :mathG(x) = \textrm{E}(x^N) = \sum_{n=0}^{\infty}f_N(n)x^n,/math where ''fsubN/sub'' is the probability mass function of ''N''. Note that the equivalent notation ''G''sub''N''/sub is sometimes used to distinguish between the probability-generating functions of several random variables. In latex, N should be $N$, ''G''sub''N''/sub should be $G_N$. Does anyone have idea on this matter? Many thanks! 2008-08-23 wangyq
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
Steve Litt wrote: I have one book written in stone age LyX in 2001, using Dekl Tsur's color character style workaround. It's been upgraded to 1.4.2, and compiles on 1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in 1.5.6. But it has to be done :-) Would it be worth waiting for 1.6? I've been using it for a while. I'm finding 1.6 RC1 is crashy but usable on Windows. The testament to how good it is is that I'm willing to work around the occasional crashes rather than go back a version. You'd have to ask the developers what their ETA for the stable release though. -- http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek culture freelance writer
Re: Include image in title page when documentclass = report
On Fri, 2008-08-22 at 11:20 +0200, Matthieu Stigler wrote: Hello I want to include an image in the title page. However, I see that using the class report puts automatically the image at the second page... is there a way to force the image to be on the first page within report documentclass? thank you! Mat You can use (for example) Ctrl-Enter after your Title Environment then InsertGraphics ... The image will be located in the title page after the Title. /Adi Thank you for your help! I tried it and this works, but I'm unable to put spaces between the title and the image. As I wish to make something more complicate (a logo at the top, a picture at the bottom), I tried to use the \begin{titlepage} environment. This works but not entirely since the pictures are printed whith pdflatex (version pdf of the pictures) but not with the postscript (version pdf of the pictures). And there is still a spacing problem, the first image comes at the middle and not at the top... maybe should I just forget this idea and make myself the first page in a usual environment and then see with the counting of the images? Thank you!! Mattheiu
label and counter in custom layout
Hi all. I'm trying to create a custom layout. What I want is a style to display a counter at the beginning of the paragraph, automatically incremented. In LyX 1.5.3, I followed the customisation guide and ended up with: Counter Name Mycounter End Style My_Style LatexType Command LatexName emph LabelType Counter LabelCounterMycounter LabelSepxx LeftMargin xx ParSkip 0.0 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left End (nevermind the boring \emph{} command, at this stage it is used just as a placeholder) This doesn't work as expected, and I don't know what I'm missing. I was expecting to see a number at the beginning of the line, namely the value of Mycounter. Any help is much appreciated.
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
This doesn't answer the original question, nor directly apply to the response below it. However, I'd just like to state that I've been getting the 1.6 development version via svn every couple of days, and compiling it on linux. It's wonderful thus far: no crashes; nice interface; wonderful new capabilities, such as the split-screen thing and view of the LaTeX source at the same time. I think it'll be a fabulous release, and is, in my opinion, probably deserving of a 2.0 version number. C.O. - Original Message From: killermike [EMAIL PROTECTED] To: lyx-users@lists.lyx.org Sent: Saturday, August 23, 2008 4:40:32 AM Subject: Re: Any words of wisdom switching from 1.4.2 to 1.5.6? Steve Litt wrote: I have one book written in stone age LyX in 2001, using Dekl Tsur's color character style workaround. It's been upgraded to 1.4.2, and compiles on 1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in 1.5.6. But it has to be done :-) Would it be worth waiting for 1.6? I've been using it for a while. I'm finding 1.6 RC1 is crashy but usable on Windows. The testament to how good it is is that I'm willing to work around the occasional crashes rather than go back a version. You'd have to ask the developers what their ETA for the stable release though. -- http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek culture freelance writer
Re: Include image in title page when documentclass = report
Thank you for your help! I tried it and this works, but I'm unable to put spaces between the title and the image. You can control the space between lines Insert Formatting Vertical space if you set spacing to custom, then you may set the value of any unit you choose (mm, cm, pt ...etc) Regards was
Re: Does anyone know how to import WIKI pages into lyx.
On Sat, 23 Aug 2008, wangyq wrote: If ''N'' is a discrete random variable taking values on some subset of the non-negative [[integer|integers]], {''0,1, ...''}, then the ''probability-generating function'' of ''N'' is defined as: :mathG(x) = \textrm{E}(x^N) = \sum_{n=0}^{\infty}f_N(n)x^n,/math where ''fsubN/sub'' is the probability mass function of ''N''. Note that the equivalent notation ''G''sub''N''/sub is sometimes used to distinguish between the probability-generating functions of several random variables. I don't believe there are tools for this unfortunately. However, as for LaTeX math, try inserting the text into a LyX document. Then mark the math bit and press Ctrl-m. This will turn it into a formula. HTH /Christian -- Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
On Saturday 23 August 2008 06:40:32 am killermike wrote: Steve Litt wrote: I have one book written in stone age LyX in 2001, using Dekl Tsur's color character style workaround. It's been upgraded to 1.4.2, and compiles on 1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in 1.5.6. But it has to be done :-) Would it be worth waiting for 1.6? Definitely not. There's a high probability that 1.6 will require a Qt version higher than what my distribution gives me, requiring a HUGE expenditure of effort and troubleshooting. I had this problem moving up to 1.5.3 on Mandriva 2007. I've had this problem several times. Therefore, I limit LyX upgrades to versions giving a must have capability. For me, there have been only two must have capabilities -- character styles and outline mode. I'll probably stick with 1.5.6 until upgrading to Mandriva 2009 in mid 2009. Layout modules are pretty darned cool, but I can live without them for another year. SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
New ps2pdf can screw up, or else Acroread 8 screws up
Hi all, The new ps2pdf can screw up -- it can fail to correctly show Author, Title and the like when viewed in Acroread 8. I haven't tried viewing PDFs built with new ps2pdf on old Acroreads, so I can't draw a definitive conclusion. So I used ps2pdf12, and all the properties read correctly within Acroread 8. In my case, an old, lowest common denominator PDF is best. YMMV. But be aware, if your properties start screwing up in Acroread 8 (or maybe other acroreads), it might be as simple as your version of ps2pdf. SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: funny bug in bibliography
Florin Oprina wrote: Well, it's good to know it's fixed. I'm dying to see the new 1.6 version! Binaries are available for rc1, which is generally pretty stable. There are some crashes we still need to get at, but people are using it for serious work. You can see what 1.6 will be like, anyway. There won't be any significant new features now. rh On Sat, Aug 23, 2008 at 1:34 AM, rgheck [EMAIL PROTECTED] wrote: Johannes Knaus wrote: Hi Florin, I can confirm this for Lyx 1.5.6 and 1.6.x. This should be fixed in 1.6. I've just checked it, and it works fine for me. I'd send a screenshot, but the mailer won't let me. rh I realized this already but as the typesetting is ok, I thought this was maybe some weird but expected behaviour of Lyx. But as you pointed it out, it seems to be an error. Maybe you could post it on the bugtracker? http://bugzilla.lyx.org/ Grüße, Johannes Am 22.08.2008 um 13:01 schrieb Florin Oprina: Hi all. Today I've seen the funniest bug in LyX: I have a paper which uses natbib for citations. In my bib database, I have an entry which says: @ARTICLE{kageyama89, author = {Kageyama, Tarō}, title = {The Place of Morphology in the Grammar: Verb-Verb compounds in {J}apa nese}, journal = {Yearbook of Morphology}, year = {1989}, volume = {2}, pages = {73--94} } Now, when I try to cite this paper, in LyX I see Kageyama (Yearbook of Morphology), instead of the expected Kageyama(1989) If I typeset the paper, the result is just fine, so the problem is only with what LyX displays in the editor. I thought there is something wrong with my bib database, but everything was fine. WTF? And then it hit me: the word Year in the journal name must be the culprit. Probably LyX interprets it as some sort of keyword and displays that instead of the real year of publication. I played around a bit and my suspicion was confirmed: (i) removing Year from the journal name produces the correct result, as does (ii) changing the order between the journal and year fields in the bibfile. This happens in LyX 1.5.3 -- Sometimes I lie awake at night, and ask, Where have I gone wrong? Then a voice says to me, This is going to take more than one night. (Charlie Brown)
Re: Some LyX layout questions
killermike wrote: Chapter header I'm having difficulties suppressing the headers at the beginning of the book. The first Chapter is a starred chapter (Introduction) and as a result, the contents header leaks into it. This means that header for pages in my introduction says contents. I have tried using \thispagestyle{empty} in various places but it doesn't seem to surpress the contents header. Is there a way to assert a starred chapter heading as the current chapter in the headings? I have used some ERT to add the introduction to the contents. Another possibility would be to find a way to suppress the chapter header in the contents. I don't mind if headings are switched off until the first numbered chapter. Exactly what you will want, I don't know. But try in ERT, on the first line of the introduction: \markboth{Introduction}{Introduction}. Note that you'll have to put font changes into that, too, if you want them to show up in the output. By the way, you can let LyX do the font stuff for you. (This trick should be better known.) Do this: [ERT: \markboth{]Now Type In LyX[ERT: }{]More Stuff in LyX[ERT: }] And you can style Now Type In LyX any way you want, using bold, italic, whatever. Text on part pages Is there a way of putting text on part pages? I've seen some references to doing this but I've not been able to find a solution that can be applied to LyX. Adding an imported image would be even better. Look at the titlesec package. You can do almost anything with it. Margin titles Is it possible to have margin titles that hang slightly into the outside margins of the page? Yes. You can use fancy headers for this, and you can customize them endlessly. See section 12 of fancyhdr.dvi. Chapters at top of page Is it possible to move the chapter titles to to the top of the page? As it stands, the chapter title starts about two inches from the top of the page. I suspect that a solution involves the sectsty package but I can't work out how to do it. Yes, this can be done. Probably titlesec would do it, but I'm not sure. You may have to dig into your LaTeX class and redefine whatever is being used to create the heading. In book.cls, it is here: [EMAIL PROTECTED] [EMAIL PROTECTED] {\parindent \z@ \raggedright \normalfont \ifnum [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] \huge\bfseries [EMAIL PROTECTED] \thechapter \par\nobreak \vskip 20\p@ \fi \fi [EMAIL PROTECTED] \Huge \bfseries #1\par\nobreak \vskip 40\p@ }} If you were using book.cls, you could just copy this into your preamble and remove the first \vspace line, or change it. (You would need to put this between \makeatletter and \makeatother commands, as well.) rh
Re: label and counter in custom layout
Florin Oprina wrote: Hi all. I'm trying to create a custom layout. What I want is a style to display a counter at the beginning of the paragraph, automatically incremented. In LyX 1.5.3, I followed the customisation guide and ended up with: Counter Name Mycounter End Style My_Style LatexType Command LatexName emph LabelType Counter LabelCounterMycounter LabelSepxx LeftMargin xx ParSkip 0.0 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left End (nevermind the boring \emph{} command, at this stage it is used just as a placeholder) This doesn't work as expected, and I don't know what I'm missing. I was expecting to see a number at the beginning of the line, namely the value of Mycounter. You might need a LabelString command, like: LabelString \arabic{Mycounter} This tells LyX what to print as the label, whereas the LabelCounter, I think, tells LyX which counter to increment. rh Any help is much appreciated.
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
Steve Litt wrote: I have one book written in stone age LyX in 2001, using Dekl Tsur's color character style workaround. It's been upgraded to 1.4.2, and compiles on 1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in 1.5.6. But it has to be done :-) You might want to write a dirty script that will transform those into legitimate character styles. That may be the source of your problems. Hard to know, though. rh
Re: 1.5.6: Are layouts now findable in the current directory?
Steve Litt wrote: Is my impression correct, that 1.5.6 reads layout files in the current directory. Yes, it is supposed to do so. But be careful: If you move the file without moving the layout, chaos results. rh
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
By the way, Mandriva 2008.1 surely ships with a Qt version sufficient for 1.6. I can't remember what we need, but it may be just 4.2. It's 4.3 at most. rh
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
Steve Litt wrote: Definitely not. There's a high probability that 1.6 will require a Qt version higher than what my distribution gives me, requiring a HUGE expenditure of effort and troubleshooting. I had this problem moving up to 1.5.3 on Mandriva 2007. I've had this problem several times. The package list on the web suggests that Mandriva 2008.1 includes Qt 4.3.4, which is very much enough for 1.6, and will likely even be enough for 1.7. We try not to be overly cutting edge with what we require there. Therefore, I limit LyX upgrades to versions giving a must have capability. For me, there have been only two must have capabilities -- character styles and outline mode. The outliner is greatly improved in 1.6. rh
Re: Some LyX layout questions
I'm working on a self published book project in LyX. The book is a compilation of my articles that were previously published on the web. The book is just about finished, and I've figured out most of the stuff that I needed to customise, but there are a few fine tuning issues that I need to sort out. I am using the Komascript book class. I'd be very grateful for any suggestions that anyone can offer. I'll include all of the queries in this single post Chapter header I'm having difficulties suppressing the headers at the beginning of the book. The first Chapter is a starred chapter (Introduction) and as a result, the contents header leaks into it. This means that header for pages in my introduction says contents. I have tried using \thispagestyle{empty} in various places but it doesn't seem to surpress the contents header. Is there a way to assert a starred chapter heading as the current chapter in the headings? I have used some ERT to add the introduction to the contents. Another possibility would be to find a way to suppress the chapter header in the contents. I don't mind if headings are switched off until the first numbered chapter. In preamble put a thing like: ChapterPageStyle{empty} See doc because I am not sure of exactly sintax. Text on part pages Is there a way of putting text on part pages? I've seen some references to doing this but I've not been able to find a solution that can be applied to LyX. Adding an imported image would be even better. Margin titles Is it possible to have margin titles that hang slightly into the outside margins of the page? Chapters at top of page Is it possible to move the chapter titles to to the top of the page? As it stands, the chapter title starts about two inches from the top of the page. I suspect that a solution involves the sectsty package but I can't work out how to do it. For last to problem you can try with titlesec package. With titlesec you get total control over title parameters and TOC. Regards Marcelo ¡Buscá desde tu celular! Yahoo! oneSEARCH ahora está en Claro http://ar.mobile.yahoo.com/onesearch
Package ifpdf Error: Name clash, \ifpdf is already defined.
Hi all, One of my books, that used to compile, now gives me the following error message: Package ifpdf Error: Name clash, \ifpdf is already defined. I can toggle the symptom on and off by including or excluding the following: \usepackage[bookmarks, plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true] {hyperref} Trouble is, without that line, I can't get clickable chapters in the table of contents. Also, another one of my books has that line and doesn't exhibit this symptom. I've tried exploiting the differences, but with two 100 page books, each with sizeable layout files, I'm hoping one of you has seen this before so I don't need to keep carving things in half til I can toggle the problem with something other than the hyperref package. Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: Error message after Installation with current lyx-webinstaller (windows)
I appear to be having the same problem as the originator of this thread. First I thought that maybe my packages needed updating. So, using the advice in http://n2.nabble.com/cannot-find-styles-(ms-windows)-td477787.html#a477788 THIS thread. I tried updating all my packages. It turns our that four, out of about 50 or so (I didn't really count all of them) that needed updating, simply wouldn't install at all. (I can forward you the error log files if it would help. I also noted the error messages that the MiKTeX updater gave me for each failed update. I was unable to resolve the problem with these four on my own.) Afterwards, I was still getting the same error messages when trying to open the Tutorial and other help documents -- so clearly updating my packages wasn't the solution. Then I found this thread. If you start a new document and go to Document - Settings... - Document Class - Document class, are *all* the classes listed as unavailable, or just some (including scrbook)? Checking my document classes as per the instructions indicates that most, but not all classes are unavailable, including scrbook. Not being very sure what to do next, I forged on with the advice posted here. If they are all unavailable, LyX had a problem configuring itself. In that case, you can try the following: 1. Make sure that the MiKTeX bin directory is on your system command path. THIS advice has me very puzzled. WHAT does this mean?? Where do I check this? I checked the paths under Tools and Settings. Here's an image of what it shows for my paths. http://pic30.picturetrail.com/VOL1511/6799618/14409421/331519515.jpg I noticed that my Documents Templates path seemes hosed up. It reads: C:\Program Files\LyX15\Resources\.\templates\ But when I check the actual path, it's more like C:\Program Files\LyX15\Resources\templates\ (That's WITHOUT the extra .) However, I'm not smart enough to know if this is right or wrong. Also, I've tried changing it, and it has had no effect on anything as far as I can tell, PLUS it keeps changing back every time I re-open LyX. I also note that in this window, my PATH settings seem to be: C:\Program Files\LyX15\bin;C:\Program Files\LyX15\python;C:\Program Files\LyX15\ghostscript\bin;C:\Program Files\LyX15\imagemagick If THIS is the path that I'm supposed to be checking, it clearly says nothing whatsoever about MiKTeX. Am I supposed to type in something different here? If so, what? 2. Tools - Reconfigure, then restart LyX and see if things are better. I've tried various times to Reconfigure LyX, but that hasn't resolved my problem. If not ... 3. At a DOS prompt, run 'kpsewhich article.cls'. If MiKTeX doesn't find article.cls, your MiKTeX installation is somehow screwed up. If the OS doesn't find the kpsewhich command, either you didn't get the bin directory on the command path or your MiKTeX installation is severely messed up. Assuming MiKTeX is ok ... I tried the kpsewhich command at a dos prompt. (at C:\ that is) and I get a message back that says The system cannot execute the specified program. I'm not sure what exactly this message means, but it can't be good. At this point I have to confess that I'm WAY beyond my computer knowledge and have absolutely no idea of what to do. For all these hours of puzzling over this, I seem to be no further towards figuring out how to make LyX properly open the help documents. And if those won't open, how can I be confident that anything else I may want to do in LyX would work properly? Can you help me out?? ER...for reference, I am running Windows XP SP3, and used the installer LyX-1.5.6-Installer.exe to install. Based on the comments in this thread, that appears to have been the wrong one to use. Should I uninstall everything and start all over? If so, what all do I need to uninstall? -- View this message in context: http://n2.nabble.com/Error-message-after-Installation-with-current-lyx-webinstaller-%28windows%29-tp477745p779154.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Package ifpdf Error: Name clash, \ifpdf is already defined.
On Saturday 23 August 2008 07:43:30 pm Steve Litt wrote: Hi all, One of my books, that used to compile, now gives me the following error message: Package ifpdf Error: Name clash, \ifpdf is already defined. I can toggle the symptom on and off by including or excluding the following: \usepackage[bookmarks, plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true] {hyperref} More info. I got the problem down to a single hello world lyx file and a 7 line layout file. I can now toggle the problem by changing the layout's base document class between memoir and book. The original was written with memoir and fails. Changing it to book allows it to compile. S, I need to find a hyperref substitute that works within memoir. As I remember, memoir is pretty sophisticated, so it probably has its own hyperref substitute. Anyone have any ideas? Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: Error message after Installation with current lyx-webinstaller (windows)
grapeshot wrote: If you start a new document and go to Document - Settings... - Document Class - Document class, are *all* the classes listed as unavailable, or just some (including scrbook)? Checking my document classes as per the instructions indicates that most, but not all classes are unavailable, including scrbook. If any of them are marked available, then LyX was able to find MikTeX. If they are all unavailable, LyX had a problem configuring itself. In that case, you can try the following: 1. Make sure that the MiKTeX bin directory is on your system command path. THIS advice has me very puzzled. WHAT does this mean?? Where do I check this? This is a Windows issue, not something you would fix in LyX. In XP, right click My Computer, click Properties, Advanced, Environment Variables. You'll see varialbes named Path in both lists; the one on top is used only when you're logged in, while the one on the bottom is used when any user is logged in. But this would be to check whether MikTeX was on the system path, and apparently it is, or else the LyX configuration script would not find it and LyX would say that none of the document classes are available. I checked the paths under Tools and Settings. Here's an image of what it shows for my paths. http://pic30.picturetrail.com/VOL1511/6799618/14409421/331519515.jpg I noticed that my Documents Templates path seemes hosed up. It reads: C:\Program Files\LyX15\Resources\.\templates\ But when I check the actual path, it's more like C:\Program Files\LyX15\Resources\templates\ (That's WITHOUT the extra .) However, I'm not smart enough to know if this is right or wrong. Also, I've tried changing it, and it has had no effect on anything as far as I can tell, PLUS it keeps changing back every time I re-open LyX. The dot translates as this directory, so it's redundant but harmless. I also note that in this window, my PATH settings seem to be: C:\Program Files\LyX15\bin;C:\Program Files\LyX15\python;C:\Program Files\LyX15\ghostscript\bin;C:\Program Files\LyX15\imagemagick If THIS is the path that I'm supposed to be checking, it clearly says nothing whatsoever about MiKTeX. Am I supposed to type in something different here? If so, what? No, the system command path (which tells DOS where to look when you run a program that's not in the current directory) was the concern, but only if *no* classes are available. 2. Tools - Reconfigure, then restart LyX and see if things are better. I've tried various times to Reconfigure LyX, but that hasn't resolved my problem. If not ... 3. At a DOS prompt, run 'kpsewhich article.cls'. If MiKTeX doesn't find article.cls, your MiKTeX installation is somehow screwed up. If the OS doesn't find the kpsewhich command, either you didn't get the bin directory on the command path or your MiKTeX installation is severely messed up. Assuming MiKTeX is ok ... I tried the kpsewhich command at a dos prompt. (at C:\ that is) and I get a message back that says The system cannot execute the specified program. I'm not sure what exactly this message means, but it can't be good. I can't argue with your assessment of that. :-) It sounds as though Windows is finding kpsewhich (which is a MikTeX program) but that the file is corrupted or not a DOS program. (This could happen if you somehow installed, say, a Linux TeX distribution, except that then it wouldn't be MikTeX.) At this point I have to confess that I'm WAY beyond my computer knowledge and have absolutely no idea of what to do. For all these hours of puzzling over this, I seem to be no further towards figuring out how to make LyX properly open the help documents. And if those won't open, how can I be confident that anything else I may want to do in LyX would work properly? Can you help me out?? ER...for reference, I am running Windows XP SP3, and used the installer LyX-1.5.6-Installer.exe to install. Based on the comments in this thread, that appears to have been the wrong one to use. Should I uninstall everything and start all over? If so, what all do I need to uninstall? Did you install MikTeX yourself, or did the LyX-1.5.6-Installer.exe install it? I don't think that installer contains MikTeX, but I get confused by the various installer names. If DOS won't run kpsewhich, then I think there may be a problem with your MikTeX installation. If so, reinstalling LyX won't fix it; you'll need to either repair MikTeX or uninstall/reinstall MikTeX. But it's still a bit unclear what's going on; I've never seen that particular error message with kpsewhich. (FYI, kpsewhich is a program that tells you where your LaTeX distribution, in this case MikTeX, is finding various LaTeX files -- and, by implication, *if* it's finding those files.) Let's try a different tack here. Start in LyX, by looking at Help - LaTeX Configuration. Look for a few of the missing classes, and note down what package
Memoir/hyperref conflict is a known issue
Hi all, I need your help. It turns out to be a known problem that you can't use hyperref with Memoir. However, there's supposedly a fix, known as memhfixc.sty. Supposedly, if you \usepackage{memhfixc} AFTER you \usepackage{hyperref}, they can coexist. See this: http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us However, when I make a trivial latex file based on the preceding document, it fails. Here's the file: \documentclass{memoir} \usepackage{hyperref} \usepackage{memhfixc} \usepackage{mempatch} \begin{document} hello world. \end{document} And here's the error message it produces: (/usr/share/texmf/tex/latex/oberdiek/kvoptions.sty) Implicit mode ON; LaTeX internals redefined (/usr/share/texmf/tex/latex/url/url.sty) (/usr/share/texmf/tex/latex/oberdiek/bitset.sty (/usr/share/texmf/tex/latex/oberdiek/intcalc.sty) (/usr/share/texmf/tex/latex/oberdiek/bigintcalc.sty (/usr/share/texmf/tex/latex/oberdiek/pdftexcmds.sty))) (/usr/share/texmf/tex/latex/oberdiek/kvsetkeys.sty) (/usr/share/texmf/tex/latex/oberdiek/atbegshi.sty (/usr/share/texmf/tex/latex/oberdiek/ifpdf.sty ! Package ifpdf Error: Name clash, \ifpdf is already defined. See the ifpdf package documentation for explanation. If I comment out the hyperref, it compiles perfectly. Can someone please help me: 1) Please try to reproduce my results with the file I've quoted in here 2) Please make suggestions of how I can have colored, clickable table of contents in my Ebook. Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
PDF, DVI, and PS viewers don't work anymore
Up to a couple of hours I was able to see my lyx file in PDF format, but it mysteriously stopped working. If I attempt DVI or PS, it doesn't do anything, as if I didn't even click the buttons. Are there perhaps some processes hanging? Any help would be appreciated. Thanks -- View this message in context: http://n2.nabble.com/PDF%2C-DVI%2C-and-PS-viewers-don%27t-work-anymore-tp779260p779260.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: label and counter in custom layout
On Sun, Aug 24, 2008 at 6:01 AM, rgheck [EMAIL PROTECTED] wrote: You might need a LabelString command, like: LabelString \arabic{Mycounter} This tells LyX what to print as the label, whereas the LabelCounter, I think, tells LyX which counter to increment. rh Yes! That did the trick! Thank you!
How to make some paragraphs uselesstermporally?
Does anyone know how to make some paragraphs useless termporally? Now I want some paragraphs disappear termporally?. But I dont want to delete them, because I will use it in future. In WinEdt, the symbol % can do the job. Which symbol in lyx is charge of this function? 2008-08-24 wangyq
Some LyX layout questions
I'm working on a self published book project in LyX. The book is a compilation of my articles that were previously published on the web. The book is just about finished, and I've figured out most of the stuff that I needed to customise, but there are a few fine tuning issues that I need to sort out. I am using the Komascript book class. I'd be very grateful for any suggestions that anyone can offer. I'll include all of the queries in this single post Chapter header I'm having difficulties suppressing the headers at the beginning of the book. The first Chapter is a starred chapter (Introduction) and as a result, the "contents" header leaks into it. This means that header for pages in my introduction says "contents". I have tried using \thispagestyle{empty} in various places but it doesn't seem to surpress the "contents" header. Is there a way to assert a starred chapter heading as the current chapter in the headings? I have used some ERT to add the introduction to the contents. Another possibility would be to find a way to suppress the chapter header in the contents. I don't mind if headings are switched off until the first numbered chapter. Text on part pages Is there a way of putting text on part pages? I've seen some references to doing this but I've not been able to find a solution that can be applied to LyX. Adding an imported image would be even better. Margin titles Is it possible to have margin titles that hang slightly into the outside margins of the page? Chapters at top of page Is it possible to move the chapter titles to to the top of the page? As it stands, the chapter title starts about two inches from the top of the page. I suspect that a solution involves the sectsty package but I can't work out how to do it. Thanks in advance for any help. -- http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek culture freelance writer
Re: Include image in title page when documentclass = report
On Fri, 2008-08-22 at 11:20 +0200, Matthieu Stigler wrote: > Hello > > I want to include an image in the title page. However, I see that using > the class "report" puts automatically the image at the second page... is > there a way to force the image to be on the first page within report > documentclass? thank you! > > Mat You can use (for example) Ctrl-Enter after your Title Environment then Insert>Graphics ... The image will be located in the title page after the Title. /Adi
Does anyone know how to import WIKI pages into lyx.
Currently I am preparing teaching materials for students. I found there are some wonderful things in WIKI. I hope I can directly import them into my materials. But the wiki page is not completely same as latex. For example, If ''N'' is a discrete random variable taking values on some subset of the non-negative [[integer|integers]], {''0,1, ...''}, then the ''probability-generating function'' of ''N'' is defined as: :G(x) = \textrm{E}(x^N) = \sum_{n=0}^{\infty}f_N(n)x^n, where ''fN'' is the probability mass function of ''N''. Note that the equivalent notation ''GN'' is sometimes used to distinguish between the probability-generating functions of several random variables. In latex, "N" should be $N$, ''GN'' should be $G_N$. Does anyone have idea on this matter? Many thanks! 2008-08-23 wangyq
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
Steve Litt wrote: I have one book written in stone age LyX in 2001, using Dekl Tsur's color character style workaround. It's been upgraded to 1.4.2, and compiles on 1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in 1.5.6. But it has to be done :-) Would it be worth waiting for 1.6? I've been using it for a while. I'm finding 1.6 RC1 is crashy but usable on Windows. The testament to how good it is is that I'm willing to work around the occasional crashes rather than go back a version. You'd have to ask the developers what their ETA for the stable release though. -- http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek culture freelance writer
Re: Include image in title page when documentclass = report
On Fri, 2008-08-22 at 11:20 +0200, Matthieu Stigler wrote: > Hello > > I want to include an image in the title page. However, I see that using > the class "report" puts automatically the image at the second page... is > there a way to force the image to be on the first page within report > documentclass? thank you! > > Mat You can use (for example) Ctrl-Enter after your Title Environment then Insert>Graphics ... The image will be located in the title page after the Title. /Adi Thank you for your help! I tried it and this works, but I'm unable to put spaces between the title and the image. As I wish to make something more complicate (a logo at the top, a picture at the bottom), I tried to use the \begin{titlepage} environment. This works but not entirely since the pictures are printed whith pdflatex (version pdf of the pictures) but not with the postscript (version pdf of the pictures). And there is still a spacing problem, the first image comes at the middle and not at the top... maybe should I just forget this idea and make myself the first page in a usual environment and then see with the counting of the images? Thank you!! Mattheiu
label and counter in custom layout
Hi all. I'm trying to create a custom layout. What I want is a style to display a counter at the beginning of the paragraph, automatically incremented. In LyX 1.5.3, I followed the customisation guide and ended up with: Counter Name Mycounter End Style My_Style LatexType Command LatexName emph LabelType Counter LabelCounterMycounter LabelSepxx LeftMargin xx ParSkip 0.0 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left End (nevermind the boring \emph{} command, at this stage it is used just as a placeholder) This doesn't work as expected, and I don't know what I'm missing. I was expecting to see a number at the beginning of the line, namely the value of Mycounter. Any help is much appreciated.
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
This doesn't answer the original question, nor directly apply to the response below it. However, I'd just like to state that I've been getting the 1.6 development version via svn every couple of days, and compiling it on linux. It's wonderful thus far: no crashes; nice interface; wonderful new capabilities, such as the split-screen thing and view of the LaTeX source at the same time. I think it'll be a fabulous release, and is, in my opinion, probably deserving of a 2.0 version number. C.O. - Original Message From: killermike <[EMAIL PROTECTED]> To: lyx-users@lists.lyx.org Sent: Saturday, August 23, 2008 4:40:32 AM Subject: Re: Any words of wisdom switching from 1.4.2 to 1.5.6? Steve Litt wrote: > I have one book written in stone age LyX in 2001, using Dekl Tsur's color > character style workaround. It's been upgraded to 1.4.2, and compiles on > 1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in > > > 1.5.6. But it has to be done :-) Would it be worth waiting for 1.6? I've been using it for a while. I'm finding 1.6 RC1 is crashy but usable on Windows. The testament to how good it is is that I'm willing to work around the occasional crashes rather than go back a version. You'd have to ask the developers what their ETA for the stable release though. -- http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek culture freelance writer
Re: Include image in title page when documentclass = report
> > > Thank you for your help! I tried it and this works, but I'm unable to > put spaces between the title and the image. You can control the space between lines Insert > Formatting > Vertical space > if you set spacing to custom, then you may set the value of any unit you choose (mm, cm, pt ...etc) Regards was
Re: Does anyone know how to import WIKI pages into lyx.
On Sat, 23 Aug 2008, wangyq wrote: If ''N'' is a discrete random variable taking values on some subset of the non-negative [[integer|integers]], {''0,1, ...''}, then the ''probability-generating function'' of ''N'' is defined as: :G(x) = \textrm{E}(x^N) = \sum_{n=0}^{\infty}f_N(n)x^n, where ''fN'' is the probability mass function of ''N''. Note that the equivalent notation ''GN'' is sometimes used to distinguish between the probability-generating functions of several random variables. I don't believe there are tools for this unfortunately. However, as for LaTeX math, try inserting the text into a LyX document. Then mark the math bit and press Ctrl-m. This will turn it into a formula. HTH /Christian -- Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
On Saturday 23 August 2008 06:40:32 am killermike wrote: > Steve Litt wrote: > > I have one book written in stone age LyX in 2001, using Dekl Tsur's color > > character style workaround. It's been upgraded to 1.4.2, and compiles on > > 1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in > > > > > > 1.5.6. But it has to be done :-) > > Would it be worth waiting for 1.6? Definitely not. There's a high probability that 1.6 will require a Qt version higher than what my distribution gives me, requiring a HUGE expenditure of effort and troubleshooting. I had this problem moving up to 1.5.3 on Mandriva 2007. I've had this problem several times. Therefore, I limit LyX upgrades to versions giving a "must have" capability. For me, there have been only two "must have" capabilities -- character styles and outline mode. I'll probably stick with 1.5.6 until upgrading to Mandriva 2009 in mid 2009. Layout modules are pretty darned cool, but I can live without them for another year. SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
New ps2pdf can screw up, or else Acroread 8 screws up
Hi all, The new ps2pdf can screw up -- it can fail to correctly show Author, Title and the like when viewed in Acroread 8. I haven't tried viewing PDFs built with new ps2pdf on old Acroreads, so I can't draw a definitive conclusion. So I used ps2pdf12, and all the properties read correctly within Acroread 8. In my case, an old, lowest common denominator PDF is best. YMMV. But be aware, if your properties start screwing up in Acroread 8 (or maybe other acroreads), it might be as simple as your version of ps2pdf. SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: funny bug in bibliography
Florin Oprina wrote: Well, it's good to know it's fixed. I'm dying to see the new 1.6 version! Binaries are available for rc1, which is generally pretty stable. There are some crashes we still need to get at, but people are using it for serious work. You can see what 1.6 will be like, anyway. There won't be any significant new features now. rh On Sat, Aug 23, 2008 at 1:34 AM, rgheck <[EMAIL PROTECTED]> wrote: Johannes Knaus wrote: Hi Florin, I can confirm this for Lyx 1.5.6 and 1.6.x. This should be fixed in 1.6. I've just checked it, and it works fine for me. I'd send a screenshot, but the mailer won't let me. rh I realized this already but as the typesetting is ok, I thought this was maybe some weird but expected behaviour of Lyx. But as you pointed it out, it seems to be an error. Maybe you could post it on the bugtracker? http://bugzilla.lyx.org/ Grüße, Johannes Am 22.08.2008 um 13:01 schrieb Florin Oprina: Hi all. Today I've seen the funniest bug in LyX: I have a paper which uses natbib for citations. In my bib database, I have an entry which says: @ARTICLE{kageyama89, author = {Kageyama, Tarō}, title = {The Place of Morphology in the Grammar: Verb-Verb compounds in {J}apa nese}, journal = {Yearbook of Morphology}, year = {1989}, volume = {2}, pages = {73--94} } Now, when I try to cite this paper, in LyX I see Kageyama (Yearbook of Morphology), instead of the expected Kageyama(1989) If I typeset the paper, the result is just fine, so the problem is only with what LyX displays in the editor. I thought there is something wrong with my bib database, but everything was fine. WTF? And then it hit me: the word "Year" in the journal name must be the culprit. Probably LyX interprets it as some sort of keyword and displays that instead of the real year of publication. I played around a bit and my suspicion was confirmed: (i) removing "Year" from the journal name produces the correct result, as does (ii) changing the order between the journal and year fields in the bibfile. This happens in LyX 1.5.3 -- Sometimes I lie awake at night, and ask, "Where have I gone wrong?" Then a voice says to me, "This is going to take more than one night." (Charlie Brown)
Re: Some LyX layout questions
killermike wrote: Chapter header I'm having difficulties suppressing the headers at the beginning of the book. The first Chapter is a starred chapter (Introduction) and as a result, the "contents" header leaks into it. This means that header for pages in my introduction says "contents". I have tried using \thispagestyle{empty} in various places but it doesn't seem to surpress the "contents" header. Is there a way to assert a starred chapter heading as the current chapter in the headings? I have used some ERT to add the introduction to the contents. Another possibility would be to find a way to suppress the chapter header in the contents. I don't mind if headings are switched off until the first numbered chapter. Exactly what you will want, I don't know. But try in ERT, on the first line of the introduction: \markboth{Introduction}{Introduction}. Note that you'll have to put font changes into that, too, if you want them to show up in the output. By the way, you can let LyX do the font stuff for you. (This trick should be better known.) Do this: [ERT: \markboth{]Now Type In LyX[ERT: }{]More Stuff in LyX[ERT: }] And you can style "Now Type In LyX" any way you want, using bold, italic, whatever. Text on part pages Is there a way of putting text on part pages? I've seen some references to doing this but I've not been able to find a solution that can be applied to LyX. Adding an imported image would be even better. Look at the titlesec package. You can do almost anything with it. Margin titles Is it possible to have margin titles that hang slightly into the outside margins of the page? Yes. You can use fancy headers for this, and you can customize them endlessly. See section 12 of fancyhdr.dvi. Chapters at top of page Is it possible to move the chapter titles to to the top of the page? As it stands, the chapter title starts about two inches from the top of the page. I suspect that a solution involves the sectsty package but I can't work out how to do it. Yes, this can be done. Probably titlesec would do it, but I'm not sure. You may have to dig into your LaTeX class and redefine whatever is being used to create the heading. In book.cls, it is here: [EMAIL PROTECTED] [EMAIL PROTECTED] {\parindent \z@ \raggedright \normalfont \ifnum [EMAIL PROTECTED] >[EMAIL PROTECTED] [EMAIL PROTECTED] \huge\bfseries [EMAIL PROTECTED] \thechapter \par\nobreak \vskip 20\p@ \fi \fi [EMAIL PROTECTED] \Huge \bfseries #1\par\nobreak \vskip 40\p@ }} If you were using book.cls, you could just copy this into your preamble and remove the first \vspace line, or change it. (You would need to put this between \makeatletter and \makeatother commands, as well.) rh
Re: label and counter in custom layout
Florin Oprina wrote: Hi all. I'm trying to create a custom layout. What I want is a style to display a counter at the beginning of the paragraph, automatically incremented. In LyX 1.5.3, I followed the customisation guide and ended up with: Counter Name Mycounter End Style My_Style LatexType Command LatexName emph LabelType Counter LabelCounterMycounter LabelSepxx LeftMargin xx ParSkip 0.0 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left End (nevermind the boring \emph{} command, at this stage it is used just as a placeholder) This doesn't work as expected, and I don't know what I'm missing. I was expecting to see a number at the beginning of the line, namely the value of Mycounter. You might need a LabelString command, like: LabelString "\arabic{Mycounter}" This tells LyX what to print as the label, whereas the LabelCounter, I think, tells LyX which counter to increment. rh Any help is much appreciated.
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
Steve Litt wrote: I have one book written in stone age LyX in 2001, using Dekl Tsur's color character style workaround. It's been upgraded to 1.4.2, and compiles on 1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in 1.5.6. But it has to be done :-) You might want to write a dirty script that will transform those into legitimate character styles. That may be the source of your problems. Hard to know, though. rh
Re: 1.5.6: Are layouts now findable in the current directory?
Steve Litt wrote: Is my impression correct, that 1.5.6 reads layout files in the current directory. Yes, it is supposed to do so. But be careful: If you move the file without moving the layout, chaos results. rh
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
By the way, Mandriva 2008.1 surely ships with a Qt version sufficient for 1.6. I can't remember what we need, but it may be just 4.2. It's 4.3 at most. rh
Re: Any words of wisdom switching from 1.4.2 to 1.5.6?
Steve Litt wrote: Definitely not. There's a high probability that 1.6 will require a Qt version higher than what my distribution gives me, requiring a HUGE expenditure of effort and troubleshooting. I had this problem moving up to 1.5.3 on Mandriva 2007. I've had this problem several times. The package list on the web suggests that Mandriva 2008.1 includes Qt 4.3.4, which is very much enough for 1.6, and will likely even be enough for 1.7. We try not to be overly cutting edge with what we require there. Therefore, I limit LyX upgrades to versions giving a "must have" capability. For me, there have been only two "must have" capabilities -- character styles and outline mode. The outliner is greatly improved in 1.6. rh
Re: Some LyX layout questions
> I'm working on a self published book project in LyX. The > book is a > compilation of my articles that were previously published > on the web. > The book is just about finished, and I've figured out > most of the stuff > that I needed to customise, but there are a few fine tuning > issues that > I need to sort out. I am using the Komascript book class. > I'd be very > grateful for any suggestions that anyone can offer. > > I'll include all of the queries in this single post > > Chapter header > I'm having difficulties suppressing the headers at the > beginning of the > book. The first Chapter is a starred chapter (Introduction) > and as a > result, the "contents" header leaks into it. This > means that header for > pages in my introduction says "contents". I have > tried using > \thispagestyle{empty} in various places but it > doesn't seem to surpress > the "contents" header. Is there a way to assert a > starred chapter > heading as the current chapter in the headings? I have used > some ERT to > add the introduction to the contents. Another possibility > would be to > find a way to suppress the chapter header in the contents. > I don't mind > if headings are switched off until the first numbered > chapter. In preamble put a thing like: ChapterPageStyle{empty} See doc because I am not sure of exactly sintax. > > Text on part pages > Is there a way of putting text on part pages? I've seen > some references > to doing this but I've not been able to find a solution > that can be > applied to LyX. Adding an imported image would be even > better. > > Margin titles > Is it possible to have margin titles that hang slightly > into the outside > margins of the page? > > Chapters at top of page > Is it possible to move the chapter titles to to the top of > the page? As > it stands, the chapter title starts about two inches from > the top of the > page. I suspect that a solution involves the sectsty > package but I can't > work out how to do it. > For last to problem you can try with titlesec package. With titlesec you get total control over title parameters and TOC. Regards Marcelo ¡Buscá desde tu celular! Yahoo! oneSEARCH ahora está en Claro http://ar.mobile.yahoo.com/onesearch
Package ifpdf Error: Name clash, \ifpdf is already defined.
Hi all, One of my books, that used to compile, now gives me the following error message: Package ifpdf Error: Name clash, \ifpdf is already defined. I can toggle the symptom on and off by including or excluding the following: \usepackage[bookmarks, plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true] {hyperref} Trouble is, without that line, I can't get clickable chapters in the table of contents. Also, another one of my books has that line and doesn't exhibit this symptom. I've tried exploiting the differences, but with two >100 page books, each with sizeable layout files, I'm hoping one of you has seen this before so I don't need to keep carving things in half til I can toggle the problem with something other than the hyperref package. Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: Error message after Installation with current lyx-webinstaller (windows)
I appear to be having the same problem as the originator of this thread. First I thought that maybe my packages needed updating. So, using the advice in http://n2.nabble.com/cannot-find-styles-(ms-windows)-td477787.html#a477788 THIS thread. I tried updating all my packages. It turns our that four, out of about 50 or so (I didn't really count all of them) that needed updating, simply wouldn't install at all. (I can forward you the error log files if it would help. I also noted the error messages that the MiKTeX updater gave me for each failed update. I was unable to resolve the problem with these four on my own.) Afterwards, I was still getting the same error messages when trying to open the Tutorial and other help documents -- so clearly updating my packages wasn't the solution. Then I found this thread. >>If you start a new document and go to Document -> Settings... -> >>Document Class -> Document class, are *all* the classes listed as >>unavailable, or just some (including scrbook)? Checking my document classes as per the instructions indicates that most, but not all classes are unavailable, including scrbook. Not being very sure what to do next, I forged on with the advice posted here. >>If they are all >>unavailable, LyX had a problem configuring itself. In that case, you >>can try the following: >> >>1. Make sure that the MiKTeX bin directory is on your system command path. THIS advice has me very puzzled. WHAT does this mean?? Where do I check this? I checked the paths under "Tools" and "Settings". Here's an image of what it shows for my paths. http://pic30.picturetrail.com/VOL1511/6799618/14409421/331519515.jpg I noticed that my Documents Templates path seemes hosed up. It reads: C:\Program Files\LyX15\Resources\.\templates\ But when I check the actual path, it's more like C:\Program Files\LyX15\Resources\templates\ (That's WITHOUT the extra ".") However, I'm not smart enough to know if this is right or wrong. Also, I've tried changing it, and it has had no effect on anything as far as I can tell, PLUS it keeps changing back every time I re-open LyX. I also note that in this window, my PATH settings seem to be: C:\Program Files\LyX15\bin;C:\Program Files\LyX15\python;C:\Program Files\LyX15\ghostscript\bin;C:\Program Files\LyX15\imagemagick If THIS is the path that I'm supposed to be checking, it clearly says nothing whatsoever about MiKTeX. Am I supposed to type in something different here? If so, what? >2. Tools -> Reconfigure, then restart LyX and see if things are better. I've tried various times to Reconfigure LyX, but that hasn't resolved my problem. > If not ... >> >>3. At a DOS prompt, run 'kpsewhich article.cls'. If MiKTeX doesn't >>find article.cls, your MiKTeX installation is somehow screwed up. If >>the OS doesn't find the kpsewhich command, either you didn't get the bin >>directory on the command path or your MiKTeX installation is severely >>messed up. Assuming MiKTeX is ok ... I tried the kpsewhich command at a dos prompt. (at C:\ that is) and I get a message back that says "The system cannot execute the specified program." I'm not sure what exactly this message means, but it can't be good. At this point I have to confess that I'm WAY beyond my computer knowledge and have absolutely no idea of what to do. For all these hours of puzzling over this, I seem to be no further towards figuring out how to make LyX properly open the help documents. And if those won't open, how can I be confident that anything else I may want to do in LyX would work properly? Can you help me out?? ER...for reference, I am running Windows XP SP3, and used the installer LyX-1.5.6-Installer.exe to install. Based on the comments in this thread, that appears to have been the wrong one to use. Should I uninstall everything and start all over? If so, what all do I need to uninstall? -- View this message in context: http://n2.nabble.com/Error-message-after-Installation-with-current-lyx-webinstaller-%28windows%29-tp477745p779154.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Package ifpdf Error: Name clash, \ifpdf is already defined.
On Saturday 23 August 2008 07:43:30 pm Steve Litt wrote: > Hi all, > > One of my books, that used to compile, now gives me the following error > message: > > Package ifpdf Error: Name clash, \ifpdf is already defined. > > I can toggle the symptom on and off by including or excluding the > following: > > > \usepackage[bookmarks, > plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true] > {hyperref} More info. I got the problem down to a single hello world lyx file and a 7 line layout file. I can now toggle the problem by changing the layout's base document class between memoir and book. The original was written with memoir and fails. Changing it to book allows it to compile. S, I need to find a hyperref substitute that works within memoir. As I remember, memoir is pretty sophisticated, so it probably has its own hyperref substitute. Anyone have any ideas? Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: Error message after Installation with current lyx-webinstaller (windows)
grapeshot wrote: If you start a new document and go to Document -> Settings... -> Document Class -> Document class, are *all* the classes listed as unavailable, or just some (including scrbook)? Checking my document classes as per the instructions indicates that most, but not all classes are unavailable, including scrbook. If any of them are marked available, then LyX was able to find MikTeX. If they are all unavailable, LyX had a problem configuring itself. In that case, you can try the following: 1. Make sure that the MiKTeX bin directory is on your system command path. THIS advice has me very puzzled. WHAT does this mean?? Where do I check this? This is a Windows issue, not something you would fix in LyX. In XP, right click My Computer, click Properties, Advanced, Environment Variables. You'll see varialbes named "Path" in both lists; the one on top is used only when you're logged in, while the one on the bottom is used when any user is logged in. But this would be to check whether MikTeX was on the system path, and apparently it is, or else the LyX configuration script would not find it and LyX would say that none of the document classes are available. I checked the paths under "Tools" and "Settings". Here's an image of what it shows for my paths. http://pic30.picturetrail.com/VOL1511/6799618/14409421/331519515.jpg I noticed that my Documents Templates path seemes hosed up. It reads: C:\Program Files\LyX15\Resources\.\templates\ But when I check the actual path, it's more like C:\Program Files\LyX15\Resources\templates\ (That's WITHOUT the extra ".") However, I'm not smart enough to know if this is right or wrong. Also, I've tried changing it, and it has had no effect on anything as far as I can tell, PLUS it keeps changing back every time I re-open LyX. The dot translates as "this directory", so it's redundant but harmless. I also note that in this window, my PATH settings seem to be: C:\Program Files\LyX15\bin;C:\Program Files\LyX15\python;C:\Program Files\LyX15\ghostscript\bin;C:\Program Files\LyX15\imagemagick If THIS is the path that I'm supposed to be checking, it clearly says nothing whatsoever about MiKTeX. Am I supposed to type in something different here? If so, what? No, the system command path (which tells DOS where to look when you run a program that's not in the current directory) was the concern, but only if *no* classes are available. 2. Tools -> Reconfigure, then restart LyX and see if things are better. I've tried various times to Reconfigure LyX, but that hasn't resolved my problem. If not ... 3. At a DOS prompt, run 'kpsewhich article.cls'. If MiKTeX doesn't find article.cls, your MiKTeX installation is somehow screwed up. If the OS doesn't find the kpsewhich command, either you didn't get the bin directory on the command path or your MiKTeX installation is severely messed up. Assuming MiKTeX is ok ... I tried the kpsewhich command at a dos prompt. (at C:\ that is) and I get a message back that says "The system cannot execute the specified program." I'm not sure what exactly this message means, but it can't be good. I can't argue with your assessment of that. :-) It sounds as though Windows is finding kpsewhich (which is a MikTeX program) but that the file is corrupted or not a DOS program. (This could happen if you somehow installed, say, a Linux TeX distribution, except that then it wouldn't be MikTeX.) At this point I have to confess that I'm WAY beyond my computer knowledge and have absolutely no idea of what to do. For all these hours of puzzling over this, I seem to be no further towards figuring out how to make LyX properly open the help documents. And if those won't open, how can I be confident that anything else I may want to do in LyX would work properly? Can you help me out?? ER...for reference, I am running Windows XP SP3, and used the installer LyX-1.5.6-Installer.exe to install. Based on the comments in this thread, that appears to have been the wrong one to use. Should I uninstall everything and start all over? If so, what all do I need to uninstall? Did you install MikTeX yourself, or did the LyX-1.5.6-Installer.exe install it? I don't think that installer contains MikTeX, but I get confused by the various installer names. If DOS won't run kpsewhich, then I think there may be a problem with your MikTeX installation. If so, reinstalling LyX won't fix it; you'll need to either repair MikTeX or uninstall/reinstall MikTeX. But it's still a bit unclear what's going on; I've never seen that particular error message with kpsewhich. (FYI, kpsewhich is a program that tells you where your LaTeX distribution, in this case MikTeX, is finding various LaTeX files -- and, by implication, *if* it's finding those files.) Let's try a different tack here. Start in LyX, by looking at Help -> LaTeX Configuration. Look for a few of the missing classes, and note
Memoir/hyperref conflict is a known issue
Hi all, I need your help. It turns out to be a known problem that you can't use hyperref with Memoir. However, there's supposedly a fix, known as memhfixc.sty. Supposedly, if you \usepackage{memhfixc} AFTER you \usepackage{hyperref}, they can coexist. See this: http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdf=en=clnk=3=us However, when I make a trivial latex file based on the preceding document, it fails. Here's the file: \documentclass{memoir} \usepackage{hyperref} \usepackage{memhfixc} \usepackage{mempatch} \begin{document} hello world. \end{document} And here's the error message it produces: (/usr/share/texmf/tex/latex/oberdiek/kvoptions.sty) Implicit mode ON; LaTeX internals redefined (/usr/share/texmf/tex/latex/url/url.sty) (/usr/share/texmf/tex/latex/oberdiek/bitset.sty (/usr/share/texmf/tex/latex/oberdiek/intcalc.sty) (/usr/share/texmf/tex/latex/oberdiek/bigintcalc.sty (/usr/share/texmf/tex/latex/oberdiek/pdftexcmds.sty))) (/usr/share/texmf/tex/latex/oberdiek/kvsetkeys.sty) (/usr/share/texmf/tex/latex/oberdiek/atbegshi.sty (/usr/share/texmf/tex/latex/oberdiek/ifpdf.sty ! Package ifpdf Error: Name clash, \ifpdf is already defined. See the ifpdf package documentation for explanation. If I comment out the hyperref, it compiles perfectly. Can someone please help me: 1) Please try to reproduce my results with the file I've quoted in here 2) Please make suggestions of how I can have colored, clickable table of contents in my Ebook. Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
PDF, DVI, and PS viewers don't work anymore
Up to a couple of hours I was able to see my lyx file in PDF format, but it mysteriously stopped working. If I attempt DVI or PS, it doesn't do anything, as if I didn't even click the buttons. Are there perhaps some processes hanging? Any help would be appreciated. Thanks -- View this message in context: http://n2.nabble.com/PDF%2C-DVI%2C-and-PS-viewers-don%27t-work-anymore-tp779260p779260.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: label and counter in custom layout
On Sun, Aug 24, 2008 at 6:01 AM, rgheck <[EMAIL PROTECTED]> wrote: > > You might need a LabelString command, like: > LabelString "\arabic{Mycounter}" > This tells LyX what to print as the label, whereas the LabelCounter, I > think, tells LyX which counter to increment. > > rh > >> >> > > Yes! That did the trick! Thank you!
How to make some paragraphs uselesstermporally?
Does anyone know how to make some paragraphs useless termporally? Now I want some paragraphs disappear termporally?. But I dont want to delete them, because I will use it in future. In WinEdt, the symbol % can do the job. Which symbol in lyx is charge of this function? 2008-08-24 wangyq