Tag Info

New answers tagged

1

I don't know, try this may be it help you \documentclass{article} \usepackage{tikz} \newcommand{\pmark}[1]{\begin{tikzpicture}[overlay,remember picture]\node(#1)at (-1em,.7ex){};\end{tikzpicture}} \newcommand{\smark}[1]{\begin{tikzpicture}[overlay,remember picture]\draw(#1)--(0,.7ex);\end{tikzpicture}} ...


3

A solution based on blkarray: I define a bheadmatrix environment (oxymoron intended). It accepts two optional arguments thanks to the xparse package: the row with the column heads (no default), and the specifiers of the blockarray environment. The latter defaults to (up to) 10 centred columns. I had to add a strut at the beginning of the first bracketed row ...


2

Use the kbordermatrix package: \documentclass{book} \usepackage{amsmath} \usepackage{kbordermatrix} \begin{document} \[ \kbordermatrix{ & n_1 & n_2 & n_3 & n_4 & n_5 & n_6 \\ & 1 & -1 & 0 & 0 & 0 & 1 \\ & 0.960 & -0.977 & 0 & 0 ...


5

\documentclass{article} \usepackage{amsmath} \usepackage{tikz} \newcommand{\tikzmark}[2]{ \tikz[overlay,remember picture,baseline] \node[anchor=base] (#1) {$#2$}; } \begin{document} \begin{equation} \begin{pmatrix} \tikzmark{top}{1} & \tikzmark{top2}{1} & 0 \\ 0 & 1 & \tikzmark{bottom2}{1} \\ \tikzmark{end}{1} & 0 ...


5

Welcome, you can use something like this: \documentclass[a4paper]{article} \usepackage{amsmath,amssymb,xcolor} \newcommand\RED{\color{red}} \begin{document} \begin{equation} C= \begin{bmatrix} \RED 1 & 1 & 0\\ 0 & \RED 1 & 1\\ 1 & 0 & \RED 1\\ \end{bmatrix} \end{equation} \end{document} Result:


0

One simple approach (which probably wouldn't work in every case) is to set negative inter-column spacing between the over-size element and the adjacent empty row. This isn't ideal since you have to hand-tune the distance. \documentclass{article} \usepackage{tikz}\usetikzlibrary{positioning,fit,arrows,backgrounds,shapes} \begin{document} \begin{tikzpicture} ...


1

I found helpfull the answer of Todd Davies in LaTeX help and I did this: \documentclass{article} \usepackage{amsmath} \newcommand\MyLBrace[2]{% \left.\rule{0pt}{#1}\right\}\text{#2}} \begin{document} $$\begin{bmatrix} \left(\begin{smallmatrix}0\\ \vdots\\0\end{smallmatrix}\right)\\ \vdots\\ \left(\begin{smallmatrix}0\\ ...


3

For fun I tried to make what you specified with my limited knowledge. A short look on this wikibook chapter brought me a long way. I am sure it can be done much more elegant, shorter, logical, etc, but this was as close I could get. I am not sure how to add the little bars in the right delimiter, I hope they are not mandatory. From your drawing it is also ...


3

Your notation is not only inconvenient for the reader but also wrong or ambiguous. I start reading from the top: it is a zero vector then ellipsis mean that it is repeated and I arrive to a nonzero vector. Weird but OK I continue; then next ellipsis mean that it is also repeated but then I arrive again another zero vector. I start from the middle a nonzero ...


3

A simple way to do that with the blockarray package. I also use the nccmath package for its medsize environment, in order to have comments/details in smaller size font than the main formula (~80 % of displaystyle): \documentclass[12pt]{article} \usepackage{mathtools, nccmath} \usepackage{array, multirow, bigdelim}% \usepackage{blkarray} \begin{document} ...


3

Here's a possible implementation: \documentclass{article} \usepackage{amsmath} \newdimen\eliminationwd \newenvironment{elimination} {\global\eliminationwd=0pt\bmatrix} {\endbmatrix\hspace{1em}\hspace{\eliminationwd}} \newcommand{\ops}[1]{% \sbox0{$#1$}% \ifdim\wd0>\eliminationwd \global\eliminationwd=\wd0 \fi ...


3

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} Q_{l} = \begin{bmatrix} I_{1} & & & & \\ & \cos\varphi_{l} & \dots & e^{jv_{l}}\sin\varphi_{l} & \\ & \vdots ...


1

And if you really need lots of space... \documentclass[12pt]{article} \usepackage[margin=1in]{geometry} \usepackage{amsmath} \usepackage{pdflscape} \setcounter{MaxMatrixCols}{20} \begin{document} \begin{landscape} \noindent\rule{\linewidth}{1pt} \begin{equation}\arraycolsep=1em \textbf{k} = \begin{bmatrix} \frac{EA}{L} & 0 & 0 ...


5

I stopped symm extending the first column (don't use math italic for multi-letter words) and reduced the column padding a bit: \documentclass[12pt]{article} \usepackage[margin=1in]{geometry} \usepackage{amsmath} \setcounter{MaxMatrixCols}{20} \begin{document} \begin{equation}\setlength\arraycolsep{4pt} \textbf{k} = \begin{bmatrix} ...


1

A TABstack can do it without overfull boxes. The intercolumn gap and interrow baseline skip are set, respectively, with \setstacktabbedgap{1ex} \setstackgap{L}{1.4\baselineskip} EDITED to \rlap the "symm.", both to not have it affect the column size and to put it as text. The MWE is thus: \documentclass[12pt]{article} \usepackage[margin=1in]{geometry} ...


8

Some ideas: make 3 by 3 matrices, with large entries; in appropriate spots put smashed the matrices K1 and K2 \documentclass{article} \usepackage{mathtools,delarray} \newcommand{\lK}[1]{% \text{\LARGE$K^{#1}$}% } \newcommand{\plK}{\phantom{\lK{1}}} \begin{document} \[ \begin{bmatrix} \mathrlap{\smash[b]{% \begin{array}[t]\lbrack{@{}ccc@{}}\rbrack ...


2

I just find a solution for this problem as follows: \begin{pmatrix} 1 & & & &\alpha_{1k} & & \\ & 1 & & &\alpha_{2k} & & \\ & & \ddots& & \vdots & & \\ & & & \ddots ...


3

Try this. Both arrows should automatically expand base on the size of the matrix. You may want to shorten the horizontal arrow a bit, but it'd be hard to do without manually specifying the width of the matrix through the use of custom spacer such as \hphantom{\hrule{1cm}} replacing the \hphantom part of the code below, unless someone has better idea. ...


1

As percusse suggested in the comments, the identifiers in the second equation should be different. Quoting page 2 of the manual: Notice that the delimiter labels, also called marker-ids, should characterize uniquely the part highlighted. Reusing the same name more than once will lead to undesired results. Along this documentation there are examples that ...


0

Thank you for your answer. I would like to share that tip. First I will explain the problem, and after that, I will post the solution. PROBLEM If I do that: \begin{equation}\label{eq:appendcol} \left(\begin{array}{cccc} \tikzmarkin[ver=style red]{col 1}\x & \x & \tikzmarkin[ver=style red]{col 2} \x & \x \\ 0 & \x & ...


1

With help of blkarray: % arara: pdflatex \documentclass{article} \usepackage{blkarray} \usepackage{xcolor} \newcommand*{\matindex}[1]{\mbox{\scriptsize#1}} \newcommand*{\matsum}[1]{\color{red} #1} \begin{document} \[ M^2 = \begin{blockarray}{*{13}{c}} & \matindex1 & \matindex2 & \matindex3 & \matindex4 & \matindex5 ...


1

Here is a MWE using the bigdelim and multirow packages and implementing the \bigdelim command: \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{bigdelim} \usepackage{multirow} \begin{document} \begin{center} $M^2=\quad% \begin{array}{@{}cl@{\hspace{0.5em}}*{11}{c}@{\hspace{0.5em}}rr} & & 1 & 2 ...


4

Here's one possibility; the \multirow command from the multirow package won't be useful here since a TikZ matrix is not really a standard LaTeX matrix; you can use the anchors for some of the matrix cells to place the labels at the desired location (defining a command to do so, as in my example code). I also drew some horizontal lines to separate the groups ...


0

Try this \documentclass[landscape]{article} \usepackage[margin=.25in]{geometry} \usepackage{amsmath} \begin{document} \tiny \setcounter{MaxMatrixCols}{18} \[ CM = \begin{bmatrix} 0& 0& 0& 1.0000& 0& 1.0000& 0& 2.0000& 0& 3.3809& 0& 3.3809& 0& 2.3810& 0& ...


5

If you put A in a box you can use its size in the other three quadrants: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \sbox0{$\begin{matrix}1&2&3\\0&1&1\\0&0&1\end{matrix}$} % C=\left[ \begin{array}{c|c} \usebox{0}&\makebox[\wd0]{\large $B$}\\ \hline \vphantom{\usebox{0}}\makebox[\wd0]{\large ...


1

Only as a workaround: Set the text width option for the nodes containing the colored lines in the legend: column 1/.style={nodes={align=center,text width=.6cm}}, column 2/.style={nodes={anchor=base west}}, column 3/.style={nodes={align=center,text width=.6cm}}, column 4/.style={nodes={anchor=base west}}, Code: \documentclass{scrreprt} ...



Top 50 recent answers are included