Re: Compilation error with lyx 2.2.2 (and not in 2.2.1)

2016-10-27 Thread Guillaume Munch

Le 27/10/2016 à 20:40, Paul A. Rubin a écrit :

I just type \coloneqq in a math inset in LyX 2.2.2 and LyX recognized it
(but pdflatex bombed on it with the same error you saw). So I went to
Document > Settings > Math Options and changed "mathtools" from  "Load
automatically" to "Load always", and the document compiled. Maybe LyX
lost the ability to recognized that \coloneqq requires mathtools (or one
of a few other packages)?



This bug was in master, before being fixed at 338cef2a9. It seems that 
unfortunately 8603655 was backported without the fix. The solution is to 
backport 338cef2a9 (attached--Richard?). You can fix your local 
installation by replacing the symbols file with the attached.
>From 8acb4f61ff5f0ed57abb40aafa82a1dff8e125c3 Mon Sep 17 00:00:00 2001
From: Georg Baum 
Date: Sun, 21 Aug 2016 20:34:40 +0200
Subject: [PATCH] Fix regression of 88603655

The XHTML entries were added in the wrong field, if they are given we need
extra xhtml requires. The order is inconsistent, there are discussions on the
list about that but for now I'll use the existing order to fix the export tests.

The format of the lib/symbols file does not support "" for empty strings.
One would have to use x for fields that are not set (this is a hack), but
actually we know how to fill the extra field.

(cherry-pick of commit 338cef2a)
---
 lib/symbols | 74 ++---
 1 file changed, 37 insertions(+), 37 deletions(-)

diff --git a/lib/symbols b/lib/symbols
index fbe5f43..5dc3e4c 100644
--- a/lib/symbols
+++ b/lib/symbols
@@ -1103,20 +1103,20 @@ podlyxblacktext  0   0 func x amsmath
 
 
 # mathtools.sty
-\def\vcentcolon{\kern4mu:\kern3mu} mathtools :
-\def\dblcolon{\vcentcolon\kern-8mu\vcentcolon} mathtools ::
-\def\coloneqq{\vcentcolon\kern-7mu=}   mathtools 
-\def\Coloneqq{\dblcolon\kern-7mu=} mathtools ::=
-\def\coloneq{\vcentcolon\kern-7mu-}mathtools :-
-\def\Coloneq{\dblcolon\kern-7mu-}  mathtools ::-
-\def\eqqcolon{=\kern-8mu\vcentcolon}   mathtools 
-\def\Eqqcolon{=\kern-8mu\dblcolon} mathtools =::
-\def\eqcolon{-\kern-8mu\vcentcolon}mathtools -:
-\def\Eqcolon{-\kern-8mu\dblcolon}  mathtools -::
-\def\colonapprox{\vcentcolon\kern-7mu\approx}  mathtools :
-\def\Colonapprox{\dblcolon\kern-7mu\approx}mathtools ::
-\def\colonsim{\vcentcolon\kern-7mu\sim}mathtools :
-\def\Colonsim{\dblcolon\kern-7mu\sim}  mathtools ::
+\def\vcentcolon{\kern4mu:\kern3mu}  mathrel :mathtools
+\def\dblcolon{\vcentcolon\kern-8mu\vcentcolon}  mathrel ::   mathtools
+\def\coloneqq{\vcentcolon\kern-7mu=}mathrel  mathtools
+\def\Coloneqq{\dblcolon\kern-7mu=}  mathrel ::=  mathtools
+\def\coloneq{\vcentcolon\kern-7mu-} mathrel :-   mathtools
+\def\Coloneq{\dblcolon\kern-7mu-}   mathrel ::-  mathtools
+\def\eqqcolon{=\kern-8mu\vcentcolon}mathrel  mathtools
+\def\Eqqcolon{=\kern-8mu\dblcolon}  mathrel =::  mathtools
+\def\eqcolon{-\kern-8mu\vcentcolon} mathrel -:   mathtools
+\def\Eqcolon{-\kern-8mu\dblcolon}   mathrel -::  mathtools
+\def\colonapprox{\vcentcolon\kern-7mu\approx}   mathrel :mathtools
+\def\Colonapprox{\dblcolon\kern-7mu\approx} mathrel ::   mathtools
+\def\colonsim{\vcentcolon\kern-7mu\sim} mathrel :   mathtools
+\def\Colonsim{\dblcolon\kern-7mu\sim}   mathrel ::  mathtools
 
 
 #
@@ -1125,7 +1125,7 @@ podlyxblacktext  0   0 func x amsmath
 
 \def\neq{\not=} mathrel 
 \def\ne{\not=}  mathrel 
-\def\notin{\not\in} ""  
+\def\notin{\not\in} mathrel 
 \def\slash{/}
 
 \def\longleftrightarrow{\leftarrow\kern-12.5mu\rightarrow}
@@ -1134,32 +1134,32 @@ podlyxblacktext  0   0 func x amsmath
 \def\doteq{\stackrel{\cdot}{=}}
 
 iffont cmsy
