Apologies: I want to violate the most basic prescriptions of sane typography. Have a bag ready. It's the lesser of evils.
Say, I have a book, with margins of 0.5 inches on the spine and 1 inch on the edge. I have a bunch of tabulars that may exceed the \textwidth
, rarely more than 5em. I know I should break the tabulars, but this would be very difficult. (I do know I can already shrink the tabular horizontal spacing and the font sizing.)
The standard latex behavior is to push my (otherwise centered tabular) text over the right text edge. Instead, I would like to specify how strong my tabular that exceeds the textwidth should push left vs right into the odd-side and the even-side margins. For example, if I have 0.5 and 1 inch margins, I may want to push two points over the right margin for every point I push over the left margin. This would be on an odd-numbered page, with the opposite for an even numbered page.
This may be too much to ask for, but I can imagine that this could be of interest to more folks than just myself.
scrextend
provides an environmentaddmargin
that can be used. There are other packages with similar features. You also could use negative space, e.g.,\hspace*{-1in}
etc.\makebox[\textwidth][c]{...}
overlaps equally on both sides (no warning).changepage
provides an environment which specifically does this (and also environments to change the page geometry more radically). obviously preferscrextend
if using a koma class, butchangepage
works well for me with standard classes.\makebox
will mean you won't get warnings however much it exceeds the width by and can't be used with long tabulars.changepage
's environment I like because I'll still get those warnings etc.