7
votes
1answer
225 views

pgfplots: Using Sans Serif Fonts for Numbers and Text (not Variables) in Figures and Diagrams

I want to use a sans serif font in figures and diagrams. This also applies to tables (related question). The normal text should remain roman (with serif). Here is the normal way one would try to ...
3
votes
2answers
121 views

Strings and Harps to be drawn

I'd like to draw a picture similar to the hand-drawn one below: With labels $0$, $1$, $\Psi_{L,S}$, $a_1$, $\ell_i + 2\varepsilon$, $\Psi_{L,H}$, $b_1$, $-\varepsilon$, $1 + \varepsilon$, ...
6
votes
4answers
180 views

Multiple underbraces that span overlapping columns in matrix

I want to display the structure of a matrix as shown in the image below: The following code shows the structure of the matrix, without the underbraces: \documentclass{standalone} ...
24
votes
4answers
1k views

A rather difficult ring like picture to be drawn

I desire a figure similar to the following: \documentclass[tikz,margin=10pt]{standalone} \usepackage{mathtools,amssymb} \begin{document} \begin{tikzpicture}[scale=2,transform shape] \draw (1,0) ...
9
votes
1answer
152 views

Measuring align

From what I read it seems that align environments are processed twice: the first time for measuring, the second time for actual typesetting. My question is whether one can get access to these ...
6
votes
2answers
115 views

Autocount and position labels around circular axis

I am trying to mimic a knob on an audio mixing desk in TikZ. So far I have the following: \begin{tikzpicture} \draw[ultra thick] (0,0) circle [radius=0.5]; \foreach \angle/\label in { ...
4
votes
1answer
169 views

Tikz: text containing formulas and symbols following a given curve

I have already been searching for this some time, but unfortunately I cannot find an answer. I am trying to write some text that is following a given curve. As long as I do not use math mode that ...
7
votes
3answers
178 views

Position both math environment and tikz picture in the tabular

\usepackage{tikz} \begin{document} \begin{tabular}[b]{@{}ccc@{}} \begin{tikzpicture}[grow=right,sloped] \tikzstyle{level 1}=[level distance=2cm, sibling distance=2cm] \tikzstyle{level 2}=[level ...
4
votes
1answer
212 views

Using \phantom in subscript with the bayesnet TikZ library

I'm using the bayesnet TikZ library to draw a graphical model. Node variables might have different size, say $v_0$ and $v_{N-1}$ and the result is that some bubbles are bigger than others. I am trying ...
6
votes
3answers
598 views

\everymath, AMS equations, beamer, and tikz not working together

In a beamer document, I have $ expressions embedded in displayed equations (using tikz to make, e.g., colored boxes around some expressions). I put \everymath{\displaystyle} in the preamble so that ...
4
votes
1answer
580 views

tikz markers in a math equation of a node

I realize this is almost certainly impossible; however, I would love to see the TeX wizardry hidden here (and I actually also really desperately want this feature). So I have a tikzpicture, and ...
2
votes
3answers
143 views

Grouping two lines inside align environment to put smth. to the left of them

I have an equation which is alligned at 1st equal sign like this: \begin{align} a &= b + c \nonumber\\ d &= e + f \label{eq1}\\ %this is row 1 g &= h + i \nonumber\\ %this is ...
11
votes
4answers
375 views

Curved arrow describing a step in a mathematical derivation

Is it possible to achieve something like this in LaTeX? I want a curved arrrow pointing from 1st line to the other line and is coupled with an equation number which indicates the equation used. I ...
2
votes
2answers
388 views

Displayed Math in tikz-cd diagrams

I have been using tikz-cd package to produce diagrams however I'm not finding a way to use displayed math within it. My point is that when I use the product sign for instance inside of it, it simply ...
7
votes
1answer
238 views

Diagonal text in diagonal matrix

I have a tridiagonal matrix whose diagonals d_{-1}, d_0, d_1 (thought as vectors) can be written as vector expressions. Is there a way to nicely represent this, e.g. via a matrix which is blank ...
13
votes
3answers
543 views

Repeated division - Converting from base 10 to another base

I am teaching how to convert from one base to another base, however, I can't find a way to do something like this: I know little about Tikz, the only thing I have been able to produce is a simple ...
2
votes
1answer
308 views

How to automatically scale inline TikZ code in subscripts?

I want to use inline TikZ code to create my own subscript symbol. For example something like $V_{\tikz{ \draw [|->] (0,0) -- (2ex,0); }}$ The problem is that it is not scaled. The length of the ...
7
votes
1answer
215 views

How can I keep my TikZ overlay picture on the same page?

I needed to draw squares to highlight submatrices and I found on the internet (perhaps here) a snippet that uses TikZ. By the way I found that if the math expression is at the end of the page, the ...
8
votes
1answer
976 views

TikZ: Controlling text within nodes and placing nodes in text

Need some help working with TikZ. Let me begin by saying that I think TikZ is amazing. I hardly know what I'm doing at this point and yet I've been able to draw some very nice diagrams with it. ...
7
votes
1answer
429 views

Typesetting inline Penrose/Cvitanovic tensor diagrams (birdtracks)

In the 50's, Roger Penrose invented a private graphical notation for tensors, which he later published. Wikipedia has a short description. It's basically a directed graph with some labels on it and ...
9
votes
2answers
466 views

Define a math symbol relative to font size

Idea All characters, including the new defined symbol (here an arrow), should scale related to the current font size, e.g. here 12pt. Implementation I would like to define an arrow similar to here. ...
3
votes
1answer
116 views

Special \boxed environment

My problem is the following: I have a tikz picture: I want those boxes to all have the same height, and I also want them to start completely at the bottom like the box in the top right corner. ...
2
votes
0answers
281 views

TikZ arrows do not draw with pdflatex [closed]

I am using the answer from Arrow between parts of equation in LaTeX. \documentclass{article} \usepackage{tikz} \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};} ...
7
votes
1answer
1k views

