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=...
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 ...
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 ...
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) -...
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: ...
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} \...
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 ...
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} \...
9k views

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 ...
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} \...
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 ...