No preview - Warning: xelatex had problems compiling lyxpreviews?????.tex

2014-11-12 Thread Itai Shaked
Hello,

I'm having a problem with math previews in lyx 2.1.2 - in certain documents
(possibly all documents set to be compiled with xelatex) there is no
preview for math.

When running from terminal I get the error in the subject:

Warning: xelatex had problems compiling lyxpreviews?.tex

repeating a few times for various files. Locating those files in
/tmp/lyx_tmpdir... I can see there is a valid PDF for each, and running
xelatex manually on them works without any error.
Note also that on the same machine lyx 2.1.0 does not have the same
problem, and the same documents have previews.

What could be the problem, and how do I solve it?

Thanks


Re: No preview - Warning: xelatex had problems compiling lyxpreviews?????.tex

2014-11-12 Thread Richard Heck

On 11/12/2014 10:40 AM, Itai Shaked wrote:

Hello,

I'm having a problem with math previews in lyx 2.1.2 - in certain 
documents (possibly all documents set to be compiled with xelatex) 
there is no preview for math.


When running from terminal I get the error in the subject:

Warning: xelatex had problems compiling lyxpreviews?.tex

repeating a few times for various files. Locating those files in 
/tmp/lyx_tmpdir... I can see there is a valid PDF for each, and 
running xelatex manually on them works without any error.
Note also that on the same machine lyx 2.1.0 does not have the same 
problem, and the same documents have previews.


What could be the problem, and how do I solve it?


Hmm. Try posting this to lyx-devel. I don't think a PDF is what we want 
in this case, but I am not that familiar with this part of the code.


Richard



Fwd: Help with Lyx

2014-11-12 Thread Trisha Lawrence
Hi Scott

I've currently uninstalled Lyx from my laptop. I've noticed on the
lyx-users platform a suggestion to do that as well as downloading the
following link below

http://wiki.lyx.org/Windows/LyXWinInstaller

Should this work? Would I still need to make any changes after
downloading Lyx from the link above,

like coping the layout packages from MiKTeX to LyX?

Also I can't seem to post any questions on Lyx-users platform. I'd
really appreciate your help Scott.

Kindest Regards,
Trisha Lawrence


-- Forwarded message --
From: Scott Kostyshak skost...@lyx.org
Date: Tue, Nov 11, 2014 at 11:40 AM
Subject: Re: Help with Lyx
To: Trisha Lawrence trishalaw...@gmail.com
Cc: lyx-users@lists.lyx.org lyx-users@lists.lyx.org, LyX Documentation
Team lyx-d...@lists.lyx.org


On Tue, Nov 11, 2014 at 2:24 PM, Trisha Lawrence trishalaw...@gmail.com
wrote:
 HI

 I have recently obtained a new laptop and I am unable to obtain the
document
 classes that were available in the Lyx docment processor of my old Laptop.
 I've followed the steps included in the link below which suggested copying
 the layout types to users then reconfiguring Lyx, however it still doesn't
 seem to work.

 http://wiki.lyx.org/Layouts/Layouts#toc1

 I remember getting tremendous help from someone@ Lyx-doc upon completing
my
 thesis for my MSc. I am currently pursuing my PhD and this will help me
 immensely. Can anyone help in anyway?

Hi Trisha,

I think you meant to send this email to lyx-users@lists.lyx.org . I
will forward it to there. All future responses to this email should
not reply to lyx-d...@lists.lyx.org.

Best of luck,

Scott


Re: Fwd: Help with Lyx

2014-11-12 Thread Christopher Menzel

Trisha Lawrence wrote:

Hi Scott

I've currently uninstalled Lyx from my laptop. I've noticed on the 
lyx-users platform a suggestion to do that as well as downloading the 
following link below

http://wiki.lyx.org/Windows/LyXWinInstaller
Should this work? Would I still need to make any changes after 
downloading Lyx from the link above, like coping the layout packages 
from MiKTeX to LyX?

Trisha,

The link above takes you to an installer for a very old version (2.0.5) 
of LyX. You shouldn't use it.


In your email to me this morning you told me that LyX (well, more 
exactly, the LaTeX engine that it was calling) wasn't even finding 
article.cls, which is the most basic class file, which suggests to me 
that your problem (or, at least, one very basic problem) doesn't have 
anything to do with the problem of finding missing layouts discussed in 
the link in your original message. I think your best bet, short of a 
complete reinstall of Windows, is to reinstall the latest versions of 
MikTeX and LyX. MikTeX is found here http://miktex.org/download. You 
can download the latest version (2.1.2) of LyX for Windows by clicking 
here ftp://ftp.lyx.org/pub/lyx/bin/2.1.2/LyX-2.1.2-Installer-1.exe.


You noted that you did some sort of migration from your old laptop to 
your new one, and those are notorious (on both Macs and Windows 
machines) for screwing things up. If you have the time and the patience, 
I suspect doing a fresh install of Windows on a clean drive, followed by 
fresh installs of MikTeX and LyX would solve your problems. If that 
isn't possible, once again, give the latest versions of MikTeX and LyX a 
shot.


 Also I can't seem to post any questions on Lyx-users platform.

You seem able to now. :-)

-chris


-- Forwarded message --
From: Scott Kostyshak skost...@lyx.org mailto:skost...@lyx.org
Date: Tue, Nov 11, 2014 at 11:40 AM
Subject: Re: Help with Lyx
To: Trisha Lawrence trishalaw...@gmail.com 
mailto:trishalaw...@gmail.com
Cc: lyx-users@lists.lyx.org mailto:lyx-users@lists.lyx.org 
lyx-users@lists.lyx.org mailto:lyx-users@lists.lyx.org, LyX 
Documentation Team lyx-d...@lists.lyx.org 
mailto:lyx-d...@lists.lyx.org



On Tue, Nov 11, 2014 at 2:24 PM, Trisha Lawrence 
trishalaw...@gmail.com mailto:trishalaw...@gmail.com wrote:

 HI

 I have recently obtained a new laptop and I am unable to obtain the 
document
 classes that were available in the Lyx docment processor of my old 
Laptop.
 I've followed the steps included in the link below which suggested 
copying
 the layout types to users then reconfiguring Lyx, however it still 
doesn't

 seem to work.

 http://wiki.lyx.org/Layouts/Layouts#toc1

 I remember getting tremendous help from someone@ Lyx-doc upon 
completing my

 thesis for my MSc. I am currently pursuing my PhD and this will help me
 immensely. Can anyone help in anyway?

Hi Trisha,

I think you meant to send this email to lyx-users@lists.lyx.org 
mailto:lyx-users@lists.lyx.org . I

will forward it to there. All future responses to this email should
not reply to lyx-d...@lists.lyx.org mailto:lyx-d...@lists.lyx.org.

Best of luck,

Scott


Re: dictionary not found

2014-11-12 Thread Marcelo Acuña
hello Stephan, the problem that I have is that Lyx not recognize hunspell, and 
the hunspell path in preferences is greyed.At the present moment lyx recognize 
aspell and enchant.Aspell say that no found dictionaries, but enchant work.
The only problem is that enchant not recognize my personal dictionary.
RegardsMarcelo 

 El Miércoles, 5 de noviembre, 2014 10:31:04, Stephan Witt 
st.w...@gmx.net escribió:
   

 Am 05.11.2014 um 14:10 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 I get a partial solution.
 After several attempts by uninstalling and reinstalling all translators, 
 dictionaries and libraries and recompile lyx every time, now lyx recognize 
 enchant and aspell well, which did not have before. Aspell remain saying not 
 have dictionaries but enchant work ok.
 Now I have the problem that enchant not take my personalized dictionaries.
 I put my dictionaries in home/user but enchant deletes when I start the 
 spellchecker.
 Any idea?

Marcelo,

why don't you answer my proposal to set the path in preferences? Didn't it work?

As I've said already enchant has no good support in LyX.
I cannot help you with enchant trouble shooting.
Perhaps some other user can help you.

