Re: XeTeX - Load packages before fontspec
I can see a very distinct reason for wanting to be able to modify the LyX- generated preamble directly (without having to use a separate editor). I'm using MathTime Professional II fonts and I want to use it in conjunction with the bm package so that I have access to the bm versions of the \bm and \hm modifiers. In order for this to work, \usepackage{bm} _must_follow_ \usepackage{mtpro2} and with LyX generating \usepackae{bm} in its own preamble, the second \usepackage{bm} in my preamble is rendered useless. I see this as much more of a hindrance than a feature.
Re: Python Graphics in LyX [was: Python bindings]
On 6/12/2014 5:10 PM, Alex Vergara Gil wrote: - Original Message - From: "Ross Reyes" Sent: Thursday, June 12, 2014 12:50 PM On 6/11/2014 12:41 PM, Rainer M Krug wrote: Envoyé de mon iPhone Le 11 juin 2014 à 16:07, Ross Reyes a écrit : Hi Alex, I still get the "error converting to loadable format" message. I can run the python script from the command line and it does work. I can and have modified the .pygr script to produce other outputs in .png, .jpg, .ps, etc. without problem. If the scripts work fine outside LyX then your problem is with your LyX instalation. The only thing I can suggest is to update at least to version 2.0.3 which is the one I have tested in my debian system. But inside LyX, regardless of what I do to define the converter, I can not get the image to render nor can I produce a .pdf output from the LyX doc. Something is not right. I am using LyX 2.0.1 The converters are defined in the configuration file LyX. If you could take a loom at it and post the lines where you file formats and the converters are defined, one could see if there is something wrong. I don't have LyX at hand, so I can't give you the location of the config file. Cheers, Rainer Hi Rainer, I have this in my preferences file for pygr fomat and converter. # # FORMATS SECTION ## # \format "pdf4" "pdf" "PDF (xelatex)" "" "" "" "document,vector,menu=export" \format "pygr" "pygr" "Python Graphics" "" "auto" "auto" "vector" \default_view_format ps # # CONVERTERS SECTION ## # \converter "pdflatex" "pdf4" "xelatex $$i" "latex=pdflatex" \converter "eps" "png" "epstopng.bat $$i" "" \converter "pygr" "png" "python $$i $$o" "" All of this seems ok, take into account that if you are on Windows the correct converter line should be \converter "pygr" "png" "python -tt $$i $$o" "" but it would be better if you to have \converter "pygr" "eps" "python $$i $$o" "" on Linux \converter "pygr" "eps" "python -tt $$i $$o" "" on Windows Thank you for your inputs. The problem is that I'm using LyTeX 2.0.1 and it comes bundled with its own Python. The Python that is in the directory did not contain the python modules this needs. I copied my version on my C: drive to the USB drive where LyTeX is and now everything is working well. Thanks.
Re: Image Format Conversion on OS X with Transmute
Hi Jerry, I wasn't able to edit the LyX wiki - the Mac page is protected with a password other than LyX. To answer your question, the -n pageno selects the page from the source PDF such that it can be rendered to a target (probably not a PDF). In this way you can grab page 22 from your favorite PDF and create a PNG thumbnail of it. I just released 1.2 which adds support for PDF as a target. As a target it currently allows only one page. The target support is also nice for LyX because now I can add these preference lines, \converter "ps" "png" "transmute -i $$i $$o" "" \converter "eps" "png" "transmute -i $$i $$o" "" \converter "pdf" "png" "transmute -i $$i $$o" "" \converter "eps" "pdf6" "transmute -i $$i $$o" "" and now it uses transmute for the eps to pdf conversion (for pdflatex, etc.) and not epstopdf which depends on ghostscript. This has only been tested on the book I'm working on so I would appreciate testing/feedback by any other Mac users interested in going ghostscript free. The LyX example is also provided in the transmute README, https://bitbucket.org/jdpalmer/transmute James On 2014-05-30 03:37:32 +, Jerry said: James, I haven't tried this but it looks awesomely awesome. Would you mind making a note on the LyX wiki about it? And maybe an indication, if not already present, how to install without brew, e.g., put in /some/path for those who don't know this. And maybe you can help my confusion. PDF is listed as source-file only but the note about -n pageno sort of indicates that pageno can be applied to rendered PDFs. I'm probably misreading something. Jerry
Re: Python Graphics in LyX [was: Python bindings]
> That looks beautiful. AS I have no idea how python works, co-author > would probably better. Python is the best scripting (and general purpose programming) language ever invented. Not only for scientists. If you're using a computer intensively to earn your living, you *should* learn it. Otherwise you're missing *something*, in terms of productivity you can achieve. Sincerely, Wolfgang
Re: paper accepted for publication, but need help!
stefano franchi wrote: > On Fri, Jun 13, 2014 at 6:30 AM, Neal Becker wrote: > >> stefano franchi wrote: >> >> > On Thu, Jun 12, 2014 at 9:27 AM, Benedict Holland < >> > benedict.m.holl...@gmail.com> wrote: >> > >> >> That is a fantastic point. Also I just found this. >> >> >> >> http://wiki.lyx.org/BibTeX/Biblatex >> >> >> >> I don't know enough about Lyx to start programing stuff for it yet but >> it >> >> seems like pushing biber and biblatex as the default is about 15 years >> >> overdue. If someone who knows far more about the Lyx codebase can ping >> me >> >> or if this would be a great feature request, I would be willing to spend >> >> some time on this. I ran into very similar problem with a name much like >> >> Jürgen and I lost a few days trying to figure it out. >> >> >> >> >> > Hi Benedict, >> > >> > I think most developers (of which I am not one) agree that full biblatex >> > support would be desirable. However, from what I understand, adding such >> > support is not an entirely trivial task, partly because biblatex/biber >> > interact with latex in a very different way from bibtex. That does not >> mean >> > you are not welcome to give it a try. In fact, you strongly encouraged to >> > do so! There were some discussions of this topic on the lyx-devel list a >> > few months ago. You may want to search for those threads to get started. >> > >> > I also tend to believe that one of the reasons why biblatex support does >> > not have a very high priority on the developers' agenda is that the >> current >> > workaround (described in the wiki page you referred to) is good enough >> for >> > a lot of users. It has certainly been good enough for me for a number of >> > years. I switched to biblatex/biber to get full unicode support and avoid >> > the kind of time-consuming issues discussed in this thread. Once you get >> > used to loading biblatex in the preamble (and adding a fake bibtex inset >> at >> > the end) it is smooth sailing. If you tend to work with the same bib >> files >> > all the time (as I do), you may even create a lyx template with the >> proper >> > preamble and bibtex inset and you are done. >> > >> > Cheers, >> > Stefano >> > >> > >> > >> >> Following the wiki instructions doesn't quite work for me. >> >> 1. It seems to fail to run biber. All refs are undefined, and no >> bibliography >> is output. >> >> If I export lyx->tex and run lualatex, it asks me to run biber. After >> manually >> running biber, then the bibliography is output. >> >> > 1. I would first make sure that you have selected biber as you > bibbliography processor in > Document>>Settings>>Bibliography>>Processor (from the drop-down menu > choose "biber") > > 2. Second, make sure that biber can actually find your bib files. Look in > the biber log for an appropriate message (Document>>LaTeX Log, then select > bibtex from the dropdown menu). do you see a message from biber to the > effect that one or more bib files could not be found? > Notice that biblatex requires you to specify the .bib extension in the > \addbibresource command in the preamble. ANd notice that you need to insert > the absolute path to the bib file (in the same command). > > 3. If biber is selected, and still it is not run by LyX during pdf > generation, I would check what LyX acutally does during such generation. > Choose View>>Messages Pane then click on the "settings" vertical tab in the > right, choose the "selected" radio button, and then in the rightmost pane > ("Debug level") double click "LaTeX generation/execution." > Then visualize the pdf file as usual and look at which kind of messages you > get. > > Get back to us with the info you get and we'll take it further. > > > >> 2. But, in IEEE style, with bibtex, the bib entries use a smaller font, >> But not >> with biblatex - they seem to use the standard font used in the main >> material. >> >> > biblatex has a gazillion of options, I am sure there must be one somewhere > that does what you want. But as a quick hack, try the following in your > preamble: > > \renewcommand{\bibfont}{\normalfont\small} > > > > Cheers, > > S. > 1. Thanks! I had forgotten to select biber as bib processor - now it's working 2. \renewcommand{\bibfont}{\normalfont\small} worked great! Thanks again. I looked for options, but nothing in http://mirror.utexas.edu/ctan/macros/latex/contrib/biblatex-contrib/biblatex-ieee/biblatex-ieee.pdf. I'll try contacting the author.
Re: paper accepted for publication, but need help!
On Fri, Jun 13, 2014 at 6:30 AM, Neal Becker wrote: > stefano franchi wrote: > > > On Thu, Jun 12, 2014 at 9:27 AM, Benedict Holland < > > benedict.m.holl...@gmail.com> wrote: > > > >> That is a fantastic point. Also I just found this. > >> > >> http://wiki.lyx.org/BibTeX/Biblatex > >> > >> I don't know enough about Lyx to start programing stuff for it yet but > it > >> seems like pushing biber and biblatex as the default is about 15 years > >> overdue. If someone who knows far more about the Lyx codebase can ping > me > >> or if this would be a great feature request, I would be willing to spend > >> some time on this. I ran into very similar problem with a name much like > >> Jürgen and I lost a few days trying to figure it out. > >> > >> > > Hi Benedict, > > > > I think most developers (of which I am not one) agree that full biblatex > > support would be desirable. However, from what I understand, adding such > > support is not an entirely trivial task, partly because biblatex/biber > > interact with latex in a very different way from bibtex. That does not > mean > > you are not welcome to give it a try. In fact, you strongly encouraged to > > do so! There were some discussions of this topic on the lyx-devel list a > > few months ago. You may want to search for those threads to get started. > > > > I also tend to believe that one of the reasons why biblatex support does > > not have a very high priority on the developers' agenda is that the > current > > workaround (described in the wiki page you referred to) is good enough > for > > a lot of users. It has certainly been good enough for me for a number of > > years. I switched to biblatex/biber to get full unicode support and avoid > > the kind of time-consuming issues discussed in this thread. Once you get > > used to loading biblatex in the preamble (and adding a fake bibtex inset > at > > the end) it is smooth sailing. If you tend to work with the same bib > files > > all the time (as I do), you may even create a lyx template with the > proper > > preamble and bibtex inset and you are done. > > > > Cheers, > > Stefano > > > > > > > > Following the wiki instructions doesn't quite work for me. > > 1. It seems to fail to run biber. All refs are undefined, and no > bibliography > is output. > > If I export lyx->tex and run lualatex, it asks me to run biber. After > manually > running biber, then the bibliography is output. > > 1. I would first make sure that you have selected biber as you bibbliography processor in Document>>Settings>>Bibliography>>Processor (from the drop-down menu choose "biber") 2. Second, make sure that biber can actually find your bib files. Look in the biber log for an appropriate message (Document>>LaTeX Log, then select bibtex from the dropdown menu). do you see a message from biber to the effect that one or more bib files could not be found? Notice that biblatex requires you to specify the .bib extension in the \addbibresource command in the preamble. ANd notice that you need to insert the absolute path to the bib file (in the same command). 3. If biber is selected, and still it is not run by LyX during pdf generation, I would check what LyX acutally does during such generation. Choose View>>Messages Pane then click on the "settings" vertical tab in the right, choose the "selected" radio button, and then in the rightmost pane ("Debug level") double click "LaTeX generation/execution." Then visualize the pdf file as usual and look at which kind of messages you get. Get back to us with the info you get and we'll take it further. > 2. But, in IEEE style, with bibtex, the bib entries use a smaller font, > But not > with biblatex - they seem to use the standard font used in the main > material. > > biblatex has a gazillion of options, I am sure there must be one somewhere that does what you want. But as a quick hack, try the following in your preamble: \renewcommand{\bibfont}{\normalfont\small} Cheers, S. -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A&M University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: paper accepted for publication, but need help!
stefano franchi wrote: > On Thu, Jun 12, 2014 at 9:27 AM, Benedict Holland < > benedict.m.holl...@gmail.com> wrote: > >> That is a fantastic point. Also I just found this. >> >> http://wiki.lyx.org/BibTeX/Biblatex >> >> I don't know enough about Lyx to start programing stuff for it yet but it >> seems like pushing biber and biblatex as the default is about 15 years >> overdue. If someone who knows far more about the Lyx codebase can ping me >> or if this would be a great feature request, I would be willing to spend >> some time on this. I ran into very similar problem with a name much like >> Jürgen and I lost a few days trying to figure it out. >> >> > Hi Benedict, > > I think most developers (of which I am not one) agree that full biblatex > support would be desirable. However, from what I understand, adding such > support is not an entirely trivial task, partly because biblatex/biber > interact with latex in a very different way from bibtex. That does not mean > you are not welcome to give it a try. In fact, you strongly encouraged to > do so! There were some discussions of this topic on the lyx-devel list a > few months ago. You may want to search for those threads to get started. > > I also tend to believe that one of the reasons why biblatex support does > not have a very high priority on the developers' agenda is that the current > workaround (described in the wiki page you referred to) is good enough for > a lot of users. It has certainly been good enough for me for a number of > years. I switched to biblatex/biber to get full unicode support and avoid > the kind of time-consuming issues discussed in this thread. Once you get > used to loading biblatex in the preamble (and adding a fake bibtex inset at > the end) it is smooth sailing. If you tend to work with the same bib files > all the time (as I do), you may even create a lyx template with the proper > preamble and bibtex inset and you are done. > > Cheers, > Stefano > > > Following the wiki instructions doesn't quite work for me. 1. It seems to fail to run biber. All refs are undefined, and no bibliography is output. If I export lyx->tex and run lualatex, it asks me to run biber. After manually running biber, then the bibliography is output. 2. But, in IEEE style, with bibtex, the bib entries use a smaller font, But not with biblatex - they seem to use the standard font used in the main material.