Tag Info

New answers tagged

9

Nice MWE. It turns out amsmath tramples on box 0 (as it has a right to do, really) but it was unfortunate as blkarray was doing the same thing. \documentclass{article} \usepackage{array}\usepackage{amsmath} \usepackage{blkarray} \makeatletter \newbox\BA@first@box \makeatother \begin{document} \begin{blockarray}{c} 1 \end{blockarray} \end{document}


3

You'll have no problem if you write your blockarray in math mode: \documentclass{article} \usepackage{blkarray} \usepackage{mathtools} \begin{document} \[ \begin{blockarray}{[c\}} 1\\-1 \end{blockarray} \] \end{document}


2

I had the same initial solution as @Gonzalo Medina, but added a solution using the \medmath command from the nccmath package, that reduces the size of the $n$-tuples by about 30 %: \documentclass{article} \usepackage[overload]{empheq} \usepackage{nccmath} \begin{document} \begin{align*} φ_{σ}\colon E & ―――→ E \\ (x_{1},x_{2},...,x_{n}) & ...


1

You can align at the arrows, but this might look odd since the n-tuple is too wide; another approach is to give up on alignment, be a little wordy and separate the components: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \varphi_{\sigma}\colon E &\longrightarrow E \\ (x_{1},x_{2},...,x_{n}) &\longmapsto ...


3

You're lucky that the equations to be merged are three: \documentclass[a4paper,12pt]{article} \usepackage{setspace} \usepackage{amsmath} \usepackage{amssymb} \usepackage{bm} \newcommand{\vnull}{\bm{0}} \newcommand{\vsigma}{\bm{\sigma}} \newcommand{\vchi}{\bm{\chi}} \newcommand{\vu}{\bm{u}} \newcommand{\vf}{\bm{f}} \newcommand{\vp}{\bm{p}} ...


6

A starting point: The code: \documentclass[border=2pt]{standalone} \usepackage{tikz} \usetikzlibrary{matrix,positioning,arrows.meta,arrows} \tikzset{ mymat/.style={ matrix of math nodes, text height=2.5ex, text depth=0.75ex, text width=3.25ex, align=center, column sep=-\pgflinewidth }, mymats/.style={ mymat, nodes={draw,fill=#1} } ...


2

The following might suit you: \documentclass{article} \usepackage{etoolbox,xparse} \ExplSyntaxOn \cs_new_eq:NN \CALC \fp_eval:n \ExplSyntaxOff \newcounter{argcnt} \makeatletter \newcommand{\newarray}[2]{% \newarray{<array>}{<csv list>} \setcounter{argcnt}{0}% Restart argument count \renewcommand{\do}[1]{% With each element do... ...


1

Is this something like what you mean? Perhaps this could get you started. \documentclass{article} \newcommand{\twothings}[2]{% \gdef\thingone{#1} \gdef\thingtwo{#2} } \newcommand{\pickone}[1]{% \ifnum#1 = 1 \thingone \else \ifnum#1 = 2 \thingtwo \else \relax \fi \fi% } ...



Top 50 recent answers are included