Tikz flowchart: center text + math in node

I'm trying to draw a flowchart with TikZ. In one of the decision "diamonds", I have both text and a bit of math between $. \node [decision, below of=buildbid, node distance=1.8cm, aspect=8, minimum ...
19
votes
2answers
4k views

\boxed{}, TikZ and colored equation background

I wonder if someone could provide me with a simple MWE for using TikZ together with \boxed to produce a colored equation background. If possible with rounded corners. I am using \boxed{} inside the ...
2
votes
2answers
699 views

Can I make formulae thicker?

I've just created an SVG version with TikZ and Inkscape from an old PNG version of an image on wikipedia. This is how they look like: You might notice, that the text of the left image is much ...
6
votes
1answer
286 views

As my exponentials in TikZ plot a parabolic style function, do I install CVS version, and how?

I'm very new to LaTeX. I have read Is plotting exponential graphs a known source of bugs in TikZ? and implemented the code Jake supplied and this fixed the current problem. Thanks Jake :). On this ...
2
votes
1answer
911 views

Are mathmode symbols usable within tikz arrays?

I've got a two dimensional array with indices and a one dimensional array with characters. The following code draws the character indicated by the indices, e.g. The char at (0,0) would be "w", the ...
3
votes
1answer
318 views

\nullfont in mathmode

I made some experiments with TikZ like \documentclass{minimal} \usepackage{tikz} \begin{document} \tikz \color{blue} $(a+b)^n$ $n \choose r$; % \tikz Test ; gives nothing \end{document} We get a ...
8
votes
3answers
1k views

use of tikzpicture matrix in align or gather environment

So far I have found using the matrix command in the TikZ package is the only way of drawing a T-shape around the bottom row and middle column of entries in a matrix. I now need to use this matrix in ...
15
votes
2answers
2k views

Common baseline in TikZ and Mathmode [duplicate]

Possible Duplicate: How to align a series of TikZ pictures at the baseline I want to mix my formulas with some TikZ graphics. For example: \documentclass{article} \usepackage{tikz} ...
3
votes
1answer
165 views

