Paul A. Rubin wrote: > Neal Becker wrote: >> Jürgen Spitzmüller wrote: >> >>> Neal Becker wrote: >>>> lyx-1.5.2. I chose ams article class. I don't have any sections in >>>> this short memo, and the first equation is 0.1. >>>> >>>> Exporting latexpdf, I see: >>>> \numberwithin{equation}{section} %% Comment out for >>>> sequentially-numbered \numberwithin{figure}{section} %% Comment out for >>>> sequentially-numbered >>>> >>>> How can I change this within lyx? I don't see anything in document >>>> settings. >>> Document class "article (AMS, sequential numbering)"? >>> >> Thanks. >> >> BTW, having to choose a different class just to get some little variation >> is, (let me be kind here...) suboptimal? > > Well, funky maybe. > >> I can imagine a nice dialog with check boxes for this sort of thing. > > "This sort of thing" is going to be very class-specific. For AMS, it's > a check box to decide whether numbering is within sections ... and > another for whether there's numbering at all. For a different class > it's going to be something else. So I think what this would require is > (1) syntax in the layout file to define options (how to display them in > a dialog, what the choices are, what LaTeX to insert for each choice) > and (2) an extra dialog in Document -> Settings that self-configures > based on that piece of the layout file. Sounds doable (though not by me > -- allergy to C++), but perhaps not obvious how many layouts would > exploit it. Perhaps it should go on the wiki wish-list and people could > vote for it (by suggesting layouts that would benefit from it)? > > /Paul
I have so far not written any code for lyx. I _did_ buy the PyQt4 book. How do we feel about using PyQt for something like this, or does that even make any sense?