emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Specifying ATTR_LATEX document wide?
@ 2015-06-02 10:17 Rainer M Krug
  2015-06-02 11:12 ` Suvayu Ali
  2015-06-02 13:49 ` Nicolas Goaziou
  0 siblings, 2 replies; 8+ messages in thread
From: Rainer M Krug @ 2015-06-02 10:17 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1326 bytes --]


Hi

In one document, I would like to make two changes how images are
inserted in LaTeX / pdf documents, namely:

1) have no re-sizing, i.e.

,----
| \includegraphics[]{./output/fig_crossValidationDefaultByUA.pdf}
`----

instead of

,----
| \includegraphics[width=.9\linewidth]{./output/fig_crossValidationDefaultByUA.pdf}
`----

and

2) have no floats, even if a caption is given or use the :placement [H]
with the float package.

According to
[[info:org#LaTeX%20specific%20attributes][info:org#LaTeX specific attributes]]
I can use

#+ATTR_LATEX: :float nil

or

#+ATTR_LATEX: :placement [H]

for (2), but I have no idea how I can do (1).

Additionally:

Is there a way of setting this globally fir the actual document
(document header?), so that I don't have to add this line to all my
hundred images (OK - only about 70 - but still to many)?

Thanks,

Rainer

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]

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

* Re: Specifying ATTR_LATEX document wide?
  2015-06-02 10:17 Specifying ATTR_LATEX document wide? Rainer M Krug
@ 2015-06-02 11:12 ` Suvayu Ali
  2015-06-02 13:49 ` Nicolas Goaziou
  1 sibling, 0 replies; 8+ messages in thread
From: Suvayu Ali @ 2015-06-02 11:12 UTC (permalink / raw)
  To: emacs-orgmode

On Tue, Jun 02, 2015 at 12:17:04PM +0200, Rainer M Krug wrote:
> 
> Hi
> 
> In one document, I would like to make two changes how images are
> inserted in LaTeX / pdf documents, namely:
> 
> 1) have no re-sizing, i.e.
> 
> ,----
> | \includegraphics[]{./output/fig_crossValidationDefaultByUA.pdf}
> `----

Does the following work equivalently for you?

  #+attr_LaTeX: :width \linewidth

> Is there a way of setting this globally fir the actual document
> (document header?), so that I don't have to add this line to all my
> hundred images (OK - only about 70 - but still to many)?

Maybe use babel blocks for this?  Input files from a list or table, echo
them back with a common #+attr_latex line?

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.

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

* Re: Specifying ATTR_LATEX document wide?
  2015-06-02 10:17 Specifying ATTR_LATEX document wide? Rainer M Krug
  2015-06-02 11:12 ` Suvayu Ali
@ 2015-06-02 13:49 ` Nicolas Goaziou
  2015-06-03  8:10   ` Rainer M Krug
  1 sibling, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2015-06-02 13:49 UTC (permalink / raw)
  To: Rainer M Krug; +Cc: emacs-orgmode

Hello,

Rainer M Krug <Rainer@krugs.de> writes:

> In one document, I would like to make two changes how images are
> inserted in LaTeX / pdf documents, namely:
>
> 1) have no re-sizing, i.e.
>
> ,----
> | \includegraphics[]{./output/fig_crossValidationDefaultByUA.pdf}
> `----
>
> instead of
>
> ,----
> | \includegraphics[width=.9\linewidth]{./output/fig_crossValidationDefaultByUA.pdf}
> `----

  #+BIND: org-latex-image-default-width ""

