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

use local headers for post attributes in latex source blocks #3

Open
matthuszagh opened this issue Sep 3, 2020 · 0 comments
Open

Comments

@matthuszagh
Copy link
Owner

The current use of

attr_wrap(orgwidth="", htmlwidth="", name="", caption="", data=*this*)

is a bit cumbersome, even if it can be set as a default header. The reason is that whenever you need to override one of the arguments, you must override the whole thing. It should be possible to compose the same effect with my upstream org-mode patches and "local" header arguments. Local header arguments are a new feature I'm using where I prefix the header with an underscore. For instance, :_class. Org-mode passes these through and they are accessible by my default header argument functions. Because we can compose header arguments out of local header arguments we can compose attr_wrap this way.

An additional relevant question is whether we can concatenate the local headers. For instance, it would be useful to be able to do something like

#+header: :_caption Start of some caption
#+header: :_caption that continues on the next line.
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

1 participant