forked from jackyzha0/quartz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PUSH NOTE : Typescript.md * PUSH NOTE : Svelte.md * PUSH NOTE : Snippets Index.md * PUSH NOTE : CODE-1 Read File to String in rust.md * PUSH NOTE : Rust.md * PUSH NOTE : Programming.md * PUSH NOTE : Flutter & Dart.md * PUSH NOTE : Trig diagrams and Latex Code.md * PUSH NOTE : Trigonometry Index.md * PUSH NOTE : Creating Trigonometry SVGs with Latex.md * PUSH ATTACHMENT : triangles 1.svg * PUSH NOTE : Shortcuts.md * PUSH NOTE : More Functions.md * PUSH NOTE : Math Index.md * PUSH NOTE : Math Constellation Game Ideas.md * PUSH NOTE : Logarithms.md * PUSH NOTE : Important Formulas.md * PUSH NOTE : Formulas.md * PUSH NOTE : Exponents.md * PUSH NOTE : Drawing Functions & Back Again.md * PUSH NOTE : Absolute Values in Algebra.md * PUSH NOTE : Completing The Square.md * PUSH NOTE : Big Unorganized Math Notes.md * PUSH NOTE : C++ Index.md * PUSH NOTE : ∆-Landing.md * PUSH NOTE : Using Quartz & Github Publisher.md * PUSH NOTE : Textbook Collection.md * PUSH NOTE : My Big Huge Collection of Links.md * PUSH NOTE : My Obsidian Plugins.md * PUSH NOTE : My Obsidian Setup.md * PUSH NOTE : Linguistics.md * PUSH NOTE : Japanese.md * PUSH NOTE : Goals.md * PUSH NOTE : Domains.md * PUSH NOTE : digital garden resources.md * PUSH NOTE : Books.md * DELETE FILE : content/Learning/Math/Triganometry/Trig diagrams and Latex Code.md * DELETE FILE : content/Learning/Math/Triganometry/Triganometry Index.md
- Loading branch information
1 parent
28dabe1
commit 60c9c39
Showing
6 changed files
with
122 additions
and
7 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
|
||
## cin.ignore() | ||
If you mix cin and getline(), you need to include cin.ignore() before getline() | ||
|
||
```cpp | ||
cin >> age; | ||
cin.ignore(); | ||
getline(cin, full_name); | ||
``` |
This file was deleted.
Oops, something went wrong.
56 changes: 56 additions & 0 deletions
56
content/Learning/Math/Trigonometry/Creating Trigonometry SVGs with Latex.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
publish: true | ||
tags: | ||
- math/Trigonometry | ||
- guide | ||
--- | ||
|
||
After spending way too much time I figured out how to create triangles with tikz like the following! | ||
|
||
|
||
|
||
![[triangles 1.svg|triangles 1.svg]] | ||
|
||
|
||
- Install MikTex and Texstudio | ||
- Navigate to Texstudio's folder and open up the texstudio.ini | ||
- Add the following line under the `[texmaker]` block | ||
- `Tools\Commands\dvi2svg-no-fonts="txs:///latex | dvisvgm --no-fonts --page=1- --output=%%f-%%3p %.dvi"` | ||
- Use this to embed (web safe) fonts instead of paths: `Tools\Commands\dvi2svg="txs:///latex | dvisvgm --font-format=woff --page=1- --output=%%f-%%3p %.dvi"` | ||
- Now open up texstudio and create a .tex file with the property standalone | ||
- `\documentclass[12pt, tikz, border=5mm]{standalone}` at the top of the file | ||
- Now go to **Tools->User->dvi2svg** | ||
- Now open the folder with your .tex file and you'll find your .svg file! | ||
- I further went in and edited the width and height to be 500px since its tiny by default | ||
|
||
There you go! | ||
|
||
|
||
The latex code for this triangle: | ||
```latex | ||
\documentclass[12pt, tikz, border=5mm]{standalone} | ||
\usetikzlibrary{angles, | ||
quotes} | ||
\usepackage{siunitx, xcolor} | ||
\begin{document} | ||
\nopagecolor | ||
\begin{tikzpicture}[ | ||
my angle/.style = {draw, fill=teal!30, | ||
angle radius=7mm, | ||
angle eccentricity=1.7, | ||
right, inner sep=1pt, | ||
font=\footnotesize} | ||
] | ||
\draw (0,0) coordinate[label=below:$A$] (a) -- | ||
(4,0) node[midway,below] {$a$} coordinate[label=below:$C$] (c) -- | ||
(0,4) node[midway,above] {$b$} coordinate[label=above:$B$] (b) -- cycle node[left,midway] {$c$}; | ||
\pic[my angle, "$\SI{45}{\degree}$"] {angle = b--c--a}; | ||
\draw (0,.8) (0,.4)-|(.4,0); | ||
\end{tikzpicture} | ||
\end{document} | ||
``` | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
publish: true | ||
--- | ||
|
||
## Basic triangle jargon | ||
|
||
[[Creating Trigonometry SVGs with Latex|Creating Trigonometry SVGs with Latex]] |