Closed schnecki closed 5 years ago
Additionally, specifying multiple positions is currently also not possible, e.g.
\begin{table}[th]
...
\end{table}
They actually do. But not at the tabular
environment, but the explanation of the table
environment. Look at the here. Afaik it does not need any specific packages.
Oh, great, now I can't even read. :sweat_smile:
I will add it shortly.
@schnecki Does this look good to you?
https://github.com/Daniel-Diaz/HaTeX/commit/443de57d6755c245061c15adc28203c014c97bc6
Haha, well shi** happens :grin:
I am fine with that, but by using the same data structure for two different kinds of locations, you allow a Here
at the tabular environments as well. This might cause errors during compilation. But I think that's the better way instead of using prefixes to be able to distinguish between two different location data structures. So looks good to me :+1:
Well actually I just figured that table
only takes a Maybe Pos
instead of a Maybe [Pos]
which would allow a list of positions as for instance in
\begin[tb!]{table}
...
Cf. "Default is tbp, which means that it is by default placed on the top of the page. If that's not possible, it's placed at the bottom if possible, or finally with other floating environments on an extra page." (just below the html-table explaining the table positions of the previous link)
However, this would be a breaking change I fear :fearful:
Haha, well shi** happens
I am fine with that, but by using the same data structure for two different kinds of locations, you allow a
Here
at the tabular environments as well. This might cause errors during compilation. But I think that's the better way instead of using prefixes to be able to distinguish between two different location data structures. So looks good to me
Yes, I wrote a warning about this in the docs.
Well actually I just figured that
table
only takes aMaybe Pos
instead of aMaybe [Pos]
which would allow a list of positions as for instance in\begin[tb!]{table} ...
Cf. "Default is tbp, which means that it is by default placed on the top of the page. If that's not possible, it's placed at the bottom if possible, or finally with other floating environments on an extra page." (just below the html-table explaining the table positions of the previous link)
However, this would be a breaking change I fear
Yes, that would be a breaking change, but the current type seems wrong, since it doesn't allow something one should be able to do. I think it will be better long-term to make the change.
Also, I would rather use [Pos]
instead of Maybe [Pos]
, and use []
to not provide the optional position and use the default.
Yeah true that makes sense :+1:
This commit makes table
accept a list of positions: https://github.com/Daniel-Diaz/HaTeX/commit/436ce2809e396d93ddc3154f933b0c0bec3c88ac
Hi, currently only the positions
top
,center
andbottom
are available. Thus it is not possible to generateor even with an exclamation mark, like
Thus the
data Pos
type seems for me to not cover all possibilities.