Hot answers tagged

7

I've never been a fan of clipping but sometimes you just have to go with it... \documentclass{article} \usepackage{amssymb} \usepackage{trimclip} \makeatletter \newcommand*{\twoheadrightsquigarrow}{\rightsquigarrow\joinrel\mathrel{\mathpalette\@twoheadrightsquigarrow\relax}} \newcommand*{\@twoheadrightsquigarrow}[2]{% \clipbox{{.7\width} 0pt 0pt {-.2\...


5

chemfig only \documentclass[border=15mm]{standalone} \usepackage{chemfig} \begin{document} %\setchemfig{scheme debug=true} \setchemfig{+ sep left=0em,+ sep right=0em} \schemestart \chemfig{Na}\,(s)\vphantom{\(\frac{1}{2}\)} \arrow{0}[,0.5] \+ \arrow{0}[,0.5] \(\frac{1}{2}\)\,\chemfig{Cl_2}\,(g) \arrow{->[\footnotesize\(\Delta H_f\)]}[,1.5] \chemfig{NaCl}\,...


4

I don't know exactly what you need. But looking at your sketch it looks very close to this Born-Haber cycle of mine. It's made with tikz and mhchem, not with chemfig, but perhaps it could be of help. \documentclass[border=2mm]{standalone} \usepackage [version=4] {mhchem} \usepackage {tikz} \definecolor{dgreen}{rgb}{0,0.5,0} \begin{document} ...


4

This is a simple idea done with tikz-cd that is possible to improved it. To have the squeeze arrow with two heads I have done a code with this package (see the option squiggly recalled with the \usetikzlibrary{decorations.pathmorphing}). After I have put column sep=1.2em to decrease (if you like you can increase the lenght) the lenght of the arrow and I have ...


4

How about this? \documentclass{article} \usepackage{xfakebold} \usepackage{firamath-otf} \setmathfont{TeX Gyre DejaVu Math}[range={\vdots,\ddots,\mdlgblksquare,\overrig\ htarrow}] \setmathfont{Fira Math}[range=] \setmainfont{Arial}[Scale=1.1] %\newfontface\normalsize{Arial}[Scale=1.2] \setsansfont{Arial}[Scale=...


3

The FeynMF manual describes something similar in section 2.8 (Raw metafont). In particular, it shows how to draw a line with an enlarged arrow. Here we just need the opposite :-) The standard line styles are defined in the file feynmp.mp, which is the first thing passed to your .mp file when you issue \begin{fmffile}{...}. In feynmp.mp we find style_def ...


3

I have done several compilations and changes after I have looked at the documentation...and with a lot of humility I think that it is not possible. In fact I have thought to put, for the same cicle v3, v2, v1 both \fmf{dbl_plain}{v3,v2,v1} (double line) and \fmf{phantom_arrow}{v3,v2,v1}. The proof of my hypothesis it that if you prove this code: \...


3

The trick is to load the bending library - now shortened arrows will follow the original path. To shorten a non-arrow following original path, you need to turn it into an arrow using the no arrow head -_ like this: \documentclass[margin=1 cm,tikz]{standalone} \usetikzlibrary{arrows.meta, bending} \begin{document} \begin{tikzpicture} \begin{tikzpicture} \node[...


3

This is just an extension of @Rmano excellent answer. By trail, it seems that it is not needed to first define one tip, and then extend it to both directions. -it works with just one tip: \documentclass[margin=3mm,tikz]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \usetikzlibrary{circuits.ee.IEC} \tikzset{my/.tip = {>[sep=1mm]{Arc Barb}[...


3

I am not sure which ones of the arrows you want, but for example, looking at page 210 of the manual, I came up with this: \documentclass[margin=3mm,tikz]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \usetikzlibrary{circuits.ee.IEC} \tikzset{myr/.tip = {<[sep=1mm]{Arc Barb}[scale=1.6,sep=0mm]{Circle}}, my-my/.tip = {myr[reversed]}, &...


2

The nuclear option is to give up on composing arrows, and draw it myself: \pgfarrowsdeclare{io}{io} { \pgfarrowsleftextend{-8\pgflinewidth} \pgfarrowsrightextend{8\pgflinewidth}} { \pgfpathcircle{\pgfpoint{8\pgflinewidth}{0}}{4\pgflinewidth} \pgfusepathqfill \pgfpathmoveto{\pgfpoint{8\pgflinewidth}{-8\pgflinewidth}} \pgfpatharc{270}{90}{8\...


2

Bend and shift the arrow. \documentclass{article} \usepackage{amsmath} \usepackage[all,cmtip]{xy} \begin{document} \xymatrix{ \fbox{1.} \ar@2{<->}[r] & \fbox{2.} \ar@2{<->}[r] & \fbox{3.} \ar@2{<->}[r] & \fbox{4.} \ar@2{<->}[r] & \fbox{5.} \ar@2 @<-0.5ex> @/_1.5pc/ @{<->}[llll] } \end{document} ...


2

\documentclass{book} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} S^2 \cup_{m} D^3 \arrow[r, "i\circ \phi \circ q"] \arrow[d, "q"] &[0.5em] S^2 \cup_{n} D^3 \\ S^3 \arrow[r, "\phi"'] & S^2 \arrow[hookrightarrow,u, "i"] \end{tikzcd} \end{document}


2

In fact, you can define a new arrow head by shifting it and then use it as defined previously. A quick example (colours are only to make it legible): \documentclass{standalone} \usepackage{tikz,ifthen} %expl3} \usetikzlibrary{positioning, math, decorations.markings,arrows.meta,calc,shapes.misc} \usepgfmodule{decorations} \begin{document} \def\myarr{{\...


2

The tip Computer Modern Rightarrow behaves as you expected. It was added a red tip to show they are meeting at the center of the segment AB. (No manual adjustments required). Use \arrowreversed instead of \arrow to invert the direction of the arrow tip. \documentclass{standalone} \usepackage{tikz,ifthen} %expl3} \usetikzlibrary{positioning, math, ...


1

You should write \begin{WithArrows*}%. Otherwise, the options at the following line are not recognized as options of the environment {WithArrows*}: there must be no space between \begin{WithArrows*} and the character [ (and the newline counts as space).


1

please, always provide MWE, i.e. small document, which reproduce your problem. For it the most of the provided preamble are irrelevant you only need to permutate order of rows, and accordingly change arrows direction, and write new edge labels (i.e. rewrite almost complete diagram code): \documentclass{book} \usepackage[a4paper, margin=1in]{geometry} \...


1

Maybe by creating two styles to which you could pass the desired value as an argument? \documentclass{standalone} \usepackage{tikz,ifthen} %expl3} \usetikzlibrary{positioning, math, decorations.markings,arrows.meta,calc,shapes.misc} \usepgfmodule{decorations} \tikzset{edge/.style={line width=1.5}, arr/.style={decoration={markings,mark=at position #1 ...


1

With the uploaded version 0.02: \documentclass{article} \usepackage{pst-arrow} \begin{document} \begin{pspicture}(-4,-4)(4,4) \psline[tipcolor=red,arrowscale=4]{<->}(-1,-1)(1,1) \psline[tipcolor=green,linecolor=blue,linewidth=2pt,arrowscale=4]{|-|}(1,-1)(-1,1) \end{pspicture} \end{document}


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