Thursday 15 May 2014

LaTeX tabbing overlap -


I'm having some frustration with the latex tabbing environment.

For example, gene friends in this code - PL overlapping ends:

  \ start {tabbing} Arvood = \ suhrthukalanu \ ayirunnathu? \\ Joe - {\ sc gen} \ & gt; Friends - {\ sc pl} \ & gt; Happy - {\ sc past}? \\ 'Whose friends were happy?' \ End {tabbing}  

So whatever I'm doing is manually adding space, such as Arvate \ Hspes {8pt} \ = ... but it does not look like this good solution.

Is there any way to avoid these overlaps anyway for the tabbing environment?

Thanks very much for any help!

The tabbing environment works by setting the tab stop according to the first line (\ = marker) and then the rest of the environment For those tabs are blinding. If the latter line is too long to fit in some parts, then it will overlap.

If you want to avoid it, then use a tabular environment instead of tabular, for example, your code displays as you intend to:

  \ Start {Tables} {lll} Arod & amp; Nursing & amp; Ayirunnathu? \\ Who - {\ SC General} & amp; Buddy - {\ sc pl} & amp; Happy - {\ sc past}? \\ \ multicolumn {3} {l} {`Whose friends were happy? '} \ End {tabular}  

Where package is provided by \ multicolumn multicol. You can include it in the preface of our document by simply entering a line with \ usepackage {multicol} The first argument {lll} of \ begin {tabular} {Lll} defines the number of columns and their alignment (left left, in this example). Other options are (r) ight, and (c) enter you can also add delimiter to look like this table, e.g.

  \ begin {tabular} {| L L L |} \ hline Aarude & amp; Nursing & amp; Ayirunnathu? \\ \ hline - {\ sc gen} & amp; Buddy - {\ sc pl} & amp; Happy - {\ sc past}? \\ \ hline \ multicolumn {3} {| L |} {`whose friends were happy? '} \\ \ hline \ end {tabular}  

No comments:

Post a Comment