> and
>
> 2) have no floats, even if a caption is given or use the :placement [H]
> with the float package.
>
> According to
> [[info:org#LaTeX%20specific%20attributes][info:org#LaTeX specific attributes]]
> I can use
>
> #+ATTR_LATEX: :float nil
>
> or
>
> #+ATTR_LATEX: :placement [H]

  #+BIND: org-latex-default-figure-position "H"

Of course, this assumes, `org-export-allow-bind-keywords' is non-nil.


Regards,

-- 
Nicolas Goaziou

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

* Re: Specifying ATTR_LATEX document wide?
  2015-06-02 13:49 ` Nicolas Goaziou
@ 2015-06-03  8:10   ` Rainer M Krug
  2015-06-09  7:24     ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Rainer M Krug @ 2015-06-03  8:10 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1584 bytes --]

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Rainer M Krug <Rainer@krugs.de> writes:
>
>> In one document, I would like to make two changes how images are
>> inserted in LaTeX / pdf documents, namely:
>>
>> 1) have no re-sizing, i.e.
>>
>> ,----
>> | \includegraphics[]{./output/fig_crossValidationDefaultByUA.pdf}
>> `----
>>
>> instead of
>>
>> ,----
>> | \includegraphics[width=.9\linewidth]{./output/fig_crossValidationDefaultByUA.pdf}
>> `----
>
>   #+BIND: org-latex-image-default-width ""
>
>> and
>>
>> 2) have no floats, even if a caption is given or use the :placement [H]
>> with the float package.
>>
>> According to
>> [[info:org#LaTeX%20specific%20attributes][info:org#LaTeX specific attributes]]
>> I can use
>>
>> #+ATTR_LATEX: :float nil
>>
>> or
>>
>> #+ATTR_LATEX: :placement [H]
>
>   #+BIND: org-latex-default-figure-position "H"
>
> Of course, this assumes, `org-export-allow-bind-keywords' is non-nil.
>

Thanks - perfectly.
But I assume, I could also set them via file local variables, which I
did with `org-export-allow-bind-keywords'.

Thanks,

Rainer


>
> Regards,

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]

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

* Re: Specifying ATTR_LATEX document wide?
  2015-06-03  8:10   ` Rainer M Krug
@ 2015-06-09  7:24     ` Nicolas Goaziou
  2015-06-09  7:53       ` Rainer M Krug
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2015-06-09  7:24 UTC (permalink / raw)
  To: Rainer M Krug; +Cc: emacs-orgmode

Rainer M Krug <Rainer@krugs.de> writes:

> But I assume, I could also set them via file local variables, which I
> did with `org-export-allow-bind-keywords'.

I don't think there's any guarantee that all local file keywords
definitions are observed during export (e.g., most of the export process
happens in temporary buffers), hence #+BIND keywords.

Regards,

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

* Re: Specifying ATTR_LATEX document wide?
  2015-06-09  7:24     ` Nicolas Goaziou
@ 2015-06-09  7:53       ` Rainer M Krug
  2015-06-15 19:57         ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Rainer M Krug @ 2015-06-09  7:53 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Rainer M Krug <Rainer@krugs.de> writes:
>
>> But I assume, I could also set them via file local variables, which I
>> did with `org-export-allow-bind-keywords'.
>
> I don't think there's any guarantee that all local file keywords
> definitions are observed during export (e.g., most of the export process
> happens in temporary buffers), hence #+BIND keywords.

Thanks for the clarification. Is there a technical or security reason
for this? because especially for export, file local variables would make
sense to avoid the #+BIND keywords?

Rainer


>
> Regards,

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]

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

* Re: Specifying ATTR_LATEX document wide?
  2015-06-09  7:53       ` Rainer M Krug
@ 2015-06-15 19:57         ` Nicolas Goaziou
  2015-06-16 10:28           ` Rainer M Krug
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2015-06-15 19:57 UTC (permalink / raw)
  To: Rainer M Krug; +Cc: emacs-orgmode

Rainer M Krug <Rainer@krugs.de> writes:

> Thanks for the clarification. Is there a technical or security reason
> for this? because especially for export, file local variables would make
> sense to avoid the #+BIND keywords?

ISTR there is a technical reason for this. Under some circumstances,
local variables are not activated during export. I cannot remember which
ones, unfortunately.

Also, unlike to local variables, BIND keywords can be set through
SETUPFILE keywords.


Regards,

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

* Re: Specifying ATTR_LATEX document wide?
  2015-06-15 19:57         ` Nicolas Goaziou
@ 2015-06-16 10:28           ` Rainer M Krug
  0 siblings, 0 replies; 8+ messages in thread
From: Rainer M Krug @ 2015-06-16 10:28 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Rainer M Krug <Rainer@krugs.de> writes:
>
>> Thanks for the clarification. Is there a technical or security reason
>> for this? because especially for export, file local variables would make
>> sense to avoid the #+BIND keywords?
>
> ISTR there is a technical reason for this. Under some circumstances,
> local variables are not activated during export. I cannot remember which
> ones, unfortunately.
>

Thanks for the info.

> Also, unlike to local variables, BIND keywords can be set through
> SETUPFILE keywords.

Oh the SETUPFILE - have never thought about that one.

Thanks,

Rainer


>
>
> Regards,

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 480 bytes --]

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

end of thread, other threads:[~2015-06-16 10:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-02 10:17 Specifying ATTR_LATEX document wide? Rainer M Krug
2015-06-02 11:12 ` Suvayu Ali
2015-06-02 13:49 ` Nicolas Goaziou
2015-06-03  8:10   ` Rainer M Krug
2015-06-09  7:24     ` Nicolas Goaziou
2015-06-09  7:53       ` Rainer M Krug
2015-06-15 19:57         ` Nicolas Goaziou
2015-06-16 10:28           ` Rainer M Krug

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).