Re: Problems with LyX on Mac computers

2023-01-23 Thread markhsalmon
Hi Stephan
I hit another problem last night and gave up but will try and replicate it 
again in the next hour when back in my office. I could not copy and paste text 
from a pdf document into Lyx as was trivial before. I am the person who cannot 
insert graphics via the normal insert graphics route but can by inserting the 
graphics file location. Latest version of Lyx and Ventura 13.1. This new 
problem is similar in that I can still with my mouse select the text from the 
pdf document and place the cursor where I want it in the Lyx document but now 
have to click paste from the menu and it works. I have to double check this 
when I get back to my office. I saw somewhere on the web something I didn’t 
understand that I” imagemagick was missing
Thank you for your help but this is really serious as I am in the middle of 
teaching and trying to prepare lecture slides. 
Many thanks
Mark



The more you know, the more you realise how little you know

> On 22 Jan 2023, at 21:27, Stephan Witt  wrote:
> 
> Hi all,
> 
> unfortunately there is some problem with the LyX binaries on macOS Ventura. I 
> built these binaries including the Qt frameworks. At the moment I don’t have 
> the option to investigate the problem because I didn’t upgrade the build 
> system (yet).
> 
> The Universal binary was build on Big Sur and requires at least macOS 10.14. 
> For those unable to update to Mojave (10.14) I made an Intel binary for macOS 
> 10.12 or newer.
> 
> I have no idea what the cause of the Ventura file open dialog is. My plan is 
> to update the build system to macOS 13.x - so it should be possible to solve 
> the problem then.
> 
> Best regards,
> Stephan
> 
>> Am 22.01.2023 um 21:09 schrieb Edwin Burmeister :
>> 
>> Sorry, I did not realize that the current binary for LyX 2.3.7 is a 
>> Universal application. That is what I have been using.
>> 
>> So apparently the problems encountered by Mac users are NOT due to Rosetta 
>> as I had wrongly guessed.
>> 
>> ***
>> Edwin Burmeister
>> Research Professor of Economics Emeritus
>> Duke University
>> Commonwealth Professor of Economics Emeritus
>> University of Virginia
>> e...@econ.duke.edu
>> 
>> 
>> 
 On Jan 22, 2023, at 2:10 PM, Christopher Menzel  
 wrote:
>>> 
>>> On Jan 22, 2023, at 10:48 AM, mark salmon  wrote:
 Marcus in your reply to Ed Burmeister you said there are 2 installers for 
 Lyx 2.3.7- for macs- one for old and one for new versions of MacOS .I 
 don't think I saw this when installing 2.3.7 I just chose the one option I 
 saw in front of me-
>>> 
>>> The two installers are not for older and newer versions of MacOS, they are 
>>> for older and newer Macs — older machines have Intel chips while newer 
>>> machines have Apple Silicon (M1 and M2 chips). The installer for the 
>>> universal LyX binary, which will run on either platform, includes the 
>>> string “x86_64-arm64”; the installer for the Intel-only binary only 
>>> includes the substring “x86_64”. In fact, both installers and both binaries 
>>> will run on both older and newer machines (although, of course, the Intel 
>>> binary requires the mediation of Rosetta on Apple Silicon machines). I 
>>> suppose the Intel-only binary is a bit smaller and perhaps runs a bit 
>>> faster on an Intel Mac, but would think the differences would be negligible 
>>> (but I could be wrong).
>>> 
 could this be the source of the graphics problem?
>>> 
>>> No. The problem arises under Ventura no matter which LyX binary you use.
>>> 
>>> Chris Menzel
>>> 
>>> -- 
>>> lyx-users mailing list
>>> lyx-users@lists.lyx.org
>>> https://urldefense.com/v3/__http://lists.lyx.org/mailman/listinfo/lyx-users__;!!OToaGQ!tbRpWEG7qmHhoF2Z-g6f-klHmlJgyJ5aJIw3qfUZgr0VI7HV_KPofA1VQ_5f3kWbmPlyaWoYKa82fhTX1ZkLBg$
>>>  
>> 
>> -- 
>> lyx-users mailing list
>> lyx-users@lists.lyx.org
>> http://lists.lyx.org/mailman/listinfo/lyx-users
> 
> -- 
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problems with LyX on Mac computers

