Skip to content

Commit

Permalink
[PUBLISHER] Merge #25
Browse files Browse the repository at this point in the history
* 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
bluerosegarden authored Jan 30, 2024
1 parent 28dabe1 commit 60c9c39
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 7 deletions.
46 changes: 46 additions & 0 deletions Attachments/triangles 1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions content/Learning/C++/C++ Index.md
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);
```
7 changes: 0 additions & 7 deletions content/Learning/Math/Triganometry/Triganometry Index.md

This file was deleted.

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}
```

7 changes: 7 additions & 0 deletions content/Learning/Math/Trigonometry/Trigonometry Index.md
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]]

0 comments on commit 60c9c39

Please sign in to comment.