Re: What is InsetLayout for standard paragraph, or how to change its HTMLTag?

2021-09-07 Thread Lorenzo Bertini

Thank you for the quick answer!
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


What is InsetLayout for standard paragraph, or how to change its HTMLTag?

2021-09-06 Thread Lorenzo Bertini

Hello list!

LyXHTML outputs standard paragraphs with  a ... (as is the 
standard for many insets), but i would much prefer 


I know i can change the tag of other insets by going in the local layout 
section of Document->Setting, and write something like

InsetLayout Foot
  HTMLTag p
End


but i cant find anything about the standard paragraph. I don't mean the 
"sectioning" paragraph, that is mapped to "HTMLTag h5", but the piece of 
text you get after pressing RET in LyX.


This archived mail 
https://lyx-users.lyx.narkive.com/yPesoVzz/simple-html-converter-export says

I was unable to change 

which doesn't leave very hopeful. Is this doable, or is the "div" tag 
hardcoded?


Thanks in advance to anyone who takes the time to answer. I'm on 
master2.4.0 branch, but the problem should be the exact same on 2.3.x.

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


Re: change xml info when exporting to LyXHTML

2022-07-10 Thread Lorenzo Bertini

Il 10/07/22 23:50, Steve Litt ha scritto:

tush via lyx-users said on Sat, 09 Jul 2022 15:54:06 +


I want to override the default information LyX provides to my document
when I export it to xml with Export->LyXHTML

At the moment the info inserted to  tag is



http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd;>

http://www.w3.org/1999/xhtml;>







I am writing my own layout file in which all my customization will be
inserted.

I want for example to change the first line simply to



to add



and to include my style sheet:



What changes should I make to the my .layout file?

I haven't found this information I am looking for in the Customization
manual.


LyX has two (three?) ways of inserting custom stuff in the  of a 
LyXHTML document, like for example CSS:


1. if you write your own layout file, or use the convenient "local 
layout" section in the document settings (so you don't have to bother 
with files), LyX will put in the  all the relevant CSS.


2. you can put "AddToHTMLPreamble" in a local layout to have custom 
snippets added to the ; beware it will be put BEFORE any layout 
generated CSS, so anything hardcoded by the layout will override your 
custom rules; in this case you will have to edit the specific layout (a 
couple lines in the local layout, nothing daunting). This is documented 
in the "Customization" tutorial.


3(?). Some time ago I asked on lyx-devel for a "preamble tab" in 
document settings, but for LyXHTML instead of LaTeX. This would put 
everything inside it AFTER everything in the head so it would have the 
last words on everything. The patch I made is in 
https://www.lyx.org/trac/ticket/12061.


I've been working around LyX quirks when it comes to adding custom stuff 
to LyXHTML for a long time, feel free to ask anything.




You're speaking my language tush!

It's been years since I looked at any kind of LyX HTML export, but if
it's what you're saying now, I might revisit the situation.

I think what you're asking for is best handled by a post-processor that
modifies the exported well-formed XML HTML5. Easy and fast with a
Python program that:

* Replaces existing doctype with 

* Gets rid of that silly  line.
   HTML specs say that the UTF-8 line belongs in the ". Like you said, the language line
   belongs in  or whatever language you want.

* Replaces the exporter's CSS stylesheet with your own. I don't think
   you want to mess with your LyX styles in your layout file because you
   WANT your PDF styles to look very different from your HTML styles.

This is all accomplished with a very easy to write Python program that
will postprocess the exported file in a half a second. If the exported
file is *really* well formed XML, you can check it with my
xmlchecker.py shown at
http://troubleshooters.com/web/validating.htm#xmlchecker .

HTH,

SteveT

Steve Litt
Summer 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm


If you think something LyX puts in the preamble is outdated or 
hardcoding too much, feel free to report it on the bug tracker 
https://www.lyx.org/trac/wiki/BugTrackerHome. I'm reporting everything I 
find about LyXHTML but I always feel like I'm the only one using it :).


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


Re: How to achieve a simple element with LyXHTML

2022-07-10 Thread Lorenzo Bertini

