Consider shortcut to mathbf

2024-11-27 Thread Lorenzo Bertini
Dear devs, please consider making a shortcut for mathbf, since a lot of people use it for vectors and matrices instead of \boldsymbol or \vec. A good default would be CTRL-SHIFT-B, since CTRL-B is \boldsymbol and bold in many text editors. Thanks, Lorenzo -- lyx-devel mailing list lyx-devel@lists

Re: Missing includes

2024-11-18 Thread Lorenzo Bertini
time) are Qt and SQLite (which groups everything into one huge cpp file). Lorenzo Il giorno lun 18 nov 2024 alle ore 16:11 Jean-Marc Lasgouttes < lasgout...@lyx.org> ha scritto: > Le 18/11/2024 à 15:51, Pavel Sanda a écrit : > > On Mon, Nov 18, 2024 at 02:26:03PM +0100, Lorenzo Bert

Re: Missing includes

2024-11-18 Thread Lorenzo Bertini
uiSetBorder.h', 'GuiShowFile.h', 'GuiSpellchecker.h', 'GuiSymbols.h', 'GuiRef.h', 'GuiTabular.h', 'GuiTabularCreate.h', 'GuiTexinfo.h', 'GuiThesaurus.h', 'GuiToc.h', 'GuiToolbar.h&#

Re: Missing includes

2024-11-18 Thread Lorenzo Bertini
Currently, there is no way except hacks to tell meson that some cpp files are not to be compiled but included. I have opened an issue in their repo. In the meanwhile let's put the patches on hold. Lorenzo Il giorno lun 18 nov 2024 alle ore 10:47 Lorenzo Bertini < lorenzobertin...@gmail

Re: Missing includes

2024-11-18 Thread Lorenzo Bertini
to the final linking stage. Then it fails on "multiple definitions of function" over the cpp files and the moc generated ones. I still need to figure this one out. Cheers, Lorenzo Il giorno dom 17 nov 2024 alle ore 20:43 Pavel Sanda ha scritto: > On Sun, Nov 17, 2024 at 12:12:

Re: Missing includes

2024-11-18 Thread Lorenzo Bertini
2024 alle ore 10:41 Lorenzo Bertini < lorenzobertin...@gmail.com> ha scritto: > I'm on GCC 14, Fedora 41. C++ standard is set to C++17. I call it with a > meson.build like this: > > sources = [ 'DockView.cpp', ... ] > > ui_files = [ 'ui/AboutUi.ui',

Re: Missing includes

2024-11-18 Thread Lorenzo Bertini
lun 18 nov 2024 alle ore 10:35 Pavel Sanda ha scritto: > nOn Mon, Nov 18, 2024 at 10:04:57AM +0100, Lorenzo Bertini wrote: > > I have included everything in the patch. When I look at those errors, the > > fix seems like a best practice to me, this is why I'm proposing the >

Missing includes

2024-11-17 Thread Lorenzo Bertini
Dear devs, when trying to port LyX to yet another build system I found that src/frontends/GuiClipboard.h is missing and "support/docstring.h", and GuiSearch.h only "support/docstring.h". I don't exactly know how autotools manages to build anyway, but the files use std::string and docstring without

Quick patch for cases MathML bracket

2024-11-13 Thread Lorenzo Bertini
Dear devs, can somebody push this tiny patch for InsetMathCases::mathmlize that adds an mrow that makes the bracket stretch correctly? See attached image. Thanks, Lorenzo From 8c48be4b0ef1ede8b91e5e4fb20566225cddc172 Mon Sep 17 00:00:00 2001 From: Lorenzo Bertini Date: Wed, 13 Nov 2024 12:55:59

LyX weird terminal output on master

2024-11-12 Thread Lorenzo Bertini
Dear devs, upon opening and closing LyX from the terminal, the following messages appear: endResetModel called on QSortFilterProxyModel(0x13616590) without calling beginResetModel first endResetModel called on QSortFilterProxyModel(0x12e9c480) without calling beginResetModel first endResetModel ca

Re: Layout file format change proposal

2024-04-07 Thread Lorenzo Bertini
Dear devs, thanks to everyone who chimed in. I didn't understand José's reply until I looked at the lexers we use and found only one. I just didn't occur to me that most files LyX uses are in this same format, documents and configurations alike. This is a considerable advantage of LyX's own format,

Re: Layout file format change proposal