2023-01-23 Thread mark salmon
PLease ignore my email below from last night regarding  my inablity to 
copy and paste from a PDF file into Lyx with Mac Ventura and Lyx 2.3.7- 
this was a tired error on my part after a long day struggling to get to 
lectures written- I simply confused command V with Control V on the Mac. 
It does work as it whould if I hit the correct keys. However the 
graphics issue still remains. Could this be due the the version of 
Python I have installed? Which Python version does Lyx require on the 
Mac please? How can I check and re-install. I thought I had the Xcode 
version but may  have Anaconda 3.7- but I am ignorant of these issues. 
Any ideas please?

Many many thanks so far,
Mark

On 23/01/2023 08:46, markhsalmon wrote:

Hi Stephan
I hit another problem last night and gave up but will try and replicate it 
again in the next hour when back in my office. I could not copy and paste text 
from a pdf document into Lyx as was trivial before. I am the person who cannot 
insert graphics via the normal insert graphics route but can by inserting the 
graphics file location. Latest version of Lyx and Ventura 13.1. This new 
problem is similar in that I can still with my mouse select the text from the 
pdf document and place the cursor where I want it in the Lyx document but now 
have to click paste from the menu and it works. I have to double check this 
when I get back to my office. I saw somewhere on the web something I didn’t 
understand that I” imagemagick was missing
Thank you for your help but this is really serious as I am in the middle of 
teaching and trying to prepare lecture slides.
Many thanks
Mark



The more you know, the more you realise how little you know


On 22 Jan 2023, at 21:27, Stephan Witt  wrote:

Hi all,

unfortunately there is some problem with the LyX binaries on macOS Ventura. I 
built these binaries including the Qt frameworks. At the moment I don’t have 
the option to investigate the problem because I didn’t upgrade the build system 
(yet).

The Universal binary was build on Big Sur and requires at least macOS 10.14. 
For those unable to update to Mojave (10.14) I made an Intel binary for macOS 
10.12 or newer.

I have no idea what the cause of the Ventura file open dialog is. My plan is to 
update the build system to macOS 13.x - so it should be possible to solve the 
problem then.

Best regards,
Stephan


Am 22.01.2023 um 21:09 schrieb Edwin Burmeister:

Sorry, I did not realize that the current binary for LyX 2.3.7 is a Universal 
application. That is what I have been using.

So apparently the problems encountered by Mac users are NOT due to Rosetta as I 
had wrongly guessed.

***
Edwin Burmeister
Research Professor of Economics Emeritus
Duke University
Commonwealth Professor of Economics Emeritus
University of Virginia
e...@econ.duke.edu




On Jan 22, 2023, at 2:10 PM, Christopher Menzel  wrote:

On Jan 22, 2023, at 10:48 AM, mark salmon  wrote:

Marcus in your reply to Ed Burmeister you said there are 2 installers for Lyx 
2.3.7- for macs- one for old and one for new versions of MacOS .I don't 
think I saw this when installing 2.3.7 I just chose the one option I saw in 
front of me-

The two installers are not for older and newer versions of MacOS, they are for 
older and newer Macs — older machines have Intel chips while newer machines 
have Apple Silicon (M1 and M2 chips). The installer for the universal LyX 
binary, which will run on either platform, includes the string “x86_64-arm64”; 
the installer for the Intel-only binary only includes the substring “x86_64”. 
In fact, both installers and both binaries will run on both older and newer 
machines (although, of course, the Intel binary requires the mediation of 
Rosetta on Apple Silicon machines). I suppose the Intel-only binary is a bit 
smaller and perhaps runs a bit faster on an Intel Mac, but would think the 
differences would be negligible (but I could be wrong).


could this be the source of the graphics problem?

No. The problem arises under Ventura no matter which LyX binary you use.

Chris Menzel

--
lyx-users mailing list
lyx-users@lists.lyx.org
https://urldefense.com/v3/__http://lists.lyx.org/mailman/listinfo/lyx-users__;!!OToaGQ!tbRpWEG7qmHhoF2Z-g6f-klHmlJgyJ5aJIw3qfUZgr0VI7HV_KPofA1VQ_5f3kWbmPlyaWoYKa82fhTX1ZkLBg$  

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

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


--
The more we know, the more we realise how little we know.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Download issue

2023-01-23 Thread Pavel Sanda
On Sun, Jan 22, 2023 at 09:36:39PM -0300, Carlos Knauer wrote:
> 

Your Microsoft Defended SmartScreen is locking you out. If I correctly
understand the following page
https://answers.microsoft.com/en-us/microsoftedge/forum/all/file-is-not-commonly-downloaded-make-sure-you/b869d573-d71c-4bf6-8581-c9714ee19627
you might be able to "Report this file as safe" in context menu
when you right-click on the downloaded item.

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


Re: Ventura graphics Mac

