Re: Xfig and LyX
I have often used fig2ps (from sourceforge) to transform .fig files to .eps and then include the resulting eps file in LyX. (I don't remember what started me doing this; there was a problem of complexity in my figure a few years ago and this provided the solution.) It is possible to force specialtext from hte fig2ps command line. I checked out fig2ps and it is a neat program. I have been playing around with the converters in LyX, but I still am not completely clear on all the details of how they are operating. It seems like you could define a converter to use the fig2ps program automatically, without having to do it by hand. Even more interesting, it seems like you could use a fig2ps type of program as a converter to get a preview with the actual math symbols, rather than something with the usual $x_2$ types of strings... This type of thing, if it works, should work both with a graphics include as well as with an external file include... Any suggestions, critiques, or comments? It would be very nice to have a preview which included the actual math, if that could be done easily. But maybe such a thing can already be done in a way I am not familiar with?
Re: Xfig and LyX
Allen L. Barker wrote: I have often used fig2ps (from sourceforge) to transform .fig files to .eps and then include the resulting eps file in LyX. (I don't remember what started me doing this; there was a problem of complexity in my figure a few years ago and this provided the solution.) It is possible to force specialtext from hte fig2ps command line. I checked out fig2ps and it is a neat program. I have been playing around with the converters in LyX, but I still am not completely clear on all the details of how they are operating. It seems like you could define a converter to use the fig2ps program automatically, without having to do it by hand. Even more interesting, it seems like you could use a fig2ps type of program as a converter to get a preview with the actual math symbols, rather than something with the usual $x_2$ types of strings... This type of thing, if it works, should work both with a graphics include as well as with an external file include... Any suggestions, critiques, or comments? It would be very nice to have a preview which included the actual math, if that could be done easily. But maybe such a thing can already be done in a way I am not familiar with? Yes xifg previewing can already been done thanks to fig2dev which is part of the xfig program. Just use the external material inset (Inset-File-External Material) and choose XFig in the combo. In the display tab, select 'preview'. Abdel.
Re: New letter example using Koma-Script
On Thu, 10 Jul 2008, Jean-Marie Pacquet wrote: Christian Ridderström a écrit : Hi, Thanks to Rich Shepard, I've put up an example of how to do a 'business'-like letter with Koma-Script using LyX here: http://wiki.lyx.org/Examples/KomaLetter2 Feel free to use it as you like, and if you know something about Koma-Script, please tell me about any mis-use of the document class. Hi Christian, I did something very similar for french letters last year. If you want to add these files to the Lyx wiki, please feel free to get them here: http://pacquet.net/?q=node/2 Hi Jean-Marie, Thanks for the example. I've uploaded the files and copied your text to the same wiki page, i.e. http://wiki.lyx.org/Examples/KomaLetter2#toc6 But I don't understand French, so would you mind adding a translation of your text to the wiki page? I've prepared a place for the translation, and we can keep your original french text below the english text. If you like, I can proof read the english translation. Best regards, /Christian -- Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr
Xfig and LyX
Could somebody kindly point me to an understandable explanation of how to use xfig produced figures in LyX? Help file Userguide tells me to check for detailed explanation under ImbeddedObjects but there I can´t find any detailed explanation. Just FYI, here is my current preferred method, for the types of equation-heavy figures I tend to have. First, include the following in the preamble: \usepackage{color} \usepackage{graphics} \usepackage[scanall]{psfrag} Now in your actual .fig images you use special text replacement-tags (without setting the special flag on the xfig text). These tags are just placeholders which will then be replaced by the final text, defined from within LyX. The replacements are specified by strings like \psfrag{FOURIERTRANSFORM}{insert LyX text here} The text FOURIERTRANSFORM is what you would include in your actual image. By skillfully choosing these labels the images can be reasonably comprehensible even without the conversions. Within LyX, the whole \psfrag{FOURIERTRANSFORM}{ is a red TeX box, as is the final }. But the insert LyX text here part between them can be arbitrary, normal LyX text (within reason). In particular, it can include LyX math-boxes for equation-editing. This is extremely convenient when you have complicated formulas (and when you are no longer used to entering the LaTeX strings for everything). I wrote a simple tutorial on this stuff in 2001, but it no longer seems to be out on the web. It does need some updating, but many things are the same. BTW, the psfrag way to include arbitrary text like $x_2$ in images is to have the string \tex{$x_2$} in the original image. Anyway, the advantages of the general psfrag substitution method in LyX are that you can scale the text-size of any substitution from within LyX, and you can use the math-editor boxes rather than having to use the LaTeX math strings. Ideally, of course, we all want the best of all the worlds as things progress. It would be nice if all the methods were compatible. I'm still looking into and considering how the psfrag stuff could be compatible with the external-file pstex stuff. The external-file mechanism in LyX is actually rather general and customizable. In the future (however distant) it would be nice if we could use a LyX math-box to edit the equations in a previewed figure, and to have the results displayed in the final equation form
Re: Xfig and LyX
Yes xifg previewing can already been done thanks to fig2dev which is part of the xfig program. Just use the external material inset (Inset-File-External Material) and choose XFig in the combo. In the display tab, select 'preview'. I think you are missing my point. Yes, I agree with you that LyX can already preview the xfig images. But, can it preview the math text like $x_2$ in its final form? I have not found any way for doing that, and I was suggesting a possibility... I have tried the External Material type of inset, but it still displays $x_2$ as $x_2$.
Package options override
Hi, I want to use the achemso package for the formatting of my bibliography. (http://www.ctan.org/tex-archive/macros/latex/contrib/achemso/) This package provides citation styles compliant with the rules of the journals of the American Chemical Society (ACS). I need a specific options, which includes the title of a cited article in the citation. Therefore I have included the following line in my latex preamble \usepackage[usetitle]{achemso} usetitle is the option that provides the inclusion of the title in the citation. Lyx uses the achemso citation style but ignores the usetitle option. I tried other options of the package and lyx seems to completely ignore them all. Any hints on what may be the problem? Thanks for any help... Sebastian
Re: Xfig and LyX
Allen L. Barker wrote: Yes xifg previewing can already been done thanks to fig2dev which is part of the xfig program. Just use the external material inset (Inset-File-External Material) and choose XFig in the combo. In the display tab, select 'preview'. I think you are missing my point. Yes, I agree with you that LyX can already preview the xfig images. But, can it preview the math text like $x_2$ in its final form? Yes, if you mark the text field as LateX in xfig the equation will be latex compiled and previewed on LyX screen. At least it works in 1.6, maybe there's a bug in 1.5... You need the instant-preview package and dvipng installed for this to work. I have not found any way for doing that, and I was suggesting a possibility... I have tried the External Material type of inset, but it still displays $x_2$ as $x_2$. See above, it should work. But I am not sure this will be compatible with your psfrag methods as this method uses the pstex_t format (or pdftex_t). Abdel.
Re: New letter example using Koma-Script
Christian Ridderström a écrit : But I don't understand French, so would you mind adding a translation of your text to the wiki page? I've prepared a place for the translation, and we can keep your original french text below the english text. If you like, I can proof read the english translation. Done! But feel free to proof read the english text! Best regards -- jean-marie pacquet
Re: Xfig and LyX
Yes, if you mark the text field as LateX in xfig the equation will be latex compiled and previewed on LyX screen. At least it works in 1.6, maybe there's a bug in 1.5... You need the instant-preview package and dvipng installed for this to work. Are these packages installed by default in the normal LyX setups (such as on a recent Fedora Linux)? If not, how should one install the packages? Are there any other side-effects to the packages? From within xfig, do you need to both select the text field as special and select it to use the latex-font?
Re: Xfig and LyX
Allen L. Barker wrote: Yes, if you mark the text field as LateX in xfig the equation will be latex compiled and previewed on LyX screen. At least it works in 1.6, maybe there's a bug in 1.5... You need the instant-preview package and dvipng installed for this to work. Are these packages installed by default in the normal LyX setups (such as on a recent Fedora Linux)? Dunno... If not, how should one install the packages? Are there any other side-effects to the packages? Dunno... From within xfig, do you need to both select the text field as special and select it to use the latex-font? Dunno... I just use it on Windows :-) Hopefully someone else will answer your questions... Abdel.
pagenumbering
Hi all i am paginating my thesis with lyx, i divided the document into many child documents and made a page called Thesis which joins together (by putting add child document one after the other). Now, while the first pages, which uses roman numbering show correct placement of the number (on the bottom outside), the following child document, which uses arabic page numbering is performing incorrectly, by putting the page numbering in the wrong side of the page. Is there any way to make lys fix this? Thanks Assa
Re: Reference Order and figure position problems
I had the same problem. It would be very helpful if you could tell me how to change from _alphabetically_ sorted to unsrt style. Thank you Jürgen Spitzmüller-2 wrote: [EMAIL PROTECTED] wrote: 1) When the document is viewed in pdf, all my references in the main body of text are in the wrong order. The first reference stated comes up as [145] and not [1], while the second is [76], not [2]. This occurs throughout the entire document, in a nons equential psuedo random manner! The numbers refer to an _alphabetically_ sorted bibliography, not to the order of appearance in the text, unless you are using an unsrt style. Jürgen -- View this message in context: http://www.nabble.com/Reference-Order-and-figure-position-problems-tp15401589p18406327.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Reference Order and figure position problems
vascoosx wrote: I had the same problem. It would be very helpful if you could tell me how to change from _alphabetically_ sorted to unsrt style. chose and unsrt bibliography style (right-click on the grey BibTeX box and select a style from the lower drop down box). Jürgen
Re: Bullet distance
snvv wrote: Hello Is it possible to increase the space between a bullet and the text that follows? Thank you snvv If you want to do this globally (all bullets, all levels of the document, try the following in your preamble: \addtolength{\leftmargini}{3ex} \addtolength{\labelsep}{3ex} (change 3ex to whatever amount of space you want). /Paul
Re: Reference Order and figure position problems
On Jul 11, 2008, at 9:21 AM, vascoosx wrote: I had the same problem. It would be very helpful if you could tell me how to change from _alphabetically_ sorted to unsrt style. Insert-List/TOC - BibTeX Bibliography Choose unsrt from the drop-down menu in the bibliography dialog box. James
Re: Inserting code
On Thu, Jul 10, 2008 at 03:39:54PM -0700, Ivica1009 wrote: In my thesis I need to use a lot of C++ code. I am developing code in Eclipse CDT text editor. If I copy my code, for example, into the OpenOffice documet, the code preserves its format and colors. [I never thought of code having a color that could be preserved, but that's probabl just me ;-)] If I copy the code into Lyx it does not preserve neither of those. Is there a way to copy code from other editors into Lyx in such a way that at least the format of the code is preserved? There is support for code inclusion using the listings package. Andre'
MikTeX 2.7 update warning
Hi Lyx/Win Users, please be aware that updating MiKTeX 2.7 to current patchlevel as present in its repositories since 09. July will leave you with a broken backend - you will not be able to get any output - not even from the LyX help files. Tried on 3 different XP machines. LyX/Latex error output will be: Undefined contro sequence. LaTeX Error: Missing \begin{document}. Regards, Tom Schlangen --
Re: MikTeX 2.7 update warning
Tom Schlangen wrote: Hi Lyx/Win Users, please be aware that updating MiKTeX 2.7 to current patchlevel as present in its repositories since 09. July will leave you with a broken backend - you will not be able to get any output - not even from the LyX help files. Tried on 3 different XP machines. LyX/Latex error output will be: Undefined contro sequence. LaTeX Error: Missing \begin{document}. You just have to rebuild the formats[1], since some language specific definitions have changed. Then everything should be working fine again. Regards, Dominik.- [1] Button 'Update Formats' in 'Miktex Settings' dialog.
Re: MikTeX 2.7 update warning
Dear Dominik, You just have to rebuild the formats[1], since some language specific definitions have changed. Then everything should be working fine again. [1] Button 'Update Formats' in 'Miktex Settings' dialog. This works - thank you! Regards, Tom Schlangen -- mailto:[EMAIL PROTECTED]
Re: noindent for abstracts?
That is already unchecked. The problem is that when I type the abstract its actually indented. But when I make I line break the next line starts a bit more to the left than the above abstract. Jürgen Spitzmüller-2 wrote: bigblop wrote: Use ERT (Insert-TeX code) \noindent before you type any sentence in a new paragraph. Is that what you want ??? Yes but I would like to avoid using ERT. Edit-Paragraph Settings: uncheck Indent Paragraph. Jürgen -- View this message in context: http://www.nabble.com/noindent-for-abstracts--tp18235018p18411439.html Sent from the LyX - Users mailing list archive at Nabble.com.
Specify PDF viewer with space in filename?
I use LyX 1.5.4 for winXP. I have installed adobe reader in: C:\Programmer\Adobe\Reader 8.0\Reader\AcroRd32.exe I need to specify the whole path to the above file if I want to use it as the PDF previewer. But I get an error since there is a space in the foldername Reader 8.0. If I manually remove the space all my PDF files is no longer associated with Adobe Reader. How do I specify a PDF viewer with a space in the filename? -- View this message in context: http://www.nabble.com/Specify-PDF-viewer-with-space-in-filename--tp18411511p18411511.html Sent from the LyX - Users mailing list archive at Nabble.com.
Compiling Root document from child document?
I have made a main.lyx file that includes a few child documents as input files. But when I am compiling a child document the whole document does not get updated. This means that each time I want to se the changes I have made I need to compile the main.lyx file which is rather annoying. Is there someway to compile the main.lyx file from a child document? -- View this message in context: http://www.nabble.com/Compiling-Root-document-from-child-document--tp18411658p18411658.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Specify PDF viewer with space in filename?
bigblop wrote: I use LyX 1.5.4 for winXP. I have installed adobe reader in: C:\Programmer\Adobe\Reader 8.0\Reader\AcroRd32.exe I need to specify the whole path to the above file if I want to use it as the PDF previewer. But I get an error since there is a space in the foldername Reader 8.0. If I manually remove the space all my PDF files is no longer associated with Adobe Reader. How do I specify a PDF viewer with a space in the filename? Put the path on Tools - Preferences - Paths - PATH prefix (spaces and all), then just put acrord32.exe as the viewer. /Paul
Re: Compiling Root document from child document?
On Jul 11, 2008, at 2:07 PM, bigblop wrote: I have made a main.lyx file that includes a few child documents as input files. But when I am compiling a child document the whole document does not get updated. This means that each time I want to se the changes I have made I need to compile the main.lyx file which is rather annoying. Is there someway to compile the main.lyx file from a child document? Annoying to one is a nice feature to another. This is actually really a nice feature in LyX because you can actually compile and view child documents independently from the parent, and with different formatting (line spacing, margins, etc.). This is not easily done in LaTeX. I just switch the focus in LyX back to the main file and compile it. Then you get the whole thing. James
interesting behaviour
I noticed an interesting behaviour: If i make a document with lyx in ubuntu hardy, the pdf that comes out is around 9Mb if i do in debian lenny, the pdf that comes out is 20Mb! of course both the sources are the same! what could cause this???
Re: Specify PDF viewer with space in filename?
Have done as you recommended, I can see that the command Executing command acrord32.exe... is run but acroread does not open. If I press Ctrl-alt-delete I can see the acrord32.exe process and need to manualy terminate it if I want to run acroread from windows again. Paul A. Rubin wrote: bigblop wrote: I use LyX 1.5.4 for winXP. I have installed adobe reader in: C:\Programmer\Adobe\Reader 8.0\Reader\AcroRd32.exe I need to specify the whole path to the above file if I want to use it as the PDF previewer. But I get an error since there is a space in the foldername Reader 8.0. If I manually remove the space all my PDF files is no longer associated with Adobe Reader. How do I specify a PDF viewer with a space in the filename? Put the path on Tools - Preferences - Paths - PATH prefix (spaces and all), then just put acrord32.exe as the viewer. /Paul -- View this message in context: http://www.nabble.com/Specify-PDF-viewer-with-space-in-filename--tp18411511p18412631.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Compiling Root document from child document?
If I compile the child separately the references from my .bib file does not show (only appears as question marks). But based on your answer it seems that my wish is not possible - you say that I still have to manually skip to the main file to get the whole document updated (or even a child to look correct). James Sutherland-4 wrote: On Jul 11, 2008, at 2:07 PM, bigblop wrote: I have made a main.lyx file that includes a few child documents as input files. But when I am compiling a child document the whole document does not get updated. This means that each time I want to se the changes I have made I need to compile the main.lyx file which is rather annoying. Is there someway to compile the main.lyx file from a child document? Annoying to one is a nice feature to another. This is actually really a nice feature in LyX because you can actually compile and view child documents independently from the parent, and with different formatting (line spacing, margins, etc.). This is not easily done in LaTeX. I just switch the focus in LyX back to the main file and compile it. Then you get the whole thing. James -- View this message in context: http://www.nabble.com/Compiling-Root-document-from-child-document--tp18411658p18412701.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: interesting behaviour
On Fri, 11 Jul 2008 23:00:04 +0200 assasukasse [EMAIL PROTECTED] wrote: I noticed an interesting behaviour: If i make a document with lyx in ubuntu hardy, the pdf that comes out is around 9Mb if i do in debian lenny, the pdf that comes out is 20Mb! of course both the sources are the same! what could cause this??? LyX uses existing tools to make the final PDF (not included with the LyX package). So the size doesn't really depend on LyX, but on the tools you have installed. Eg. pdflatex is one of the popular tools, dvipdf and ps2pdf are others. Check in Preferences, in the converter section, which is configured. John
Re: Specify PDF viewer with space in filename?
Ok, I reproduced this on my machine and sorted it out. The problem is that LyX passes the path to the output file (sitting in your temporary buffer directory) as C:/whatever/whatever.pdf. Acrobat Reader is apparently too stupid to cope with the Unix style separators (/ rather than \), unlike most of the programs I run on my Win boxes. So there are a couple of alternatives that will work. One is to write a batch file that takes the path, swaps separators (a one-line sed script could do this), then calls AcroRd32 with the Windows-fied path. The other is easier *if* you are willing to have Acrobat Reader be the system default reader for PDFs. You may already have that -- if double-clicking a PDF icon opens it in AR, you're there. The easy solution is to put Acrobat Reader's directory on your system path and leave the viewer setting as 'auto' in LyX. /Paul bigblop wrote: Have done as you recommended, I can see that the command Executing command acrord32.exe... is run but acroread does not open. If I press Ctrl-alt-delete I can see the acrord32.exe process and need to manualy terminate it if I want to run acroread from windows again. Paul A. Rubin wrote: bigblop wrote: I use LyX 1.5.4 for winXP. I have installed adobe reader in: C:\Programmer\Adobe\Reader 8.0\Reader\AcroRd32.exe I need to specify the whole path to the above file if I want to use it as the PDF previewer. But I get an error since there is a space in the foldername Reader 8.0. If I manually remove the space all my PDF files is no longer associated with Adobe Reader. How do I specify a PDF viewer with a space in the filename? Put the path on Tools - Preferences - Paths - PATH prefix (spaces and all), then just put acrord32.exe as the viewer. /Paul
Re: Compiling Root document from child document?
On Jul 11, 2008, at 3:16 PM, bigblop wrote: If I compile the child separately the references from my .bib file does not show (only appears as question marks). But based on your answer it seems that my wish is not possible - you say that I still have to manually skip to the main file to get the whole document updated (or even a child to look correct). Right. You must compile the main file, not the children, if you want the full document with proper cross references. This is no different than LaTeX. There you still must compile the main file and not the children. In LaTeX the problem is even a bit worse because a child will not compile at all because all of the latex preamble stuff is missing. So LyX seems to be better than LaTeX in this regard, although not perfect since, as you point out, references are broken...
Re: Specify PDF viewer with space in filename?
Paul A. Rubin wrote: The easy solution is to put Acrobat Reader's directory on your system path and leave the viewer setting as 'auto' in LyX. Actually, I'm not even sure you need AR on the system path, as long as it's in the registry as the default viewer for PDFs. The 'auto' setting is AFAIK the default when LyX installs. Did you change it for a particular reason (such as AR *not* being your default viewer)? /Paul
Re: New letter example using Koma-Script
On Fri, 11 Jul 2008, Jean-Marie Pacquet wrote: Done! But feel free to proof read the english text! Thanks! If that parameter file for a nordic country was for Sweden, and you still have it, I wouldn't mind a copy. I should make a business letter for Sweden... /C -- Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr
Re: Compiling Root document from child document?
On Fri, 11 Jul 2008, James Sutherland wrote: If I compile the child separately the references from my .bib file does not show (only appears as question marks). It can be done, but it's a bit more advanced and I'm not sure I remember how I did it. Perhaps I did it by using the preamble of the child document to define a custom command that defines the .bib-file to use, and then inserted that custom command at the end of the child document. Anyway, I know it can be done. If it's important, ask for it and I'll see if I can dig out my old thesis files. But based on your answer it seems that my wish is not possible - you say that I still have to manually skip to the main file to get the whole document updated (or even a child to look correct). You could perhaps define your own keyboard sequence that does this for you? In the general case though, how would the child document know which document that is it's master? Or... why can't a child document belong to two or more master documents? Right. You must compile the main file, not the children, if you want the full document with proper cross references. True.. cross references to other child documents will not work, only bibilography referenes. regards, Christian -- Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr
Re: Specify PDF viewer with space in filename?
Ah of course I used SumatraPDF.exe before. Know I have just choosen pdfview and I runs acroread. Thanks for the tip! BTW: It finally seems that acroread (8.1.2) automatically refreshes a changed PDF file! Before it just showed a corrupted file. Next update though is to keep it at the current page, when it refreshes it jumps to the first page of the PDF file :-( Paul A. Rubin wrote: Paul A. Rubin wrote: The easy solution is to put Acrobat Reader's directory on your system path and leave the viewer setting as 'auto' in LyX. Actually, I'm not even sure you need AR on the system path, as long as it's in the registry as the default viewer for PDFs. The 'auto' setting is AFAIK the default when LyX installs. Did you change it for a particular reason (such as AR *not* being your default viewer)? /Paul -- View this message in context: http://www.nabble.com/Specify-PDF-viewer-with-space-in-filename--tp18411511p18414272.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Compiling Root document from child document?
True.. cross references to other child documents will not work, only bibilography referenes. That only works if a bibliography section is also inserted in the child - which is not a good idea. -- View this message in context: http://www.nabble.com/Compiling-Root-document-from-child-document--tp18411658p18414369.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Compiling Root document from child document?
James Sutherland-4 wrote: On Jul 11, 2008, at 3:16 PM, bigblop wrote: If I compile the child separately the references from my .bib file does not show (only appears as question marks). But based on your answer it seems that my wish is not possible - you say that I still have to manually skip to the main file to get the whole document updated (or even a child to look correct). Right. You must compile the main file, not the children, if you want the full document with proper cross references. This is no different than LaTeX. There you still must compile the main file and not the children. In LaTeX the problem is even a bit worse because a child will not compile at all because all of the latex preamble stuff is missing. So LyX seems to be better than LaTeX in this regard, although not perfect since, as you point out, references are broken... I know that it works with Kile for linux. There its possible to make a project where you define a compile command that always compiles the master eventhough you are currently editing a child. It seems that it would just be a matter of defining a shortkey to compile a user specified .lyx file (in this case main.lyx) -- View this message in context: http://www.nabble.com/Compiling-Root-document-from-child-document--tp18411658p18414397.html Sent from the LyX - Users mailing list archive at Nabble.com.
Getting started presentation
As a new LyX user, I have no idea how to prepare presentation using LyX. How can I learn LyX for presentation, is there any documentation, Getting Started presentation document or tutorial to prepare presentation. In document class, presentation(Foiltex, beamer, powerdot, slide and seminar) are already available. thanks /Adi
Re: Inserting code
have you tried listings environment? pavel Hi Pavel and Andre. I tried listing environment, but it does not function properly. It does not respect the structue of the code that I paste in, neither does it respect any of the settings that I choose after right clicking on the listing. I do not know if I need to install some package containing listing plug-in. I am using Lyx 1.5.3 on Ubuntu. Thanks both for your help Ivica -- View this message in context: http://www.nabble.com/Inserting-code-tp18393441p18415503.html Sent from the LyX - Users mailing list archive at Nabble.com.
txfonts integral sign replaced with intersection operator
Hi, I am using Lyx 1.5.1 on Ubuntu Linux. I have a problem when trying to use the txfonts package: everything looks beautiful except that any integral sign (/int) is replaced in dvi and pdf output with a large intersection operator with a plus sign inside it. I have reproduced this error on both my Linux and Windows box. On Linux I'm using texlive, while on Windows, I use MikTeX with Lyx 1.5.5. I'm suspecting the integral and the operator commands were switched. I do work on path integrals, so my documents feature the integral sign a lot, and this error keeps me from using the txfonts package, which I otherwise love. Can anybody help me fix this problem? Your help is much appreciated, Cristian
Re: Getting started presentation
Waluyo Adi Siswanto wrote: As a new LyX user, I have no idea how to prepare presentation using LyX. How can I learn LyX for presentation, is there any documentation, Getting Started presentation document or tutorial to prepare presentation. In document class, presentation(Foiltex, beamer, powerdot, slide and seminar) are already available. You can find examples for both beamer and powerdot in the LyX examples folder, and there is also a beamer template (File-New from Template...). Jürgen
Re: Compiling Root document from child document?
bigblop wrote: Is there someway to compile the main.lyx file from a child document? If you have opened the child document from the master document (or after you have once processed the master), you can compile the master from the child with the command master-buffer-update pdf2 (for pdflatex, as an example; there's also master-buffer-view and you can substitute pdf2 by any output format). You can either input this command in the minibuffer, or you can create your own toolbar or menu item or shortcuts for this. In fact, you can even replace the standard commands buffer-view and buffer-update with these, since if no master is found, the document itself gets compiled. In 1.6, things will get a bit easier. There you can allocate a master buffer to a child in the document dialog, so the first step is not needed anymore. Jürgen
Re: noindent for abstracts?
bigblop wrote: That is already unchecked. The problem is that when I type the abstract its actually indented. But when I make I line break the next line starts a bit more to the left than the above abstract. Please post a minimal example file. Jürgen
Re: Xfig and LyX
I have often used fig2ps (from sourceforge) to transform .fig files to .eps and then include the resulting eps file in LyX. (I don't remember what started me doing this; there was a problem of complexity in my figure a few years ago and this provided the solution.) It is possible to force specialtext from hte fig2ps command line. I checked out fig2ps and it is a neat program. I have been playing around with the converters in LyX, but I still am not completely clear on all the details of how they are operating. It seems like you could define a converter to use the fig2ps program automatically, without having to do it by hand. Even more interesting, it seems like you could use a fig2ps type of program as a converter to get a preview with the actual math symbols, rather than something with the usual $x_2$ types of strings... This type of thing, if it works, should work both with a graphics include as well as with an external file include... Any suggestions, critiques, or comments? It would be very nice to have a preview which included the actual math, if that could be done easily. But maybe such a thing can already be done in a way I am not familiar with?
Re: Xfig and LyX
Allen L. Barker wrote: I have often used fig2ps (from sourceforge) to transform .fig files to .eps and then include the resulting eps file in LyX. (I don't remember what started me doing this; there was a problem of complexity in my figure a few years ago and this provided the solution.) It is possible to force specialtext from hte fig2ps command line. I checked out fig2ps and it is a neat program. I have been playing around with the converters in LyX, but I still am not completely clear on all the details of how they are operating. It seems like you could define a converter to use the fig2ps program automatically, without having to do it by hand. Even more interesting, it seems like you could use a fig2ps type of program as a converter to get a preview with the actual math symbols, rather than something with the usual $x_2$ types of strings... This type of thing, if it works, should work both with a graphics include as well as with an external file include... Any suggestions, critiques, or comments? It would be very nice to have a preview which included the actual math, if that could be done easily. But maybe such a thing can already be done in a way I am not familiar with? Yes xifg previewing can already been done thanks to fig2dev which is part of the xfig program. Just use the external material inset (Inset-File-External Material) and choose XFig in the combo. In the display tab, select 'preview'. Abdel.
Re: New letter example using Koma-Script
On Thu, 10 Jul 2008, Jean-Marie Pacquet wrote: Christian Ridderström a écrit : Hi, Thanks to Rich Shepard, I've put up an example of how to do a 'business'-like letter with Koma-Script using LyX here: http://wiki.lyx.org/Examples/KomaLetter2 Feel free to use it as you like, and if you know something about Koma-Script, please tell me about any mis-use of the document class. Hi Christian, I did something very similar for french letters last year. If you want to add these files to the Lyx wiki, please feel free to get them here: http://pacquet.net/?q=node/2 Hi Jean-Marie, Thanks for the example. I've uploaded the files and copied your text to the same wiki page, i.e. http://wiki.lyx.org/Examples/KomaLetter2#toc6 But I don't understand French, so would you mind adding a translation of your text to the wiki page? I've prepared a place for the translation, and we can keep your original french text below the english text. If you like, I can proof read the english translation. Best regards, /Christian -- Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr
Xfig and LyX
Could somebody kindly point me to an understandable explanation of how to use xfig produced figures in LyX? Help file Userguide tells me to check for detailed explanation under ImbeddedObjects but there I can´t find any detailed explanation. Just FYI, here is my current preferred method, for the types of equation-heavy figures I tend to have. First, include the following in the preamble: \usepackage{color} \usepackage{graphics} \usepackage[scanall]{psfrag} Now in your actual .fig images you use special text replacement-tags (without setting the special flag on the xfig text). These tags are just placeholders which will then be replaced by the final text, defined from within LyX. The replacements are specified by strings like \psfrag{FOURIERTRANSFORM}{insert LyX text here} The text FOURIERTRANSFORM is what you would include in your actual image. By skillfully choosing these labels the images can be reasonably comprehensible even without the conversions. Within LyX, the whole \psfrag{FOURIERTRANSFORM}{ is a red TeX box, as is the final }. But the insert LyX text here part between them can be arbitrary, normal LyX text (within reason). In particular, it can include LyX math-boxes for equation-editing. This is extremely convenient when you have complicated formulas (and when you are no longer used to entering the LaTeX strings for everything). I wrote a simple tutorial on this stuff in 2001, but it no longer seems to be out on the web. It does need some updating, but many things are the same. BTW, the psfrag way to include arbitrary text like $x_2$ in images is to have the string \tex{$x_2$} in the original image. Anyway, the advantages of the general psfrag substitution method in LyX are that you can scale the text-size of any substitution from within LyX, and you can use the math-editor boxes rather than having to use the LaTeX math strings. Ideally, of course, we all want the best of all the worlds as things progress. It would be nice if all the methods were compatible. I'm still looking into and considering how the psfrag stuff could be compatible with the external-file pstex stuff. The external-file mechanism in LyX is actually rather general and customizable. In the future (however distant) it would be nice if we could use a LyX math-box to edit the equations in a previewed figure, and to have the results displayed in the final equation form
Re: Xfig and LyX
Yes xifg previewing can already been done thanks to fig2dev which is part of the xfig program. Just use the external material inset (Inset-File-External Material) and choose XFig in the combo. In the display tab, select 'preview'. I think you are missing my point. Yes, I agree with you that LyX can already preview the xfig images. But, can it preview the math text like $x_2$ in its final form? I have not found any way for doing that, and I was suggesting a possibility... I have tried the External Material type of inset, but it still displays $x_2$ as $x_2$.
Package options override
Hi, I want to use the achemso package for the formatting of my bibliography. (http://www.ctan.org/tex-archive/macros/latex/contrib/achemso/) This package provides citation styles compliant with the rules of the journals of the American Chemical Society (ACS). I need a specific options, which includes the title of a cited article in the citation. Therefore I have included the following line in my latex preamble \usepackage[usetitle]{achemso} usetitle is the option that provides the inclusion of the title in the citation. Lyx uses the achemso citation style but ignores the usetitle option. I tried other options of the package and lyx seems to completely ignore them all. Any hints on what may be the problem? Thanks for any help... Sebastian
Re: Xfig and LyX
Allen L. Barker wrote: Yes xifg previewing can already been done thanks to fig2dev which is part of the xfig program. Just use the external material inset (Inset-File-External Material) and choose XFig in the combo. In the display tab, select 'preview'. I think you are missing my point. Yes, I agree with you that LyX can already preview the xfig images. But, can it preview the math text like $x_2$ in its final form? Yes, if you mark the text field as LateX in xfig the equation will be latex compiled and previewed on LyX screen. At least it works in 1.6, maybe there's a bug in 1.5... You need the instant-preview package and dvipng installed for this to work. I have not found any way for doing that, and I was suggesting a possibility... I have tried the External Material type of inset, but it still displays $x_2$ as $x_2$. See above, it should work. But I am not sure this will be compatible with your psfrag methods as this method uses the pstex_t format (or pdftex_t). Abdel.
Re: New letter example using Koma-Script
Christian Ridderström a écrit : But I don't understand French, so would you mind adding a translation of your text to the wiki page? I've prepared a place for the translation, and we can keep your original french text below the english text. If you like, I can proof read the english translation. Done! But feel free to proof read the english text! Best regards -- jean-marie pacquet
Re: Xfig and LyX
Yes, if you mark the text field as LateX in xfig the equation will be latex compiled and previewed on LyX screen. At least it works in 1.6, maybe there's a bug in 1.5... You need the instant-preview package and dvipng installed for this to work. Are these packages installed by default in the normal LyX setups (such as on a recent Fedora Linux)? If not, how should one install the packages? Are there any other side-effects to the packages? From within xfig, do you need to both select the text field as special and select it to use the latex-font?
Re: Xfig and LyX
Allen L. Barker wrote: Yes, if you mark the text field as LateX in xfig the equation will be latex compiled and previewed on LyX screen. At least it works in 1.6, maybe there's a bug in 1.5... You need the instant-preview package and dvipng installed for this to work. Are these packages installed by default in the normal LyX setups (such as on a recent Fedora Linux)? Dunno... If not, how should one install the packages? Are there any other side-effects to the packages? Dunno... From within xfig, do you need to both select the text field as special and select it to use the latex-font? Dunno... I just use it on Windows :-) Hopefully someone else will answer your questions... Abdel.
pagenumbering
Hi all i am paginating my thesis with lyx, i divided the document into many child documents and made a page called Thesis which joins together (by putting add child document one after the other). Now, while the first pages, which uses roman numbering show correct placement of the number (on the bottom outside), the following child document, which uses arabic page numbering is performing incorrectly, by putting the page numbering in the wrong side of the page. Is there any way to make lys fix this? Thanks Assa
Re: Reference Order and figure position problems
I had the same problem. It would be very helpful if you could tell me how to change from _alphabetically_ sorted to unsrt style. Thank you Jürgen Spitzmüller-2 wrote: [EMAIL PROTECTED] wrote: 1) When the document is viewed in pdf, all my references in the main body of text are in the wrong order. The first reference stated comes up as [145] and not [1], while the second is [76], not [2]. This occurs throughout the entire document, in a nons equential psuedo random manner! The numbers refer to an _alphabetically_ sorted bibliography, not to the order of appearance in the text, unless you are using an unsrt style. Jürgen -- View this message in context: http://www.nabble.com/Reference-Order-and-figure-position-problems-tp15401589p18406327.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Reference Order and figure position problems
vascoosx wrote: I had the same problem. It would be very helpful if you could tell me how to change from _alphabetically_ sorted to unsrt style. chose and unsrt bibliography style (right-click on the grey BibTeX box and select a style from the lower drop down box). Jürgen
Re: Bullet distance
snvv wrote: Hello Is it possible to increase the space between a bullet and the text that follows? Thank you snvv If you want to do this globally (all bullets, all levels of the document, try the following in your preamble: \addtolength{\leftmargini}{3ex} \addtolength{\labelsep}{3ex} (change 3ex to whatever amount of space you want). /Paul
Re: Reference Order and figure position problems
On Jul 11, 2008, at 9:21 AM, vascoosx wrote: I had the same problem. It would be very helpful if you could tell me how to change from _alphabetically_ sorted to unsrt style. Insert-List/TOC - BibTeX Bibliography Choose unsrt from the drop-down menu in the bibliography dialog box. James
Re: Inserting code
On Thu, Jul 10, 2008 at 03:39:54PM -0700, Ivica1009 wrote: In my thesis I need to use a lot of C++ code. I am developing code in Eclipse CDT text editor. If I copy my code, for example, into the OpenOffice documet, the code preserves its format and colors. [I never thought of code having a color that could be preserved, but that's probabl just me ;-)] If I copy the code into Lyx it does not preserve neither of those. Is there a way to copy code from other editors into Lyx in such a way that at least the format of the code is preserved? There is support for code inclusion using the listings package. Andre'
MikTeX 2.7 update warning
Hi Lyx/Win Users, please be aware that updating MiKTeX 2.7 to current patchlevel as present in its repositories since 09. July will leave you with a broken backend - you will not be able to get any output - not even from the LyX help files. Tried on 3 different XP machines. LyX/Latex error output will be: Undefined contro sequence. LaTeX Error: Missing \begin{document}. Regards, Tom Schlangen --
Re: MikTeX 2.7 update warning
Tom Schlangen wrote: Hi Lyx/Win Users, please be aware that updating MiKTeX 2.7 to current patchlevel as present in its repositories since 09. July will leave you with a broken backend - you will not be able to get any output - not even from the LyX help files. Tried on 3 different XP machines. LyX/Latex error output will be: Undefined contro sequence. LaTeX Error: Missing \begin{document}. You just have to rebuild the formats[1], since some language specific definitions have changed. Then everything should be working fine again. Regards, Dominik.- [1] Button 'Update Formats' in 'Miktex Settings' dialog.
Re: MikTeX 2.7 update warning
Dear Dominik, You just have to rebuild the formats[1], since some language specific definitions have changed. Then everything should be working fine again. [1] Button 'Update Formats' in 'Miktex Settings' dialog. This works - thank you! Regards, Tom Schlangen -- mailto:[EMAIL PROTECTED]
Re: noindent for abstracts?
That is already unchecked. The problem is that when I type the abstract its actually indented. But when I make I line break the next line starts a bit more to the left than the above abstract. Jürgen Spitzmüller-2 wrote: bigblop wrote: Use ERT (Insert-TeX code) \noindent before you type any sentence in a new paragraph. Is that what you want ??? Yes but I would like to avoid using ERT. Edit-Paragraph Settings: uncheck Indent Paragraph. Jürgen -- View this message in context: http://www.nabble.com/noindent-for-abstracts--tp18235018p18411439.html Sent from the LyX - Users mailing list archive at Nabble.com.
Specify PDF viewer with space in filename?
I use LyX 1.5.4 for winXP. I have installed adobe reader in: C:\Programmer\Adobe\Reader 8.0\Reader\AcroRd32.exe I need to specify the whole path to the above file if I want to use it as the PDF previewer. But I get an error since there is a space in the foldername Reader 8.0. If I manually remove the space all my PDF files is no longer associated with Adobe Reader. How do I specify a PDF viewer with a space in the filename? -- View this message in context: http://www.nabble.com/Specify-PDF-viewer-with-space-in-filename--tp18411511p18411511.html Sent from the LyX - Users mailing list archive at Nabble.com.
Compiling Root document from child document?
I have made a main.lyx file that includes a few child documents as input files. But when I am compiling a child document the whole document does not get updated. This means that each time I want to se the changes I have made I need to compile the main.lyx file which is rather annoying. Is there someway to compile the main.lyx file from a child document? -- View this message in context: http://www.nabble.com/Compiling-Root-document-from-child-document--tp18411658p18411658.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Specify PDF viewer with space in filename?
bigblop wrote: I use LyX 1.5.4 for winXP. I have installed adobe reader in: C:\Programmer\Adobe\Reader 8.0\Reader\AcroRd32.exe I need to specify the whole path to the above file if I want to use it as the PDF previewer. But I get an error since there is a space in the foldername Reader 8.0. If I manually remove the space all my PDF files is no longer associated with Adobe Reader. How do I specify a PDF viewer with a space in the filename? Put the path on Tools - Preferences - Paths - PATH prefix (spaces and all), then just put acrord32.exe as the viewer. /Paul
Re: Compiling Root document from child document?
On Jul 11, 2008, at 2:07 PM, bigblop wrote: I have made a main.lyx file that includes a few child documents as input files. But when I am compiling a child document the whole document does not get updated. This means that each time I want to se the changes I have made I need to compile the main.lyx file which is rather annoying. Is there someway to compile the main.lyx file from a child document? Annoying to one is a nice feature to another. This is actually really a nice feature in LyX because you can actually compile and view child documents independently from the parent, and with different formatting (line spacing, margins, etc.). This is not easily done in LaTeX. I just switch the focus in LyX back to the main file and compile it. Then you get the whole thing. James
interesting behaviour
I noticed an interesting behaviour: If i make a document with lyx in ubuntu hardy, the pdf that comes out is around 9Mb if i do in debian lenny, the pdf that comes out is 20Mb! of course both the sources are the same! what could cause this???
Re: Specify PDF viewer with space in filename?
Have done as you recommended, I can see that the command Executing command acrord32.exe... is run but acroread does not open. If I press Ctrl-alt-delete I can see the acrord32.exe process and need to manualy terminate it if I want to run acroread from windows again. Paul A. Rubin wrote: bigblop wrote: I use LyX 1.5.4 for winXP. I have installed adobe reader in: C:\Programmer\Adobe\Reader 8.0\Reader\AcroRd32.exe I need to specify the whole path to the above file if I want to use it as the PDF previewer. But I get an error since there is a space in the foldername Reader 8.0. If I manually remove the space all my PDF files is no longer associated with Adobe Reader. How do I specify a PDF viewer with a space in the filename? Put the path on Tools - Preferences - Paths - PATH prefix (spaces and all), then just put acrord32.exe as the viewer. /Paul -- View this message in context: http://www.nabble.com/Specify-PDF-viewer-with-space-in-filename--tp18411511p18412631.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Compiling Root document from child document?
If I compile the child separately the references from my .bib file does not show (only appears as question marks). But based on your answer it seems that my wish is not possible - you say that I still have to manually skip to the main file to get the whole document updated (or even a child to look correct). James Sutherland-4 wrote: On Jul 11, 2008, at 2:07 PM, bigblop wrote: I have made a main.lyx file that includes a few child documents as input files. But when I am compiling a child document the whole document does not get updated. This means that each time I want to se the changes I have made I need to compile the main.lyx file which is rather annoying. Is there someway to compile the main.lyx file from a child document? Annoying to one is a nice feature to another. This is actually really a nice feature in LyX because you can actually compile and view child documents independently from the parent, and with different formatting (line spacing, margins, etc.). This is not easily done in LaTeX. I just switch the focus in LyX back to the main file and compile it. Then you get the whole thing. James -- View this message in context: http://www.nabble.com/Compiling-Root-document-from-child-document--tp18411658p18412701.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: interesting behaviour
On Fri, 11 Jul 2008 23:00:04 +0200 assasukasse [EMAIL PROTECTED] wrote: I noticed an interesting behaviour: If i make a document with lyx in ubuntu hardy, the pdf that comes out is around 9Mb if i do in debian lenny, the pdf that comes out is 20Mb! of course both the sources are the same! what could cause this??? LyX uses existing tools to make the final PDF (not included with the LyX package). So the size doesn't really depend on LyX, but on the tools you have installed. Eg. pdflatex is one of the popular tools, dvipdf and ps2pdf are others. Check in Preferences, in the converter section, which is configured. John
Re: Specify PDF viewer with space in filename?
Ok, I reproduced this on my machine and sorted it out. The problem is that LyX passes the path to the output file (sitting in your temporary buffer directory) as C:/whatever/whatever.pdf. Acrobat Reader is apparently too stupid to cope with the Unix style separators (/ rather than \), unlike most of the programs I run on my Win boxes. So there are a couple of alternatives that will work. One is to write a batch file that takes the path, swaps separators (a one-line sed script could do this), then calls AcroRd32 with the Windows-fied path. The other is easier *if* you are willing to have Acrobat Reader be the system default reader for PDFs. You may already have that -- if double-clicking a PDF icon opens it in AR, you're there. The easy solution is to put Acrobat Reader's directory on your system path and leave the viewer setting as 'auto' in LyX. /Paul bigblop wrote: Have done as you recommended, I can see that the command Executing command acrord32.exe... is run but acroread does not open. If I press Ctrl-alt-delete I can see the acrord32.exe process and need to manualy terminate it if I want to run acroread from windows again. Paul A. Rubin wrote: bigblop wrote: I use LyX 1.5.4 for winXP. I have installed adobe reader in: C:\Programmer\Adobe\Reader 8.0\Reader\AcroRd32.exe I need to specify the whole path to the above file if I want to use it as the PDF previewer. But I get an error since there is a space in the foldername Reader 8.0. If I manually remove the space all my PDF files is no longer associated with Adobe Reader. How do I specify a PDF viewer with a space in the filename? Put the path on Tools - Preferences - Paths - PATH prefix (spaces and all), then just put acrord32.exe as the viewer. /Paul
Re: Compiling Root document from child document?
On Jul 11, 2008, at 3:16 PM, bigblop wrote: If I compile the child separately the references from my .bib file does not show (only appears as question marks). But based on your answer it seems that my wish is not possible - you say that I still have to manually skip to the main file to get the whole document updated (or even a child to look correct). Right. You must compile the main file, not the children, if you want the full document with proper cross references. This is no different than LaTeX. There you still must compile the main file and not the children. In LaTeX the problem is even a bit worse because a child will not compile at all because all of the latex preamble stuff is missing. So LyX seems to be better than LaTeX in this regard, although not perfect since, as you point out, references are broken...
Re: Specify PDF viewer with space in filename?
Paul A. Rubin wrote: The easy solution is to put Acrobat Reader's directory on your system path and leave the viewer setting as 'auto' in LyX. Actually, I'm not even sure you need AR on the system path, as long as it's in the registry as the default viewer for PDFs. The 'auto' setting is AFAIK the default when LyX installs. Did you change it for a particular reason (such as AR *not* being your default viewer)? /Paul
Re: New letter example using Koma-Script
On Fri, 11 Jul 2008, Jean-Marie Pacquet wrote: Done! But feel free to proof read the english text! Thanks! If that parameter file for a nordic country was for Sweden, and you still have it, I wouldn't mind a copy. I should make a business letter for Sweden... /C -- Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr
Re: Compiling Root document from child document?
On Fri, 11 Jul 2008, James Sutherland wrote: If I compile the child separately the references from my .bib file does not show (only appears as question marks). It can be done, but it's a bit more advanced and I'm not sure I remember how I did it. Perhaps I did it by using the preamble of the child document to define a custom command that defines the .bib-file to use, and then inserted that custom command at the end of the child document. Anyway, I know it can be done. If it's important, ask for it and I'll see if I can dig out my old thesis files. But based on your answer it seems that my wish is not possible - you say that I still have to manually skip to the main file to get the whole document updated (or even a child to look correct). You could perhaps define your own keyboard sequence that does this for you? In the general case though, how would the child document know which document that is it's master? Or... why can't a child document belong to two or more master documents? Right. You must compile the main file, not the children, if you want the full document with proper cross references. True.. cross references to other child documents will not work, only bibilography referenes. regards, Christian -- Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr
Re: Specify PDF viewer with space in filename?
Ah of course I used SumatraPDF.exe before. Know I have just choosen pdfview and I runs acroread. Thanks for the tip! BTW: It finally seems that acroread (8.1.2) automatically refreshes a changed PDF file! Before it just showed a corrupted file. Next update though is to keep it at the current page, when it refreshes it jumps to the first page of the PDF file :-( Paul A. Rubin wrote: Paul A. Rubin wrote: The easy solution is to put Acrobat Reader's directory on your system path and leave the viewer setting as 'auto' in LyX. Actually, I'm not even sure you need AR on the system path, as long as it's in the registry as the default viewer for PDFs. The 'auto' setting is AFAIK the default when LyX installs. Did you change it for a particular reason (such as AR *not* being your default viewer)? /Paul -- View this message in context: http://www.nabble.com/Specify-PDF-viewer-with-space-in-filename--tp18411511p18414272.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Compiling Root document from child document?
True.. cross references to other child documents will not work, only bibilography referenes. That only works if a bibliography section is also inserted in the child - which is not a good idea. -- View this message in context: http://www.nabble.com/Compiling-Root-document-from-child-document--tp18411658p18414369.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Compiling Root document from child document?
James Sutherland-4 wrote: On Jul 11, 2008, at 3:16 PM, bigblop wrote: If I compile the child separately the references from my .bib file does not show (only appears as question marks). But based on your answer it seems that my wish is not possible - you say that I still have to manually skip to the main file to get the whole document updated (or even a child to look correct). Right. You must compile the main file, not the children, if you want the full document with proper cross references. This is no different than LaTeX. There you still must compile the main file and not the children. In LaTeX the problem is even a bit worse because a child will not compile at all because all of the latex preamble stuff is missing. So LyX seems to be better than LaTeX in this regard, although not perfect since, as you point out, references are broken... I know that it works with Kile for linux. There its possible to make a project where you define a compile command that always compiles the master eventhough you are currently editing a child. It seems that it would just be a matter of defining a shortkey to compile a user specified .lyx file (in this case main.lyx) -- View this message in context: http://www.nabble.com/Compiling-Root-document-from-child-document--tp18411658p18414397.html Sent from the LyX - Users mailing list archive at Nabble.com.
Getting started presentation
As a new LyX user, I have no idea how to prepare presentation using LyX. How can I learn LyX for presentation, is there any documentation, Getting Started presentation document or tutorial to prepare presentation. In document class, presentation(Foiltex, beamer, powerdot, slide and seminar) are already available. thanks /Adi
Re: Inserting code
have you tried listings environment? pavel Hi Pavel and Andre. I tried listing environment, but it does not function properly. It does not respect the structue of the code that I paste in, neither does it respect any of the settings that I choose after right clicking on the listing. I do not know if I need to install some package containing listing plug-in. I am using Lyx 1.5.3 on Ubuntu. Thanks both for your help Ivica -- View this message in context: http://www.nabble.com/Inserting-code-tp18393441p18415503.html Sent from the LyX - Users mailing list archive at Nabble.com.
txfonts integral sign replaced with intersection operator
Hi, I am using Lyx 1.5.1 on Ubuntu Linux. I have a problem when trying to use the txfonts package: everything looks beautiful except that any integral sign (/int) is replaced in dvi and pdf output with a large intersection operator with a plus sign inside it. I have reproduced this error on both my Linux and Windows box. On Linux I'm using texlive, while on Windows, I use MikTeX with Lyx 1.5.5. I'm suspecting the integral and the operator commands were switched. I do work on path integrals, so my documents feature the integral sign a lot, and this error keeps me from using the txfonts package, which I otherwise love. Can anybody help me fix this problem? Your help is much appreciated, Cristian
Re: Getting started presentation
Waluyo Adi Siswanto wrote: As a new LyX user, I have no idea how to prepare presentation using LyX. How can I learn LyX for presentation, is there any documentation, Getting Started presentation document or tutorial to prepare presentation. In document class, presentation(Foiltex, beamer, powerdot, slide and seminar) are already available. You can find examples for both beamer and powerdot in the LyX examples folder, and there is also a beamer template (File-New from Template...). Jürgen
Re: Compiling Root document from child document?
bigblop wrote: Is there someway to compile the main.lyx file from a child document? If you have opened the child document from the master document (or after you have once processed the master), you can compile the master from the child with the command master-buffer-update pdf2 (for pdflatex, as an example; there's also master-buffer-view and you can substitute pdf2 by any output format). You can either input this command in the minibuffer, or you can create your own toolbar or menu item or shortcuts for this. In fact, you can even replace the standard commands buffer-view and buffer-update with these, since if no master is found, the document itself gets compiled. In 1.6, things will get a bit easier. There you can allocate a master buffer to a child in the document dialog, so the first step is not needed anymore. Jürgen
Re: noindent for abstracts?
bigblop wrote: That is already unchecked. The problem is that when I type the abstract its actually indented. But when I make I line break the next line starts a bit more to the left than the above abstract. Please post a minimal example file. Jürgen
Re: Xfig and LyX
> I have often used fig2ps (from sourceforge) to transform .fig files > to .eps and then include the resulting eps file in LyX. (I don't > remember what started me doing this; there was a problem of > complexity in my figure a few years ago and this provided the > solution.) > > It is possible to force specialtext from hte fig2ps command line. I checked out fig2ps and it is a neat program. I have been playing around with the converters in LyX, but I still am not completely clear on all the details of how they are operating. It seems like you could define a converter to use the fig2ps program automatically, without having to do it by hand. Even more interesting, it seems like you could use a fig2ps type of program as a converter to get a preview with the actual math symbols, rather than something with the usual $x_2$ types of strings... This type of thing, if it works, should work both with a graphics include as well as with an external file include... Any suggestions, critiques, or comments? It would be very nice to have a preview which included the actual math, if that could be done easily. But maybe such a thing can already be done in a way I am not familiar with?
Re: Xfig and LyX
Allen L. Barker wrote: > I have often used fig2ps (from sourceforge) to transform .fig files > to .eps and then include the resulting eps file in LyX. (I don't > remember what started me doing this; there was a problem of > complexity in my figure a few years ago and this provided the > solution.) > > It is possible to force specialtext from hte fig2ps command line. I checked out fig2ps and it is a neat program. I have been playing around with the converters in LyX, but I still am not completely clear on all the details of how they are operating. It seems like you could define a converter to use the fig2ps program automatically, without having to do it by hand. Even more interesting, it seems like you could use a fig2ps type of program as a converter to get a preview with the actual math symbols, rather than something with the usual $x_2$ types of strings... This type of thing, if it works, should work both with a graphics include as well as with an external file include... Any suggestions, critiques, or comments? It would be very nice to have a preview which included the actual math, if that could be done easily. But maybe such a thing can already be done in a way I am not familiar with? Yes xifg previewing can already been done thanks to fig2dev which is part of the xfig program. Just use the external material inset (Inset->File->External Material) and choose XFig in the combo. In the display tab, select 'preview'. Abdel.
Re: New letter example using Koma-Script
On Thu, 10 Jul 2008, Jean-Marie Pacquet wrote: Christian Ridderström a écrit : Hi, Thanks to Rich Shepard, I've put up an example of how to do a 'business'-like letter with Koma-Script using LyX here: http://wiki.lyx.org/Examples/KomaLetter2 Feel free to use it as you like, and if you know something about Koma-Script, please tell me about any mis-use of the document class. Hi Christian, I did something very similar for french letters last year. If you want to add these files to the Lyx wiki, please feel free to get them here: http://pacquet.net/?q=node/2 Hi Jean-Marie, Thanks for the example. I've uploaded the files and copied your text to the same wiki page, i.e. http://wiki.lyx.org/Examples/KomaLetter2#toc6 But I don't understand French, so would you mind adding a translation of your text to the wiki page? I've prepared a place for the translation, and we can keep your original french text below the english text. If you like, I can proof read the english translation. Best regards, /Christian -- Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr
Xfig and LyX
> Could somebody kindly point me to an understandable explanation > of how to use xfig produced figures in LyX? > Help file Userguide tells me to check for detailed explanation > under ImbeddedObjects but there I can´t find any detailed > explanation. Just FYI, here is my current preferred method, for the types of equation-heavy figures I tend to have. First, include the following in the preamble: \usepackage{color} \usepackage{graphics} \usepackage[scanall]{psfrag} Now in your actual .fig images you use special text replacement-tags (without setting the "special" flag on the xfig text). These tags are just placeholders which will then be replaced by the final text, defined from within LyX. The replacements are specified by strings like \psfrag{FOURIERTRANSFORM}{} The text FOURIERTRANSFORM is what you would include in your actual image. By skillfully choosing these labels the images can be reasonably comprehensible even without the conversions. Within LyX, the whole "\psfrag{FOURIERTRANSFORM}{" is a red TeX box, as is the final "}". But the part between them can be arbitrary, normal LyX text (within reason). In particular, it can include LyX math-boxes for equation-editing. This is extremely convenient when you have complicated formulas (and when you are no longer used to entering the LaTeX strings for everything). I wrote a simple tutorial on this stuff in 2001, but it no longer seems to be out on the web. It does need some updating, but many things are the same. BTW, the "psfrag" way to include arbitrary text like $x_2$ in images is to have the string \tex{$x_2$} in the original image. Anyway, the advantages of the general psfrag substitution method in LyX are that you can scale the text-size of any substitution from within LyX, and you can use the math-editor boxes rather than having to use the LaTeX math strings. Ideally, of course, we all want the best of all the worlds as things progress. It would be nice if all the methods were compatible. I'm still looking into and considering how the psfrag stuff could be compatible with the external-file pstex stuff. The external-file mechanism in LyX is actually rather general and customizable. In the future (however distant) it would be nice if we could use a LyX math-box to edit the equations in a previewed figure, and to have the results displayed in the final equation form
Re: Xfig and LyX
> Yes xifg previewing can already been done thanks to fig2dev which > is part of the xfig program. Just use the external material inset > (Inset->File->External Material) and choose XFig in the combo. In > the display tab, select 'preview'. I think you are missing my point. Yes, I agree with you that LyX can already preview the xfig images. But, can it preview the math text like $x_2$ in its final form? I have not found any way for doing that, and I was suggesting a possibility... I have tried the External Material type of inset, but it still displays $x_2$ as $x_2$.
Package options override
Hi, I want to use the "achemso" package for the formatting of my bibliography. (http://www.ctan.org/tex-archive/macros/latex/contrib/achemso/) This package provides citation styles compliant with the rules of the journals of the American Chemical Society (ACS). I need a specific options, which includes the title of a cited article in the citation. Therefore I have included the following line in my latex preamble \usepackage[usetitle]{achemso} "usetitle" is the option that provides the inclusion of the title in the citation. Lyx uses the achemso citation style but ignores the "usetitle" option. I tried other options of the package and lyx seems to completely ignore them all. Any hints on what may be the problem? Thanks for any help... Sebastian
Re: Xfig and LyX
Allen L. Barker wrote: > Yes xifg previewing can already been done thanks to fig2dev which > is part of the xfig program. Just use the external material inset > (Inset->File->External Material) and choose XFig in the combo. In > the display tab, select 'preview'. I think you are missing my point. Yes, I agree with you that LyX can already preview the xfig images. But, can it preview the math text like $x_2$ in its final form? Yes, if you mark the text field as LateX in xfig the equation will be latex compiled and previewed on LyX screen. At least it works in 1.6, maybe there's a bug in 1.5... You need the instant-preview package and dvipng installed for this to work. I have not found any way for doing that, and I was suggesting a possibility... I have tried the External Material type of inset, but it still displays $x_2$ as $x_2$. See above, it should work. But I am not sure this will be compatible with your psfrag methods as this method uses the pstex_t format (or pdftex_t). Abdel.
Re: New letter example using Koma-Script
Christian Ridderström a écrit : But I don't understand French, so would you mind adding a translation of your text to the wiki page? I've prepared a place for the translation, and we can keep your original french text below the english text. If you like, I can proof read the english translation. Done! But feel free to proof read the english text! Best regards -- jean-marie pacquet
Re: Xfig and LyX
> Yes, if you mark the text field as LateX in xfig the equation > will be latex compiled and previewed on LyX screen. At least > it works in 1.6, maybe there's a bug in 1.5... > > You need the instant-preview package and dvipng installed for > this to work. Are these packages installed by default in the normal LyX setups (such as on a recent Fedora Linux)? If not, how should one install the packages? Are there any other side-effects to the packages? From within xfig, do you need to both select the text field as special and select it to use the latex-font?
Re: Xfig and LyX
Allen L. Barker wrote: > Yes, if you mark the text field as LateX in xfig the equation > will be latex compiled and previewed on LyX screen. At least > it works in 1.6, maybe there's a bug in 1.5... > > You need the instant-preview package and dvipng installed for > this to work. Are these packages installed by default in the normal LyX setups (such as on a recent Fedora Linux)? Dunno... If not, how should one install the packages? Are there any other side-effects to the packages? Dunno... From within xfig, do you need to both select the text field as special and select it to use the latex-font? Dunno... I just "use it" on Windows :-) Hopefully someone else will answer your questions... Abdel.
pagenumbering
Hi all i am paginating my thesis with lyx, i divided the document into many child documents and made a page called Thesis which joins together (by putting add child document one after the other). Now, while the first pages, which uses roman numbering show correct placement of the number (on the bottom outside), the following child document, which uses arabic page numbering is performing incorrectly, by putting the page numbering in the wrong side of the page. Is there any way to make lys fix this? Thanks Assa
Re: Reference Order and figure position problems
I had the same problem. It would be very helpful if you could tell me how to change from _alphabetically_ sorted to unsrt style. Thank you Jürgen Spitzmüller-2 wrote: > > [EMAIL PROTECTED] wrote: >> 1) When the document is viewed in pdf, all my references in the main >> body of text are in the wrong order. The first reference stated comes >> up as [145] and not [1], while the second is [76], not [2]. This >> occurs throughout the entire document, in a nons equential psuedo >> random manner! > > The numbers refer to an _alphabetically_ sorted bibliography, not to the > order > of appearance in the text, unless you are using an unsrt style. > > Jürgen > > -- View this message in context: http://www.nabble.com/Reference-Order-and-figure-position-problems-tp15401589p18406327.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Reference Order and figure position problems
vascoosx wrote: > I had the same problem. It would be very helpful if you could tell me how > to change from _alphabetically_ sorted to unsrt style. chose and "unsrt" bibliography style (right-click on the grey BibTeX box and select a style from the lower drop down box). Jürgen
Re: Bullet distance
snvv wrote: Hello Is it possible to increase the space between a bullet and the text that follows? Thank you snvv If you want to do this globally (all bullets, all levels of the document, try the following in your preamble: \addtolength{\leftmargini}{3ex} \addtolength{\labelsep}{3ex} (change 3ex to whatever amount of space you want). /Paul
Re: Reference Order and figure position problems
On Jul 11, 2008, at 9:21 AM, vascoosx wrote: I had the same problem. It would be very helpful if you could tell me how to change from _alphabetically_ sorted to unsrt style. Insert->List/TOC -> BibTeX Bibliography Choose "unsrt" from the drop-down menu in the bibliography dialog box. James
Re: Inserting code
On Thu, Jul 10, 2008 at 03:39:54PM -0700, Ivica1009 wrote: > In my thesis I need to use a lot of C++ code. I am developing code in > Eclipse CDT text editor. > If I copy my code, for example, into the OpenOffice documet, the code > preserves its format and colors. [I never thought of code having a color that could be preserved, but that's probabl just me ;-)] > If I copy the code into Lyx it does not preserve neither of those. > > Is there a way to copy code from other editors into Lyx in such a way that > at least the format of the code is preserved? There is support for code inclusion using the "listings" package. Andre'