How to custom DocumentColorProvider
▲ 0 r/vscode

How to custom DocumentColorProvider

*customize

Hi,

I'm implementing a DocumentColorProvider and it's going well.

But it only works for predefined formats (#123456, rgb(100,50,100)).

How can I disable or add other (very random) color formats like `color: r, g, b`?

Thanks.

PS: not sure why I'm downvoted. :(

u/True_Dig_3638 — 2 days ago
▲ 5 r/LaTeX

Font package, and disabling feature in main document

Hi,

We packaged a font so it can be reusable in different documents (see below).

  1. Is it the right way to do it? Comments welcome. The package is then used by simply adding \usepackage{ourfont}. We tried to look at various font packages but it seems to vary much between implementations...

  2. In a document (so without modifying the package), we want to disable ligatures for non-italic, or maybe just disable the Discretionary ones, tbd. Again, what is the right way to do this?

This font (legally) comes from Adobe and is split into several .otf files for weight/style/optical sizes, hence the complexity of the loading...

This is first way we do this, and fontspec seems to offer many solutions. All comments welcome.

Thanks.

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ourfont}[2026-06-28]

\RequirePackage{fontspec}

\setmainfont{OurFont}[
  NFSSFamily = OurFont,
  Numbers = {OldStyle,Proportional},
  Ligatures = {Common,Discretionary},
  UprightFeatures = {
    Font = *,
    SizeFeatures = {
      {Size = -8.9, Font = *-Capt},
      {Size = 9.0-14.9, Font = *},
      {Size = 15.0-22.9, Font = *-Subh},
      {Size = 23.0-, Font = *-Disp},
    },
  },
  ItalicFeatures = {
    Font = *-It,
    SizeFeatures = {
      {Size = -8.9, Font = *-ItCapt},
      {Size = 9.0-14.9, Font = *-It},
      {Size = 15.0-22.9, Font = *-ItSubh},
      {Size = 23.0-, Font = *-ItDisp},
    },
  },
  BoldFeatures = {
    Font = *-Bd,
    SizeFeatures = {
      {Size = -8.9, Font = *-BdCapt},
      {Size = 9.0-14.9, Font = *-Bd},
      {Size = 15.0-22.9, Font = *-BdSubh},
      {Size = 23.0-, Font = *-BdDisp},
    },
  },
  BoldItalicFeatures = {
    Font = *-BdIt,
    SizeFeatures = {
      {Size = -8.9, Font = *-BdItCapt},
      {Size = 9.0-14.9, Font = *-BdIt},
      {Size = 15.0-22.9, Font = *-BdItSubh},
      {Size = 23.0-, Font = *-BdItDisp},
    },
  },
  FontFace = {l}{n}{
    Font = *-LtDisp,
  },
  FontFace = {l}{it}{
    Font = *-LtItDisp,
  },
  FontFace = {sb}{n}{
    Font = *-Smbd,
    SizeFeatures = {
      {Size = -8.9, Font = *-SmbdCapt},
      {Size = 9.0-14.9, Font = *-Smbd},
      {Size = 15.0-22.9, Font = *-SmbdSubh},
      {Size = 23.0-, Font = *-SmbdDisp},
    },
  },
  FontFace = {sb}{it}{
    Font = *-SmbdIt,
    SizeFeatures = {
      {Size = -8.9, Font = *-SmbdItCapt},
      {Size = 9.0-14.9, Font = *-SmbdIt},
      {Size = 15.0-22.9, Font = *-SmbdItSubh},
      {Size = 23.0-, Font = *-SmbdItDisp},
    },
  },
]

\def\rmdefault{OurFont}
\renewcommand{\familydefault}{\rmdefault}
reddit.com
u/True_Dig_3638 — 7 days ago

How to see preferences that *I* modified?

Hi folks,

I have been a Firefox user for many years, and I have accumulated quite a few tweaks in the about:config panel. I wanted to review those changes. But if I tick "Show only modified preferences", the list includes not only the preferences I changed myself, but also ones that Firefox has modified on its own.

Is there a way to see what I changed?

Thanks.

reddit.com
u/True_Dig_3638 — 8 days ago

Two little suggestions

Hello,

In the OPDS catalog,

  1. Instead of having "Download" and then "Open and read" buttons, it would be great to have a "Download and read" button (or just "Read"?) that downloads the book and opens it in reading mode.
  2. I would love to be able to add my OPDS catalogs, or their shelves, directly to the homepage.

Thanks again for your work. :)

(I can create GitHub tickets if you are interested.)

reddit.com
u/True_Dig_3638 — 12 days ago
▲ 17 r/LaTeX

What are you preferred LaTeX linters/formatters?

Hi,

I have never been really keen on using those, but things might have change!

reddit.com
u/True_Dig_3638 — 12 days ago
▲ 11 r/iPadPro

M5 & Magic Keyboard + Smart Folio: how do you manage?

Hello,

I have an iPadPro 13" M5. I also bought the Magic Keyboard and the Smart Folio. I love them, I only have had a great experience so far.

I just don't like removing the iPad from the Smart Folio to attach it to the Magic Keyboard; and vice-versa. Especially when I am moving around.

Have you guys found a solution? I'd be happy to hear about your workflows.

reddit.com
u/True_Dig_3638 — 15 days ago

Thank you Thunderbird

If anyone from the Thunderbird team happens to read this, I just wanted to say that your work is appreciated.

There's still plenty to do, but Thunderbird feels much cleaner and more polished than it used to. I'm happy to upgrade every month, and the experience has been remarkably smooth, with very few hiccups along the way.

I also appreciate that you spend time fixing and polishing existing issues rather than endlessly adding new features. The balance between bug fixing and feature development feels very healthy.

Keep up the great work, everyone! 🙂

reddit.com
u/True_Dig_3638 — 19 days ago
▲ 2 r/LaTeX

Accessing --output-dir from LaTeX

I found and tried many solutions (with \write18, ps, echo, parsing logs, lua, Python, LaTeX3...), and thought I could share my findings with the community.

My ultimate code to get the output directory from within LaTeX is:

\ExplSyntaxOn
\sys_get_shell:nnN {kpsewhich~--var-value~TEXMF_OUTPUT_DIRECTORY}{} \outputdir
\ExplSyntaxOff
  1. This doesn't require any additional package, just LaTeX3.
  2. No need for --shell-escape, kpsewhich is already whitelisted.
  3. This is portable across all recent LaTeX implementations.

Why do you need this? Mostly because some packages need to be told where to put temporary file (epstopdf) and others require patches to work (imakeidx).

I wish pdf-, Xe-, and Lua- implemented a default command for that...

Feel free to comment!

PS: if you guys know what the best way to contact the maintainers of imakeidx is, I'm interested!

reddit.com
u/True_Dig_3638 — 1 month ago

Influence of ANR literature on the Bible

I have been interested in Mesopotamian literature for a couple of months now. I have also read West's The East Face of Helicon.

I would like to read something similar about the Bible.

I read this sub's wiki, and more especially the "Israel’s Neighbours in the Ancient Near East" and "The origin and development of Yahwism and monotheism" sections—but I am a bit lost in all those references.

Which book would you recommend to disentangle the relationship between the Bible and Mesopotamian (Sumerian/Assyrian/Ugaritic) literature?

Thanks!

reddit.com
u/True_Dig_3638 — 2 months ago
▲ 65 r/LaTeX

Which LaTeX code are you most proud of?

Documents, commands, interaction with other languages, build system...

I'd like to see more LaTeX-fu and learn from you guys.

Please share your code or the document if you can!!!

reddit.com
u/True_Dig_3638 — 2 months ago