New answers tagged matrices
2
It seems to me that you are typesetting matrices here. Note that amsmath provides matrix environments (matrix, pmatrix, bmatrix, etc…), so that you do not need to type your own delimiters around an array. (You would want bmatrix.)
To get augmented matrices, use the code from the question:
How does this macro for augmented matrices work?
Edit: Included ...
4
One possibility, is to tackle the problem in the other sense: instead of shortening the dashed line, you can enlarge the delimiters:
\documentclass[a4paper]{article}
\usepackage{arydshln}
\usepackage{mathtools}
\begin{document}
\begin{equation*}
\delimitershortfall=0pt
\setlength{\dashlinegap}{2pt}
\left[\begin{array}{cccc:c}
a_{11} & a_{12} & ...
2
You need to enclose the pmatrix environment in a pair of braces { }
The internal version of \Aboxed, \@Aboxed, uses & to split its argument. Normally, this just strips everything after a possible second &, as in the second example below.
In this case though, you’re splitting the pmatrix environment which would create a sequence of math-mode commands ...
10
You can do it like this, provided your main matrix has no unusually big objects (otherwise you can play with the first argument to \dottedcolumn that also accepts decimal numbers).
\documentclass{article}
\usepackage{amsmath}
\newcommand{\dottedcolumn}[3]{%
\settowidth{\dimen0}{$#1$}
\settowidth{\dimen2}{$#2$}
\ifdim\dimen2>\dimen0 \dimen0=\dimen2 ...
7
Taking some code from How to get a good "divisible by" symbol?, you can create your own \vdots that has any number of predefined dots. Here I've defined \sixvdots:
\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\newcommand{\sixvdots}{%
\vbox{\baselineskip1ex\lineskiplimit0pt%
...
4
One of the reasons why I always use (square) brackets for delimiting matrices is that the larger the matrices are, the fatter the parentheses become.
Compare the two results, one with pmatrix, the other with bmatrix:
The parentheses don't add to clarity, only to the required space.
One might argue that the "T" is too far also in the second case, but I ...
4
no vertical lines, no centering, friendlier spacing:
\documentclass[12pt]{article}
\usepackage{booktabs,leading}
\usepackage[utf8]{inputenc}
\usepackage[justification=raggedright,singlelinecheck=false]{caption}
\begin{document}
\begin{table}
\leading{16pt}
\caption{\label{tab2} FMM: profiling of subroutines}
\begin{tabular}{llllllll}
...
5
Don't use vertical lines at all:
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath, amsmath, amssymb}
\usepackage{caption}
\usepackage{ctable}
\usepackage{multirow}
\begin{document}
\begin{table}[H]\centering
\caption{\label{tab2} FMM: profiling of subroutines}
\begin{tabular}{lcccccc}\FL
\multirow{2}{*}{$\Theta$} & ...
3
I found the problem after hints from @percusse . The reason for the problem is that TeX performs some kind of rounding on the height of the delimiters. This is illustrated by the following code:
\documentclass{standalone}
\begin{document}
$\left[\vcenter{\vbox to 33pt {}}\right]$
$\left[\vcenter{\vbox to 34pt {}}\right]$
$\left[\vcenter{\vbox to 35pt ...
2
Note:
you can refer to the cell in the ith row and jth column of the matrix mat as mat-i-j, and
as Ignasi pointed out above, you can shorten the lines a little, to avoid problems with consecutive merged cells.
Result:
Modified code:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{matrix}
\makeatletter
\newdimen\multi@col@width
...
7
This is one more option you can check out.
Asymptote supports matrix operations,
and here is a brief example to demonstrate what is possible. It includes matrix expressions, transpose and inverse.
Usage:
define matrices inside the asy environment along with operations on them;
define TeX names with matrixdata function, e.g.: ...
10
You could also use the sagetex package, working with the free software Sage.
Pros:
Maintainability
Full power of Sage: matrices, but also polynomials, plots, etc... and any kind of operations (such as the ones required in the edit!)
Don't reinvent the wheel, build a bike!
Easy export to — or integration into — LaTeX
Easy inclusion of the source code if ...
27
Here is some code to manipulate matrices of any size. Currently, it can perform additions, subtractions, and multiplication (as well as fetching individual entries, and transposing a matrix, for instance). Entries are floating points that l3fp supports (16 digits of precision).
% Programming-level functions: \fpm_new:N, \fpm_set:Nn, \fpm_gset:Nn,
% ...
15
calculator package might help.
5
Tikz matrices define the styles column X which allows to pass separate options (in this case, anchor) for different columns. For the record, the row X styles are the equivalent for rows, and you can combine both to refer to a specific cell.
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{matrix}
\begin{document}
...
0
[EDITED to resolve the equation axis properly]
\documentclass{article}
\usepackage{amsfonts}
\usepackage{scalerel}
\begin{document}
\def\x{\begin{array}{c}x\\x\end{array}}
\(
\let\svarraycolsep\arraycolsep
\renewcommand\arraystretch{1.4}
\arraycolsep 0.4ex
\begin{array}{c}
\\
\mathbb{P}=\quad\\
\\
\end{array}
\begin{array}{c}
\\
{\scriptstyle 1}\\
...
2
Inspired by David Carlisle answer, I came up with this solution:
\documentclass{minimal}
\usepackage{mathtools}
\newcommand{\mfrac}[2]{\genfrac{}{}{0pt}{}{#1}{#2}}
\begin{document}
\[
\overbrace{
\overbracket{
\overbracket{\mfrac{1-2}{I}}^{\text{Gdg}}
\overbracket{\mfrac{3-4}{V-I-V}}
\overbracket{\mfrac{5}{V-IV}}^{z}
}^{\text{frase }a}
...
4
This doesn't use TiKz, and could be prettier but
\documentclass{article}
\usepackage{array}
\makeatletter
\newcommand\ob{%
\vrule\@width .7pt\@height3pt\hbox{$\smash-\mkern-3mu$}%
\xleaders\hbox{$\mkern-3mu\smash-\mkern-3mu$}\hfill
\hbox{$\mkern-3mu\smash-$}%
\vrule\@width .7pt}
\makeatother
\begin{document}
\[
\overbrace{
\begin{array}{*{9}c}
...
Top 50 recent answers are included


