question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to render colors from xcolor package in LaTeX PdfTeX document

See original GitHub issue

Attach (recommended) or Link to PDF file here:

color_test.pdf https://www.overleaf.com/read/hmnyprntcdbb

This is a simple LaTeX document that uses the xcolor package to make some text in the document blue (using the \textcolor{blue}{text goes here} command.

Configuration:

  • Web browser and its version: Firefox 103.0.1
  • Operating system and its version: openSUSE Tumbleweed
  • PDF.js version: 2.15.129
  • Is a browser extension: I think so?

Steps to reproduce the problem:

  1. Open the PDF in pdf.js

What is the expected behavior? (add screenshot)

The text should be blue - this screenshot is from Gnome’s Document Viewer application, but it also renders correctly in Overleaf’s PDF viewer. image

What went wrong? (add screenshot)

In pdf.js the text is black, not blue (looking it now it also appears the background is light gray instead of white but that’s not the most important issue) image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
calixtemancommented, Sep 12, 2022

As Jonas said, it’s a dup of #15141 and bug 1778068.

0reactions
Merlin04commented, Sep 12, 2022

Sorry for lack of response - I’ve confirmed that the workaround mentioned in #15141 (https://github.com/mozilla/pdf.js/issues/15141#issuecomment-1178646456) works for me. I’ve tested in Firefox Nightly 106.0a1 and the issue appears to be fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Package xcolor Error with classicthesis
I am writing my thesis using classicthesis but i've been getting the same error over and over. Package xcolor Error: Undefined color ......
Read more >
Extending LATEX's color facilities: the xcolor package
Abstract xcolor provides easy driver-independent access to several kinds of colors, tints, shades, tones, and mixes of arbitrary colors by means of color...
Read more >
The Changebar package
They define the user command \cbcolor and load either the color or the xcolor package. If a configuration file specifies the color option...
Read more >
Undefined control sequence - Overleaf, Online LaTeX Editor
I want to include a space after the word \LaTeX\xspace but I have forgotten to load the xspace package. In this example, the...
Read more >
The implementation of the LaTeX Colour interface.
This package implements LATEX support for colour, for those dvi drivers ... \def\c@lor@error#1{\PackageInfo{color}{Undefined color #1}}%.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found