Tag Info

New answers tagged

0

Use the alignat environment. By the way, there exists a pmatrix environment that makes typing shorter and cleaner: \documentclass[a4paper, 11pt]{book} \usepackage[utf8]{inputenc} \usepackage{fourier} \usepackage{mathtools} \begin{document} \begin{alignat}{2} a &= b &+ \begin{pmatrix}c & x \\ c & x \end{pmatrix} & \\ d &= e ...


4

The following addresses your inquiries: \settowidth takes two arguments. The first is a length (or dimension) <len> (say) and the second is <something>. <something> is placed inside a box, which can be measured, and then the width of that box is assigned to the length <len>. So, \settowidth{\widestright}{abc} will assign the ...


4

For additional space between lines you can use also a stretchable amount, like \bigskipamount. This space will adjust automatically to fit into your page. If you are concerned with lines getting too close to each other, you can increase space between rows using the command \fontsize{}{} followed by a \selectfont. The first argument indicates characters' ...


3

\[\left\{\begin{array}{l} \left[\begin{array}{l} \vv{BM}\uparrow\uparrow \vv{BC}\\ \vv{BM}\uparrow\downarrow \vv{BC} \end{array} \right. \\[2.5ex]%--------------------------------------------adding a length here \left[\begin{array}{l} \vv{B'M'}\uparrow\uparrow \vv{B'C'}\\ \vv{B'M'}\uparrow\downarrow \vv{B'C'} \end{array} \right. \end{array} \right. \]


6

Well, I've done some analysis on this and it looks like a bug that was probably introduced day one (so it is now in there for what, 20+ years? ... can't remember when I wrote that code :-). The issue is the following: around cell content the code adds \ignorespaces ... \unskip to remove any unwanted space on either side. That is absolutely necessary with ...


7

Simplifying the example a bit... \documentclass[a4paper]{article} \usepackage{amsmath,amssymb} % without array it looks fine, with array extra space is added in the % right of each matrix env \usepackage{array} \begin{document} \begin{equation*} \begin{pmatrix} \begin{matrix} x \end{matrix}{} \end{pmatrix} \end{equation*} ...


4

\documentclass{article} \usepackage{array} \begin{document} \begin{table} \setlength\extrarowheight{2pt} \begin{tabular}{|c|c|c|}\hline Col. A & Col. B & Col. C \\ \hline Val. 1& $\begin{array}{@{}cccc@{}} & a & b & c \\ b & 2 & & \\ c & 2 & 3 & \\ d & 2 & 3 & 4 ...


1

The immediate cause of the error was the blank line, which is not allowed in display math environments as noted in comments. Also you should never have a blank line before display math, or two display math environments with no text in between. One possible layout would be \documentclass{article} \usepackage{amsmath} \begin{document} First: ...


4

Here are two solutions, first with eqnarray, then with align (an environment provided by the amsmath package). Note the absurdly large amount of space around the = symbols when using eqnarray -- it's one of the reasons why eqnarray is considered badly deprecated these days and really shouldn't be used anymore. Incidentally, since both eqnarray and align set ...


0

I thought I'd have a go at it too. I tried to compute as much as possible, but still need fudge factors to vertically center the lines over the numbers. At least it should be independent of font size. \documentclass{article} \usepackage{mathtools} \newsavebox{\tempbox} \newlength{\tempwidth} \newlength{\tempheight} % drwa horizontal line across matrix ...



Top 50 recent answers are included