Il 11/07/22 00:11, Steve Litt ha scritto:

tush via lyx-users said on Sat, 09 Jul 2022 18:59:53 +


I am trying to remove the html attributes assigned by LyXHTML to the
Standard text inserted in the editor.

LyX's default is to render Standard as

This is text inserted in
Standard

together with

p.standard {

text-align: left;

}

appearing in the header.

What I want is to get the simple html code

This is text inserted in Standard
In order to do that I am writing my Style in a layout file. What I
have at the moment is the following:

(I copied the first rows from stdclass.inc)

Style Standard
Category  MainText
MarginStatic
LatexType Paragraph
LatexName dummy
ParIndent MM
ParSkip   0.4
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label

HTMLAttr " "

End


I think this exchange from lyx-devel will provide some explanation:

On 9/6/21 6:36 PM, Lorenzo Bertini wrote:

Hello list!

LyXHTML outputs standard paragraphs with  a ... (as is the
standard for many insets), but i would much prefer 

I know i can change the tag of other insets by going in the local
layout section of Document->Setting, and write something like

InsetLayout Foot
  HTMLTag p
End


but i cant find anything about the standard paragraph. I don't mean
the "sectioning" paragraph, that is mapped to "HTMLTag h5", but the
piece of text you get after pressing RET in LyX.


It's a paragraph layout: Standard. See stdclass.inc.

But yes, at the moment, that is hardcoded. The reason is that the tag
turns up inside other tags and nested 's are invalid. But it probably
should be made customizable.

RikiRemoval of this hardcoded stuff would require a bit of lyxhtml output 
rewrite, which should be under way right now. Unfortunately, I think 
it's just one dev working on it (Thibaut).




After a lot of trial and error, using the last line I eliminated the
"div class="standard"" from the p element but still LyX assigns to it
an id="some number" which I want to eliminate too.

Any idea about it would be very welcome.


If you're referring to the "magicparlabel", it's hardcoded. I was 
thinking about making a patch to remove it, but LyX relies on this 
"magic labels" to do a lot of the referencing (a quick glance at how the 
TOC is done will give you an idea). I am not that knowlodgeable about 
HTML referencing, so this will take some time.




Yeahh, this is one of the reasons I don't use LyX for ePub. Last
time I looked, LyX exports used the deprecated and now with HTML5
eliminated  inside a div specially made to contain
one . What could *possibly* go wrong?

If I had to eliminate these redundant  things, I'd do it
with a postprocessor that corrects LyX' complexifications. It's not
easy, but you can use Python with the "import xml.etree.ElementTree as
ET" library. You'd analyze every DOM element, and for every 
whose only purpose is to encase one , get rid of the div after
reading metadata from that  and any  silliness, applying
the information to attributes of the  itself.

Seriously, LyX has failed to export common sense XMLized HTML for 14
years now, and I doubt they ever will. Best you can hope for is to
either switch to another authoring program, or repair LyX' mistakes
post-export. I think trying to repair this stuff from within your LyX
document is walking the highway to heartache.

Also, the good thing about the XML-parsing Python post-processor
approach is that, as time goes on, you can fix any problems newly
discovered and/or newly added by LyX: You're in control as long as they
continue to export well-formed XML HTML, which of course isn't a
for-sure thing.

SteveT

Steve Litt
Summer 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm


A solution of this kind could work well, but remove the thing that makes 
LyX so convenient: one click compile and show. We really need a robust 
LyXHTML output, and I don't think it's that far away.


Right now the devs lack the manpower to tackle LyXHTML problems fully, 
but I believe it's also a matter of demand. It's nice to see there are 
people on lyx-users asking about it.


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


Re: How to achieve a simple element with LyXHTML

2022-07-11 Thread Lorenzo Bertini

Il 11/07/22 09:24, Steve Litt ha scritto:

Lorenzo Bertini said on Mon, 11 Jul 2022 04:01:06 +0200



[About the idea of a compilation shellscript, Lorenzo said...]


A solution of this kind could work well, but remove the thing that
makes LyX so convenient: one click compile and show.


