Fix Bug: last column missing formatting in Latex (#52218)
Still need to write the tests, bug getting this fix started.

- [x] closes #52218 
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

When you add tests can you test the following:

- A DataFrame with two value columns and an Index. Both values are styled and should have affected output in LaTeX.

The following scenarios:

- The index is a single `Index` and it is hidden,
- The index is a 3 column `MultiIndex` and two levels are hidden.
- The index is a 3 column `MultiIndex` and all levels are hidden.

Thanks. Sorry for the noise, was trying to change it into a feature branch like the the contribution guide mentions :-)

Will re-submit a PR with the included tests and from a feature branch.

https://pandas.pydata.org/docs/dev/development/contributing.html#contributing-forking