Stephan
 
 
 
 El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 
 Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
 Stephan:  
  Which spell checker has a spanish dictionary?
  ispell, aspell, myspell
 
 myspell is the the only usable package in your scenario. In fact it's 
 hunspell. The debian package puts the dictionaries into /usr/share/hunspell. 
 (At least the package contents here says so: 
 https://packages.debian.org/wheezy/all/myspell-es/filelist)
 
 So you may enter the mentioned path into your preferences and see if it 
 works. 
 
 Stephan
 
 
  LyX has to be compiled with hunspell support. That's enough.
 
 Yes. I installed all lib and necesary modules for enchant and hunspell, when 
 I run ./configure I get all the messages that say enchant and hunspell are 
 ready.
 
 Marcelo
 
 El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
  The problem with hunspell is that debian no have spanish dictionary for 
  hunspell.
 
 Then you have to grab them from other source.
 
 Which spell checker has a spanish dictionary?
 
  Plus I installed hunspell but is not recongized by lyx 2.1.x.
 
 LyX has to be compiled with hunspell support. That's enough.
 And you has to point it to the dictionaries if you have put them
 to a non-standard place (/usr/share/myspell is standard for LyX).
 
 Stephan
 
 
  El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
  
   On Sun, 2 Nov 2014 22:43:17 +0100
   Stephan Witt st.w...@gmx.net wrote:
   
   Can you try the Hunspell package, please?
   Enchant support in LyX 2.1 is not very good.
   
   I have exactly the same problem with hunspell. I compiled and installed 
   it,
   added en_US and es_ES dictionaries, and tested it on a couple of text
   files from the console - no problem.
   
   When I start it from LyX, I get the message Spellchecker has no
   dictionaries
  
  So, the dictionaries are not found.
  
  The hunspell backend is better prepared for this situation, though.
  You can open the message pane (in View menu) and enable debug messages
  for Files used by LyX. Then make sure you've enabled the Hunspell 
  checker in preferences. Now you can start the spell check and you'll see
  the files/directories LyX is looking for dictionaries in message pane.
  
   Strange: I configured Hunspell in LyX and did an strace. In the strace
   output I found:
   
   open(/usr/lib64/libhunspell-1.3.so.0, O_RDONLY|O_CLOEXEC) = 3
   read(3, 
   \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0P\224\0\0\0\0\0\0..., 
   832) = 832
   fstat(3, {st_mode=S_IFREG|0755, st_size=985236, ...}) = 0
   mmap(NULL, 2431520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
   0) = 0x7ff13f128000
   mprotect(0x7ff13f176000, 2093056, PROT_NONE) = 0
   mmap(0x7ff13f375000, 20480, PROT_READ|PROT_WRITE, 
   MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4d000) = 0x7ff13f375000
   close(3)                                = 0
   
   open(/usr/lib64/libaspell.so.15, O_RDONLY|O_CLOEXEC) = 3
   read(3, 
   \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\\215\2\0\0\0\0\0..., 
   832) = 832
   fstat(3, {st_mode=S_IFREG|0755, st_size=750528, ...}) = 0
   mmap(NULL, 2878072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
   0) = 0x7ff13ee68000
   mprotect(0x7ff13ef19000, 2093056, PROT_NONE) = 0
   mmap(0x7ff13f118000, 28672, PROT_READ|PROT_WRITE, 
   MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb) = 0x7ff13f118000
   mmap(0x7ff13f11f000, 31352, PROT_READ|PROT_WRITE, 
   MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff13f11f000
   close(3)               

Custom layout file: in preamble styles with custom latex commands

2014-11-12 Thread Ernesto Posse
Hi. I'm trying to define my own layout file and I ran into this situation:
I need a style whose latex command must go into the preamble (as required
by the underlying latex class), but I need to define my own command for the
style because the one provided by the base class doesn't work well with the
way styles work in the LyX UI.

The problem is that styles which have been declared as InPreamble 1 get
their code generated before the user preamble which defines the required
latex command, and therefore, when compiling, LaTeX will stop with an error
saying that the control sequence is not defined (because it is defined
later). The style in question is the following:

Style Category
InPreamble 1
LabelType Static
LabelString Category
LatexType Command
LatexName ACMCCScategory
RequiredArgs 3
Margin Dynamic
Labelsep xx
LabelFont
Family Sans
Series Bold
Shape Slanted
Size Normal
Color Blue
EndFont
Preamble
\newcommand{\ACMCCScategory}[4]{\category{#1}{#2}{#3}[4]}
EndPreamble
End

So as you see, the style uses the custom-defined command \ACMCCScategory,
but the generated code is this:

\makeatletter


%% LyX specific LaTeX commands.


\ACMCCScategory{D.2.4}{Software Engineering}{Software/Program
Verification}{Formal methods}


%% Textclass specific LaTeX commands.

\newcommand{\ACMCCScategory}[4]{\category{#1}{#2}{#3}[4]}


%% User specified LaTeX commands.

\usepackage{aadl}


\makeatother


So the problem is evident: the command is defined after it is being used.


Is there a way to tell LyX to produce the preamble commands before the in
preamble styles?




-- 
Ernesto Posse
Zeligsoft.com


Re: Custom layout file: in preamble styles with custom latex commands

2014-11-12 Thread Jürgen Spitzmüller
2014-11-12 19:18 GMT+01:00 Ernesto Posse:

 Hi. I'm trying to define my own layout file and I ran into this situation:
 I need a style whose latex command must go into the preamble (as required
 by the underlying latex class), but I need to define my own command for the
 style because the one provided by the base class doesn't work well with the
 way styles work in the LyX UI.

 The problem is that styles which have been declared as InPreamble 1 get
 their code generated before the user preamble which defines the required
 latex command, and therefore, when compiling, LaTeX will stop with an error
 saying that the control sequence is not defined (because it is defined
 later). The style in question is the following:

 Style Category
 InPreamble 1
 LabelType Static
 LabelString Category
 LatexType Command
 LatexName ACMCCScategory
 RequiredArgs 3
 Margin Dynamic
 Labelsep xx
 LabelFont
 Family Sans
 Series Bold
 Shape Slanted
 Size Normal
 Color Blue
 EndFont
 Preamble
 \newcommand{\ACMCCScategory}[4]{\category{#1}{#2}{#3}[4]}
 EndPreamble
 End

 So as you see, the style uses the custom-defined command \ACMCCScategory,
 but the generated code is this:

 \makeatletter


 %% LyX specific LaTeX commands.


 \ACMCCScategory{D.2.4}{Software Engineering}{Software/Program
 Verification}{Formal methods}


 %% Textclass specific LaTeX commands.

 \newcommand{\ACMCCScategory}[4]{\category{#1}{#2}{#3}[4]}


 %% User specified LaTeX commands.

 \usepackage{aadl}


 \makeatother


 So the problem is evident: the command is defined after it is being used.


 Is there a way to tell LyX to produce the preamble commands before the in
 preamble styles?


No, this is not yet possible.

However, if you use LyX 2.1, you do not need an own command, since the
command in question is possible with the help of the new argument syntax:

Style Category
InPreamble1
LabelTypeStatic
LabelStringCategory
LatexTypeCommand
LatexNamecategory
Argument 1
Mandatory 1
LabelStringCR number
EndArgument
Argument 2
Mandatory 1
LabelStringCategory
EndArgument
Argument 3
Mandatory 1
LabelStringSub-Category
EndArgument
Argument 4
LabelStringSubject Descriptor
EndArgument
MarginDynamic
Labelsepxx
LabelFont
FamilySans
SeriesBold
ShapeSlanted
SizeNormal
ColorBlue
EndFont
End


This also gives a much better UI, since both the Insert menu and the
argument insets tell you which argument you are actually dealing with. And
the order of insertion does not matter (in contrast to the pre 2.1 argument
insets)


HTH,
Jürgen


Re: Custom layout file: in preamble styles with custom latex commands

2014-11-12 Thread Jürgen Spitzmüller
2014-11-12 20:01 GMT+01:00 Jürgen Spitzmüller:


 However, if you use LyX 2.1, you do not need an own command, since the
 command in question is possible with the help of the new argument syntax:

 Style Category
 InPreamble1
 LabelTypeStatic
 LabelStringCategory
 LatexTypeCommand
 LatexNamecategory
 Argument 1
 Mandatory 1
 LabelStringCR number
 EndArgument
 Argument 2
 Mandatory 1
 LabelStringCategory
 EndArgument
 Argument 3
 Mandatory 1
 LabelStringSub-Category
 EndArgument
 Argument 4
 LabelStringSubject Descriptor
 EndArgument
 MarginDynamic
 Labelsepxx
 LabelFont
 FamilySans
 SeriesBold
 ShapeSlanted
 SizeNormal
 ColorBlue
 EndFont
 End



Sorry, this should be:

Style Category
InPreamble1
LabelTypeStatic
LabelStringCategory
LatexTypeCommand
LatexNamecategory
Argument 1
Mandatory 1
LabelStringCR number
EndArgument
Argument post:1
Mandatory 1
LabelStringSub-Category
EndArgument
Argument post:2
LabelStringSubject Descriptor
EndArgument
MarginDynamic
Labelsepxx
LabelFont
FamilySans
SeriesBold
ShapeSlanted
SizeNormal
ColorBlue
EndFont
End


Jürgen


Re: dictionary not found

2014-11-12 Thread Stephan Witt
 Am 12.11.2014 um 19:03 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
 hello Stephan,
  the problem that I have is that Lyx not recognize hunspell, and the hunspell 
 path in preferences is greyed.

Hi Marcelo,
the path is disabled if LyX is build without hunspell support. You said in a 
previous mail you installed the libraries - perhaps you didn't install the 
devel package for hunspell. This should result in a LyX binary with hunspell 
support. 

Stephan 

 At the present moment lyx recognize aspell and enchant.
 Aspell say that no found dictionaries, but enchant work.
 The only problem is that enchant not recognize my personal dictionary.
 
 Regards
 Marcelo
 
 
 El Miércoles, 5 de noviembre, 2014 10:31:04, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 05.11.2014 um 14:10 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
  I get a partial solution.
  After several attempts by uninstalling and reinstalling all translators, 
  dictionaries and libraries and recompile lyx every time, now lyx recognize 
  enchant and aspell well, which did not have before. Aspell remain saying 
  not have dictionaries but enchant work ok.
  Now I have the problem that enchant not take my personalized dictionaries.
  I put my dictionaries in home/user but enchant deletes when I start the 
  spellchecker.
  Any idea?
 
 Marcelo,
 
 why don't you answer my proposal to set the path in preferences? Didn't it 
 work?
 
 As I've said already enchant has no good support in LyX.
 I cannot help you with enchant trouble shooting.
 Perhaps some other user can help you.
 
 Stephan
 
 
  
  
  El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  
  Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:
  
  Stephan:  
   Which spell checker has a spanish dictionary?
   ispell, aspell, myspell
  
  myspell is the the only usable package in your scenario. In fact it's 
  hunspell. The debian package puts the dictionaries into 
  /usr/share/hunspell. (At least the package contents here says so: 
  https://packages.debian.org/wheezy/all/myspell-es/filelist)
  
  So you may enter the mentioned path into your preferences and see if it 
  works. 
  
  Stephan
  
  
   LyX has to be compiled with hunspell support. That's enough.
  
  Yes. I installed all lib and necesary modules for enchant and hunspell, 
  when I run ./configure I get all the messages that say enchant and 
  hunspell are ready.
  
  Marcelo
  
  El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:
  
   The problem with hunspell is that debian no have spanish dictionary for 
   hunspell.
  
  Then you have to grab them from other source.
  
  Which spell checker has a spanish dictionary?
  
   Plus I installed hunspell but is not recongized by lyx 2.1.x.
  
  LyX has to be compiled with hunspell support. That's enough.
  And you has to point it to the dictionaries if you have put them
  to a non-standard place (/usr/share/myspell is standard for LyX).
  
  Stephan
  
  
   El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
   escribió:
   
   
   Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
   
On Sun, 2 Nov 2014 22:43:17 +0100
Stephan Witt st.w...@gmx.net wrote:

Can you try the Hunspell package, please?
Enchant support in LyX 2.1 is not very good.

I have exactly the same problem with hunspell. I compiled and 
installed it,
added en_US and es_ES dictionaries, and tested it on a couple of text
files from the console - no problem.

When I start it from LyX, I get the message Spellchecker has no
dictionaries
   
   So, the dictionaries are not found.
   
   The hunspell backend is better prepared for this situation, though.
   You can open the message pane (in View menu) and enable debug messages
   for Files used by LyX. Then make sure you've enabled the Hunspell 
   checker in preferences. Now you can start the spell check and you'll see
   the files/directories LyX is looking for dictionaries in message pane.
   
Strange: I configured Hunspell in LyX and did an strace. In the strace
output I found:

open(/usr/lib64/libhunspell-1.3.so.0, O_RDONLY|O_CLOEXEC) = 3
read(3, 
\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0P\224\0\0\0\0\0\0..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=985236, ...}) = 0
mmap(NULL, 2431520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
0) = 0x7ff13f128000
mprotect(0x7ff13f176000, 2093056, PROT_NONE) = 0
mmap(0x7ff13f375000, 20480, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4d000) = 0x7ff13f375000
close(3)= 0

open(/usr/lib64/libaspell.so.15, O_RDONLY|O_CLOEXEC) = 3
read(3, 
\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\\215\2\0\0\0\0\0...,
 832) = 832
   

Yosemite problems...

2014-11-12 Thread Murat Yildizoglu
Hi,
I have updated by MacBook to Yosemite and LyX to the last version
(2.1.2.1). This solves the problem of only being able to reconfigure LyX
after having launched it from the command line.
But I have now another problem, the figures in PDF format are not loaded in
LyX. It says that it cannot convert them to a loadable format. I have both
ImageMagick and GhostScript installed via MacPorts (that I have also
updated), and, when I launch LyX from the terminal, it can convert the
graphics and show them on the screen.

Is this an unsolvable problem, or can we do something for getting back the
functionality of LyX?

An aside, in case you are worrying about this: I have checked that KnitR
files compile without any problem.

Any idea about the solution?

Best regards,

Murat

-- 


*Prof. Murat Yildizoglu*

Note: Please use the following address as such

UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE

Bureau : E-331

mail: yildi-at-u-bordeaux4.fr

web: yildizoglu.info


Re: Custom layout file: in preamble styles with custom latex commands

2014-11-12 Thread Ernesto Posse
Thanks. That's quite nice, but it doesn't work quite as expected.

I tried the two forms, arguments with and without 'post:' and I get the
same result: the second argument of the command is the body (the text
that follows all arguments) and Mandatory 0 seems to be ignored (the
generated argument is enclosed in {...} rather than [...]). For example, if
in the LyX work area I write the following (with text enclosed in ...
representing the style name and ...[ ... ] representing an argument inset)

Category CR number[D.2.4.1] Category[Software Engineering]
Sub-category[Software/Program Verification] Subject [Formal methods]
Some other text

Then the resulting code is

\category{D.2.4.1}{Some other text}{Software Engineering}{Software/Program
Verification}{Formal  methods}

So it looks like all arguments after the first are treated as if they where
tagged with 'post:' and the optional flag seems to be ignored.

Is this a bug or am I missing something?






On Wed, Nov 12, 2014 at 2:08 PM, Jürgen Spitzmüller sp...@lyx.org wrote:

 2014-11-12 20:01 GMT+01:00 Jürgen Spitzmüller:


 However, if you use LyX 2.1, you do not need an own command, since the
 command in question is possible with the help of the new argument syntax:

 Style Category
 InPreamble1
 LabelTypeStatic
 LabelStringCategory
 LatexTypeCommand
 LatexNamecategory
 Argument 1
 Mandatory 1
 LabelStringCR number
 EndArgument
 Argument 2
 Mandatory 1
 LabelStringCategory
 EndArgument
 Argument 3
 Mandatory 1
 LabelStringSub-Category
 EndArgument
 Argument 4
 LabelStringSubject Descriptor
 EndArgument
 MarginDynamic
 Labelsepxx
 LabelFont
 FamilySans
 SeriesBold
 ShapeSlanted
 SizeNormal
 ColorBlue
 EndFont
 End



 Sorry, this should be:

 Style Category
 InPreamble1
 LabelTypeStatic
 LabelStringCategory
 LatexTypeCommand
 LatexNamecategory
 Argument 1
 Mandatory 1
 LabelStringCR number
 EndArgument
 Argument post:1
 Mandatory 1
 LabelStringSub-Category
 EndArgument
 Argument post:2
 LabelStringSubject Descriptor
 EndArgument
 MarginDynamic
 Labelsepxx
 LabelFont
 FamilySans
 SeriesBold
 ShapeSlanted
 SizeNormal
 ColorBlue
 EndFont
 End


 Jürgen




-- 
Ernesto Posse
Zeligsoft.com


Re: Yosemite problems...

2014-11-12 Thread Christopher Menzel
I've been having this problem with embedded PDFs as well since at least 
2.1.1. (As with Murat, they do render successfully if I start LyX from 
the CL.)


-chris

Murat Yildizoglu wrote:

Hi,
I have updated by MacBook to Yosemite and LyX to the last version 
(2.1.2.1). This solves the problem of only being able to reconfigure 
LyX after having launched it from the command line.
But I have now another problem, the figures in PDF format are not 
loaded in LyX. It says that it cannot convert them to a loadable 
format. I have both ImageMagick and GhostScript installed via MacPorts 
(that I have also updated), and, when I launch LyX from the terminal, 
it can convert the graphics and show them on the screen.


Is this an unsolvable problem, or can we do something for getting back 
the functionality of LyX?


An aside, in case you are worrying about this: I have checked that 
KnitR files compile without any problem.


Any idea about the solution?

Best regards,

Murat


Re: Yosemite problems...

2014-11-12 Thread Richard Heck


(Sorry for top-posting, but) Does everything work if you launch LyX 
from the command line?


Richard


On 11/12/2014 07:41 PM, Murat Yildizoglu wrote:

Hi,
I have updated by MacBook to Yosemite and LyX to the last version 
(2.1.2.1). This solves the problem of only being able to reconfigure 
LyX after having launched it from the command line.
But I have now another problem, the figures in PDF format are not 
loaded in LyX. It says that it cannot convert them to a loadable 
format. I have both ImageMagick and GhostScript installed via MacPorts 
(that I have also updated), and, when I launch LyX from the terminal, 
it can convert the graphics and show them on the screen.


Is this an unsolvable problem, or can we do something for getting back 
the functionality of LyX?


An aside, in case you are worrying about this: I have checked that 
KnitR files compile without any problem.


Any idea about the solution?

Best regards,

Murat

--


*Prof. Murat Yildizoglu*

Note: Please use the following address as such

UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE

Bureau : E-331

mail: yildi-at-u-bordeaux4.fr http://yildi-at-u-bordeaux4.fr

web: yildizoglu.info http://yildizoglu.info




Re: Yosemite problems...

2014-11-12 Thread Christopher Menzel


(Sorry for top-posting, but) Does everything work if you launch
LyX from the command line?



I think he affirmed this: ...when I launch LyX from the terminal, it 
can convert the [PDF] graphics and show them on the screen. This is my 
experience as well.


-chris



On 11/12/2014 07:41 PM, Murat Yildizoglu wrote:


Hi,
I have updated by MacBook to Yosemite and LyX to the last version
(2.1.2.1). This solves the problem of only being able to reconfigure
LyX after having launched it from the command line.
But I have now another problem, the figures in PDF format are not
loaded in LyX. It says that it cannot convert them to a loadable
format. I have both ImageMagick and GhostScript installed via
MacPorts (that I have also updated), and, when I launch LyX from the
terminal, it can convert the graphics and show them on the screen.

Is this an unsolvable problem, or can we do something for getting
back the functionality of LyX?

An aside, in case you are worrying about this: I have checked that
KnitR files compile without any problem.

Any idea about the solution?

Best regards,

Murat

--


*Prof. Murat Yildizoglu*

Note: Please use the following address as such

UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE

Bureau : E-331

mail: yildi-at-u-bordeaux4.fr http://yildi-at-u-bordeaux4.fr

web: yildizoglu.info http://yildizoglu.info




Probelm to download LyX

2014-11-12 Thread Md Forhad Zaman
Hi there,

I just wondering to download the Lyx software for windows version. Since today 
morning, I have tried many times to download the software from the site as 
http://www.lyx.org/Download , but I unable to download that. Can you please 
help me in this regards.

Thanks.

Best Regards,
--
Md. Forhad Zaman
Postgraduate Research Student
UNSW Canberra, Australia
Room No.-15/G03, Phn No. - 88191,
Mobile - 0426642982
email - md.za...@student.adfa.edu.au
Alternative mail - m.fza...@yahoo.com
--





Re: Probelm to download LyX

2014-11-12 Thread Scott Kostyshak
On Wed, Nov 12, 2014 at 8:04 PM, Md Forhad Zaman
md.za...@student.adfa.edu.au wrote:
 Hi there,



 I just wondering to download the Lyx software for windows version. Since
 today morning, I have tried many times to download the software from the
 site as http://www.lyx.org/Download , but I unable to download that. Can you
 please help me in this regards.



 Thanks.



 Best Regards,

 --

 Md. Forhad Zaman
 Postgraduate Research Student
 UNSW Canberra, Australia
 Room No.-15/G03, Phn No. - 88191,

 Mobile - 0426642982
 email - md.za...@student.adfa.edu.au

 Alternative mail - m.fza...@yahoo.com

 --

Hi,

Did you try the mirrors (listed on the download page)?

Best,

Scott


Re: Probelm to download LyX

2014-11-12 Thread Scott Kostyshak
On Wed, Nov 12, 2014 at 8:14 PM, Md Forhad Zaman
md.za...@student.adfa.edu.au wrote:
 I went there, but what does it mean? A number of files come after clicking on 
 mirror and which one to be downloaded? Sorry to bother, actually I'm very 
 beginner in LyX.

 Thanks
 FORHAD

Please respond to the list, not to me personally.

Here might be what you want:
ftp://bo.mirror.garr.it/mirrors/lyx/bin/2.1.2/
Unless you have a LaTeX installed, you probably want the bundle:
ftp://bo.mirror.garr.it/mirrors/lyx/bin/2.1.2/LyX-2.1.2-Bundle-1.exe

Best,

Scott


No preview - Warning: xelatex had problems compiling lyxpreviews?????.tex

2014-11-12 Thread Itai Shaked
Hello,

I'm having a problem with math previews in lyx 2.1.2 - in certain documents
(possibly all documents set to be compiled with xelatex) there is no
preview for math.

When running from terminal I get the error in the subject:

Warning: xelatex had problems compiling lyxpreviews?.tex

repeating a few times for various files. Locating those files in
/tmp/lyx_tmpdir... I can see there is a valid PDF for each, and running
xelatex manually on them works without any error.
Note also that on the same machine lyx 2.1.0 does not have the same
problem, and the same documents have previews.

What could be the problem, and how do I solve it?

Thanks


Re: No preview - Warning: xelatex had problems compiling lyxpreviews?????.tex

2014-11-12 Thread Richard Heck

On 11/12/2014 10:40 AM, Itai Shaked wrote:

Hello,

I'm having a problem with math previews in lyx 2.1.2 - in certain 
documents (possibly all documents set to be compiled with xelatex) 
there is no preview for math.


When running from terminal I get the error in the subject:

Warning: xelatex had problems compiling lyxpreviews?.tex

repeating a few times for various files. Locating those files in 
/tmp/lyx_tmpdir... I can see there is a valid PDF for each, and 
running xelatex manually on them works without any error.
Note also that on the same machine lyx 2.1.0 does not have the same 
problem, and the same documents have previews.


What could be the problem, and how do I solve it?


Hmm. Try posting this to lyx-devel. I don't think a PDF is what we want 
in this case, but I am not that familiar with this part of the code.


Richard



Fwd: Help with Lyx

2014-11-12 Thread Trisha Lawrence
Hi Scott

I've currently uninstalled Lyx from my laptop. I've noticed on the
lyx-users platform a suggestion to do that as well as downloading the
following link below

http://wiki.lyx.org/Windows/LyXWinInstaller

Should this work? Would I still need to make any changes after
downloading Lyx from the link above,

like coping the layout packages from MiKTeX to LyX?

Also I can't seem to post any questions on Lyx-users platform. I'd
really appreciate your help Scott.

Kindest Regards,
Trisha Lawrence


-- Forwarded message --
From: Scott Kostyshak skost...@lyx.org
Date: Tue, Nov 11, 2014 at 11:40 AM
Subject: Re: Help with Lyx
To: Trisha Lawrence trishalaw...@gmail.com
Cc: lyx-users@lists.lyx.org lyx-users@lists.lyx.org, LyX Documentation
Team lyx-d...@lists.lyx.org


On Tue, Nov 11, 2014 at 2:24 PM, Trisha Lawrence trishalaw...@gmail.com
wrote:
 HI

 I have recently obtained a new laptop and I am unable to obtain the
document
 classes that were available in the Lyx docment processor of my old Laptop.
 I've followed the steps included in the link below which suggested copying
 the layout types to users then reconfiguring Lyx, however it still doesn't
 seem to work.

 http://wiki.lyx.org/Layouts/Layouts#toc1

 I remember getting tremendous help from someone@ Lyx-doc upon completing
my
 thesis for my MSc. I am currently pursuing my PhD and this will help me
 immensely. Can anyone help in anyway?

Hi Trisha,

I think you meant to send this email to lyx-users@lists.lyx.org . I
will forward it to there. All future responses to this email should
not reply to lyx-d...@lists.lyx.org.

Best of luck,

Scott


Re: Fwd: Help with Lyx

2014-11-12 Thread Christopher Menzel

Trisha Lawrence wrote:

Hi Scott

I've currently uninstalled Lyx from my laptop. I've noticed on the 
lyx-users platform a suggestion to do that as well as downloading the 
following link below

http://wiki.lyx.org/Windows/LyXWinInstaller
Should this work? Would I still need to make any changes after 
downloading Lyx from the link above, like coping the layout packages 
from MiKTeX to LyX?

Trisha,

The link above takes you to an installer for a very old version (2.0.5) 
of LyX. You shouldn't use it.


In your email to me this morning you told me that LyX (well, more 
exactly, the LaTeX engine that it was calling) wasn't even finding 
article.cls, which is the most basic class file, which suggests to me 
that your problem (or, at least, one very basic problem) doesn't have 
anything to do with the problem of finding missing layouts discussed in 
the link in your original message. I think your best bet, short of a 
complete reinstall of Windows, is to reinstall the latest versions of 
MikTeX and LyX. MikTeX is found here http://miktex.org/download. You 
can download the latest version (2.1.2) of LyX for Windows by clicking 
here ftp://ftp.lyx.org/pub/lyx/bin/2.1.2/LyX-2.1.2-Installer-1.exe.


You noted that you did some sort of migration from your old laptop to 
your new one, and those are notorious (on both Macs and Windows 
machines) for screwing things up. If you have the time and the patience, 
I suspect doing a fresh install of Windows on a clean drive, followed by 
fresh installs of MikTeX and LyX would solve your problems. If that 
isn't possible, once again, give the latest versions of MikTeX and LyX a 
shot.


 Also I can't seem to post any questions on Lyx-users platform.

You seem able to now. :-)

-chris


-- Forwarded message --
From: Scott Kostyshak skost...@lyx.org mailto:skost...@lyx.org
Date: Tue, Nov 11, 2014 at 11:40 AM
Subject: Re: Help with Lyx
To: Trisha Lawrence trishalaw...@gmail.com 
mailto:trishalaw...@gmail.com
Cc: lyx-users@lists.lyx.org mailto:lyx-users@lists.lyx.org 
lyx-users@lists.lyx.org mailto:lyx-users@lists.lyx.org, LyX 
Documentation Team lyx-d...@lists.lyx.org 
mailto:lyx-d...@lists.lyx.org



On Tue, Nov 11, 2014 at 2:24 PM, Trisha Lawrence 
trishalaw...@gmail.com mailto:trishalaw...@gmail.com wrote:

 HI

 I have recently obtained a new laptop and I am unable to obtain the 
document
 classes that were available in the Lyx docment processor of my old 
Laptop.
 I've followed the steps included in the link below which suggested 
copying
 the layout types to users then reconfiguring Lyx, however it still 
doesn't

 seem to work.

 http://wiki.lyx.org/Layouts/Layouts#toc1

 I remember getting tremendous help from someone@ Lyx-doc upon 
completing my

 thesis for my MSc. I am currently pursuing my PhD and this will help me
 immensely. Can anyone help in anyway?

Hi Trisha,

I think you meant to send this email to lyx-users@lists.lyx.org 
mailto:lyx-users@lists.lyx.org . I

will forward it to there. All future responses to this email should
not reply to lyx-d...@lists.lyx.org mailto:lyx-d...@lists.lyx.org.

Best of luck,

Scott


Re: dictionary not found

2014-11-12 Thread Marcelo Acuña
hello Stephan, the problem that I have is that Lyx not recognize hunspell, and 
the hunspell path in preferences is greyed.At the present moment lyx recognize 
aspell and enchant.Aspell say that no found dictionaries, but enchant work.
The only problem is that enchant not recognize my personal dictionary.
RegardsMarcelo 

 El Miércoles, 5 de noviembre, 2014 10:31:04, Stephan Witt 
st.w...@gmx.net escribió:
   

 Am 05.11.2014 um 14:10 schrieb Marcelo Acuña marceloacu...@yahoo.com:

 I get a partial solution.
 After several attempts by uninstalling and reinstalling all translators, 
 dictionaries and libraries and recompile lyx every time, now lyx recognize 
 enchant and aspell well, which did not have before. Aspell remain saying not 
 have dictionaries but enchant work ok.
 Now I have the problem that enchant not take my personalized dictionaries.
 I put my dictionaries in home/user but enchant deletes when I start the 
 spellchecker.
 Any idea?

Marcelo,

why don't you answer my proposal to set the path in preferences? Didn't it work?

As I've said already enchant has no good support in LyX.
I cannot help you with enchant trouble shooting.
Perhaps some other user can help you.

Stephan
 
 
 
 El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 
 Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
 Stephan:  
  Which spell checker has a spanish dictionary?
  ispell, aspell, myspell
 
 myspell is the the only usable package in your scenario. In fact it's 
 hunspell. The debian package puts the dictionaries into /usr/share/hunspell. 
 (At least the package contents here says so: 
 https://packages.debian.org/wheezy/all/myspell-es/filelist)
 
 So you may enter the mentioned path into your preferences and see if it 
 works. 
 
 Stephan
 
 
  LyX has to be compiled with hunspell support. That's enough.
 
 Yes. I installed all lib and necesary modules for enchant and hunspell, when 
 I run ./configure I get all the messages that say enchant and hunspell are 
 ready.
 
 Marcelo
 
 El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
  The problem with hunspell is that debian no have spanish dictionary for 
  hunspell.
 
 Then you have to grab them from other source.
 
 Which spell checker has a spanish dictionary?
 
  Plus I installed hunspell but is not recongized by lyx 2.1.x.
 
 LyX has to be compiled with hunspell support. That's enough.
 And you has to point it to the dictionaries if you have put them
 to a non-standard place (/usr/share/myspell is standard for LyX).
 
 Stephan
 
 
  El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
  
   On Sun, 2 Nov 2014 22:43:17 +0100
   Stephan Witt st.w...@gmx.net wrote:
   
   Can you try the Hunspell package, please?
   Enchant support in LyX 2.1 is not very good.
   
   I have exactly the same problem with hunspell. I compiled and installed 
   it,
   added en_US and es_ES dictionaries, and tested it on a couple of text
   files from the console - no problem.
   
   When I start it from LyX, I get the message Spellchecker has no
   dictionaries
  
  So, the dictionaries are not found.
  
  The hunspell backend is better prepared for this situation, though.
  You can open the message pane (in View menu) and enable debug messages
  for Files used by LyX. Then make sure you've enabled the Hunspell 
  checker in preferences. Now you can start the spell check and you'll see
  the files/directories LyX is looking for dictionaries in message pane.
  
   Strange: I configured Hunspell in LyX and did an strace. In the strace
   output I found:
   
   open(/usr/lib64/libhunspell-1.3.so.0, O_RDONLY|O_CLOEXEC) = 3
   read(3, 
   \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0P\224\0\0\0\0\0\0..., 
   832) = 832
   fstat(3, {st_mode=S_IFREG|0755, st_size=985236, ...}) = 0
   mmap(NULL, 2431520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
   0) = 0x7ff13f128000
   mprotect(0x7ff13f176000, 2093056, PROT_NONE) = 0
   mmap(0x7ff13f375000, 20480, PROT_READ|PROT_WRITE, 
   MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4d000) = 0x7ff13f375000
   close(3)                                = 0
   
   open(/usr/lib64/libaspell.so.15, O_RDONLY|O_CLOEXEC) = 3
   read(3, 
   \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\\215\2\0\0\0\0\0..., 
   832) = 832
   fstat(3, {st_mode=S_IFREG|0755, st_size=750528, ...}) = 0
   mmap(NULL, 2878072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
   0) = 0x7ff13ee68000
   mprotect(0x7ff13ef19000, 2093056, PROT_NONE) = 0
   mmap(0x7ff13f118000, 28672, PROT_READ|PROT_WRITE, 
   MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb) = 0x7ff13f118000
   mmap(0x7ff13f11f000, 31352, PROT_READ|PROT_WRITE, 
   MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff13f11f000
   close(3)               

Custom layout file: in preamble styles with custom latex commands

2014-11-12 Thread Ernesto Posse
Hi. I'm trying to define my own layout file and I ran into this situation:
I need a style whose latex command must go into the preamble (as required
by the underlying latex class), but I need to define my own command for the
style because the one provided by the base class doesn't work well with the
way styles work in the LyX UI.

The problem is that styles which have been declared as InPreamble 1 get
their code generated before the user preamble which defines the required
latex command, and therefore, when compiling, LaTeX will stop with an error
saying that the control sequence is not defined (because it is defined
later). The style in question is the following:

Style Category
InPreamble 1
LabelType Static
LabelString Category
LatexType Command
LatexName ACMCCScategory
RequiredArgs 3
Margin Dynamic
Labelsep xx
LabelFont
Family Sans
Series Bold
Shape Slanted
Size Normal
Color Blue
EndFont
Preamble
\newcommand{\ACMCCScategory}[4]{\category{#1}{#2}{#3}[4]}
EndPreamble
End

So as you see, the style uses the custom-defined command \ACMCCScategory,
but the generated code is this:

\makeatletter


%% LyX specific LaTeX commands.


\ACMCCScategory{D.2.4}{Software Engineering}{Software/Program
Verification}{Formal methods}


%% Textclass specific LaTeX commands.

\newcommand{\ACMCCScategory}[4]{\category{#1}{#2}{#3}[4]}


%% User specified LaTeX commands.

\usepackage{aadl}


\makeatother


So the problem is evident: the command is defined after it is being used.


Is there a way to tell LyX to produce the preamble commands before the in
preamble styles?




-- 
Ernesto Posse
Zeligsoft.com


Re: Custom layout file: in preamble styles with custom latex commands

2014-11-12 Thread Jürgen Spitzmüller
2014-11-12 19:18 GMT+01:00 Ernesto Posse:

 Hi. I'm trying to define my own layout file and I ran into this situation:
 I need a style whose latex command must go into the preamble (as required
 by the underlying latex class), but I need to define my own command for the
 style because the one provided by the base class doesn't work well with the
 way styles work in the LyX UI.

 The problem is that styles which have been declared as InPreamble 1 get
 their code generated before the user preamble which defines the required
 latex command, and therefore, when compiling, LaTeX will stop with an error
 saying that the control sequence is not defined (because it is defined
 later). The style in question is the following:

 Style Category
 InPreamble 1
 LabelType Static
 LabelString Category
 LatexType Command
 LatexName ACMCCScategory
 RequiredArgs 3
 Margin Dynamic
 Labelsep xx
 LabelFont
 Family Sans
 Series Bold
 Shape Slanted
 Size Normal
 Color Blue
 EndFont
 Preamble
 \newcommand{\ACMCCScategory}[4]{\category{#1}{#2}{#3}[4]}
 EndPreamble
 End

 So as you see, the style uses the custom-defined command \ACMCCScategory,
 but the generated code is this:

 \makeatletter


 %% LyX specific LaTeX commands.


 \ACMCCScategory{D.2.4}{Software Engineering}{Software/Program
 Verification}{Formal methods}


 %% Textclass specific LaTeX commands.

 \newcommand{\ACMCCScategory}[4]{\category{#1}{#2}{#3}[4]}


 %% User specified LaTeX commands.

 \usepackage{aadl}


 \makeatother


 So the problem is evident: the command is defined after it is being used.


 Is there a way to tell LyX to produce the preamble commands before the in
 preamble styles?


No, this is not yet possible.

However, if you use LyX 2.1, you do not need an own command, since the
command in question is possible with the help of the new argument syntax:

Style Category
InPreamble1
LabelTypeStatic
LabelStringCategory
LatexTypeCommand
LatexNamecategory
Argument 1
Mandatory 1
LabelStringCR number
EndArgument
Argument 2
Mandatory 1
LabelStringCategory
EndArgument
Argument 3
Mandatory 1
LabelStringSub-Category
EndArgument
Argument 4
LabelStringSubject Descriptor
EndArgument
MarginDynamic
Labelsepxx
LabelFont
FamilySans
SeriesBold
ShapeSlanted
SizeNormal
ColorBlue
EndFont
End


This also gives a much better UI, since both the Insert menu and the
argument insets tell you which argument you are actually dealing with. And
the order of insertion does not matter (in contrast to the pre 2.1 argument
insets)


HTH,
Jürgen


Re: Custom layout file: in preamble styles with custom latex commands

2014-11-12 Thread Jürgen Spitzmüller
2014-11-12 20:01 GMT+01:00 Jürgen Spitzmüller:


 However, if you use LyX 2.1, you do not need an own command, since the
 command in question is possible with the help of the new argument syntax:

 Style Category
 InPreamble1
 LabelTypeStatic
 LabelStringCategory
 LatexTypeCommand
 LatexNamecategory
 Argument 1
 Mandatory 1
 LabelStringCR number
 EndArgument
 Argument 2
 Mandatory 1
 LabelStringCategory
 EndArgument
 Argument 3
 Mandatory 1
 LabelStringSub-Category
 EndArgument
 Argument 4
 LabelStringSubject Descriptor
 EndArgument
 MarginDynamic
 Labelsepxx
 LabelFont
 FamilySans
 SeriesBold
 ShapeSlanted
 SizeNormal
 ColorBlue
 EndFont
 End



Sorry, this should be:

Style Category
InPreamble1
LabelTypeStatic
LabelStringCategory
LatexTypeCommand
LatexNamecategory
Argument 1
Mandatory 1
LabelStringCR number
EndArgument
Argument post:1
Mandatory 1
LabelStringSub-Category
EndArgument
Argument post:2
LabelStringSubject Descriptor
EndArgument
MarginDynamic
Labelsepxx
LabelFont
FamilySans
SeriesBold
ShapeSlanted
SizeNormal
ColorBlue
EndFont
End


Jürgen


Re: dictionary not found

2014-11-12 Thread Stephan Witt
 Am 12.11.2014 um 19:03 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
 hello Stephan,
  the problem that I have is that Lyx not recognize hunspell, and the hunspell 
 path in preferences is greyed.

Hi Marcelo,
the path is disabled if LyX is build without hunspell support. You said in a 
previous mail you installed the libraries - perhaps you didn't install the 
devel package for hunspell. This should result in a LyX binary with hunspell 
support. 

Stephan 

 At the present moment lyx recognize aspell and enchant.
 Aspell say that no found dictionaries, but enchant work.
 The only problem is that enchant not recognize my personal dictionary.
 
 Regards
 Marcelo
 
 
 El Miércoles, 5 de noviembre, 2014 10:31:04, Stephan Witt st.w...@gmx.net 
 escribió:
 
 
 Am 05.11.2014 um 14:10 schrieb Marcelo Acuña marceloacu...@yahoo.com:
 
  I get a partial solution.
  After several attempts by uninstalling and reinstalling all translators, 
  dictionaries and libraries and recompile lyx every time, now lyx recognize 
  enchant and aspell well, which did not have before. Aspell remain saying 
  not have dictionaries but enchant work ok.
  Now I have the problem that enchant not take my personalized dictionaries.
  I put my dictionaries in home/user but enchant deletes when I start the 
  spellchecker.
  Any idea?
 
 Marcelo,
 
 why don't you answer my proposal to set the path in preferences? Didn't it 
 work?
 
 As I've said already enchant has no good support in LyX.
 I cannot help you with enchant trouble shooting.
 Perhaps some other user can help you.
 
 Stephan
 
 
  
  
  El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  
  Am 04.11.2014 um 17:27 schrieb Marcelo Acuña marceloacu...@yahoo.com:
  
  Stephan:  
   Which spell checker has a spanish dictionary?
   ispell, aspell, myspell
  
  myspell is the the only usable package in your scenario. In fact it's 
  hunspell. The debian package puts the dictionaries into 
  /usr/share/hunspell. (At least the package contents here says so: 
  https://packages.debian.org/wheezy/all/myspell-es/filelist)
  
  So you may enter the mentioned path into your preferences and see if it 
  works. 
  
  Stephan
  
  
   LyX has to be compiled with hunspell support. That's enough.
  
  Yes. I installed all lib and necesary modules for enchant and hunspell, 
  when I run ./configure I get all the messages that say enchant and 
  hunspell are ready.
  
  Marcelo
  
  El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt st.w...@gmx.net 
  escribió:
  
  
  Am 03.11.2014 um 16:19 schrieb Marcelo Acuña marceloacu...@yahoo.com:
  
   The problem with hunspell is that debian no have spanish dictionary for 
   hunspell.
  
  Then you have to grab them from other source.
  
  Which spell checker has a spanish dictionary?
  
   Plus I installed hunspell but is not recongized by lyx 2.1.x.
  
  LyX has to be compiled with hunspell support. That's enough.
  And you has to point it to the dictionaries if you have put them
  to a non-standard place (/usr/share/myspell is standard for LyX).
  
  Stephan
  
  
   El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt st.w...@gmx.net 
   escribió:
   
   
   Am 03.11.2014 um 05:41 schrieb John Coppens j...@jcoppens.com:
   
On Sun, 2 Nov 2014 22:43:17 +0100
Stephan Witt st.w...@gmx.net wrote:

Can you try the Hunspell package, please?
Enchant support in LyX 2.1 is not very good.

I have exactly the same problem with hunspell. I compiled and 
installed it,
added en_US and es_ES dictionaries, and tested it on a couple of text
files from the console - no problem.

When I start it from LyX, I get the message Spellchecker has no
dictionaries
   
   So, the dictionaries are not found.
   
   The hunspell backend is better prepared for this situation, though.
   You can open the message pane (in View menu) and enable debug messages
   for Files used by LyX. Then make sure you've enabled the Hunspell 
   checker in preferences. Now you can start the spell check and you'll see
   the files/directories LyX is looking for dictionaries in message pane.
   
Strange: I configured Hunspell in LyX and did an strace. In the strace
output I found:

open(/usr/lib64/libhunspell-1.3.so.0, O_RDONLY|O_CLOEXEC) = 3
read(3, 
\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0P\224\0\0\0\0\0\0..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=985236, ...}) = 0
mmap(NULL, 2431520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
0) = 0x7ff13f128000
mprotect(0x7ff13f176000, 2093056, PROT_NONE) = 0
mmap(0x7ff13f375000, 20480, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4d000) = 0x7ff13f375000
close(3)= 0

open(/usr/lib64/libaspell.so.15, O_RDONLY|O_CLOEXEC) = 3
read(3, 
\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\\215\2\0\0\0\0\0...,
 832) = 832
   

Yosemite problems...

2014-11-12 Thread Murat Yildizoglu
Hi,
I have updated by MacBook to Yosemite and LyX to the last version
(2.1.2.1). This solves the problem of only being able to reconfigure LyX
after having launched it from the command line.
But I have now another problem, the figures in PDF format are not loaded in
LyX. It says that it cannot convert them to a loadable format. I have both
ImageMagick and GhostScript installed via MacPorts (that I have also
updated), and, when I launch LyX from the terminal, it can convert the
graphics and show them on the screen.

Is this an unsolvable problem, or can we do something for getting back the
functionality of LyX?

An aside, in case you are worrying about this: I have checked that KnitR
files compile without any problem.

Any idea about the solution?

Best regards,

Murat

-- 


*Prof. Murat Yildizoglu*

Note: Please use the following address as such

UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE

Bureau : E-331

mail: yildi-at-u-bordeaux4.fr

web: yildizoglu.info


Re: Custom layout file: in preamble styles with custom latex commands

2014-11-12 Thread Ernesto Posse
Thanks. That's quite nice, but it doesn't work quite as expected.

I tried the two forms, arguments with and without 'post:' and I get the
same result: the second argument of the command is the body (the text
that follows all arguments) and Mandatory 0 seems to be ignored (the
generated argument is enclosed in {...} rather than [...]). For example, if
in the LyX work area I write the following (with text enclosed in ...
representing the style name and ...[ ... ] representing an argument inset)

Category CR number[D.2.4.1] Category[Software Engineering]
Sub-category[Software/Program Verification] Subject [Formal methods]
Some other text

Then the resulting code is

\category{D.2.4.1}{Some other text}{Software Engineering}{Software/Program
Verification}{Formal  methods}

So it looks like all arguments after the first are treated as if they where
tagged with 'post:' and the optional flag seems to be ignored.

Is this a bug or am I missing something?






On Wed, Nov 12, 2014 at 2:08 PM, Jürgen Spitzmüller sp...@lyx.org wrote:

 2014-11-12 20:01 GMT+01:00 Jürgen Spitzmüller:


 However, if you use LyX 2.1, you do not need an own command, since the
 command in question is possible with the help of the new argument syntax:

 Style Category
 InPreamble1
 LabelTypeStatic
 LabelStringCategory
 LatexTypeCommand
 LatexNamecategory
 Argument 1
 Mandatory 1
 LabelStringCR number
 EndArgument
 Argument 2
 Mandatory 1
 LabelStringCategory
 EndArgument
 Argument 3
 Mandatory 1
 LabelStringSub-Category
 EndArgument
 Argument 4
 LabelStringSubject Descriptor
 EndArgument
 MarginDynamic
 Labelsepxx
 LabelFont
 FamilySans
 SeriesBold
 ShapeSlanted
 SizeNormal
 ColorBlue
 EndFont
 End



 Sorry, this should be:

 Style Category
 InPreamble1
 LabelTypeStatic
 LabelStringCategory
 LatexTypeCommand
 LatexNamecategory
 Argument 1
 Mandatory 1
 LabelStringCR number
 EndArgument
 Argument post:1
 Mandatory 1
 LabelStringSub-Category
 EndArgument
 Argument post:2
 LabelStringSubject Descriptor
 EndArgument
 MarginDynamic
 Labelsepxx
 LabelFont
 FamilySans
 SeriesBold
 ShapeSlanted
 SizeNormal
 ColorBlue
 EndFont
 End


 Jürgen




-- 
Ernesto Posse
Zeligsoft.com


Re: Yosemite problems...

2014-11-12 Thread Christopher Menzel
I've been having this problem with embedded PDFs as well since at least 
2.1.1. (As with Murat, they do render successfully if I start LyX from 
the CL.)


-chris

Murat Yildizoglu wrote:

Hi,
I have updated by MacBook to Yosemite and LyX to the last version 
(2.1.2.1). This solves the problem of only being able to reconfigure 
LyX after having launched it from the command line.
But I have now another problem, the figures in PDF format are not 
loaded in LyX. It says that it cannot convert them to a loadable 
format. I have both ImageMagick and GhostScript installed via MacPorts 
(that I have also updated), and, when I launch LyX from the terminal, 
it can convert the graphics and show them on the screen.


Is this an unsolvable problem, or can we do something for getting back 
the functionality of LyX?


An aside, in case you are worrying about this: I have checked that 
KnitR files compile without any problem.


Any idea about the solution?

Best regards,

Murat


Re: Yosemite problems...

2014-11-12 Thread Richard Heck


(Sorry for top-posting, but) Does everything work if you launch LyX 
from the command line?


Richard


On 11/12/2014 07:41 PM, Murat Yildizoglu wrote:

Hi,
I have updated by MacBook to Yosemite and LyX to the last version 
(2.1.2.1). This solves the problem of only being able to reconfigure 
LyX after having launched it from the command line.
But I have now another problem, the figures in PDF format are not 
loaded in LyX. It says that it cannot convert them to a loadable 
format. I have both ImageMagick and GhostScript installed via MacPorts 
(that I have also updated), and, when I launch LyX from the terminal, 
it can convert the graphics and show them on the screen.


Is this an unsolvable problem, or can we do something for getting back 
the functionality of LyX?


An aside, in case you are worrying about this: I have checked that 
KnitR files compile without any problem.


Any idea about the solution?

Best regards,

Murat

--


*Prof. Murat Yildizoglu*

Note: Please use the following address as such

UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE

Bureau : E-331

mail: yildi-at-u-bordeaux4.fr http://yildi-at-u-bordeaux4.fr

web: yildizoglu.info http://yildizoglu.info




Re: Yosemite problems...

2014-11-12 Thread Christopher Menzel


(Sorry for top-posting, but) Does everything work if you launch
LyX from the command line?



I think he affirmed this: ...when I launch LyX from the terminal, it 
can convert the [PDF] graphics and show them on the screen. This is my 
experience as well.


-chris



On 11/12/2014 07:41 PM, Murat Yildizoglu wrote:


Hi,
I have updated by MacBook to Yosemite and LyX to the last version
(2.1.2.1). This solves the problem of only being able to reconfigure
LyX after having launched it from the command line.
But I have now another problem, the figures in PDF format are not
loaded in LyX. It says that it cannot convert them to a loadable
format. I have both ImageMagick and GhostScript installed via
MacPorts (that I have also updated), and, when I launch LyX from the
terminal, it can convert the graphics and show them on the screen.

Is this an unsolvable problem, or can we do something for getting
back the functionality of LyX?

An aside, in case you are worrying about this: I have checked that
KnitR files compile without any problem.

Any idea about the solution?

Best regards,

Murat

--


*Prof. Murat Yildizoglu*

Note: Please use the following address as such

UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE

Bureau : E-331

mail: yildi-at-u-bordeaux4.fr http://yildi-at-u-bordeaux4.fr

web: yildizoglu.info http://yildizoglu.info




Probelm to download LyX

2014-11-12 Thread Md Forhad Zaman
Hi there,

I just wondering to download the Lyx software for windows version. Since today 
morning, I have tried many times to download the software from the site as 
http://www.lyx.org/Download , but I unable to download that. Can you please 
help me in this regards.

Thanks.

Best Regards,
--
Md. Forhad Zaman
Postgraduate Research Student
UNSW Canberra, Australia
Room No.-15/G03, Phn No. - 88191,
Mobile - 0426642982
email - md.za...@student.adfa.edu.au
Alternative mail - m.fza...@yahoo.com
--





Re: Probelm to download LyX

2014-11-12 Thread Scott Kostyshak
On Wed, Nov 12, 2014 at 8:04 PM, Md Forhad Zaman
md.za...@student.adfa.edu.au wrote:
 Hi there,



 I just wondering to download the Lyx software for windows version. Since
 today morning, I have tried many times to download the software from the
 site as http://www.lyx.org/Download , but I unable to download that. Can you
 please help me in this regards.



 Thanks.



 Best Regards,

 --

 Md. Forhad Zaman
 Postgraduate Research Student
 UNSW Canberra, Australia
 Room No.-15/G03, Phn No. - 88191,

 Mobile - 0426642982
 email - md.za...@student.adfa.edu.au

 Alternative mail - m.fza...@yahoo.com

 --

Hi,

Did you try the mirrors (listed on the download page)?

Best,

Scott


Re: Probelm to download LyX

2014-11-12 Thread Scott Kostyshak
On Wed, Nov 12, 2014 at 8:14 PM, Md Forhad Zaman
md.za...@student.adfa.edu.au wrote:
 I went there, but what does it mean? A number of files come after clicking on 
 mirror and which one to be downloaded? Sorry to bother, actually I'm very 
 beginner in LyX.

 Thanks
 FORHAD

Please respond to the list, not to me personally.

Here might be what you want:
ftp://bo.mirror.garr.it/mirrors/lyx/bin/2.1.2/
Unless you have a LaTeX installed, you probably want the bundle:
ftp://bo.mirror.garr.it/mirrors/lyx/bin/2.1.2/LyX-2.1.2-Bundle-1.exe

Best,

Scott


No preview - "Warning: xelatex had problems compiling lyxpreviews?????.tex"

2014-11-12 Thread Itai Shaked
Hello,

I'm having a problem with math previews in lyx 2.1.2 - in certain documents
(possibly all documents set to be compiled with xelatex) there is no
preview for math.

When running from terminal I get the error in the subject:

Warning: xelatex had problems compiling lyxpreviews?.tex

repeating a few times for various files. Locating those files in
"/tmp/lyx_tmpdir..." I can see there is a valid PDF for each, and running
xelatex manually on them works without any error.
Note also that on the same machine lyx 2.1.0 does not have the same
problem, and the same documents have previews.

What could be the problem, and how do I solve it?

Thanks


Re: No preview - "Warning: xelatex had problems compiling lyxpreviews?????.tex"

2014-11-12 Thread Richard Heck

On 11/12/2014 10:40 AM, Itai Shaked wrote:

Hello,

I'm having a problem with math previews in lyx 2.1.2 - in certain 
documents (possibly all documents set to be compiled with xelatex) 
there is no preview for math.


When running from terminal I get the error in the subject:

Warning: xelatex had problems compiling lyxpreviews?.tex

repeating a few times for various files. Locating those files in 
"/tmp/lyx_tmpdir..." I can see there is a valid PDF for each, and 
running xelatex manually on them works without any error.
Note also that on the same machine lyx 2.1.0 does not have the same 
problem, and the same documents have previews.


What could be the problem, and how do I solve it?


Hmm. Try posting this to lyx-devel. I don't think a PDF is what we want 
in this case, but I am not that familiar with this part of the code.


Richard



Fwd: Help with Lyx

2014-11-12 Thread Trisha Lawrence
Hi Scott

I've currently uninstalled Lyx from my laptop. I've noticed on the
lyx-users platform a suggestion to do that as well as downloading the
following link below

http://wiki.lyx.org/Windows/LyXWinInstaller

Should this work? Would I still need to make any changes after
downloading Lyx from the link above,

like coping the layout packages from MiKTeX to LyX?

Also I can't seem to post any questions on Lyx-users platform. I'd
really appreciate your help Scott.

Kindest Regards,
Trisha Lawrence


-- Forwarded message --
From: Scott Kostyshak 
Date: Tue, Nov 11, 2014 at 11:40 AM
Subject: Re: Help with Lyx
To: Trisha Lawrence 
Cc: "lyx-users@lists.lyx.org" , LyX Documentation
Team 


On Tue, Nov 11, 2014 at 2:24 PM, Trisha Lawrence 
wrote:
> HI
>
> I have recently obtained a new laptop and I am unable to obtain the
document
> classes that were available in the Lyx docment processor of my old Laptop.
> I've followed the steps included in the link below which suggested copying
> the layout types to users then reconfiguring Lyx, however it still doesn't
> seem to work.
>
> http://wiki.lyx.org/Layouts/Layouts#toc1
>
> I remember getting tremendous help from someone@ Lyx-doc upon completing
my
> thesis for my MSc. I am currently pursuing my PhD and this will help me
> immensely. Can anyone help in anyway?

Hi Trisha,

I think you meant to send this email to lyx-users@lists.lyx.org . I
will forward it to there. All future responses to this email should
not reply to lyx-d...@lists.lyx.org.

Best of luck,

Scott


Re: Fwd: Help with Lyx

2014-11-12 Thread Christopher Menzel

Trisha Lawrence wrote:

Hi Scott

I've currently uninstalled Lyx from my laptop. I've noticed on the 
lyx-users platform a suggestion to do that as well as downloading the 
following link below

http://wiki.lyx.org/Windows/LyXWinInstaller
Should this work? Would I still need to make any changes after 
downloading Lyx from the link above, like coping the layout packages 
from MiKTeX to LyX?

Trisha,

The link above takes you to an installer for a very old version (2.0.5) 
of LyX. You shouldn't use it.


In your email to me this morning you told me that LyX (well, more 
exactly, the LaTeX engine that it was calling) wasn't even finding 
article.cls, which is the most basic class file, which suggests to me 
that your problem (or, at least, one very basic problem) doesn't have 
anything to do with the problem of finding missing layouts discussed in 
the link in your original message. I think your best bet, short of a 
complete reinstall of Windows, is to reinstall the latest versions of 
MikTeX and LyX. MikTeX is found here . You 
can download the latest version (2.1.2) of LyX for Windows by clicking 
here .


You noted that you did some sort of "migration" from your old laptop to 
your new one, and those are notorious (on both Macs and Windows 
machines) for screwing things up. If you have the time and the patience, 
I suspect doing a fresh install of Windows on a clean drive, followed by 
fresh installs of MikTeX and LyX would solve your problems. If that 
isn't possible, once again, give the latest versions of MikTeX and LyX a 
shot.


> Also I can't seem to post any questions on Lyx-users platform.

You seem able to now. :-)

-chris


-- Forwarded message --
From: Scott Kostyshak >
Date: Tue, Nov 11, 2014 at 11:40 AM
Subject: Re: Help with Lyx
To: Trisha Lawrence >
Cc: "lyx-users@lists.lyx.org " 
>, LyX 
Documentation Team >



On Tue, Nov 11, 2014 at 2:24 PM, Trisha Lawrence 
> wrote:

> HI
>
> I have recently obtained a new laptop and I am unable to obtain the 
document
> classes that were available in the Lyx docment processor of my old 
Laptop.
> I've followed the steps included in the link below which suggested 
copying
> the layout types to users then reconfiguring Lyx, however it still 
doesn't

> seem to work.
>
> http://wiki.lyx.org/Layouts/Layouts#toc1
>
> I remember getting tremendous help from someone@ Lyx-doc upon 
completing my

> thesis for my MSc. I am currently pursuing my PhD and this will help me
> immensely. Can anyone help in anyway?

Hi Trisha,

I think you meant to send this email to lyx-users@lists.lyx.org 
 . I

will forward it to there. All future responses to this email should
not reply to lyx-d...@lists.lyx.org .

Best of luck,

Scott


Re: dictionary not found

2014-11-12 Thread Marcelo Acuña
hello Stephan, the problem that I have is that Lyx not recognize hunspell, and 
the hunspell path in preferences is greyed.At the present moment lyx recognize 
aspell and enchant.Aspell say that no found dictionaries, but enchant work.
The only problem is that enchant not recognize my personal dictionary.
RegardsMarcelo 

 El Miércoles, 5 de noviembre, 2014 10:31:04, Stephan Witt 
 escribió:
   

 Am 05.11.2014 um 14:10 schrieb Marcelo Acuña :

> I get a partial solution.
> After several attempts by uninstalling and reinstalling all translators, 
> dictionaries and libraries and recompile lyx every time, now lyx recognize 
> enchant and aspell well, which did not have before. Aspell remain saying not 
> have dictionaries but enchant work ok.
> Now I have the problem that enchant not take my personalized dictionaries.
> I put my dictionaries in home/user but enchant deletes when I start the 
> spellchecker.
> Any idea?

Marcelo,

why don't you answer my proposal to set the path in preferences? Didn't it work?

As I've said already enchant has no good support in LyX.
I cannot help you with enchant trouble shooting.
Perhaps some other user can help you.

Stephan
 
> 
> 
> El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt  
> escribió:
> 
> 
> 
> Am 04.11.2014 um 17:27 schrieb Marcelo Acuña :
> 
>> Stephan:  
>>  "Which spell checker has a spanish dictionary?"
>>  ispell, aspell, myspell
> 
> myspell is the the only usable package in your scenario. In fact it's 
> hunspell. The debian package puts the dictionaries into /usr/share/hunspell. 
> (At least the package contents here says so: 
> https://packages.debian.org/wheezy/all/myspell-es/filelist)
> 
> So you may enter the mentioned path into your preferences and see if it 
> works. 
> 
> Stephan
> 
>> 
>>  "LyX has to be compiled with hunspell support. That's enough."
>> 
>> Yes. I installed all lib and necesary modules for enchant and hunspell, when 
>> I run ./configure I get all the messages that say enchant and hunspell are 
>> ready.
>> 
>> Marcelo
>> 
>> El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt  
>> escribió:
>> 
>> 
>> Am 03.11.2014 um 16:19 schrieb Marcelo Acuña :
>> 
>> > The problem with hunspell is that debian no have spanish dictionary for 
>> > hunspell.
>> 
>> Then you have to grab them from other source.
>> 
>> Which spell checker has a spanish dictionary?
>> 
>> > Plus I installed hunspell but is not recongized by lyx 2.1.x.
>> 
>> LyX has to be compiled with hunspell support. That's enough.
>> And you has to point it to the dictionaries if you have put them
>> to a non-standard place (/usr/share/myspell is standard for LyX).
>> 
>> Stephan
>> 
>> 
>> > El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt  
>> > escribió:
>> > 
>> > 
>> > Am 03.11.2014 um 05:41 schrieb John Coppens :
>> > 
>> > > On Sun, 2 Nov 2014 22:43:17 +0100
>> > > Stephan Witt  wrote:
>> > > 
>> > >> Can you try the Hunspell package, please?
>> > >> Enchant support in LyX 2.1 is not very good.
>> > > 
>> > > I have exactly the same problem with hunspell. I compiled and installed 
>> > > it,
>> > > added en_US and es_ES dictionaries, and tested it on a couple of text
>> > > files from the console - no problem.
>> > > 
>> > > When I start it from LyX, I get the message "Spellchecker has no
>> > > dictionaries"
>> > 
>> > So, the dictionaries are not found.
>> > 
>> > The hunspell backend is better prepared for this situation, though.
>> > You can open the message pane (in View menu) and enable debug messages
>> > for "Files used by LyX". Then make sure you've enabled the Hunspell 
>> > checker in preferences. Now you can start the spell check and you'll see
>> > the files/directories LyX is looking for dictionaries in message pane.
>> > 
>> > > Strange: I configured Hunspell in LyX and did an strace. In the strace
>> > > output I found:
>> > > 
>> > > open("/usr/lib64/libhunspell-1.3.so.0", O_RDONLY|O_CLOEXEC) = 3
>> > > read(3, 
>> > > "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\224\0\0\0\0\0\0"..., 
>> > > 832) = 832
>> > > fstat(3, {st_mode=S_IFREG|0755, st_size=985236, ...}) = 0
>> > > mmap(NULL, 2431520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
>> > > 0) = 0x7ff13f128000
>> > > mprotect(0x7ff13f176000, 2093056, PROT_NONE) = 0
>> > > mmap(0x7ff13f375000, 20480, PROT_READ|PROT_WRITE, 
>> > > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4d000) = 0x7ff13f375000
>> > > close(3)                                = 0
>> > > 
>> > > open("/usr/lib64/libaspell.so.15", O_RDONLY|O_CLOEXEC) = 3
>> > > read(3, 
>> > > "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\\215\2\0\0\0\0\0"..., 
>> > > 832) = 832
>> > > fstat(3, {st_mode=S_IFREG|0755, st_size=750528, ...}) = 0
>> > > mmap(NULL, 2878072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
>> > > 0) = 

Custom layout file: in preamble styles with custom latex commands

2014-11-12 Thread Ernesto Posse
Hi. I'm trying to define my own layout file and I ran into this situation:
I need a style whose latex command must go into the preamble (as required
by the underlying latex class), but I need to define my own command for the
style because the one provided by the base class doesn't work well with the
way styles work in the LyX UI.

The problem is that styles which have been declared as "InPreamble 1" get
their code generated before the user preamble which defines the required
latex command, and therefore, when compiling, LaTeX will stop with an error
saying that the control sequence is not defined (because it is defined
later). The style in question is the following:

Style Category
InPreamble 1
LabelType Static
LabelString "Category"
LatexType Command
LatexName ACMCCScategory
RequiredArgs 3
Margin Dynamic
Labelsep xx
LabelFont
Family Sans
Series Bold
Shape Slanted
Size Normal
Color Blue
EndFont
Preamble
\newcommand{\ACMCCScategory}[4]{\category{#1}{#2}{#3}[4]}
EndPreamble
End

So as you see, the style uses the custom-defined command \ACMCCScategory,
but the generated code is this:

\makeatletter


%% LyX specific LaTeX commands.


\ACMCCScategory{D.2.4}{Software Engineering}{Software/Program
Verification}{Formal methods}


%% Textclass specific LaTeX commands.

\newcommand{\ACMCCScategory}[4]{\category{#1}{#2}{#3}[4]}


%% User specified LaTeX commands.

\usepackage{aadl}


\makeatother


So the problem is evident: the command is defined after it is being used.


Is there a way to tell LyX to produce the preamble commands before the "in
preamble" styles?




-- 
Ernesto Posse
Zeligsoft.com


Re: Custom layout file: in preamble styles with custom latex commands

2014-11-12 Thread Jürgen Spitzmüller
2014-11-12 19:18 GMT+01:00 Ernesto Posse:

> Hi. I'm trying to define my own layout file and I ran into this situation:
> I need a style whose latex command must go into the preamble (as required
> by the underlying latex class), but I need to define my own command for the
> style because the one provided by the base class doesn't work well with the
> way styles work in the LyX UI.
>
> The problem is that styles which have been declared as "InPreamble 1" get
> their code generated before the user preamble which defines the required
> latex command, and therefore, when compiling, LaTeX will stop with an error
> saying that the control sequence is not defined (because it is defined
> later). The style in question is the following:
>
> Style Category
> InPreamble 1
> LabelType Static
> LabelString "Category"
> LatexType Command
> LatexName ACMCCScategory
> RequiredArgs 3
> Margin Dynamic
> Labelsep xx
> LabelFont
> Family Sans
> Series Bold
> Shape Slanted
> Size Normal
> Color Blue
> EndFont
> Preamble
> \newcommand{\ACMCCScategory}[4]{\category{#1}{#2}{#3}[4]}
> EndPreamble
> End
>
> So as you see, the style uses the custom-defined command \ACMCCScategory,
> but the generated code is this:
>
> \makeatletter
>
>
> %% LyX specific LaTeX commands.
>
>
> \ACMCCScategory{D.2.4}{Software Engineering}{Software/Program
> Verification}{Formal methods}
>
>
> %% Textclass specific LaTeX commands.
>
> \newcommand{\ACMCCScategory}[4]{\category{#1}{#2}{#3}[4]}
>
>
> %% User specified LaTeX commands.
>
> \usepackage{aadl}
>
>
> \makeatother
>
>
> So the problem is evident: the command is defined after it is being used.
>
>
> Is there a way to tell LyX to produce the preamble commands before the "in
> preamble" styles?
>

No, this is not yet possible.

However, if you use LyX 2.1, you do not need an own command, since the
command in question is possible with the help of the new argument syntax:

Style Category
InPreamble1
LabelTypeStatic
LabelString"Category"
LatexTypeCommand
LatexNamecategory
Argument 1
Mandatory 1
LabelString"CR number"
EndArgument
Argument 2
Mandatory 1
LabelString"Category"
EndArgument
Argument 3
Mandatory 1
LabelString"Sub-Category"
EndArgument
Argument 4
LabelString"Subject Descriptor"
EndArgument
MarginDynamic
Labelsepxx
LabelFont
FamilySans
SeriesBold
ShapeSlanted
SizeNormal
ColorBlue
EndFont
End


This also gives a much better UI, since both the Insert menu and the
argument insets tell you which argument you are actually dealing with. And
the order of insertion does not matter (in contrast to the pre 2.1 argument
insets)


HTH,
Jürgen


Re: Custom layout file: in preamble styles with custom latex commands

2014-11-12 Thread Jürgen Spitzmüller
2014-11-12 20:01 GMT+01:00 Jürgen Spitzmüller:

>
> However, if you use LyX 2.1, you do not need an own command, since the
> command in question is possible with the help of the new argument syntax:
>
> Style Category
> InPreamble1
> LabelTypeStatic
> LabelString"Category"
> LatexTypeCommand
> LatexNamecategory
> Argument 1
> Mandatory 1
> LabelString"CR number"
> EndArgument
> Argument 2
> Mandatory 1
> LabelString"Category"
> EndArgument
> Argument 3
> Mandatory 1
> LabelString"Sub-Category"
> EndArgument
> Argument 4
> LabelString"Subject Descriptor"
> EndArgument
> MarginDynamic
> Labelsepxx
> LabelFont
> FamilySans
> SeriesBold
> ShapeSlanted
> SizeNormal
> ColorBlue
> EndFont
> End
>


Sorry, this should be:

Style Category
InPreamble1
LabelTypeStatic
LabelString"Category"
LatexTypeCommand
LatexNamecategory
Argument 1
Mandatory 1
LabelString"CR number"
EndArgument
Argument post:1
Mandatory 1
LabelString"Sub-Category"
EndArgument
Argument post:2
LabelString"Subject Descriptor"
EndArgument
MarginDynamic
Labelsepxx
LabelFont
FamilySans
SeriesBold
ShapeSlanted
SizeNormal
ColorBlue
EndFont
End


Jürgen


Re: dictionary not found

2014-11-12 Thread Stephan Witt
> Am 12.11.2014 um 19:03 schrieb Marcelo Acuña :
> 
> hello Stephan,
>  the problem that I have is that Lyx not recognize hunspell, and the hunspell 
> path in preferences is greyed.

Hi Marcelo,
the path is disabled if LyX is build without hunspell support. You said in a 
previous mail you installed the libraries - perhaps you didn't install the 
devel package for hunspell. This should result in a LyX binary with hunspell 
support. 

Stephan 

> At the present moment lyx recognize aspell and enchant.
> Aspell say that no found dictionaries, but enchant work.
> The only problem is that enchant not recognize my personal dictionary.
> 
> Regards
> Marcelo
> 
> 
> El Miércoles, 5 de noviembre, 2014 10:31:04, Stephan Witt  
> escribió:
> 
> 
> Am 05.11.2014 um 14:10 schrieb Marcelo Acuña :
> 
> > I get a partial solution.
> > After several attempts by uninstalling and reinstalling all translators, 
> > dictionaries and libraries and recompile lyx every time, now lyx recognize 
> > enchant and aspell well, which did not have before. Aspell remain saying 
> > not have dictionaries but enchant work ok.
> > Now I have the problem that enchant not take my personalized dictionaries.
> > I put my dictionaries in home/user but enchant deletes when I start the 
> > spellchecker.
> > Any idea?
> 
> Marcelo,
> 
> why don't you answer my proposal to set the path in preferences? Didn't it 
> work?
> 
> As I've said already enchant has no good support in LyX.
> I cannot help you with enchant trouble shooting.
> Perhaps some other user can help you.
> 
> Stephan
> 
> 
> > 
> > 
> > El Martes, 4 de noviembre, 2014 16:12:04, Stephan Witt  
> > escribió:
> > 
> > 
> > 
> > Am 04.11.2014 um 17:27 schrieb Marcelo Acuña :
> > 
> >> Stephan:  
> >>  "Which spell checker has a spanish dictionary?"
> >>  ispell, aspell, myspell
> > 
> > myspell is the the only usable package in your scenario. In fact it's 
> > hunspell. The debian package puts the dictionaries into 
> > /usr/share/hunspell. (At least the package contents here says so: 
> > https://packages.debian.org/wheezy/all/myspell-es/filelist)
> > 
> > So you may enter the mentioned path into your preferences and see if it 
> > works. 
> > 
> > Stephan
> > 
> >> 
> >>  "LyX has to be compiled with hunspell support. That's enough."
> >> 
> >> Yes. I installed all lib and necesary modules for enchant and hunspell, 
> >> when I run ./configure I get all the messages that say enchant and 
> >> hunspell are ready.
> >> 
> >> Marcelo
> >> 
> >> El Lunes, 3 de noviembre, 2014 12:50:05, Stephan Witt  
> >> escribió:
> >> 
> >> 
> >> Am 03.11.2014 um 16:19 schrieb Marcelo Acuña :
> >> 
> >> > The problem with hunspell is that debian no have spanish dictionary for 
> >> > hunspell.
> >> 
> >> Then you have to grab them from other source.
> >> 
> >> Which spell checker has a spanish dictionary?
> >> 
> >> > Plus I installed hunspell but is not recongized by lyx 2.1.x.
> >> 
> >> LyX has to be compiled with hunspell support. That's enough.
> >> And you has to point it to the dictionaries if you have put them
> >> to a non-standard place (/usr/share/myspell is standard for LyX).
> >> 
> >> Stephan
> >> 
> >> 
> >> > El Lunes, 3 de noviembre, 2014 10:23:05, Stephan Witt  
> >> > escribió:
> >> > 
> >> > 
> >> > Am 03.11.2014 um 05:41 schrieb John Coppens :
> >> > 
> >> > > On Sun, 2 Nov 2014 22:43:17 +0100
> >> > > Stephan Witt  wrote:
> >> > > 
> >> > >> Can you try the Hunspell package, please?
> >> > >> Enchant support in LyX 2.1 is not very good.
> >> > > 
> >> > > I have exactly the same problem with hunspell. I compiled and 
> >> > > installed it,
> >> > > added en_US and es_ES dictionaries, and tested it on a couple of text
> >> > > files from the console - no problem.
> >> > > 
> >> > > When I start it from LyX, I get the message "Spellchecker has no
> >> > > dictionaries"
> >> > 
> >> > So, the dictionaries are not found.
> >> > 
> >> > The hunspell backend is better prepared for this situation, though.
> >> > You can open the message pane (in View menu) and enable debug messages
> >> > for "Files used by LyX". Then make sure you've enabled the Hunspell 
> >> > checker in preferences. Now you can start the spell check and you'll see
> >> > the files/directories LyX is looking for dictionaries in message pane.
> >> > 
> >> > > Strange: I configured Hunspell in LyX and did an strace. In the strace
> >> > > output I found:
> >> > > 
> >> > > open("/usr/lib64/libhunspell-1.3.so.0", O_RDONLY|O_CLOEXEC) = 3
> >> > > read(3, 
> >> > > "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\224\0\0\0\0\0\0"..., 
> >> > > 832) = 832
> >> > > fstat(3, {st_mode=S_IFREG|0755, st_size=985236, ...}) = 0
> >> > > mmap(NULL, 2431520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
> >> > > 0) = 

Yosemite problems...

2014-11-12 Thread Murat Yildizoglu
Hi,
I have updated by MacBook to Yosemite and LyX to the last version
(2.1.2.1). This solves the problem of only being able to reconfigure LyX
after having launched it from the command line.
But I have now another problem, the figures in PDF format are not loaded in
LyX. It says that it cannot convert them to a loadable format. I have both
ImageMagick and GhostScript installed via MacPorts (that I have also
updated), and, when I launch LyX from the terminal, it can convert the
graphics and show them on the screen.

Is this an unsolvable problem, or can we do something for getting back the
functionality of LyX?

An aside, in case you are worrying about this: I have checked that KnitR
files compile without any problem.

Any idea about the solution?

Best regards,

Murat

-- 


*Prof. Murat Yildizoglu*

Note: Please use the following address as such

UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE

Bureau : E-331

mail: yildi-at-u-bordeaux4.fr

web: yildizoglu.info


Re: Custom layout file: in preamble styles with custom latex commands

2014-11-12 Thread Ernesto Posse
Thanks. That's quite nice, but it doesn't work quite as expected.

I tried the two forms, arguments with and without 'post:' and I get the
same result: the second argument of the command is the "body" (the text
that follows all arguments) and "Mandatory 0" seems to be ignored (the
generated argument is enclosed in {...} rather than [...]). For example, if
in the LyX work area I write the following (with text enclosed in <...>
representing the style name and <...>[ ... ] representing an argument inset)

 [D.2.4.1] [Software Engineering]
[Software/Program Verification]  [Formal methods]
Some other text

Then the resulting code is

\category{D.2.4.1}{Some other text}{Software Engineering}{Software/Program
Verification}{Formal  methods}

So it looks like all arguments after the first are treated as if they where
tagged with 'post:' and the optional flag seems to be ignored.

Is this a bug or am I missing something?






On Wed, Nov 12, 2014 at 2:08 PM, Jürgen Spitzmüller  wrote:

> 2014-11-12 20:01 GMT+01:00 Jürgen Spitzmüller:
>
>
>> However, if you use LyX 2.1, you do not need an own command, since the
>> command in question is possible with the help of the new argument syntax:
>>
>> Style Category
>> InPreamble1
>> LabelTypeStatic
>> LabelString"Category"
>> LatexTypeCommand
>> LatexNamecategory
>> Argument 1
>> Mandatory 1
>> LabelString"CR number"
>> EndArgument
>> Argument 2
>> Mandatory 1
>> LabelString"Category"
>> EndArgument
>> Argument 3
>> Mandatory 1
>> LabelString"Sub-Category"
>> EndArgument
>> Argument 4
>> LabelString"Subject Descriptor"
>> EndArgument
>> MarginDynamic
>> Labelsepxx
>> LabelFont
>> FamilySans
>> SeriesBold
>> ShapeSlanted
>> SizeNormal
>> ColorBlue
>> EndFont
>> End
>>
>
>
> Sorry, this should be:
>
> Style Category
> InPreamble1
> LabelTypeStatic
> LabelString"Category"
> LatexTypeCommand
> LatexNamecategory
> Argument 1
> Mandatory 1
> LabelString"CR number"
> EndArgument
> Argument post:1
> Mandatory 1
> LabelString"Sub-Category"
> EndArgument
> Argument post:2
> LabelString"Subject Descriptor"
> EndArgument
> MarginDynamic
> Labelsepxx
> LabelFont
> FamilySans
> SeriesBold
> ShapeSlanted
> SizeNormal
> ColorBlue
> EndFont
> End
>
>
> Jürgen
>
>


-- 
Ernesto Posse
Zeligsoft.com


Re: Yosemite problems...

2014-11-12 Thread Christopher Menzel
I've been having this problem with embedded PDFs as well since at least 
2.1.1. (As with Murat, they do render successfully if I start LyX from 
the CL.)


-chris

Murat Yildizoglu wrote:

Hi,
I have updated by MacBook to Yosemite and LyX to the last version 
(2.1.2.1). This solves the problem of only being able to reconfigure 
LyX after having launched it from the command line.
But I have now another problem, the figures in PDF format are not 
loaded in LyX. It says that it cannot convert them to a loadable 
format. I have both ImageMagick and GhostScript installed via MacPorts 
(that I have also updated), and, when I launch LyX from the terminal, 
it can convert the graphics and show them on the screen.


Is this an unsolvable problem, or can we do something for getting back 
the functionality of LyX?


An aside, in case you are worrying about this: I have checked that 
KnitR files compile without any problem.


Any idea about the solution?

Best regards,

Murat


Re: Yosemite problems...

2014-11-12 Thread Richard Heck


(Sorry for top-posting, but) Does everything work if you launch LyX 
from the command line?


Richard


On 11/12/2014 07:41 PM, Murat Yildizoglu wrote:

Hi,
I have updated by MacBook to Yosemite and LyX to the last version 
(2.1.2.1). This solves the problem of only being able to reconfigure 
LyX after having launched it from the command line.
But I have now another problem, the figures in PDF format are not 
loaded in LyX. It says that it cannot convert them to a loadable 
format. I have both ImageMagick and GhostScript installed via MacPorts 
(that I have also updated), and, when I launch LyX from the terminal, 
it can convert the graphics and show them on the screen.


Is this an unsolvable problem, or can we do something for getting back 
the functionality of LyX?


An aside, in case you are worrying about this: I have checked that 
KnitR files compile without any problem.


Any idea about the solution?

Best regards,

Murat

--


*Prof. Murat Yildizoglu*

Note: Please use the following address as such

UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE

Bureau : E-331

mail: yildi-at-u-bordeaux4.fr 

web: yildizoglu.info 




Re: Yosemite problems...

2014-11-12 Thread Christopher Menzel


(Sorry for top-posting, but) Does everything work if you launch
LyX from the command line?



I think he affirmed this: "...when I launch LyX from the terminal, it 
can convert the [PDF] graphics and show them on the screen." This is my 
experience as well.


-chris



On 11/12/2014 07:41 PM, Murat Yildizoglu wrote:


Hi,
I have updated by MacBook to Yosemite and LyX to the last version
(2.1.2.1). This solves the problem of only being able to reconfigure
LyX after having launched it from the command line.
But I have now another problem, the figures in PDF format are not
loaded in LyX. It says that it cannot convert them to a loadable
format. I have both ImageMagick and GhostScript installed via
MacPorts (that I have also updated), and, when I launch LyX from the
terminal, it can convert the graphics and show them on the screen.

Is this an unsolvable problem, or can we do something for getting
back the functionality of LyX?

An aside, in case you are worrying about this: I have checked that
KnitR files compile without any problem.

Any idea about the solution?

Best regards,

Murat

--


*Prof. Murat Yildizoglu*

Note: Please use the following address as such

UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE

Bureau : E-331

mail: yildi-at-u-bordeaux4.fr 

web: yildizoglu.info 




Probelm to download LyX

2014-11-12 Thread Md Forhad Zaman
Hi there,

I just wondering to download the Lyx software for windows version. Since today 
morning, I have tried many times to download the software from the site as 
http://www.lyx.org/Download , but I unable to download that. Can you please 
help me in this regards.

Thanks.

Best Regards,
--
Md. Forhad Zaman
Postgraduate Research Student
UNSW Canberra, Australia
Room No.-15/G03, Phn No. - 88191,
Mobile - 0426642982
email - md.za...@student.adfa.edu.au
Alternative mail - m.fza...@yahoo.com
--





Re: Probelm to download LyX

2014-11-12 Thread Scott Kostyshak
On Wed, Nov 12, 2014 at 8:04 PM, Md Forhad Zaman
 wrote:
> Hi there,
>
>
>
> I just wondering to download the Lyx software for windows version. Since
> today morning, I have tried many times to download the software from the
> site as http://www.lyx.org/Download , but I unable to download that. Can you
> please help me in this regards.
>
>
>
> Thanks.
>
>
>
> Best Regards,
>
> --
>
> Md. Forhad Zaman
> Postgraduate Research Student
> UNSW Canberra, Australia
> Room No.-15/G03, Phn No. - 88191,
>
> Mobile - 0426642982
> email - md.za...@student.adfa.edu.au
>
> Alternative mail - m.fza...@yahoo.com
>
> --

Hi,

Did you try the mirrors (listed on the download page)?

Best,

Scott


Re: Probelm to download LyX

2014-11-12 Thread Scott Kostyshak
On Wed, Nov 12, 2014 at 8:14 PM, Md Forhad Zaman
 wrote:
> I went there, but what does it mean? A number of files come after clicking on 
> mirror and which one to be downloaded? Sorry to bother, actually I'm very 
> beginner in LyX.
>
> Thanks
> FORHAD

Please respond to the list, not to me personally.

Here might be what you want:
ftp://bo.mirror.garr.it/mirrors/lyx/bin/2.1.2/
Unless you have a LaTeX installed, you probably want the bundle:
ftp://bo.mirror.garr.it/mirrors/lyx/bin/2.1.2/LyX-2.1.2-Bundle-1.exe

Best,

Scott