2024-03-28 Thread Lorenzo Bertini
LyX. Having easy tools to edit them would help. Also, provided some guidance, I volunteer to do the work necessary for this. Lorenzo Il giorno gio 28 mar 2024 alle ore 12:40 Lorenzo Bertini ha scritto: > > Il giorno gio 28 mar 2024 alle ore 11:40 José Matos > ha scritto: > >

Re: Layout file format change proposal

2024-03-28 Thread Lorenzo Bertini
Il giorno gio 28 mar 2024 alle ore 11:40 José Matos ha scritto: > > On Wed, 2024-03-27 at 11:02 -0400, Scott Kostyshak wrote: > > Cool idea, Lorenzo! There have been some discussions in the past on > > using standard formats, even for the .lyx file itself. I can see the > > advantages of that but

Layout file format change proposal

2024-03-20 Thread Lorenzo Bertini
Dear devs, I don't know if this has been discussed before. Lyx uses it's own format .layout (or .module), with it's own parser. However, the same information can be easily saved stored in another format. I asked a chatbot to convert "amsbook.layout" to an hypothetical "amsbook.yaml" file: format:

Re: Don't record (de)activating change tracking on undo stack

2023-11-30 Thread Lorenzo Bertini
Il giorno gio 30 nov 2023 alle ore 15:47 Jean-Marc Lasgouttes ha scritto: > > Le 30/11/2023 à 03:01, Daniel a écrit : > > LyX has the peculiarity of treating the (de)activating of change > > tracking as something that is recorded on the undo stack. > > Actually, everything that is stored in the fi

Re: flatpak

2023-11-24 Thread Lorenzo Bertini
Il giorno ven 24 nov 2023 alle ore 18:24 T Rex ha scritto: > > good day everyone, my apologies in advance if this is not the correct channel > to do the following: as Lyx is not available on flathub, I would like to > create the manifest so that it is available there, in any case the original >

Re: Beta 5 Tarballs

2023-08-31 Thread Lorenzo Bertini
Il 31/08/23 18:31, Jean-Marc Lasgouttes ha scritto: Le 31/08/2023 à 17:35, Scott Kostyshak a écrit : What does the Qt client-side decoration look like? I've only used LyX briefly (just to test) on Ubuntu Wayland, but I'm surprised my picky eyes didn't notice. Also, JMarc. Do you get the same wh

Re: File nl.po does not exist

2023-06-15 Thread Lorenzo Bertini
Il 15/06/23 15:09, Pavel Sanda ha scritto: On Thu, Jun 15, 2023 at 12:19:24PM +0200, Lorenzo Bertini wrote: Dear list, I can't build master anymore. It says: make[3]: ??ja.gmo?? is up to date. make[3]: ??nb.gmo?? is up to date. make[4]: entering directory ??.../lyx/po?? File nl.po doe

File nl.po does not exist

2023-06-15 Thread Lorenzo Bertini
Dear list, I can't build master anymore. It says: make[3]: «ja.gmo» is up to date. make[3]: «nb.gmo» is up to date. make[4]: entering directory «.../lyx/po» File nl.po does not exist. If you are a translator, you can create it through 'msginit'. make[4]: *** [Makefile:703: nl.po-create] Error

Re: [LyX/master] Honor Update::SinglePar properly

2023-02-21 Thread Lorenzo Bertini
Il 21/02/23 17:01, Scott Kostyshak ha scritto: On Wed, Feb 20, 2019 at 02:37:03PM +0100, Jean-Marc Lasgouttes wrote: Found an instance that seems to be missing an update. Reproducing requires some fast typing. It is only 30% reproducible even after a shot of espresso, but 100% reproducible if I

Re: QRegExp is deprecated in qt6

2023-02-12 Thread Lorenzo Bertini
Il 12/02/23 20:53, Scott Kostyshak ha scritto: On Sun, Feb 12, 2023 at 08:46:31PM +0100, Lorenzo Bertini wrote: Dear list, trying to compile with --enable-qt6 gives the following error: qstring_helpers.cpp:21:10: fatal error: QRegExp: File o directory non esistente 21 | #include

QRegExp is deprecated in qt6

2023-02-12 Thread Lorenzo Bertini
Dear list, trying to compile with --enable-qt6 gives the following error: qstring_helpers.cpp:21:10: fatal error: QRegExp: File o directory non esistente 21 | #include | ^ In the page https://doc.qt.io/qt-6/qregexp.html it says: This class is deprecated in Qt 6. P

Re: Override mode for local layout / how to unset parameter

