Re: [O] [ox-latex] Bad default value for image width?

2013-04-11 Thread Bastien
Hi, Nicolas Goaziou n.goaz...@gmail.com writes: Rasmus ras...@gmx.us writes: Perhaps. I'm not convinced. Since I didn't introduce this feature in new exporter (it was already in the previous one), it may be interesting to know the motivation of the person who originally introduced it. I

Re: [O] [ox-latex] Bad default value for image width?

2013-04-10 Thread Rasmus
Nicolas, I don't like that tikz figures are wrapped in a resize box. Set `org-latex-image-default-width' to . But as my second email shows this still doesn't work with captions. . . This exmample: #+BEGIN_SRC org #+BEGIN_SRC emacs-lisp (make-local-variable 'org-latex-image-default-width)

Re: [O] [ox-latex] Bad default value for image width?

2013-04-10 Thread Nicolas Goaziou
Hello, Rasmus ras...@gmx.us writes: Set `org-latex-image-default-width' to . But as my second email shows this still doesn't work with captions. . . This exmample: #+BEGIN_SRC org #+BEGIN_SRC emacs-lisp (make-local-variable 'org-latex-image-default-width) (setq

Re: [O] [ox-latex] Bad default value for image width?

2013-04-10 Thread Rasmus
Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: It's a bad default for - Picture smaller than textwidth - Picture crafted to the document which shouldn't have a width. It's a decent solution for - pictures which are unintentionally larger than textwidth. But IMO it's my

Re: [O] [ox-latex] Bad default value for image width?

2013-04-10 Thread Nicolas Goaziou
Rasmus ras...@gmx.us writes: Perhaps. I'm not convinced. Since I didn't introduce this feature in new exporter (it was already in the previous one), it may be interesting to know the motivation of the person who originally introduced it. I think it was Bastien (Cc'ed). If the float width is

Re: [O] [ox-latex] Bad default value for image width?

2013-04-09 Thread Nicolas Goaziou
Hello, Bastien b...@gnu.org writes: Rasmus ras...@gmx.us writes: And I can't seem to set width to nothing. . . The attached patch should fix at least one problem: you should be able to set the width manually now. As for the default value of `org-latex-image-default-width' I tend to

Re: [O] [ox-latex] Bad default value for image width?

2013-04-09 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: `org-latex-image-default-width' has a good default value because it will make sure that all images fit on the page, no matter their size. I personally set it to , but I wouldn't recommend it as a default value. As for the patch, I

Re: [O] [ox-latex] Bad default value for image width?

2013-04-09 Thread Nicolas Goaziou
Hello, Rasmus ras...@gmx.us writes: I don't like that tikz figures are wrapped in a resize box. Set `org-latex-image-default-width' to . In particular this plain example is wrapped in a resize box: #+BEGIN_SRC Org * tikz test [[file:test.tikz]] #+ATTR_LATEX: :width

[O] [ox-latex] Bad default value for image width?

2013-04-08 Thread Rasmus
Hi, I don't like that tikz figures are wrapped in a resize box. In particular this plain example is wrapped in a resize box: #+BEGIN_SRC Org * tikz test [[file:test.tikz]] #+ATTR_LATEX: :width [[file:test.tikz]] #+END_SRC Produces: #+BEGIN_SRC latex [...]

Re: [O] [ox-latex] Bad default value for image width?

2013-04-08 Thread Bastien
Hi Rasmus, Rasmus ras...@gmx.us writes: And I can't seem to set width to nothing. . . The attached patch should fix at least one problem: you should be able to set the width manually now. As for the default value of `org-latex-image-default-width' I tend to agree, but maybe there are

Re: [O] [ox-latex] Bad default value for image width?

2013-04-07 Thread Rasmus Pank Roulund
In general this auto width code seems super annoying. Consider this From ox-latex.el: #+BEGIN_SRC emacs-lisp (width (cond ((plist-get attr :width)) ((plist-get attr :height) ) ((eq float 'figure) 0.7\\textwidth) ((eq float 'wrap) 0.48\\textwidth)