Re: Remove the automatically added amssymb

2013-05-21 Thread dianzi.ben
Thanks a lot to both of you. I tested both of the  solutions and they all works 
well, at least for me. So I’ll make a summary here so you can help me to post 
this into the mail archive to help others


The  provides a polished fonts for many magazines, although it’s not 
free. However, it may conflict with , which is automatically called by 
LyX if needed. You may get the error “LaTeX Error: Command \Bbbk already 
defined.” Here is the solution to this problem:

(Recommended) add the option when you call the  as: 
\usepackage[noamssymbols]{mtpro2}.
If you get other problems due to the conflict between the two, you can fool LyX 
not to call the amssymb anymore by add following in LyX at >document settings > 
local layout:
 Format 35
 Provides amssymb 1
(Small Trick) Repalce the amssymb.sty in your local file with an empty text 
file. When you submit you tex file, remove the command about amssymb.


Thanks a lot and best wishes.


Xin GUO




发自 Windows 邮件



发件人: Uwe Stöhr
发送时间: ‎2013‎年‎5‎月‎21‎日 ‎星期二 ‎17‎:‎49
收件人: Julien Rioux
抄送: LyX Users; dianzi@gmail.com

Am 21.05.2013 21:39, schrieb Julien Rioux:

> As Paul Rubin commented (if you did not see his reply, concider subscribing 
> to the list)

I read the list via Gmane.

> there is
> indeed a way to suppress amssymb. You can use the module that he provided or 
> directly put the
> following in document settings > local layout:
 >
> Format 35
> Provides amssymb 1

I am not sure this is safe for every case. I think using mtpro2's native 
solution cannot be wrong. 
Moreover having it in the Wiki does not harm.

In the upcoming LyX 2.1 you can uncheck amssymb but 2.1 is not released yet.

regards Uwe

Re: Example of my Footnotes not numbering

2013-05-21 Thread Uwe Stöhr

Am 22.05.2013 01:20, schrieb Gordon Watson:


4. it so far looks great -- except I'm thinking it may be best to change your 
lovely pink hyperlinks to blue!


No problem, see the UserGuide, sec 6.9 "PDF properties" -- just add "linkcolor=blue" to the 
additional options field in the document settings under PDF properties.


regards Uwe


Re: Example of my Footnotes not numbering

2013-05-21 Thread Gordon Watson
Thanks Uwe; here's what I did:

1. removed the text from your example.

2. pasted my 10-page essay  -- from that old cobbled-together preamble -- into 
that consequent template.

3. will now spend the day crawling over the output to ensure all is OK.

4. it so far looks great -- except I'm thinking it may be best to change your 
lovely pink hyperlinks to blue!

5. If you ever have other ideas for improvements, I'll be happy to learn of 
them, put them under the bonnet, drive them.

6. Think of me more as LyX's top F1 driver -- not just another mechanic. :)

Cheers; Gordon

On 22/05/2013, at 8:54 AM, Uwe Stöhr wrote:

> Am 22.05.2013 00:41, schrieb Gordon Watson:
> 
>> My problem will be this: How do I track the consequential changes in the 
>> whole document experience after "line by line" changes?
> 
> Just follow what I wrote (in my post with the fixed example file) item by 
> item and remove the stuff from the preamble line by line until you get what 
> you want (look in the PDF output after every change).
> 
> For the next time don't use preamble code you don't understand and need. This 
> is very dangerous! LyX tries to hide as much as LaTeX troubles from you and 
> the preamble is only for expert stuff.
> 
> regards Uwe



Re: Example of my Footnotes not numbering

2013-05-21 Thread Uwe Stöhr

Am 22.05.2013 00:41, schrieb Gordon Watson:


My problem will be this: How do I track the consequential changes in the whole document 
experience after "line by line" changes?


Just follow what I wrote (in my post with the fixed example file) item by item and remove the stuff 
from the preamble line by line until you get what you want (look in the PDF output after every change).


For the next time don't use preamble code you don't understand and need. This is very dangerous! LyX 
tries to hide as much as LaTeX troubles from you and the preamble is only for expert stuff.


regards Uwe


Re: Example of my Footnotes not numbering - your example

2013-05-21 Thread Gordon Watson
UWE and Scott!!

Thanks! It's early days but I've just pasted my 10-page essay into Uwe's 
template -- and + fear -- it looks perfect.

I'll get back if it's not OK, but it seems to me that others on my combo -- LyX 
version is 2.0.5.1; Mac OSX 10.7.5 -- might find your solution beautiful too.

Thank you both, again; Gordon

On 22/05/2013, at 8:39 AM, Uwe Stöhr wrote:

