Re: Custom metadata
OK, thanks.
Re: Custom metadata
On 12/05/2012 06:46 PM, Nico Williams wrote: On Wed, Dec 5, 2012 at 3:20 PM, Nico Williams wrote: Ah, I see it, Tools->Preferences->File Handling->File Formats. OK, this is getting there. How can I deliver these things with a package? You'll find what you've done in the preferences file at, e.g., ~/.lyx/preferences. You could arrange for a script to write the relevant information into that file. Richard
Re: Custom metadata
On Wed, Dec 5, 2012 at 3:20 PM, Nico Williams wrote: > Ah, I see it, Tools->Preferences->File Handling->File Formats. OK, this is getting there. How can I deliver these things with a package?
Re: about the .lyx formt
On Wed, Dec 5, 2012 at 3:37 PM, Alex Vergara Gil wrote: > Can you point me the address to the wiki please. > I agree that having a bidirectional conversion is nice at first glance (or > first step approximation lets say) but what I really expect in the future is > to have the .lyx format natively use the xml scheme. So then there would be > no need for an importer-exporter tool (except for compatibility with > previous versions) and with all the benefits of xml then LyX will overwhelm > any other word processing software. http://wiki.lyx.org/Devel/XML is all I can find now.
Re: No references in pdf output after change to texlive2012
On Wed, Dec 5, 2012 at 7:53 AM, Wolfgang Engelmann < engelm...@uni-tuebingen.de> wrote: > Am Samstag, 1. Dezember 2012, 18:37:00 schrieb stefano franchi: > > after a few days of abstinence from the PC I started again today and, > surprise, the citations and references are all rendering ok in the pdf > output. > > Glad to hear that. The computing gods may have decided to smile on you... > As to your question: I somehow managed to get this version via svn to work > and hesitate to change it since I am very good in ending in an utter chaos. > So unless you can point me to a safe way of installing the version of LyX, > which you would recommend, I would stick to it. > > I would use the latest stable version (right now, 2.0.5) How to install it would depend on which Linux distribution you are using. I am on Arch, and installing (stable) Lyx from the official package works fine. I do keep a more or less updated version of (unstable) trunk for testing purposes, but I would not use it for production. The file format is not (nor is it supposed to be) stable, for instance, and that may create problems. For Ubuntu, using the PPA seem to be working fine as well for many users, but I am not a regular Ubuntu user. Best, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +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: about the .lyx formt
On Wed, Dec 5, 2012 at 8:15 AM, Alex Vergara Gil wrote: The question is why to have a .lyx format in plain text? Isn't xml a better one? .. There's a wiki where this is discussed. I agree, XML is better, not because XML is great, but because of tools like XSLT. If there was a loss-free, bi-directional conversion between LyX and some XML schema (XHTML, say), then that'd be good enough for now. There is an export to XHTML function, but I don't think there's an import from XHTML Nico -- Can you point me the address to the wiki please. I agree that having a bidirectional conversion is nice at first glance (or first step approximation lets say) but what I really expect in the future is to have the .lyx format natively use the xml scheme. So then there would be no need for an importer-exporter tool (except for compatibility with previous versions) and with all the benefits of xml then LyX will overwhelm any other word processing software. Alex
Re: Custom metadata
Ah, I see it, Tools->Preferences->File Handling->File Formats.
Re: LyX document diff/merge tools for cooperative editing?
On Wed, Dec 5, 2012 at 12:44 PM, Pavel Sanda wrote: > Jean-Marc Lasgouttes wrote: >> Le 04/12/2012 18:10, Nico Williams a écrit : >>> What would the exact command-line invocation be? >> >> Unfortunately, it seems that there is no lfun to do that. The only one is >> vc-compare, which compares documents already in version control. > > Not part of the official API (so no guarantee for future) but at this > moment "dialog-show compare run file1 file2" LFUN should work. > > Apart from the problems how to cram it into commandline, the bug #6889 > is in my experience quite limiting for real usage of LyX comparison tool. I see. Also, I will really need a 3-way diff/merge... Thanks.
Re: Custom metadata
On Wed, Dec 5, 2012 at 2:20 PM, Liviu Andronic wrote: > On Wed, Dec 5, 2012 at 9:08 PM, Nico Williams wrote: >> do this, but I don't know where to start. And even my lyx2rfc tool, >> if that's the only way to do this, I'd like to be able to invoke from >> the File->Export menu item. And I'd like to be able to record in the >> > This can be done. In File Format check 'document format' and 'show in > export menu'. I don't see a File->Format menu. What's the correct path to this?
Re: Custom metadata
On Wed, Dec 5, 2012 at 9:08 PM, Nico Williams wrote: > do this, but I don't know where to start. And even my lyx2rfc tool, > if that's the only way to do this, I'd like to be able to invoke from > the File->Export menu item. And I'd like to be able to record in the > This can be done. In File Format check 'document format' and 'show in export menu'. Liviu
Re: about the .lyx formt
On Wed, Dec 5, 2012 at 8:15 AM, Alex Vergara Gil wrote: > The question is why to have a .lyx format in plain text? Isn't xml a better > one? I know plain text is easy to edit but we really doesn't work with it > since LyX do this for us. The advantages would be obvious: > Insertion/Deletion of metadata, a better way of handling everything, etc. > This is my point of view, so I might be wrong but I doesn't feel like that. There's a wiki where this is discussed. I agree, XML is better, not because XML is great, but because of tools like XSLT. If there was a loss-free, bi-directional conversion between LyX and some XML schema (XHTML, say), then that'd be good enough for now. There is an export to XHTML function, but I don't think there's an import from XHTML Nico --
Re: Custom metadata
On Wed, Dec 5, 2012 at 1:13 AM, Liviu Andronic wrote: > On Tue, Dec 4, 2012 at 8:21 PM, Nico Williams wrote: >> It'd also be nice to be able to define a filter that must be applied >> before rendering. Such a filter might convert metadata into LyX >> directives, thus pre-rendering said metadata. >> > Did you look into the possibility of adding a new file format (say, > .xml2rfc) and a converter from .lyx to .xml2rfc and a 2nd one from > .xml2rfc to .lyx? I think current LyX infrastructure allows you to do > what you want. I already convert from LyX to xml2rfc (see my github repo, linked earlier), using export to XHTML + an XSL. What I'm after is the ability to render RFCs in PDF and HTML directly from Lyx, instead of having to take a side-trip through xml2rfc. There may be many ways to do this, but I don't know where to start. And even my lyx2rfc tool, if that's the only way to do this, I'd like to be able to invoke from the File->Export menu item. And I'd like to be able to record in the .lyx file that this really can only be exported/printed that way, at least so lyx2rfc comes up first in that menu. Nico --
Re: LyX document diff/merge tools for cooperative editing?
Jean-Marc Lasgouttes wrote: > Le 04/12/2012 18:10, Nico Williams a écrit : >> What would the exact command-line invocation be? > > Unfortunately, it seems that there is no lfun to do that. The only one is > vc-compare, which compares documents already in version control. Not part of the official API (so no guarantee for future) but at this moment "dialog-show compare run file1 file2" LFUN should work. Apart from the problems how to cram it into commandline, the bug #6889 is in my experience quite limiting for real usage of LyX comparison tool. Pavel
Re: Theorems "numbered by" modules unavailable
On 12/05/2012 10:32 AM, Richard Heck wrote: On 12/04/2012 12:51 PM, Christoph Burschka wrote: On 12/04/2012 11:09 AM, Jürgen Spitzmüller wrote: Christoph Burschka wrote: The two modules require one of Theorems or Theorems (AMS), and conflict only with each other. Still I wasn't able to enable either of them in the document. Is this a bug? All I can say is that this is also the case in LyX 2.0.5 and that BufferParams::moduleCanBeAdded() returns false for these modules. If there's a rationale for this, I don't know. I have no trouble adding "Theorems (Numbered by Section)" or "...Chapter)" in 2.0.5 so long as one of the prerequisites is available. What you can't add is "Numbered By Type within..." unless you have " Theorems* (Numbered by Type)" selected. I do see the problem in trunk. Fixed. rh
Re: Theorems "numbered by" modules unavailable
On 12/04/2012 12:51 PM, Christoph Burschka wrote: On 12/04/2012 11:09 AM, Jürgen Spitzmüller wrote: Christoph Burschka wrote: The two modules require one of Theorems or Theorems (AMS), and conflict only with each other. Still I wasn't able to enable either of them in the document. Is this a bug? All I can say is that this is also the case in LyX 2.0.5 and that BufferParams::moduleCanBeAdded() returns false for these modules. If there's a rationale for this, I don't know. I have no trouble adding "Theorems (Numbered by Section)" or "...Chapter)" in 2.0.5 so long as one of the prerequisites is available. What you can't add is "Numbered By Type within..." unless you have " Theorems* (Numbered by Type)" selected. I do see the problem in trunk. rh
about the .lyx formt
Hi everyone! I am a user of LyX, not a developer, but somehow I feel I must do things to contribute to it. So I want to open a thread about the .lyx format. The question is why to have a .lyx format in plain text? Isn't xml a better one? I know plain text is easy to edit but we really doesn't work with it since LyX do this for us. The advantages would be obvious: Insertion/Deletion of metadata, a better way of handling everything, etc. This is my point of view, so I might be wrong but I doesn't feel like that. Best Regards Alex
Re: Custom metadata
On Tue, Dec 4, 2012 at 8:21 PM, Nico Williams wrote: It'd also be nice to be able to define a filter that must be applied before rendering. Such a filter might convert metadata into LyX directives, thus pre-rendering said metadata. Did you look into the possibility of adding a new file format (say, .xml2rfc) and a converter from .lyx to .xml2rfc and a 2nd one from .xml2rfc to .lyx? I think current LyX infrastructure allows you to do what you want. Liviu Liviu I think Nico means to have a classic CTRL+C -> CTRL+V approach of typical Office products. In this case it should be say that LyX is not implemented to do this since the .lyx format is only plain text, so you have no way to add an image, for instance, inside it. The way lyx works (which is correct) is to have external images and then insert them in view by rendering. I also think this is a feature that can be done by creating the image (this is the classic metadata inset) in the .lyx file directory and then create the reference to it. Of course there is the complication of what happens if you want to delete it, this is a gray area. I hope this clarifies the question Alex
Re: No references in pdf output after change to texlive2012
Am Samstag, 1. Dezember 2012, 18:37:00 schrieb stefano franchi: > Hi Wolfgang, > > you file compiles fine here (I believe, I am not sure exactly what your > desired output is). See pdf below. > > I think you may have something wrong with your environment. Again, check > the bibtex log in Document>>Latex Log >> Bibtex > > One question: why are you using the unreleased trunk version of lyx? In > my opinion, it's never a good idea to use development-level software in > a production environment. > > Cheers, > > Stefano Hi, Stefano, after a few days of abstinence from the PC I started again today and, surprise, the citations and references are all rendering ok in the pdf output. As to your question: I somehow managed to get this version via svn to work and hesitate to change it since I am very good in ending in an utter chaos. So unless you can point me to a safe way of installing the version of LyX, which you would recommend, I would stick to it. Thanks to you and all the others for helping me and for your patiences with me. Yours, Wolfgang