Re: Cross-posting on devel and
Hi Rainer, On Mon, Jun 2, 2014 at 9:40 AM, Rainer M Krug wrote: > Hi > > There is recently a lot of cross-posting happening on lyx-devel and > lyx-users which I think is a bit irritating and makes following > discussions difficult (luckily, and this includes myself, most > responders to cross-posted threads ignore that one should not cross-post > and discussions are complete on both lists...). I agree that this is annoying. I wonder if it is best in these cases to continue cross-posting or if, e.g. the lyx-devel list is the correct place to only state "I'm moving this to lyx-devel" as a reply to lyx-users and then reply to the lyx-devel list only in a separate reply. > Nevertheless, I would like to know what the policy about cross-posting > is. If cross-posting is OK, the merging of the two mailing lists should > be considered, which might be a good idea in a relatively low traffic > mailing list? The other option would be to discourage cross-posting, > possibly even blocking mails to lyx-devel which are also posted to > lyx-users? Automatic blocking is an interesting idea. You got me thinking though... what about automatic blocking of the email entirely? With an automated response such as "cross-posting is discouraged for the following reasons... please pick the appropriate list". > I am not a list administrator and I don't want to start a big > discussion, so if nobody else objects, the status quo can be kept, Perhaps the first step is to put this in the list netiquette: http://www.lyx.org/MailingLists#toc7 Scott
Re: [Feature Request] python binding
This might work!! Thanks for the suggestions, I will try it extensively and I will comments my experiences afterwards. It seems it also renders the graphic inside LyX itself! That's what I was talking about. Regards Alex - Original Message - From: "Rainer M Krug" To: "Alex Vergara Gil" Cc: "Richard Heck" ; "lyx-users Users" ; Sent: Monday, June 02, 2014 8:31 AM Subject: Re: [Feature Request] python binding I just add comments inline Let's see if I understand: -1. You define a *file type* in LyX under Preferences > File Handling > File Formats for the file type .pygr in which "Vector graphics format" is ticked! 0. You define a converter under Preferences > File Handling > Converters which calls a script which executed files with the extension .pygr and generates, as you suggest below, an svg. 1. I wrote a python script that produces the graphic I want Exactly - and you give it a specific extension .pygr for "python script which generates a graphic" which you defined above. 2. I insert it in LyX somehow I don't know, perhaps defining a converter from .py to svg, but this needs to be inside a module or every python script in LyX will try to be converted into a svg!! So a module is also needed Use insert graphic and select *your .pygr* file as graphic - and Lyx will do the rest of the conversion - i.e. use your converter to convert the .pygr to an svg and other existing converters to generate the png for the preview and the pdf / eps / ... for the final copmpilation of the document. 3. LyX is the one who knows the correct size of the graphic so in principle if I produce a svg should be enough but in this way I need to produce a new svg every time the data change Correct - if the input data changes, you have to generate the graph again manually, or, if the "Converter file cache" is disabled, you just have to close the document and open it again. Hope this helps, Rainer
Re: Fwd: [LYX] Trouble using the LNCS class/style
2014-06-02 17:22 GMT+02:00 Jon Haitz Legarreta: > It seems to me that it may be related to the paragraph styles created when > the import is done, such as the Running Title or the Author Running. > Yes, this is certainly something where the tex2lyx converter could do better. But as soon as a lot of comments are in the source, things get nontrivial (for the importer). Jürgen
Re: Fwd: [LYX] Trouble using the LNCS class/style
Dear Jürgen, thanks. I had to delete the Email: field to make it work properly. Otherwise, the actual email was displayed in an additional blank page. It seems to me that it may be related to the paragraph styles created when the import is done, such as the Running Title or the Author Running. Kind regards, JON HAITZ On 2 June 2014 17:01, Jürgen Spitzmüller wrote: > 2014-06-02 16:56 GMT+02:00 Jürgen Spitzmüller: > > Below the paper title, insert the Author and select "Author" from the >> paragraph style combo. Likewise, inset the Institute in a separate >> paragraph following the Author and select "Institute" from the combo. >> > > I see now that your paper has these infos, but the titling information is > interrupted by Standard paragraphs (the ERT comments), which makes LyX > terminate the Titling block (i.e, output \maketitle). Remove these > comments, and the titling will be correct. See attached. > > Jürgen > > >> >> HTH >> Jürgen >> >> >>> >>> Thanks, >>> JON HAITZ >>> >> >> >
Re: Fwd: [LYX] Trouble using the LNCS class/style
2014-06-02 16:56 GMT+02:00 Jürgen Spitzmüller: > Below the paper title, insert the Author and select "Author" from the > paragraph style combo. Likewise, inset the Institute in a separate > paragraph following the Author and select "Institute" from the combo. > I see now that your paper has these infos, but the titling information is interrupted by Standard paragraphs (the ERT comments), which makes LyX terminate the Titling block (i.e, output \maketitle). Remove these comments, and the titling will be correct. See attached. Jürgen > > HTH > Jürgen > > >> >> Thanks, >> JON HAITZ >> > > LNCS_paper_v2.lyx Description: application/lyx
Re: Fwd: [LYX] Trouble using the LNCS class/style
2014-06-02 16:53 GMT+02:00 Jon Haitz Legarreta: > Dear Jürgen, > thanks for having devoted some time to it and for having helped cast some > light on it. > > Even if the document yields no errors now, I am still getting "No Authors > Given" "No Institute Given" in the rendered PDF. > > Is there anything else to be fixed? > Below the paper title, insert the Author and select "Author" from the paragraph style combo. Likewise, inset the Institute in a separate paragraph following the Author and select "Institute" from the combo. HTH Jürgen > > Thanks, > JON HAITZ >
Re: Fwd: [LYX] Trouble using the LNCS class/style
Dear Jürgen, thanks for having devoted some time to it and for having helped cast some light on it. Even if the document yields no errors now, I am still getting "No Authors Given" "No Institute Given" in the rendered PDF. Is there anything else to be fixed? Thanks, JON HAITZ On 2 June 2014 12:26, Jürgen Spitzmüller wrote: > 2014-06-02 12:24 GMT+02:00 Jürgen Spitzmüller : > > Corrected files attached. These compile for me. >> > > I forgot to save one file before attaching. Here is the correct version. > > Jürgen > > >> >> HTH >> Jürgen >> > >
Cross-posting on devel and
Hi There is recently a lot of cross-posting happening on lyx-devel and lyx-users which I think is a bit irritating and makes following discussions difficult (luckily, and this includes myself, most responders to cross-posted threads ignore that one should not cross-post and discussions are complete on both lists...). Nevertheless, I would like to know what the policy about cross-posting is. If cross-posting is OK, the merging of the two mailing lists should be considered, which might be a good idea in a relatively low traffic mailing list? The other option would be to discourage cross-posting, possibly even blocking mails to lyx-devel which are also posted to lyx-users? I am not a list administrator and I don't want to start a big discussion, so if nobody else objects, the status quo can be kept, Cheers, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug PGP: 0x0F52F982 pgp3ci4OxSMpK.pgp Description: PGP signature
Re: [Feature Request] python binding
"Alex Vergara Gil" writes: > From: "Richard Heck" > Sent: Thursday, May 29, 2014 5:05 PM >>> I might be *completely* off, but couldn't you achieve exactly this via >>> defining converters? I have for example a converter defined, which >>> "converts" plantuml source fields into uml graphs, i.e. it defines the >>> call to compile them and return the graphs which are then inserted in >>> the document? >> >> Yes, that's more or less what I was suggesting. >> >> rh >> > I just add comments inline > Let's see if I understand: -1. You define a *file type* in LyX under Preferences > File Handling > File Formats for the file type .pygr in which "Vector graphics format" is ticked! 0. You define a converter under Preferences > File Handling > Converters which calls a script which executed files with the extension .pygr and generates, as you suggest below, an svg. > 1. I wrote a python script that produces the graphic I want Exactly - and you give it a specific extension .pygr for "python script which generates a graphic" which you defined above. > 2. I insert it in LyX somehow I don't know, perhaps defining a > converter from .py to svg, but this needs to be inside a module or > every python script in LyX will try to be converted into a svg!! So a > module is also needed Use insert graphic and select *your .pygr* file as graphic - and Lyx will do the rest of the conversion - i.e. use your converter to convert the .pygr to an svg and other existing converters to generate the png for the preview and the pdf / eps / ... for the final copmpilation of the document. > 3. LyX is the one who knows the correct size of the graphic so in > principle if I produce a svg should be enough but in this way I need > to produce a new svg every time the data change Correct - if the input data changes, you have to generate the graph again manually, or, if the "Converter file cache" is disabled, you just have to close the document and open it again. Hope this helps, Rainer > > Take this simple script as example > > import numpy as np > from numpy.random import randn > import matplotlib as mpl > import matplotlib.pyplot as plt > np.random.seed(9221999) > data = randn(75) > plt.hist(data) > > which produce a graphic like this in spyder > > > > So basically I save this graphic to a svg and then I load it into LyX, > but why not letting LyX doing this automatically if it already handles > with python?? This is my question. > > Regards > > Alex -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug PGP: 0x0F52F982 pgp86MxwTSdD2.pgp Description: PGP signature
Re: [Feature Request] python binding
From: "Richard Heck" Sent: Thursday, May 29, 2014 5:05 PM >> I might be *completely* off, but couldn't you achieve exactly this via >> defining converters? I have for example a converter defined, which >> "converts" plantuml source fields into uml graphs, i.e. it defines the >> call to compile them and return the graphs which are then inserted in >> the document? > > Yes, that's more or less what I was suggesting. > > rh > Let's see if I understand: 1. I wrote a python script that produces the graphic I want 2. I insert it in LyX somehow I don't know, perhaps defining a converter from .py to svg, but this needs to be inside a module or every python script in LyX will try to be converted into a svg!! So a module is also needed 3. LyX is the one who knows the correct size of the graphic so in principle if I produce a svg should be enough but in this way I need to produce a new svg every time the data change Take this simple script as example import numpy as np from numpy.random import randn import matplotlib as mpl import matplotlib.pyplot as plt np.random.seed(9221999) data = randn(75) plt.hist(data) which produce a graphic like this in spyder So basically I save this graphic to a svg and then I load it into LyX, but why not letting LyX doing this automatically if it already handles with python?? This is my question. Regards Alex
Re: Fwd: [LYX] Trouble using the LNCS class/style
2014-06-02 12:24 GMT+02:00 Jürgen Spitzmüller : > Corrected files attached. These compile for me. > I forgot to save one file before attaching. Here is the correct version. Jürgen > > HTH > Jürgen > subjidx.lyx Description: application/lyx
Re: Fwd: [LYX] Trouble using the LNCS class/style
2014-06-02 9:53 GMT+02:00 Jon Haitz Legarreta: > Hi Stefano, Richard, > thank you for your interest. > > I started a Lyx document with LNCS format from scratch several times, but > I cannot even get the authors written. > > I also tried to reduce the *.tex example (*.dem file, renamed to *.tex > -compiling fine in LaTeX-, and exported to LyX) to its minimum expression > (please find attached the *.lyx file, and the subjidx.lyx, and llncs.cls > files, just in case) in order to spot the source of the problem. > > There seems to be a problem when adding the authors: when deleting the > following line the document is compiled correctly, but no authors are > displayed (even if it seems that this just adds a list of subjects); if the > line is kept there are a number of errors whose explanation seems not to be > so easy: > > *\addtocmark[2]{Subject Index} % additional numbered TOC > entry\markboth{Subject Index}{Subject Index} \indexname=Subject Index > Input: subjidx.lyx* > > So frankly speaking, I am at a loss at this stage. > There were several issues: 1. All brackets that belong to native LaTeX commands need to be put in ERT (else, LyX outputs "[" protected as "{[}"). This concerns the two commands at the end of the main document 2. The \markboth at the end of the main document needs to go on a new line. Else, it is partially commented out due to the comment on the previous line 3. Likewise, the \begin{index} in the subdocument needs to go on is own line (same reason). Corrected files attached. These compile for me. HTH Jürgen LNCS_paper_v2.lyx Description: application/lyx subjidx.lyx Description: application/lyx