Re: Babel->Latex export: how to set includegraphics scale?
On Fri, Oct 23, 2020 at 2:12 PM Mirko Vukovic wrote: > > On Thu, Oct 22, 2020 at 2:41 PM TEC wrote: > >> >> Hi Mirko >> >> Mirko Vukovic 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 >
Re: Babel->Latex export: how to set includegraphics scale?
On Thu, Oct 22, 2020 at 2:41 PM TEC wrote: > > Hi Mirko > > Mirko Vukovic 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
Re: Babel->Latex export: how to set includegraphics scale?
Hi Mirko Mirko Vukovic 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.
Babel->Latex export: how to set includegraphics scale?
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