Linked Questions

2
votes
0answers
161 views

How to set node label position with anchor [duplicate]

Actually, I write some notes about programming with Tikz and reading Jake's answer to this question, I asked myself how tikz places the "node label". I would like to reproduce: \begin{tikzpicture}[...
27
votes
5answers
5k views

How can I force TikZ pin angle?

I'm trying to draw a resultant force diagram like so: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) -- (90:2.7) -- ++ (-13:12) node[shape=...
37
votes
2answers
40k views

How to rotate a TikZ label

I need to place information below and to the right of a grid. I was not able to rotate the label text of a node. I ended up using \rotatebox, but is there a pure TikZ solution? \documentclass{...
9
votes
3answers
5k views

Vertical space inside a TikZ node

I am trying to insert some vertical space inside a node (So it will be filled later). \node [draw,rounded corners,minimum height=5cm] (node1) {\underline{Case 1}}; This is giving this: However, I ...
9
votes
1answer
4k views

Tikz: adjusting pin anchor

I was looking for a possibility to adjust the anchor of the text of a pin. Tikz does not allow this out of the box. This question was already asked on the mailing list pgf-users@lists.sourceforge....
9
votes
3answers
528 views

swap a label to inner corner

I have below code section, the label "B" is displayed at the outside of the corner, how can we swap it to the inner corner? or any other good suggestion to label it? \documentclass{standalone} \...
7
votes
3answers
2k views

Triangle with text in it

I have an automaton in tikz and would like to have some text within a triangle of the right size. How can I do that efficiently? I have tried using a regular polygon, but I can't shrink it to the ...
6
votes
2answers
1k views

Specific tikz shape with parameters

The idea is to define several shapes useful for example in control schemes. For example a generic shape for conversion could be defined instead of creating one shape for each conversion. The code ...
5
votes
1answer
3k views

Putting text at bottom of ellipse in a tikz picture

I have the following code: \documentclass[journal]{IEEEtran} \usepackage{tikz} \usetikzlibrary{shapes,backgrounds} \begin{figure}[ht] \begin{tikzpicture} \node[rounded corners, draw, fill=gray!20 ,...
2
votes
1answer
2k views

Multiple labels with “node label”

I make some experiments with \pgfkeys after the Qrrbrbirlbel's answer to this question The first try is : \documentclass{scrartcl} \usepackage{tikz} \begin{document} \pgfkeys{/swatch/.code={\node[...
3
votes
1answer
798 views

mirror node shape

I have to draw a diagram and would like to fit it on a page, thus i have not much space. Therefore I have to "stack" some gates, however it would be beneficial if I could put the outputs of the logic ...
5
votes
1answer
497 views

Circuit Node with Text near Input and Output

I'd like to draw a user defined a simple node shape in combination with the circuit library. The node has one input and one output. I'd like to put text inside the node shape near the input and output....
3
votes
1answer
156 views

Artificial displacement between a point and its coordinate using the coordinate command

What is the default separation between a point and its label when using thecoordinate command? In the following code, I plot some dots on a grid using label option and "." to typeset the dot. The dot ...
3
votes
1answer
150 views

Not able to align nodes properly

I have the following code: \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{geometry} \geometry{a4paper} \usepackage{tikz} \usetikzlibrary{matrix} \usetikzlibrary{calc} \...