davidcarlisle / dpctex

Assorted TeX packages
94 stars 30 forks source link

color problem with typewriter package #40

Open zetyty opened 1 year ago

zetyty commented 1 year ago

see this TeX.SE question for details : How to change text color with typewriter package?.

It seems that the xcolor package doesn't work to get colored text with the typewriter package.

davidcarlisle commented 1 year ago

as Ulrike comments there, the package injects low level pdf specials in to the font, which means the font is always grey and not subject to the current color.

It is probably hard to make the font pick up a local \color but easier to allow a specific rgb color to be used in the font not just grey, but it is not currently supported.

zetyty commented 1 year ago

Thank you very much for your support on this crucial question ;) Would you mind if I start a bounty one day on the TeX.SE question to see if anyone wanted to modify your code? If it bothers you a little bit (because it's your package after all), please tell me because it's not a subject of capital importance, it's just for the sake of not leaving this question unanswered... Let's say it's just for fun now (because I find a kind of workaround for my needs), if I knew a little bit about Lua I would try something but this is absolutely not the case... So again no worries for me if it bothers you, but please just tell me.

davidcarlisle commented 1 year ago

No that's fine (as long as @eg9 doesn't get the bounty points:-)

zetyty commented 1 year ago

Ok thanks a lot, but I think I will try to post a workaround before starting a bounty.