mabartibin

Oslo, Norway

heim.ifi.uio.no/martingi

Age: 44

Aug
7
awarded Supporter
Aug
1
comment How do I type the prime and double prime characters on OS X?
The character viewer is definitely the way to go! On my machine it's Command + Option + T though.
Apr
28
comment Table with rounded corners?
@percusse ah, a TikZ matrix, not bad! Maybe mine is more convenient if you already have your table code with all the conventional colortbl/array/multicolumn markup?
Apr
28
comment Doing things to every page of a multi-page table
Feeling stupid. I tried redefining \endhead so it puts the header into a different box register, which I can then do things to, before writing the results into \LT@head, but already \def\endhead{\LT@end@hd@ft\LT@pre@head\setbox\LT@head=\box\LT@pre@head} fails miserably. The header isn't shown.
Apr
28
revised Doing things to every page of a multi-page table
fixed a repetition of the used color
Apr
28
comment Doing things to every page of a multi-page table
Well, to keep the coloured background within the rounded boxes, I need to set a clipping path before painting the boxes. Or were you suggesting not using colortbl for the colouring of the headers at all, but somehow putting TikZ nodes around the cells of the header/footer?
Apr
28
asked Doing things to every page of a multi-page table
Apr
28
answered Table with rounded corners?
Apr
28
comment Passing the current column width to a macro (for table headers)
I'm giving the tick to David for now. This solution is closer to what I had in mind originally, but David's approach solves two annoyances in one go.
Apr
28
comment Passing the current column width to a macro (for table headers)
No advances on the centering-of-varwidth issue yet? I'm marking this as accepted, since the single \header command instead of two separate ones will make it easier to use this solution and (importantly) get other to use it.
Apr
28
accepted Passing the current column width to a macro (for table headers)
Apr
24
comment Passing the current column width to a macro (for table headers)
Take you time! For once, I'm finding time to worry about this kind of thing earlier than 12 hrs before a proposal submission deadline ;-)
Apr
24
comment Passing the current column width to a macro (for table headers)
Thank you! But it doesn't do quite the right thing: the headers get centred in their respective varwidth boxes, but not in their columns.
Apr
24
comment Passing the current column width to a macro (for table headers)
Well, I think before setting that tick, I'll wait just a little longer to see if someone comes up with a way that is similar to egreg's solution but that can cope with a single macro…
Apr
24
comment Passing the current column width to a macro (for table headers)
Oops. I realise that \hsize is not set in lcr. That's what gives me the idea of saving \hsize outside a tabular and checking whether it was reset to figure out if we're in an lcr or pmb column.
Apr
24
comment Passing the current column width to a macro (for table headers)
sure, I know. And programming a <code>\header</code> macro that inspects <code>\hsize</code> to figure out whether to use <code>vheader</code> or <code>fheader</code> will almost certainly break the <code>\multicolumn</code> again.
Apr
24
comment Passing the current column width to a macro (for table headers)
This one avoids the problem in the title by requiring me to manually break my column titles, also in fixed width columns. The embedded tabular makes it easy to do so. Moreover, it is possible to change the alignment to top, middle, bottom, left, right. So it certainly is flexible, and it does the job no matter what the original cell format was. I like it because arguably, it's best to use manual line breaking for long column titles anyway. What I don't like is that this is less true if I want to change formatting for something else than headers! In other words, it's not very generic.
Apr
24
comment Passing the current column width to a macro (for table headers)
Thank you! That solves the issue of passing in \hsize. And the trick is that the parbox takes up the whole width of the cell, no matter whether the column was ragged right or left or justified in the first place. But I don't think the same idea can be used for the l/c/r columns, so I still need two header macros?
Apr
24
revised Passing the current column width to a macro (for table headers)
removed typo in Education
Apr
24
comment How to align table headers differently than all other table cells?
What would make my day would be if the same macro worked for p/m/b columns and l/r/c columns, and if it didn't require duplicating the column widths for the normal cells and the headers. See [tex.stackexchange.com/questions/173194/…
1 2 3 4 5