Re: Use different texlive installation

2020-03-25 Thread Pavel Sanda
On Wed, Mar 25, 2020 at 09:49:45PM +0100, Zelphir Kaltstahl wrote:
>   File 
> "/gnu/store/an9kb3hqk8368b05g39fz4bzrz18khp7-lyx-2.3.3/lyx2.3/share/lyx2.3/configure.py",
>  line 1327, in processLayoutFile
> classdeclaration = (b'"%s" "%s" "%s" "%s" "%s"'
> TypeError: %b requires a bytes-like object, or an object that implements 
> __bytes__, not 'str'
...
> I think it could also be Python 2 str VS Python 3 str related.

I agree, it looks like this, and related to commit d30da478d4f (Fix encoding 
issues with configuration under Python 3).

You have reasonable chance to get that fixed if you upgrade to lyx 2.3.4.

Pavel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Use different texlive installation

2020-03-25 Thread Kornel Benko
Am Wed, 25 Mar 2020 21:49:45 +0100
schrieb Zelphir Kaltstahl :

> Hello LyX users!
> 
> I've searched the mailing list archives and found some instructions on
> how to change the texlive installation, which LyX uses and added the
> following to my `.profile`:
> 
> START
> ###
> # texlive manager #
> ###
> export MY_TEXLIVE_LOCATION="/usr/local/texlive"
> export PATH="${MY_TEXLIVE_LOCATION}/2019/bin/x86_64-linux:${PATH}"
> 
> ###
> # LYX #
> ###
> 
> # LYX must know where texlive is installed, otherwise it will have limited
> functionality. # prepend web2c path
> export TEXMFCNF="${MY_TEXLIVE_LOCATION}/2019/texmf-dist/web2c" # 
> ":${TEXMFCNF}"
> # export MANPATH="${MY_TEXLIVE_LOCATION}/2019/texmf-dist/doc/man:${MANPATH}"
> # export 
> INFOPATH="${MY_TEXLIVE_LOCATION}/2019/texmf-dist/doc/info:${INFOPATH}"
> ~END~
> 
> And it worked great for a day, I got lots of writing done. Then the next
> day I restarted my machine and LyX complained about not finding any
> textclasses and that it would have limitations.
> 
> Whenever I hit Tools > Reconfigure, I get an error on command line output:
> 
> START
> +checking list of textclasses... 
> Traceback (most recent call last):
>   File
> "/gnu/store/an9kb3hqk8368b05g39fz4bzrz18khp7-lyx-2.3.3/lyx2.3/share/lyx2.3/configure.py",
> line 1897, in  ret = checkLatexConfig(lyx_check_config and LATEX != 
> '',
> bool_docbook) File
> "/gnu/store/an9kb3hqk8368b05g39fz4bzrz18khp7-lyx-2.3.3/lyx2.3/share/lyx2.3/configure.py",
> line 1380, in checkLatexConfig retval = processLayoutFile(file, bool_docbook) 
> File
> "/gnu/store/an9kb3hqk8368b05g39fz4bzrz18khp7-lyx-2.3.3/lyx2.3/share/lyx2.3/configure.py",
> line 1327, in processLayoutFile classdeclaration = (b'"%s" "%s" "%s" "%s" 
> "%s"'
> TypeError: %b requires a bytes-like object, or an object that implements 
> __bytes__, not
> 'str' support/Systemcall.cpp (276): Systemcall: '/usr/local/bin/python -tt
> "/gnu/store/an9kb3hqk8368b05g39fz4bzrz18khp7-lyx-2.3.3/lyx2.3/share/lyx2.3/configure.py"
> --with-version-suffix=2.3 --binary-dir="/home/xiaolong/.guix-profile/bin/"' 
> finished
> with exit code 1 ~END~
> 
> It seems like an implementation bug in the script, expecting another
> type. I think it could also be Python 2 str VS Python 3 str related.
> 
> When I go to Tools > TeX Information, the paths all point to my Guix
> profile, instead of the path I defined in the TEXMFCNF environment
> variable in my `.profile`. I think that is the reason, why it cannot
> find much there. I did not install texlive using Guix, but installed it
> by downloading it and installing every single package of the 2019
> version using the default installer, which I think in turn uses tlmgr.
> 
> My PATH variable starts as follows:
> 
> START
> /home/xiaolong/.nvm/versions/node/v13.9.0/bin:/usr/local/texlive/2019/bin/x86_64-linux:
>  ...
> ~END~
> 
> So it is definitely on the path. According to
> https://tex.stackexchange.com/questions/454513/how-to-specify-the-path-to-texlive-in-lyx/454523#454523
> that should be sufficient, but obviously it is not. It also does not ask
> me after a while to restart it or anything, after rescanning in Tools >
> TeX Information.
> 
> Here is some more system information:
> 
> START
> xiaolong@xlx200:~$ lsb_release -a
> No LSB modules are available.
> Distributor ID:   Trisquel
> Description:  Trisquel GNU/Linux 8.0, Flidas
> Release:  8.0
> Codename: flidas
> 
> xiaolong@xlx200:~$ which lyx2.3 
> /home/xiaolong/.guix-profile/bin/lyx2.3
> 
> xiaolong@xlx200:~$ which python
> /usr/local/bin/python
> 
> xiaolong@xlx200:~$ which tlmgr
> /usr/local/texlive/2019/bin/x86_64-linux/tlmgr
> 
> xiaolong@xlx200:~$ which latexmk
> /usr/local/texlive/2019/bin/x86_64-linux/latexmk
> ~END~
> 
> Here is a complete log of the output on command line, when I run
> `lyx2.3` (it even says, that it will use a wrong texlive):
> 
> https://paste.debian.net/1136648/
> 
> So at some point my LyX did look at the correct path, but not it is not
> and I need to fix it.
> 
> What can I do to make LyX pick up the correct texlive installation path?
> 
> Best regards,
> Zelphir

Probably you have to tell Guix about the new path.
Have you tried to start lyx from the terminal? (That is, after the .profile is 
loaded)

Kornel



pgp2E8D9ZRmii.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Use different texlive installation

2020-03-25 Thread Zelphir Kaltstahl
Hello LyX users!

I've searched the mailing list archives and found some instructions on
how to change the texlive installation, which LyX uses and added the
following to my `.profile`:

START
###
# texlive manager #
###
export MY_TEXLIVE_LOCATION="/usr/local/texlive"
export PATH="${MY_TEXLIVE_LOCATION}/2019/bin/x86_64-linux:${PATH}"

###
# LYX #
###

# LYX must know where texlive is installed, otherwise it will have limited 
functionality.
# prepend web2c path
export TEXMFCNF="${MY_TEXLIVE_LOCATION}/2019/texmf-dist/web2c" # ":${TEXMFCNF}"
# export MANPATH="${MY_TEXLIVE_LOCATION}/2019/texmf-dist/doc/man:${MANPATH}"
# export INFOPATH="${MY_TEXLIVE_LOCATION}/2019/texmf-dist/doc/info:${INFOPATH}"
~END~

And it worked great for a day, I got lots of writing done. Then the next
day I restarted my machine and LyX complained about not finding any
textclasses and that it would have limitations.

Whenever I hit Tools > Reconfigure, I get an error on command line output:

START
+checking list of textclasses... 
Traceback (most recent call last):
  File 
"/gnu/store/an9kb3hqk8368b05g39fz4bzrz18khp7-lyx-2.3.3/lyx2.3/share/lyx2.3/configure.py",
 line 1897, in 
ret = checkLatexConfig(lyx_check_config and LATEX != '', bool_docbook)
  File 
"/gnu/store/an9kb3hqk8368b05g39fz4bzrz18khp7-lyx-2.3.3/lyx2.3/share/lyx2.3/configure.py",
 line 1380, in checkLatexConfig
retval = processLayoutFile(file, bool_docbook)
  File 
"/gnu/store/an9kb3hqk8368b05g39fz4bzrz18khp7-lyx-2.3.3/lyx2.3/share/lyx2.3/configure.py",
 line 1327, in processLayoutFile
classdeclaration = (b'"%s" "%s" "%s" "%s" "%s"'
TypeError: %b requires a bytes-like object, or an object that implements 
__bytes__, not 'str'
support/Systemcall.cpp (276): Systemcall: '/usr/local/bin/python -tt 
"/gnu/store/an9kb3hqk8368b05g39fz4bzrz18khp7-lyx-2.3.3/lyx2.3/share/lyx2.3/configure.py"
 --with-version-suffix=2.3 --binary-dir="/home/xiaolong/.guix-profile/bin/"' 
finished with exit code 1
~END~

It seems like an implementation bug in the script, expecting another
type. I think it could also be Python 2 str VS Python 3 str related.

When I go to Tools > TeX Information, the paths all point to my Guix
profile, instead of the path I defined in the TEXMFCNF environment
variable in my `.profile`. I think that is the reason, why it cannot
find much there. I did not install texlive using Guix, but installed it
by downloading it and installing every single package of the 2019
version using the default installer, which I think in turn uses tlmgr.

My PATH variable starts as follows:

START
/home/xiaolong/.nvm/versions/node/v13.9.0/bin:/usr/local/texlive/2019/bin/x86_64-linux:
 ...
~END~

So it is definitely on the path. According to
https://tex.stackexchange.com/questions/454513/how-to-specify-the-path-to-texlive-in-lyx/454523#454523
that should be sufficient, but obviously it is not. It also does not ask
me after a while to restart it or anything, after rescanning in Tools >
TeX Information.

Here is some more system information:

START
xiaolong@xlx200:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Trisquel
Description:Trisquel GNU/Linux 8.0, Flidas
Release:8.0
Codename:   flidas

xiaolong@xlx200:~$ which lyx2.3 
/home/xiaolong/.guix-profile/bin/lyx2.3

xiaolong@xlx200:~$ which python
/usr/local/bin/python

xiaolong@xlx200:~$ which tlmgr
/usr/local/texlive/2019/bin/x86_64-linux/tlmgr

xiaolong@xlx200:~$ which latexmk
/usr/local/texlive/2019/bin/x86_64-linux/latexmk
~END~

Here is a complete log of the output on command line, when I run
`lyx2.3` (it even says, that it will use a wrong texlive):

https://paste.debian.net/1136648/

So at some point my LyX did look at the correct path, but not it is not
and I need to fix it.

What can I do to make LyX pick up the correct texlive installation path?

Best regards,
Zelphir

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: End-of-frame separator in lyx/Beamer

2020-03-25 Thread Jürgen Spitzmüller
Am Mittwoch, den 25.03.2020, 12:33 -0400 schrieb UD Kap:
> Jurgen-- The alt-shift-P-return shortcut does not work in my
> system/environment, and adding a separate frame (environment?) below
> is not what I needed to separate one from from the one following it
> in an existing presentation-- I needed just a separator. 

Why do you need a separator if no other frame follows?

Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: End-of-frame separator in lyx/Beamer

2020-03-25 Thread Scott Kostyshak
On Wed, Mar 25, 2020 at 12:33:56PM -0400, UD Kap wrote:
> Jurgen-- The alt-shift-P-return shortcut does not work in my system/
> environment, and adding a separate frame (environment?) below is not
> what I needed to separate one from from the one following it in an
> existing presentation-- I needed just a separator. 

Hi Ehud,

Please bottom-post (https://wiki.lyx.org/FAQ/ListNetiquette#tofu).

Indeed, it is difficult and frustrating to transition to a new way of
doing things. You might just want to stick with an older version of LyX
until you have the time and energy to deal with the transition and to
read Help > Specific Manuals > Beamer Presentations.

If you send us a minimal example, and describe exactly what you would
like to achieve as the end goal, we can tell you the "new" way of doing
things. It's always fun to argue whether the new way of doing things is
better/worse than the old way, but let's separate that discussion from
"how do accomplish things in the new way?".

As for just needing a separator, I'm not sure that manually inserting a
separator is the best way to accomplish what you want to do in the *new*
way of using Beamer in LyX.

Extra credit reading:

  http://xyproblem.info/
  https://wiki.lyx.org/FAQ/MinimalExample

Best,

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: End-of-frame separator in lyx/Beamer

2020-03-25 Thread UD Kap

  
  
Jurgen-- The alt-shift-P-return shortcut does not work in my
  system/environment, and adding a separate frame (environment?)
  below is not what I needed to separate one from from the one
  following it in an existing presentation-- I needed just a
  separator.  

EK


On 3/25/20 11:32 AM, Jürgen Spitzmüller
  wrote:


  Am Mittwoch, den 25.03.2020, 14:43 +0200 schrieb Dr Eberhard Lisse:

  
At the end of the frame, make the "environment" Standard (CMD-P S)
and hit return.

  
  
Or easier: Alt+P+Shift+Return (Insert > Separate environment below)

All explained in Help > Specific Manuals > Beamer Presentation

Jürgen

PS. And no, I am not going to explain once more why the removal of the
separator was necessary to get real beamer frame support

  
  

-- 
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
  

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: End-of-frame separator in lyx/Beamer

2020-03-25 Thread UD Kap

  
  
Thanks, EL-- that works.  I cannot imagine why I did not think of
  it myself-- it is the most intuitive and obvious way of inserting
  a frame separator ;-)
EK



On 3/25/20 11:32 AM, Jürgen Spitzmüller
  wrote:


  Am Mittwoch, den 25.03.2020, 14:43 +0200 schrieb Dr Eberhard Lisse:

  
At the end of the frame, make the "environment" Standard (CMD-P S)
and hit return.

  
  
Or easier: Alt+P+Shift+Return (Insert > Separate environment below)

All explained in Help > Specific Manuals > Beamer Presentation

Jürgen

PS. And no, I am not going to explain once more why the removal of the
separator was necessary to get real beamer frame support

  
  



  

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: End-of-frame separator in lyx/Beamer

2020-03-25 Thread Jürgen Spitzmüller
Am Mittwoch, den 25.03.2020, 14:43 +0200 schrieb Dr Eberhard Lisse:
> At the end of the frame, make the "environment" Standard (CMD-P S)
> and hit return.

Or easier: Alt+P+Shift+Return (Insert > Separate environment below)

All explained in Help > Specific Manuals > Beamer Presentation

Jürgen

PS. And no, I am not going to explain once more why the removal of the
separator was necessary to get real beamer frame support


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: End-of-frame separator in lyx/Beamer

2020-03-25 Thread Dr Eberhard Lisse
You are welcome.

But, that only means you don't write enough presentations with
LyX/Beamer :-)-O

greetings, el


On 2020-03-25 14:55 , Pavel Sanda wrote:
> On Wed, Mar 25, 2020 at 02:43:08PM +0200, Dr Eberhard Lisse wrote:
>> At the end of the frame, make the "environment" Standard (CMD-P S) and
>> hit return.
> 
> Nice, I did not know about that myself :)
> Pavel
> 

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: End-of-frame separator in lyx/Beamer

2020-03-25 Thread Pavel Sanda
On Wed, Mar 25, 2020 at 02:43:08PM +0200, Dr Eberhard Lisse wrote:
> At the end of the frame, make the "environment" Standard (CMD-P S) and
> hit return.

Nice, I did not know about that myself :)
Pavel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: End-of-frame separator in lyx/Beamer