2023-01-03 Thread Lorenzo Bertini
On 03/01/23 18:50, Richard Kimberly Heck wrote: On 1/3/23 11:49, Lorenzo Bertini wrote: Hi, I hope you all had wonderful holidays. I'm doing some tests with local layouts, and I was wondering what is the modality with which a local layout overrides the default: does it completely eras

Override mode for local layout / how to unset parameter

2023-01-03 Thread Lorenzo Bertini
Hi, I hope you all had wonderful holidays. I'm doing some tests with local layouts, and I was wondering what is the modality with which a local layout overrides the default: does it completely erase the latter and uses your edits, or does it override only the attributes you've modified? For

Re: Lyx is listed as proprietary software in gnome software

2022-12-13 Thread Lorenzo Bertini
Il 13/12/22 17:27, José Matos ha scritto: On Mon, 2022-12-12 at 21:36 +0100, Lorenzo Bertini wrote: Hi list, just a heads up that for some reason LyX is listed as having a proprietary license in gnome software. I don't know what is the cause. We might want to fix this soon. Any suggestio

Lyx is listed as proprietary software in gnome software

2022-12-12 Thread Lorenzo Bertini
Hi list, just a heads up that for some reason LyX is listed as having a proprietary license in gnome software. I don't know what is the cause. We might want to fix this soon. Any suggestions on who I can contact? -- Lorenzo -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.or

Re: Local layout syntax highlight foundation

2022-10-20 Thread Lorenzo Bertini
Il 19/10/22 18:58, Pavel Sanda ha scritto: On Fri, Oct 07, 2022 at 07:22:30PM +0200, Lorenzo Bertini wrote: 2. LyXHighlighter differs a lot from LaTeXHighlighter: doesn't rely on regex as much. I was wondering if a merge could be possible, considering local layout can include Latex bits.

Local layout syntax highlight foundation

2022-10-07 Thread Lorenzo Bertini
Hello list, attached is a patch that adds a syntax highlighter to the local layout QTextEdit that supports some very basic LyX syntax. I remember someone asking for this, but nonetheless it can be useful. I've encountered some problems and I would appreciate your help: 1. I can't find how to

Re: Wiki problems and where to report them

2022-09-01 Thread Lorenzo Bertini
Il 01/09/22 15:01, Pavel Sanda ha scritto: On Thu, Sep 01, 2022 at 01:48:30PM +0200, Lorenzo Bertini wrote: I can start maybe updating some pages with what I know, That would be nice indeed. but there are some things I just can't do as user. Feel free to bring whatever access issue

Re: Trac: Invalid username or password

2022-09-01 Thread Lorenzo Bertini
Il 01/09/22 16:01, Jean-Marc Lasgouttes ha scritto: Le 29/08/2022 à 09:14, Jürgen Spitzmüller a écrit : Has anyone found a solution? We'll have to wait until somebody with access to the database (Riki, JMarc) is back. I reverted to the passwords from August 12, and everything seems OK now.

Wiki problems and where to report them

