# Tag Info

15

Using forest: \documentclass{article} \usepackage{forest} \newcommand\mytable[5]{% #1\\ \begin{tabular}[t]{*{3}{|c}|} \hline & T1 & T2 \\ \hline T1 & #2 & #3 \\ \hline T2 & #4 & #5 \\ \hline \end{tabular}% } \begin{document} \begin{forest} for tree={parent anchor=south, child anchor=north,l=2cm,edge={->}}, for descendants={text ...

10

Same as cmhughes answer but with fine adjustments. \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \node (a) at (0,0) {Developers}; \node[below left=3cm and 4cm of a,align=center,anchor=east] (b) {% Type I: Probability = 0.2\\ \begin{tabular}{|c|c|c|}\hline ...

9

TeX provides a \rightarrowfill command that does just this. It's a standard part of plain TeX and LaTeX. \documentclass{article} \newcommand{\abox}[2]{\makebox[#1][l]{#2 \rightarrowfill}} \begin{document} \begin{itemize} \item \abox{1in}{Item 1} Explanation 1 \item \abox{1in}{Item 2} Explanation 2 \item \abox{1in}{Item 3} Explanation 3 ...

8

You have quite a few options for this- the tikz package is very powerful and can be used in a variety of different ways. In the code below I have used the positioning library. % arara: pdflatex % !arara: indent: {overwrite: yes} \documentclass[border=1mm]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} ...

8

Built using stacks: \documentclass{article} \def\vecsign{\mathchar"017E} \def\dvecsign{\smash{\stackon[-1.95pt]{\vecsign}{\rotatebox{180}{$\vecsign$}}}} \def\dvec#1{\def\useanchorwidth{T}\stackon[-4.2pt]{#1}{\,\dvecsign}} \usepackage{stackengine} \stackMath \usepackage{graphicx} \begin{document} $\vec c \vec A \dvec c \dvec A$ \end{document} There ...

8

I know you said that ideally you wanted to use regular mathmode markup, but in case you are willing to use TikZ: \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ state/.style={ draw, minimum size=0.7cm, }, ar/.style={ ->,shorten >=3pt,shorten <=3pt }, every ...

7

The \xrightarrow command from the amsmath package sounds like what you want. It takes one compulsory argument, which is the text you put over the arrow, for example: \xrightarrow{?} will draw an arrow like \to with a question mark above it. You can also pass an optional argument to place some text below it. For example: \xrightarrow[!]{?} will place ...

7

This solution uses \downtouparrow of package mathabx, but it does not load the package, because it changes lots of other things. Also extensible arrows/harpoons are used. \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{chemarr} % from package mathabx: \DeclareFontFamily{U}{mathb}{\hyphenchar\font45} ...

6

You could try a canvas transformation but you'd have to recalculate all the coordinates which would probably be a nightmare. Or... You can slant arrow heads with the arrows.meta library in PGF 3.0. However, skewing the non-arrow head end needs be faked using another arrow tip. This won't work if the slanting is much greater that +/-0.5 (there will be a ...

6

Here is one option using only math mockup: \documentclass{article} \usepackage{amsmath,amssymb}% http://ctan.org/pkg/{amsmath,amssymb} \begin{document} $\underbrace{\boxed{A}}_{1/4} \;\mathrel{\mathop{\rightleftarrows}^{3/4}_{1/4}}\; \underbrace{\boxed{B}}_{1/2} \;\mathrel{\mathop{\rightarrow}^{1/4}}\; \underbrace{\boxed{C}}_{1}$ \[ ...

6

Do you want something like this? \documentclass{article} \usepackage{turnstile} \begin{document} % \setlength{\leasturnstilewidth}{15em}% this should work if I've understood the documentation correctly, but seems to have no effect $\nsststile{\hspace*{15em}}{}$ \end{document} Just change 15em to whatever size you require. Changing the height of the ...

5

One option using TikZ and a basic \nodes construct: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[ mynode/.style={ font=\color{blue} }, ar/.style={->,>=latex,line width=2pt,green!70!black} ] \node[mynode] (ag) {Ag}; \node[mynode,right=of ag] (atc) {ATC}; \node[mynode,right=of atc] ...

5

I'd suggest you to draw the whole matrix as a TikZ matrix; this gives you easy control over the attributes of the cells (I added some colors just optionally): \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \tikzset{ table/.style={ matrix of nodes, row sep=-\pgflinewidth, column sep=-\pgflinewidth, nodes={rectangle,text ...

5

Another possible solution where the OP code is used but slightly modified. The underfull problem is taken care by adding an X column in the last column so that \textwidth is satisfied. The OP's tikz struture in the cell is redefined as tikzmark taking two arguments. and connected by \link macro. Create a new column type M with horizontal and vertical ...

5

A variation of Werner's answer with a different arrow: \documentclass{article} \usepackage{mathtools,amssymb,graphicx} \newcommand{\myarrow}{\scalebox{1.2}[-2]{$\mathclap{\curvearrowleft}\mkern2.2mu \mathclap{\curvearrowright}$}} \begin{document} \[ \underbrace{\boxed{A}}_{1/4} ...

5

Do you mean something like this? Code: \documentclass{article} \usepackage{amsmath} \usepackage[all]{xy} \begin{document} \begin{equation*} \xymatrix@C+2em@R+2em{ A_i \ar[r]^{\phi} \ar[dr]_{f^{i}} & A_j \ar[d]^{f^{j}} & A_k \ar[dl]^{f^{k}} \\ & A } \end{equation*} \end{document} or Code: \documentclass{article} ...

4

Using the more modern tikz-cd package, you can do: \documentclass{article} \usepackage{amsmath} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} A_i \ar{dr}[swap]{f^{i}} \ar{r}{h} & A_j \ar{d}[swap]{f^{j}} & A_k \ar{dl}{f^{k}} \\ & A \end{tikzcd} \begin{tikzcd} A_i \ar{dr}{f^{i}} \ar{d}[swap]{h} \\ ...

4


4

Here's a solution using hobby for the third image. This should be enough to get you started on the other two. Code \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{hobby,decorations.markings} \begin{document} \begin{tikzpicture}[ use Hobby shortcut, vec1/.style={ decorate, decoration={ markings, % v-- can fine-tune arrow ...

4

One possibility: \documentclass{article} \usepackage{amsmath} \newlength\BoxWd \newlength\TextWd \newlength\ArrowWd \setlength\BoxWd{9em} \newcommand\MyItem[2]{% \settowidth\TextWd{#1}% \setlength\ArrowWd{\dimexpr\BoxWd-\TextWd\relax}% \makebox[\dimexpr\BoxWd+1em\relax][l]{% #1$\xrightarrow{\hspace*{\ArrowWd}}$% ...

3

Tested with TikZ 3.0: load the arrows.meta library instead of arrows add draw opacity=0 as option to \draw, but not to the arrow, such as >={LaTeX[]} The tail will be completely opaque, i.e. will not be shown, only the head will be visible. \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} ...

3

TikZ v3.0 (among other new features) includes a new arrows.meta library. It's probably inspired in Luigi's library and deprecates previous arrows and arrows.spaced libraries. With this new library, it's very easy to define arrowhead parameters like length or width depending or not from line width. \draw[-{Latex[length=3mm,width=5mm]}] (0,0)--(2,0); ...

3

This is not easy to do with mychemistry. I recommend to use chemfig (which is loaded by mychemistry). It is more far more flexible and I believe the input is more convenient, too. chemfig lets you define own arrow types which can be used here. On texwelt I suggested the following solution for exactly this kind of arrow with chemfig. Here is how it goes. ...

3

Here is a way to do it with laps and stacks: \documentclass{article} \usepackage{tabularx} \usepackage{graphicx} \usepackage{stackengine} \def\RA{\rlap{\scalebox{1.6}{$\rightarrow$}}} \def\DA{\bclap{\scalebox{1.6}{$\downarrow$}}} \def\mystrut{\rule{0ex}{3ex}} \begin{document} \setstackgap{S}{6pt} \begin{tabularx}{\textwidth}{r|c|c|c|c|l} ...

3

With tikz \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} \newcommand\myarrow[1][3em]{% \tikz\draw[thick,-Bar] (0,0) -- (#1,0); } \begin{document} $\myarrow[15em]$ $\myarrow[2em]$ \end{document}

2

You are absolutely right @Johannes_B, something so small can produce so many problems when someone has never used tikz. Thank you all for your time and effort. I will also post the updated version just in case that someone might occur the same error as me. \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows,automata} ...

2

Maybe, if I understand well, what you want exists in the mdsymbol font: Look at this thread to have details on how to make it available without having all your math symbols typeset with the mdsymbol font.

2

Something like this? \documentclass{standalone} \usepackage{tikz} \newcommand{\LoopFunction}[1]{ \tikz \node {${\displaystyle #1}$} edge [in=30,out=60,loop] node {} (); } \begin{document} \LoopFunction{A} \end{document} EDIT: Please note that what follows is not an elegant way at all. I manually adjusted the angle of the incoming/leaving portion of ...

2

Turning: already loading the bending library turns the arrow in the right direction. Resizing: You can change the size via an arrow keys option, such as >={LaTeX[length=4pt]}. Bending: You could bend the arrow to better fit the circle shape. All requires at least TikZ 3.0. To compare: \documentclass{article} \usepackage{tikz} ...

2

The extra space is added according to the inner sep and outer sep amounts. If you zero them out the image is tightly packed inside the node thanks to inner sep=0 and moreover the arrows start right from the border thanks to outer sep=0 \documentclass[tikz]{standalone} \usepackage{mwe} % For dummy images \usetikzlibrary{positioning} \begin{document} ...

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