I can't speak for Windows, but in Linux I use shellscripts to compile
all my books, and it works perfectly. I just run the shellscript and it
runs lualatex, and watermarks my PDF. It could just as easily run a
postprocessor. If I wanted to make it "one click", I'd just assign it
an icon on my desktop.


I'm on linux too, but what i meant was that sometimes it's nice to only 
have to use the "eyes" button in the top right.




I hear Windows has Powerscript now.


We really need a
robust LyXHTML output, and I don't think it's that far away.

Right now the devs lack the manpower to tackle LyXHTML problems fully,
but I believe it's also a matter of demand. It's nice to see there are
people on lyx-users asking about it.


If manpower's so short and it's moving so slowly, perhaps we should just
fix things post-conversion. I have about 3 hours a week to devote to it,
and I'm pretty conversant with the xml.etree.ElementTree XML parser for
Python. It sounds like you know what should go in an HTML/ePub
document. If we get a couple more people with Python and document
expertise, we could fix this, as long as the LyX->HTML export remains
well-formed XML.

I bet maybe four of us could get this done in 3 months, no C++ required.

SteveT

Steve Litt
Summer 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm


Sorry, but I would much prefer to just work on the code, this seems to 
me not necessarily easier than fixing LyX directly, which would be the 
preferred solution in the long run.


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


Re: change xml info when exporting to LyXHTML

2022-07-11 Thread Lorenzo Bertini

Il 11/07/22 08:02, Steve Litt ha scritto:

Lorenzo Bertini said on Mon, 11 Jul 2022 04:00:56 +0200




LyX has two (three?) ways of inserting custom stuff in the  of a
LyXHTML document, like for example CSS:

1. if you write your own layout file, or use the convenient "local
layout" section in the document settings (so you don't have to bother
with files), LyX will put in the  all the relevant CSS.

2. you can put "AddToHTMLPreamble" in a local layout to have custom
snippets added to the ; beware it will be put BEFORE any layout
generated CSS, so anything hardcoded by the layout will override your
custom rules; in this case you will have to edit the specific layout
(a couple lines in the local layout, nothing daunting). This is
documented in the "Customization" tutorial.


Sounds like a misunderstanding of the "cascading" part of Cascading
Style Sheets (CSS).


Eh, I might, but this is what I observe. Cross checking is welcome.





3(?). Some time ago I asked on lyx-devel for a "preamble tab" in
document settings, but for LyXHTML instead of LaTeX. This would put
everything inside it AFTER everything in the head so it would have the
last words on everything. The patch I made is in
https://www.lyx.org/trac/ticket/12061.


18 months ago. Well, you did your part.


I posted the patch on lyx-devel way before (its been years) but it's 
nobody's fault it never make it through. Its a workaround at best, and 
not something wanted by everybody (me included, it feels against LyX's 
way of doing things). Richard originally asked for it to be posted, but 
then had no time to follow up. Nobody is at fault here.





If you think something LyX puts in the preamble is outdated or
hardcoding too much, feel free to report it on the bug tracker
https://www.lyx.org/trac/wiki/BugTrackerHome. I'm reporting everything
I find about LyXHTML but I always feel like I'm the only one using it


Ixnay on bugtrackers. I'm not going to learn 30 different bugtrackers,
when they consistently ask the wrong questions and aren't responded to
anyway. I'd rather code around this stuff myself.


SteveT

Steve Litt
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm


This is very far from my experience with bug trackers; to me they all 
ask the same (right) questions, there's nothing new to learn, and I get 
answers most of the time. I'm sorry if circumstances led you to believe 
this.


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


Re: lyx-2.4?

2022-06-29 Thread Lorenzo Bertini

Il 29/06/22 15:23, Anand Rangarajan ha scritto:
Does anyone know the plans for releasing lyx-2.4? Have been stuck on 
alpha3 for more than a year. I know we went through covid but stilI... I 
really don't want to have overleaf as my only option.


Anand



I would love to know too, 2.4 introduces many critical features for me.

If you don't want to wait and don't mind compiling, the master branch is 
very stable, especially at this stage.


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


Re: Rebinding ESC to \

