Bug 391663 - Please add better color schemes for LaTeX
Summary: Please add better color schemes for LaTeX
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: theme (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-10 14:19 UTC by sombragris
Modified: 2021-02-05 22:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot showing KDE colorscheme for LaTeX in Kile (25.10 KB, image/png)
2018-03-13 21:11 UTC, sombragris
Details
Updated screenshot by Cristoph's request (44.22 KB, image/png)
2018-03-14 03:37 UTC, sombragris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sombragris 2018-03-10 14:19:57 UTC
I'm using Kile now for typesetting LaTeX.

Kile uses the Kate editor component, so I'm filing this here.

Available color schemes are very limited in their selection and moreover, they are lacking in their LaTeX highlighting. In the KDE colorscheme, for example, a lot of LaTeX reserved words, such as \item, \textit and others are light cream on a white background. The contrast is extremely poor.

In general, LaTeX highlighting could be a lot better in the default color schemes.

Searching in the Store produce a number or colorschemes but none is available for LaTeX.

Thanks in advance for considering this.
Comment 1 Dominik Haumann 2018-03-13 19:49:44 UTC
Which version of Kile or rather Kate are you using?
Is it KDE Frameworks 5 based already? Or do you still use a KDE 4 variant.

Could you provide screenshots?

Looking into latex.xml, the version="6", and kateversion="5.0". It does not contain any hard-coded colors, so light red on white should not be the case, except if our default color scheme is bad.
Comment 2 sombragris 2018-03-13 21:08:46 UTC
Kile is identified in the package as ab0507_20171209git.
In the "About" box is 2.9.2

Kate is 17.12.2

Plasma is 5.12.0 (about to be upgraded to 5.12.3)

Frameworks is 5.44.0.

I'll try to provide a screenshot showing some of the issues.
Comment 3 sombragris 2018-03-13 21:11:36 UTC
Created attachment 111385 [details]
screenshot showing KDE colorscheme for LaTeX in Kile

The screenshot is of a LaTeX document.

Please note:
a) how the sections are not highlighted vs. regular text
b) how \begin and \end are not highlighted.
c) how \item is in a color with little contrast re: screen background.

And this is the KDE colorscheme. Let's not even get started with other schemes, such as solarized or solarized-dark.

Thanks,

Eduardo
Comment 4 Christoph Feck 2018-03-13 22:52:29 UTC
I have 'begin' and 'section' in bold. You are probably seeing bug 378523. Please check kdeglobals, katerc/kwriterc and kilerc configuration files or profiles for font entries with a bogus style name (usually 'Normal' or 'Regular') added. Removing these should make the bold entries appear in bold.
Comment 5 sombragris 2018-03-14 01:55:15 UTC
Thank you Cristoph.

Checked those files you suggested and there's absolutely no mention of any 'Normal' or 'Regular' font in any of the files you mentioned.

Moreover: even in case I would be a victim of the bug you mention, that only refers to bold face. Please note:

a) even then, in \section{contents} the color would be the same both for \section{} and contents;

b) even then, \item and similar keywords have an extremely poor contrast (and a very ugly, light and poor color choice in my opinion).

Thanks for looking into this.
Comment 6 sombragris 2018-03-14 02:00:07 UTC
Cristoph, I found those bogus entries in .config/kateschemarc

I hope this fixes the lack of boldface.

However, the other issues remain.

I'm now upgrading Plasma/Frameworks/Applications and when it's done I'll check if this was successful.
Comment 7 sombragris 2018-03-14 02:10:18 UTC
Upgrade finished.

Cristoph's suggestion was successful after editing kateschemarc.

However, all other issues remain.

Please keep in mind this bug.

Thanks!
Comment 8 Christoph Feck 2018-03-14 03:05:49 UTC
I suggest to show an updated screenshot that shows the remaining issues.
Comment 9 sombragris 2018-03-14 03:37:43 UTC
Created attachment 111387 [details]
Updated screenshot by Cristoph's request

Updated screenshot after editing kateschemasrc.

Lack of boldface issue was fixed. However, see the following remaning issues:

a) in \section{content} and in many other keywords, 'content' is the same color as the keyword.

b) may keywords such as \item have a color that is both ugly and with very poor contrast against a white background.

Thanks!
Comment 10 Christoph Cullmann 2019-05-19 15:05:53 UTC
Dear user, this wish list item is now closed, as it wasn't touched in the last year and no contributor stepped up to implement it.

The Kate/KTextEditor team is small and we can just try to keep up with fixing bugs.

Therefore wishes that show no activity for a years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.
If you want your feature to be implemented, please step up to provide some patch for it.

If you think it is really needed, you can reopen your request, but keep in mind,
if no new good arguments are made and no people get attracted to help out to implement it,
it will expire in a year again.

We have a nice website https://kate-editor.org that provides all the information needed to contribute, please make use of it.

Patches can be handed in via https://phabricator.kde.org/differential/

Greetings
Christoph Cullmann
Comment 11 sombragris 2019-05-19 21:25:49 UTC
Reopening.
Please fix.
At least provide an alternative with the old color scheme. Please!!
This is very important for me
Comment 12 Christoph Cullmann 2019-05-20 06:11:20 UTC
Actually might not be a theme but more a "which color role to use" issue.
Comment 13 Christoph Cullmann 2021-02-05 21:22:39 UTC
I think the current colors are fine:

light:
https://kate-editor.org/syntax/data/html/highlight.tex.html

dark:
https://kate-editor.org/syntax/data/html/highlight.tex.dark.html
Comment 14 sombragris 2021-02-05 22:11:54 UTC
Hi Cristoph,

Thanks! I think the current scheme is better although the scheme current in KDE 3.x was much better IMHO. I also noted that there are more colorschemes to select from now, and some of them are even better.

Anyway, and while I don't like too much this corrent scheme, it gets the job done and is serviceable enough, so I concur that this bug should be closed as resolved-fixed.

Thanks for all the help and effort.