2023-01-23 Thread Dr Eberhard Lisse
Why would I try and install a VM on an M1 (ie an EMULATOR for a
different processor) and install Linux, of which most distributions do
not have the latest and greatest LyX and or TeX(live) to fix a bug that
is almost certainly going to be fixed soon and can be reasonably easily
circumvented until then?

Makes no sense to me, whatsoever.


I was talking about speed. I haven't tried out the intel only version
on the M1 but accept that this issue is there as well.


BTW, I do most of my work on the command line using iTerm and so
copy/paste of a graphics name is easy. However, I must confess that if
I do insert an image, I do (did) it with the file browser.


el

On 22/01/2023 20:21, Christopher Menzel wrote:
[...]
>> The alternative proposed here makes not sense whatsoever to me,
>> especially on an M1. The (speed) limiting factor is LaTeX (in
>> particular LuLaTeX).
> 
> I /guess/ you are talking about my suggested alternative of running
> LyX in a Linux VM under Parallels? How does it "make no sense
> whatever" to you to have a fast, fully-functional version of LyX that
> does not exhibit the bug in question? (Just to note, I’ve also had LyX
> 2.3.7 simply crash on me a couple of times under Ventura in random
> situations, so there are apparently further problems and, hence,
> reasons independent of this bug to run LyX in a VM.)
[...]
>> Universal binary in any case means that on the M1 the M1 binary runs
>> and on the Intel the Intel binary. However, even running the Intel
>> binary on the M1 under Rosetta makes no real difference, other than
>> that it loads slower. But since LyX is set up to open at login I
>> would not even care.
> 
> Are you saying that the bug doesn’t occur if you use a LyX Intel
> (i.e., non-universal) binary under Ventura via Rosetta? That is not
> the case, for either version 2.3.6.2 or 2.3.7. You can’t insert a
> graphic via the file browser in either one.
[...]



-- 
To email me replace 'nospam' with 'el'

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


Re: Why does lyx not find an installed .sty?

2023-01-23 Thread Axel Dessecker via lyx-users
Am Sonntag, 22. Januar 2023, 16:41:33 CET schrieb Rich Shepard:
> On Sun, 22 Jan 2023, Rich Shepard wrote:
> >> What would be the option/action of tlmgr? Looking at the man page I'm not
> >> sure what command to use.
> > 
> > I also ran 'su -c texhash' and that didn't let the letter compile.
> 
> Installed here are:
> texlive-2021.210418-x86_64-1slint
> texlive-extra-2020.200608-x86_64-1_SBo
> 
> and LyX has been working as it should ... except for this scrpage2.sty
> issue.
> 
> Searching the web for a solution I tried running (as root) 'tlmgr update
> --all' only to be shown, 'bash: tlmgr: command not found'. But, tlmgr is
> present as a perl script in /usr/share/texmf-dist/scripts/texlive/tlmgr.pl.
> 
> Since I've not dug into the TeXLive details I don't understand why the
> script is not found and question whether the update --all action to tlmgr
> would make scrpage2.sty visible to LyX.
> 
> Looking forward to learning,
> 
> Rich

Rich,

scrpage2.sty has been deprecated for nine years or so. If it's in your 
preamble, just delete it or try the replacement suggested at 
https://sourceforge.net/p/koma-script/wiki-en/Error_scrpage2/

Good luck,
Axel



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


Re: Ventura graphics Mac

2023-01-23 Thread Christopher Menzel
On Jan 23, 2023, at 7:09 AM, Dr Eberhard Lisse  wrote:
> Why would I try and install a VM on an M1 (ie an EMULATOR for a
> different processor)

Virtualization is not emulation. An emulator (like WINE) makes use of a 
software bridge to simulate a different hardware environment, with a high cost 
in performance; software running on an emulator interacts with the bridge, not 
directly with the hardware. Software running in a Parallels VM runs directly on 
the native hardware at native, or near native, speeds. On a Mac running Apple 
Silicon, you create an native Arm VM with Parallels and you install an Arm 
version of Linux in the VM. There is no emulation.

> and install Linux, of which most distributions do
> not have the latest and greatest LyX and or TeX(live)

So you find one that does (e.g., Kali and, soon, Fedora), easy-peasy. It’s also 
super easy to compile the latest and greatest source yourself under Linux (not 
that that’s everyone’s cup o’ tea).

> to fix a bug that
> is almost certainly going to be fixed soon and can be reasonably easily
> circumvented until then?