2022-10-20 Thread Lorenzo Bertini

Il 19/10/22 14:51, Pavel Sanda ha scritto:

On Tue, Oct 11, 2022 at 03:28:47PM +0200, Lorenzo Bertini wrote:

Hi LyX users!

I have a keyboard that doesn't have the function keys, so the ESC button
also contains the \ key. You can probably see where this is going: every
time i want to type \ I have to press FN and then ESC.

How could I make it so ESC is not "escape" (which I don't really need) but
instead "input \"? I figured I have to edit keybinds, but what would the
correct command be?


One can approach this on different levels:
1) systems-wise via xmodmap (if you are on linux)
2) lyx-wise via keyboard maps in prefs (no guarantee how much maps still work)
2) lyx-wise via keybinding esc to "unicode-insert 005c"

It might be better idea to bind to different key than getting rid of escape 
though :)

Pavel


I'm on linux (debian), and I tried xmodmap, but it's system wide, and i 
need ESC more than \ in programs other than Lyx. Lyx's keybinding via 
"unicode-insert" is what I was looking for, thanks! Unfortunately it 
doesn't seem to work, either with "005c" or "\". I used the gui 
keybinding editor if that matters.


Il 19/10/22 17:33, Christopher Menzel ha scritto:

I can only report that I have had no problems using Karabiner-Elements with LyX 
on three Macs — an M1 air, an M1 Macbook Pro (both running Monterey), and a 
2014 iMac running Big Sur. I use emacs keybindings, in case that’s relevant.

-chris


On 19 Oct 2022, at 10:21 , Scott Kostyshak  wrote:

On Wed, Oct 19, 2022 at 08:13:24AM -0500, Christopher Menzel wrote:

You don’t identify your OS. Pavel gives you the answer for Linux. If you are on 
MacOS, Karabiner-Elements can do that sort of remapping in a jiffy via a 
convenient graphical interface. On Windows it’s a bit more work. You can either 
edit the registry (instructions are easy to find), use the Microsoft Powertoys 
program, or use the much more powerful AutoHotkey scripting app. AutoHotkey 
requires you to create a text file with some quirky syntax but it’s a super 
powerful program that can do way more than  keys remapping. Again, exact 
instructions are easy to google.

-chris


I don't know if it's still relevant, but at some point there was a problem with 
karabiner and LyX I think that caused crashes:

  https://www.lyx.org/trac/ticket/9992

Scott
http://lists.lyx.org/mailman/listinfo/lyx-users




I'm not on windows or mac but this is nice to know, could be helpful for 
others. Thanks!

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


Re: Few bits about netiquette (was: Drawing an arc)

2022-10-20 Thread Lorenzo Bertini

Il 20/10/22 08:29, Steve Litt ha scritto:

On Wed, 2022-10-19 at 11:26 -0400, Scott Kostyshak wrote:



How about a maximum of one use of "RTM" per year? Use it wisely.


This is impractical, because there are so many people who ask questions without 
one
minute's research.



I would be in favor of a policy that encourages respectful, and
informative, replies.


The preceding sentence sounds great in theory, but in practice how do you 
enforce it
non-selectively. What about the guy who keeps getting in little digs until the
target gives it to him full force? There are people who specialize in staying 
just
within the margins, continuously poking at their target, and then chuckle when 
the
target is declared to have infringed the rules.

You know, the LyX project should have a prominent and obvious document stating 
the
following:

* Be nice, pleasant and helpful

* Interleave post

* Trim all irrelevant quoted context

* Before emailing:

* Do at least 15 minutes research
* Try to make a Minimum Working Example

Naturally, the whole concept of a MWE and instructions how to make one should 
also
be explained, probably as a link to "Try to make a Minimum Working Example". You
might even add that about 2/3 of the problems get solved without help if the 
person
makes a real MWE.

Also, interleave posting and context trimming should be explained.


SteveT


My two unrequested cents. This is a 15 mail chain where:

1. Poster is nice, gives MWE and image with result.
2. An equally nice person gives a meaningful answer linking a library 
and even providing an example. This could have stopped here.
3. One person complains and spawns a 12 mail conversation about the 
legitimacy of the question, ultimately pondering Lyx's netiquette.


