This is due to the fact that all material under the first box in \vtop constructs the depth of the single line. Then baseline grid between ZZZZ and first line will be OK, but this grid is corrupted between second line and YYYY. This \vtop behaves as single line with baseline going throw the first box inside \vtop. Rather than fiddle with the properties of hline, its better - in your case - to provide typographic 'struts': either a 'top strut,' which provides vertical spacing above the line on which its placed, or a 'bottom strut,' which provides vertical spacing below the line on which its placed. Carlisle suggests to use \vtop instead \vbox in this case. This keeps the baseline grid between second line and YYYY, but not between ZZZZ and first line because \vbox itself behaves as single line which is too hight: baseline goes throw the last box in the \vbox and all material above this last box is interpreted as the height of this single line.ĭ. ZZZZ\par % these two lines are in \baseline grid You insert a multiline \vbox into lines and you want to keep \baseline grid. 1 Welcome to TeX.sx Are you now talking about the horizontal distance between columns (which is what 'column padding' is for me) or how to get vertical lines with booktabs If might be easier if you post a minimal working example (MWE) that illustrates your problem. We can emulate your problem at TeX primitive level (without LaTeX). List 2 - too little line sPace above the l} But there is still inconsistent spacing between the tabular and the preceding line: Is there a way to ensure that the line spaces are the same?įollowing the kind suggestion by David Carlisle, I removed all the \\ and thereby elimited the underful hboxes ( \bigskip seems to be a proper way to insert the paragraph breaks I think?). In the case before the tabular, there is only too little line space when the line does not contain a character that drops below the writing line. I noticed, however, that the line spacing before the tabular differs from the spacing after regular text. In the example below, the second table features a value of 1.5pt for tabcolsep. Its default value is 6pt change it via either setlength or addtolength. 16667em space in text mode, or thinmuskip (equivalent to 3mu) in math mode theres an equivalent thinspace macro is the negative equivalent to, theres an equivalent negthinspace macro > (or :) inserts a. To change the amount of vertical whitespace that LaTeX inserts to the left and right of every column, change the length parameter tabcolsep. An environment in Latex is a special declaration for formatting. I'm using a tabular to create a listing that contains two items. There are a number of horizontal spacing macros for LaTeX:, inserts a. To begin, we shall first get familiar with some Latex terminology.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |