-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enlarge narrow angles #7
Comments
Hi, Mciura! Thank you, this is a great idea. It can be done by hand now (or by adding some simple macro, that would draw resized angle instead of ordinary one), but I'd rather automate this. I guess, the right method to implement this feature is by changing the way angles are drawn. Currently, they are drawn one by one, and there's no way of knowing in advance which one has adjacent angles and which one hasn't. So, it would be adequate to define all the angles first, making a list of them, then automatically compose all the blocks of adjacent angles and then draw these blocks of adjacent angles resized accordingly (maybe it would also be good to downscale larger angle blocks a little). I'll try to do it in the near future. |
@mciura And the first version is here https://github.com/jemmybutton/byrne-euclid/commit/ff094da5aadd00291eb990986431d1ac857c6eba
one should type
I'll play a little with the compensation function (now it's kind of a random thing |
There's angle size compensation everywhere in the book now https://github.com/jemmybutton/byrne-euclid/commit/f38d6aaf0bdd858f439bcf97b6b8637468bb7971. It may require some tweaking, but in general everything seems to work ok. |
Privet, Sergey. This is not a bug, just a suggestion how to improve your excellent edition. You might consider increasing the length of the sides in narrow acute angles. To see what I mean, please compare the yellow and blue angles on page 32 of byrne_context.pdf with their equivalents on Byrne's page 4: https://archive.org/stream/firstsixbooksofe00eucl#page/4/mode/2up
I attach an image I made with a simple formula (the formula is copied from my XeLaTeX code so the variable names probably do not match yours):
\pgfmathgreater{\angle}{60}
\pgfmathifthenelse
{\pgfmathresult}
{\sidelength}
{\sidelength * (90 - \angle) / 60}
Caveat: you will probably want to keep the non-scaled way of displaying for adjacent angles that share their sides.
![Proposition 1.4](https://user-images.githubusercontent.com/1486557/30406585-fd0cfbf8-98f2-11e7-8a5e-bb43ff293a80.png)
The text was updated successfully, but these errors were encountered: