Opening documents from a link in Libreoffice
Hello, I am using LyX 2.3.7 under the latest MacOS. I have a Libreoffice spreadsheet with many links to LyX documents. When I click on such a link, it does launch LyX and the associated document. But several functions (Python-related, I guess) are missing: shortcuts and (more importantly) lyx2lyx. Granted, if I open a document from a link, it’s just to have a quick look, not for heavy editing. But if the document is old, lyx2lyx fails and the file just won’t open (whereas it opens quite nicely if I open it from within LyX). I hope I’m being clear… IIRC this issue was not present under Linux. Nor does it happen with other file types than LyX. I don’t know what to think. I’m not even sure it has to do with LyX (maybe Libreoffice trying to enforce its own Python flavour?), but I thought as well to report it. Best regards, Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Default directory for saving previewed files
Dear list members, I have recently noticed a small annoyance (LyX 2.3.7, MacOS 14). It’s about the folder where the various PDF previewers save their files by default. They always revert to a /lyx_tmpbuf0 (e.g.) which is rather deeply nested below the LyX temp directory, either the one chosen for me by the system, or the one that I specified. That makes it tedious to navigate back to the folder where I want to put the file. I’d rather have them remember the last directory used—I think it was the case before (my upgrading to MacOS 14). Apple’s “Preview” and Master PDF both exhibit this behaviour, unlike Acrobat reader (but it has other drawbacks). I don’t know whether the culprit is the latest MacOS, or my recent Python woes, but I’d be glad if there was a setting somewhere which would help me to solve that. TIA for any insight - BR, Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Python (was Shortcuts under MacOs Sonoma)
Yes, I had seen this thread and I had reviewed it. What I didn’t expect, was that the upgrade would suppress something! I don’t know how Python was present before the upgrade (builtin?) However, I have installed the Python3 pkg from the official Python website before I could read your advice. Let’s see if that persists across the next upgrades! BR - Daniel > Le 8 nov. 2023 à 19:16, Dr Eberhard W Lisse a écrit : > > This has been discussed here a number of times in the not so > distant past. > > I think you need to install the X-Code command line tools to > get /usr/bin/python3 again but I use Homebrew's python and > that survives OS Upgrades. > > greetings, el > > > > On 07/11/2023 15:12, Daniel CLEMENT via lyx-users wrote: >> Thanks for your reply Isaac. >> >> The user directory is: ~/Library/Application Support/LyX-2.3/ >> >> That sounded correct. >> >> So I investigated a bit more on the Python side. It was >> definitely a Python issue. >> >> I still can hardly believe it, but it seems that the upgrade >> had completely stripped my system of any Python. I >> (re)installed it from the official site, and all the LyX >> shortcuts got working again. And the reconfigure function, >> too. >> >> So, problem solved for now. BR, Daniel > [...] > > -- > 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: Shortcuts under MacOs Sonoma
Thanks for your reply Isaac. The user directory is: ~/Library/Application Support/LyX-2.3/ That sounded correct. So I investigated a bit more on the Python side. It was definitely a Python issue. I still can hardly believe it, but it seems that the upgrade had completely stripped my system of any Python. I (re)installed it from the official site, and all the LyX shortcuts got working again. And the reconfigure function, too. So, problem solved for now. BR, Daniel > Le 7 nov. 2023 à 04:01, Isaac Oscar Gariano a écrit : > > Dear Daniel, > I personally am not familiar with MacOS, but it sounds like LyX isn't finding > your files correctly. > If you go to Help → About LyX, it will list a folder as "User directory", > Does that folder contain the bind/user.bind file you want to use? > > — Isaac Oscar GarianoFrom: lyx-users on > behalf of Daniel CLEMENT via lyx-users > Sent: Tuesday, 7 November 2023 6:49 AM > To: LyX > Subject: Shortcuts under MacOs Sonoma > Dear list members, > > I have recently upgraded my MacBook to MacOs 14 “Sonoma” last week (right > from 12). > > LyX (2.3.7) was one of the main apps that I have tested; it appeared to work > well at first glance. But only today I have noticed a couple of issues, > mainly shortcuts, but possibly related: > > 1) I’ve lost my shortcuts (sigh!) My shortcut file is still there. I have > reloaded it for good measure, but no luck. So, no Cmd-O to open a file, Cmd-D > for displayed maths and so on… (-> “unknown function” in the taskbar). > > 2) Then I tried to reconfigure, but I got an error message like: “reconfigure > failed - implicit classes will be used but maybe LyX won’t work normally”. > > 3) I happened to try and open a file coming from LyX 2.1, but I got: > “ comes from an old LyX version, but the LyX2LyX script could not > convert it”. > > Doesn’t all this look like a Python issue? I don’t want to rush into any > hazardous workaround… What would you suggest? > > Thanks a lot in advance for any advice - best regards, Daniel > > -- > 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
Shortcuts under MacOs Sonoma
Dear list members, I have recently upgraded my MacBook to MacOs 14 “Sonoma” last week (right from 12). LyX (2.3.7) was one of the main apps that I have tested; it appeared to work well at first glance. But only today I have noticed a couple of issues, mainly shortcuts, but possibly related: 1) I’ve lost my shortcuts (sigh!) My shortcut file is still there. I have reloaded it for good measure, but no luck. So, no Cmd-O to open a file, Cmd-D for displayed maths and so on… (-> “unknown function” in the taskbar). 2) Then I tried to reconfigure, but I got an error message like: “reconfigure failed - implicit classes will be used but maybe LyX won’t work normally”. 3) I happened to try and open a file coming from LyX 2.1, but I got: “ comes from an old LyX version, but the LyX2LyX script could not convert it”. Doesn’t all this look like a Python issue? I don’t want to rush into any hazardous workaround… What would you suggest? Thanks a lot in advance for any advice - best regards, Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
A window size question
Hello, Here is a small annoyance I have about the main window size. I now have an external display, its resolution is much higher that of the MacBook screen (whereas in my [revious setup the resolutions were the same). Every time I switch from one display to another, the LyX window reverts to its default size, the one you get when you start LyX for the 1st time. That’s quite small: no more that the quarter of the small built-in display. I’d like LyX to retain, at least, the window size of the small display, like several other apps do. Is there a setting which can do that? (The “remember window geometry” option doesn’t help.) TIA - BR, Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Some filenames ending with tilde
> Le 6 mars 2023 à 15:28, Maria Gouskova a écrit : > > If these .lyx~ files bother you, you could add the following to your .bashrc > file: > > alias dellyx='find . -name "*.lyx~" -delete' > > Then, with a Terminal window open, type "dellyx" at the $ prompt, and all the > .lyx~ files in that directory and all its subdirectories will be deleted. > (Obviously, only do this when you're sure that you won't need any of the > backups.) > > Maria Hmm... Makes sense. I used to do that by putting all the .lyx~ in my dedicated /backup directory, and emptying it periodically. But then, regular files from various directories happen to have the same name, so the corresponding .lyx~ files would get overwritten. So, your advice is probably smarter. I’ll follow it! > > On Mon, Mar 6, 2023 at 4:26 AM Jürgen Spitzmüller wrote: > Am Montag, dem 06.03.2023 um 10:20 +0100 schrieb Daniel CLEMENT via > lyx-users: > > My bad > > Not at all. It is not very obvious which backup strategies LyX has and > what all the diverse backup and emergency files are for. > > We have thus added a bit of explanation in the User Guide for LyX 2.4. > > Best, > -- > Jürgen > -- > lyx-users mailing list > lyx-users@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-users -- Daniel CLEMENT -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Some filenames ending with tilde
> Le 6 mars 2023 à 09:47, Jürgen Spitzmüller a écrit : > > Am Montag, dem 06.03.2023 um 09:26 +0100 schrieb Daniel CLEMENT via > lyx-users: >> I've just recently noticed that some .lyx~ files remain alongside my >> regular LyX documents. >> >> They are not hidden, but the Mac file browser adds a subtitle to >> them: >> "non admissible" (in French...) > > These are backup files. They are done and updated (by default) each > time you safe the current document. My bad, I was mistaking them for temporary files. > >> Shouldn't they be erased automatically? > > No, they are meant as a permanent backup, should your original file get > corrupted or lost. > > In order to open them with LyX, you probably need to remove the > trailing tilde. Good to know. I guess I had only “used” them when LyX offered me to recover after a crash. > > (The trailing tilde is an established marker of backup files, coming > from the Emacs text editor) > >> Is there a setting that I'm missing? > > In Tools > Preferences > Look & Feel > Document Handling, you can > disable "Backup original documents when saving" if you really do not > want these backups. > > In Tools > Preferences > Paths, you can setup a "Backup directory" > where all these backups are stored rather than alongside the original > document. That’s it, I had forgotten to adjust this setting when I did my new install (I do have a dedicated /backup directory). It’s done now. > > HTH, > -- > Jürgen Thanks a lot Jürgen -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Some filenames ending with tilde
Hello, I'm still rather new to using LyX on a Mac, and I have a couple more questions, here is the 1st: I've just recently noticed that some .lyx~ files remain alongside my regular LyX documents. They are not hidden, but the Mac file browser adds a subtitle to them: "non admissible" (in French...) Shouldn't they be erased automatically? Is there a setting that I'm missing? Thanks in advance - BR, Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: About upgrading to MacOS 13
Le 7 déc. 2022 à 17:21, Stephan Witt a écrit : > > Am 07.12.2022 um 16:21 schrieb Daniel CLEMENT via lyx-users > : >> >> Dear list members, >> >> I have monitored last month’s threads about LyX woes under macOS 13. There >> wasn’t a definite conclusion it seems. >> >> Would you say it’s safe to upgrade to MacOS13 now (with LyX 2.3.6.2)? >> >> When I installed it, it complained about Python missing, but I somehow >> managed to get Python installed too. >> >> I’m rather new to Mac, and in no hurry at all to do the upgrade. Perhaps it >> would be best to wait for LyX 2.4? >> >> I’ll take your advice - best regards, > > Hi Daniel, > > I’m on Mojave for production as primary macOS (because I’m using Aperture > from Apple - a 32bit application w/o 64bit upgrade option!). > > I have access to a M1 system with Big Sur for development builds of LyX. I > don’t want to upgrade because I’ll loose the option to test LyX on Big Sur. > > I’ve tested LyX 2.3.6.2 on different VMs with macOS 12.x and didn’t have time > and resources to try macOS 13 yet. > > My experience is: starting with Monterey 12.3 Apple dropped the support for > Python 2.x and the upgrade from earlier versions removes it. There is a > replacement Python 3 installed as a stub and if this gets called it asks the > user to download and install the real thing from Apple. > > There is one report of having a problem after upgrade from Monterey to > Ventura (macOS 13) with Python again. I couldn’t get the information how this > happened. Probably the upgrade to Ventura breaks the installed Python 3 from > Apple. One has to reinstall it manually. > > All this is a consequence of Apples decision to pass the responsibility for a > working Python software to app developers and/or end users. So they cannot be > blamed for security problems with it, IMO. It makes no sense to include a > Python package with LyX and therefore it is ok to install either Apples or > the „official“ open-source Python for Apple on the system. It’s an open task > to detect the current situation on the users system and give more prominent > and useful advice how to proceed. > > There is another issue I’m aware of. On some systems the gatekeeper keeps > nagging and says the LyX binary is a suspicious one. Probably it’s because of > the bundle permissions, the certificate used for signing or the security > settings of users system. > > My advice would be to try the upgrade if you’re able to go back with time > machine w/o hassle. I’ll be there to answer questions and help to solve > problems. If you don’t want to risk anything I can understand it and you may > wait for the results of my experiments in a virtual machine. Another option > is to create a virtual machine yourself and try it there and contact me if > something is broken. > > Hope that helps and regards, > Stephan Thank you all for your input. I conclude that there is a risk, however little, that something _can_ go wrong. Since I cannot afford to break anything for the next months, I think I’ll play it safe and delay the upgrade. I need to learn MacOS better first. (Marcus: I didn’t even know that the downgrade relied on Time Machine…) In the meantime, there’s a couple of very minor annoyances that I cannot solve alone; I’ll ask about them in another thread. BR - Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
About upgrading to MacOS 13
Dear list members, I have monitored last month’s threads about LyX woes under macOS 13. There wasn’t a definite conclusion it seems. Would you say it’s safe to upgrade to MacOS13 now (with LyX 2.3.6.2)? When I installed it, it complained about Python missing, but I somehow managed to get Python installed too. I’m rather new to Mac, and in no hurry at all to do the upgrade. Perhaps it would be best to wait for LyX 2.4? I’ll take your advice - best regards, -- Daniel CLEMENT -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Individual counters for Problems, Examples, etc.?
Le lundi 03 octobre 2022 à 11:49 +, Bernt Lie via lyx-users a écrit : > In LyX 2.3.6.1 under Windows 11, I have a document of Document Class > “Article (Standard Class with Extra Fontsizes)”. > > Currently, all “theorem-like” elements use the same counter, e.g., > Examples, Problems, etc., use the same counter. AFAIK this is indeed the default behavior. > > I want to use separate counters for the various elements. > > How do I do that in LyX? [In LaTeX, I put a “newtheorem” command in > the Preamble I think. But in LyX, these elements already exist… so I > assume that I mess things up if I create a new “Problem”, etc. > > Thanks for help. > > -B I think it's just a matter of choosing the right "theorems..." module: document > parameters > modules Scroll down to the end to see the various "theorems..." options. They are well explained, and I guess you should find one that does what you want. HTH, -- Daniel CLEMENT -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: TikZ
Le mardi 27 septembre 2022 à 17:42 +0200, Tobias Hilbricht a écrit : > Am Dienstag, dem 27.09.2022 um 17:06 +0200 schrieb Daniel CLEMENT via > lyx-users: > > Le mardi 27 septembre 2022 à 09:29 +0100, José Matos a écrit : > > > On Fri, 2022-09-23 at 06:40 +, M.B. Schiekel wrote: > > > > Hallo Dan, > > > > > > > > LaTeX-Preamble: > > > >\usepackage{tikz} > > > >\usepackage{braids} > > > > > > > > this works perfect - or what support do you wish? > > > > bernhard > > > > > > If you insert the tikz code inside a preview box the figure will be > > > shown immediately, if you click over it you will see the code. > > > > > > The preview box can be inserted in the same way as the tex code: > > > > > > Insert -> TeX Code > > > Insert -> Preview > > > > Hmm... PFMJI, but I'd like to give this a try. Exactly how should it > > be > > done? > > > > If I put the tikz code inside the Preview, I just get the code in the > > output. If I put it inside TeX Code, I get an error ("control > > sequence > > never def'd" about tkzTabInit) > > > > I know my tikz code is OK because I was able to preview its result > > and > > export to eps from the Qtikz utility. But it would be sooo much > > simpler > > to get that directly under LyX! > > > You are still responsible for adding the correct tikz code... > > > > > > -- > > > José Abílio > > > > -- > > Daniel CLEMENT > > See the attached sample file. > Tobias > > Thanks Tobias and Paul, problem solved. It was indeed twofold. For reference, here is what I've done: 1) in order to get variation tables (is that correct?) to compile correctly, I had to load the tkz-tab package instead of just tikz. (I guess it's a superset of tikz with commands such as \TkzTabLine and so on.) 2) My instant preview was indeed turned off, which I prefer for maths, but there is the "no maths" option, which previews just the drawings. Very convenient! -- Daniel CLEMENT -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: TikZ
Le mardi 27 septembre 2022 à 09:29 +0100, José Matos a écrit : > On Fri, 2022-09-23 at 06:40 +, M.B. Schiekel wrote: > > Hallo Dan, > > > > LaTeX-Preamble: > > \usepackage{tikz} > > \usepackage{braids} > > > > this works perfect - or what support do you wish? > > bernhard > > If you insert the tikz code inside a preview box the figure will be > shown immediately, if you click over it you will see the code. > > The preview box can be inserted in the same way as the tex code: > > Insert -> TeX Code > Insert -> Preview Hmm... PFMJI, but I'd like to give this a try. Exactly how should it be done? If I put the tikz code inside the Preview, I just get the code in the output. If I put it inside TeX Code, I get an error ("control sequence never def'd" about tkzTabInit) I know my tikz code is OK because I was able to preview its result and export to eps from the Qtikz utility. But it would be sooo much simpler to get that directly under LyX! > > You are still responsible for adding the correct tikz code... > > -- > José Abílio -- Daniel CLEMENT -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users