[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tikz ugly hack
From: |
Fraga, Eric |
Subject: |
Re: Tikz ugly hack |
Date: |
Wed, 26 Oct 2022 09:58:02 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Wednesday, 26 Oct 2022 at 08:52, edgar wrote:
> I just want to share a way to combine Tikz (LaTeX) with figures (svg,
> png...).
I wonder if, instead of a new LaTeX command you create a new environment
which you can then invoke using org special blocks? For instance,
#+begin_BoundingBox
#+attr_latex: :height 1cm
[[image file]]
#+end_BoundingBox
where you have
#+latex_header: \newenvironment{BoundingBox}{
#+latex_header: % commands before the body of the environment
#+latex_header: \begin{tikzpicture}
#+latex_header: }
#+latex_header: {
#+latex_header: % command after the body of the environment
#+latex_header: \end{tikzpicture}
#+latex_header: }
--
: Eric S Fraga, with org release_9.5.5-1028-gcd835d in Emacs 29.0.50