> Am 22.05.2013 00:05, schrieb Gordon Watson:
> 
> > Unlike the LyX Tutorial, my footnotes are not numbering.
> 
> You use many preamble code. Do you know what this does? If not, please remove 
> anything you don't understand. This will only make troubles.
> - For example you don't need to use \makeatletter in the preamble - LyX does 
> this for you.
> - The same is with textcomp - LyX will load this package if necessary.
> - instead of \date{} use the option "Suporess default date on front page" in 
> the document settings under document class.
> - instead of \pagestyle{fancy} use the document setting under Page Layout. In 
> your file you already set the style to "fancy".
> - instead of ae, select these as font in the document settings under Fonts. 
> But better use another font like LaTin Modern, because ae are virtual fonts 
> and you might have problems with it when searching in the PDF you created out 
> of your LyX file. (More info see the LyX userguide)
> - the package soul and \underbar is also handled by LyX.
> 
> After than cleanup you get your footnote numbered. Attached is your fixed 
> file.
> 
> - In your file you don't need to use TeX code for \href, just use the menu 
> Insert->Hyperlink or the toolbar button with the world as icon.
> 
> regards Uwe
> 



Re: Example of my Footnotes not numbering

2013-05-21 Thread Scott Kostyshak
On Tue, May 21, 2013 at 6:41 PM, Gordon Watson  wrote:
> My LyX version is 2.0.5.1; my Mac OSX 10.7.5. I had many problems getting LyX 
> to work -- "sensibly" -- for me; and am very nervous with fiddling with the 
> hit-and-miss additives that now have it working quite well.

That's understandable. Hopefully things work well in the future.

> My problem will be this: How do I track the consequential changes in the 
> whole document experience after "line by line" changes?

Whenever you insert things into the preamble, there's no knowing what
will happen.

> I will experiment when time and fear permit!

Sounds good. Post back if you have a solution.

> Question: Is there (maybe) a LyX package for my combination: LyX version is 
> 2.0.5.1; Mac OSX 10.7.5.

I'm not sure what you're asking. I know nothing about Mac.

Best,

Scott


Re: Example of my Footnotes not numbering

2013-05-21 Thread Gordon Watson
My LyX version is 2.0.5.1; my Mac OSX 10.7.5. I had many problems getting LyX 
to work -- "sensibly" -- for me; and am very nervous with fiddling with the 
hit-and-miss additives that now have it working quite well.

My problem will be this: How do I track the consequential changes in the whole 
document experience after "line by line" changes?

I will experiment when time and fear permit!

Question: Is there (maybe) a LyX package for my combination: LyX version is 
2.0.5.1; Mac OSX 10.7.5.

Thanks; Gordon

On 22/05/2013, at 8:29 AM, Scott Kostyshak wrote:

> On Tue, May 21, 2013 at 6:21 PM, Gordon Watson  wrote:
>> My first footnote from Author-footnote comes with an asterisk. The remainder
>> are not numbered.
>> 
>> Do I need to change "footnote style" somewhere? Example attached.
>> 
> 
> You have a lot of stuff in your example. If you delete everything from
> there, footnote numbering is restored. To figure out which part of the
> preamble changes the behavior experiment by deleting one line at a
> time.
> 
> Best,
> 
> Scott



Re: using LyX to write AGU journal articles

2013-05-21 Thread Uwe Stöhr

Am 22.05.2013 00:34, schrieb Kristoffer Walker:


Thanks, but I've moved to a different Latex program already.


It is never too late to give LyX a second try.

regards Uwe


Re: Example of my Footnotes not numbering - your example

2013-05-21 Thread Uwe Stöhr

Am 22.05.2013 00:05, schrieb Gordon Watson:

> Unlike the LyX Tutorial, my footnotes are not numbering.

You use many preamble code. Do you know what this does? If not, please remove anything you don't 
understand. This will only make troubles.

- For example you don't need to use \makeatletter in the preamble - LyX does 
this for you.
- The same is with textcomp - LyX will load this package if necessary.
- instead of \date{} use the option "Suporess default date on front page" in the document settings 
under document class.
- instead of \pagestyle{fancy} use the document setting under Page Layout. In your file you already 
set the style to "fancy".
- instead of ae, select these as font in the document settings under Fonts. But better use another 
font like LaTin Modern, because ae are virtual fonts and you might have problems with it when 
searching in the PDF you created out of your LyX file. (More info see the LyX userguide)

- the package soul and \underbar is also handled by LyX.

After than cleanup you get your footnote numbered. Attached is your fixed file.

- In your file you don't need to use TeX code for \href, just use the menu Insert->Hyperlink or the 
toolbar button with the world as icon.


regards Uwe


Footnote-problem-fixed.lyx
Description: application/lyx


Re: using LyX to write AGU journal articles

2013-05-21 Thread Julien Rioux
On Tue, May 21, 2013 at 6:34 PM, Kristoffer Walker  wrote:

> Thanks, but I've moved to a different Latex program already.  Your
> response may have been more helpful to me six months ago.
>
> Kris
>

Sorry to hear that. All the best in your endeavours!
Cheers,
Julien


Re: using LyX to write AGU journal articles

2013-05-21 Thread Kristoffer Walker
Thanks, but I've moved to a different Latex program already.  Your 
response may have been more helpful to me six months ago.


Kris

On 05/21/2013 03:22 PM, Uwe Stöhr wrote:

Am 21.05.2013 20:30, schrieb Julien Rioux:

