Linked Questions

3
votes
2answers
561 views

Rotating rectangle node in tikz without getting the right angle [duplicate]

I'm new to tikz and I am trying to make a perpendicular angle mark on a triangle by \path[clip](C)--($(B)!(A)!(C)$)--(A); and \node[draw=black, rectangle,inner sep=0pt, outer sep=0pt, minimum size=...
57
votes
4answers
28k views

How to draw a line passing through a point and perpendicular to another?

I'm having a bit of a headache right now as I can't draw this basic figure: A straight line goes through points A and B. Another line is perpendicular to AB and goes through an arbitrary point P. I ...
24
votes
5answers
5k views

Drawing of triangle and coordinate system using TikZ

I am using TikZ for the first time, and I am experiencing some difficulty getting what exactly I want it to display. I am trying to draw the following picture: Here is the code (I know it is not that ...
14
votes
6answers
3k views

How do I draw a little red square to label my right triangle?

The sample code: \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw ( 0 , 0 ) coordinate (A) -- ( 4 , 0 ) coordinate (C) -- ( 0 , 3 ) coordinate (B) -...
13
votes
3answers
1k views

Difference between -| and |- in TikZ

Based on this tutorial, I understand symbols -| and |- are used to draw perpendicular lines. But I wish to understand the difference between the two. There are the following related questions: ...
13
votes
4answers
5k views

Mark 90 degree angle in tikz in german convention

What's the best way to denote a 90 degree angle with german convention like on the following picture in tikz: Suppose I start with something like this: \documentclass{article} \usepackage{tikz} \...
9
votes
3answers
1k views

indicate a right angle in 3d

The following MWE shows what appears to be a piece of paper folded. I want to indicate that the angle between the dashed lines is right angled by adding a simple square at M, such that the missing ...
11
votes
3answers
722 views

Marking right angles (structuralanalysis)

I'm trying to draw this picture: Until now, I have this, with the help of structuralanalysis package: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{calc} \...
6
votes
1answer
9k views

Adjust position of node label

In the MWE below, how can I get to adjust the position of the node labels? Note that the nodes are defined by dot/.style={circle,inner sep=1pt,fill,label={#1},name=#1} but I cannot figure out how to ...
5
votes
2answers
2k views

How to align a right angle

As you you can see in the following image, a right angle has some space to side BC. How can I fix it and is there any better way to add an right angle? \documentclass{article} \usepackage{tikz} \...
5
votes
1answer
1k views

Right Angle Symbol Alignment with TikZ/Calc

I used a solution from @Jake from this post Insertion of Perpendicular Symbol at Intersection of Two Lines, but the alignment is not quite right. I have my suspicions why, but I don't understand the ...
2
votes
2answers
315 views

How to add perpendicular symbol at desired location

I am trying to draw perpendicular symbol on point where the perpendicular line from O is meeting the line AB. But I am unable to achieve it. I try via simple draw because I use pgfplots (you can see ...
7
votes
1answer
292 views

How filling angle symbol?

In the thread Insertion of perpendicular symbol at intersection of two perpendicular lines, Jake proposed a very useful command to mark a right angle. I tried to color the symbol, but I get only half ...