Reputation
316
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 10
Newest
 Curious
Impact
~5k people reached

  • 0 posts edited
  • 1 helpful flag
  • 89 votes cast
Jul
15
comment TikZ: Draw rectangular triangle by raising a perpendicular on the hypotenuse
@cfr: Right. I had the hope that the calc library would also do the job, since there are some nice commands which feel quite close.
Jul
15
accepted TikZ: Draw rectangular triangle by raising a perpendicular on the hypotenuse
Jul
15
comment TikZ: Draw rectangular triangle by raising a perpendicular on the hypotenuse
@cfr: I've added an attept for an explanation the question.
Jul
15
revised TikZ: Draw rectangular triangle by raising a perpendicular on the hypotenuse
added 314 characters in body
Jul
15
comment TikZ: Draw rectangular triangle by raising a perpendicular on the hypotenuse
I got many answers and I'm figuring which one I should accept. Your update comes quite close to what I was hoping for. However, at the moment the constructed coordinate has the name (intersection-1) and not (C). I have to confess that I don't understand the let ... parts of your code. Would you mind explaining a little bit what's going on there? And could you rename the coordinate into (C)? Thank you!
Jul
15
revised TikZ: Draw rectangular triangle by raising a perpendicular on the hypotenuse
briefly explain your changes (corrected spelling, fixed grammar, improved formatting)
Jul
14
comment TikZ: Draw rectangular triangle by raising a perpendicular on the hypotenuse
Thank you for this answer. According to en.wikipedia.org/wiki/Geometric_mean_theorem the name is right triangle altitude theorem or geometric mean theorem. Actually, this is the kind of solution which I wanted to exclude by "without doing any coordinate calculations by hand".
Jul
14
awarded  Curious
Jul
14
awarded  Nice Question
Jul
13
comment TikZ: Draw rectangular triangle by raising a perpendicular on the hypotenuse
Wow, thanks. I tried it, and it works. However, I have no idea what the line \draw (A) let \p1... does. Would you mind explaining that line a little bit?
Jul
13
comment TikZ: Draw rectangular triangle by raising a perpendicular on the hypotenuse
Thank you! Yes, the manual clipping isn't that great. Would it be possible to restrict the circle to the upper half circle? After that (and with the px path short enough), the automatic clipping should be fine I guess.
Jul
13
awarded  Commentator
Jul
13
comment TikZ: Draw rectangular triangle by raising a perpendicular on the hypotenuse
@Sigur: I've played around a bit with the intersection, but it felt cumbersome and the (invisible) helper paths unnecessarily increased the borders of my tikzpicture. I hope for a solution using coordinate computations only (maybe by introducing an auxiliary point like the center of the circle).
Jul
13
comment TikZ: Draw rectangular triangle by raising a perpendicular on the hypotenuse
@cfr: I don't think so: Note that X is not the center of the circle. It's just some arbitary point on the line segment AB.
Jul
13
asked TikZ: Draw rectangular triangle by raising a perpendicular on the hypotenuse
May
18
asked \input with wildcards (regex) in the file name
Apr
24
accepted Switch between different output versions compiled from the same LaTeX source
Apr
19
comment Switch between different output versions compiled from the same LaTeX source
@anderstood: I have in my file the lines \usepackage{ifthen} and \newboolean{var}. If I compile this with 'pdflatex \def\var{yes}\input' (or pdflatex '\def\var{true}\input', then var seems still to be set to false.
Apr
19
comment Switch between different output versions compiled from the same LaTeX source
@cfr: It's not about a draft version. I would like to control from the command line to include certain parts of the document or not.
Apr
19
comment Switch between different output versions compiled from the same LaTeX source
@DavidCarlisle: Thank you, that is easier than I thought. I'm declaring my variable internally via \newboolean{variable}, which needs the package ifthen. Is is also possible to assign such a variable a value from the command line?