The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

4

A way to make such a diagram with pstricks: \documentclass[svgnames]{article} \usepackage{pst-node} \usepackage{auto-pst-pdf} \begin{document} \[ \psset{arrows=->, arrowinset=0.12, labelsep=2pt, linejoin=1} \begin{psmatrix}[mnode=circle, framesep = 10pt, fillstyle = solid, rowsep=2.4cm ] %%% nodes [fillcolor=Lavender!60, linecolor=DarkMagenta] A &...


7

Something like this? \documentclass{article} \usepackage[svgnames]{xcolor} \usepackage{tikz-cd} \tikzset{set/.style={circle,draw=#1,fill=#1!20}} \begin{document} \[\begin{tikzcd} |[set=red]|A \arrow[rr,bend left=10,"f"] \arrow[dr,bend left=10,"h"] & & |[set=DarkGreen]| B \arrow[ll,bend left=10,"f^{-1}"] \arrow[dl,bend left=10,"g"]\\[3em] & |...


0

If you use the tikzmark tikz library then the coordinates defined by a tikzmark are available before they are defined in the document. The float and resizebox are a bit of a pain, but by putting the arrow command inside both but before the table then I get what I think you want. \documentclass[a6paper]{article} \usepackage{array} \usepackage{graphicx,...


4

What I can offer is a solution that draws the arrow in the background: eso-pic. (BTW, fill opacity is not the right key here.) However, your \resizebox screws things up, including the positioning mechanisms of TikZ. So I dropped it. \documentclass[a6paper]{article} \usepackage{array} \usepackage{graphicx,colortbl,booktabs,environ,hhline} \usepackage{tikz} \...


1

One way is to define edge: \documentclass[border=5pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[auto, every edge/.style={draw, <->} ] \draw (0,0) edge node {$a$} (1,0); \end{tikzpicture} \end{document} which gives: or use the quotes library: \documentclass[border=5pt]{standalone} \usepackage{...


1

Here are a few ways to resolve this. The issue is that an edge creates an independent path. As originally pointed out by Paul Gaborit, one may use the keys tip=proper or tips=on proper draw, which are described in pgfmanual v3.1.4b on p. 188. IMHO the cleaner solution is to pass the arrow heads to the edge. The arguably cleanest way is to replace edge by to, ...


0

If you want to use a matrix instead of tabular, you can get inspiration from the following code: % Code by Anonymous User from https://www.latex4technics.com/?note=1w9f \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \tikzset{ table/.style={ matrix of nodes, row sep=-\pgflinewidth, column sep=-\pgflinewidth, nodes={rectangle,text ...


0

What about tweaking the tikz stealth arrow a little bit? Maybe you can play around with the correct values but after a quick try I came up with the following parameters. There is definitely still a difference but it is somehow similar to the mathabx arrow. \documentclass{article} \usepackage{mathabx} \usepackage{tikz-cd} \usetikzlibrary{arrows} \tikzcdset{...


6

I propose this solution, using mathtools, makebox and makecell, with some manual adjustment: \documentclass{article} \usepackage{mathtools, nccmath} \usepackage{makebox, array, makecell} \begin{document} \bgroup \setcellgapes{2pt}\makegapedcells \begin{align*} \int x\exp(ax)\, dx\, & = \frac{x}{a}\exp(ax)-\frac{1}{a}\int\exp(ax)\, dx\\ & \...


Top 50 recent answers are included