nobiot / org-transclusion

Emacs package to enable transclusion with Org Mode
https://nobiot.github.io/org-transclusion/
GNU General Public License v3.0
917 stars 44 forks source link

Transclusion of LaTeX equations #164

Closed vincent-picaud closed 1 year ago

vincent-picaud commented 1 year ago

Hi,

I have not found any example of LaTeX equation transclusion.

Is it possible to do something similar to this ?

* One Heading

#+transclude: [[equation]]

* Another Heading

 #+name: equation
\[
   \int \sin{x} dx
\]

IMHO, that would be a useful feature (I just want to repeat the equation, not the whole section)

Thank you for this package.

nobiot commented 1 year ago

Try #+transclude: [[./file-name.org::equation]] It works on my end. Replace ./file-name.org with the actual name you use.

::name is Org's syntax.

./file-name.org is how Org-transclusion works currently -- you need to specify the file name. Ensure to add ./ or absolute file name; the relative name file-name.org does not work (I assume that's also Org syntax, but I'm not sure).

vincent-picaud commented 1 year ago

That works, wonderful ! Thank you for your quick answer and sorry for not having been able to find this.

nobiot commented 1 year ago

No worries :)