Re: install lyx2.3.2; was: Re: figure.pdf is not shown in document

2019-04-27 Thread Pavel Sanda
On Sat, Apr 27, 2019 at 01:48:57PM +0200, Wolfgang Engelmann wrote:
> in trying out this https://tecadmin.net/install-imagemagick-on-linux/
> 
> I have difficulties with step
> 
> 
>Step 3 ??? Install imagick PHP Extension
> 
> At this point, you have successfully installed ImageMagick package
> on your system. Now, you need to install Imagick PHP extension, So
> that we can use it through PHP code.
> 
> sudo apt install php-imagick
> 
> For different PHP version???s you need to install the specific
> version of imagick like |php7.1-imagick| or |php7.3-imagick| etc.
> 
> I tried php7.3 down to 7.0, but to no avail
> 
> I might try to use synaptic and see

I don't think you need anything related to php.
apt install imagemagick
should be just enough. Did you try to run lyx with your pdf example now?

Pavel


Re: Exporting ePub / XML: always SIGSEV

2019-04-27 Thread Dr Eberhard Lisse
Have you looked at lwarp on CTAN?

el

On 2019-04-26 19:48 , jezZiFeR wrote:
> Dear Anders,
> 
> thank you so much!  I have now found a possibility to use ePub.  It is
> still not perfect and up to now is not useful for publishing etc., but
> for private use it is fine.  The following seems to work for me:
> 
> export–LyXhtml (here LyX is not getting a SIGSEV)
> then I convert the XHTML-file in Calibre to ePub
> 
> Calibre is really extremely useful… I think I will try a little bit
> around with LyX and Calibre in the next time, but for the moment this
> works for me.
> 
> All best
> Jess



Re: install lyx2.3.2; was: Re: figure.pdf is not shown in document

2019-04-27 Thread Wolfgang Engelmann


On 27.04.19 11:06, Pavel Sanda wrote:

On Sat, Apr 27, 2019 at 10:15:20AM +0200, Wolfgang Engelmann wrote:

I would like to go back to Debian and install it but am afraid that
I might make things even worse, as it usually does if I change
things.

I wouldn't switch to debian just because of this.
I am also sceptical that your problem is realted to qt version,
more likely conversion proces fails.

You could try two things:
1. Does pdftops/magick works on your system? Try running

   dftops -eps cancer-development-n.pdf -f 1 -l 1  out.eps
   magick out.eps out.png
and check whether correct out.eps & out.png was generated.

2. If the above works could you
  a) turn on view->messages pane
  b) in setting tab of the pane check selected and choose graphics on the right 
side
  c) switch back to output pane
  d) insert in new document cancer-development-n.pdf (which fails as i 
understood)
 and post here the output from messages pane.

Pavel


Thanks, Pavel. dftops -eps cancer-development-n.pdf -f 1 -l 1 out.eps 
worked, magick out.eps out.png did not. >>


imagick out.eps out.png
imagick: command not found
wolfgang@wolfgang-Mr-Whisper-Ultra-SSD-II:~/Publikationen-eigene-20170530/Cancer-cR-2019$ 
magick out.eps out.png

No command 'magick' found, did you mean:
 Command 'magic' from package 'magic' (universe)

in trying out this https://tecadmin.net/install-imagemagick-on-linux/

I have difficulties with step


   Step 3 – Install imagick PHP Extension

At this point, you have successfully installed ImageMagick package on 
your system. Now, you need to install Imagick PHP extension, So that we 
can use it through PHP code.


sudo apt install php-imagick

For different PHP version’s you need to install the specific version of 
imagick like |php7.1-imagick| or |php7.3-imagick| etc.


I tried php7.3 down to 7.0, but to no avail

I might try to use synaptic and see

Wolfgang



  



Re: Using new enumerate environment without ERT

2019-04-27 Thread Guenter Milde
On 2019-04-26, Paul A. Rubin wrote:
> On 4/26/19 4:16 PM, Paul Smith wrote:
>> Dear All,

>> Suppose that I have created a new enumerate-like enumerate, say
>> xenumerate. How can I use it from inside LyX without recourse to ERT?

>> Thanks in advance,

>> Paul
> A couple of possibilities come to mind. If you want to use the new 
> version exclusively (and not use good old "enumerate"), you could 
> redefine the enumerate environment itself. Assuming you want xenumerate 
> to coexist with enumerate, you can define a layout for it, either in the 
> Local Layout portion of the document settings (if you only want it for 
> one document) or in a module file installed in your local layouts directory.