On 10/07/2012 7:33 PM, Kristoffer Walker wrote:

Folks,

I am trying to write an AGU journal article using the AGU document 
class in LyX, a front-end to
MacTex.  I have been able to generate a good looking manuscript with 
LyX, with one important
caveat: the compiled manuscript fails to include the Abstract.  I 
have determined the problem is
that the AGU document class expects the following missing statement 
just after the abstract

definition:

/begin{article}

Similarly, a /end{article} is needed at the end of the document, 
just before the /end{document}.


I've just opened http://www.lyx.org/trac/ticket/8689 for this issue.


I cannot reproduce the problem. When you open the file "agutex.lyx" 
that is in LyX#s templates folder you can see that you can see that 
/begin{article} /end{article} is there where it should be.


regards Uwe

.





Re: Example of my Footnotes not numbering

2013-05-21 Thread Scott Kostyshak
On Tue, May 21, 2013 at 6:21 PM, Gordon Watson  wrote:
> My first footnote from Author-footnote comes with an asterisk. The remainder
> are not numbered.
>
> Do I need to change "footnote style" somewhere? Example attached.
>

You have a lot of stuff in your example. If you delete everything from
there, footnote numbering is restored. To figure out which part of the
preamble changes the behavior experiment by deleting one line at a
time.

Best,

Scott


Re: using LyX to write AGU journal articles

2013-05-21 Thread Uwe Stöhr

Am 21.05.2013 20:30, schrieb Julien Rioux:

On 10/07/2012 7:33 PM, Kristoffer Walker wrote:

Folks,

I am trying to write an AGU journal article using the AGU document class in 
LyX, a front-end to
MacTex.  I have been able to generate a good looking manuscript with LyX, with 
one important
caveat: the compiled manuscript fails to include the Abstract.  I have 
determined the problem is
that the AGU document class expects the following missing statement just after 
the abstract
definition:

/begin{article}

Similarly, a /end{article} is needed at the end of the document, just before 
the /end{document}.


I've just opened http://www.lyx.org/trac/ticket/8689 for this issue.


I cannot reproduce the problem. When you open the file "agutex.lyx" that is in LyX#s templates 
folder you can see that you can see that /begin{article} /end{article} is there where it should be.


regards Uwe



Re: Footnotes not numbering

2013-05-21 Thread Scott Kostyshak
Hi Gordon,

This is a question for lyx-users list, not lyx-docs. I'm CC'ing
lyx-users. For questions like this, it's always helpful if you send a
LyX minimal example: http://wiki.lyx.org/FAQ/MinimalExample.

Best,

Scott

On Tue, May 21, 2013 at 6:05 PM, Gordon Watson  wrote:
> Unlike the LyX Tutorial, my footnotes are not numbering.
>
> My first footnote from Author-footnote comes with an asterisk. The remainder 
> are not numbered.
>
> Do I need to change "footnote style" somewhere?
>
> Thanks; Gordon


Re: conflict between LyX and Gimp for the use of python

2013-05-21 Thread Uwe Stöhr

On 11/05/2012 10:50 AM, Alex Vergara Gil wrote:


I have a system with windows 7 which have previously installed python
2.6 for the use of GIMP, this sofware do use python for a lot of things
so I cannot remove it from the system. I want to install LyX in this
system but when I do that all goes wrong because all the python scripts
refers to the python 2.6 already installed instead of the correct python
inside LyX


This should be fixed since a while. Please test it out by reinstalling LyX 
using the latest version.
Reopen bug
http://www.lyx.org/trac/ticket/8691
if you still have problems.

regards Uwe



Re: Remove the automatically added amssymb

2013-05-21 Thread Uwe Stöhr

Am 21.05.2013 21:39, schrieb Julien Rioux:


As Paul Rubin commented (if you did not see his reply, concider subscribing to 
the list)


I read the list via Gmane.


there is
indeed a way to suppress amssymb. You can use the module that he provided or 
directly put the
following in document settings > local layout:

>

Format 35
Provides amssymb 1


I am not sure this is safe for every case. I think using mtpro2's native solution cannot be wrong. 
Moreover having it in the Wiki does not harm.


In the upcoming LyX 2.1 you can uncheck amssymb but 2.1 is not released yet.

regards Uwe


Re: Keyboard shortcut preferences file location

2013-05-21 Thread Paul A . Rubin
Was the ellipsis the path to the LyX installation directory?
If so, check in your user directory. (I think the path to it 
appears in Help > About).

Paul



Re: Remove the automatically added amssymb

2013-05-21 Thread Julien Rioux

On 20/05/2013 7:54 PM, Uwe Stöhr wrote:

Am 20.05.2013 03:33, schrieb dianzi@gmail.com:


Removing the amssymb is the official solution to the conflict problem
between them. You can see it on the web of mtpro2.


I cannot test this because mtpro2 is not part of MiKTeX and TeXLive
because of its license. Seems it is not free.

