-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
92 additions
and
3 deletions.
There are no files selected for viewing
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,48 @@ | ||
# About the figures | ||
|
||
|
||
## Old figures: omnigraffle | ||
|
||
Old figures are made with omnigraffle and exported to pdf and png. | ||
Latex output uses pdf. | ||
|
||
The problem with these is that keeping the same look and feel over all of these is very complicated. | ||
|
||
## New figures: asciiart -> svg -> pdf | ||
|
||
Using asciiart allows me (Guille) to keep the same look and feel in the figures. | ||
|
||
### Editing your figures online | ||
|
||
The canonical editor is: | ||
|
||
https://ivanceras.github.io/svgbob-editor/ | ||
|
||
You can help yourself using https://asciiflow.com/#/ but it is not guaranteed that you will have the same output | ||
|
||
### Converting them to pdf | ||
|
||
Converting ascii art to pdf requires two command line tools: `aasvg` and `rsvg-convert` which I installed as follows in Mac: | ||
|
||
```bash | ||
npm install -g aasvg | ||
sudo apt-get install librsvg2-bin | ||
``` | ||
If the previous apt-get does not work | ||
|
||
Notice that you should also install svgbob | ||
|
||
``` | ||
brew install librsvg | ||
brew install svgbob | ||
``` | ||
|
||
Figure source code is asciiart and named `*-ascii.txt`. | ||
We then convert them to svg using the following commands. | ||
|
||
**TIP: Use the makefile ;)** | ||
|
||
``` | ||
aasvg < x.txt > x.svg | ||
rsvg-convert -f pdf -o x.pdf x.svg | ||
``` |
3 changes: 3 additions & 0 deletions
3
Part0-Preamble/1-ObjectStructure/figures/classformat-ascii.txt
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,3 @@ | ||
+20 -------- 16 +15 ------------ 0 + | ||
| object format | number of fields | | ||
+---------------+------------------+ |
Binary file not shown.
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
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