Rasmus ras...@gmx.us writes:
AFAIK, we use float actively at one place, namely ;; Case 1. No source
fontification. Of org-latex-src-block. In that particular case I guess
we could also use capt-of, actually.
It's worth trying. Do you want to provide a patch?
At some point I wanted to get
Nicolas Goaziou m...@nicolasgoaziou.fr writes:
Rasmus ras...@gmx.us writes:
AFAIK, we use float actively at one place, namely ;; Case 1. No source
fontification. Of org-latex-src-block. In that particular case I guess
we could also use capt-of, actually.
It's worth trying. Do you want
Rasmus ras...@gmx.us writes:
Nicolas Goaziou m...@nicolasgoaziou.fr writes:
This is a feature. A caption implies, at least, a table environment.
Except when it doesn't¹ ...
That's your problem since Org didn't request the minipage in the first
place. You don't want a caption but still
Hello,
Rasmus ras...@gmx.us writes:
Consider this example:
#+ATTR_LATEX: :environment nil :center nil :caption cap
| t |
Exporting to latex, it produces:
\begin{table}[htb]
cap
\begin{tabular}{l}
\toprule
t\\
\bottomrule
\end{tabular}
\end{table}
Nicolas Goaziou m...@nicolasgoaziou.fr writes:
This is a feature. A caption implies, at least, a table environment.
Except when it doesn't¹ ... And in this case I told Org that it doesn't by
specifying :environment nil. :environment should be stronger
than :caption.
The real usecase is
Nicolas Goaziou m...@nicolasgoaziou.fr writes:
Again, this is the user's problem. But it could be reasonable to use
captionof when no environment is explicitly required.
Do you consider it explicit when no environment is specified? I would
/only/ use capt-of when :environment is nil.
IOW
Rasmus ras...@gmx.us writes:
Do you consider it explicit when no environment is specified? I would
/only/ use capt-of when :environment is nil.
I think you are confusing :environment and :float. :environment cannot
be nil.
‘:environment’
Environment used for the table. It can be
Nicolas Goaziou m...@nicolasgoaziou.fr writes:
Do you consider it explicit when no environment is specified? I would
/only/ use capt-of when :environment is nil.
I think you are confusing :environment and :float. :environment cannot
be nil.
I think you are right.
We could use captof with
Hi,
Consider this example:
#+ATTR_LATEX: :environment nil :center nil :caption cap
| t |
Exporting to latex, it produces:
\begin{table}[htb]
cap
\begin{tabular}{l}
\toprule
t\\
\bottomrule
\end{tabular}
\end{table}
I'd expect:
cap
\begin{tabular}{l}
Nicolas Goaziou m...@nicolasgoaziou.fr writes:
We could use captof with a caption and :float nil.
You would also be able to do this with the awful float-package using the
H :placement, though I guess it's still a float (so I don't know if it
would work in e.g. minipage).
AFAIK, we use float
10 matches
Mail list logo