Tag Info

Hot answers tagged

8

\documentclass{article} \usepackage{xcolor} \usepackage{verbatimbox} \begin{document} \shortstack{\addvbuffer[0ex -.72ex]{$\textcolor{red}{\leftharpoonup}$}\\ \addvbuffer[-.72ex 0ex]{$\textcolor{blue}{\leftharpoondown}$}} \shortstack{\addvbuffer[0ex -.72ex]{$\textcolor{red}{\rightharpoonup}$}\\ \addvbuffer[-.72ex ...


7

The following example defines \xtwoheadrightarrow and \xtwoheadleftarrow similar to the definitions of \xrightarrow and \xleftarrow: \documentclass{article} \usepackage{amssymb} \usepackage{amsmath} \makeatletter \providecommand*{\twoheadrightarrowfill@}{% \arrowfill@\relbar\relbar\twoheadrightarrow } \providecommand*{\twoheadleftarrowfill@}{% ...


6

I changed a little bit. For example, I inserted the \sim for bijection directly on the arrow. Is it necessary to use that raise box for some commands? Also, why not use \langle \rangle instead of < >? \begin{frame}[t] %% note the option [t] here \only<1>{\[ \xymatrix@R=13pt@C=12pt{ \H\times\C \ar @{->>}[rr]^{\Exp} ...


6

Perhaps an overkill, but you could define your arrow with the help of TikZ: \documentclass{article} \usepackage{tikz} \newcommand\overdarrow[1]{% \begin{tikzpicture}[baseline=(arg.base)] \node[inner xsep=0pt] (arg) {$#1$}; \draw[densely dashed,dash pattern=on 2pt off 1.5pt,->,shorten >= 0.5pt] (arg.north east) -- (arg.north west); \end{tikzpicture}% ...


6

A very basic suggestion to start with: \begin{filecontents*}{twocoloredline.asy} import graph; struct DblLine{ typedef pair T_fParam(real t); guide gline,midLine,leftLine,rightLine; arrowhead arrowHeadStyle; guide arhd; // arrow head outline; guide leftAr, rightAr; pen leftPen, rightPen; T_fParam fmid(guide g){return new pair(real ...


5

-- draws a straight line, if you use to[bend right] instead, you get two curved arrows. \documentclass{beamer} \usepackage{tikz} \usepackage{verbatim} \usetikzlibrary{arrows,shapes} \begin{document} \tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt] \tikzstyle{edge} = [draw,thick,->] \tikzstyle{weight} = [font=\small] ...


5

You can create it quite easily with arcs: Code \documentclass[parskip]{scrartcl} \usepackage[margin=15mm]{geometry} \usepackage{tikz} \usetikzlibrary{decorations.text} \newcommand{\arcarrow}[8]% inner radius, middle radius, outer radius, start angle, end angle, tip protusion angle, options, text { \pgfmathsetmacro{\rin}{#1} ...


4

You don't say from what TeX distribution you upgraded. The breqn package has undergone big changes, one of which, unfortunately, makes it not to cooperate well with Xy-pic. You can return to the normal behavior with some trick: \documentclass[10pt]{letter} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} ...


4

If you mean the stealth as in the arrow head style of Tikz, the package tikz-cd provides such an interface: \documentclass{amsart} \usepackage{tikz-cd} \usetikzlibrary{arrows} \tikzset{ commutative diagrams/.cd, arrow style=tikz, diagrams={>=stealth} } \begin{document} \begin{tikzcd} A \arrow{r} &B \end{tikzcd} \end{document} ...


4

If you want to avoid having to guess the value for the shorten < key, you can define new arrow heads that will place the circles precisely at the specified coordinate: \documentclass[]{standalone} \usepackage{tikz} \usepackage{pgfplots} \usepgflibrary{arrows} \makeatletter \pgfarrowsdeclare{center*}{center*} { ...


4

Just another suggestion with PSTricks. \documentclass[preview,border=12pt,leqno,varwidth]{standalone} \usepackage{pst-node} \usepackage{amsmath} \begin{document} \begin{align} \rnode[l]{A}{y} &= ax^2 +bx +c\\ \rnode[l]{B}{y} &= mx +c \pcbar[angle=180,nodesep=3pt,linearc=3pt,linecolor=blue]{->}(A)(B) \end{align} \end{document}


4

your approach is almost there. \newcommand{\myrightarrow}[1]{\ensuremath{\raisebox{-2pt}{$\xrightarrow{#1}$}}} if instead of \ensuremath you use \mathrel, like this, \newcommand{\myrightarrow}[1]{\mathrel{\raisebox{-2pt}{$\xrightarrow{#1}$}}} that will treat the "adjusted" symbol as a relation, which in turn will add the proper spacing around it. ...


3

If the equations have the same length the code below works fine. Use xymatrix with an empty column to produce the arrow. \begin{equation} \begin{gathered} \xymatrix@R=1ex@C=-2pt{ \ar@/_7pt/[d] & \hat{H}= -\frac{num}{den}\cdots\\ & \hat{H}= -\frac{num}{den}\cdots} \end{gathered} \end{equation} The @R= controls the distance ...


3

With the mathabx package, a number of stealth-like arrows are available, including these: \documentclass{article} \usepackage{mathabx} \begin{document} \[x \rightarrow y\] \[y \leftarrow y\] \end{document} FOLLOW UP: In response to egreg's comment about many symbols being replaced with the mathabx package, and stealing code from Alan Munn at Importing ...


3

The \vec command uses \mathchar"017E as the arrow, while \overrightarrow uses \mathchar"3221. Both look like scaled versions of each other to me. So we can replicate \overrightarrow with the arrow tip of \vec. I propose two versions, a LaTeX one, and one following the amsmath route. For the amsmath version I give another variant that scales the minus ...


3

Here is a pure LaTeX solution that uses \dashedleftarrow from MnSymbol, and makes it extendable with (shortened) minus signs, as usual for extendable accents. The new command to use is \odla{...}, short for \overdashedleftarrow. \documentclass{article} \usepackage{graphicx} \usepackage{MnSymbol} \makeatletter \newcommand{\odla}[1]{% \vbox ...


2

The double distance key is useful here (see the TikZ manual, p161). \documentclass{article} \usepackage{tikz-cd} \usetikzlibrary{arrows} \usetikzlibrary{decorations.markings} \tikzset{degil/.style={line width=0.5pt,double distance=5pt, decoration={markings, mark= at position 0.5 with { \node[transform shape] (tempnode) ...


2

Adapting an answer from How do I put text over a squiggly arrow?. See that answer for a full description of the created macros, though, in the end, the commands to use are \rextlinearrow{string}{integer} for a right arrow and \lextlinearrow{string}{integer} for a left arrow. The integer is the arrow-shaft length defined in terms of multiples of a minus ...


2

Something that someone regards as overkill may be regarded by other people as useful. \documentclass[preview,border=12pt]{standalone} \def\arrow#1{\pspicture[shift=2pt](#1,0)\psline{->}(#1,0)\endpspicture} \usepackage{pstricks} \begin{document} $f:x \arrow{2} x^2$ \end{document}


2

chemfig does not provide curved arrows. It is possible to define something with \definearrow - the documentation gives an example. This is not comfortable to use and is only part of what your scheme has: combined curved arrows. It is probably possible to define such arrows, too, but I don't believe that they're any more comfortable to use. I would try to ...


2

Rather than answering the question directly, let me give my opinion that the paragraph as you've written it is rather cramped and needs to be broken up with some displayed equations. My personal rule for this is that any math of significant length (say, likely to be broken across a line) or height or depth (anything, really, exceptions made for simple ...


2

Tongue-in-cheek solution: rip the character from MnSymbol, and make it huge: \documentclass[leqno]{article} \usepackage{graphicx} \usepackage{amsmath} \DeclareFontFamily{U}{MnSymbolA}{} \DeclareSymbolFont{MnSyA}{U}{MnSymbolA}{m}{n} \DeclareFontShape{U}{MnSymbolA}{m}{n}{ <-6> MnSymbolA5 <6-7> MnSymbolA6 <7-8> MnSymbolA7 ...


1

The easiest way would be to use named node instead of the coordinates that helped you placed the nodes, simply chains and/or our favorite visible on style. Code A \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame}{MWE} \begin{tikzpicture} \foreach \y in {0,1,...,9} { \coordinate (A\y) at (0,{-1*\y}); \coordinate (B\y) at ...


1

Does this help? I put together a composite \mapsto, by adding a vertical rule to a stealth arrow (outside of tikz) EDIT: Now it works in \scriptstyle \documentclass{article} % See http://tex.stackexchange.com/questions/14386/importing-a- % single-symbol-from-a-different-font % Setup the matha font (from mathabx.sty) ...


1

The {mhchem} package is sensitive to spaces and I think the problem you were having was just due to some spaces in the wrong places. Compare: \ce{2LiOH_{(s)} + CO_{2(g)} - >Li_{2}CO_{3(s)}+ H_{2}O_{(g)}} \ce{2LiOH_{(s)} + CO_{2(g)} -> Li_{2}CO_{3(s)} +H_{2}O_{(g)}} Also it is worth noting that in this package numbers in chemical formulas are ...



Only top voted, non community-wiki answers of a minimum length are eligible