However, it is a bug that a font package cannot handle the amsmath
packages. amsmath is the de-facto standard for years in the LaTeX world
and that is the first time I heard they cannot be handled. Please report
this as bug to the mtpro2 developers to get this fixed.

As amsmath is standard LyX does not offer a way to remove the amssymb
package. Maybe you can do it via the document preamble that is placed
after the call of amssymb.



As Paul Rubin commented (if you did not see his reply, concider 
subscribing to the list) there is indeed a way to suppress amssymb. You 
can use the module that he provided or directly put the following in 
document settings > local layout:


Format 35
Provides amssymb 1

But then it is up to you to make sure any needed macro is defined.

Cheers,
Julien


Re: Remove the automatically added amssymb

2013-05-21 Thread Julien Rioux

On 20/05/2013 7:54 PM, Uwe Stöhr wrote:

Am 20.05.2013 03:33, schrieb dianzi@gmail.com:


Removing the amssymb is the official solution to the conflict problem
between them. You can see it on the web of mtpro2.


I cannot test this because mtpro2 is not part of MiKTeX and TeXLive
because of its license. Seems it is not free.

However, it is a bug that a font package cannot handle the amsmath
packages. amsmath is the de-facto standard for years in the LaTeX world
and that is the first time I heard they cannot be handled. Please report
this as bug to the mtpro2 developers to get this fixed.

As amsmath is standard LyX does not offer a way to remove the amssymb
package. Maybe you can do it via the document preamble that is placed
after the call of amssymb.



As Paul Rubin commented (if you did not see his reply, concider 
subscribing to the list) there is indeed a way to suppress amssymb. You 
can use the module that he provided or directly put the following in 
document settings > local layout:


Format 35
Provides amssymb 1

But then it is up to you to make sure any needed macro is defined.

Cheers,
Julien



Re: Remove the automatically added amssymb

2013-05-21 Thread Uwe Stöhr

Am 21.05.2013 20:25, schrieb xin guo:


All right. Anyway, I have already finished my paper this time. However, I
am sad, as a lyx fan, that there is a package works in Latex but fails in
LyX. Actually, mtpro2 has been the official font of many IEEE magazines.


Don't give up that quickly. Please help to improve the situation as others will run into the same 
situation as you.


I googled a bit and found that for example the beamer document class solved 
this by providing an option:
https://bitbucket.org/rivanvx/beamer/commits/24853e6b98cf

I googled further and the mtpro2 manual seems to state a solution in sec. 2.15:

"The definitions of the AMS symbols consume a huge amount of TEX re-
sources, so you can disable them through the package option noamssymbols."

Can you please try this out by adding

noamssymbols

to the document class options field in the document settings of your document? 
Does it then work?

If yes, can you please add it to our Wiki page?:
http://wiki.lyx.org/Examples/IEEE

(LyX is free and lives form the fact that many users help to get it better!)


thanks for your help and patience
Uwe


Re: conflict between LyX and Gimp for the use of python

2013-05-21 Thread Julien Rioux

On 11/05/2012 10:50 AM, Alex Vergara Gil wrote:

Hello LyXers!

I have a system with windows 7 which have previously installed python
2.6 for the use of GIMP, this sofware do use python for a lot of things
so I cannot remove it from the system. I want to install LyX in this
system but when I do that all goes wrong because all the python scripts
refers to the python 2.6 already installed instead of the correct python
inside LyX. Is there a way to tell LyX that he must use the python
located inside it and not the python of the system? I cannot found
anything such a "python executable location" variable neither in LyX nor
in registry.

My problem goes further than just converters, which behaves wrong in
almost all the cases, it refers to the entire LyX system which use a lot
of python scripts and there are a lot of errors when for example
reconfiguring.

LyX 2.0.0, GIMP 2.6.11, python 2.6 in the system, windows 7... if you
need anything else to answer let me know.

Greetings
~-o--{}--o-~
Alex Vergara Gil
MSc. Física Nuclear
Laboratorio Secundario de Calibración Dosimétrica
Centro de Protección e Higiene de las Radiaciones
Calle 20 No. 4113 e/ 18A y 47 Playa
La Habana, Cuba
A.P.6195 C.P.10600
Telf: (537)6824892, (537)6821803
Fax: (537)2030165





http://www.lyx.org/trac/ticket/8691

--
Julien



Re: AMS multilne

2013-05-21 Thread Patrick Dupre
OK,

I found it

> Hello,
> 
> In lyx 2.0.5, I would like to insert a multline formula
> (as documented), but I cannot do it because under insert > math >
> all the first part of the options (until array environment) is
> not available.
> Do I have a package missing?
> I attached my configure.log file.
> 
> Thank.
> 
> ===
>  Patrick DUPRÉ                                 | | email: pdu...@gmx.com
>  Laboratoire de Physico-Chimie de l'Atmosphère | |
>  Université du Littoral-Côte d'Opale           | |
>  Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
>  189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
> ===


===
 Patrick DUPRÉ                                 | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===


