[-- Attachment #1: Type: text/plain, Size: 484 bytes --] Hello, I use Babel to create UML diagrams using plantUML. The codeblocks produce png files. When exported to LaTeX, the png files are imported using \includegraphics. The width is set to 0.9\linewidth Instead specifying the width, I'd like to use the parameter \scale. Ideally, I would set \scale in the document header, possibly over-riding the setting when necessary. Is this possible, and if so, can you point me to the documentation? I could not find any. Thank you, Mirko [-- Attachment #2: Type: text/html, Size: 680 bytes --]
Hi Mirko
Mirko Vukovic <mirko.vukovic@gmail.com> writes:
> Instead specifying the width, I'd like to use the parameter
> \scale.
Have you tried #+attr_latex: :scale SCALE ?
Not sure how you'd put this in a header though I'm afraid - you'll
likely want to change a variable or add an export filter.
Hope something there may be of use,
Timothy.
[-- Attachment #1: Type: text/plain, Size: 765 bytes --] On Thu, Oct 22, 2020 at 2:41 PM TEC <tecosaur@gmail.com> wrote: > > Hi Mirko > > Mirko Vukovic <mirko.vukovic@gmail.com> writes: > > > Instead specifying the width, I'd like to use the parameter > > \scale. > > Have you tried #+attr_latex: :scale SCALE ? > > Your email triggered me to pay attention to settings of latex export, and not orb-babel. I found org-latex-default-image-scale customizable variable. I need to figure out how to set it in the file itself in the header. But at least for now, I set it in the Emacs' session and I get the desired result. > Not sure how you'd put this in a header though I'm afraid - you'll > likely want to change a variable or add an export filter. > > Hope something there may be of use, > Timothy. > Thanks, Mirko [-- Attachment #2: Type: text/html, Size: 1500 bytes --]
[-- Attachment #1: Type: text/plain, Size: 867 bytes --] On Fri, Oct 23, 2020 at 2:12 PM Mirko Vukovic <mirko.vukovic@gmail.com> wrote: > > On Thu, Oct 22, 2020 at 2:41 PM TEC <tecosaur@gmail.com> wrote: > >> >> Hi Mirko >> >> Mirko Vukovic <mirko.vukovic@gmail.com> writes: >> >> > Instead specifying the width, I'd like to use the parameter >> > \scale. >> >> Have you tried #+attr_latex: :scale SCALE ? >> >> > Your email triggered me to pay attention to settings of latex export, and > not orb-babel. > I found org-latex-default-image-scale customizable variable. > > I need to figure out how to set it in the file itself in the header. > > But at least for now, I set it in the Emacs' session and I get the desired > result. > I solved my problem by placing #+attr_latex: scale scale just before the #results like so: #+begin_src ... ... #+end_src #+attr_latex: :width 1.0\linewidth #+RESULTS: ... Thanks, Mirko > [-- Attachment #2: Type: text/html, Size: 1921 bytes --]