Well, I admit that I didn’t say so explicitly, but I wasn’t really suggesting 
that one purchase and install Parallels just to fix the bug (which hopefully is 
going to be fixed soon — though if it isn’t, it won’t be Stephan’s fault, it 
will be due to some deeper problem with MacOS). I was assuming that one might 
have Parallels installed already or have independent reasons for purchasing it. 
For such folks, the VM solution (even if temporary) seems to me to be a 
reasonable one.

> Makes no sense to me, whatsoever.

Hope it makes at least a bit of sense to you now. ;-)

-chris

> On 22/01/2023 20:21, Christopher Menzel wrote:
> [...]
>>> The alternative proposed here makes not sense whatsoever to me,
>>> especially on an M1. The (speed) limiting factor is LaTeX (in
>>> particular LuLaTeX).
>> 
>> I /guess/ you are talking about my suggested alternative of running
>> LyX in a Linux VM under Parallels? How does it "make no sense
>> whatever" to you to have a fast, fully-functional version of LyX that
>> does not exhibit the bug in question? (Just to note, I’ve also had LyX
>> 2.3.7 simply crash on me a couple of times under Ventura in random
>> situations, so there are apparently further problems and, hence,
>> reasons independent of this bug to run LyX in a VM.)
> [...]
>>> Universal binary in any case means that on the M1 the M1 binary runs
>>> and on the Intel the Intel binary. However, even running the Intel
>>> binary on the M1 under Rosetta makes no real difference, other than
>>> that it loads slower. But since LyX is set up to open at login I
>>> would not even care.
>> 
>> Are you saying that the bug doesn’t occur if you use a LyX Intel
>> (i.e., non-universal) binary under Ventura via Rosetta? That is not
>> the case, for either version 2.3.6.2 or 2.3.7. You can’t insert a
>> graphic via the file browser in either one.
> [...]

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


Re: Ventura graphics Mac

2023-01-23 Thread Lorenzo Bertini

On 23/01/23 15:01, Christopher Menzel wrote:
Virtualization is not emulation. An emulator (like WINE) makes use of a 
software bridge to simulate a different hardware environment, with a 
high cost in performance; software running on an emulator interacts with 
the bridge, not directly with the hardware.

Completely off-topic, but from wikipedia:

Wine (formerly a recursive backronym for "Wine Is Not an Emulator" [...]) is a 
free and open-source compatibility layer [...]
Wine provides its compatibility layer for Windows runtime system which 
translates Windows API calls into POSIX API calls, recreating the directory 
structure of Windows, and providing alternative implementations of Windows 
system libraries, system services through wineserver and various other 
components [...].


Wine can, and often will, run at higher than native speeds, compared to 
a same machine with Windows.

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


Re: Ventura graphics Mac

2023-01-23 Thread Christopher Menzel
I stand corrected!

I confess I never used it and — obviously! — never learned what “WINE” stood 
for. (And kudos for a very nice self-referential acronym!)

-chris

> On Jan 23, 2023, at 8:41 AM, Lorenzo Bertini  
> wrote:
> 
> On 23/01/23 15:01, Christopher Menzel wrote:
>> Virtualization is not emulation. An emulator (like WINE) makes use of a 
>> software bridge to simulate a different hardware environment, with a high 
>> cost in performance; software running on an emulator interacts with the 
>> bridge, not directly with the hardware.
> Completely off-topic, but from wikipedia:
>> Wine (formerly a recursive backronym for "Wine Is Not an Emulator" [...]) is 
>> a free and open-source compatibility layer [...]
>> Wine provides its compatibility layer for Windows runtime system which 
>> translates Windows API calls into POSIX API calls, recreating the directory 
>> structure of Windows, and providing alternative implementations of Windows 
>> system libraries, system services through wineserver and various other 
>> components [...].
> 
> Wine can, and often will, run at higher than native speeds, compared to a 
> same machine with Windows.

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


Re: Ventura graphics Mac

2023-01-23 Thread Stephen Buonopane


> On Jan 21, 2023, at 4:02 PM, Christopher Menzel  
> wrote:
> 
> Udi wrote:
>> I think this bug is already reported here 
>> , it seems that you can enter the 
>> Unix file path into the "File:" field manually. 
>> 
>> It's not a perfect solution, but it might solve your problem in the meantime.
> 
> Can confirm.
> 
> This definitely appears to be a Ventura thing. I can’t insert graphics on my 
> 2021 MacBook Pro using either 2.3.6.2 or 2.3.7 but both versions work just 
> fine on my old iMac under Big Sur. You can mitigate the pain of the kludgy 
> workaround a little bit by locating your desired graphic in the Finder, right 
> clicking and selecting “Get Info”. This will bring up an info window that 
> contains the full Unix path to the containing directory that you can copy and 
> paste into the “file:” field in the LyX pop-up for inserting graphics. You’ll 
> still have to type in the file name, but the process is still easier than 
> typing in the whole path, especially if you use cloud storage, which buries 
> your files pretty deeply under your home directory.

