{"action":"created","issue":{"url":"https://api.github.com/repos/gpoore/minted/issues/72","labels_url":"https://api.github.com/repos/gpoore/minted/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/gpoore/minted/issues/72/comments","events_url":"https://api.github.com/repos/gpoore/minted/issues/72/events","html_url":"https://github.com/gpoore/minted/issues/72","id":68127092,"number":72,"title":"Color of normal text ignored","user":{"login":"klmr","id":38931,"avatar_url":"https://avatars.githubusercontent.com/u/38931?v=3","gravatar_id":"","url":"https://api.github.com/users/klmr","html_url":"https://github.com/klmr","followers_url":"https://api.github.com/users/klmr/followers","following_url":"https://api.github.com/users/klmr/following{/other_user}","gists_url":"https://api.github.com/users/klmr/gists{/gist_id}","starred_url":"https://api.github.com/users/klmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klmr/subscriptions","organizations_url":"https://api.github.com/users/klmr/orgs","repos_url":"https://api.github.com/users/klmr/repos","events_url":"https://api.github.com/users/klmr/events{/privacy}","received_events_url":"https://api.github.com/users/klmr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-13T15:32:11Z","updated_at":"2015-04-13T16:28:54Z","closed_at":null,"body":"Pygments stylesheets can include [`Text` tokens](http://pygments.org/docs/tokens/). However, these seem to be ignored by minted. In fact, very few stylesheets define a style for this token. Unfortunately, however, I’m using a lexer (`SLexer`) which defines normal identifiers as `Text` (rather than `Name`) and I have made a custom stylesheet which includes a custom colour for `Text`, and need `minted` to use this style.\r\n\r\nHere’s an MWE:\r\n\r\n```tex\r\n\\documentclass{article}\r\n\\usepackage{minted}\r\n\\usemintedstyle{monokai}\r\n\r\n\\begin{document}\r\n\\begin{minted}{r}\r\ntest = 42\r\n\\end{minted}\r\n\\end{document}\r\n```\r\n\r\nThe `test` should be rendered in very light gray (`#F8F8F2`) but it’s black.\r\n\r\nIs there an easy way of integrating the `Text` token into `minted`? The problem is that the Pygments token type `Text` doesn’t actually correspond to any token type in the output; here’s the code Pygmentsproduces:\r\n\r\n```tex\r\n\\begin{Verbatim}[commandchars=\\\\\\{\\}]\r\ntest \\PYGmonokai{o}{=} \\PYGmonokai{l+m}{42}\r\n\\end{Verbatim}\r\n```\r\n\r\nLacking a proper solution, I’d also be happy with a solution which, inside LaTeX, assigns a "},"comment":{"url":"https://api.github.com/repos/gpoore/minted/issues/comments/92417833","html_url":"https://github.com/gpoore/minted/issues/72#issuecomment-92417833","issue_url":"https://api.github.com/repos/gpoore/minted/issues/72","id":92417833,"user":{"login":"gpoore","id":1660328,"avatar_url":"https://avatars.githubusercontent.com/u/1660328?v=3","gravatar_id":"","url":"https://api.github.com/users/gpoore","html_url":"https://github.com/gpoore","followers_url":"https://api.github.com/users/gpoore/followers","following_url":"https://api.github.com/users/gpoore/following{/other_user}","gists_url":"https://api.github.com/users/gpoore/gists{/gist_id}","starred_url":"https://api.github.com/users/gpoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpoore/subscriptions","organizations_url":"https://api.github.com/users/gpoore/orgs","repos_url":"https://api.github.com/users/gpoore/repos","events_url":"https://api.github.com/users/gpoore/events{/privacy}","received_events_url":"https://api.github.com/users/gpoore/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T16:28:54Z","updated_at":"2015-04-13T16:28:54Z","body":"I think the end of your text was cut off. If you can add it back, that will give me a better idea regarding workarounds."}}