Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cdlatex-environment only works from files #3

Closed
pank opened this issue Feb 11, 2015 · 1 comment
Closed

cdlatex-environment only works from files #3

pank opened this issue Feb 11, 2015 · 1 comment

Comments

@pank
Copy link

pank commented Feb 11, 2015

For odd reasons cdlatex breaks when inserting an environment in a temporary file. This is annoyting when testing features for e.g. org development.

Example

(with-temp-buffer
  (require 'reftex)
  (cdlatex-environment "equation"))
@cdominik
Copy link
Owner

cdominik commented Dec 3, 2019

The happens because of RefTeX trying to insert a label. For this, it needs to know about other labes in the document, which includes other files.

Bind cdlatex-insert-auto-labels-in-env-templates to nil if you want to do this in a temp buffer.

@cdominik cdominik closed this as completed Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants