Tag Info

New answers tagged

1

(Answer updated to incorporate the OP's follow-up comments.) If I understand your requirements correctly, you want the numbers within each column to be decimal-aligned the columns themselves to be centered automatic adjustment to the column widths and/or the amounts of intercolumn whitespace so that the entire table takes up the width of the text block. ...


2

You can use a tabular* and fill the space. To have columns in math mode use array package and >{$} as I did. \documentclass[12pt]{article} \usepackage{amsmath,array} \renewcommand{\u}[1]{\underline{#1}} \begin{document} \begin{tabular*}{\linewidth}{>{$}r<{$}@{\extracolsep{\fill}}>{$}r<{$}>{$}r<{$}} 5 & 5 & 5\\ \u{+4} ...


1

The tabstackengine package has a \fixTABwidth{T} macro to force all columns to be equal width (based on the widest column). In addition to that, I just set the intercolumn gap with \setstacktabbedgap{} and the vertical baselineskip with \setstackgap{L}{}, to achieve whatever spacing is preferred, using a \parenMatrixstack macro. \documentclass{article} ...


12

I think you wanted to write *{2}{c@{{}\mathrel{<}{}}}l instead of c*{2}{@{{}\mathrel{<}{}}l} which means having the last two columns left-aligned. In fact, the syntax for multiple columns with same alignment is *{<number of columns>}{<column alignment>} Also, since the < symbol is defined as \mathrel by default, you can ...


2

May be you are looking for \documentclass{article} \def\inv{^{-1}} \begin{document} \[ \begin{array}{c*{2}{@{{}\mathrel{<}{}}c}} 1 & |z| & |k|\inv \\[\jot] |k| & |\phi(z)| & \hphantom{|} 1 \end{array} \] \end{document} in your original code c*{2}{@{{}\mathrel{<}{}}l} means first column is center and the two last column ...


4

In addition to the vertical space between the final two rows of your matrix being smaller than that between other rows, the horizontal space between the first two columns (and between the final two columns) is smaller than that between the other columns. The first issue arises because the height of the \ddots glyph is -- assuming you're using the Computer ...


2

You just have to replace the m-column (which centres vertically) by a p-column which aligns to the top. Here is how I would set your table: % arara: pdflatex \documentclass[10pt]{book} \usepackage[english]{babel} \usepackage{caption} \usepackage{booktabs} \usepackage{array} \usepackage{ragged2e} \usepackage{microtype} \begin{document} \begin{table} ...


0

The table spec p gives you a ┬╗paragraph column with text vertically aligned in the middle┬ź. To vertically align at the top and centre horizontally only, the spec c is needed - which in turn will leave you with a width problem. Two useful solutions can be found in Vertical alignment in tabular cells with variable height - basically, the idea is to give the ...


0

More a comment, than a answer, but I am not allowed to comment: Couldn't you just add a blank line? Alternatively: look here: Vertical alignment in tabular cells with variable height


1

I am sorry, but I witnessed the very first moment of posting the question and it was re-edited too much that it became another question. So, I re-posted the original question (which exactly conforms to the title). The incorrect placement of the dividend is shown by the code output: To solve the problem correct the first row \cline to \cline{2-7} and ...


1

Are you looking for a long division? How about something like this: \documentclass{article} \input{longdiv} \begin{document} \longdiv{300}{2} \end{document}


1

The mark up seems to complex; you want to align digits, so do it. \documentclass{article} \begin{document} \[ \setlength{\arraycolsep}{0pt} \begin{array}{r@{\,}cccc} & & \multicolumn{3}{l}{150}\\ \cline{2-5} 2 &\big)& 3 & 0 & 0 \\ & & 2 & 0 & \\ \cline{3-5} & & 1 & 0 & 0 \\ & ...



Top 50 recent answers are included