> Guessing that you want the last one (i.e., add this along side regular 
> enumerations and make it available to any document that wants it), I 
> would suggest looking at /usr/share/lyx/layouts/stdlists.inc for 
> inspiration. (That's the Linux path; on other OSes, your path may 
> differ.) Look for the section that begins "Style Enumerate" and copy it 
> to your local module file (which will also need the proper header 
> stuff). Change the first line of the style to "Style Xenumerate" (or 
> whatever), change the LatexName entry to "xenumerate", and see if 
> anything else needs tweaking (quite possibly not).

It may help to have a look a the "enumitem" module that enhances enumeration
environments. 

The appended gm-lists.module requires and uses enumitem to define
additional list types. It is a bit dated, though.


> Help > Customization has lots of details about creating your own modules 
> and paragraph styles. Note that you will have to expressly include the 
> module in any document where you want to use the style. (You could hack 
> stdlists.inc itself, but then you would need to repeat the hack any time 
> an upgrade/reinstallation overwrote /usr/share/lyx/layouts.)


Günter


#\DeclareLyXModule{gmlists}
#DescriptionBegin
# Adds quoted-list and condensed list environments.
#DescriptionEnd
#Requires: enumitem
#Author: Günter Milde 

# date: 2008-12-04
# last update: 2016-07-21

Format 49

# Style Variants
# ==


Style Enumerate-Alpha
  CopyStyleEnumerate
  LatexParam   "[label=\emph{\alph*}),ref=\emph{\alph*},fullwidth,itemsep=1ex]"
  Margin   First_Dynamic
  LeftMargin   
  LabelCounter enumi
  LabelString  "\alph{enumi})"
  LabelFont
Series  Medium
Shape   Italic
  EndFont
End


# Dense (condensed/compact) list environments
# ===

Style Itemize-Compact
CopyStyle Itemize
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem 
manual)"
PresetArg noitemsep
EndArgument
ParSep0
TopSep0.4
BottomSep 0.4
End 

Style Enumerate-Compact
CopyStyle Enumerate
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem 
manual)"
PresetArg noitemsep
EndArgument
ParSep0
TopSep0.4
BottomSep 0.4
End 

Style Description-Compact
CopyStyle Description
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem 
manual)"
PresetArg noitemsep
EndArgument
ParSep0
TopSep0.4
BottomSep 0.4
End

# Indented compact LyX-List environment
Style Quoted-Labeling
CopyStyle   Labeling
LatexName   qlyxlist
ItemSep 0
ParSep  0
LabelIndent MMM
Preamble
% labeling-like list based on enumitem's description list with
% mandatory second argument (label-pattern) and indent of 2em:
\newenvironment{qlyxlist}[2][]%
  {\settowidth{\lyxlabelwidth}{#2}
   \addtolength{\lyxlabelwidth}{1.5em}
   \description[font=,style=sameline,
 leftmargin=\lyxlabelwidth,
 noitemsep, labelindent=1.5em,
 #1]}
  {\enddescription}
EndPreamble

End

# Backwards compatibility aliases:

Style Compact-Itemize
  ObsoletedByItemize-Compact
End  

Style Itemize-Dense
  ObsoletedByItemize-Compact
End

Style Compact-Enumerate
  ObsoletedBy   Enumerate-Compact
End

Style Enumerate-Dense
  ObsoletedBy   Enumerate-Compact
End

Style Compact-Description
  ObsoletedBy   Description-Compact
End

Style Description-Dense
  ObsoletedBy   Description-Compact
End

# Description with italic label was a failed experiment:
Style Description-Italic
  

Re: Exporting ePub / XML: always SIGSEV

2019-04-27 Thread anek
Thanks for the feedback Jess.


Good to hear it is working well.




All the best!


Anders




Ha det bra!


Anders







On Fri, Apr 26, 2019 at 7:48 PM +0200, "jezZiFeR"  wrote:















Dear Anders,


thank you so much! I have now found a possibility to use ePub. It is still not 
perfect and up to now is not useful for publishing etc., but for private use it 
is fine. The following seems to work for me:


export–LyXhtml (here LyX is not getting a SIGSEV)
then I convert the XHTML-file in Calibre to ePub


Calibre is really extremely useful… I think I will try a little bit around with 
LyX and Calibre in the next time, but for the moment this works for me.


All best
Jess











Am 25. Apr. 2019, 21:53 +0200 schrieb Anders Ekberg :


On 25 Apr 2019, at 21:36, jezZiFeR  wrote:




Hello Anders,


thanks a lot! This sounds good, but I do normally only use LyX and run into new 
problems. First I tried several possibilities to export to TeX is with also 
with »weitere Formate und Optionen« (more formats and options) – here it 
worked. In all other cases (file – export – LaTeX (plain) or export – export as 
– LaTeX (normal) or export – export as – LaTeX (XeTeX)) I have got a 
SIGSEV-signal again. 


Well, then I opened the TeX-file in TeXShop (I dont have TeX Studio). In the 
prefs there is no build, and I did not know ho to continue from here.
 Then I just tried:


export – XML text


This produced an XML-file. I do not know if the file would work, because I do 
not know how to continue from here. Did Could I also use calibre for converting 
from XML to ePub?


Thanks, best
Jess





Looks like you have a problem with your installation. I would try to reinstall 
(and if problems remain to a Tools > Reconfigure and open Terminal and run sudo 
texhash).

Anyway, to your question: Calibre is free to download, so you can download it 
and then add the xml-file to Calibre (Add book…) and then convert to EPUB 
(Convert books…). If it works or not should depend on the status the XML-file, 
but that is outside my knowledge (I was just happy when the recipe I posted 
worked ;-)


All the best!
Anders













Re: install lyx2.3.2; was: Re: figure.pdf is not shown in document

2019-04-27 Thread Pavel Sanda
On Sat, Apr 27, 2019 at 10:15:20AM +0200, Wolfgang Engelmann wrote:
> I would like to go back to Debian and install it but am afraid that
> I might make things even worse, as it usually does if I change
> things.

I wouldn't switch to debian just because of this.
I am also sceptical that your problem is realted to qt version,
more likely conversion proces fails.

You could try two things:
1. Does pdftops/magick works on your system? Try running

  dftops -eps cancer-development-n.pdf -f 1 -l 1  out.eps
  magick out.eps out.png
and check whether correct out.eps & out.png was generated.

2. If the above works could you
 a) turn on view->messages pane
 b) in setting tab of the pane check selected and choose graphics on the right 
side
 c) switch back to output pane
 d) insert in new document cancer-development-n.pdf (which fails as i 
understood)
and post here the output from messages pane.

