Re: Footnote question

2017-02-25 Thread Guenter Milde
On 2017-02-18, Steve Burnham wrote:

> I've found a very sloppy solution to my footnote problem. I can delete the
> chapter heading and use ERT like this to separate the footnote marker and
> the footnote text:

> \chapter[INTRODUCTION]{INTRODUCTION\protect\footnotemark}\footnotetext{this
> is my footnote}

> I'd like to come up with a more elegant solution though. The problem with
> this ERT is that all of the subsections for each chapter are numbered wrong
> in LyX as they number according to the last Chapter that was declared
> without ERT. It all corrects itself at the time of compilation though. I've
> tried just sticking an ERT box next to the chapter title with:

>  \footnotemark\footnotetext{this is my footnote}

> but that causes the footnote to again not appear at the bottom of the page.
> When I export a .tex file it seems the problems is the placement of braces.

> \chapter[INTRODUCTION]{INTRODUCTION\protect\footnotemark\footnotetext{this
> is my footnote}}

> The \footnotetext command should be outside of the braces for the chapter
> title and \footnotemark command.

Then, use two ERT boxes: the footnotemark in the chapter and the
footnotetext in a standard paragraph below. (You can even use three ERT boxes:

* \footnotemark
* \footnotetext{

now the footnote's text as normal text

* }   

Günter



Re: Is there a way to do this without ERT

2017-02-25 Thread Guenter Milde
On 2017-02-18, Marshall Feldman wrote:

Dear Marshall,

> I just finished laying out my first floating figure with subfloats (in a 
> 2x2 matrix). But to get it to work the way I want, I had to use ERT, and 
> I'm wondering if this is really necessary. If it is necessary, then 
> consider this a feature request for LyX to do this automatically.



> First, some background. I'm using the Memoir class, which has its own 
> methods for handling floats and captions (see Ch. 10 of the Memoir 
> Manual ). But 
> they stopped working as soon as I started using subfloats in LyX. After 
> about a day (!) of detective work, I learned that LyX automatically 
> invokes the subfig  package, 
> which in turn automatically invokes the caption 
>  package.
> Since the latter conflicts 
> with Memoir's methods, Memoir is smart enough to turn off its own 
> methods if the caption package is loaded. But LyX doesn't warn you about 
> this, much less do something about it, and I did not see documentation 
> of this conflict anywhere. At the very least, I'd like to see this 
> documented. 

This is a valid (and simple) feature request. Could you post it (with a
telling subject line) on the LyX bug tracker?
Do you have a suggestion where to document this?

> Even better, if the Memoir class is being used, provide some 
> option to allow the user to choose between Memoir's native captioning 
> and that of the caption package.

... or just use the native captioning...

Another valid feature request.

> Possibly a similar conflict exists between subfig and the newer (and to 
> my mind easier-to-use) subcaption  
> package. Again, I'd like to see better documentation and options for 
> handling this explicitly, rather than letting users first fail to 
> compile their documents as expected, due to conflicts between their 
> method of choice and LyX's hidden side-effects, and then have to track 
> down the problem and fix it (which in my case eventually meant having no 
> choice but to use subfig and caption). (BTW, why doesn't LyX use the 
> more recent subcaption package instead of subfig?)

A third feature request: "support the subcaption package".

> In any case, here's how I want my figure to look. Each subfigure panel 
> is labeled with a letter in parentheses, both boldface. (E.g., "*(a)*".) 
> The main figure itself is labeled the usual way, except "Figure," the 
> number, and the separator are bold-faced (e.g., "*Figure 1:* "). Then, 
> immediately following this, there's a short cation to be used in the 
> list of figures. The identical text then appears boldfaced at the start 
> of the long caption, ending with a period. This is the visible figure 
> title. Immediately after this comes the rest of a long, paragraph-like 
> caption discussing the four panels in relation to each other. This long 
> caption makes repeated reference to the subfigure captions, and each 
> reference is set in the same font as the caption itself (in this case 
> boldface).

> I was able to do most of this by using the caption/subfig commands 
> \DeclareSubrefFormat and \captionsetup in the preamble. But the repeated 
> short caption (figure title) had to be copied, pasted, period added, and 
> boldfaced. And the references in the long caption needed to be done with 
> ERT, such as"\textbf{\protect\subref{subfig:MVpct}}" where subfig:MVpct 
> is the label used for a panel's subfigure caption. Nothing I tried with 
> LyX would make this work as desired, so I resorted to ERT.

Please provide a *minimal* example file. (Leave out everything
non-standard except the memoir class from the preamble and everything not
required to show the problem expect 2 sub-figures + references.)

Günter



Re: new operators in LyX?

2017-02-25 Thread Guenter Milde
On 2017-02-24, Bernt Lie wrote:
> From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
> Jean-Marc Lasgouttes
> Le 24/02/2017 à 16:07, Bernt Lie a écrit :

>> I need to typeset the signum function as an operator. I have tried to
>> insert "\mathop{sgn}", but this gives "sgn" in italic, and not in
>> roman as it should.

> The right command is operatorname, I think. LyX is not yet able to
> display it properly , though.

You can define a math-macro with \operatorname{sgn} in the TeX definition
and sgn in upright roman font in the LyX definition.

Günter



Re: Fwd: Lyx PDF Error w/ Bib File

2017-02-25 Thread Michael Berger



On 25.02.2017 08:11, Jürgen Spitzmüller wrote:

Am Freitag, den 24.02.2017, 11:11 -0800 schrieb Christos Makridis:

Just to give an example of one of my citations, see below.

@article{JaimovichSiu:highskilled,
title={{High-skilled immigration, STEM employment, and non-routine-
biased technical change}},
author={Jaimovich, Nir, and Siu, Henry E.},
journal={NBER working paper},
year={2017},
volume={},
number={},
pages={},
}

Remove the comma before " and " in the author list, i.e.


author={Jaimovich, Nir and Siu, Henry E.},

HTH
Jürgen
I have four LyX v. 2.1 documents that differ only by the citation 
styles: oscola, apa, chicago, jurabib and all use the same bibtex 
generated bibliography.
When I started using the document(s) in LyX v. 2.2.1 compilation of the 
first three went fine as before but the one with jurabib threw the error 
in discussion.


After many aimless attempts I could not resolve the problem and decided 
to ask the list when I saw Jürgens advice.


The culprit in my case quite similarly was the wrong syntax of the 
author list of one single entry in the KBibTeX database


Changing the author list
from
author = {{Cole, Peter} and {Hermon, Gebriella}},
to
author = {Cole, Peter and Hermon, Gabriella},
did it.

Thank you Jürgen and cheers,
Michael