2020-03-25 Thread Dr Eberhard Lisse
At the end of the frame, make the "environment" Standard (CMD-P S) and
hit return.

el

On 2020-03-24 21:30 , UD Kap wrote:
> As if the Corona Virus wasn't enough, now it turns out that Lyx has lost
> (removed?) the ability to insert an end-of-frame separator in Beamer
> presentations documents!  What is the world coming to? 
> 
>  It seems that if you hold your mouth just right, you could still
> get a frame separator by some tricks, but why was the convenient way of
> doing it, through the menu, removed?  Don't we have trouble enough in
> the world?
> 
> Ehud Kaplan
> 
> 
> 

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: End-of-frame separator in lyx/Beamer

2020-03-25 Thread UD Kap

  
  
Paul & Pavel (Paul2?)-- I am using 2.3.4.2
  (latest, I think) under Linux/Mint-XFCE 19.3 (latest).  I found
  the Separated
  Frame Below(above) on my own, before I nagged you,
  but it inserts not only a separator, but a NEW FRAME-- a separator
  PLUS an open frame, which needs to be removed, because it creates
  a blank frame in the presentation.  Deleting it also deletes the
  desired separator, and we are back to square one.    I tried the
  shortcuts, but they did not work on my system.   This should not
  be THAT difficult, and it did not used to be.  