Pavel


Re: install lyx2.3.2; was: Re: figure.pdf is not shown in document

2019-04-27 Thread Wolfgang Engelmann



On 27.04.19 10:15, Wolfgang Engelmann wrote:


On 26.04.19 12:33, Pavel Sanda wrote:

On Fri, Apr 26, 2019 at 09:35:28AM +0200, Wolfgang Engelmann wrote:

I am not sure about the procedure to download lyx 2.3.2 from

https://packages.debian.org/stable-backports/source/lyx

Should I first download qtbase5-dev (>=5.6.0) from Other Packages
related to lyx and what does

  * build-depends

  * build-depends-indep

mean? What else is recommended for downloading and is it done before
or after lyx download?

I thought that we already solved this?
https://www.mail-archive.com/lyx-users@lists.lyx.org/msg108958.html

Pavel
Yes, Paul, you are right. But this is my problem: I am (unfortunately) 
on LinuxMint (I used before Debian) and there all the entries in the 
sources.list are commented out telling me to use the starter>mintupdate.


There is furthermore a folder sources.list.d which contains these lists:

lyx-devel-release-xenial.list   openjdk-r-ppa-xenial.list
official-package-repositories.list rwky-graphicsmagick-xenial.list
official-source-repositories.list   ubuntu-defaults.list
openjdk.list    webupd8team-java-xenial.list

I would assume that I have to insert the proposed line

deb http://ftp.debian.org/debian stretch-backports main

in lyx-devel-release-xenial.list

which contains so far these two lines:

deb http://ppa.launchpad.net/lyx-devel/release/ubuntu xenial main
deb-src http://ppa.launchpad.net/lyx-devel/release/ubuntu xenial main

I would like to go back to Debian and install it but am afraid that I 
might make things even worse, as it usually does if I change things.


Wolfgang


I used

official-source-repositories.list

and did

sudo apt-get -t stretch-backports install lyx
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen Fertig
lyx ist schon die neueste Version (2.3.2-1~xenial~ppa1).

0 aktualisiert, 0 neu installiert, 0 zu entfernen und 188 nicht 
aktualisiert.


It tells me, that it is already the newest version.

But I was told to install lyx together with a newer qt version. How do I 
proceed?


Wolfgang




Re: install lyx2.3.2; was: Re: figure.pdf is not shown in document

2019-04-27 Thread Wolfgang Engelmann



On 26.04.19 12:33, Pavel Sanda wrote:

On Fri, Apr 26, 2019 at 09:35:28AM +0200, Wolfgang Engelmann wrote:

I am not sure about the procedure to download lyx 2.3.2 from

https://packages.debian.org/stable-backports/source/lyx