Re: LyX ; look up `weird error' in the index to The TeXbook.)

2013-05-21 Thread Julien Rioux

On 21/05/2013 2:26 PM, John Kane wrote:

Julian,
Thanks for the explanation.


I've just opened http://www.lyx.org/trac/ticket/8690 for this issue.

Cheers,
Julien



Re: using LyX to write AGU journal articles

2013-05-21 Thread Julien Rioux

On 10/07/2012 7:33 PM, Kristoffer Walker wrote:

Folks,

I am trying to write an AGU journal article using the AGU document class in 
LyX, a front-end to MacTex.  I have been able to generate a good looking 
manuscript with LyX, with one important caveat: the compiled manuscript fails 
to include the Abstract.  I have determined the problem is that the AGU 
document class expects the following missing statement just after the abstract 
definition:

/begin{article}

Similarly, a /end{article} is needed at the end of the document, just before 
the /end{document}.

I can of course write in LyX and then ultimately export to *.tex in the end, 
add the lines, recompile, and submit the manuscript, but is there a better way 
to fix this?  For example, can I edit a Layout file or similar to have these 
things done automatically so that the Abstract will show up from a compilation 
within LyX?

Thank you,
Kris Walker


I've just opened http://www.lyx.org/trac/ticket/8689 for this issue.

Cheers,
Julien



Re: LyX ; look up `weird error' in the index to The TeXbook.)

2013-05-21 Thread John Kane
Julian, 

Thanks for the explanation.




 From: Julien Rioux 
