Vikas Rawal <vikasli...@agrarianresearch.org> writes: >> >>> Is :float deprecated? >> >> No but caption takes priority. I'm working on this case, but my >> dev. computer is not well at the moment. >> > > We need to consider the scenario that if we need a captioned table > without a floating environment, what is the right way of obtaining > it.
Is that a question? A right approach is to use the float package as you did. I don't like it cause it redefines floats. Another right approach is not to make it a float if you don't want it to float.... Then you could use something like capt-of to get a caption and increase the counter in question. This can be dangerous as floats could get out of order. ATM for your example you could use either: #+begin_mdframed #+attr_latex: :float nil #+LATEX: \captionof{table}{\label{milk-consumption-india}Average consumption of milk, India, kilograms per capita per annum} | Year | Rural | Urban | All | |---------------------------------+-------+-------+------| | 1983 | 38.7 | 55.6 | 44.7 | | 1993–1994 | 50.3 | 66.4 | 54.3 | | 2004–2005 | 50.2 | 69.3 | 55 | | 2009–2010 | 51.7 | 71.6 | 57.1 | #+end_mdframed As caption forces float, or #+begin_mdframed #+name: milk-consumption-india #+attr_latex: :placement [H] #+caption: Average consumption of milk, India, kilograms per capita per annum | Year | Rural | Urban | All | |---------------------------------+-------+-------+------| | 1983 | 38.7 | 55.6 | 44.7 | | 1993–1994 | 50.3 | 66.4 | 54.3 | | 2004–2005 | 50.2 | 69.3 | 55 | | 2009–2010 | 51.7 | 71.6 | 57.1 | #+end_mdframed Which relies on package-float's H. > That is needed if you want to insert a table in an mdframed block. The previous discussion is here: http://thread.gmane.org/gmane.emacs.orgmode/95224/focus=95229 Feel free to beat me with a patch! > I have managed to get it using :placement, but I am not sure if that > is the right approach. You are using the float package. It's heretic, but don't worry about it... —Rasmus -- Governments should be afraid of their people