-\def\longrightarrow{\lyxbar\kern-11mu\rightarrow}   ""   
-\def\longleftarrow{\leftarrow\kern-11mu\lyxbar} ""   
-\def\Longrightarrow{\lyxeq\kern-9.5mu\Rightarrow}   ""   
-\def\Longleftarrow{\Leftarrow\kern-9.5mu\lyxeq} ""   
-\def\implies{\Longrightarrow}   amsmath  
-\def\impliedby{\Longleftarrow}  amsmath  
-\def\mapsto{\mapstochar\kern-9mu\rightarrow}""   

Re: Compilation error with lyx 2.2.2 (and not in 2.2.1)

2016-10-27 Thread Kornel Benko
Am Donnerstag, 27. Oktober 2016 um 14:40:03, schrieb Paul A. Rubin 

> On 10/27/2016 12:10 PM, Mario D wrote:
> > Hi all,
> >
> > I have a file on which I am currently working. It compiled fine under 
> > lyx 2.2.1.
> > Today I upgraded to lyx 2.2.2 and compiling the very same file results 
> > in an error which I previously didn't experience.
> > The error is as follows:
> >
> > -
> > Undefined control sequence
> >
> > Let $\sigma\left(f\right)\coloneqq
> >
> > f\left(x_{\sigma\left(1\right)}...
> >
> > The control sequence at the end of the top line
> >
> > of your error message was never \def'ed. If you have
> >
> > misspelled it (e.g., `\hobx'), type `I' and the correct
> >
> > spelling (e.g., `I\hbox'). Otherwise just continue,
> >
> > and I'll forget about whatever was undefined.
> >
> > --
> >
> >
> > In other words, the control sequence \coloneqq which was previously 
> > known to lyx, is not known any longer.
> >
> >
> > What is happening?
> >
> >
> > TIA
> >
> >
> I just type \coloneqq in a math inset in LyX 2.2.2 and LyX recognized it 
> (but pdflatex bombed on it with the same error you saw). So I went to 
> Document > Settings > Math Options and changed "mathtools" from  "Load 
> automatically" to "Load always", and the document compiled. Maybe LyX 
> lost the ability to recognized that \coloneqq requires mathtools (or one 
> of a few other packages)?
> 
> Paul
> 

You found a bug. I tried with lyx2.2, it is reproducible. Lyx2.3dev works fine 
again though.

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: Recommended PDF viewer?

2016-10-27 Thread edu Gpl
no command in lyx, only as i told you.

Dear Wierdl
- acrobat worked in my win 10 without any problem.
- if you install acrobat pdf after lyx go to:
Start > setting > system > default app
Then from default app select :
Dafault app by file type

Then go down to pdf file:
Click on + button and select acrobat pdf viewer

Best regards






‏في الأربعاء، ٢٦ أكتوبر، ٢٠١٦, Wierdl Máté  كتب:

> But how do I tell LyX to use acroread?  What's the command I need to enter
> in the PDF viewer command box?
>
> On Fri, Oct 21, 2016 at 9:41 PM, edu Gpl  > wrote:
>
>> Dear Wierdl
>> - acrobat worked in my win 10 without any problem.
>> - if you install acrobat pdf after lyx go to:
>> Start > setting > system > default app
>> Then from default app select :
>> Dafault app by file type
>>
>> Then go down to pdf file:
>> Click on + button and select acrobat pdf viewer
>>
>> Best regards
>>
>> بتاريخ ٢٢‏/١٠‏/٢٠١٦ ٥:١٠ ص، كتب "Wierdl Máté" > >:
>>
>>> Hi,
>>>
>>> I am sure this is wellknown: My colleague just installed the latest LyX
>>> 2.2 on windows 10, using the complete installer, meaning the one which
>>> installs a tex distro (I think it's Mictex) as well. But PDF previewing out
>>> of the box doesn't work, meaning that we get an error.  I figured, Mictex
>>> doesn't include a previewer.  Then my colleague installed Acrobat
>>> professional, but we have have no idea how to specify that for LyX, so that
>>> it can use it.  I saw some posts indicating that Acrobat doesn't work well
>>> with LyX anyways, since updating doesn't work.
>>>
>>> So then what is the recommended PDF previewer for LyX on Windows 10?
>>>
>>> Thanks,
>>>
>>> Máté
>>>
>>
>


Re: Appearance of bibliography references in LyX

2016-10-27 Thread Benedict Holland
Is this a problem with Lyx or the parser? What reference engine are you
using? Can you replicate it with biber and biblatex? I only harp on this a
bit because I ended up with huge problems with my .bib file and the
solution was to switch to biber (which AFAIK) is unsupported by lyx, though
that might have changed.

~Ben

On Thu, Oct 27, 2016 at 12:08 PM, Bernt Lie  wrote:

>
> -Original Message-
> From: Jürgen Spitzmüller [mailto:sp...@lyx.org]
> Sent: torsdag 27. oktober 2016 18.00
> To: Bernt Lie ; lyx-users@lists.lyx.org
> Subject: Re: Appearance of bibliography references in LyX
>
> Am Donnerstag, den 27.10.2016, 15:34 + schrieb Bernt Lie:
> > This happens with *all* of my references in LyX... Which may indicate
> > some weirdness of my set-up... Here is one item in the BibTeX file:
> >
> > @Article{LuisA.Forero2014,
> >   author= {Luis A. {Forero G.} AND Jorge A. {Vel{\'a}squez J.}},
> >   title = {{A modified Patel-Teja cubic equation of state. Part
> > II: Parameters for polar substances and its mixtures}},
> >   journal   = {Fluid Phase Equilibria},
> >   year  = {2014},
> >   volume= {364},
> >   pages = {75--87},
> >   owner = {Bernt},
> >   timestamp = {2016.10.25},
> > }
>
> > Thank you. I can confirm the problem. Looks like a bug in LyX's bibtex
> parser.
>
> First of all, the capital "AND" is not correctly parsed (which is one
> bug), but there are other bugs concerning the last names here. The LyX
> parser does not honor grouping in {...}.
>
> I will file a bug report.
>
> Note that the following will work:
>
> author= {Forero G., Luis A. and Vel{\'a}squez J., Jorge A.},
>
> Thanks
> Jürgen
> --
> Thanks, Jürgen! I hope you can fix this... my BibTeX file contains
> hundreds, if not thousands of references, and it would be a horrible job to
> change the grouping... (changing AND to and is easy, of course).
>
> -B
>


Re: Compilation error with lyx 2.2.2 (and not in 2.2.1)

2016-10-27 Thread Paul A. Rubin

On 10/27/2016 12:10 PM, Mario D wrote:

Hi all,

I have a file on which I am currently working. It compiled fine under 
lyx 2.2.1.
Today I upgraded to lyx 2.2.2 and compiling the very same file results 
in an error which I previously didn't experience.

The error is as follows:

-
Undefined control sequence

Let $\sigma\left(f\right)\coloneqq

f\left(x_{\sigma\left(1\right)}...

The control sequence at the end of the top line

of your error message was never \def'ed. If you have

misspelled it (e.g., `\hobx'), type `I' and the correct

spelling (e.g., `I\hbox'). Otherwise just continue,

and I'll forget about whatever was undefined.

--


In other words, the control sequence \coloneqq which was previously 
known to lyx, is not known any longer.



What is happening?


TIA


I just type \coloneqq in a math inset in LyX 2.2.2 and LyX recognized it 
(but pdflatex bombed on it with the same error you saw). So I went to 
Document > Settings > Math Options and changed "mathtools" from  "Load 
automatically" to "Load always", and the document compiled. Maybe LyX 
lost the ability to recognized that \coloneqq requires mathtools (or one 
of a few other packages)?


Paul




Compilation error with lyx 2.2.2 (and not in 2.2.1)

2016-10-27 Thread Mario D
Hi all,

I have a file on which I am currently working. It compiled fine under lyx
2.2.1.
Today I upgraded to lyx 2.2.2 and compiling the very same file results in
an error which I previously didn't experience.
The error is as follows:

-
Undefined control sequence

Let $\sigma\left(f\right)\coloneqq

f\left(x_{\sigma\left(1\right)}...

The control sequence at the end of the top line

of your error message was never \def'ed. If you have

misspelled it (e.g., `\hobx'), type `I' and the correct

spelling (e.g., `I\hbox'). Otherwise just continue,

and I'll forget about whatever was undefined.

--


In other words, the control sequence \coloneqq which was previously known
to lyx, is not known any longer.


What is happening?


TIA


RE: Appearance of bibliography references in LyX

2016-10-27 Thread Bernt Lie

-Original Message-
From: Jürgen Spitzmüller [mailto:sp...@lyx.org] 
Sent: torsdag 27. oktober 2016 18.00
To: Bernt Lie ; lyx-users@lists.lyx.org
Subject: Re: Appearance of bibliography references in LyX

Am Donnerstag, den 27.10.2016, 15:34 + schrieb Bernt Lie:
> This happens with *all* of my references in LyX... Which may indicate 
> some weirdness of my set-up... Here is one item in the BibTeX file:
> 
> @Article{LuisA.Forero2014,
>   author    = {Luis A. {Forero G.} AND Jorge A. {Vel{\'a}squez J.}},
>   title = {{A modified Patel-Teja cubic equation of state. Part
> II: Parameters for polar substances and its mixtures}},
>   journal   = {Fluid Phase Equilibria},
>   year  = {2014},
>   volume    = {364},
>   pages = {75--87},
>   owner = {Bernt},
>   timestamp = {2016.10.25},
> }

> Thank you. I can confirm the problem. Looks like a bug in LyX's bibtex parser.

First of all, the capital "AND" is not correctly parsed (which is one bug), but 
there are other bugs concerning the last names here. The LyX parser does not 
honor grouping in {...}.

I will file a bug report.

Note that the following will work:

author= {Forero G., Luis A. and Vel{\'a}squez J., Jorge A.},

Thanks
Jürgen
--
Thanks, Jürgen! I hope you can fix this... my BibTeX file contains hundreds, if 
not thousands of references, and it would be a horrible job to change the 
grouping... (changing AND to and is easy, of course).

-B


Re: Appearance of bibliography references in LyX

2016-10-27 Thread Jürgen Spitzmüller
Am Donnerstag, den 27.10.2016, 17:59 +0200 schrieb Jürgen Spitzmüller:
> I will file a bug report.

This is now
http://www.lyx.org/trac/ticket/10465

Jürgen

signature.asc
Description: This is a digitally signed message part


Re: Appearance of bibliography references in LyX

2016-10-27 Thread Jürgen Spitzmüller
Am Donnerstag, den 27.10.2016, 15:34 + schrieb Bernt Lie:
> This happens with *all* of my references in LyX... Which may indicate
> some weirdness of my set-up... Here is one item in the BibTeX file:
> 
> @Article{LuisA.Forero2014,
>   author    = {Luis A. {Forero G.} AND Jorge A. {Vel{\'a}squez J.}},
>   title = {{A modified Patel-Teja cubic equation of state. Part
> II: Parameters for polar substances and its mixtures}},
>   journal   = {Fluid Phase Equilibria},
>   year  = {2014},
>   volume    = {364},
>   pages = {75--87},
>   owner = {Bernt},
>   timestamp = {2016.10.25},
> }

Thank you. I can confirm the problem. Looks like a bug in LyX's bibtex
parser.

First of all, the capital "AND" is not correctly parsed (which is one
bug), but there are other bugs concerning the last names here. The LyX
parser does not honor grouping in {...}.

I will file a bug report.

Note that the following will work:

author= {Forero G., Luis A. and Vel{\'a}squez J., Jorge A.},

Thanks
Jürgen

signature.asc
Description: This is a digitally signed message part


RE: Appearance of bibliography references in LyX

2016-10-27 Thread Bernt Lie


-Original Message-
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
Jürgen Spitzmüller
Sent: torsdag 27. oktober 2016 17.22
To: lyx-users@lists.lyx.org
Subject: Re: Appearance of bibliography references in LyX

Am Donnerstag, den 27.10.2016, 15:05 + schrieb Bernt Lie:
> Thanks, Wolfgang. Hm... what else could it be?

Could you send us the relevant bibtex entry?

Jürgen

>  
> -B

This happens with *all* of my references in LyX... Which may indicate some 
weirdness of my set-up... Here is one item in the BibTeX file:

@Article{LuisA.Forero2014,
  author= {Luis A. {Forero G.} AND Jorge A. {Vel{\'a}squez J.}},
  title = {{A modified Patel-Teja cubic equation of state. Part II: 
Parameters for polar substances and its mixtures}},
  journal   = {Fluid Phase Equilibria},
  year  = {2014},
  volume= {364},
  pages = {75--87},
  owner = {Bernt},
  timestamp = {2016.10.25},
}

--
Observe that in the Spanish culture, people tend to have two family names: the 
first one is taken as the first family name of the father, and the second one 
is taken as the first family name of the mother. One example (off the top of my 
head) could be Dueñas Díez: here, the father had family name Dueñas XXX, and 
the mother had family name Díez YYY. Names are alphabetized according to the 
first of their family names. Sometimes, they skip the second family name 
(Dueñas), or just keep an abbreviation of it (Dueñas D.) -- I assume that that 
is what "Forero G." and "Velasquez J." have done.


Re: Appearance of bibliography references in LyX

2016-10-27 Thread Jürgen Spitzmüller
Am Donnerstag, den 27.10.2016, 15:05 + schrieb Bernt Lie:
> Thanks, Wolfgang. Hm... what else could it be?

Could you send us the relevant bibtex entry?

Jürgen

>  
> -B

signature.asc
Description: This is a digitally signed message part


RE: Appearance of bibliography references in LyX

2016-10-27 Thread Bernt Lie
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
Wolfgang Engelmann
Sent: torsdag 27. oktober 2016 16.35
To: lyx-users@lists.lyx.org
Subject: Re: Appearance of bibliography references in LyX




On 27.10.2016 16:19, Benedict Holland wrote:
My guess is that would be the cause. Since you do not have a common (in a 
typical citation style of last_name, first and first_name last_name and 
first_name last_name), I believe it would treat "Rana A. Find AND Frank J." as 
the first name and Millero as the last name. Also, this isn't a lyx issue. You 
are probably using biber and biber processes bib files a bit differently.
~Ben

On Thu, Oct 27, 2016 at 9:43 AM, Bernt Lie 
> wrote:


From: lyx-users@lists.lyx.org 
[mailto:lyx-users@lists.lyx.org] On Behalf Of 
Wolfgang Engelmann
Sent: torsdag 27. oktober 2016 15.36
To: lyx-users@lists.lyx.org
Subject: Re: Appearance of bibliography references in LyX




On 27.10.2016 13:33, Bernt Lie wrote:

I use LyX 2.2.1 (I assume that it is safe to upgrade to 2.2.2, but I haven’t 
done it yet) under Windows 10.



I’m somewhat puzzled by the way bibliography references appear in LyX. I use 
JabRef for handling BibTeX files, to define labels to references, etc. Here is 
one example:



[cid:image001.png@01D23074.56483CC0]



(taken from LyX; “Fine1975” is my chosen label – actually, automatically 
defined by BibTeX...)



HOWEVER, in the LyX document, this reference appears as:



[cid:image002.png@01D23074.56483CC0] or [cid:image003.png@01D23074.56483CC0]



Why? Here is the full reference (from LyX):



[cid:image004.png@01D23074.56483CC0]



As seen, JabRef creates a key based on the first author, while LyX tends to 
insert the last author name in the preview.



But WHY? To me, it seems more logical to use the name appearing in the 
lable – that would make it easier to read the preview and check the 
author/reference.



OK – I *realize* that the label doesn’t necessarily have to be an author name. 
But in my experience, the *first* author is often the principal author, and 
perhaps he/she should be given credit for that in the preview... (The last 
author is often a supervisor and corresponding author, though).



What is the thinking behind this?



Thanks for clarification. Useful to know the answer, because it may influence 
my choice of label...



-B
> Could it be that your AND (Capitals) between the authors instead of and is 
> the cause? Just a thought Wolfgang

I can check this, but the bibliography list itself looks fine...

-B
> I just tried it out in Jabref. Inserting AND (instead of and) does not make a 
> difference. So the cause must be something else. Wolfgang

Thanks, Wolfgang. Hm... what else could it be?

-B


Re: Appearance of bibliography references in LyX

2016-10-27 Thread Wolfgang Engelmann



On 27.10.2016 16:19, Benedict Holland wrote:
My guess is that would be the cause. Since you do not have a common 
(in a typical citation style of last_name, first and first_name 
last_name and first_name last_name), I believe it would treat "Rana A. 
Find AND Frank J." as the first name and Millero as the last name. 
Also, this isn't a lyx issue. You are probably using biber and biber 
processes bib files a bit differently.


~Ben

On Thu, Oct 27, 2016 at 9:43 AM, Bernt Lie > wrote:


*From:*lyx-users@lists.lyx.org 
[mailto:lyx-users@lists.lyx.org ]
*On Behalf Of *Wolfgang Engelmann
*Sent:* torsdag 27. oktober 2016 15.36
*To:* lyx-users@lists.lyx.org 
*Subject:* Re: Appearance of bibliography references in LyX

On 27.10.2016 13:33, Bernt Lie wrote:

I use LyX 2.2.1 (I assume that it is safe to upgrade to 2.2.2,
but I haven’t done it yet) under Windows 10.

I’m somewhat puzzled by the way bibliography references appear
in LyX. I use JabRef for handling BibTeX files, to define
labels to references, etc. Here is one example:

(taken from LyX; “Fine1975” is my chosen label – actually,
automatically defined by BibTeX...)

HOWEVER, in the LyX document, this reference appears as:

or

Why? Here is the full reference (from LyX):

As seen, JabRef creates a key based on the first author, while
LyX tends to insert the last author name in the preview.

But WHY? To me, it seems more logical to use the name
appearing in the lable – that would make it easier to read the
preview and check the author/reference.

OK – I **realize** that the label doesn’t necessarily have to
be an author name. But in my experience, the **first** author
is often the principal author, and perhaps he/she should be
given credit for that in the preview... (The last author is
often a supervisor and corresponding author, though).

What is the thinking behind this?

Thanks for clarification. Useful to know the answer, because
it may influence my choice of label...

-B

>Could it be that your AND (Capitals) between the authors instead
of /and/ is the cause? Just a thoughtWolfgang

I can check this, but the bibliography list itself looks fine...

-B

I just tried it out in Jabref. Inserting AND (instead of and) does not 
make a difference. So the cause must be something else. Wolfgang


Re: controlling the space in itemize lists

2016-10-27 Thread Benedict Holland
In a perfect world, yes. From my understanding, the lyx integration of
beamer is quite complicated. Also, this makes a great deal of sense. The
itemized lists are under a frame object, so they are essentially treated as
a sub-object when the user hits tab, as they should be. It also clearly
denotes what lists and objects are under which frames and which objects
simply have their own window. I abuse this feature particularly when
presenting pictures, though I suppose I could create an empty frame and tab
the image over.

~Ben

On Thu, Oct 27, 2016 at 7:18 AM, UD  wrote:

> Wouldn't it be simpler (for users who are creating a slide presentation)
> to just include in the frame everything that comes after the frame title,
> unless indicated otherwise (perhaps by an explicit EndOfFrame mark?
>
> EK
>
> On 10/26/2016 07:50 PM, Paul A. Rubin wrote:
>
> On 10/26/2016 12:10 PM, UD wrote:
>
>
>
> Thanks to you all-- increasing the list depth did it (is that the most
> intuitive thing here?).
>
> It is for me. When you hit return after a frame title, you're in the frame
> environment, so text typed there will appear on the frame. As soon as you
> change to any other environment, though, you're out of the frame
> environment and need to nest under it.
>
> IIRC, before Jürgen refactored the Beamer layout you had to nest even
> ordinary text. So I guess it's a well-entrenched habit for me.
>
> Paul
>
>
>
> --
> Ehud Kaplan, Ph.D.
>
>


Re: Package {extract} into lyx

2016-10-27 Thread Riccardo
Thanks for the suggestions.
There is actually a Latex issue with the package *extract *handling align*
environment, corresponding to the error I read on the LyX console.
The solution (see the discussion
http://tex.stackexchange.com/questions/154515/why-align-environement-does-not-work-with-extract-package)
is to replace every

\begin{align*}

with

\begin{equation}\begin{aligned}

and the same for every \end{align*} statements.

My question concerning LyX, however, remains open. Since the output of
extract is a Latex file, it has to be compiled externally. Is that
possible, maybe using regular expressions, to mask the content of a LyX
file to math-only (or in general, to a chosen environment only)? For long
documents (possibly written along many months) it is a useful instrument to
filter some  undesired content into some sort of auxiliary LyX file.

In case no solution shows up, do you think it is a suitable feature to be
added to the FeaturePoll list at https://wiki.lyx.org/LyX/FeaturePoll ?

Riccardo

2016-10-26 19:00 GMT+02:00 Richard Heck :

>
> I don't know how to solve this problem---I'm top-posting since the details
> below don't matter much---but I can say how to go about solving it.
>
> Since you are comfortable with LaTeX, figure this out at the LaTeX level
> first, and ignore LyX. So, e.g,. create a simple file, based on
> article.cls, and include a variety of types of equations, e.g., align* and
> other things that seem to be causing problems. You may need to try putting
> the line that loads extract in different places. Does this work? If not,
> the problem lies in extract's treatment of those environments. If it does
> work, try shifting the document class to classic-thesis. Does that work? If
> not, then there's some incompatibility between classic-thesis and extract.
> Those are both LaTeX issues. I'd try writing the extract maintainer, or
> asking on comp.text.tex or somewhere like that.
>
> If all is well on the LaTeX side, try importing your simple LaTeX file
> into LyX. Alternatively, just try creating the same kind of file in LyX. If
> it no longer works, then export it back to LaTeX and compare the two files.
> They will be different. It may be that the line that's loading extract is
> coming at a different place.
>
> Richard
>
>
>
> On 10/26/2016 11:42 AM, Riccardo wrote:
>
> Indeed it is very useful in my opinion!
> By the way, sorry for the poor explanation. I'll try to better explain the
> problem:
>
> *In latex* with a Minimal.tex (attached) you run
> latex Minimal.tex
> and the line
> \usepackage[active,generate=filename,extract-env={align,equa
> tion}]{extract}
> generate a filename.tex (attached), attaching to it every align and
> equation environment found in Minimal.tex.
>
> In my case, however, I'm using *LyX with classicthesis template*. Being
> it based on a latex template, I thought it'd be easy to modify the preamble
> classicthesis-config.tex (in fact it worked in the past with some other
> packages). I tried to add the following lines to the  package list loaded
>
> \PassOptionsToPackage[active, \PassOptionsToPackage[active,generate=file,
> extract-env={equation,align}]{extract}
> \usepackage{extract}
>
> and I got many errors (not relevant showing them, please read the
> following).
>
> Then, I tried adding to the Latex preamble
>
> \usepackage[active,generate=file,extract-env={equation,align}]{extract}
>
>
> via the Document->Setting->LatexPreamble dialog, with a little more luck.
> At first, I got many identical errors concerning the package extract
> handling of unnumbered equations environment (please refer to the package
> documentation):
>
> ! LaTeX Error: \begin{XTRalign*} on input line 1 ended by \end{XTRalign}.
>
>
> See the LaTeX manual or LaTeX Companion for explanation.
>
> Type H  for immediate help.
>
> ...
>
> l.4 \end{XTRalign*}
>
> Your command was ignored.
>
> Type I   to replace it with another command,
>
> or  to continue without it.
>
> Removing every {align*} and {eqnarray*} environment, leaving numbered
> equations only, a proper "file.tex" is created in the temporary log folder,
> with every numbered formula attached.So now my questions are:
>
> 1. Has anyone encountered the same problem? Do you now any fix to the
> align* issue?
> 2. Do you know any alternative, possibly with a Lyx file output instead of
> a latex one? Formatting and tipography issue are not relevant for me, since
> this would be just an auxiliary file for me to check while writing.
>
> Thanks in advance
> Riccardo
>
> 2016-10-26 15:32 GMT+02:00 Scott Kostyshak :
>
>> On Wed, Oct 26, 2016 at 02:31:03PM +0200, Riccardo wrote:
>> > Hello,
>>
>> Hi Riccardo,
>>
>> > do anybody have ever used the package extract in LyX (possibly in
>> > combination with classicthesis)?
>>
>> I have not used it, but it looks interesting and useful!
>>
>> > I'm writing my thesis and I'd like to
>> > check the consistency of the notation throughout it, focusing on 

Re: Appearance of bibliography references in LyX

2016-10-27 Thread Benedict Holland
My guess is that would be the cause. Since you do not have a common (in a
typical citation style of last_name, first and first_name last_name and
first_name last_name), I believe it would treat "Rana A. Find AND Frank J."
as the first name and Millero as the last name. Also, this isn't a lyx
issue. You are probably using biber and biber processes bib files a bit
differently.

~Ben

On Thu, Oct 27, 2016 at 9:43 AM, Bernt Lie  wrote:

>
>
>
>
> *From:* lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] *On
> Behalf Of *Wolfgang Engelmann
> *Sent:* torsdag 27. oktober 2016 15.36
> *To:* lyx-users@lists.lyx.org
> *Subject:* Re: Appearance of bibliography references in LyX
>
>
>
>
>
>
>
> On 27.10.2016 13:33, Bernt Lie wrote:
>
> I use LyX 2.2.1 (I assume that it is safe to upgrade to 2.2.2, but I haven’t 
> done it yet) under Windows 10.
>
>
>
> I’m somewhat puzzled by the way bibliography references appear in LyX. I use 
> JabRef for handling BibTeX files, to define labels to references, etc. Here 
> is one example:
>
>
>
>
>
> (taken from LyX; “Fine1975” is my chosen label – actually, automatically 
> defined by BibTeX...)
>
>
>
> HOWEVER, in the LyX document, this reference appears as:
>
>
>
>  or
>
>
>
> Why? Here is the full reference (from LyX):
>
>
>
>
>
> As seen, JabRef creates a key based on the first author, while LyX tends to 
> insert the last author name in the preview.
>
>
>
> But WHY? To me, it seems more logical to use the name appearing in the 
> lable – that would make it easier to read the preview and check the 
> author/reference.
>
>
>
> OK – I **realize** that the label doesn’t necessarily have to be an author 
> name. But in my experience, the **first** author is often the principal 
> author, and perhaps he/she should be given credit for that in the preview... 
> (The last author is often a supervisor and corresponding author, though).
>
>
>
> What is the thinking behind this?
>
>
>
> Thanks for clarification. Useful to know the answer, because it may influence 
> my choice of label...
>
>
>
> -B
>
> > Could it be that your AND (Capitals) between the authors instead of
> *and* is the cause? Just a thought Wolfgang
>
>
>
> I can check this, but the bibliography list itself looks fine...
>
>
>
> -B
>


RE: Appearance of bibliography references in LyX

2016-10-27 Thread Bernt Lie


From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
Wolfgang Engelmann
Sent: torsdag 27. oktober 2016 15.36
To: lyx-users@lists.lyx.org
Subject: Re: Appearance of bibliography references in LyX




On 27.10.2016 13:33, Bernt Lie wrote:

I use LyX 2.2.1 (I assume that it is safe to upgrade to 2.2.2, but I haven't 
done it yet) under Windows 10.



I'm somewhat puzzled by the way bibliography references appear in LyX. I use 
JabRef for handling BibTeX files, to define labels to references, etc. Here is 
one example:



[cid:image001.png@01D23068.D6730580]



(taken from LyX; "Fine1975" is my chosen label - actually, automatically 
defined by BibTeX...)



HOWEVER, in the LyX document, this reference appears as:



[cid:image002.png@01D23068.D6730580] or [cid:image003.png@01D23068.D6730580]



Why? Here is the full reference (from LyX):



[cid:image004.png@01D23068.D6730580]



As seen, JabRef creates a key based on the first author, while LyX tends to 
insert the last author name in the preview.



But WHY? To me, it seems more logical to use the name appearing in the 
lable - that would make it easier to read the preview and check the 
author/reference.



OK - I *realize* that the label doesn't necessarily have to be an author name. 
But in my experience, the *first* author is often the principal author, and 
perhaps he/she should be given credit for that in the preview... (The last 
author is often a supervisor and corresponding author, though).



What is the thinking behind this?



Thanks for clarification. Useful to know the answer, because it may influence 
my choice of label...



-B
> Could it be that your AND (Capitals) between the authors instead of and is 
> the cause? Just a thought Wolfgang

I can check this, but the bibliography list itself looks fine...

-B


Re: Appearance of bibliography references in LyX

2016-10-27 Thread Wolfgang Engelmann



On 27.10.2016 13:33, Bernt Lie wrote:
I use LyX 2.2.1 (I assume that it is safe to upgrade to 2.2.2, but I 
haven’t done it yet) under Windows 10.
I’m somewhat puzzled by the way bibliography references appear in LyX. 
I use JabRef for handling BibTeX files, to define labels to 
references, etc. Here is one example:
(taken from LyX; “Fine1975” is my chosen label – actually, 
automatically defined by BibTeX...)

HOWEVER, in the LyX document, this reference appears as:
or
Why? Here is the full reference (from LyX):
As seen, JabRef creates a key based on the first author, while LyX 
tends to insert the last author name in the preview.
But WHY? To me, it seems more logical to use the name appearing in 
the lable – that would make it easier to read the preview and check 
the author/reference.
OK – I **realize** that the label doesn’t necessarily have to be an 
author name. But in my experience, the **first** author is often the 
principal author, and perhaps he/she should be given credit for that 
in the preview... (The last author is often a supervisor and 
corresponding author, though).

What is the thinking behind this?
Thanks for clarification. Useful to know the answer, because it may 
influence my choice of label...

-B
Could it be that your AND (Capitals) between the authors instead of 
/and/ is the cause? Just a thought Wolfgang


Re: Legal document formatting [UPDATE]

2016-10-27 Thread Rich Shepard

On Thu, 27 Oct 2016, John Kane wrote:


Try
\ohead{{Page} \thepage { of} \pageref{LastPage}}


John,

  Unfortunately, it makes no difference. Looks logical, though.

Thanks,

Rich


Re: Legal document formatting [UPDATE]

2016-10-27 Thread Dr Eberhard Lisse
That actually was not minimal because the PDF was missing, but, please
find enclosed.


\pageref{lastpage} is not the same as \pageref{LastPage} :)))-O


I have also taken the liberty of (re)moving the change to "Executive
Summary" into the preamble, clicked off the default date on the first
page (and removed the (empty) \date{} from the preamble and replaced
the ERT of the vertical space with LyX formatting :-)-O

Then, I suggest, strongly, you start looking at at Markus Kohms's
titlepage package


http://www.komascript.de/node/1213
http://www.komascript.de/node/1214

and

http://www.komascript.de/node/1219

of which I personally like Markus-2 most.

It's in German though :-)-O but Markus is very helpful :-)-O


el


On 2016-10-26 17:49, Rich Shepard wrote:
> On Wed, 26 Oct 2016, Dr Eberhard Lisse wrote:
> 
>> Post a minimal working example.
> 
> el,
> 
>   Attached.
> 
> Rich



expert-report-template.lyx
Description: application/lyx


Appearance of bibliography references in LyX

2016-10-27 Thread Bernt Lie
I use LyX 2.2.1 (I assume that it is safe to upgrade to 2.2.2, but I haven't 
done it yet) under Windows 10.



I'm somewhat puzzled by the way bibliography references appear in LyX. I use 
JabRef for handling BibTeX files, to define labels to references, etc. Here is 
one example:



[cid:image001.png@01D23055.D66803A0]



(taken from LyX; "Fine1975" is my chosen label - actually, automatically 
defined by BibTeX...)



HOWEVER, in the LyX document, this reference appears as:



[cid:image002.png@01D23055.D66803A0] or [cid:image003.png@01D23055.D66803A0]



Why? Here is the full reference (from LyX):



[cid:image004.png@01D23056.A4C0DFB0]



As seen, JabRef creates a key based on the first author, while LyX tends to 
insert the last author name in the preview.



But WHY? To me, it seems more logical to use the name appearing in the 
lable - that would make it easier to read the preview and check the 
author/reference.



OK - I *realize* that the label doesn't necessarily have to be an author name. 
But in my experience, the *first* author is often the principal author, and 
perhaps he/she should be given credit for that in the preview... (The last 
author is often a supervisor and corresponding author, though).



What is the thinking behind this?



Thanks for clarification. Useful to know the answer, because it may influence 
my choice of label...



-B


Re: controlling the space in itemize lists

2016-10-27 Thread UD

  
  
Wouldn't it be simpler (for users who are creating a slide
presentation) to just include in the frame everything that comes
after the frame title, unless indicated otherwise (perhaps by an
explicit EndOfFrame mark?

EK 

On 10/26/2016 07:50 PM, Paul A. Rubin
  wrote:


  
  On 10/26/2016 12:10 PM, UD wrote:
  
  




Thanks to you all-- increasing the list depth did it (is that
the most intuitive thing here?).  
  
  It is for me. When you hit return after a frame title, you're in
  the frame environment, so text typed there will appear on the
  frame. As soon as you change to any other environment, though,
  you're out of the frame environment and need to nest under it.
  
  IIRC, before Jürgen refactored the Beamer layout you had to nest
  even ordinary text. So I guess it's a well-entrenched habit for
  me.
  
  Paul
  
  


-- 
Ehud Kaplan, Ph.D.

  



Re: Legal document formatting [UPDATE]

2016-10-27 Thread John Kane
Replying to list.

Try
\ohead{{Page} \thepage { of} \pageref{LastPage}}

On 26 October 2016 at 11:49, Rich Shepard  wrote:

> On Wed, 26 Oct 2016, Dr Eberhard Lisse wrote:
>
> Post a minimal working example.
>>
>
> el,
>
>   Attached.
>
> Rich




-- 
John Kane
Kingston ON Canada