To: lyx-users@lists.lyx.org 
Sent: Tuesday, May 21, 2013 1:46:54 PM
Subject: Re: LyX ; look up `weird error' in the index to The TeXbook.)
 

On 28/03/2013 1:58 PM, John Kane wrote:
> LyX 2.0.5.1 Ubuntu 12.10
>
> I am trying to import and run a LateX file in LyX. The problem arises
> when I have a figure with subfigures.  A single figure processes with no
> problem.
>
> The file is fine in LaTeX but chokes in Lyx. I have seen a few
> references to the problem on the internet but I have not seen any
> solution that makes sense to me. The closest thing seems to be
> http://tex.stackexchange.com/questions/19946/missing-number-treated-as-zero
> but since it is referring to a LaTeX problem not a LyX problem it does
> not help.
>
> The original file produces 14 pages of pdf output with 12 figures both
> single and multiple layouts with no problems and so I thought I'd see
> how well it imports into LyX
>
> I have attached a stripped-down .tex file and two png files that I am
> using as a test case. I imported the .tex file into LyX using File >
> Import > Latex(plain)...
>
> The error message is :
> Missing number, treated as zero.
> Illegal unit of measure (pt inserted).
> Missing number, treated as zero.
> Illegal unit of measure (pt inserted).
> Missing number, treated as zero.
> Illegal unit of measure (pt inserted).
> Missing number, treated as zero.
> Illegal unit of measure (pt inserted).
> Missing number, treated as zero.
> Missing number, treated as zero.
> Illegal unit of measure (pt inserted).
>
> Description:
> \centering \begin{subfigure}{[}
> b{]}{0.5\textwidth} \centering
> A number should have been here; I inserted `0'.
> (If you can't figure out why I needed to see a number,
> look up `weird error' in the index to The TeXbook.)
>
> When I look at the LaTeX Preamble in LyX I get:
> \usepackage[hang,flushmargin]{footmisc}\usepackage[english]{babel}
> \usepackage[font={small,it}]{caption}\usepackage{subcaption}\author{John
> the Toucanite}
> \title{The Scholar}
>
> My LaTeX preamble is
> \documentclass[12pt]{article}
> \usepackage[margin = 4.0 cm]{geometry}
> \usepackage[hang,flushmargin]{footmisc}
> \usepackage[utf8]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage[english]{babel}
> \usepackage{graphicx}
> \usepackage[font={small,it}]{caption}
> \usepackage{subcaption}
> \author{John the Toucanite}
> \title{The Scholar}
> \date{}
>
> I tried pasting the LaTeX preamble into LyX and removed
> \documentclass[12pt]{article}
> \usepackage[margin = 4.0 cm]{geometry}
> since they were giving me conflicts.
>
> I still get the same error.
>
>
>
>
>

Indeed, \begin{subfigure}[h]{0.5\textwidth} isn't parsed correctly by 
tex2lyx: It is put into ERT except that [h] ends up outside of ERT. On 
LaTeX output, LyX tries to protect the square brackets by outputting 
{[}h{]}, but this is incorrect LaTeX.

Just checked and this bug is also in the development version LyX 2.1

-- 
Julien

Re: Tutorial - missing sentence about the Letter environment

2013-05-21 Thread Uwe Stöhr

Am 21.05.2013 02:01, schrieb Julien Rioux:

On 08/04/2013 2:06 PM, ARNOLD STEPHANE wrote:


I think theTutorial misses a sentence in the 2.2.3 section.

I think it should say that pressing Control-Enter in an adress(in a
Letter document) can perform a linebreak. Somehow it should tell it, I
think.


The Tutorial already states that Ctrl+Return creates a forced newline (sec. 2.2.3 ans 2.2.2). 
However, the tutorial is a tutorial and can therefore not cover all possible environments. As long 
as you have once stepped through the tutorial please look at the UserGuide for more information (or 
the EmbeddedObjects and Math manual to get almost every detail).


regards Uwe


Re: Arabic not showing in right direction

2013-05-21 Thread Uwe Stöhr

Am 21.05.2013 15:02, schrieb Muhammed F. Bayraktar:


Now everything is working, but I really would like to have different fonts... 
Isn't it possible to
use two different fonts in one document?


No. This would also be against the common typesetting rules I think. But as I 
wrote in the Wiki page:
http://wiki.lyx.org/Windows/Arabic
You can use any font that supports almost every writing system.

I played now a bit with the "FreeFont" font bundle and this is almost complete. I think it should be 
able to cover everything you need.



I don't only need Umlauts, but I also need the
transcription, and Schehrezade and Lateef dont recognize the transcription.


Yes, but as you can see in my list in the Wiki, other fonts do.

regards Uwe


Re: LyX ; look up `weird error' in the index to The TeXbook.)

2013-05-21 Thread Julien Rioux

On 28/03/2013 1:58 PM, John Kane wrote:

LyX 2.0.5.1 Ubuntu 12.10

I am trying to import and run a LateX file in LyX. The problem arises
when I have a figure with subfigures.  A single figure processes with no
problem.

The file is fine in LaTeX but chokes in Lyx. I have seen a few
references to the problem on the internet but I have not seen any
solution that makes sense to me. The closest thing seems to be
http://tex.stackexchange.com/questions/19946/missing-number-treated-as-zero
but since it is referring to a LaTeX problem not a LyX problem it does
not help.

The original file produces 14 pages of pdf output with 12 figures both
single and multiple layouts with no problems and so I thought I'd see
how well it imports into LyX

I have attached a stripped-down .tex file and two png files that I am
using as a test case. I imported the .tex file into LyX using File >
Import > Latex(plain)...

The error message is :
Missing number, treated as zero.
Illegal unit of measure (pt inserted).
Missing number, treated as zero.
Illegal unit of measure (pt inserted).
Missing number, treated as zero.
Illegal unit of measure (pt inserted).
Missing number, treated as zero.
Illegal unit of measure (pt inserted).
Missing number, treated as zero.
Missing number, treated as zero.
Illegal unit of measure (pt inserted).

Description:
\centering \begin{subfigure}{[}
b{]}{0.5\textwidth} \centering
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

When I look at the LaTeX Preamble in LyX I get:
\usepackage[hang,flushmargin]{footmisc}\usepackage[english]{babel}
\usepackage[font={small,it}]{caption}\usepackage{subcaption}\author{John
the Toucanite}
\title{The Scholar}

My LaTeX preamble is
\documentclass[12pt]{article}
\usepackage[margin = 4.0 cm]{geometry}
\usepackage[hang,flushmargin]{footmisc}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage[font={small,it}]{caption}
\usepackage{subcaption}
\author{John the Toucanite}
\title{The Scholar}
\date{}

I tried pasting the LaTeX preamble into LyX and removed
\documentclass[12pt]{article}
\usepackage[margin = 4.0 cm]{geometry}
since they were giving me conflicts.

I still get the same error.







Indeed, \begin{subfigure}[h]{0.5\textwidth} isn't parsed correctly by 
tex2lyx: It is put into ERT except that [h] ends up outside of ERT. On 
LaTeX output, LyX tries to protect the square brackets by outputting 
{[}h{]}, but this is incorrect LaTeX.


Just checked and this bug is also in the development version LyX 2.1

--
Julien



Re: disable package

2013-05-21 Thread Julien Rioux

On 21/05/2013 1:20 PM, Scott Kostyshak wrote:

On Tue, May 21, 2013 at 12:53 PM, Julien Rioux  wrote:

In document settings:
Edit the local layout to tell LyX that we are providing bm ourself:

Format 35
Provides bm true


Note that (on 2.1git) LyX gives the following warning:
LyX: Bad integer `true' [around line 2 of file
/tmp/lyx_tmpdir.rDYhXLs25464/convert_layout.ELJOAZs25464 current
token: 'true' context: '']

Changing "true" to "1" fixes this for me.
Should the layout validator in Document Settings catch this (it
currently does not)? I know it is not supposed to be too strict but
wanted to check anyway.

Scott



That's just me writing this layout snippet from memory. The correct 
documented usage is indeed "1" or "0".


Interestingly, if I replace by "false", I get the same effect as if I 
had typed "1". LyX seems to accept anything different from "0" as true, 
while the script that updates the format from 35 to X seems stricter on 
this (X being, current LyX 2.1git format).


--
Julien



Re: disable package

2013-05-21 Thread Scott Kostyshak
On Tue, May 21, 2013 at 12:53 PM, Julien Rioux  wrote:
> On 21/05/2013 11:21 AM, Patrick Dupre wrote:
>>
>> Hello,
>>
>> lyx (2.0.5) make a
>> \usepackage{bm} that I am unable to control. Why?
>>
>> I need to make a
>> \usepackage{fourier,bm}
>> and not
>> \usepackage{bm,fourier}
>>
>> How can I do it?
>>
>> Thank.
>>
>>
>> ===
>>   Patrick DUPRÉ | | email: pdu...@gmx.com
>>   Laboratoire de Physico-Chimie de l'Atmosphère | |
>>   Université du Littoral-Côte d'Opale   | |
>>   Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
>>   189A, avenue Maurice Schumann | | 59140 Dunkerque,
>> France
>>
>> ===
>>
>
> In document settings:
> Edit the local layout to tell LyX that we are providing bm ourself:
>
> Format 35
> Provides bm true

Note that (on 2.1git) LyX gives the following warning:
LyX: Bad integer `true' [around line 2 of file
/tmp/lyx_tmpdir.rDYhXLs25464/convert_layout.ELJOAZs25464 current
token: 'true' context: '']

