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

2013-04-11 Thread Bastien
Hi, Nicolas Goaziou writes: > Rasmus 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'

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

2013-04-10 Thread Nicolas Goaziou
Rasmus 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 removed I ca

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

2013-04-10 Thread Rasmus
Nicolas, Nicolas Goaziou 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 respon

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

2013-04-10 Thread Nicolas Goaziou
Hello, Rasmus 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 org-latex-image-default

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-wi

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

2013-04-09 Thread Nicolas Goaziou
Hello, Rasmus 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 "" > [[file:test.ti

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

2013-04-09 Thread Bastien
Hi Nicolas, Nicolas Goaziou 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 doubt it has

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

2013-04-09 Thread Nicolas Goaziou
Hello, Bastien writes: > Rasmus 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 t

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

2013-04-08 Thread Bastien
Hi Rasmus, Rasmus 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 side-effects when s

[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 [...] \resizebox{.9\linewidth}{!}{\inpu

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"