Yours,
Ehud Kaplan



On 3/24/20 4:46 PM, Paul A. Rubin
  wrote:


  
  On 3/24/20 3:30 PM, UD Kap wrote:
  
  


As if the Corona Virus wasn't enough, now it turns out that
  Lyx has lost (removed?) the ability to insert an end-of-frame
  separator in Beamer presentations documents!  What is the
  world coming to?  

 It seems that if you hold your mouth just right, you
  could still get a frame separator by some tricks, but why was
  the convenient way of doing it, through the menu, removed? 
  Don't we have trouble enough in the world?
Ehud Kaplan




  
  What version of LyX are you using? I'm on 2.3.4.2, where Insert
  > Separated Frame Above and Insert > Separated Frame Below
  are alive and showing no signs of infection (with the latter even
  having a keyboard shortcut).
  
  Paul
  
  
  



  

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: lyx file from 2015 not converted to pdf

2020-03-25 Thread Wolfgang Engelmann



Am 24.03.20 um 20:24 schrieb Jean-Marc Lasgouttes:

Le 24/03/2020 à 20:23, Wolfgang Engelmann a écrit :

What does Help>About>Information on Compilation say? It should tell 
us what options where active when configuring LyX.



LyX Version 2.3.4.2
(Friday, February 7, 2020)

Library directory: /usr/share/lyx/
User directory: ~/.lyx/
Qt Version (run-time): 5.12.5
Qt Version (compile-time): 5.12.5


This is the first tab of the dialog. I am interested by the 4th one.

JMarc


Here it is:
Build Info:
LyX 2.3.4.2 (2020-02-07)
Configuration
  Host type:   x86_64-pc-linux-gnu
  Special build flags:  build=release std-regex warnings use-enchant
  Bundled libraries:   (none)
  C++ Compiler:g++ (9.2.1)
  C++ Compiler flags:   -Wall -Wextra -Wno-deprecated-copy -fPIC 
-O2 -std=c++14
  C++ Compiler user flags:  -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++14 
-g -O2 -fdebug-prefix-map=/build/lyx-Jf4jAS/lyx-2.3.4.2=. 
-fstack-protector-strong -Wformat -Werror=format-security -fPIC

  Linker flags:
  Linker user flags:   -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro 
-Wl,-z,now

  Qt Frontend:
  Qt version:  5.12.5
  Packaging:   posix
  LyX binary dir:  /usr/bin
  LyX files dir:   /usr/share/lyx

Wolfgang

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users