Skip to content

Commit 8ca9e53

Browse files
authored
Create README.md
1 parent 6af3960 commit 8ca9e53

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

README.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
## `convert_chatgpt_formula_to_gist`
2+
3+
> [English](README.md) [Korean](README.ko.md)
4+
5+
### summary
6+
7+
- Collectively transform the formula of Chatgpt to the formula of gist
8+
- [src/making_formula.py](/src/making_formula.py)
9+
10+
### How to use
11+
12+
```
13+
python making_formula.py formula.txt
14+
```
15+
16+
- 'formula.txt' is a text file containing formal information. (Korean is UTF-8 character-set)
17+
18+
```
19+
python making_formula.py formula.txt
20+
원본: O = 2R \cdot \sin\left(\frac{\pi}{8}\right)
21+
변환: [![equation](https://latex.codecogs.com/png.latex?O%20%3D%202R%20%5Ccdot%20%5Csin%5Cleft%28%5Cfrac%7B%5Cpi%7D%7B8%7D%5Cright%29)](#)
22+
--------------------------------------------------------------------------------
23+
원본: O = 2r \cdot \tan\left(\frac{\pi}{8}\right)
24+
변환: [![equation](https://latex.codecogs.com/png.latex?O%20%3D%202r%20%5Ccdot%20%5Ctan%5Cleft%28%5Cfrac%7B%5Cpi%7D%7B8%7D%5Cright%29)](#)
25+
--------------------------------------------------------------------------------
26+
원본: O = 2R \cdot \sin\left(\frac{\pi}{8}\right)
27+
변환: [![equation](https://latex.codecogs.com/png.latex?O%20%3D%202R%20%5Ccdot%20%5Csin%5Cleft%28%5Cfrac%7B%5Cpi%7D%7B8%7D%5Cright%29)](#)
28+
--------------------------------------------------------------------------------
29+
원본: O = 2r \cdot \tan\left(\frac{\pi}{8}\right)
30+
변환: [![equation](https://latex.codecogs.com/png.latex?O%20%3D%202r%20%5Ccdot%20%5Ctan%5Cleft%28%5Cfrac%7B%5Cpi%7D%7B8%7D%5Cright%29)](#)
31+
--------------------------------------------------------------------------------
32+
원본: R = \frac{O}{2 \cdot \sin\left(\frac{\pi}{8}\right)}
33+
변환: [![equation](https://latex.codecogs.com/png.latex?R%20%3D%20%5Cfrac%7BO%7D%7B2%20%5Ccdot%20%5Csin%5Cleft%28%5Cfrac%7B%5Cpi%7D%7B8%7D%5Cright%29%7D)](#)
34+
--------------------------------------------------------------------------------
35+
원본: r = \frac{O}{2 \cdot \tan\left(\frac{\pi}{8}\right)}
36+
변환: [![equation](https://latex.codecogs.com/png.latex?r%20%3D%20%5Cfrac%7BO%7D%7B2%20%5Ccdot%20%5Ctan%5Cleft%28%5Cfrac%7B%5Cpi%7D%7B8%7D%5Cright%29%7D)](#)
37+
--------------------------------------------------------------------------------
38+
원본: R = r \cdot \frac{\tan\left(\frac{\pi}{8}\right)}{\sin\left(\frac{\pi}{8}\right)}
39+
변환: [![equation](https://latex.codecogs.com/png.latex?R%20%3D%20r%20%5Ccdot%20%5Cfrac%7B%5Ctan%5Cleft%28%5Cfrac%7B%5Cpi%7D%7B8%7D%5Cright%29%7D%7B%5Csin%5Cleft%28%5Cfrac%7B%5Cpi%7D%7B8%7D%5Cright%29%7D)](#)
40+
--------------------------------------------------------------------------------
41+
원본: r = R \cdot \frac{\sin\left(\frac{\pi}{8}\right)}{\tan\left(\frac{\pi}{8}\right)}
42+
변환: [![equation](https://latex.codecogs.com/png.latex?r%20%3D%20R%20%5Ccdot%20%5Cfrac%7B%5Csin%5Cleft%28%5Cfrac%7B%5Cpi%7D%7B8%7D%5Cright%29%7D%7B%5Ctan%5Cleft%28%5Cfrac%7B%5Cpi%7D%7B8%7D%5Cright%29%7D)](#)
43+
--------------------------------------------------------------------------------
44+
```
45+
46+
### Step 1. Generating a formula
47+
48+
- Extracted in the form of 'formula' generated by ChatGPT
49+
- example
50+
```
51+
\[
52+
O = 2R \cdot \sin\left(\frac{\pi}{8}\right)
53+
\]
54+
```
55+
56+
### Step 2. Create Image Link
57+
58+
- gist formula
59+
- Change formula to image link.
60+
- example
61+
```
62+
[![equation](https://latex.codecogs.com/png.latex?O%20%3D%202R%20%5Ccdot%20%5Csin%5Cleft%28%5Cfrac%7B%5Cpi%7D%7B8%7D%5Cright%29)](#)
63+
```
64+
65+
- You can change all of the formulas in the file '*.txt'

0 commit comments

Comments
 (0)