imagen beside a math

how I can make me stay in the following way but instead of using $ using the command / begin {align} for me to number the mathematical formulas to reference them later? \begin{center} ...
4
votes
1answer
913 views

Scaling and positioning TikZ figures in equation environments

I am trying to use TikZ figures as part of an equation, but I am only able make either the positioning or the scaling appear correctly. For instance, giving my figures the correct size using ...
3
votes
2answers
528 views

Changing colors of MATH functions and DRAWING lines

My problem is that I want my math functions and drawing illustrations to be in different colors. I want my colors to be defined at the beginning so they will automatically change the color of math and ...
6
votes
1answer
1k views

Tikz - Drawing in the unit circle

I am working on learning how to use tikz for mathematical drawings and I am currently trying to make... well... if you read or typeset the code you will get the idea. If you look at the results the ...
25
votes
4answers
4k views

How to draw arrows between parts of an equation to show the Math Distributive Property (Multiplication)?

there is a part of my paper where I use the distributive property and it's not that clear for the reader to see (I'm using in proposional logic for a proof). The logic equation (part of) is: (l_{1}) ...
10
votes
1answer
619 views

Strange difference in usage of \pgfmathprintnumber

I encountered a strange spacing difference in the following example: \documentclass{article} \usepackage{tikz} \begin{document} number printer inside of fbox with -5e-5: ...
1
vote
1answer
456 views

Math formula changes in tikz environment

I am trying to write a formula in a tikzpicture but it gets changed. The indices for the cumulative product is moved from under the \prod to after. See MWE: \documentclass{beamer} \usepackage{tikz} ...
0
votes
0answers
138 views

How to form braces or brackets used in math formulas around nodes in a TikZ picture? [duplicate]

Possible Duplicate: Adding a large brace next to a body of text I'm trying to create a brace or bracket around two or more nodes within a TikZ picture. Since there are more elements in the ...
8
votes
2answers
2k views

Create a math matrix in TikZ partition lines

I want to draw a math matrix in TikZ, where I can draw helping partition lines. So far I found it pretty simple to just draw a matrix with brackets. \begin{tikzpicture} \matrix [matrix of math ...
5
votes
2answers
1k views

Change math font for figures only (including TikZ environments within figures)

In my document, I want the main text to be in the times font, and the math to be in the txfonts font. This I can do with the help of the txfonts package. However, I want everything that shows up in my ...
1
vote
1answer
365 views

Missing $ error

Why doesn't this code compile? % Oxidation and reduction % Author: Arne Röhrs % Note that two compilations are necessary. \documentclass{article} \usepackage{tikz} ...
2
votes
1answer
398 views

Put long formulas on new line/pgf tikz?

Sometimes I have to work with long formulas that can (or I want) not be split over two lines. I'm trying to write a macro that sent the formula at the new line if the formula would go over the margin. ...
9
votes
3answers
3k views

Commutative diagram with rounded arrows

I want to draw a diagram which has some arrows between to points A and B. First arrow goes straight from A to B and above it should be a $\Psi$. Second arrow goes in a round way from A to B and above ...
2
votes
1answer
2k views

Bad math delimiter in tikz tree

I'm trying to diagram an extensive form game using TikZ trees. The following code generates errors at compile time. Specifically, it complains about missing $'s and a bad math delimiter. I've been ...
5
votes
3answers
899 views

How to draw protocol interaction using tikzpicture

I have a question on using the tikzpicture package. I have a protocol interaction on which two participants want to exchange some numbers, say α and β. I need bilateral arrows, and on top of it would ...
37
votes
2answers
2k views

Is there a tikz style for putting math in all nodes?

I'm finally trying out TikZ and am already infected with its programmatic philosophy. I would like to be able to do something like every node/.style = {math mode} (which is wrong) so that I can ...
23
votes
2answers
2k views

Getting a tikz picture to have an equation number

I make a lot of commutative diagrams and am trying to switch to Tikz from amcd,diagrams, etc. I often have to refer to these diagrams in the text and would rather have them as equations (i.e. with and ...