Transparency handling
Hello. I'm not sure if this is an old issue or not, but I was not able to find some thread about this subject. When I paste a picture in LyX (from the clipboard), it shows a dialog asking where to save that picture and automatically inserts it on the document. This is OK and very useful, but if the picture has transparency (eg. a PNG image with transparent background), all the transparency turns black. The interesting part is that, if I save the picture somewhere else (without using LyX), and then load the picture as usual on the document, this problem doesn't occur. That is, all the transparency is handled as expected. Is this a bug? Or is there a way to workaround this? Cheers, --- Diego Queiroz
Transparency handling
Hello. I'm not sure if this is an old issue or not, but I was not able to find some thread about this subject. When I paste a picture in LyX (from the clipboard), it shows a dialog asking where to save that picture and automatically inserts it on the document. This is OK and very useful, but if the picture has transparency (eg. a PNG image with transparent background), all the transparency turns black. The interesting part is that, if I save the picture somewhere else (without using LyX), and then load the picture as usual on the document, this problem doesn't occur. That is, all the transparency is handled as expected. Is this a bug? Or is there a way to workaround this? Cheers, --- Diego Queiroz
Transparency handling
Hello. I'm not sure if this is an old issue or not, but I was not able to find some thread about this subject. When I paste a picture in LyX (from the clipboard), it shows a dialog asking where to save that picture and automatically inserts it on the document. This is OK and very useful, but if the picture has transparency (eg. a PNG image with transparent background), all the transparency turns black. The interesting part is that, if I save the picture somewhere else (without using LyX), and then load the picture as usual on the document, this problem doesn't occur. That is, all the transparency is handled as expected. Is this a bug? Or is there a way to workaround this? Cheers, --- Diego Queiroz
Sans-serif math font
Hi folks. I want to change the font in Math environment to Sans-serif, but when I change the Font Default Family in a document (thru Document Settings... Fonts) the font used in Math environment is not changed. Currently, is there a way to change the Math font to Sans-serif in LyX? I know that I can do that including \usepackage{sfmath} to the preamble, but I want to know if something similiar can be done using LyX User Interface, without ERT. Cheers, --- Diego Queiroz
Re: Format Output of Track Changes
Thank you guys. --- Diego Queiroz
Sans-serif math font
Hi folks. I want to change the font in Math environment to Sans-serif, but when I change the Font Default Family in a document (thru Document Settings... Fonts) the font used in Math environment is not changed. Currently, is there a way to change the Math font to Sans-serif in LyX? I know that I can do that including \usepackage{sfmath} to the preamble, but I want to know if something similiar can be done using LyX User Interface, without ERT. Cheers, --- Diego Queiroz
Re: Format Output of Track Changes
Thank you guys. --- Diego Queiroz
Sans-serif math font
Hi folks. I want to change the font in Math environment to Sans-serif, but when I change the Font Default Family in a document (thru Document > Settings... > Fonts) the font used in Math environment is not changed. Currently, is there a way to change the Math font to Sans-serif in LyX? I know that I can do that including \usepackage{sfmath} to the preamble, but I want to know if something similiar can be done using LyX User Interface, without ERT. Cheers, --- Diego Queiroz
Re: Format Output of Track Changes
Thank you guys. --- Diego Queiroz
Format Output of Track Changes
Hello. Is there a way to format the output of Track Changes? I mean, currently the text is marked with blue color, but I want to print the document in a BW printer, so it would be nice if I could underline the text. Best regards, --- Diego Queiroz
Format Output of Track Changes
Hello. Is there a way to format the output of Track Changes? I mean, currently the text is marked with blue color, but I want to print the document in a BW printer, so it would be nice if I could underline the text. Best regards, --- Diego Queiroz
Format Output of Track Changes
Hello. Is there a way to format the output of Track Changes? I mean, currently the text is marked with blue color, but I want to print the document in a B printer, so it would be nice if I could underline the text. Best regards, --- Diego Queiroz
Re: PDF commenting enabled
On Fri, Jul 8, 2011 at 9:27 AM, Michael Joyner mjoy...@vbservices.netwrote: The commenting restriction is strictly because of the PDF generator. If you are using a software that can create commentable PDF's from a PS file, the result you create should be commentable. On Fri, Jul 8, 2011 at 7:59 AM, Thomas thomas.tri...@cantab.net wrote: Hi, I understand it is not possible to create PDFs with Lyx that allow commenting by others. My question is whether this is still true when I use Lyx to get the postscript file and distill the file myself? Thanks, Thomas -- --- - Learn to speak Cherokee: http://www.cherokeelessons.com/ - Cherokee Language Help BBS/Chat: http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6 - Cherokee Lessons PDF made with: http://www.lyx.org/ Thomas, Michael is right. LyX does not insert any kind of restriction in the PDF. If you are not able to comment in the PDF, this is because your PDF reader/generator doesn't allow you to do so (Acrobat Reader?). About the file format, this doesn't really matter. If you are dealing with PS/PDF/whatever, the restriction resides with the software that is generating the comments, not with the file itself. Adobe Acrobat X (not Pro, the last free version) allows you to insert comments in the PDF. I just tested myself and I am able to insert comments on files generated by LyX (pdflatex) as well. So, if you're using it Adobe Acrobat, just check if you are using the last version, older versions doesn't allow you to insert comments without pay. Take care, --- Diego Queiroz
Re: suggestion: searchbar for insert special character
On Fri, Jul 8, 2011 at 7:37 AM, Neal Becker ndbeck...@gmail.com wrote: I tried to insert a special character ½, and found it difficult to locate. I use kcharselect (from kde) to find it. It has a search bar. Just type in the term 'half', and it's the first thing shown (on my machine). My suggestion is add a searchbar to the insert special character. BTW, I can use kcharselect to locate a unicode character. But, I don't think it would generally work to just paste in a unicode character to a LaTeX document, correct? Usually, you can freely copy/paste some unicode chars to/from LyX (specially symbols). LyX automatically inserts all necessary packages and converts the char to the correspondent LaTeX code. To check, just try to copy/paste your ½ character to a new LyX document and look to the source. LyX includes the textcomp package and use the command \textonehalf{}. Also, a good hint to search for unknown symbols in LaTeX is to use a image classificator (like this one http://detexify.kirelabs.org/classify.html). Best regards, --- Diego Queiroz
Re: PDF commenting enabled
On Fri, Jul 8, 2011 at 9:27 AM, Michael Joyner mjoy...@vbservices.netwrote: The commenting restriction is strictly because of the PDF generator. If you are using a software that can create commentable PDF's from a PS file, the result you create should be commentable. On Fri, Jul 8, 2011 at 7:59 AM, Thomas thomas.tri...@cantab.net wrote: Hi, I understand it is not possible to create PDFs with Lyx that allow commenting by others. My question is whether this is still true when I use Lyx to get the postscript file and distill the file myself? Thanks, Thomas -- --- - Learn to speak Cherokee: http://www.cherokeelessons.com/ - Cherokee Language Help BBS/Chat: http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6 - Cherokee Lessons PDF made with: http://www.lyx.org/ Thomas, Michael is right. LyX does not insert any kind of restriction in the PDF. If you are not able to comment in the PDF, this is because your PDF reader/generator doesn't allow you to do so (Acrobat Reader?). About the file format, this doesn't really matter. If you are dealing with PS/PDF/whatever, the restriction resides with the software that is generating the comments, not with the file itself. Adobe Acrobat X (not Pro, the last free version) allows you to insert comments in the PDF. I just tested myself and I am able to insert comments on files generated by LyX (pdflatex) as well. So, if you're using it Adobe Acrobat, just check if you are using the last version, older versions doesn't allow you to insert comments without pay. Take care, --- Diego Queiroz
Re: suggestion: searchbar for insert special character
On Fri, Jul 8, 2011 at 7:37 AM, Neal Becker ndbeck...@gmail.com wrote: I tried to insert a special character ½, and found it difficult to locate. I use kcharselect (from kde) to find it. It has a search bar. Just type in the term 'half', and it's the first thing shown (on my machine). My suggestion is add a searchbar to the insert special character. BTW, I can use kcharselect to locate a unicode character. But, I don't think it would generally work to just paste in a unicode character to a LaTeX document, correct? Usually, you can freely copy/paste some unicode chars to/from LyX (specially symbols). LyX automatically inserts all necessary packages and converts the char to the correspondent LaTeX code. To check, just try to copy/paste your ½ character to a new LyX document and look to the source. LyX includes the textcomp package and use the command \textonehalf{}. Also, a good hint to search for unknown symbols in LaTeX is to use a image classificator (like this one http://detexify.kirelabs.org/classify.html). Best regards, --- Diego Queiroz
Re: PDF commenting enabled
On Fri, Jul 8, 2011 at 9:27 AM, Michael Joyner <mjoy...@vbservices.net>wrote: > The commenting restriction is strictly because of the PDF generator. > If you are using a software that can create commentable PDF's from a PS > file, the result you create should be commentable. > > > On Fri, Jul 8, 2011 at 7:59 AM, Thomas <thomas.tri...@cantab.net> wrote: > >> Hi, >> >> I understand it is not possible to create PDFs with Lyx that allow >> commenting by others. >> >> My question is whether this is still true when I use Lyx to get the >> postscript file and distill the file myself? >> >> Thanks, >> >> Thomas >> > > -- > --- > >- Learn to speak Cherokee: http://www.cherokeelessons.com/ >- Cherokee Language Help BBS/Chat: >http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6 >- Cherokee Lessons PDF made with: http://www.lyx.org/ > > > Thomas, Michael is right. LyX does not insert any kind of restriction in the PDF. If you are not able to comment in the PDF, this is because your PDF reader/generator doesn't allow you to do so (Acrobat Reader?). About the file format, this doesn't really matter. If you are dealing with PS/PDF/whatever, the restriction resides with the software that is generating the comments, not with the file itself. Adobe Acrobat X (not Pro, the last free version) allows you to insert comments in the PDF. I just tested myself and I am able to insert comments on files generated by LyX (pdflatex) as well. So, if you're using it Adobe Acrobat, just check if you are using the last version, older versions doesn't allow you to insert comments without pay. Take care, --- Diego Queiroz
Re: suggestion: searchbar for insert special character
On Fri, Jul 8, 2011 at 7:37 AM, Neal Becker <ndbeck...@gmail.com> wrote: > I tried to insert a special character ½, and found it difficult to locate. > I > use kcharselect (from kde) to find it. It has a search bar. Just type in > the > term 'half', and it's the first thing shown (on my machine). > > My suggestion is add a searchbar to the insert special character. > > BTW, I can use kcharselect to locate a unicode character. But, I don't > think it > would generally work to just paste in a unicode character to a LaTeX > document, > correct? > > Usually, you can freely copy/paste some unicode chars to/from LyX (specially symbols). LyX automatically inserts all necessary packages and converts the char to the correspondent LaTeX code. To check, just try to copy/paste your "½" character to a new LyX document and look to the source. LyX includes the textcomp package and use the command \textonehalf{}. Also, a good hint to search for unknown symbols in LaTeX is to use a image classificator (like this one http://detexify.kirelabs.org/classify.html). Best regards, --- Diego Queiroz
Re: Author year in text citation
On Thu, Jun 30, 2011 at 2:27 PM, Thomas thomas.tri...@cantab.net wrote: Dear all, I am using Lxy 2.0 under Windows and I am using the Firefox Zotero plug in for my bibliography. I have the following problem. When trying to format in text citations as Author (Year) which I can choose right clicking the citation in Lyx the PDF (pdflatex) produces (author?) followed by the reference number in brackets. Citation style is Natbib and generator is bibtex. I tried various approaches suggested online but nothing works. Unfortunately, I am not even sure which of the many suggestions apply to my problem (if any). Any pointers are much appreciated! Thomas Thomas, I don't remember exactly why this happens. But AFAICR, this is because you did not select a proper style for your bibliography that supports Author Year citations. I don't know what style you're using, but you can try to select another one, like plainnat or apalike. If I'm not wrong, the plain style (which is the LyX default), does not support it. If you're not sure what I am talking about, just select Insert List / TOC BibTeX Bibloography..., in that window you are able to select your *.bib database and a style (*.bst) to use. Best regards, --- Diego Queiroz
Re: Author year in text citation
On Thu, Jun 30, 2011 at 2:27 PM, Thomas thomas.tri...@cantab.net wrote: Dear all, I am using Lxy 2.0 under Windows and I am using the Firefox Zotero plug in for my bibliography. I have the following problem. When trying to format in text citations as Author (Year) which I can choose right clicking the citation in Lyx the PDF (pdflatex) produces (author?) followed by the reference number in brackets. Citation style is Natbib and generator is bibtex. I tried various approaches suggested online but nothing works. Unfortunately, I am not even sure which of the many suggestions apply to my problem (if any). Any pointers are much appreciated! Thomas Thomas, I don't remember exactly why this happens. But AFAICR, this is because you did not select a proper style for your bibliography that supports Author Year citations. I don't know what style you're using, but you can try to select another one, like plainnat or apalike. If I'm not wrong, the plain style (which is the LyX default), does not support it. If you're not sure what I am talking about, just select Insert List / TOC BibTeX Bibloography..., in that window you are able to select your *.bib database and a style (*.bst) to use. Best regards, --- Diego Queiroz
Re: Author year in text citation
On Thu, Jun 30, 2011 at 2:27 PM, Thomas <thomas.tri...@cantab.net> wrote: > Dear all, > > I am using Lxy 2.0 under Windows and I am using the Firefox Zotero plug in > for my bibliography. > > I have the following problem. > > When trying to format in text citations as "Author (Year)" which I can > choose right clicking the citation in Lyx the PDF (pdflatex) produces > "(author?)" followed by the reference number in brackets. > > Citation style is Natbib and generator is bibtex. > > I tried various approaches suggested online but nothing works. > Unfortunately, I am not even sure which of the many suggestions apply to my > problem (if any). > > Any pointers are much appreciated! > > Thomas > Thomas, I don't remember exactly why this happens. But AFAICR, this is because you did not select a proper style for your bibliography that supports Author Year citations. I don't know what style you're using, but you can try to select another one, like plainnat or apalike. If I'm not wrong, the "plain" style (which is the LyX default), does not support it. If you're not sure what I am talking about, just select Insert > List / TOC > BibTeX Bibloography..., in that window you are able to select your *.bib database and a style (*.bst) to use. Best regards, --- Diego Queiroz
Re: how to modify figure name
On Tue, Jun 28, 2011 at 4:18 AM, Hady Ariwibowo Teguh huget_te...@ymail.com wrote: Dear All, I'm using lyx 1.6. I have problem about how to name the figure. Just like this: Figure .2.a How to add a on the last part?? Thanks Teguh CFD Engineer Teguh, You need to use sub floats. To achieve this on LyX, just insert a float inside another float. This way, the caption of the sub-float is automatically named 2a, 2b and so on. Best regards, --- Diego Queiroz
Re: how to modify figure name
On Tue, Jun 28, 2011 at 4:18 AM, Hady Ariwibowo Teguh huget_te...@ymail.com wrote: Dear All, I'm using lyx 1.6. I have problem about how to name the figure. Just like this: Figure .2.a How to add a on the last part?? Thanks Teguh CFD Engineer Teguh, You need to use sub floats. To achieve this on LyX, just insert a float inside another float. This way, the caption of the sub-float is automatically named 2a, 2b and so on. Best regards, --- Diego Queiroz
Re: how to modify figure name
On Tue, Jun 28, 2011 at 4:18 AM, Hady Ariwibowo Teguh <huget_te...@ymail.com > wrote: > Dear All, > I'm using lyx 1.6. I have problem about how to name the figure. Just like > this: > "Figure .2.a" > How to add "a" on the last part?? > Thanks > Teguh > CFD Engineer > > Teguh, You need to use sub floats. To achieve this on LyX, just insert a float inside another float. This way, the caption of the sub-float is automatically named 2a, 2b and so on. Best regards, --- Diego Queiroz
Re: How to type a text over arrow?
Try this: http://lmgtfy.com/?q=text+over+arrow+latexl=1 Take care, --- Diego Queiroz On Mon, May 16, 2011 at 4:26 AM, Yegor Yefremov yegorsli...@googlemail.com wrote: Hello, I want to type the formula like in the attached image (formula.jpg). Haw can I do this with LyX/LaTeX? As for now I'm using LyX 1.6.5. Regards, Yegor
Re: How to type a text over arrow?
Try this: http://lmgtfy.com/?q=text+over+arrow+latexl=1 Take care, --- Diego Queiroz On Mon, May 16, 2011 at 4:26 AM, Yegor Yefremov yegorsli...@googlemail.com wrote: Hello, I want to type the formula like in the attached image (formula.jpg). Haw can I do this with LyX/LaTeX? As for now I'm using LyX 1.6.5. Regards, Yegor
Re: How to type a text over arrow?
Try this: http://lmgtfy.com/?q=text+over+arrow+latex=1 Take care, --- Diego Queiroz On Mon, May 16, 2011 at 4:26 AM, Yegor Yefremov <yegorsli...@googlemail.com> wrote: > Hello, > > I want to type the formula like in the attached image (formula.jpg). > Haw can I do this with LyX/LaTeX? As for now I'm using LyX 1.6.5. > > Regards, > Yegor >
Re: how to separate pdf file?
Just curious, will pdftk preserve links between chapters? This seems rather nontrivial. Pdftk output is exactly like the original file, so it keeps all links. All links in the generated file will work if they point to an existent position. For example, if there is a link for the chapter 10, but the chapter 10 is not in the file, that link will not work (obvious?). I have tried to split the document by pdf creator. it works but, the link cannot work. Any suggestion? Use Pdftk. http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ It is much easier than using a pdf printer like PDF Creator, and the output is much better. Its usage is trivial: - pdftk infile.pdf cat 1-20 output outfile.pdf This command create a new file named outfile.pdf with the pages 1-20 from infile.pdf. By default, the metadata is lost (bookmarks, authorname, title, password etc). But you can use pdftk's update_info parameter to insert metadata on a file. Google it if you need. Take care, --- Diego Queiroz
Re: how to separate pdf file?
Just curious, will pdftk preserve links between chapters? This seems rather nontrivial. Pdftk output is exactly like the original file, so it keeps all links. All links in the generated file will work if they point to an existent position. For example, if there is a link for the chapter 10, but the chapter 10 is not in the file, that link will not work (obvious?). I have tried to split the document by pdf creator. it works but, the link cannot work. Any suggestion? Use Pdftk. http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ It is much easier than using a pdf printer like PDF Creator, and the output is much better. Its usage is trivial: - pdftk infile.pdf cat 1-20 output outfile.pdf This command create a new file named outfile.pdf with the pages 1-20 from infile.pdf. By default, the metadata is lost (bookmarks, authorname, title, password etc). But you can use pdftk's update_info parameter to insert metadata on a file. Google it if you need. Take care, --- Diego Queiroz
Re: how to separate pdf file?
> Just curious, will pdftk preserve links between chapters? This seems > rather nontrivial. Pdftk output is exactly like the original file, so it keeps all links. All links in the generated file will work if they point to an existent position. For example, if there is a link for the chapter 10, but the chapter 10 is not in the file, that link will not work (obvious?). > I have tried to split the document by pdf creator. it works but, the link > cannot work. > Any suggestion? Use Pdftk. http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ It is much easier than using a pdf printer like PDF Creator, and the output is much better. Its usage is trivial: - pdftk infile.pdf cat 1-20 output outfile.pdf This command create a new file named outfile.pdf with the pages 1-20 from infile.pdf. By default, the metadata is lost (bookmarks, authorname, title, password etc). But you can use pdftk's "update_info" parameter to insert metadata on a file. Google it if you need. Take care, --- Diego Queiroz
Re: Subfigures: \subref support?
Unfortunately no it is not supported and moreover the macro \subref conflicts with the use of refstyle which was implemented in 2.0 (in this case \subref is a reference to a subsection and yields subsection 1.1). So you will have to type a yourself or use TeX code. Are you sure? As stated before, I already solved the problem using ERT. No conflicts a all.
Re: Subfigures: \subref support?
Yes I'm sure. Yeah, you are right. But this is a LyX bug. It should use a not-so-obvious name for the command to prevent a conflict like this. However, the command \subref is defined by LyX only when you use the Formatted reference. Since I don't use this type of cross-reference, there is no problem with my ERT. I'll create a ticket for this. Cheers, --- Diego Queiroz
Re: Math macros inside child documents
But the only one for truly consistent behaviour. If you want to export stand-alone, uncheck the master setting. Even if the master setting is not set in the child, LyX still display all macros perfectly if the master document is open. My complaint is this: if LyX is able to interpret things and display them in the editor, it should be able to generate the output. That's all. Specially if this problem is not present in older versions. No, you can *include* the sub-documents and use the includeonly feature to compile a subset of sub-documents where LaTeX will ensure (almost) correct page numbers and references and LyX will use the parent doc settings instead of the child-doc ones. What happens when you set the include only option? The whole document is generated and the pages are ommited or it handle the pages in a more fashioned way? I am asking this because, if LyX handles it in a good way, we can change the action of the view button of child docs to automatically generate the master document including only the active document. This appears suitable for me and is better than blocking. Actually, *you* generate the error -- a reference to a label that does not exist in the document. Setting a master (currently) is just an editing hint but does not change the way a document is compiled stand-alone. If LyX options were consistent, it won't let me generate such errors. It doesn't really matter if I am responsible for them or not: computers are here to handle problems we don't want to deal with, right? They are not here to introduce another class of problems (although I agree this is not always true :-) . I am not sure about this. If I remember right, the LaTeX run is done in nonstopmode but the output not opened in a viewer - I'd like a show output anyway button in the error message dialogue. Having a look at the output is sometimes far more helpful than TeX error messages. A show output anyway button would be great. However, if LyX consistency were assured, there's no need for it (expect when using ERT). --- Diego Queiroz
Re: Subfigures: \subref support?
Here is the ticket for this problem. http://www.lyx.org/trac/ticket/7550 http://www.lyx.org/trac/ticket/7550 --- Diego Queiroz On Wed, May 11, 2011 at 10:35 AM, Diego Queiroz queiroz.di...@gmail.comwrote: Yes I'm sure. Yeah, you are right. But this is a LyX bug. It should use a not-so-obvious name for the command to prevent a conflict like this. However, the command \subref is defined by LyX only when you use the Formatted reference. Since I don't use this type of cross-reference, there is no problem with my ERT. I'll create a ticket for this. Cheers, --- Diego Queiroz
Re: Math macros inside child documents
A show output anyway button would be great. However, if LyX consistency were assured, there's no need for it (expect when using ERT). ... or the LaTeX preamble (1) or an outdated TeX distribution (2) or a package combination with conflicts (3) or ... (?) Günter I repeat: if, and only if, LyX consistency were assured, there's no need for such option (except when using ERT). What means: 1) In LyX, the LaTeX preamble is an alternative to ERT but it has the same purpose. So any LaTeX code in LyX will always be a problem to consistency. If this is your point, I agree with you. 2) In an ideal scenario, LyX could check the LaTeX distribution to see what resources are available. So an outdated LaTeX should not be a problem. 3) Currently LyX already handles many known packages conflicts. Since all LyX resources are packages mapped to menu commands, every new package to be supported should be checked for possible conflicts with all the existent ones. When this is not possible, LyX should handle the problem in some way (like preventing the user of using them together). ?) Since these problems are solved, I cannot imagine another problem that is not related to ERT, file corruption and hardware problems. Otherwise, LyX can handle it. Actually, ERTs does exist only to keep LyX flexible, but the ERT goes against its proposal. Anyway, let's give up this discussion. It is leading to nowhere. We're flaming the mailing list. Sorry for this. --- Diego Queiroz
Re: Subfigures: \subref support?
Unfortunately no it is not supported and moreover the macro \subref conflicts with the use of refstyle which was implemented in 2.0 (in this case \subref is a reference to a subsection and yields subsection 1.1). So you will have to type a yourself or use TeX code. Are you sure? As stated before, I already solved the problem using ERT. No conflicts a all.
Re: Subfigures: \subref support?
Yes I'm sure. Yeah, you are right. But this is a LyX bug. It should use a not-so-obvious name for the command to prevent a conflict like this. However, the command \subref is defined by LyX only when you use the Formatted reference. Since I don't use this type of cross-reference, there is no problem with my ERT. I'll create a ticket for this. Cheers, --- Diego Queiroz
Re: Math macros inside child documents
But the only one for truly consistent behaviour. If you want to export stand-alone, uncheck the master setting. Even if the master setting is not set in the child, LyX still display all macros perfectly if the master document is open. My complaint is this: if LyX is able to interpret things and display them in the editor, it should be able to generate the output. That's all. Specially if this problem is not present in older versions. No, you can *include* the sub-documents and use the includeonly feature to compile a subset of sub-documents where LaTeX will ensure (almost) correct page numbers and references and LyX will use the parent doc settings instead of the child-doc ones. What happens when you set the include only option? The whole document is generated and the pages are ommited or it handle the pages in a more fashioned way? I am asking this because, if LyX handles it in a good way, we can change the action of the view button of child docs to automatically generate the master document including only the active document. This appears suitable for me and is better than blocking. Actually, *you* generate the error -- a reference to a label that does not exist in the document. Setting a master (currently) is just an editing hint but does not change the way a document is compiled stand-alone. If LyX options were consistent, it won't let me generate such errors. It doesn't really matter if I am responsible for them or not: computers are here to handle problems we don't want to deal with, right? They are not here to introduce another class of problems (although I agree this is not always true :-) . I am not sure about this. If I remember right, the LaTeX run is done in nonstopmode but the output not opened in a viewer - I'd like a show output anyway button in the error message dialogue. Having a look at the output is sometimes far more helpful than TeX error messages. A show output anyway button would be great. However, if LyX consistency were assured, there's no need for it (expect when using ERT). --- Diego Queiroz
Re: Subfigures: \subref support?
Here is the ticket for this problem. http://www.lyx.org/trac/ticket/7550 http://www.lyx.org/trac/ticket/7550 --- Diego Queiroz On Wed, May 11, 2011 at 10:35 AM, Diego Queiroz queiroz.di...@gmail.comwrote: Yes I'm sure. Yeah, you are right. But this is a LyX bug. It should use a not-so-obvious name for the command to prevent a conflict like this. However, the command \subref is defined by LyX only when you use the Formatted reference. Since I don't use this type of cross-reference, there is no problem with my ERT. I'll create a ticket for this. Cheers, --- Diego Queiroz
Re: Math macros inside child documents
A show output anyway button would be great. However, if LyX consistency were assured, there's no need for it (expect when using ERT). ... or the LaTeX preamble (1) or an outdated TeX distribution (2) or a package combination with conflicts (3) or ... (?) Günter I repeat: if, and only if, LyX consistency were assured, there's no need for such option (except when using ERT). What means: 1) In LyX, the LaTeX preamble is an alternative to ERT but it has the same purpose. So any LaTeX code in LyX will always be a problem to consistency. If this is your point, I agree with you. 2) In an ideal scenario, LyX could check the LaTeX distribution to see what resources are available. So an outdated LaTeX should not be a problem. 3) Currently LyX already handles many known packages conflicts. Since all LyX resources are packages mapped to menu commands, every new package to be supported should be checked for possible conflicts with all the existent ones. When this is not possible, LyX should handle the problem in some way (like preventing the user of using them together). ?) Since these problems are solved, I cannot imagine another problem that is not related to ERT, file corruption and hardware problems. Otherwise, LyX can handle it. Actually, ERTs does exist only to keep LyX flexible, but the ERT goes against its proposal. Anyway, let's give up this discussion. It is leading to nowhere. We're flaming the mailing list. Sorry for this. --- Diego Queiroz
Re: Subfigures: \subref support?
> > Unfortunately no it is not supported and moreover the macro \subref > conflicts with the use of refstyle which was implemented in 2.0 (in this > case \subref is a reference to a subsection and yields "subsection 1.1"). > > So you will have to type "a" yourself or use TeX code. > > Are you sure? As stated before, I already solved the problem using ERT. No conflicts a all.
Re: Subfigures: \subref support?
> > Yes I'm sure. > Yeah, you are right. But this is a LyX bug. It should use a not-so-obvious name for the command to prevent a conflict like this. However, the command \subref is defined by LyX only when you use the . Since I don't use this type of cross-reference, there is no problem with my ERT. I'll create a ticket for this. Cheers, --- Diego Queiroz
Re: Math macros inside child documents
> > But the only one for truly consistent behaviour. If you want to export > stand-alone, uncheck the master setting. > Even if the master setting is not set in the child, LyX still display all macros perfectly if the master document is open. My complaint is this: if LyX is able to interpret things and display them in the editor, it should be able to generate the output. That's all. Specially if this problem is not present in older versions. No, you can *include* the sub-documents and use the includeonly feature > to compile a subset of sub-documents where LaTeX will ensure > (almost) correct page numbers and references and LyX will use the > parent doc settings instead of the child-doc ones. > What happens when you set the include only option? The whole document is generated and the pages are ommited or it handle the pages in a more fashioned way? I am asking this because, if LyX handles it in a good way, we can change the action of the view button of child docs to automatically generate the master document including only the active document. This appears suitable for me and is better than blocking. > Actually, *you* generate the error -- a reference to a label that does > not exist in the document. Setting a master (currently) is just an > "editing hint" but does not change the way a document is compiled > stand-alone. > If LyX options were consistent, it won't let me generate such errors. It doesn't really matter if I am responsible for them or not: computers are here to handle problems we don't want to deal with, right? They are not here to introduce another class of problems (although I agree this is not always true :-) . > I am not sure about this. If I remember right, the LaTeX run is done in > nonstopmode but the output not opened in a viewer -> I'd like a > "show output anyway" button in the error message dialogue. Having > a look at the output is sometimes far more helpful than TeX error > messages. > A "show output anyway" button would be great. However, if LyX consistency were assured, there's no need for it (expect when using ERT). --- Diego Queiroz
Re: Subfigures: \subref support?
Here is the ticket for this problem. http://www.lyx.org/trac/ticket/7550 <http://www.lyx.org/trac/ticket/7550> --- Diego Queiroz On Wed, May 11, 2011 at 10:35 AM, Diego Queiroz <queiroz.di...@gmail.com>wrote: > Yes I'm sure. >> > > Yeah, you are right. But this is a LyX bug. It should use a not-so-obvious > name for the command to prevent a conflict like this. > However, the command \subref is defined by LyX only when you use the > . Since I don't use this type of cross-reference, there > is no problem with my ERT. > > I'll create a ticket for this. > > Cheers, > --- > Diego Queiroz >
Re: Math macros inside child documents
> > > A "show output anyway" button would be great. > > However, if LyX consistency were assured, there's no need for it (expect > > when using ERT). > > ... or the LaTeX preamble (1) or an outdated TeX distribution (2) or a > package > combination with conflicts (3) or ... (?) > > Günter > I repeat: if, and only if, LyX consistency were assured, there's no need for such option (except when using ERT). What means: 1) In LyX, the LaTeX preamble is an alternative to ERT but it has the same purpose. So any LaTeX code in LyX will always be a problem to consistency. If this is your point, I agree with you. 2) In an ideal scenario, LyX could check the LaTeX distribution to see what resources are available. So an outdated LaTeX should not be a problem. 3) Currently LyX already handles many known packages conflicts. Since all LyX resources are packages mapped to menu commands, every new package to be supported should be checked for possible conflicts with all the existent ones. When this is not possible, LyX should handle the problem in some way (like preventing the user of using them together). ?) Since these problems are solved, I cannot imagine another problem that is not related to ERT, file corruption and hardware problems. Otherwise, LyX can handle it. Actually, ERTs does exist only to keep LyX flexible, but the ERT goes against its proposal. Anyway, let's give up this discussion. It is leading to nowhere. We're flaming the mailing list. Sorry for this. --- Diego Queiroz
Re: Portable LyX
I am not able to fully understand the part the directory is defined in the compilation process and there's no way to achieve this without changing the code. Open LyX and select Help About. There you can see what directory LyX is using to store user files. On Windows, this folder is defined based on the %APPDATA% environment variable. Currently, there's no way to change this without changing the code. This is what I meant. Cheers, --- Diego Queiroz
Re: Math macros inside child documents
For truly consistent behaviour, we would have to disable stand-alone compilation of documents setting a master (except for included (vs. input) documents). This is a strong restriction. With this, in a document with thousand of pages I will obligated to generate all pages? I do not agree. Actually, I regularly compile stand-alone child docs (to save time on checking the appearance in the output). I have set up a stand-alone branch for math-macros and bibliography and I can live with the question marks in the references. This is another subject, but let's understand the question marks are a problem to be solved too. I think it would be good if LyX doesn't generate so much errors, but I vote against the generation of documents with wrong content (i.e. the question marks). Otherwise, LyX could not stop on the first error, as it already do today. That is, currently, if a error is found, LyX just stops and warns the user. Even if the document can still be generated by LaTeX. We didn't define LyX to just continue and see what you get because we don't want this, right? In the worst case, I'm in favor of a warning to the user about these wrong things. One reason is because I already submited a work with those ??. My fault indeed, but LyX could warn me anyway. ;-) Just make it very clear in the documentation that parent-document features are non-available in the child if compiled stand-alone (without include feature) even if rendered in the LyX window - this is a feature. We did establish that this is a change from 1.6.x, where parent macros are written to the child. That was not intentional, and the behavior depends upon the setting of EXPORT_IN_THREAD. We can keep it as it is, but then we should make it consistent (and could remove useless code). There are two things to note here: 1st: LyX interprets macros very well. It doesn't matter where they are (child/master/etc). If the documents are linked, LyX handles it in the screen. Fact. IMO, if it handles the content to the screen it should handle to the output. 2nd: AFAIK this feature was supported in later versions (I did not tested by myself, but people in this thread said it work). I won't be surprised if someone decide to stay with LyX 1.6 just because this feature was removed. Or just because I am not able to compile my old doc anymore or any other complaints. Cheers, --- Diego Queiroz
Re: Subfigures: \subref support?
On Mon, May 9, 2011 at 1:24 AM, Diego Queiroz queiroz.di...@gmail.comwrote: LyX 2.0 supports \subref command without ERT? (I want to cross-reference a subfigure inside the figure environment) If so, how do I insert it? Thanks, --- Diego Queiroz No answers? :-( Currently I am using ERT and it solved my problem. But can someone confirm if lyX really doesn't support this feature at all? Regards, --- Diego Queiroz
Re: Subfigures: \subref support?
Thanks for the answers. But I think I wasn't clear. I want to use the \subref command not the \ref one (supported by default on LyX). The difference between them is that \ref produces 1a while \subref produces only a. I need to cite subfigures in the caption of the main float. Example.: Fig(a) --- Fig(b) Figure 1: Here you see some figure (a) and another figure (b). Got it? But now I'm almost sure LyX really doesn't really support it. If so, this is another good (and simple) improvement for LyX 2.1. :-) Cheers, --- Diego Queiroz
Re: Subfigures: \subref support?
Isn't this precisely what I gave you in the sample file? (I didn't put the cross-reference in the figure caption, but that's trivial.) In short, LyX supports it and makes it easy. BH Not really. The file you gave me generate 1a, 1b... as expected for a output in the text. What I want is just a, b (without the number 1). Cheers, --- Diego Queiroz
Re: Portable LyX
I am not able to fully understand the part the directory is defined in the compilation process and there's no way to achieve this without changing the code. Open LyX and select Help About. There you can see what directory LyX is using to store user files. On Windows, this folder is defined based on the %APPDATA% environment variable. Currently, there's no way to change this without changing the code. This is what I meant. Cheers, --- Diego Queiroz
Re: Math macros inside child documents
For truly consistent behaviour, we would have to disable stand-alone compilation of documents setting a master (except for included (vs. input) documents). This is a strong restriction. With this, in a document with thousand of pages I will obligated to generate all pages? I do not agree. Actually, I regularly compile stand-alone child docs (to save time on checking the appearance in the output). I have set up a stand-alone branch for math-macros and bibliography and I can live with the question marks in the references. This is another subject, but let's understand the question marks are a problem to be solved too. I think it would be good if LyX doesn't generate so much errors, but I vote against the generation of documents with wrong content (i.e. the question marks). Otherwise, LyX could not stop on the first error, as it already do today. That is, currently, if a error is found, LyX just stops and warns the user. Even if the document can still be generated by LaTeX. We didn't define LyX to just continue and see what you get because we don't want this, right? In the worst case, I'm in favor of a warning to the user about these wrong things. One reason is because I already submited a work with those ??. My fault indeed, but LyX could warn me anyway. ;-) Just make it very clear in the documentation that parent-document features are non-available in the child if compiled stand-alone (without include feature) even if rendered in the LyX window - this is a feature. We did establish that this is a change from 1.6.x, where parent macros are written to the child. That was not intentional, and the behavior depends upon the setting of EXPORT_IN_THREAD. We can keep it as it is, but then we should make it consistent (and could remove useless code). There are two things to note here: 1st: LyX interprets macros very well. It doesn't matter where they are (child/master/etc). If the documents are linked, LyX handles it in the screen. Fact. IMO, if it handles the content to the screen it should handle to the output. 2nd: AFAIK this feature was supported in later versions (I did not tested by myself, but people in this thread said it work). I won't be surprised if someone decide to stay with LyX 1.6 just because this feature was removed. Or just because I am not able to compile my old doc anymore or any other complaints. Cheers, --- Diego Queiroz
Re: Subfigures: \subref support?
On Mon, May 9, 2011 at 1:24 AM, Diego Queiroz queiroz.di...@gmail.comwrote: LyX 2.0 supports \subref command without ERT? (I want to cross-reference a subfigure inside the figure environment) If so, how do I insert it? Thanks, --- Diego Queiroz No answers? :-( Currently I am using ERT and it solved my problem. But can someone confirm if lyX really doesn't support this feature at all? Regards, --- Diego Queiroz
Re: Subfigures: \subref support?
Thanks for the answers. But I think I wasn't clear. I want to use the \subref command not the \ref one (supported by default on LyX). The difference between them is that \ref produces 1a while \subref produces only a. I need to cite subfigures in the caption of the main float. Example.: Fig(a) --- Fig(b) Figure 1: Here you see some figure (a) and another figure (b). Got it? But now I'm almost sure LyX really doesn't really support it. If so, this is another good (and simple) improvement for LyX 2.1. :-) Cheers, --- Diego Queiroz
Re: Subfigures: \subref support?
Isn't this precisely what I gave you in the sample file? (I didn't put the cross-reference in the figure caption, but that's trivial.) In short, LyX supports it and makes it easy. BH Not really. The file you gave me generate 1a, 1b... as expected for a output in the text. What I want is just a, b (without the number 1). Cheers, --- Diego Queiroz
Re: Portable LyX
> > I am not able to fully understand the part > "the directory is defined in the compilation process and there's no way to > achieve this without changing the code". > > Open LyX and select Help > About. There you can see what directory LyX is using to store user files. On Windows, this folder is defined based on the %APPDATA% environment variable. Currently, there's no way to change this without changing the code. This is what I meant. Cheers, --- Diego Queiroz
Re: Math macros inside child documents
> > >>> For truly consistent behaviour, we would have to disable stand-alone > >>> compilation of documents setting a master (except for "included" (vs. > >>> "input") documents). > This is a strong restriction. With this, in a document with thousand of pages I will obligated to generate all pages? I do not agree. > > Actually, I regularly compile stand-alone child docs (to save time on > > checking the appearance in the output). I have set up a "stand-alone" > > branch for math-macros and bibliography and I can live with the > > question marks in the references. > This is another subject, but let's understand the question marks are a problem to be solved too. I think it would be good if LyX doesn't generate so much errors, but I vote against the generation of documents with "wrong" content (i.e. the question marks). Otherwise, LyX could not stop on the first error, as it already do today. That is, currently, if a error is found, LyX just stops and warns the user. Even if the document can still be generated by LaTeX. We didn't define LyX to "just continue and see what you get" because we don't want this, right? In the worst case, I'm in favor of a warning to the user about these "wrong" things. One reason is because I already submited a work with those "??". My fault indeed, but LyX could warn me anyway. ;-) > > Just make it very clear in the documentation that parent-document > > features are non-available in the child if compiled stand-alone (without > > include feature) even if rendered in the LyX window - this is a feature. > > > We did establish that this is a change from 1.6.x, where parent macros > are written to the child. That was not intentional, and the behavior > depends upon the setting of EXPORT_IN_THREAD. We can keep it as it is, > but then we should make it consistent (and could remove useless code). There are two things to note here: 1st: LyX interprets macros very well. It doesn't matter where they are (child/master/etc). If the documents are linked, LyX handles it in the screen. Fact. IMO, if it handles the content to the screen it should handle to the output. 2nd: AFAIK this feature was supported in later versions (I did not tested by myself, but people in this thread said it work). I won't be surprised if someone decide to stay with LyX 1.6 just because this "feature" was removed. Or just because "I am not able to compile my old doc anymore" or any other complaints. Cheers, --- Diego Queiroz
Re: Subfigures: \subref support?
On Mon, May 9, 2011 at 1:24 AM, Diego Queiroz <queiroz.di...@gmail.com>wrote: > LyX 2.0 supports \subref command without ERT? (I want to cross-reference a > subfigure inside the figure environment) > If so, how do I insert it? > > Thanks, > --- > Diego Queiroz > > No answers? :-( Currently I am using ERT and it solved my problem. But can someone confirm if lyX really doesn't support this feature at all? Regards, --- Diego Queiroz
Re: Subfigures: \subref support?
Thanks for the answers. But I think I wasn't clear. I want to use the \subref command not the \ref one (supported by default on LyX). The difference between them is that \ref produces "1a" while \subref produces only "a". I need to cite subfigures in the caption of the main float. Example.: Fig(a) --- Fig(b) Figure 1: Here you see some figure (a) and another figure (b). Got it? But now I'm almost sure LyX really doesn't really support it. If so, this is another good (and simple) improvement for LyX 2.1. :-) Cheers, --- Diego Queiroz
Re: Subfigures: \subref support?
> > Isn't this precisely what I gave you in the sample file? (I didn't put > the cross-reference in the figure caption, but that's trivial.) > > In short, LyX supports it and makes it easy. > > BH > Not really. The file you gave me generate "1a", "1b"... as expected for a output in the text. What I want is just "a", "b" (without the number 1). Cheers, --- Diego Queiroz
Math macros inside child documents
I'm not sure if this is a bug report or a feature request. Probably the second one. In LyX it's ok to define a Math Macro in a Master document and use it in a child one. It's also ok to use math macros that are defined in a child and use it in other child document. In both cases, I am able to view the Master document and it handles everything perfectly. But if I do so, I am unable to compile the child document alone. AFAIK the reason is simple: the child document doesn't have the math macros defined on its scope. And it doesn't really matter if the default master document is set or not. It simple doesn't work (at least, I don't know how to do without insert the math macros again, which in painful). My suggestion is to allow the generation of the childs alone. While working in the document, it's normal to compile only parts of the document instead of compile the whole set, so this feature would be very handy. Regards, --- Diego Queiroz
Re: Portable LyX
The question now is that whether Lyx stores all the settings files in the installation directory itself, and not use registry (for windows, etc). Perhaps one of the developers could have answer to this more specific question. LyX uses the user directory by default and doesn't use the Windows register. AFAIK the directory is defined in the compilation process and there's no way to achieve this without changing the code. But since there is a portable version MiKTeX, it would be a good to provide a portable version of LyX. Vincent, Goals for 2.1? :-) --- Diego Queiroz
Re: Math macros inside child documents
If you ask to compile just the child, then you are asking to compile it as a standalone document, so it is no surprise that this does not work. Exactly. :-) If you want to compile just one chapter as part of a larger document, then you need to use the \includeonly support, accessible from DocumentSettings. I was not aware of this feature. Thanks for the hint. But it is also painful to select the document I want to compile everytime. :/ When I am working in a document, I work on it as a standalone document, I don't handle with the Master document before I want to compile the whole set. Of course there are several workarounds, i.e you can create a document with all your macros and insert it on the beggining of all documents. This is a not so elegant solution, but it does the job. Probably one can suggest a better solution as well. But I really think LyX can do this automatically. Since LyX already stores all defined macros in somewhere for the editor, it is not so hard to dinamically include them in a document when needed. Cheers, Diego
Re: Math macros inside child documents
But what if you really want to compile it as a standalone document? People do this. Richard But if it was really a standalone document, I would have to unset master document property, right? Anyway, in my case, the problem is that my child document with the macros also define Nomenclatures. When I include it on all files and decide to generate the Master document, the list of Nomenclatures repeats its entries several times (obviously because the entry was indeed included several times). I am just looking for a more user oriented behavior. I mean, if I can see everything right on the screen, what's the problem? This is how I feel about the current behavior. LyX is handling everything on the editor, since all math macros are interpreted correctly when I open any document, but I can't generate the file because of its internal structure. We should try to avoid consistency errors in LyX. If people decide to use ERT, we should expect unwanted behavior, but in a document using only LyX resources, it must never generate errors (or they should be rare, at least), doesn't matter what the user decides to do. Cheers, Diego
Re: Math macros inside child documents
So, I do not experience your problem. However document settings and stuff that gets defined in the preamble need to be set in both master and child docs. -- Julien Actually, the answer is: yes, you do experience the very same problem. Otherwise you won't need to go after a workaround, right? :-) As I said before, I'm sure there are several ways to workaround this limitation (I am not searching for one). I just think we should focus on make LyX avoid these errors by itself. Cheers, --- Diego
Re: Math macros inside child documents
Which workaround? You said math macros don't work within child docs, I say they work for me. No workaround necessary. Maybe I misunderstood you. I was citing your workaround to include bibtex in the childs. I use a branch named child only, which is activated in child docs but deactivated in the master Anyway, never mind. Sorry. Thinking about this again, I'm guessing that one of the use x math package automatically option doesn't get triggered and is the cause of your child doc compilation failures. If that is the case then yes, LyX should detect that automatically, and yes, at the moment a workaround is needed: check use x math package in document settings. I just tested and this is not enough. I am not able to generate child files in LyX 2.0 at all. If I include a simple macro in a document (the master), create another file (the child), link them and use the macro in the child. The standalone child don't compile, only the master document. Are you able to do this in LyX 1.6? If so, this is a bug report and not a feature request. Can someone confirm this / create ticket? I've attached two files: the child and the master document. I can't compile the child document. Can you try? Cheers, --- Diego child.lyx Description: Binary data master.lyx Description: Binary data
Re: Math macros inside child documents
Yes I am able to do what you describe in 1.6. In your example child doc, you did not set the master setting, did you? Indeed. I was in a hurry and I forgot it. ;/ --- Diego Queiroz
Math macros inside child documents
I'm not sure if this is a bug report or a feature request. Probably the second one. In LyX it's ok to define a Math Macro in a Master document and use it in a child one. It's also ok to use math macros that are defined in a child and use it in other child document. In both cases, I am able to view the Master document and it handles everything perfectly. But if I do so, I am unable to compile the child document alone. AFAIK the reason is simple: the child document doesn't have the math macros defined on its scope. And it doesn't really matter if the default master document is set or not. It simple doesn't work (at least, I don't know how to do without insert the math macros again, which in painful). My suggestion is to allow the generation of the childs alone. While working in the document, it's normal to compile only parts of the document instead of compile the whole set, so this feature would be very handy. Regards, --- Diego Queiroz
Re: Portable LyX
The question now is that whether Lyx stores all the settings files in the installation directory itself, and not use registry (for windows, etc). Perhaps one of the developers could have answer to this more specific question. LyX uses the user directory by default and doesn't use the Windows register. AFAIK the directory is defined in the compilation process and there's no way to achieve this without changing the code. But since there is a portable version MiKTeX, it would be a good to provide a portable version of LyX. Vincent, Goals for 2.1? :-) --- Diego Queiroz
Re: Math macros inside child documents
If you ask to compile just the child, then you are asking to compile it as a standalone document, so it is no surprise that this does not work. Exactly. :-) If you want to compile just one chapter as part of a larger document, then you need to use the \includeonly support, accessible from DocumentSettings. I was not aware of this feature. Thanks for the hint. But it is also painful to select the document I want to compile everytime. :/ When I am working in a document, I work on it as a standalone document, I don't handle with the Master document before I want to compile the whole set. Of course there are several workarounds, i.e you can create a document with all your macros and insert it on the beggining of all documents. This is a not so elegant solution, but it does the job. Probably one can suggest a better solution as well. But I really think LyX can do this automatically. Since LyX already stores all defined macros in somewhere for the editor, it is not so hard to dinamically include them in a document when needed. Cheers, Diego
Re: Math macros inside child documents
But what if you really want to compile it as a standalone document? People do this. Richard But if it was really a standalone document, I would have to unset master document property, right? Anyway, in my case, the problem is that my child document with the macros also define Nomenclatures. When I include it on all files and decide to generate the Master document, the list of Nomenclatures repeats its entries several times (obviously because the entry was indeed included several times). I am just looking for a more user oriented behavior. I mean, if I can see everything right on the screen, what's the problem? This is how I feel about the current behavior. LyX is handling everything on the editor, since all math macros are interpreted correctly when I open any document, but I can't generate the file because of its internal structure. We should try to avoid consistency errors in LyX. If people decide to use ERT, we should expect unwanted behavior, but in a document using only LyX resources, it must never generate errors (or they should be rare, at least), doesn't matter what the user decides to do. Cheers, Diego
Re: Math macros inside child documents
So, I do not experience your problem. However document settings and stuff that gets defined in the preamble need to be set in both master and child docs. -- Julien Actually, the answer is: yes, you do experience the very same problem. Otherwise you won't need to go after a workaround, right? :-) As I said before, I'm sure there are several ways to workaround this limitation (I am not searching for one). I just think we should focus on make LyX avoid these errors by itself. Cheers, --- Diego
Re: Math macros inside child documents
Which workaround? You said math macros don't work within child docs, I say they work for me. No workaround necessary. Maybe I misunderstood you. I was citing your workaround to include bibtex in the childs. I use a branch named child only, which is activated in child docs but deactivated in the master Anyway, never mind. Sorry. Thinking about this again, I'm guessing that one of the use x math package automatically option doesn't get triggered and is the cause of your child doc compilation failures. If that is the case then yes, LyX should detect that automatically, and yes, at the moment a workaround is needed: check use x math package in document settings. I just tested and this is not enough. I am not able to generate child files in LyX 2.0 at all. If I include a simple macro in a document (the master), create another file (the child), link them and use the macro in the child. The standalone child don't compile, only the master document. Are you able to do this in LyX 1.6? If so, this is a bug report and not a feature request. Can someone confirm this / create ticket? I've attached two files: the child and the master document. I can't compile the child document. Can you try? Cheers, --- Diego child.lyx Description: Binary data master.lyx Description: Binary data
Re: Math macros inside child documents
Yes I am able to do what you describe in 1.6. In your example child doc, you did not set the master setting, did you? Indeed. I was in a hurry and I forgot it. ;/ --- Diego Queiroz
Math macros inside child documents
I'm not sure if this is a bug report or a feature request. Probably the second one. In LyX it's ok to define a Math Macro in a Master document and use it in a child one. It's also ok to use math macros that are defined in a child and use it in other child document. In both cases, I am able to view the Master document and it handles everything perfectly. But if I do so, I am unable to compile the child document alone. AFAIK the reason is simple: the child document doesn't have the math macros defined on its scope. And it doesn't really matter if the default master document is set or not. It simple doesn't work (at least, I don't know how to do without insert the math macros "again", which in painful). My suggestion is to allow the generation of the childs alone. While working in the document, it's normal to compile only parts of the document instead of compile the whole set, so this feature would be very handy. Regards, --- Diego Queiroz
Re: Portable LyX
> > The question now is that whether Lyx stores all the settings files in the > installation directory itself, and not use registry (for windows, etc). > Perhaps one of the developers could have answer to this more specific > question. > LyX uses the user directory by default and doesn't use the Windows register. AFAIK the directory is defined in the compilation process and there's no way to achieve this without changing the code. But since there is a portable version MiKTeX, it would be a good to provide a portable version of LyX. Vincent, Goals for 2.1? :-) --- Diego Queiroz
Re: Math macros inside child documents
> > If you ask to compile just the child, then you are asking to compile it > as a standalone document, so it is no surprise that this does not work. > Exactly. :-) > If you want to compile just one chapter as part of a larger document, > then you need to use the \includeonly support, accessible from > Document>Settings. I was not aware of this feature. Thanks for the hint. But it is also painful to select the document I want to compile everytime. :/ When I am working in a document, I work on it as a standalone document, I don't handle with the Master document before I want to compile the whole set. Of course there are several workarounds, i.e you can create a document with all your macros and insert it on the beggining of all documents. This is a not so elegant solution, but it does the job. Probably one can suggest a better solution as well. But I really think LyX can do this automatically. Since LyX already stores all defined macros in somewhere for the editor, it is not so hard to dinamically include them in a document when needed. Cheers, Diego
Re: Math macros inside child documents
> > But what if you really want to compile it as a standalone document? > People do this. > > Richard > But if it was really a standalone document, I would have to unset master document property, right? Anyway, in my case, the problem is that my child document with the macros also define Nomenclatures. When I include it on all files and decide to generate the Master document, the list of Nomenclatures repeats its entries several times (obviously because the entry was indeed included several times). I am just looking for a more "user oriented behavior". I mean, "if I can see everything right on the screen, what's the problem?" This is how I feel about the current behavior. LyX is handling everything on the editor, since all math macros are interpreted correctly when I open any document, but I can't generate the file because of its internal structure. We should try to avoid consistency errors in LyX. If people decide to use ERT, we should expect unwanted behavior, but in a document using only LyX resources, it must never generate errors (or they should be rare, at least), doesn't matter what the user decides to do. Cheers, Diego
Re: Math macros inside child documents
> > So, I do not experience your problem. However document settings and stuff > that gets defined in the preamble need to be set in both master and child > docs. > -- > Julien > Actually, the answer is: yes, you do experience the very same problem. Otherwise you won't need to go after a workaround, right? :-) As I said before, I'm sure there are several ways to workaround this limitation (I am not searching for one). I just think we should focus on make LyX avoid these errors by itself. Cheers, --- Diego
Re: Math macros inside child documents
> > Which workaround? You said math macros don't work within child docs, I say > they work for me. No workaround necessary. > Maybe I misunderstood you. I was citing your workaround to include bibtex in the childs. >> "I use a branch named "child only", which is activated in child docs but deactivated in the master" Anyway, never mind. Sorry. Thinking about this again, I'm guessing that one of the "use x math package > automatically" option doesn't get triggered and is the cause of your child > doc compilation failures. If that is the case then yes, LyX should detect > that automatically, and yes, at the moment a workaround is needed: check > "use x math package" in document settings. > I just tested and this is not enough. I am not able to generate child files in LyX 2.0 at all. If I include a simple macro in a document (the master), create another file (the child), link them and use the macro in the child. The standalone child don't compile, only the master document. Are you able to do this in LyX 1.6? If so, this is a bug report and not a feature request. Can someone confirm this / create ticket? I've attached two files: the child and the master document. I can't compile the child document. Can you try? Cheers, --- Diego child.lyx Description: Binary data master.lyx Description: Binary data
Re: Math macros inside child documents
> > Yes I am able to do what you describe in 1.6. In your example child doc, > you did not set the master setting, did you? > Indeed. I was in a hurry and I forgot it. ;/ --- Diego Queiroz
Re: LyX 2.0 on Windows
On Sun, May 8, 2011 at 9:23 PM, Stephen Harwin stephen.har...@utas.edu.auwrote: Sorry, I do not seem to be able to find a 2.0.0-2 installer for download let alone a Bundle. Can you send me a link? Most of the mirror sites fail. Thanks Steve Here is the direct link you want ftp://ftp.lyx.org/pub/lyx/bin/2.0.0/LyX-2.0.0-2-Installer-Bundle.exe I just tested it, and it is working (not as fast, but working). BTW, I prefer to install MikTeX with the net installer and then install the LyX alone, but you decide. If you want to install them as I do, just install MikTeX from http://mirror.ctan.org/systems/win32/miktex/setup/setup-2.9.3959.exe . And then install LyX from ftp://ftp.lyx.org/pub/lyx/bin/2.0.0/LyX-2.0.0-2-Installer.exe . Take care, --- Diego Queiroz
Re: How to install Lyx 2.0 side by side with 1.6 on a MAC?
On Sun, May 8, 2011 at 5:58 PM, Dr Eberhard W Lisse e...@lisse.na wrote: Toss 1.6! Done that when rc1 came out and never looked back. el Same for me. LyX 2.0 is incredible. --- Diego
Subfigures: \subref support?
LyX 2.0 supports \subref command without ERT? (I want to cross-reference a subfigure inside the figure environment) If so, how do I insert it? Thanks, --- Diego Queiroz
Re: LyX 2.0 on Windows
On Sun, May 8, 2011 at 9:23 PM, Stephen Harwin stephen.har...@utas.edu.auwrote: Sorry, I do not seem to be able to find a 2.0.0-2 installer for download let alone a Bundle. Can you send me a link? Most of the mirror sites fail. Thanks Steve Here is the direct link you want ftp://ftp.lyx.org/pub/lyx/bin/2.0.0/LyX-2.0.0-2-Installer-Bundle.exe I just tested it, and it is working (not as fast, but working). BTW, I prefer to install MikTeX with the net installer and then install the LyX alone, but you decide. If you want to install them as I do, just install MikTeX from http://mirror.ctan.org/systems/win32/miktex/setup/setup-2.9.3959.exe . And then install LyX from ftp://ftp.lyx.org/pub/lyx/bin/2.0.0/LyX-2.0.0-2-Installer.exe . Take care, --- Diego Queiroz
Re: How to install Lyx 2.0 side by side with 1.6 on a MAC?
On Sun, May 8, 2011 at 5:58 PM, Dr Eberhard W Lisse e...@lisse.na wrote: Toss 1.6! Done that when rc1 came out and never looked back. el Same for me. LyX 2.0 is incredible. --- Diego
Subfigures: \subref support?
LyX 2.0 supports \subref command without ERT? (I want to cross-reference a subfigure inside the figure environment) If so, how do I insert it? Thanks, --- Diego Queiroz
Re: LyX 2.0 on Windows
On Sun, May 8, 2011 at 9:23 PM, Stephen Harwin <stephen.har...@utas.edu.au>wrote: > Sorry, > > > > I do not seem to be able to find a 2.0.0-2 installer for download let alone > a Bundle. Can you send me a link? Most of the mirror sites fail. > > > > Thanks > > Steve > Here is the direct link you want ftp://ftp.lyx.org/pub/lyx/bin/2.0.0/LyX-2.0.0-2-Installer-Bundle.exe I just tested it, and it is working (not as fast, but working). BTW, I prefer to install MikTeX with the net installer and then install the LyX alone, but you decide. If you want to install them as I do, just install MikTeX from http://mirror.ctan.org/systems/win32/miktex/setup/setup-2.9.3959.exe . And then install LyX from ftp://ftp.lyx.org/pub/lyx/bin/2.0.0/LyX-2.0.0-2-Installer.exe . Take care, --- Diego Queiroz
Re: How to install Lyx 2.0 side by side with 1.6 on a MAC?
On Sun, May 8, 2011 at 5:58 PM, Dr Eberhard W Lissewrote: > Toss 1.6! > > Done that when rc1 came out and never looked back. > > el Same for me. LyX 2.0 is incredible. --- Diego
Subfigures: \subref support?
LyX 2.0 supports \subref command without ERT? (I want to cross-reference a subfigure inside the figure environment) If so, how do I insert it? Thanks, --- Diego Queiroz
Re: Bug with label and multiline
Thanks for reporting the problem. I was able to confirm the problem, so I created this ticket for you http://www.lyx.org/trac/ticket/7511 http://www.lyx.org/trac/ticket/7511Regards, --- Diego Queiroz
Re: Bug with label and multiline
Thanks for reporting the problem. I was able to confirm the problem, so I created this ticket for you http://www.lyx.org/trac/ticket/7511 http://www.lyx.org/trac/ticket/7511Regards, --- Diego Queiroz
Re: Bug with label and multiline
Thanks for reporting the problem. I was able to confirm the problem, so I created this ticket for you http://www.lyx.org/trac/ticket/7511 <http://www.lyx.org/trac/ticket/7511>Regards, --- Diego Queiroz
Re: Lyx no backslash possible to enter proxy in a special domain
I think Manveru is right. But on MikTeX there is a Connection seetings button where you can input anything (including slashes). I don't know what window you're talking about. Could you send a snapshot? --- Diego Queiroz 2011/4/20 Manveru manv...@manveru.pl 2011/4/12 Marc Wollersheim m...@marcwollersheim.de: Hello together. I am new here, it is my first subscribe to a mailing list, so i hope to do nothing wrong. My problem while using Lyx ( to write my thesis in a company) Lyx needs to download some packages like graphix, pgfplots etc. Therefore i have to enter a proxy. But in this server environment of the company i have to enter a proxy with the domain prefix, e.g. domain\proxy. But i cannot enter a backslash, so i does not work. Is there any other way to define the proxy (e.g in a config file)? Or do you have any other concrete idea to solve the problem? I think this is a MikTeX issue or other TeX distro you are using on your Windows. This is not a LyX problem. -- Manveru jabber: manv...@manveru.pl gg: 1624001 http://www.manveru.pl
Re: RC3 for WIndows ?
Mariano, There aren't official installers. But there is an unnoficial installer, created by Michal. You would try it: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg86174.html http://www.mail-archive.com/lyx-users@lists.lyx.org/msg86174.htmlCheers, --- Diego Queiroz 2011/4/20 Mariano Llamedo Soria llame...@gmail.com Is it planed to be available for Windows ? Regards, Mariano.
Re: Layout: OptionalArgs
Yeah, I already realized that Short title is a terrible name (since it only makes sense for captions, chapters, sections, and so on). We need to change this in future releases... Anyway... So is OptionalArgs a boolean field? I am asking this 'cuz the Customization documentation says OptionalArgs = number of optional arguments, which means it is an integer field. Is the documentation wrong or there is another behavior if I set OptionalArgs = 2? --- Diego Queiroz 2011/4/20 Richard Heck rgh...@comcast.net On 04/20/2011 03:42 AM, Jean-Marc Lasgouttes wrote: Le 20/04/2011 02:23, Diego Queiroz a écrit : When developing layouts, what the OptionalArgs command actually do? I mean, I already know what it represents (the number of optional arguments of the command), but it appears to do nothing on LyX. It enables the InsertShort Title (bad name...) menu entry. ...which is what you use to insert optional arguments. rh
Re: Layout: OptionalArgs
Oh. You're right. Thanks. Anyway, I just noted that one can override this setting copying and pasting the Opt field as many times he/she wish. Isn't this a problem? Cheers, --- Diego Queiroz 2011/4/20 Julien Rioux jri...@physics.utoronto.ca On 20/04/2011 12:01 PM, Diego Queiroz wrote: Yeah, I already realized that Short title is a terrible name (since it only makes sense for captions, chapters, sections, and so on). We need to change this in future releases... Anyway... So is OptionalArgs a boolean field? I am asking this 'cuz the Customization documentation says OptionalArgs = number of optional arguments, which means it is an integer field. Is the documentation wrong or there is another behavior if I set OptionalArgs = 2? --- Diego Queiroz It is then possible to insert two Short title insets. Right? -- Julien
Re: Layout: OptionalArgs
Oooops. I'm wrong again, sorry. It seems that one can override and insert Opt fields, but they aren't included in the source. --- Diego Queiroz 2011/4/20 Diego Queiroz queiroz.di...@gmail.com Oh. You're right. Thanks. Anyway, I just noted that one can override this setting copying and pasting the Opt field as many times he/she wish. Isn't this a problem? Cheers, --- Diego Queiroz 2011/4/20 Julien Rioux jri...@physics.utoronto.ca On 20/04/2011 12:01 PM, Diego Queiroz wrote: Yeah, I already realized that Short title is a terrible name (since it only makes sense for captions, chapters, sections, and so on). We need to change this in future releases... Anyway... So is OptionalArgs a boolean field? I am asking this 'cuz the Customization documentation says OptionalArgs = number of optional arguments, which means it is an integer field. Is the documentation wrong or there is another behavior if I set OptionalArgs = 2? --- Diego Queiroz It is then possible to insert two Short title insets. Right? -- Julien
Re: Lyx no backslash possible to enter proxy in a special domain
I think Manveru is right. But on MikTeX there is a Connection seetings button where you can input anything (including slashes). I don't know what window you're talking about. Could you send a snapshot? --- Diego Queiroz 2011/4/20 Manveru manv...@manveru.pl 2011/4/12 Marc Wollersheim m...@marcwollersheim.de: Hello together. I am new here, it is my first subscribe to a mailing list, so i hope to do nothing wrong. My problem while using Lyx ( to write my thesis in a company) Lyx needs to download some packages like graphix, pgfplots etc. Therefore i have to enter a proxy. But in this server environment of the company i have to enter a proxy with the domain prefix, e.g. domain\proxy. But i cannot enter a backslash, so i does not work. Is there any other way to define the proxy (e.g in a config file)? Or do you have any other concrete idea to solve the problem? I think this is a MikTeX issue or other TeX distro you are using on your Windows. This is not a LyX problem. -- Manveru jabber: manv...@manveru.pl gg: 1624001 http://www.manveru.pl
Re: RC3 for WIndows ?
Mariano, There aren't official installers. But there is an unnoficial installer, created by Michal. You would try it: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg86174.html http://www.mail-archive.com/lyx-users@lists.lyx.org/msg86174.htmlCheers, --- Diego Queiroz 2011/4/20 Mariano Llamedo Soria llame...@gmail.com Is it planed to be available for Windows ? Regards, Mariano.