Title: \bf\it in mathtext · Issue #19393 · matplotlib/matplotlib · GitHub
Open Graph Title: \bf\it in mathtext · Issue #19393 · matplotlib/matplotlib
X Title: \bf\it in mathtext · Issue #19393 · matplotlib/matplotlib
Description: Problem \bf and \it are both supported in mathtext but if used together, only the inner style is applied. Proposed Solution Apply both styles if both \bf and \it are used together. Alternatively, a new \bfit command could be introduced w...
Open Graph Description: Problem \bf and \it are both supported in mathtext but if used together, only the inner style is applied. Proposed Solution Apply both styles if both \bf and \it are used together. Alternatively, a...
X Description: Problem \bf and \it are both supported in mathtext but if used together, only the inner style is applied. Proposed Solution Apply both styles if both \bf and \it are used together. Alternatively, a...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/19393
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\\bf\\it in mathtext","articleBody":"\u003c!--\r\nWelcome! Thanks for thinking of a way to improve Matplotlib.\r\n\r\n\r\nBefore creating a new feature request please search the issues for relevant feature requests.\r\n--\u003e\r\n\r\n### Problem\r\n`\\bf` and `\\it` are both supported in mathtext but if used together, only the inner style is applied.\r\n\u003c!--\r\nProvide a clear and concise description of the problem this feature will solve. \r\n\r\nFor example:\r\n* I'm always frustrated when [...] because [...]\r\n* I would like it if [...] happened when I [...] because [...]\r\n* Here is a sample image of what I am asking for [...]\r\n--\u003e\r\n\r\n### Proposed Solution\r\n\r\nApply both styles if both `\\bf` and `\\it` are used together. Alternatively, a new `\\bfit` command could be introduced which enables text to be set in bold and italic.\r\n\u003c!-- Provide a clear and concise description of a way to accomplish what you want. For example:\r\n\r\n* Add an option so that when [...] [...] will happen\r\n --\u003e\r\n\r\n### Additional context and prior art\r\n\r\nThis would be very useful when setting the experiment label in figures for the ATLAS experiment, which requires the name of the experiment in bold-italic followed by text describing the status of that figure in ordinary text. Additional text below this label communicates various experimental conditions that are often useful in interpreting the figure. In the absence of rich text functionality, mathtext (or `usetex`) is the only way to do this.\r\n\r\nI currently handle this in [beojan/atlas-mpl](github.com/beojan/atlas-mpl) by using `usetex`. However, this requires the user to have a full LaTeX installation available, along with the TeX Gyre fonts in that installation in order to meet the font family requirements of the experiment. \r\n\r\n@andrzejnovak handles the same issue in [scikit-hep/mplhep](github.com/scikit-hep/mplhep) by setting the various parts of the label separately, heuristically calculating the offsets needed. This is suboptimal compared to using the text layout algorithms built into the Matplotlib text engine.\r\n\r\n\u003c!-- Add any other context or screenshots about the feature request here. You can also include links to examples of other programs that have something similar to your request. For example:\r\n\r\n* Another project [...] solved this by [...]\r\n--\u003e","author":{"url":"https://github.com/beojan","@type":"Person","name":"beojan"},"datePublished":"2021-01-28T18:07:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/19393/matplotlib/issues/19393"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5de11f62-930d-4371-a542-b50b22d211a8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 886C:228F1C:2E952D:3D9C96:6A52EC68 |
| html-safe-nonce | 368463cd847e3be98e5c7b79f540e9e90d9dacdbef610bf0cc76646c6d1ac56c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODZDOjIyOEYxQzoyRTk1MkQ6M0Q5Qzk2OjZBNTJFQzY4IiwidmlzaXRvcl9pZCI6IjI5NDg3OTQ3NDQ3MTU3OTk2NTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3512f2a9f93d8e87fae1ccae2dd6074e206163de00e241a3ab8517140f780741 |
| hovercard-subject-tag | issue:796233786 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/19393/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4344402ebb72340999df2cb7d0e2c97be94df4afc10552cdf64a93090ecb22b8/matplotlib/matplotlib/issues/19393 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4344402ebb72340999df2cb7d0e2c97be94df4afc10552cdf64a93090ecb22b8/matplotlib/matplotlib/issues/19393 |
| og:image:alt | Problem \bf and \it are both supported in mathtext but if used together, only the inner style is applied. Proposed Solution Apply both styles if both \bf and \it are used together. Alternatively, a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | beojan |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width