Should I first download qtbase5-dev (>=5.6.0) from Other Packages
related to lyx and what does

  * build-depends

  * build-depends-indep

mean? What else is recommended for downloading and is it done before
or after lyx download?

I thought that we already solved this?
https://www.mail-archive.com/lyx-users@lists.lyx.org/msg108958.html

Pavel
Yes, Paul, you are right. But this is my problem: I am (unfortunately) 
on LinuxMint (I used before Debian) and there all the entries in the 
sources.list are commented out telling me to use the starter>mintupdate.


There is furthermore a folder sources.list.d which contains these lists:

lyx-devel-release-xenial.list   openjdk-r-ppa-xenial.list
official-package-repositories.list rwky-graphicsmagick-xenial.list
official-source-repositories.list   ubuntu-defaults.list
openjdk.list    webupd8team-java-xenial.list

I would assume that I have to insert the proposed line

deb http://ftp.debian.org/debian stretch-backports main

in lyx-devel-release-xenial.list

which contains so far these two lines:

deb http://ppa.launchpad.net/lyx-devel/release/ubuntu xenial main
deb-src http://ppa.launchpad.net/lyx-devel/release/ubuntu xenial main

I would like to go back to Debian and install it but am afraid that I 
might make things even worse, as it usually does if I change things.


Wolfgang



Re: No Integrals?

2019-04-27 Thread Pavel Sanda
On Sat, Apr 27, 2019 at 09:12:40AM +0200, UD Kap wrote:
> This is great, Paul-- I installed the fonts as you described and now
> everything is fine.  Not clear why it wasn't done by default. Later

I know nothing about PPA, maybe the dependencies are set wrongly?
I normal debian/ubuntu fonts-lyx should be installed by default.

Pavel

And btw welcome in Prague :)

>  Ehud Kaplan, Ph.D.
>  Visiting professor
>  Dept. of Philosophy & History of Science
>  Charles University, Prague
>  &
>  the National Institute of Mental Health,
>  Topolová 748, Klecany
>  Czechia
>  ---
>  Jules and Doris Stein Research to Prevent Blindness Professor
>  Director, Center of Excellence for Computational & System neuroscience,
>  The Friedman Brain Institute, MSSM
>  Director, The laboratory of Visual & Computational Neuroscience
>  Depts. of Neuroscience, Ophthalmology, Chemical & Structural Biology
>  Icahn school of medicine at Mount Sinai
>  One Gustave Levy Place
>  New York, NY, 10029
>  USA


Re: No Integrals?

2019-04-27 Thread UD Kap
This is great, Paul-- I installed the fonts as you described and now 
everything is fine.  Not clear why it wasn't done by default. Later I'll 
try the Texlive PPA too.


Thanks a lot--

Ehud


On 4/27/19 2:12 AM, Paul A. Rubin wrote:

On 4/26/19 5:17 PM, UD Kap wrote:

Thank you all for your speedy responses.

I suspect that Pavel has fingered it-- I don't see any LYX folder in 
the /usr/share/fonts folder.

At least on Mint, there is no .../lyx folder there.
  The problem is on the Lyx screen-- the output looks OK.  I 
installed from Liviu's ppa.
Liviu's PPA has a package named fonts-lyx that will create a folder 
/usr/share/fonts/truetype (if it does not already exist) and then put 
a subfolder named 'lyx' under that. In /usr/share/fonts/truetype/lyx, 
you should find 11 TrueType font files (.ttf extension). If that's not 
there, you just need to install the fonts-lyx package from the PPA.
  It is likely, in addition, that my TexLive installation is at 
fault-- I installed TL from the Mint/Ubuntu repositories, rather than 
from the VERY CONFUSED Texlive site.  The disappointing result is 
that tlmgr does not work right, or not at all.
I get TeXLive from a different PPA: 
https://launchpad.net/~jonathonf/+archive/ubuntu/texlive. (He also has 
LyX distributions there, but I've been sticking with Liviu's PPA and 
have no regrets.)


Paul


--
 --
 Ehud Kaplan, Ph.D.
 Visiting professor
 Dept. of Philosophy & History of Science
 Charles University, Prague
 &
 the National Institute of Mental Health,
 Topolová 748, Klecany
 Czechia
 ---
 Jules and Doris Stein Research to Prevent Blindness Professor
 Director, Center of Excellence for Computational & System neuroscience,
 The Friedman Brain Institute, MSSM
 Director, The laboratory of Visual & Computational Neuroscience
 Depts. of Neuroscience, Ophthalmology, Chemical & Structural Biology
 Icahn school of medicine at Mount Sinai
 One Gustave Levy Place
 New York, NY, 10029
 USA