For me personally, in a list usually so polite and spam free...

Things I'd rather do:
 - sometimes spend a little time answering off-topic questions (for me 
it usually is about CSS)


Things I'd rather not do:
 - be pedantic about rules

In the time I write a complaint I can usually write an answer, or even 
faster, ignore the mail. Just sayin'


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


Rebinding ESC to \

2022-10-11 Thread Lorenzo Bertini

Hi LyX users!

I have a keyboard that doesn't have the function keys, so the ESC button 
also contains the \ key. You can probably see where this is going: every 
time i want to type \ I have to press FN and then ESC.


How could I make it so ESC is not "escape" (which I don't really need) 
but instead "input \"? I figured I have to edit keybinds, but what would 
the correct command be?


All the best,

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


Re: Setting section color in local layout

2023-01-04 Thread Lorenzo Bertini

Il 04/01/23 22:06, Ricardo Berlasso ha scritto:


El mié, 4 ene 2023 a las 21:41, Lorenzo Bertini 
(mailto:lorenzobertin...@gmail.com>>) escribió:


Hi,

setting the following in local layout

 > Style Section
 >       Font
 >               Color           Pink
 >       EndFont
 > End

makes Lyx's workarea sections pink indeed (it's just a test color, I
swear it's temporary :)), so Lyx is reading the layout alright. But
if I
output the document, both with Latex and LyXHTML, section labels are
black. Could someone tell me what I'm doing wrong?


In fact, the Font block on the local layout only affect the editing 
area. If you want to change the actual heading formatting you need to 
use the titlesec package. For example, to set the section heading to use 
the sans font defined in the document (\sffamily), in bold and with its 
size set as \Large, assigning to it a custom color (I don't like pink), 
write in the document preamble,


\usepackage{titlesec}
\usepackage{xcolor}
\definecolor{Gren}{rgb}{.3,.7,.3}
\titleformat*{\section}{
   \Large\bfseries\sffamily
   \color{Gren}}

[[   BTW, I talk about those things in chapter 12 here: 
https://frommindtotype.wordpress.com/lyx-book/ 
<https://frommindtotype.wordpress.com/lyx-book/>   ;)    ]]


Regards,
Ricardo


Thank you, I was aware of the titlesec package, but using mainly LyXHTML 
I was looking into something less specific to output method. In the Font 
block however, the Size parameter does affect output, at least in the 
LyXHTML case.


Why this inconsistency? Should I ask lyx-devel about possibly 
implementing color from layout (titlesec for Latex and CSS for LyXHTML)?


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


Setting section color in local layout

2023-01-04 Thread Lorenzo Bertini

Hi,

setting the following in local layout


Style Section
Font
Color   Pink
EndFont
End


makes Lyx's workarea sections pink indeed (it's just a test color, I 
swear it's temporary :)), so Lyx is reading the layout alright. But if I 
output the document, both with Latex and LyXHTML, section labels are 
black. Could someone tell me what I'm doing wrong?


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


Re: Testing

2022-12-12 Thread Lorenzo Bertini

Il 12/12/22 20:47, Christopher Menzel ha scritto:

On Dec 12, 2022, at 1:45 PM, Rich Shepard  wrote:

I've not seen any posts on this list other than the two I sent last Friday.
Is there an issue with the list or has everyone gone away for the holidays?


Or maybe has a pile of papers to grade. :-)


Or maybe has a pile of papers to write :-(

Be generous with the grades! 8-)

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


Re: lyx 2.4 release date

2022-11-25 Thread Lorenzo Bertini

Il 25/11/22 01:27, Hanan Rosemarin ha scritto:
What is the current estimate for a release (or a release candidate or a 
beta version) of Lyx 2.4?




Not a dev but development at the moment seems focused on porting 
bugfixes to an upcoming 2.3.7 release. I don't think there is a time 
estimate for 2.4 at the moment.


--
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 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: Translate LyX document to another language

2023-02-21 Thread Lorenzo Bertini

Il 21/02/23 10:01, Paul Smith ha scritto:

Dear All,

Is there some way of automatically translating a LyX document, say,
from Spanish to English?

I have come across GoogleTranslate4LyX:

https://wiki.lyx.org/Tools/GoogleTranslate4LyX

However, since an intermediate step involves conversion to HTML files,
I am a bit skeptical about the quality of the result.

Thanks in advance,

Paul


I'm not aware of any tool specifically made for this purpose, but a .lyx 
file is in plain text, so if you can get any translator that works with 
that and can skip LyX's keywords it should work fine.


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


Re: LyX on Gnome wayland - a new decoration alternative

2023-11-25 Thread Lorenzo Bertini
Il giorno sab 25 nov 2023 alle ore 11:13 Isaac Oscar Gariano <
isaacos...@live.com.au> ha scritto:

> Hmm,
> Are you using LyX 2.3, which uses Qt5?
> I use the LyX 2.4 development version on Qt6 usually on Windows, but I
> occassionaly use it on Wayland  (through WSLg, which doesn't use a desktop
> environment).
>
> (On a side note, I recall liking "Plastic" (but I think it had a funny
> spelling) for Qt5, but I can't seem to find it for Qt6...)
>
> Do you by any chance know where to find more Qt6 themes? (I only have
> variants of "HighContranst", "Adwaita", "kvantum", "Fusion", and "Windows"
> (which looks like a 25 year old version of Windows, not a recent one)).
>
> — Isaac Oscar Gariano
> --
> *From:* lyx-users  on behalf of Lorenzo
> Bertini 
> *Sent:* Saturday, 25 November 2023 7:53 AM
> *To:* lyx-users List 
> *Subject:* LyX on Gnome wayland - a new decoration alternative
>
> Dear list,
>
> if use LyX on Gnome wayland using "wayland" as a platform (and not "xcb")
> you probably don't have any shadow and only very basic window decoration.
> This is because Qt still hasn't implemented proper wayland decorations.
>
> You then have to rely on external Qt plugins to have nicer decorations and
> shadows. The projects QGnomePlatform and adwaita-qt are being discontinued
> and replaced by QAdwaitaDecorations (
> https://github.com/FedoraQt/QAdwaitaDecorations).
>
> I forked the latter in https://github.com/bertini97/qadwaitadecorations
> trying to address some problems of the original repo, like hardcoded colors
> and shadow artifacts.
>
> Sorry if this is too off-topic. I posted in the hope of helping people who
> use Gnome and don't want to have a bad experience with LyX on wayland.
>
> Lorenzo
>

Hi,
no I'm using the qt6 version. It looks like you are using the default
window decoration on wayland, which is without shadows.

Qt6 dropped "plastique", "motif" and some other styles. Only "fusion" and
"windows" are available (and of course "kvantum" and "adwaita" if you
installed them). These are called "styles", and are .cpp Qt plugins rather
than themes; you can set them to use a custom .qss if you want to theme
them. Kvantum instead is a theme engine, and you can install themes with
it. Very linear and uncomplicated, isn't it? :)

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


LyX on Gnome wayland - a new decoration alternative

2023-11-24 Thread Lorenzo Bertini
Dear list,

if use LyX on Gnome wayland using "wayland" as a platform (and not "xcb")
you probably don't have any shadow and only very basic window decoration.
This is because Qt still hasn't implemented proper wayland decorations.

You then have to rely on external Qt plugins to have nicer decorations and
shadows. The projects QGnomePlatform and adwaita-qt are being discontinued
and replaced by QAdwaitaDecorations (
https://github.com/FedoraQt/QAdwaitaDecorations).

I forked the latter in https://github.com/bertini97/qadwaitadecorations
trying to address some problems of the original repo, like hardcoded colors
and shadow artifacts.

Sorry if this is too off-topic. I posted in the hope of helping people who
use Gnome and don't want to have a bad experience with LyX on wayland.

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


Subpixel antialiasing?

2024-04-25 Thread Lorenzo Bertini
Dear LyX users,
does anyone know if subpixel antialiasing can be enabled for LyX's
workarea? Is yes, how?

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


Re: Subpixel antialiasing?

2024-04-25 Thread Lorenzo Bertini
Il giorno gio 25 apr 2024 alle ore 23:09 Steve Litt
 ha scritto:
>
> And why? LyX isn't WYSIWYG, so as long as the work area is readable,
> why worry about its typography?
>
> SteveT
>
> Steve Litt
>

Because I have to stare at it for much more than any other text I read
on the computer.

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


Re: Feature suggestion: Table/matrix toolbar button

2024-05-23 Thread Lorenzo Bertini
Hi,
maybe you're already aware of this, but there is a matrix insert
button that does exactly that. It appears in the math toolbar and you
can drag the matrix to make it as big as you want, add parentheses,
etc. See screenshot attached.

Cheers,
Lorenzo

Il giorno gio 23 mag 2024 alle ore 21:36  ha scritto:
>
> LyX 2.4.0 has a cool toolbar button that makes it very easy to insert a table 
> of any size into text. It is grayed out in math mode. It would be very useful 
> to have the same button insert a matrix in math mode.
>
> Fatihcan Atay
>
>
> --
> 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: Installing LyX 2.3.6.1 on Linux MInt 20.3 with TeXLive 2021

2022-03-04 Thread Lorenzo Bertini via lyx-users
--- Repost as i answered privately by mistake, so his gets archived ---

Quick answers since im on mobile:

a) it should, as it works with miktex and other distributions
b) apt should recognize every package installed as deb package, so the
easiest option is to look for a texlive 2021 in the BACKPORTS repository of
your distro, in this case mint, where newer version of packages can be
found if needed. If its not there you could manually install it from the
esperimental repository, even from ubuntu. As long as its packaged properly
apt should recognize it. I think lyx doesnt specify a version for texlive
package required, so anything it finds i believe its good.
c) absolutely: download the package without installing, edit the
dependencies (extract it and extract the control folder, edit control file
changing the dependencies section) repackage and install.
d) yes if your distro distributes texlive 2019. You can circumvent this
with b) and c). Apt makes 6+ packages live peacefully, it a small
sacrifice to have slightly outdated software :)

