Re: How to configure plantuml with lyx

2014-01-17 Thread rajender saini
Thanks Rainer, I am able to generate diagram into lyx master file using the
steps shared by you. Thank you very much.



My master file include the .plantuml file as graphic as suggested by you
and it is working fine.

I wanted to export whole file as PDF so

Next I used inkscape to convert SVG to PDF by adding convertor.

when i run export as PDF image is not included into the master PDF doc.


 I can see the SVG to PDF conversion happening into the temp cache
directory. but somehow it is not included into master file any pointer will
help.


Regards,
Rajender Saini


On Thu, Jan 16, 2014 at 11:56 AM, rajender saini rajendersa...@gmail.comwrote:

 Thank you very much Rainer for immediate response. I will follow these
 steps and come back if I have any issue.


 On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into the required
 formats.

 The conversion of svg (a vector format) to eps, PDF and PNG
 is done by rsvg, which is detected and configured automatically by
 LyX. If you don't have it installed, install it and re-configure :LyX
 and it should be detected.

 Coming back to plantuml: The converter to be defined converts the
 .plantuml to a graphics format .svg (vector):

 - From format: plantuml
 To format:  SVG
 Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

 The preference file line is:

 \converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
 $$o -tsvg 

 The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
 *not* the .jar file but the following:

 ### BEGIN FILE ##
 #!/bin/sh
 # PlantUML Launcher
 #
 # This script is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This script distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 # License for more details.
 # You should have received a copy of the GNU General Public
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301,
 # USA.
 #
 # Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

 if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
 JAVA=${JAVA_HOME}/bin/java
 elif [ -x /usr/bin/java ] ; then
 JAVA=/usr/bin/java
 else
 echo Cannot find JVM
 exit 1
 fi

 $JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
 ### END FILE ##

 It is from https://gist.github.com/eelcocramer/4502562 and it simply
 makes
 calling plantuml much easier.

 Make sure tht this ~/bin/plantuml is executable!

 Now, in LyX, you simply have to add a .plantuml file as a picture, and
 you should be able to edit it via right-mouse-click and it should be
 converted into all the needed formats.

 Now This worked for me under Mac (I am using it right now) and Linux
 (used it before). There might be differences under Windows, but I
 would suggest to ask on the mailing list if you don't get it to work,
 so that therte is a reference to this.


 Hope this helps,

 Rainer



 
  -- Raj Ph:+17737706099

 - --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
 Biology, UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :   +33 - (0)9 53 10 27 44
 Cell:   +33 - (0)6 85 62 59 98
 Fax :   +33 - (0)9 58 10 27 44

 Fax (D):+49 - 

Re: How to configure plantuml with lyx

2014-01-17 Thread rajender saini
Thank you very much Rainer for immediate response. I will follow these
steps and come back if I have any issue.


On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into the required
 formats.

 The conversion of svg (a vector format) to eps, PDF and PNG
 is done by rsvg, which is detected and configured automatically by
 LyX. If you don't have it installed, install it and re-configure :LyX
 and it should be detected.

 Coming back to plantuml: The converter to be defined converts the
 .plantuml to a graphics format .svg (vector):

 - From format: plantuml
 To format:  SVG
 Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

 The preference file line is:

 \converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
 $$o -tsvg 

 The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
 *not* the .jar file but the following:

 ### BEGIN FILE ##
 #!/bin/sh
 # PlantUML Launcher
 #
 # This script is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This script distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 # License for more details.
 # You should have received a copy of the GNU General Public
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301,
 # USA.
 #
 # Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

 if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
 JAVA=${JAVA_HOME}/bin/java
 elif [ -x /usr/bin/java ] ; then
 JAVA=/usr/bin/java
 else
 echo Cannot find JVM
 exit 1
 fi

 $JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
 ### END FILE ##

 It is from https://gist.github.com/eelcocramer/4502562 and it simply makes
 calling plantuml much easier.

 Make sure tht this ~/bin/plantuml is executable!

 Now, in LyX, you simply have to add a .plantuml file as a picture, and
 you should be able to edit it via right-mouse-click and it should be
 converted into all the needed formats.

 Now This worked for me under Mac (I am using it right now) and Linux
 (used it before). There might be differences under Windows, but I
 would suggest to ask on the mailing list if you don't get it to work,
 so that therte is a reference to this.


 Hope this helps,

 Rainer



 
  -- Raj Ph:+17737706099

 - --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
 Biology, UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :   +33 - (0)9 53 10 27 44
 Cell:   +33 - (0)6 85 62 59 98
 Fax :   +33 - (0)9 58 10 27 44

 Fax (D):+49 - (0)3 21 21 25 22 44

 email:  rai...@krugs.de

 Skype:  RMkrug
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQEcBAEBAgAGBQJS152qAAoJENvXNx4PUvmCfaYH/2CBavtVCI5a37KO3sqdoR7g
 JgntyBmQCIGZ5i9lwLpj/e/P95THCoPTpFo8nv09JM89KMWVgU3CdoJI0cUzelPH
 /47ZdhPQYEEYSiA8H+Zsp9AgE4ess0gsB/CWE9HVDnAXZIwWhOHC4Mwys8umeUOO
 AEqK1IvBtXH2b5PMDSLJt/7DEL/kdFst/59YaAQl3lmKQnwbGUz/vgkXhbULILm2
 bq6PfUSlNHc+kggvAUolotSXzsBsvhrb+dU51jUG8c8DIM7WVHhAvBDJhoZVVNdZ
 JSVIDVbyPab8GFNDfeJhhJ+xf6GRnZZb5/fION7zoEbNLtzMbXZcqODeUGceVI0=
 =HBXj
 -END PGP SIGNATURE-




-- 
Raj

Re: How to configure plantuml with lyx

2014-01-17 Thread Rainer M Krug
On 17 January 2014 09:01, rajender saini rajendersa...@gmail.com wrote:

 Thanks Rainer, I am able to generate diagram into lyx master file using
 the steps shared by you. Thank you very much.



 My master file include the .plantuml file as graphic as suggested by you
 and it is working fine.


I assume you mean that you can see the .plantuml file as a picture in LyX?
Good to hear. So the .plantuml - .svg - .png is working.


 I wanted to export whole file as PDF so


pdflatex? That is what I use.



 Next I used inkscape to convert SVG to PDF by adding convertor.

 when i run export as PDF image is not included into the master PDF doc.


The conversion should be done by LyX. AS I said, I use rsvg, and it works
as expected.




  I can see the SVG to PDF conversion happening into the temp cache
 directory. but somehow it is not included into master file any pointer will
 help.


Hm - no idea here - if the conversion to a .svg - .pdf I have no idea why
it is not included. Just make a small example .lyx file and post it here
together with the .plantuml file so that I can try it out if it works here.

Cheers,

