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")
(t org-latex-image-default-width)))
#+END_SRC
Consider the following example:
#+BEGIN_SRC org
#+BEGIN_SRC emacs-lisp
(make-local-variable 'org-latex-image-default-width)
(setq org-latex-image-default-width "")
#+END_SRC
#+NAME:firm-ts-fig
#+CAPTION: test
[[file:figs/test.tikz]]
no caption
[[file:figs/test.tikz]]
#+END_SRC
This exports as:
#+BEGIN_SRC LATEX
\begin{figure}[htb]
\centering
\resizebox{0.7\textwidth}{!}{\input{figs/test.tikz}}
\caption{\label{firm-ts-fig}test}
\end{figure}
no caption
\input{figs/test.tikz}
#+END_SRC
To me it is not intuitive why a certain width is imposed on me because
I add a caption. . .
Could we consider removing:
#+BEGIN_SRC emacs-lisp
((eq float 'figure) "0.7\\textwidth")
((eq float 'wrap) "0.48\\textwidth")
#+END_SRC
and maybe changing the default value of org-latex-image-default-width
to something non-intruding?
--
Powered by magic pixies!