Hot answers tagged

5

I give every cell a unique label that looks like this: <number_of_vector>x<number_of_cell_in_vector> e.g. 1x1, 2x3, 4x1 This label can be reused in a new tikzpicture, if I add the remember picture option. Now it is possible to draw arrows. \documentclass[11pt]{memoir} \usepackage{tikz} %%% GRAPHIQUE \newcommand{\largeto}{\mbox{\LARGE${}\...


4

For the arrow you require, you don't have to define anything. It's already there and is called hook'. \documentclass{article} \usepackage{tikz} \usetikzlibrary{cd} \begin{document} \begin{tikzcd} A \ar[r,hook] & B \\ C \ar[r,hook'] & D \\ \end{tikzcd} \end{document} You can define your own arrows easily as specializations of the ...


3

You can use arrows.meta library and looseness key to control the distance from the control point to the two end points as said in the pgfmanual. \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{arrows.meta} \usepackage[tightpage,active]{preview} \PreviewEnvironment{tikzpicture} \begin{document} \begin{center} \begin{tikzpicture} \node (a) at (0,0) ...


3

You can increase the link bulge factor with e.g. \ganttlinkedbar[link bulge=4]{C}{2016-08-05}{2016-08-25}. The default value is 0.4. \documentclass[tikz]{standalone} \usepackage{pgfgantt} \begin{document} \begin{ganttchart}[ y unit chart = 0.65cm, y unit title = 0.75cm, x unit=0.5mm, time slot format=isodate, ]{2016-05-01}{2016-12-31} ...


3

Since you're using the command \tikz, I suppose this is going to appear inside of the regular document, along with other text. In that case, I don't think you need Tikz for everything. You can use a simple list and change the bullet with the arrow you created. Output Code \documentclass{article} \usepackage{tikz} \newcommand\mrarrow{% \tikz[yshift=....


2

I suggest you use a custom array environment to stack the word/arrow/explanation triplets. Observe the use of the \color macro to set colors. \documentclass{beamer} \usepackage{mathtools} % for "\mathclap" macro \newcommand\stacktab[2]{% $\begin{array}[t]{@{}c@{}} \text{#1} \\ \uparrow \\ \mathclap{#2} \end{array}$} \newcommand\uIN{\upsilon^{}_{\...


2

In order to make the on background layer do what you want, you just need to add draw=none to the options for the relevant edge from parent. In this example, I've also replaced the deprecated arrows library with the current arrows.meta and adjusted the syntax appropriately. \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{arrows.meta,backgrounds} ...


2

Like this? Code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{smartdiagram} \usepackage{tikz} \usetikzlibrary{arrows.meta, positioning} \begin{document} \begin{tikzpicture}[auto] \tikzset{ mynode/.style={rectangle,rounded corners, draw=gray, top color=white, bottom color=teal!50!gray,very thick, inner sep=1em,...


2

We can use the fact, that dimensions of cells are known. The arrows are a bit deeper than the central line, but they probably have S_c's over the, hence the effect of neglecting vertical dimension of lines in matrix is compensated. The last matrix is in the new line, because \textwidth is too small. \documentclass[11pt]{memoir} \usepackage[utf8]{inputenc} \...


1

To gain control over the spacing, you can use the \columns environment provides by beamer: \documentclass[xcolor={dvipsnames,svgnames}]{beamer} \usetheme{CambridgeUS} \usecolortheme{spruce} \usepackage[english,greek]{babel} \usepackage{ucs} \usepackage[utf8x]{inputenc} %\usepackage{kerkis} \usepackage{booktabs} \usepackage{tikz} \usepackage{booktabs,...


1

A TikZ answer; you could personalize the appeareance passing TikZ style commands in the optional argument. \documentclass{article} \usepackage{tikz} \newcommand{\myarrow}[1][]{% \begin{tikzpicture}[#1]% \draw (0,0.7ex) -- (0,0) -- (0.75em,0); \draw (0.55em,0.2em) -- (0.75em,0) -- (0.55em,-0.2em); \end{tikzpicture}% } \begin{document} \myarrow ...


1

All I did was modify your \printmatrix macro to wrap the tikzpicture as follows: \raisebox{-2.5\dimexpr\cellsize cm}{...} Here is the MWE. \documentclass[11pt]{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{microtype} \usepackage[dvips]{graphicx} \usepackage{xcolor} \usepackage[french]{babel} \usepackage{amsmath} \usepackage{...


1

I've ended up using a TikZ-based solution, as it seems that extensible symbols are just not going to give reliably good results. The following makes something quite close to xrightleftharpoons, with a slightly different format: \usepackage{tikz} \usetikzlibrary{arrows.meta} \def\dar#1#2{% \setlength{\dimen9}{\maxof{\widthof{$\displaystyle #1$}}{\widthof{$\...


1

The construction of the squares might be simplified, but that's another matter. You can use baseline for setting the placement with respect to the baseline. \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} % the following two are just for the example \usepackage[margin=1cm]{geometry} \usepackage{lipsum} %%%%% \newcommand{\cellsize}{0.5} \...


1

I think there is an easier way to create your matrix, here's a possible solution. You could even make it further automatic, by setting a counter, but I thought you might want to change the command. Output Code \documentclass[11pt]{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{microtype} \usepackage[dvips]{graphicx} \usepackage{...


1

\documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \resizebox{\textwidth}{!}{ \begin{tikzpicture} \draw [->,>=stealth',ultra thick] (0,0)--(2,0)node[pos=1,right] { \begin{tabular}{l} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam aliquet lorem nec \\turpis auctor placerat. In at nisi ...



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