emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Babel->Latex export: how to set includegraphics scale?
@ 2020-10-22 18:37 Mirko Vukovic
  2020-10-22 18:39 ` TEC
  0 siblings, 1 reply; 4+ messages in thread
From: Mirko Vukovic @ 2020-10-22 18:37 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Babel->Latex export: how to set includegraphics scale?
  2020-10-22 18:37 Babel->Latex export: how to set includegraphics scale? Mirko Vukovic
@ 2020-10-22 18:39 ` TEC
  2020-10-23 18:12   ` Mirko Vukovic
  0 siblings, 1 reply; 4+ messages in thread
From: TEC @ 2020-10-22 18:39 UTC (permalink / raw)
  To: Mirko Vukovic; +Cc: emacs-orgmode


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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Babel->Latex export: how to set includegraphics scale?
  2020-10-22 18:39 ` TEC
@ 2020-10-23 18:12   ` Mirko Vukovic
  2020-10-26 17:51     ` Mirko Vukovic
  0 siblings, 1 reply; 4+ messages in thread
From: Mirko Vukovic @ 2020-10-23 18:12 UTC (permalink / raw)
  To: TEC; +Cc: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Babel->Latex export: how to set includegraphics scale?
  2020-10-23 18:12   ` Mirko Vukovic
@ 2020-10-26 17:51     ` Mirko Vukovic
  0 siblings, 0 replies; 4+ messages in thread
From: Mirko Vukovic @ 2020-10-26 17:51 UTC (permalink / raw)
  To: TEC; +Cc: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-26 18:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-22 18:37 Babel->Latex export: how to set includegraphics scale? Mirko Vukovic
2020-10-22 18:39 ` TEC
2020-10-23 18:12   ` Mirko Vukovic
2020-10-26 17:51     ` Mirko Vukovic

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).