Let me know if anything was unclear

Lorenzo

Il ven 4 mar 2022, 00:07 Graeme via lyx-users  ha
scritto:

> I've just done a clean install of Linux Mint 20.3, and then a full
> install of TeXLive 2021, which cannot be done with the Mint's Synaptic
> Package Manager. Mint 20.3 includes TeXLive 2019 as part of its
> distribution, but I have not (yet) installed that version.
>
> The standard Plain TeX or LaTeX workflows seem to behave normally, so
> I'd now like to install LyX 2.3.6.1 using the (unsupported) PPA
> available on Launchpad at ppa:lyx-devel/release.
>
> However, when I try to install it using Mint's Package Manager, it lists
> a number of standard TeX packages that it claims are necessary, and will
> not proceed unless I also install them. These include:
> tex-common
> tex-gyre
> texlive-base
> texlive binaries
> texlive-fonts recommended
> texlive-lang-greek
> texlive-latex-base
> texlive-latex-extra
> texlive-latex-recommended
> texlive-pictures
> texlive-plain-generic
> texlive-science
> tipa
>
> These are mostly TeXLive 2019 versions for which there are already
> TeXLive 2021 versions installed. I'd prefer not to have both 2019 and
> 2021 versions of TeXLive installed at the same time.
>
> This prompts a number of linked questions:
>
> a) Will LyX 2.3.6.1 work OK with a TeXLive 2021 installation?
>
> b) Is there a way to force Mint's Package Manager to recognise the
> existence to TeXLive 2021 packages?
>
> c) Is there a way to install LyX 2.3.6.1 without installing the TeXLive
> 2019 dependencies? (I'd prefer not to have to compile LyX 2.3.6.1 from
> source.)
>
> d) If I want to install LyX 2.3.6.1 with Mint's Package Manager, will
> this force me to use TeXLive 2019 instead?
>
> I would welcome advice on how to deal with this problem.
>
> Graeme
> --
> 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