Changing "true" to "1" fixes this for me.
Should the layout validator in Document Settings catch this (it
currently does not)? I know it is not supposed to be too strict but
wanted to check anyway.

Scott


Re: ACM SIGPLAN class and template: problem with terms & keywords

2013-05-21 Thread Julien Rioux

On 21/10/2012 2:51 AM, Gabi Kedma wrote:

Hi,
I have the following problem:
I am working with the ACM sigplan class and template.
It requires me to specify both 'General Terms' and 'Keywords'.
The template uses:
\begin_layout Terms
and
\begin_layout Keywords
However, when I convert this to PDF, both appear on the PDF as 'General
Terms'.
(It shows 'General Terms' twice, once with the terms, and once with the
keywords).
What should I do to solve this problem?
Thanks,
Gabi


This has been corrected: http://www.lyx.org/trac/ticket/8378
--
Julien



Re: Export XHTML and Branches

2013-05-21 Thread Julien Rioux

On 02/05/2013 11:10 AM, Jean-Louis GALLINARI wrote:

I receive this message :

"Signal SIGSEGV perçu"

and I'm asked to send a bug-report then Lyx crashes when I close the
window by clicking "ok"





I also did not have any problem exporting to either HTML (with htlatex) 
or LyXHTML. Which converter are you using?


--
Julien



Re: Specifying a path prefix in a LaTeX macro

2013-05-21 Thread Julien Rioux

On 09/05/2013 1:11 PM, Stephen Brooking wrote:

I've tried the same under Windows (I need this to work with LyX under
Windows), setting an environment variable to point to a path (and
reconfiguring and restarting LyX just in case), and specifying that path as
my \filepath, but I still get the same 'I can't write on file
`/testreq1.tex' error.


Just to add a bit more information, if I try this from a Windows command
prompt I get the same error.
kpsewhich tells me that TEXMFOUTPUT is set to what I think it is set to:


kpsewhich --var-value=TEXMFOUTPUT

C:\docs

! I can't write on file `C:\docs\testreq1.tex'

If I remove the path setting from my test.tex file so I basically have this:


\newwrite\tempfile
\immediate\openout\tempfile=testreq1.tex
\immediate\write\tempfile{Some text}
\immediate\closeout\tempfile

\input{C:/docs/testreq1.tex}


and set the -output-directory command line option to pdflatex:


pdflatex -output-directory C:\docs test.tex


It all works, so I know that I can write files to that directory.  (Setting
the -output-directory like this though with LyX has the downside that LyX
then can't find the output PDF file as it isn't in the temp directory that
it expects.)

Also to note, it also works if I set -output-directory to %TEXMFOUTPUT%.

So, any clues as to why this doesn't work when just relying on the
TEXMFOUTPUT variable, without setting -output-directory?

Thanks and regards,

Steve




I think you need to set openout_any accordingly. In any case, first make 
sure this works with latex from the command line, only then should you 
try to do the same from within LyX.


Cheers,
Julien



Re: disable package

2013-05-21 Thread Julien Rioux

On 21/05/2013 11:21 AM, Patrick Dupre wrote:

Hello,

lyx (2.0.5) make a
\usepackage{bm} that I am unable to control. Why?

I need to make a
\usepackage{fourier,bm}
and not
\usepackage{bm,fourier}

How can I do it?

Thank.

===
  Patrick DUPRÉ | | email: pdu...@gmx.com
  Laboratoire de Physico-Chimie de l'Atmosphère | |
  Université du Littoral-Côte d'Opale   | |
  Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
  189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===



In document settings:
Edit the local layout to tell LyX that we are providing bm ourself:

Format 35
Provides bm true

Edit the preamble to add our packages in the desired order:

\usepackage{fourier}
\usepackage{bm}

See attached :)

Cordialement,
Julien


newfile1.lyx
Description: application/lyx


Re: disable package

2013-05-21 Thread Patrick Dupre

The only soluton that I found is: never use \bm but \boldsymbol !
I would be gret if we could have more control of the header
like deactive a package !

Regards.

