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.

Support specialized role

See original GitHub issue

The specialized role feature of ReST allows to input inline raw code. Supporting this feature would allow among other for punctual use of latex formating commands that have no equivalent in markdown, nor ReST.

It relies on the raw directive which is functionning well with MyST (as any other “normal” directive). However, adding (as suggested in the documentation linked above) the following somewhere (say in rst_prolog):

.. role:: raw-latex(raw)
   :format: latex

does not produce the expected result. The code latex (or html or whatever) raw code is not interpreted. Instead something like :raw-latex:‘RAW_CODE_TO_BE_INTERPRETED‘ is typeset in way as to indicate a problem (it depends on the output processor).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisjsewellcommented, Jul 21, 2020

This should be closed in dcbd5ef 😄 , can you give it a go?

Note, the role definition should also be written in MyST, i.e

```{role} raw-latex(raw)
:format: latex
```

{raw-latex}`\tag{content}`
0reactions
tavincommented, Feb 23, 2022

This is a handy trick. Looking also at docutil_directives.md I would guess that I should be able to do something like this as well:

```{raw} raw
:format: latex

\tag{content}
```

Why doesn’t it work? Is it mandatory to define a role?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Careers | Specialized.com
We're always looking for talented people to play a driving role in our mission to get more people on bikes. ... Rider Care...
Read more >
Jobs at Specialized - Greenhouse
We are looking for people from all disciplines and backgrounds who seek to play an active role in inspiring people to get on...
Read more >
Specialized Roles | Walmart Careers
Apply online for the Specialized Roles position at Walmart and Sam's Club! ... We believe we are best equipped to help our associates,...
Read more >
Specialized Support Program Support Specialist (Full-Time)
Our Specialized Supports Program provides community-based supports to a small ... The Role: Support Specialists assist service recipients in their physical, ...
Read more >
Equip Product Marketing With Specialized Roles to Support ...
Gartner Research on Equip Product Marketing With Specialized Roles to Support Growth Plans.
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