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.

globalGroup documentation

See original GitHub issue

I have two math blocks that I’d like to render

\newcommand\dfn{:=}
\newcommand\conj[1]{\overline{#1}}

a \dfn \conj{b}

and

a \dfn \conj{b}

The second block uses \newcommand definitions from the first.

I’m looping over the blocks via

katex.render(content, node, {
  displayMode: true,
  throwOnError: false,
  trust: true,
  globalGroup: true,
});

I’d been under the impression that globalGroup: true makes sure the \newcommands are global. However, from the above I’m getting

screenshot

This is with KaTeX v0.15.2 on Chrome 98.0.4758.80.

Am I missing something?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
edemainecommented, Feb 17, 2022

It’s weird that the example doesn’t actually include \def or \newcommand. I’m unsure now how this is supposed to work at all.

The example is outside the bullet; it’s meant to be an example of how to use katex.render in general. Perhaps there should be a heading like ### Example to clarify that. But I also think it would make sense to replace it with an example that actually creates a shared macros object, e.g.:

const macros = {};
katex.renderToString(..., {macros});
katex.render(..., element2, {macros});

And maybe include a \gdef (or \def and globalGroup) in the first example.

0reactions
KaTeX-botcommented, Mar 13, 2022

🎉 This issue has been resolved in version 0.15.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Class: Yabeda::GlobalGroup
Class: Yabeda::GlobalGroup. Inherits: Group. Object; Group; Yabeda::GlobalGroup. show all ... Overview. Represents implicit global group ...
Read more >
Create global Group
Documentation Managing TeamsCreate global Group ... Click on the Create new global group quick action to open the associated dialog. Create new group....
Read more >
Global Groups: /Documentation
Global groups are groups that are built into every LabKey Server at the site level and thus available when configuring permissions for any...
Read more >
Documentation - RDV Global Group
Documentation. CPC Catalog. CPC Catalog. Foxx Life Sciences Documentation. https://www.foxxlifesciences.com/pages/product-pictures.
Read more >
The Global Group - Global Care - PDF Catalogs
Today, The Global Group of Companies is the fifth largest multinational manufacturer, marketer, and distributor of office furniture and related products - with ......
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