> 
> Hello,
> 
> lyx (2.0.5) make a
> \usepackage{bm} that I am unable to control. Why?
> 
> I need to make a 
> \usepackage{fourier,bm}
> and not 
> \usepackage{bm,fourier}
> 
> How can I do it?
> 
> Thank.
> 
> ===
>  Patrick DUPRÉ                                 | | email: pdu...@gmx.com
>  Laboratoire de Physico-Chimie de l'Atmosphère | |
>  Université du Littoral-Côte d'Opale           | |
>  Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
>  189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
> ===


===
 Patrick DUPRÉ                                 | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===


Re: APA6 vs APA. APA6 includes month in the date e.g. (1999, June)

2013-05-21 Thread John Kane
Ah yes that's probably the source.  I had forgotten the natbibapa.  Oh well 
it's not that hard to edit a bib file if needed.





 From: Julien Rioux 
To: lyx-users@lists.lyx.org 
Sent: Monday, May 20, 2013 7:44:11 PM
Subject: Re: APA6 vs APA. APA6 includes month in the date e.g. (1999, June)
 

On 25/04/2013 8:52 AM, John Kane wrote:
> Thanks Jacob.
>
> I see what you mean about the article = journal point in the apacite
> manual.  I believe that there are some rare times one wants to insert a
> month in an article date so this makes  sense.
>
> The thing is that it does not work that way in  APA with apacite. I
> don't get a month with it.  With APA6 I get the month.   Argh!
>

My guess is that the difference comes from apa.cls loading
\usepackage{apacite}

while apa6.cls loads
\usepackage[natbibapa]{apacite}

Cheers,
Julien

disable package

2013-05-21 Thread Patrick Dupre
Hello,

lyx (2.0.5) make a
\usepackage{bm} that I am unable to control. Why?

I need to make a 
\usepackage{fourier,bm}
and not 
\usepackage{bm,fourier}

How can I do it?

Thank.

===
 Patrick DUPRÉ                                 | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===


Re: Arabic not showing in right direction

2013-05-21 Thread Muhammed F. Bayraktar

Thank you very much!

Now everything is working, but I really would like to have different  
fonts... Isn't it possible to use two different fonts in one document? I  
don't only need Umlauts, but I also need the transcription, and  
Schehrezade and Lateef dont recognize the transcription.


Thanks!



Am 16.05.2013, 23:30 Uhr, schrieb Uwe Stöhr :


Am 16.05.2013 21:57, schrieb Uwe Stöhr:

2. I have to use Gentium Plus or Charis SL. When using one of those,  
or any other Font except Times
New Roman or Arial (I think these are the standard fonts...), an error  
occures. I think you can
reproduce this with switching to any font which is not standard  
windows font. I just changed the

font to VERDANA. Please have a look into it...


Maybe your fonts don't cover the Arabic script.


Yes, this is the case. I just installed Gentium Plus from here:
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=gentium_download&_sc=1

But as stated in
http://scripts.sil.org/cms/scripts/page.php?item_id=Gentium&_sc=1
Gentium Plus only contains the Greek, Latin and Cyrillic script.

Charis SL also doesn't contain Arabic:
http://scripts.sil.org/cms/scripts/page.php?item_id=CharisSIL&_sc=1

So you need to use in the document settings a font that contains the  
Arabic script. These are the fonts that do this on my Windows machine:


Andalus (roman)
Arabic Transparent  (sansserif)
Arial   (sansserif)
Courier New (typewriter)
FreeSerifKoptosMS   (roman)
Microsoft Sansserif (sansserif)
Simplified Arabic   (sansserif)
Simplified Arabic Fixed (typewriter)
Tahoma  (sansserif)
Times New Roman (roman)
Traditional Arabic  (roman)

As your document contains German, you need a font that also contains  
German umlauts, and then I can only choose one of these:


Arial   (sansserif)
Courier New (typewriter)
Tahoma  (sansserif)
Times New Roman (roman)

If you prefer a font from the SIL, have a look at
http://scripts.sil.org/cms/scripts/page.php?item_id=SILFontList&_sc=1

Lateef and Scheherazade are fonts you can use because they contain  
German Umlauts as well.


regards Uwe


Re: bibliography file question: refetching records automatically

2013-05-21 Thread Ray Rashif
On 20 April 2013 15:51, Csikos Bela  wrote:
> Hello:
>
> I have a question regarding bibliography/bibtex databases.
> Is there a program or script that can use an existing bibliography database 
> (format is not important, can be bibtex, RIS, etc.) and fetch all of its 
> records in a complete form again from Pubmed based on the journal name, 
> volume and pages fields? Possibly into a new file. I have a bibus database 
> with hundreds of records but many of them are incomplete, and don't have DOI, 
> PMID, URL fields. Fetching them again one by one would be tedious.

Mendeley Desktop can import BibTeX, and can search online databases
(possibly just Google Scholar) by title. It will repopulate every
field for which there is information, including DOI and URL if they
exist in the remote source. There is a button you can click to
initiate this search (right near the title input field), so you may
have to do this one by one.


--
GPG/PGP ID: C0711BF1