2022-09-01 Thread Lorenzo Bertini
Hello, the state of Lyx wiki seems not very healthy. Many pages are outdated (some haven't been updated in 12 years) and groups have grown too much so that they now contain maybe too many pages. Many times I wanted to find something it takes a long time to navigate through the groups and cat

Re: Add font to recognized fonts

2022-08-30 Thread Lorenzo Bertini
Il 30/08/22 08:58, Jürgen Spitzmüller ha scritto: Am Montag, dem 29.08.2022 um 22:44 +0200 schrieb Lorenzo Bertini: Hello, I noticed there are some fonts available for Latex that do not appear in Lyx's document settings: an example is Caladea Font. This font comes in "texlive-

Add font to recognized fonts

2022-08-29 Thread Lorenzo Bertini
Hello, I noticed there are some fonts available for Latex that do not appear in Lyx's document settings: an example is Caladea Font. This font comes in "texlive-font-extra" package in Debian, so it's something commonly used. Right now I use "\usepackage{caladea}" in an "AddToPreamble" custom

Re: Trac: Invalid username or password

2022-08-28 Thread Lorenzo Bertini
Bump! I'm getting the same message :(. Has anyone found a solution? Lorenzo -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: Quick newbie question

2022-05-02 Thread Lorenzo Bertini
Il 02/05/22 13:39, Pavel Sanda ha scritto: On Mon, May 02, 2022 at 01:04:23PM +0200, Lorenzo Bertini wrote: Update: file was never gone, just in its folder "3rdparty". Compilation now works after countless attemps, and I didn't really change anything :). Problem is here agai

Re: Quick newbie question

2022-05-02 Thread Lorenzo Bertini
Il 01/01/22 19:01, Lorenzo Bertini ha scritto: Il 01/01/22 17:54, Lorenzo Bertini ha scritto: Dear list, I found a bug and needed to bisect, so i moved back HEAD to an old commit, then configured and built. I went back to master and can't build anymore because its missing `nod.hpp` fil

Re: LyXHTML doc doesn't pass validation

2022-03-23 Thread Lorenzo Bertini
Il 23/03/22 19:03, Thibaut Cuvelier ha scritto: On Wed, 23 Mar 2022 at 18:43, Lorenzo Bertini mailto:lorenzobertin...@gmail.com>> wrote: Running a very simple LyXHTML doc (a section with a few paragraphs) against this validator https://validator.w3.org/check <https://val

LyXHTML doc doesn't pass validation

2022-03-23 Thread Lorenzo Bertini
Running a very simple LyXHTML doc (a section with a few paragraphs) against this validator https://validator.w3.org/check reports some errors, I don't really know if we care or not: 1. value of attribute "dir" cannot be "auto"; must be one of "ltr", "rtl" 2. element "section" undefined Is this

Re: Lots of duplicate code in docbook

2022-03-21 Thread Lorenzo Bertini
Il 21/03/22 11:49, Daniel ha scritto: On 2022-03-21 10:55, Lorenzo Bertini wrote: There is some degree of duplication between Docbook and LyXHTML code. I think its because the latter is much older and Thibaut had to write its own to produce Docbook. This has been brought up also when

Re: Lots of duplicate code in docbook

2022-03-21 Thread Lorenzo Bertini
Il 21/03/22 10:37, Daniel ha scritto: I have no knowledge about docbook. I never used it. I was just wondering why so code is duplicated in the docbook functions. For example, Tabular::docbookRowAsHTML and Tabular::docbookRowAsCALS seems to duplicate much of Tabular::xhtmlRow. Isn't that an iss

Re: Missing tabular-feature_set-all-lines.svgz

2022-03-18 Thread Lorenzo Bertini
Il 18/03/22 10:20, Jürgen Spitzmüller ha scritto: Am Freitag, dem 18.03.2022 um 09:18 +0100 schrieb Lorenzo Bertini: Hello, since a week ago I can't build LyX anymore, as it complains that the file "tabular-feature_set-all-lines.svgz" is necessary for "all-am", but t

Missing tabular-feature_set-all-lines.svgz

2022-03-18 Thread Lorenzo Bertini
Hello, since a week ago I can't build LyX anymore, as it complains that the file "tabular-feature_set-all-lines.svgz" is necessary for "all-am", but there are no rules to make it, as it is an image. I checked and it's not present in origin repo. What can I do to start building again? Thanks

Re: Quick newbie question

2022-01-01 Thread Lorenzo Bertini
Il 01/01/22 17:54, Lorenzo Bertini ha scritto: Dear list, I found a bug and needed to bisect, so i moved back HEAD to an old commit, then configured and built. I went back to master and can't build anymore because its missing `nod.hpp` file; no git command seems to restore this file

Quick newbie question

2022-01-01 Thread Lorenzo Bertini
Dear list, I found a bug and needed to bisect, so i moved back HEAD to an old commit, then configured and built. I went back to master and can't build anymore because its missing `nod.hpp` file; no git command seems to restore this file (git reset --hard, creating a new master branch tracking

Quick questions

2021-10-14 Thread Lorenzo Bertini
Hello list, just a couple of quick questions. I wanted to get a meaningful output out of valgrind so i needed to build a debug version: 1. how do i tell autotools that i want this? I tried some LyX pages but they don't specifically say how. Is it the default behavior? In case, how do i get re

Re: Edit Externally: implement for math insets?

2021-05-12 Thread Lorenzo Bertini
Il 12/05/21 16:32, Scott Kostyshak ha scritto: I'm surprised that this question about toggling between LyX math and LaTeX has received a lot of views: https://tex.stackexchange.com/questions/45301/in-lyx-is-there-a-way-to-toggle-the-display-of-tex-code-in-math-expressions/46328#46328 I don'

Re: Documentation Help

2021-01-13 Thread Lorenzo Bertini
Il 13/01/21 18:22, Richard Kimberly Heck ha scritto: > Hi, everyone, > > We hope to release LyX 2.4.0 in the next couple months. Before then, > there is some work that needs to be done on the documentation. If you've > always wanted to contribute to LyX but haven't because you don't know > how to

Re: XML stream writer library

2021-01-12 Thread Lorenzo Bertini
Il 08/01/21 03:00, Thibaut Cuvelier ha scritto: A tour of some C++ libraries for XML: - RapidXML: mostly unmaintained since 2013, no support for namespaces (except in forks: https://github.com/dwd/rapidxml ) - Boost Property Tree: no XML parser, which limits fur

Re: XML stream writer library

2021-01-07 Thread Lorenzo Bertini
I think almost all the options are on the table at this point. For the sake of completeness I think it's worth mentioning DOM library Boost Property Tree, which popped up frequently while searching. I think Thibaut is right when saying that, for the way LyX is structured now, a SAX writer woul

XML stream writer library

2021-01-03 Thread Lorenzo Bertini
Hello list, In 12055 , discussing the merge of some MathMLStream and XmlStream components, we were contemplating the possibility of using an external library to handle XML streams, for example with indentation and tag insertion. One of the candidates was QXml

Contributions licensing

2020-12-18 Thread Lorenzo Bertini
Hello list, I (lynx in bug tracker) am here licensing all my (hopefully) future contributions and the small patch for #12050 to LyX under GNU GPL v2 or any later version. Since I'm here I'd really like to ask which file and functions to look to understand how LyX handles \left \right: so far i

Re: Preamble section patch

2020-09-30 Thread Lorenzo Bertini
Il 28/09/20 22:57, Richard Kimberly Heck ha scritto: > So can you create a file with the new preamble that might cause a problem so > we can see exactly what it is? > > Riki My problem is with the following (pseudo)code, that is present in writeLatex, but not in my code: > // Check if the user

Re: Preamble section patch

2020-09-27 Thread Lorenzo Bertini
Can you give more details on what you mean by "far from perfect"? Yes, sorry! The thing I'm not happy with is that patch makes it so the HTML preamble gets stored in a new bufferParams docstring, but it doesn't get checked for illegal characters and it's "brutally" printed in writeHTMLSource in

Preamble section patch

2020-09-27 Thread Lorenzo Bertini
egards, Lo From f38be31816ad8f519f29bbc74c8cf1e6663faca0 Mon Sep 17 00:00:00 2001 From: Lorenzo Bertini Date: Tue, 22 Sep 2020 20:14:48 +0200 Subject: [PATCH] Preamble section generalization --- src/Buffer.cpp| 7 src/BufferParams.cpp | 19 +++ src/BufferParams.h

Re: [Request/idea] Preamble generalization

2020-09-21 Thread Lorenzo Bertini
he whole outputting is done. Is there any documentation? Lo From 9914af1583355687e93662ac1019880799228e17 Mon Sep 17 00:00:00 2001 From: Lorenzo Bertini Date: Mon, 21 Sep 2020 20:08:32 +0200 Subject: [PATCH] Preamble section generalization --- src/Buffer.cpp| 7 src/BufferPa

Re: [Request/idea] Preamble generalization

2020-09-19 Thread Lorenzo Bertini
Sorry for the old bump, but I managed to make a tabbed menu with "LaTeX" and "HTML" as tabs for the "Preamble" section: What I managed to do: 1) Buffer params received a new variable that can be written to and read from a LyX file just as old ; 2) "Preamble" section now has two tabs, each with a

Re: [Request/idea] Preamble generalization

2020-08-15 Thread Lorenzo Bertini
> UI-wise, this would probably be better than what we have, but you can > already do this with Local Layout. Like this: > > Format 61 > > AddToHTMLPreamble > > > h2.section { font-size: 150%; font-weight: bold; } > > > EndPremable > > You can put anything else in there that you want in the head b

[Request/idea] Preamble generalization

2020-08-14 Thread Lorenzo Bertini
Hello devs, the recent discussion about Lyx being not LaTeX centric and my need to manually edit the CSS in LyXHTML output has got me thinking that the section in the document->settings could be generalized to just and contain the LaTeX preamble, CSS etc. The main advantages would be: 1) less "sp

Possibly unwanted "stretchy" behavior in MathML output

2019-12-07 Thread Lorenzo Bertini
Hi, my xhtml output trough the LyXHTML option had brackets that always matched the height of the equation for paired \left( \right) brackets, as one would expect, but also for plain ( ) ones, which is unexpected. This of course led to the final output having some ridiculously sized brackets. The p