For those of you facing this issue, here are two other ways to copy the full 
path and file name, which I think are fewer mouse clicks than opening the Get 
Info..

1) In the Finder, right click on the file to bring up the contextual menu. Then 
press the option key. You will then see Copy “my file.pdf” change to Copy “my 
file.pdf” as Pathname. Paste into LyX Insert Graphics file field. Includes full 
path and file name. 

2) Make an Automator script for the above, so it shows up in the “Services” 
contextual menu.  Described here for an earlier version of MacOS
https://automationpanda.com/2017/09/07/copying-file-paths-from-finder-in-macos/ 

 Then you can just right click and select your automation script without the 
need to press the option key.

(I am not on Ventura yet, so I am assuming these still work in Ventura).

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


Re: Ventura graphics Mac

2023-01-23 Thread Chris Menzel
>
> For those of you facing this issue, here are two other ways to copy the
> full path and file name, which I think are fewer mouse clicks than opening
> the Get Info..
>
> 1) In the Finder, right click on the file to bring up the contextual menu.
> Then press the option key. You will then see Copy “my file.pdf” change to
> Copy “my file.pdf” as Pathname. Paste into LyX Insert Graphics file field.
> Includes full path and file name.
>

Holy smoke, I've been using MacOS since OS X 10.0 and (I'm embarrassed to
admit) I didn't know about this! It's massively better than my suggestion,
obviously. Any idea how long it's been around?

Just to note, I found another workaround for users of the fantastic utility
Launchbar that doesn't require using the Finder at all. If you call up
Launchbar with your hotkey, typing a few characters unique to your
graphic's filename will bring the filename up in your Launchbar window.
Hitting right-arrow or Ctrl-F will then bring up a list where the second
item is the full pathname for the file, which can be copied to the
clipboard with a Cmd-C.

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


Re: Using the return value of "server-get-layout"

2023-01-23 Thread Udicoudco
On Sun, Jan 8, 2023 at 1:16 AM Pavel Sanda  wrote:

> On Wed, Dec 28, 2022 at 04:53:30PM +0200, Udicoudco wrote:
> > I was wondering, is there a way to manipulate
> > the string returned by the LFUN "server-get-layout"
> > and pass the result as an argument to the LFUN "layout"
> > using only LFUN's?
>
> You could use scripting, e.g. if you are on linux:
> $ LAYOUT=`lyxclient -c LYXCMD:server-get-layout|sed
> s/INFO:server-get-layout://`
>
> Then manipulate the result in LAYOUT variable and pass it back again via
> lyxclient.
>
> Pavel
> --
>

Thank you for the advice! It helped me alot.

Best regards,
Udi


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


Re: Ventura graphics Mac

2023-01-23 Thread Stephen Buonopane


> On Jan 23, 2023, at 3:19 PM, Chris Menzel  wrote:
> 
> For those of you facing this issue, here are two other ways to copy the full 
> path and file name, which I think are fewer mouse clicks than opening the Get 
> Info..
> 
> 1) In the Finder, right click on the file to bring up the contextual menu. 
> Then press the option key. You will then see Copy “my file.pdf” change to 
> Copy “my file.pdf” as Pathname. Paste into LyX Insert Graphics file field. 
> Includes full path and file name. 
> 
> Holy smoke, I've been using MacOS since OS X 10.0 and (I'm embarrassed to 
> admit) I didn't know about this! It's massively better than my suggestion, 
> obviously. Any idea how long it's been around?

No idea. I have been using an automator script for this for the last 5 years or 
so. (Highly doubt it was there from OS X day one.)
In general if one “copies” or “drags" a file from Finder into a text based 
application (eg Terminal) you get the path and file name. Even works using the 
little icon in title bar of most apps (eg Preview). This has worked for on the 
order of 10 years.  


> 
> Just to note, I found another workaround for users of the fantastic utility 
> Launchbar that doesn't require using the Finder at all. If you call up 
> Launchbar with your hotkey, typing a few characters unique to your graphic's 
> filename will bring the filename up in your Launchbar window. Hitting 
> right-arrow or Ctrl-F will then bring up a list where the second item is the 
> full pathname for the file, which can be copied to the clipboard with a Cmd-C.
> 
> -chris 

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