# Tag Info

0

It seems to me that Maple does support LaTeX. There seems to be two options: either whole file export (From the File menu, select Export As. The Export As dialog opens.) or single expression export function conveniently named latex

3

With a light (local) squeezing of the space between columns and some additional negative spacing where appropriate. I removed the wrong \quad spaces you are using. \documentclass[10pt,a4paper,titlepage]{book} \usepackage[paperwidth=165mm, paperheight=238mm, left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage[graphicx]{realboxes} ...

1

Here is a solution with arydshln: \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{array} \usepackage{amssymb, mathtools} \usepackage{arydshln} \setlength\dashlinedash{2pt} \setlength\dashlinegap{1.2pt} \newenvironment{BMatrix}[1]{% \Bmatrix\hspace{-0.5\arraycolsep}\array{#1}}% {\endarray\hspace*{-0.5\arraycolsep}\endBmatrix} ...

21

Using the mathtools package you can make use of enhanced versions of the matrix environments. In this example I use the starred version of pmatrix which accepts an optional argument which is the alignment of the cells. To reserve the space for the minus sign, I simply put \phantom{-} before the entries to be spaced out. \documentclass{article} ...

3

Using \llap As noted in comments, when using \llap{$-$}2i alone, the column spacing is too tight. However, building on the other answers idea of using a \phantom, instead of using it in every row other than the "minus" row, here it is used once to correct the column spacing by use in the first column, with a single \llap on the row with the minus used to ...

6

Well, you've set up an array with four columns left-aligned \begin{array}{llll} - that's what your four ls do. In order to align the 2s, I suggest a hack \documentclass[12pt]{article} \pagestyle{plain} \usepackage[margin=1.8cm]{geometry} \geometry{a4paper} \usepackage[parfill]{parskip} \usepackage{amsmath} \usepackage{amssymb} \newlength{\minuslength} ...

3


2

You're using the wrong tool: matrix centers each cell. \begin{equation*} \text{when } \begin{cases} a(E)'=\infty, &\text{if $E=\bar{L}$} \\ a(E)'=0, &\text{if $E=0$} \end{cases} \end{equation*}

3

It's easy to do with pstricks, as it allows using a usual ams matrix environment. The relevant entries of the matrix are defined as \rnodes, and these nodes are connected with \ncboxes: \documentclass{article} \usepackage{amsmath} \usepackage[table, x11names]{xcolor} \usepackage{fourier} \usepackage{pst-node, multido} \usepackage{auto-pst-pdf} ...

5

This is slightly adopted on my old example of matrix with highlighted elements (it quit differ from your image): To change path to your wish you only need to select nodes in matrix, through which path should go. \documentclass[border=1mm]{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \centering ...

7

I suggest increasing \arraystretch, and using the \mfrac command (medium sized fraction, about 80 % of \displaystyle), from nccmath. If you want all columns to have the qame width, it can be done with the eqparbox package. Also, note \max is a math operator, so you don't need to code _{\mathrm{max}}: \documentclass{article} \usepackage{mathtools, array, ...

5


4

Here is a solution with pstricks-add. The idea is to set empty nodes at relevant places in the matrix and connect them with the \psbraces command. You can compile either with xelatex, or with pdflatex, if you use the --enable-write18switch (MiKTeX) or -shell-escape (TeX Live, MacTeX). \documentclass[border =10pt]{standalone} \usepackage[utf8]{inputenc} ...

2

You can add some more aligns: \documentclass[preview]{standalone} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{mathdots} \begin{document} \Delta(\left|v_{i}\right>)= \begin{bmatrix} 0 & \ldots & 0 & 0 & \ldots & 0 & d_{i,L} & * & \ldots & *\\ 0 & \ldots & 0 & 0 & \ldots ...

2

I think you don't need a \mathclap in the definition of \sunderb. Also, I reduced slighlty the value of the width (1st argument) as it looks better for my taste. A final comment: needless to load amstext: mathtools does it for you. Same comment for graphics, loaded by graphicx, and finally, epsfig is deprecated in favour of graphicx. ...

1

After guessing at a definition for \R and removing a stray brace, I modified the \sunderb macro by adding an outer \makebox[#1]. Without it, you ar relying on the natural width of other items in the column to compensate for the \mathclap. When a column, like the last one of the matrix, has nothing else that wide, it provokes the overlap. ...

2

Here is a solution using siunitx and ncccmath for its \medmath command, which reduces the size of \displaystyle by about 20 %: \documentclass[12pt,a4paper]{article} \pagestyle{myheadings} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} %code \usepackage{uarial} % for \renewcommand{\familydefault}{\sfdefault} %arial font \usepackage[brazilian]{babel} ...

3

Here is a manual way \documentclass[a4paper]{memoir} \usepackage[T1]{fontenc} \usepackage{amsmath,amssymb} \usepackage{fix-cm} \begin{document} \[ BP=\left( \begin{array}{@{} c|c @{}} \begin{matrix} \quad\text{\fontsize{10mmm}{10mm}\selectfont$0$}\quad \end{matrix} & \begin{matrix} b_1\\\vdots\\b_{n-1} \end{matrix} ...

5

My main suggestion is to take the factor 10^4 outside the matrix. That way, the width of first five columns can be made reduced dramatically, while the width of the final two columns doesn't increase much on net. Using a bmatrix* environment and reducing the value of the \arraycolsep helps too. \documentclass[12pt,a4paper]{article} \pagestyle{myheadings} ...

0

Taking into account your picture of desired table in question and your own answer I combine in the following code: \documentclass{article} \usepackage{multirow} \begin{document} \begin{tabular}{|*{4}{c|}} \cline{3-4} \multicolumn{2}{c}{} & \multicolumn{2}{|c|}{Predictions} ...

0

Thanks to salim bou I was able to achieve what I wanted. The code below strips ''Predictions'' and ''Guesses'' of all lines. \begin{tabular}{l|l|l|l|} \multicolumn{2}{l}{} & \multicolumn{2}{c}{Predictions} \\ \cline{3-4} \multicolumn{2}{c|}{} & High & Low \\ ...

1

Like this \documentclass{article} \usepackage{multirow} \begin{document} \begin{tabular}{|l|c|l|l|} \multicolumn{2}{c}{} & \multicolumn{2}{c}{Predictions} \\ \cline{3-4} \multicolumn{2}{c|}{} & High & Low \\ \hline \multirow{2}{*}{Guesses} & High & 14 & 0 \\ \cline{2-4} & ...

3

Not really recursive. But, hey, it works! \documentclass{article} \usepackage{amsmath} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\recursematrix}{O{B}m} {% #1 is the (optional) symbol for the coefficient, #2 is the step \begin{pmatrix} \passerby_recursematrix:nn { #1 } { #2 } \end{pmatrix} } \tl_new:N \l_passerby_recursebody_tl ...

Top 50 recent answers are included