Rainer





 Regards,
 Rajender Saini


 On Thu, Jan 16, 2014 at 11:56 AM, rajender saini 
 rajendersa...@gmail.comwrote:

 Thank you very much Rainer for immediate response. I will follow these
 steps and come back if I have any issue.


 On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into the required
 formats.

 The conversion of svg (a vector format) to eps, PDF and PNG
 is done by rsvg, which is detected and configured automatically by
 LyX. If you don't have it installed, install it and re-configure :LyX
 and it should be detected.

 Coming back to plantuml: The converter to be defined converts the
 .plantuml to a graphics format .svg (vector):

 - From format: plantuml
 To format:  SVG
 Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

 The preference file line is:

 \converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
 $$o -tsvg 

 The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
 *not* the .jar file but the following:

 ### BEGIN FILE ##
 #!/bin/sh
 # PlantUML Launcher
 #
 # This script is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This script distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 # License for more details.
 # You should have received a copy of the GNU General Public
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301,
 # USA.
 #
 # Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

 if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
 JAVA=${JAVA_HOME}/bin/java
 elif [ -x /usr/bin/java ] ; then
 JAVA=/usr/bin/java
 else
 echo Cannot find JVM
 exit 1
 fi

 $JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
 ### END FILE ##

 It is from https://gist.github.com/eelcocramer/4502562 and it simply
 makes
 calling plantuml much easier.

 Make sure tht this ~/bin/plantuml is executable!

 Now, in LyX, you simply have to add a .plantuml file as a picture, and
 you should be able to edit it via right-mouse-click and it should be
 converted into all the needed formats.

 Now This worked for me under Mac (I am 

Re: Are there problems with lyx-ftp-server?

2014-01-17 Thread Rainer M Krug
On 16 January 2014 22:25, Richard Talley rich.tal...@gmail.com wrote:

 That was interesting.

 Evidently Firefox had decided for me that it would take over handling the
 FTP protocol. When I pasted
 ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/lyx-2.1.0beta2 into Safari, it
 opened Firefox. I hadn't noticed before because I usually use a standalone
 FTP client.

 Jup - same here.


 I used the RCDefaultApp preference pane (
 http://www.rubicode.com/Software/RCDefaultApp/) to give FTP handling back
 to Finder. Safari then turned the FTP handling over to Finder and I was
 then able to connect as a guest and drag and drop the Mac dmg into my
 Downloads folder. A little slow, over 10 minutes to download, but it worked.


Used the default Guest account on the Mac, and it also downloads - over 10
Minute seems right.

Cheers,

Rainer



 Safari 6.1.1 on OS X 10.8.5.

 -- Rich



 On Thu, Jan 16, 2014 at 1:38 PM, Scott Kostyshak skost...@lyx.org wrote:

 On Thu, Jan 16, 2014 at 3:04 PM, Uwe Ade uwe@gmx.de wrote:
  Hello,
 
  me again. Sorry for the disagreeability. I have the problem with safari
 und
  Pathfinder on my mac. The Download doesn’t work. As I read the tip from
  Anders  i installed Firefox and the download and the installation of lyx
  works fine.
 
  In Future i will try to give more and clear descriptions.
 
  Thanks for the help an this Mailinglist. For me it´s great!!

 Thanks for following up and thanks to Anders for the solultion.

 Glad you got it working!

 It would be nice if another Mac user could test using Safari.

 Scott





-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


Re: simple algorithm float numbering (1, 2, 3,...)

2014-01-17 Thread Matěj Šmíd
I found out the solution. Just insert in the Latex Preamble:


\usepackage{chngcntr}

\counterwithout{figure}{chapter}

\counterwithout{equation}{chapter}

\counterwithout{algorithm}{chapter}


and you got simple (1, 2, 3, ...) numbering of figures, equations and
algorithms.


Cheers,

Matej.


On Fri, Jan 10, 2014 at 12:04 PM, Matěj Šmíd m...@matejsmid.cz wrote:

 Hello,

 I would like to have simple document-wide numbering of the algorithm
 floats (1, 2, 3, ...).

 Currently the algorithm floats are defined as:

 \floatstyle{ruled}

 \newfloat{algorithm}{tbp}{loa}[chapter]
 \providecommand{\algorithmname}{Algorithm}
 \floatname{algorithm}{\protect\algorithmname}

 The only change needed is to remove the [chapter] optional argument to
 \newfloat{algorithm}

 \newfloat{algorithm}{tbp}{loa}

 Is there a possibility to redefine the algorithm float?

 Thanks,
 Matej.






Automated PDF creation under windows

2014-01-17 Thread Matthias Weißer

Hi

I would like to export a lyx file on the command line to a PDF. This 
should be included in a automated process building a bigger software 
package. I tried


Lyx.exe --export pdflatex document.lyx

but nothing happens. I can see that lyx.exe comes up in the background, 
starts some child processes (python.exe) and then it exits after a 
couple of seconds and the PDF isn't created. Exporting the file from the 
editor takes about a minute or so and end successfully.


Even

Lyx.exe -help

doens't produce any output. Lyx version is 2.9

Any hints?

Regards
Matthias



Re: Are there problems with lyx-ftp-server?

2014-01-17 Thread Stephan Witt
Am 16.01.2014 um 22:25 schrieb Richard Talley rich.tal...@gmail.com:

 That was interesting.
 
 Evidently Firefox had decided for me that it would take over handling the FTP 
 protocol. When I pasted 
 ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/lyx-2.1.0beta2 into Safari, it opened 
 Firefox. I hadn't noticed before because I usually use a standalone FTP 
 client.
 
 I used the RCDefaultApp preference pane 
 (http://www.rubicode.com/Software/RCDefaultApp/) to give FTP handling back to 
 Finder. Safari then turned the FTP handling over to Finder and I was then 
 able to connect as a guest and drag and drop the Mac dmg into my Downloads 
 folder. A little slow, over 10 minutes to download, but it worked.
 
 Safari 6.1.1 on OS X 10.8.5.

Please note that, as I already wrote, the default Mac OS X behavior is to
open the Finder. This was apparently overridden when installing firefox.

Stephan

 
 On Thu, Jan 16, 2014 at 1:38 PM, Scott Kostyshak skost...@lyx.org wrote:
 On Thu, Jan 16, 2014 at 3:04 PM, Uwe Ade uwe@gmx.de wrote:
  Hello,
 
  me again. Sorry for the disagreeability. I have the problem with safari und
  Pathfinder on my mac. The Download doesn’t work. As I read the tip from
  Anders  i installed Firefox and the download and the installation of lyx
  works fine.
 
  In Future i will try to give more and clear descriptions.
 
  Thanks for the help an this Mailinglist. For me it´s great!!
 
 Thanks for following up and thanks to Anders for the solultion.
 
 Glad you got it working!
 
 It would be nice if another Mac user could test using Safari.
 
 Scott
 



Lyx with spelling dictionary

2014-01-17 Thread Ben Lowe
Hi,

I'm using redhat 6; I've tried downloading the latest source and
following these steps:
http://wiki.lyx.org/LyX/CreatingLyXRPM#toc3

And also tried creating an RPM package, however the dictionary choice
in preferences  language settings  spellchecker; all options are
greyed out, and I cannot provide a hunspell path under preferences
paths as this is greyed out. I have relevant hunspell dictionary
files in the ~/.lyx/dicts/ folder and they are named correctly.

This a common issue with linux due to not compiling it with
spellchecking support, and a fix is apparently to use 'Enchant' engine
instead, however I have the Enchant package, and I still cannot select
any spellchecker engines from the spellchecker menu.

Does anyone have any suggestions on how I can compile lyx on Redhat
with spell checking support?

Many Thanks,

Ben Lowe


Re: Lyx with spelling dictionary

2014-01-17 Thread Stephan Witt
Am 17.01.2014 um 13:44 schrieb Ben Lowe ben.lowe...@googlemail.com:

 Hi,
 
 I'm using redhat 6; I've tried downloading the latest source and
 following these steps:
 http://wiki.lyx.org/LyX/CreatingLyXRPM#toc3
 
 And also tried creating an RPM package, however the dictionary choice
 in preferences  language settings  spellchecker; all options are
 greyed out, and I cannot provide a hunspell path under preferences
 paths as this is greyed out. I have relevant hunspell dictionary
 files in the ~/.lyx/dicts/ folder and they are named correctly.
 
 This a common issue with linux due to not compiling it with
 spellchecking support, and a fix is apparently to use 'Enchant' engine
 instead, however I have the Enchant package, and I still cannot select
 any spellchecker engines from the spellchecker menu.
 
 Does anyone have any suggestions on how I can compile lyx on Redhat
 with spell checking support?

Hi,

you have to provide the developer packages of the spell checker of your
choice at compile time (of LyX). In case it's enchant you have to configure
enchant, in case it's hunspell you may provide the path for the dictionary
files under preferences if they're not found automatically.

Stephan


Re: Lyx with spelling dictionary

2014-01-17 Thread Ben Lowe
Dear Stephan,

Thanks for your quick response. What option do I provide lyx with in
order to compile with enchant/hunspell etc.? I cannot find this
information in the README, INSTALL etc.,

Until I do this, I cannot provide a path for Hunspell as the path
section is greyed out, and I cannot select the Enchant engine.

-Ben


On 17 January 2014 13:11, Stephan Witt st.w...@gmx.net wrote:
 Am 17.01.2014 um 13:44 schrieb Ben Lowe ben.lowe...@googlemail.com:

 Hi,

 I'm using redhat 6; I've tried downloading the latest source and
 following these steps:
 http://wiki.lyx.org/LyX/CreatingLyXRPM#toc3

 And also tried creating an RPM package, however the dictionary choice
 in preferences  language settings  spellchecker; all options are
 greyed out, and I cannot provide a hunspell path under preferences
 paths as this is greyed out. I have relevant hunspell dictionary
 files in the ~/.lyx/dicts/ folder and they are named correctly.

 This a common issue with linux due to not compiling it with
 spellchecking support, and a fix is apparently to use 'Enchant' engine
 instead, however I have the Enchant package, and I still cannot select
 any spellchecker engines from the spellchecker menu.

 Does anyone have any suggestions on how I can compile lyx on Redhat
 with spell checking support?

 Hi,

 you have to provide the developer packages of the spell checker of your
 choice at compile time (of LyX). In case it's enchant you have to configure
 enchant, in case it's hunspell you may provide the path for the dictionary
 files under preferences if they're not found automatically.

 Stephan


Re: Lyx with spelling dictionary

2014-01-17 Thread Stephan Witt
Am 17.01.2014 um 14:55 schrieb Ben Lowe bml1...@soton.ac.uk:

 Dear Stephan,
 
 Thanks for your quick response. What option do I provide lyx with in
 order to compile with enchant/hunspell etc.? I cannot find this
 information in the README, INSTALL etc.,

Sorry for being unclear.

You have to install the developer packages - aka rpms - for
the spell checker of your choice. Something like hunspell-devel-*
for hunspell (I don't know the package name for RedHat and I don't
know either if it exists).

After doing so LyX detects it at configure time and will be build
with hunspell support. This should be mentioned in config.log.

There is no configure option.

 Until I do this, I cannot provide a path for Hunspell as the path
 section is greyed out, and I cannot select the Enchant engine.

Hunspell is not Enchant. Hunspell path is for hunspell spell checker.

I'd recommend using hunspell. I don't know if enchant is usable.

Stephan

 On 17 January 2014 13:11, Stephan Witt st.w...@gmx.net wrote:
 Am 17.01.2014 um 13:44 schrieb Ben Lowe ben.lowe...@googlemail.com:
 
 Hi,
 
 I'm using redhat 6; I've tried downloading the latest source and
 following these steps:
 http://wiki.lyx.org/LyX/CreatingLyXRPM#toc3
 
 And also tried creating an RPM package, however the dictionary choice
 in preferences  language settings  spellchecker; all options are
 greyed out, and I cannot provide a hunspell path under preferences
 paths as this is greyed out. I have relevant hunspell dictionary
 files in the ~/.lyx/dicts/ folder and they are named correctly.
 
 This a common issue with linux due to not compiling it with
 spellchecking support, and a fix is apparently to use 'Enchant' engine
 instead, however I have the Enchant package, and I still cannot select
 any spellchecker engines from the spellchecker menu.
 
 Does anyone have any suggestions on how I can compile lyx on Redhat
 with spell checking support?
 
 Hi,
 
 you have to provide the developer packages of the spell checker of your
 choice at compile time (of LyX). In case it's enchant you have to configure
 enchant, in case it's hunspell you may provide the path for the dictionary
 files under preferences if they're not found automatically.
 
 Stephan



Re: Automated PDF creation under windows

2014-01-17 Thread Itai Shaked
I believe the correct format name to use is the short name, so for
pdflatex it would be
lyx --export pdf2 document.lyx

Look in Tools-Preferences-File Handling-File Formats  to see the short
name for each format.


On Fri, Jan 17, 2014 at 10:25 AM, Matthias Weißer weiss...@arcor.de wrote:

 Hi

 I would like to export a lyx file on the command line to a PDF. This
 should be included in a automated process building a bigger software
 package. I tried

 Lyx.exe --export pdflatex document.lyx

 but nothing happens. I can see that lyx.exe comes up in the background,
 starts some child processes (python.exe) and then it exits after a couple
 of seconds and the PDF isn't created. Exporting the file from the editor
 takes about a minute or so and end successfully.

 Even

 Lyx.exe -help

 doens't produce any output. Lyx version is 2.9

 Any hints?

 Regards
 Matthias




Re: How to configure plantuml with lyx

2014-01-17 Thread rajender saini
Thanks Rainer, I am able to generate diagram into lyx master file using the
steps shared by you. Thank you very much.



My master file include the .plantuml file as graphic as suggested by you
and it is working fine.

I wanted to export whole file as PDF so

Next I used inkscape to convert SVG to PDF by adding convertor.

when i run export as PDF image is not included into the master PDF doc.


 I can see the SVG to PDF conversion happening into the temp cache
directory. but somehow it is not included into master file any pointer will
help.


Regards,
Rajender Saini


On Thu, Jan 16, 2014 at 11:56 AM, rajender saini rajendersa...@gmail.comwrote:

 Thank you very much Rainer for immediate response. I will follow these
 steps and come back if I have any issue.


 On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into the required
 formats.

 The conversion of svg (a vector format) to eps, PDF and PNG
 is done by rsvg, which is detected and configured automatically by
 LyX. If you don't have it installed, install it and re-configure :LyX
 and it should be detected.

 Coming back to plantuml: The converter to be defined converts the
 .plantuml to a graphics format .svg (vector):

 - From format: plantuml
 To format:  SVG
 Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

 The preference file line is:

 \converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
 $$o -tsvg 

 The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
 *not* the .jar file but the following:

 ### BEGIN FILE ##
 #!/bin/sh
 # PlantUML Launcher
 #
 # This script is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This script distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 # License for more details.
 # You should have received a copy of the GNU General Public
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301,
 # USA.
 #
 # Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

 if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
 JAVA=${JAVA_HOME}/bin/java
 elif [ -x /usr/bin/java ] ; then
 JAVA=/usr/bin/java
 else
 echo Cannot find JVM
 exit 1
 fi

 $JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
 ### END FILE ##

 It is from https://gist.github.com/eelcocramer/4502562 and it simply
 makes
 calling plantuml much easier.

 Make sure tht this ~/bin/plantuml is executable!

 Now, in LyX, you simply have to add a .plantuml file as a picture, and
 you should be able to edit it via right-mouse-click and it should be
 converted into all the needed formats.

 Now This worked for me under Mac (I am using it right now) and Linux
 (used it before). There might be differences under Windows, but I
 would suggest to ask on the mailing list if you don't get it to work,
 so that therte is a reference to this.


 Hope this helps,

 Rainer



 
  -- Raj Ph:+17737706099

 - --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
 Biology, UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :   +33 - (0)9 53 10 27 44
 Cell:   +33 - (0)6 85 62 59 98
 Fax :   +33 - (0)9 58 10 27 44

 Fax (D):+49 - 

Re: How to configure plantuml with lyx

2014-01-17 Thread rajender saini
Thank you very much Rainer for immediate response. I will follow these
steps and come back if I have any issue.


On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into the required
 formats.

 The conversion of svg (a vector format) to eps, PDF and PNG
 is done by rsvg, which is detected and configured automatically by
 LyX. If you don't have it installed, install it and re-configure :LyX
 and it should be detected.

 Coming back to plantuml: The converter to be defined converts the
 .plantuml to a graphics format .svg (vector):

 - From format: plantuml
 To format:  SVG
 Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

 The preference file line is:

 \converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
 $$o -tsvg 

 The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
 *not* the .jar file but the following:

 ### BEGIN FILE ##
 #!/bin/sh
 # PlantUML Launcher
 #
 # This script is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This script distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 # License for more details.
 # You should have received a copy of the GNU General Public
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301,
 # USA.
 #
 # Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

 if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
 JAVA=${JAVA_HOME}/bin/java
 elif [ -x /usr/bin/java ] ; then
 JAVA=/usr/bin/java
 else
 echo Cannot find JVM
 exit 1
 fi

 $JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
 ### END FILE ##

 It is from https://gist.github.com/eelcocramer/4502562 and it simply makes
 calling plantuml much easier.

 Make sure tht this ~/bin/plantuml is executable!

 Now, in LyX, you simply have to add a .plantuml file as a picture, and
 you should be able to edit it via right-mouse-click and it should be
 converted into all the needed formats.

 Now This worked for me under Mac (I am using it right now) and Linux
 (used it before). There might be differences under Windows, but I
 would suggest to ask on the mailing list if you don't get it to work,
 so that therte is a reference to this.


 Hope this helps,

 Rainer



 
  -- Raj Ph:+17737706099

 - --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
 Biology, UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :   +33 - (0)9 53 10 27 44
 Cell:   +33 - (0)6 85 62 59 98
 Fax :   +33 - (0)9 58 10 27 44

 Fax (D):+49 - (0)3 21 21 25 22 44

 email:  rai...@krugs.de

 Skype:  RMkrug
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQEcBAEBAgAGBQJS152qAAoJENvXNx4PUvmCfaYH/2CBavtVCI5a37KO3sqdoR7g
 JgntyBmQCIGZ5i9lwLpj/e/P95THCoPTpFo8nv09JM89KMWVgU3CdoJI0cUzelPH
 /47ZdhPQYEEYSiA8H+Zsp9AgE4ess0gsB/CWE9HVDnAXZIwWhOHC4Mwys8umeUOO
 AEqK1IvBtXH2b5PMDSLJt/7DEL/kdFst/59YaAQl3lmKQnwbGUz/vgkXhbULILm2
 bq6PfUSlNHc+kggvAUolotSXzsBsvhrb+dU51jUG8c8DIM7WVHhAvBDJhoZVVNdZ
 JSVIDVbyPab8GFNDfeJhhJ+xf6GRnZZb5/fION7zoEbNLtzMbXZcqODeUGceVI0=
 =HBXj
 -END PGP SIGNATURE-




-- 
Raj

Re: How to configure plantuml with lyx

2014-01-17 Thread Rainer M Krug
On 17 January 2014 09:01, rajender saini rajendersa...@gmail.com wrote:

 Thanks Rainer, I am able to generate diagram into lyx master file using
 the steps shared by you. Thank you very much.



 My master file include the .plantuml file as graphic as suggested by you
 and it is working fine.


I assume you mean that you can see the .plantuml file as a picture in LyX?
Good to hear. So the .plantuml - .svg - .png is working.


 I wanted to export whole file as PDF so


pdflatex? That is what I use.



 Next I used inkscape to convert SVG to PDF by adding convertor.

 when i run export as PDF image is not included into the master PDF doc.


The conversion should be done by LyX. AS I said, I use rsvg, and it works
as expected.




  I can see the SVG to PDF conversion happening into the temp cache
 directory. but somehow it is not included into master file any pointer will
 help.


Hm - no idea here - if the conversion to a .svg - .pdf I have no idea why
it is not included. Just make a small example .lyx file and post it here
together with the .plantuml file so that I can try it out if it works here.

Cheers,

Rainer





 Regards,
 Rajender Saini


 On Thu, Jan 16, 2014 at 11:56 AM, rajender saini 
 rajendersa...@gmail.comwrote:

 Thank you very much Rainer for immediate response. I will follow these
 steps and come back if I have any issue.


 On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into the required
 formats.

 The conversion of svg (a vector format) to eps, PDF and PNG
 is done by rsvg, which is detected and configured automatically by
 LyX. If you don't have it installed, install it and re-configure :LyX
 and it should be detected.

 Coming back to plantuml: The converter to be defined converts the
 .plantuml to a graphics format .svg (vector):

 - From format: plantuml
 To format:  SVG
 Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

 The preference file line is:

 \converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
 $$o -tsvg 

 The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
 *not* the .jar file but the following:

 ### BEGIN FILE ##
 #!/bin/sh
 # PlantUML Launcher
 #
 # This script is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This script distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 # License for more details.
 # You should have received a copy of the GNU General Public
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301,
 # USA.
 #
 # Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

 if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
 JAVA=${JAVA_HOME}/bin/java
 elif [ -x /usr/bin/java ] ; then
 JAVA=/usr/bin/java
 else
 echo Cannot find JVM
 exit 1
 fi

 $JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
 ### END FILE ##

 It is from https://gist.github.com/eelcocramer/4502562 and it simply
 makes
 calling plantuml much easier.

 Make sure tht this ~/bin/plantuml is executable!

 Now, in LyX, you simply have to add a .plantuml file as a picture, and
 you should be able to edit it via right-mouse-click and it should be
 converted into all the needed formats.

 Now This worked for me under Mac (I am 

Re: Are there problems with lyx-ftp-server?

2014-01-17 Thread Rainer M Krug
On 16 January 2014 22:25, Richard Talley rich.tal...@gmail.com wrote:

 That was interesting.

 Evidently Firefox had decided for me that it would take over handling the
 FTP protocol. When I pasted
 ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/lyx-2.1.0beta2 into Safari, it
 opened Firefox. I hadn't noticed before because I usually use a standalone
 FTP client.

 Jup - same here.


 I used the RCDefaultApp preference pane (
 http://www.rubicode.com/Software/RCDefaultApp/) to give FTP handling back
 to Finder. Safari then turned the FTP handling over to Finder and I was
 then able to connect as a guest and drag and drop the Mac dmg into my
 Downloads folder. A little slow, over 10 minutes to download, but it worked.


Used the default Guest account on the Mac, and it also downloads - over 10
Minute seems right.

Cheers,

Rainer



 Safari 6.1.1 on OS X 10.8.5.

 -- Rich



 On Thu, Jan 16, 2014 at 1:38 PM, Scott Kostyshak skost...@lyx.org wrote:

 On Thu, Jan 16, 2014 at 3:04 PM, Uwe Ade uwe@gmx.de wrote:
  Hello,
 
  me again. Sorry for the disagreeability. I have the problem with safari
 und
  Pathfinder on my mac. The Download doesn’t work. As I read the tip from
  Anders  i installed Firefox and the download and the installation of lyx
  works fine.
 
  In Future i will try to give more and clear descriptions.
 
  Thanks for the help an this Mailinglist. For me it´s great!!

 Thanks for following up and thanks to Anders for the solultion.

 Glad you got it working!

 It would be nice if another Mac user could test using Safari.

 Scott





-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


Re: simple algorithm float numbering (1, 2, 3,...)

2014-01-17 Thread Matěj Šmíd
I found out the solution. Just insert in the Latex Preamble:


\usepackage{chngcntr}

\counterwithout{figure}{chapter}

\counterwithout{equation}{chapter}

\counterwithout{algorithm}{chapter}


and you got simple (1, 2, 3, ...) numbering of figures, equations and
algorithms.


Cheers,

Matej.


On Fri, Jan 10, 2014 at 12:04 PM, Matěj Šmíd m...@matejsmid.cz wrote:

 Hello,

 I would like to have simple document-wide numbering of the algorithm
 floats (1, 2, 3, ...).

 Currently the algorithm floats are defined as:

 \floatstyle{ruled}

 \newfloat{algorithm}{tbp}{loa}[chapter]
 \providecommand{\algorithmname}{Algorithm}
 \floatname{algorithm}{\protect\algorithmname}

 The only change needed is to remove the [chapter] optional argument to
 \newfloat{algorithm}

 \newfloat{algorithm}{tbp}{loa}

 Is there a possibility to redefine the algorithm float?

 Thanks,
 Matej.






Automated PDF creation under windows

2014-01-17 Thread Matthias Weißer

Hi

I would like to export a lyx file on the command line to a PDF. This 
should be included in a automated process building a bigger software 
package. I tried


Lyx.exe --export pdflatex document.lyx

but nothing happens. I can see that lyx.exe comes up in the background, 
starts some child processes (python.exe) and then it exits after a 
couple of seconds and the PDF isn't created. Exporting the file from the 
editor takes about a minute or so and end successfully.


Even

Lyx.exe -help

doens't produce any output. Lyx version is 2.9

Any hints?

Regards
Matthias



Re: Are there problems with lyx-ftp-server?

2014-01-17 Thread Stephan Witt
Am 16.01.2014 um 22:25 schrieb Richard Talley rich.tal...@gmail.com:

 That was interesting.
 
 Evidently Firefox had decided for me that it would take over handling the FTP 
 protocol. When I pasted 
 ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/lyx-2.1.0beta2 into Safari, it opened 
 Firefox. I hadn't noticed before because I usually use a standalone FTP 
 client.
 
 I used the RCDefaultApp preference pane 
 (http://www.rubicode.com/Software/RCDefaultApp/) to give FTP handling back to 
 Finder. Safari then turned the FTP handling over to Finder and I was then 
 able to connect as a guest and drag and drop the Mac dmg into my Downloads 
 folder. A little slow, over 10 minutes to download, but it worked.
 
 Safari 6.1.1 on OS X 10.8.5.

Please note that, as I already wrote, the default Mac OS X behavior is to
open the Finder. This was apparently overridden when installing firefox.

Stephan

 
 On Thu, Jan 16, 2014 at 1:38 PM, Scott Kostyshak skost...@lyx.org wrote:
 On Thu, Jan 16, 2014 at 3:04 PM, Uwe Ade uwe@gmx.de wrote:
  Hello,
 
  me again. Sorry for the disagreeability. I have the problem with safari und
  Pathfinder on my mac. The Download doesn’t work. As I read the tip from
  Anders  i installed Firefox and the download and the installation of lyx
  works fine.
 
  In Future i will try to give more and clear descriptions.
 
  Thanks for the help an this Mailinglist. For me it´s great!!
 
 Thanks for following up and thanks to Anders for the solultion.
 
 Glad you got it working!
 
 It would be nice if another Mac user could test using Safari.
 
 Scott
 



Lyx with spelling dictionary

2014-01-17 Thread Ben Lowe
Hi,

I'm using redhat 6; I've tried downloading the latest source and
following these steps:
http://wiki.lyx.org/LyX/CreatingLyXRPM#toc3

And also tried creating an RPM package, however the dictionary choice
in preferences  language settings  spellchecker; all options are
greyed out, and I cannot provide a hunspell path under preferences
paths as this is greyed out. I have relevant hunspell dictionary
files in the ~/.lyx/dicts/ folder and they are named correctly.

This a common issue with linux due to not compiling it with
spellchecking support, and a fix is apparently to use 'Enchant' engine
instead, however I have the Enchant package, and I still cannot select
any spellchecker engines from the spellchecker menu.

Does anyone have any suggestions on how I can compile lyx on Redhat
with spell checking support?

Many Thanks,

Ben Lowe


Re: Lyx with spelling dictionary

2014-01-17 Thread Stephan Witt
Am 17.01.2014 um 13:44 schrieb Ben Lowe ben.lowe...@googlemail.com:

 Hi,
 
 I'm using redhat 6; I've tried downloading the latest source and
 following these steps:
 http://wiki.lyx.org/LyX/CreatingLyXRPM#toc3
 
 And also tried creating an RPM package, however the dictionary choice
 in preferences  language settings  spellchecker; all options are
 greyed out, and I cannot provide a hunspell path under preferences
 paths as this is greyed out. I have relevant hunspell dictionary
 files in the ~/.lyx/dicts/ folder and they are named correctly.
 
 This a common issue with linux due to not compiling it with
 spellchecking support, and a fix is apparently to use 'Enchant' engine
 instead, however I have the Enchant package, and I still cannot select
 any spellchecker engines from the spellchecker menu.
 
 Does anyone have any suggestions on how I can compile lyx on Redhat
 with spell checking support?

Hi,

you have to provide the developer packages of the spell checker of your
choice at compile time (of LyX). In case it's enchant you have to configure
enchant, in case it's hunspell you may provide the path for the dictionary
files under preferences if they're not found automatically.

Stephan


Re: Lyx with spelling dictionary

2014-01-17 Thread Ben Lowe
Dear Stephan,

Thanks for your quick response. What option do I provide lyx with in
order to compile with enchant/hunspell etc.? I cannot find this
information in the README, INSTALL etc.,

Until I do this, I cannot provide a path for Hunspell as the path
section is greyed out, and I cannot select the Enchant engine.

-Ben


On 17 January 2014 13:11, Stephan Witt st.w...@gmx.net wrote:
 Am 17.01.2014 um 13:44 schrieb Ben Lowe ben.lowe...@googlemail.com:

 Hi,

 I'm using redhat 6; I've tried downloading the latest source and
 following these steps:
 http://wiki.lyx.org/LyX/CreatingLyXRPM#toc3

 And also tried creating an RPM package, however the dictionary choice
 in preferences  language settings  spellchecker; all options are
 greyed out, and I cannot provide a hunspell path under preferences
 paths as this is greyed out. I have relevant hunspell dictionary
 files in the ~/.lyx/dicts/ folder and they are named correctly.

 This a common issue with linux due to not compiling it with
 spellchecking support, and a fix is apparently to use 'Enchant' engine
 instead, however I have the Enchant package, and I still cannot select
 any spellchecker engines from the spellchecker menu.

 Does anyone have any suggestions on how I can compile lyx on Redhat
 with spell checking support?

 Hi,

 you have to provide the developer packages of the spell checker of your
 choice at compile time (of LyX). In case it's enchant you have to configure
 enchant, in case it's hunspell you may provide the path for the dictionary
 files under preferences if they're not found automatically.

 Stephan


Re: Lyx with spelling dictionary

2014-01-17 Thread Stephan Witt
Am 17.01.2014 um 14:55 schrieb Ben Lowe bml1...@soton.ac.uk:

 Dear Stephan,
 
 Thanks for your quick response. What option do I provide lyx with in
 order to compile with enchant/hunspell etc.? I cannot find this
 information in the README, INSTALL etc.,

Sorry for being unclear.

You have to install the developer packages - aka rpms - for
the spell checker of your choice. Something like hunspell-devel-*
for hunspell (I don't know the package name for RedHat and I don't
know either if it exists).

After doing so LyX detects it at configure time and will be build
with hunspell support. This should be mentioned in config.log.

There is no configure option.

 Until I do this, I cannot provide a path for Hunspell as the path
 section is greyed out, and I cannot select the Enchant engine.

Hunspell is not Enchant. Hunspell path is for hunspell spell checker.

I'd recommend using hunspell. I don't know if enchant is usable.

Stephan

 On 17 January 2014 13:11, Stephan Witt st.w...@gmx.net wrote:
 Am 17.01.2014 um 13:44 schrieb Ben Lowe ben.lowe...@googlemail.com:
 
 Hi,
 
 I'm using redhat 6; I've tried downloading the latest source and
 following these steps:
 http://wiki.lyx.org/LyX/CreatingLyXRPM#toc3
 
 And also tried creating an RPM package, however the dictionary choice
 in preferences  language settings  spellchecker; all options are
 greyed out, and I cannot provide a hunspell path under preferences
 paths as this is greyed out. I have relevant hunspell dictionary
 files in the ~/.lyx/dicts/ folder and they are named correctly.
 
 This a common issue with linux due to not compiling it with
 spellchecking support, and a fix is apparently to use 'Enchant' engine
 instead, however I have the Enchant package, and I still cannot select
 any spellchecker engines from the spellchecker menu.
 
 Does anyone have any suggestions on how I can compile lyx on Redhat
 with spell checking support?
 
 Hi,
 
 you have to provide the developer packages of the spell checker of your
 choice at compile time (of LyX). In case it's enchant you have to configure
 enchant, in case it's hunspell you may provide the path for the dictionary
 files under preferences if they're not found automatically.
 
 Stephan



Re: Automated PDF creation under windows

2014-01-17 Thread Itai Shaked
I believe the correct format name to use is the short name, so for
pdflatex it would be
lyx --export pdf2 document.lyx

Look in Tools-Preferences-File Handling-File Formats  to see the short
name for each format.


On Fri, Jan 17, 2014 at 10:25 AM, Matthias Weißer weiss...@arcor.de wrote:

 Hi

 I would like to export a lyx file on the command line to a PDF. This
 should be included in a automated process building a bigger software
 package. I tried

 Lyx.exe --export pdflatex document.lyx

 but nothing happens. I can see that lyx.exe comes up in the background,
 starts some child processes (python.exe) and then it exits after a couple
 of seconds and the PDF isn't created. Exporting the file from the editor
 takes about a minute or so and end successfully.

 Even

 Lyx.exe -help

 doens't produce any output. Lyx version is 2.9

 Any hints?

 Regards
 Matthias




Re: How to configure plantuml with lyx

2014-01-17 Thread rajender saini
Thanks Rainer, I am able to generate diagram into lyx master file using the
steps shared by you. Thank you very much.



My master file include the .plantuml file as graphic as suggested by you
and it is working fine.

I wanted to export whole file as PDF so

Next I used inkscape to convert SVG to PDF by adding convertor.

when i run export as PDF image is not included into the master PDF doc.


 I can see the SVG to PDF conversion happening into the temp cache
directory. but somehow it is not included into master file any pointer will
help.


Regards,
Rajender Saini


On Thu, Jan 16, 2014 at 11:56 AM, rajender saini wrote:

> Thank you very much Rainer for immediate response. I will follow these
> steps and come back if I have any issue.
>
>
> On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug  wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>>
>> On 01/16/14, 06:14 , rajender saini wrote:
>> > I got your reference from the gmail lyx posting. Can you help me
>> > with the steps include plant uml file into lyx file and
>> > automatically get it converted into image when we include it into
>> > the lyx master file ?
>>
>> Sure.
>>
>> I will CC it to the LyX list to have it there for reference.
>>
>> I assume you have downloaded plantuml.
>>
>> 1) Define a new File Format, named "plantuml":
>>
>> Vector graphics format: I ticked it - what are actually the
>> implications of this field?
>> Short name: "plantuml"
>> Extension:  "plantuml"
>> So all files with the extension .plantuml will be considered as
>> plantuml source code files files!
>>
>> Editor: I choose Emacs, but set any text editor you want.
>>
>> In the preferences files, this corresponds to the following line in
>> the formats section:
>>
>> \format "plantuml" "plantuml" "plantuml" "" "" "open -n -a Emacs
>> - --args --name LyX --title LyX --no-desktop" "vector"
>>
>> Now we have to define the converters, i.e. how to convert the plantuml
>> file into a format usable by the converter chain in LyX. This now
>> depends on you installed converters, but I got the best results when
>> using svg as the *only* output format of plantuml, and then use the
>> standard converter tools of LyX to convert these into the required
>> formats.
>>
>> The conversion of svg (a vector format) to eps, PDF and PNG
>> is done by rsvg, which is detected and configured automatically by
>> LyX. If you don't have it installed, install it and re-configure :LyX
>> and it should be detected.
>>
>> Coming back to plantuml: The converter to be defined converts the
>> .plantuml to a graphics format .svg (vector):
>>
>> - From format: "plantuml"
>> To format:  "SVG
>> Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg
>>
>> The preference file line is:
>>
>> \converter "plantuml" "svg" "/Users/rainerkrug/bin/plantuml $$i -ofile
>> $$o -tsvg" ""
>>
>> The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
>> *not* the .jar file but the following:
>>
>> ### BEGIN FILE ##
>> #!/bin/sh
>> # PlantUML Launcher
>> #
>> # This script is free software; you can redistribute it and/or modify it
>> # under the terms of the GNU General Public License as published by
>> # the Free Software Foundation, either version 3 of the License, or
>> # (at your option) any later version.
>> #
>> # This script distributed in the hope that it will be useful, but
>> # WITHOUT ANY WARRANTY; without even the implied warranty of
>> MERCHANTABILITY
>> # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
>> # License for more details.
>> # You should have received a copy of the GNU General Public
>> # License along with this library; if not, write to the Free Software
>> # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
>> 02110-1301,
>> # USA.
>> #
>> # Copyright (C) 2010 Ilya Paramonov 
>>
>> if [ -n "${JAVA_HOME}" ] && [ -x "${JAVA_HOME}/bin/java" ] ; then
>> JAVA="${JAVA_HOME}/bin/java"
>> elif [ -x /usr/bin/java ] ; then
>> JAVA=/usr/bin/java
>> else
>> echo Cannot find JVM
>> exit 1
>> fi
>>
>> $JAVA -jar ~/jar/plantuml.jar -graphvizdot "/usr/local/bin/dot" ${@}
>> ### END FILE ##
>>
>> It is from https://gist.github.com/eelcocramer/4502562 and it simply
>> makes
>> calling plantuml much easier.
>>
>> Make sure tht this ~/bin/plantuml is executable!
>>
>> Now, in LyX, you simply have to add a .plantuml file as a picture, and
>> you should be able to edit it via right-mouse-click and it should be
>> converted into all the needed formats.
>>
>> Now This worked for me under Mac (I am using it right now) and Linux
>> (used it before). There might be differences under Windows, but I
>> would suggest to ask on the mailing list if you don't get it to work,
>> so that therte is a reference to this.
>>
>>
>> Hope this helps,
>>
>> Rainer
>>
>>
>>
>> >
>> > -- Raj Ph:+17737706099
>>
>> - --
>> Rainer M. Krug, 

Re: How to configure plantuml with lyx

2014-01-17 Thread rajender saini
Thank you very much Rainer for immediate response. I will follow these
steps and come back if I have any issue.


On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> On 01/16/14, 06:14 , rajender saini wrote:
> > I got your reference from the gmail lyx posting. Can you help me
> > with the steps include plant uml file into lyx file and
> > automatically get it converted into image when we include it into
> > the lyx master file ?
>
> Sure.
>
> I will CC it to the LyX list to have it there for reference.
>
> I assume you have downloaded plantuml.
>
> 1) Define a new File Format, named "plantuml":
>
> Vector graphics format: I ticked it - what are actually the
> implications of this field?
> Short name: "plantuml"
> Extension:  "plantuml"
> So all files with the extension .plantuml will be considered as
> plantuml source code files files!
>
> Editor: I choose Emacs, but set any text editor you want.
>
> In the preferences files, this corresponds to the following line in
> the formats section:
>
> \format "plantuml" "plantuml" "plantuml" "" "" "open -n -a Emacs
> - --args --name LyX --title LyX --no-desktop" "vector"
>
> Now we have to define the converters, i.e. how to convert the plantuml
> file into a format usable by the converter chain in LyX. This now
> depends on you installed converters, but I got the best results when
> using svg as the *only* output format of plantuml, and then use the
> standard converter tools of LyX to convert these into the required
> formats.
>
> The conversion of svg (a vector format) to eps, PDF and PNG
> is done by rsvg, which is detected and configured automatically by
> LyX. If you don't have it installed, install it and re-configure :LyX
> and it should be detected.
>
> Coming back to plantuml: The converter to be defined converts the
> .plantuml to a graphics format .svg (vector):
>
> - From format: "plantuml"
> To format:  "SVG
> Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg
>
> The preference file line is:
>
> \converter "plantuml" "svg" "/Users/rainerkrug/bin/plantuml $$i -ofile
> $$o -tsvg" ""
>
> The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
> *not* the .jar file but the following:
>
> ### BEGIN FILE ##
> #!/bin/sh
> # PlantUML Launcher
> #
> # This script is free software; you can redistribute it and/or modify it
> # under the terms of the GNU General Public License as published by
> # the Free Software Foundation, either version 3 of the License, or
> # (at your option) any later version.
> #
> # This script distributed in the hope that it will be useful, but
> # WITHOUT ANY WARRANTY; without even the implied warranty of
> MERCHANTABILITY
> # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
> # License for more details.
> # You should have received a copy of the GNU General Public
> # License along with this library; if not, write to the Free Software
> # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
> 02110-1301,
> # USA.
> #
> # Copyright (C) 2010 Ilya Paramonov 
>
> if [ -n "${JAVA_HOME}" ] && [ -x "${JAVA_HOME}/bin/java" ] ; then
> JAVA="${JAVA_HOME}/bin/java"
> elif [ -x /usr/bin/java ] ; then
> JAVA=/usr/bin/java
> else
> echo Cannot find JVM
> exit 1
> fi
>
> $JAVA -jar ~/jar/plantuml.jar -graphvizdot "/usr/local/bin/dot" ${@}
> ### END FILE ##
>
> It is from https://gist.github.com/eelcocramer/4502562 and it simply makes
> calling plantuml much easier.
>
> Make sure tht this ~/bin/plantuml is executable!
>
> Now, in LyX, you simply have to add a .plantuml file as a picture, and
> you should be able to edit it via right-mouse-click and it should be
> converted into all the needed formats.
>
> Now This worked for me under Mac (I am using it right now) and Linux
> (used it before). There might be differences under Windows, but I
> would suggest to ask on the mailing list if you don't get it to work,
> so that therte is a reference to this.
>
>
> Hope this helps,
>
> Rainer
>
>
>
> >
> > -- Raj Ph:+17737706099
>
> - --
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
> Biology, UCT), Dipl. Phys. (Germany)
>
> Centre of Excellence for Invasion Biology
> Stellenbosch University
> South Africa
>
> Tel :   +33 - (0)9 53 10 27 44
> Cell:   +33 - (0)6 85 62 59 98
> Fax :   +33 - (0)9 58 10 27 44
>
> Fax (D):+49 - (0)3 21 21 25 22 44
>
> email:  rai...@krugs.de
>
> Skype:  RMkrug
> -BEGIN PGP SIGNATURE-
> Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJS152qAAoJENvXNx4PUvmCfaYH/2CBavtVCI5a37KO3sqdoR7g
> JgntyBmQCIGZ5i9lwLpj/e/P95THCoPTpFo8nv09JM89KMWVgU3CdoJI0cUzelPH
> /47ZdhPQYEEYSiA8H+Zsp9AgE4ess0gsB/CWE9HVDnAXZIwWhOHC4Mwys8umeUOO
> 

Re: How to configure plantuml with lyx

2014-01-17 Thread Rainer M Krug
On 17 January 2014 09:01, rajender saini  wrote:

> Thanks Rainer, I am able to generate diagram into lyx master file using
> the steps shared by you. Thank you very much.
>
>
>
> My master file include the .plantuml file as graphic as suggested by you
> and it is working fine.
>
>
I assume you mean that you can see the .plantuml file as a picture in LyX?
Good to hear. So the .plantuml -> .svg -> .png is working.


> I wanted to export whole file as PDF so
>

pdflatex? That is what I use.


>
> Next I used inkscape to convert SVG to PDF by adding convertor.
>
> when i run export as PDF image is not included into the master PDF doc.
>

The conversion should be done by LyX. AS I said, I use rsvg, and it works
as expected.


>
>
>  I can see the SVG to PDF conversion happening into the temp cache
> directory. but somehow it is not included into master file any pointer will
> help.
>

Hm - no idea here - if the conversion to a .svg -> .pdf I have no idea why
it is not included. Just make a small example .lyx file and post it here
together with the .plantuml file so that I can try it out if it works here.

Cheers,

Rainer



>
>
> Regards,
> Rajender Saini
>
>
> On Thu, Jan 16, 2014 at 11:56 AM, rajender saini 
> wrote:
>
>> Thank you very much Rainer for immediate response. I will follow these
>> steps and come back if I have any issue.
>>
>>
>> On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug  wrote:
>>
>>> -BEGIN PGP SIGNED MESSAGE-
>>> Hash: SHA1
>>>
>>>
>>> On 01/16/14, 06:14 , rajender saini wrote:
>>> > I got your reference from the gmail lyx posting. Can you help me
>>> > with the steps include plant uml file into lyx file and
>>> > automatically get it converted into image when we include it into
>>> > the lyx master file ?
>>>
>>> Sure.
>>>
>>> I will CC it to the LyX list to have it there for reference.
>>>
>>> I assume you have downloaded plantuml.
>>>
>>> 1) Define a new File Format, named "plantuml":
>>>
>>> Vector graphics format: I ticked it - what are actually the
>>> implications of this field?
>>> Short name: "plantuml"
>>> Extension:  "plantuml"
>>> So all files with the extension .plantuml will be considered as
>>> plantuml source code files files!
>>>
>>> Editor: I choose Emacs, but set any text editor you want.
>>>
>>> In the preferences files, this corresponds to the following line in
>>> the formats section:
>>>
>>> \format "plantuml" "plantuml" "plantuml" "" "" "open -n -a Emacs
>>> - --args --name LyX --title LyX --no-desktop" "vector"
>>>
>>> Now we have to define the converters, i.e. how to convert the plantuml
>>> file into a format usable by the converter chain in LyX. This now
>>> depends on you installed converters, but I got the best results when
>>> using svg as the *only* output format of plantuml, and then use the
>>> standard converter tools of LyX to convert these into the required
>>> formats.
>>>
>>> The conversion of svg (a vector format) to eps, PDF and PNG
>>> is done by rsvg, which is detected and configured automatically by
>>> LyX. If you don't have it installed, install it and re-configure :LyX
>>> and it should be detected.
>>>
>>> Coming back to plantuml: The converter to be defined converts the
>>> .plantuml to a graphics format .svg (vector):
>>>
>>> - From format: "plantuml"
>>> To format:  "SVG
>>> Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg
>>>
>>> The preference file line is:
>>>
>>> \converter "plantuml" "svg" "/Users/rainerkrug/bin/plantuml $$i -ofile
>>> $$o -tsvg" ""
>>>
>>> The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
>>> *not* the .jar file but the following:
>>>
>>> ### BEGIN FILE ##
>>> #!/bin/sh
>>> # PlantUML Launcher
>>> #
>>> # This script is free software; you can redistribute it and/or modify it
>>> # under the terms of the GNU General Public License as published by
>>> # the Free Software Foundation, either version 3 of the License, or
>>> # (at your option) any later version.
>>> #
>>> # This script distributed in the hope that it will be useful, but
>>> # WITHOUT ANY WARRANTY; without even the implied warranty of
>>> MERCHANTABILITY
>>> # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
>>> # License for more details.
>>> # You should have received a copy of the GNU General Public
>>> # License along with this library; if not, write to the Free Software
>>> # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
>>> 02110-1301,
>>> # USA.
>>> #
>>> # Copyright (C) 2010 Ilya Paramonov 
>>>
>>> if [ -n "${JAVA_HOME}" ] && [ -x "${JAVA_HOME}/bin/java" ] ; then
>>> JAVA="${JAVA_HOME}/bin/java"
>>> elif [ -x /usr/bin/java ] ; then
>>> JAVA=/usr/bin/java
>>> else
>>> echo Cannot find JVM
>>> exit 1
>>> fi
>>>
>>> $JAVA -jar ~/jar/plantuml.jar -graphvizdot "/usr/local/bin/dot" ${@}
>>> ### END FILE ##
>>>

Re: Are there problems with lyx-ftp-server?

2014-01-17 Thread Rainer M Krug
On 16 January 2014 22:25, Richard Talley  wrote:

> That was interesting.
>
> Evidently Firefox had decided for me that it would take over handling the
> FTP protocol. When I pasted
> ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/lyx-2.1.0beta2 into Safari, it
> opened Firefox. I hadn't noticed before because I usually use a standalone
> FTP client.
>
> Jup - same here.


> I used the RCDefaultApp preference pane (
> http://www.rubicode.com/Software/RCDefaultApp/) to give FTP handling back
> to Finder. Safari then turned the FTP handling over to Finder and I was
> then able to connect as a guest and drag and drop the Mac dmg into my
> Downloads folder. A little slow, over 10 minutes to download, but it worked.
>

Used the default Guest account on the Mac, and it also downloads - over 10
Minute seems right.

Cheers,

Rainer


>
> Safari 6.1.1 on OS X 10.8.5.
>
> -- Rich
>
>
>
> On Thu, Jan 16, 2014 at 1:38 PM, Scott Kostyshak  wrote:
>
>> On Thu, Jan 16, 2014 at 3:04 PM, Uwe Ade  wrote:
>> > Hello,
>> >
>> > me again. Sorry for the disagreeability. I have the problem with safari
>> und
>> > Pathfinder on my mac. The Download doesn’t work. As I read the tip from
>> > Anders  i installed Firefox and the download and the installation of lyx
>> > works fine.
>> >
>> > In Future i will try to give more and clear descriptions.
>> >
>> > Thanks for the help an this Mailinglist. For me it´s great!!
>>
>> Thanks for following up and thanks to Anders for the solultion.
>>
>> Glad you got it working!
>>
>> It would be nice if another Mac user could test using Safari.
>>
>> Scott
>>
>
>


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


Re: simple algorithm float numbering (1, 2, 3,...)

2014-01-17 Thread Matěj Šmíd
I found out the solution. Just insert in the Latex Preamble:


\usepackage{chngcntr}

\counterwithout{figure}{chapter}

\counterwithout{equation}{chapter}

\counterwithout{algorithm}{chapter}


and you got simple (1, 2, 3, ...) numbering of figures, equations and
algorithms.


Cheers,

Matej.


On Fri, Jan 10, 2014 at 12:04 PM, Matěj Šmíd  wrote:

> Hello,
>
> I would like to have simple document-wide numbering of the algorithm
> floats (1, 2, 3, ...).
>
> Currently the algorithm floats are defined as:
>
> \floatstyle{ruled}
>
> \newfloat{algorithm}{tbp}{loa}[chapter]
> \providecommand{\algorithmname}{Algorithm}
> \floatname{algorithm}{\protect\algorithmname}
>
> The only change needed is to remove the [chapter] optional argument to
> \newfloat{algorithm}
>
> \newfloat{algorithm}{tbp}{loa}
>
> Is there a possibility to redefine the algorithm float?
>
> Thanks,
> Matej.
>
>
>
>


Automated PDF creation under windows

2014-01-17 Thread Matthias Weißer

Hi

I would like to export a lyx file on the command line to a PDF. This 
should be included in a automated process building a bigger software 
package. I tried


Lyx.exe --export pdflatex document.lyx

but nothing happens. I can see that lyx.exe comes up in the background, 
starts some child processes (python.exe) and then it exits after a 
couple of seconds and the PDF isn't created. Exporting the file from the 
editor takes about a minute or so and end successfully.


Even

Lyx.exe -help

doens't produce any output. Lyx version is 2.9

Any hints?

Regards
Matthias



Re: Are there problems with lyx-ftp-server?

2014-01-17 Thread Stephan Witt
Am 16.01.2014 um 22:25 schrieb Richard Talley :

> That was interesting.
> 
> Evidently Firefox had decided for me that it would take over handling the FTP 
> protocol. When I pasted 
> ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/lyx-2.1.0beta2 into Safari, it opened 
> Firefox. I hadn't noticed before because I usually use a standalone FTP 
> client.
> 
> I used the RCDefaultApp preference pane 
> (http://www.rubicode.com/Software/RCDefaultApp/) to give FTP handling back to 
> Finder. Safari then turned the FTP handling over to Finder and I was then 
> able to connect as a guest and drag and drop the Mac dmg into my Downloads 
> folder. A little slow, over 10 minutes to download, but it worked.
> 
> Safari 6.1.1 on OS X 10.8.5.

Please note that, as I already wrote, the default Mac OS X behavior is to
open the Finder. This was apparently overridden when installing firefox.

Stephan

> 
> On Thu, Jan 16, 2014 at 1:38 PM, Scott Kostyshak  wrote:
> On Thu, Jan 16, 2014 at 3:04 PM, Uwe Ade  wrote:
> > Hello,
> >
> > me again. Sorry for the disagreeability. I have the problem with safari und
> > Pathfinder on my mac. The Download doesn’t work. As I read the tip from
> > Anders  i installed Firefox and the download and the installation of lyx
> > works fine.
> >
> > In Future i will try to give more and clear descriptions.
> >
> > Thanks for the help an this Mailinglist. For me it´s great!!
> 
> Thanks for following up and thanks to Anders for the solultion.
> 
> Glad you got it working!
> 
> It would be nice if another Mac user could test using Safari.
> 
> Scott
> 



Lyx with spelling dictionary

2014-01-17 Thread Ben Lowe
Hi,

I'm using redhat 6; I've tried downloading the latest source and
following these steps:
http://wiki.lyx.org/LyX/CreatingLyXRPM#toc3

And also tried creating an RPM package, however the dictionary choice
in preferences > language settings > spellchecker; all options are
greyed out, and I cannot provide a hunspell path under preferences
>paths as this is greyed out. I have relevant hunspell dictionary
files in the ~/.lyx/dicts/ folder and they are named correctly.

This a common issue with linux due to not compiling it with
spellchecking support, and a fix is apparently to use 'Enchant' engine
instead, however I have the Enchant package, and I still cannot select
any spellchecker engines from the spellchecker menu.

Does anyone have any suggestions on how I can compile lyx on Redhat
with spell checking support?

Many Thanks,

Ben Lowe


Re: Lyx with spelling dictionary

2014-01-17 Thread Stephan Witt
Am 17.01.2014 um 13:44 schrieb Ben Lowe :

> Hi,
> 
> I'm using redhat 6; I've tried downloading the latest source and
> following these steps:
> http://wiki.lyx.org/LyX/CreatingLyXRPM#toc3
> 
> And also tried creating an RPM package, however the dictionary choice
> in preferences > language settings > spellchecker; all options are
> greyed out, and I cannot provide a hunspell path under preferences
>> paths as this is greyed out. I have relevant hunspell dictionary
> files in the ~/.lyx/dicts/ folder and they are named correctly.
> 
> This a common issue with linux due to not compiling it with
> spellchecking support, and a fix is apparently to use 'Enchant' engine
> instead, however I have the Enchant package, and I still cannot select
> any spellchecker engines from the spellchecker menu.
> 
> Does anyone have any suggestions on how I can compile lyx on Redhat
> with spell checking support?

Hi,

you have to provide the developer packages of the spell checker of your
choice at compile time (of LyX). In case it's enchant you have to configure
enchant, in case it's hunspell you may provide the path for the dictionary
files under preferences if they're not found automatically.

Stephan


Re: Lyx with spelling dictionary

2014-01-17 Thread Ben Lowe
Dear Stephan,

Thanks for your quick response. What option do I provide lyx with in
order to compile with enchant/hunspell etc.? I cannot find this
information in the README, INSTALL etc.,

Until I do this, I cannot provide a path for Hunspell as the path
section is greyed out, and I cannot select the Enchant engine.

-Ben


On 17 January 2014 13:11, Stephan Witt  wrote:
> Am 17.01.2014 um 13:44 schrieb Ben Lowe :
>
>> Hi,
>>
>> I'm using redhat 6; I've tried downloading the latest source and
>> following these steps:
>> http://wiki.lyx.org/LyX/CreatingLyXRPM#toc3
>>
>> And also tried creating an RPM package, however the dictionary choice
>> in preferences > language settings > spellchecker; all options are
>> greyed out, and I cannot provide a hunspell path under preferences
>>> paths as this is greyed out. I have relevant hunspell dictionary
>> files in the ~/.lyx/dicts/ folder and they are named correctly.
>>
>> This a common issue with linux due to not compiling it with
>> spellchecking support, and a fix is apparently to use 'Enchant' engine
>> instead, however I have the Enchant package, and I still cannot select
>> any spellchecker engines from the spellchecker menu.
>>
>> Does anyone have any suggestions on how I can compile lyx on Redhat
>> with spell checking support?
>
> Hi,
>
> you have to provide the developer packages of the spell checker of your
> choice at compile time (of LyX). In case it's enchant you have to configure
> enchant, in case it's hunspell you may provide the path for the dictionary
> files under preferences if they're not found automatically.
>
> Stephan


Re: Lyx with spelling dictionary

2014-01-17 Thread Stephan Witt
Am 17.01.2014 um 14:55 schrieb Ben Lowe :

> Dear Stephan,
> 
> Thanks for your quick response. What option do I provide lyx with in
> order to compile with enchant/hunspell etc.? I cannot find this
> information in the README, INSTALL etc.,

Sorry for being unclear.

You have to install the developer packages - aka rpms - for
the spell checker of your choice. Something like hunspell-devel-*
for hunspell (I don't know the package name for RedHat and I don't
know either if it exists).

After doing so LyX detects it at configure time and will be build
with hunspell support. This should be mentioned in config.log.

There is no configure option.

> Until I do this, I cannot provide a path for Hunspell as the path
> section is greyed out, and I cannot select the Enchant engine.

Hunspell is not Enchant. Hunspell path is for hunspell spell checker.

I'd recommend using hunspell. I don't know if enchant is usable.

Stephan

> On 17 January 2014 13:11, Stephan Witt  wrote:
>> Am 17.01.2014 um 13:44 schrieb Ben Lowe :
>> 
>>> Hi,
>>> 
>>> I'm using redhat 6; I've tried downloading the latest source and
>>> following these steps:
>>> http://wiki.lyx.org/LyX/CreatingLyXRPM#toc3
>>> 
>>> And also tried creating an RPM package, however the dictionary choice
>>> in preferences > language settings > spellchecker; all options are
>>> greyed out, and I cannot provide a hunspell path under preferences
 paths as this is greyed out. I have relevant hunspell dictionary
>>> files in the ~/.lyx/dicts/ folder and they are named correctly.
>>> 
>>> This a common issue with linux due to not compiling it with
>>> spellchecking support, and a fix is apparently to use 'Enchant' engine
>>> instead, however I have the Enchant package, and I still cannot select
>>> any spellchecker engines from the spellchecker menu.
>>> 
>>> Does anyone have any suggestions on how I can compile lyx on Redhat
>>> with spell checking support?
>> 
>> Hi,
>> 
>> you have to provide the developer packages of the spell checker of your
>> choice at compile time (of LyX). In case it's enchant you have to configure
>> enchant, in case it's hunspell you may provide the path for the dictionary
>> files under preferences if they're not found automatically.
>> 
>> Stephan



Re: Automated PDF creation under windows

2014-01-17 Thread Itai Shaked
I believe the correct format name to use is the "short name", so for
pdflatex it would be
lyx --export pdf2 document.lyx

Look in Tools->Preferences->File Handling->File Formats  to see the short
name for each format.


On Fri, Jan 17, 2014 at 10:25 AM, Matthias Weißer  wrote:

> Hi
>
> I would like to export a lyx file on the command line to a PDF. This
> should be included in a automated process building a bigger software
> package. I tried
>
> Lyx.exe --export pdflatex document.lyx
>
> but nothing happens. I can see that lyx.exe comes up in the background,
> starts some child processes (python.exe) and then it exits after a couple
> of seconds and the PDF isn't created. Exporting the file from the editor
> takes about a minute or so and end successfully.
>
> Even
>
> Lyx.exe -help
>
> doens't produce any output. Lyx version is 2.9
>
> Any hints?
>
> Regards
> Matthias
>
>