-
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.
clean repo for latex-cli (flashcards moved to other repo)
- Loading branch information
Showing
3 changed files
with
49 additions
and
71 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 |
---|---|---|
@@ -1,9 +1,30 @@ | ||
Command-line flashcard tool | ||
# Display LaTeX in the terminal | ||
|
||
# Dependencies | ||
Generate an image from a LaTeX code and displays it in the terminal. | ||
|
||
## Example | ||
|
||
 | ||
|
||
## Dependencies | ||
|
||
- pdflatex | ||
- imagemagick | ||
- imgcat (for OS X users) / tycat for Linux users but not supported yet (make sure imgcat/tycat is in path) | ||
eg for imgcat in iterm2 i had to add | ||
export PATH=/Users/username/.iterm2:$PATH | ||
- imgcat | ||
|
||
## Note | ||
|
||
The `imgcat` package works with iTerm2 (macOS) or with tmux. Could look into the `tycat` package to display images on Linux. | ||
|
||
In iTerm2, I had to do `export PATH=/Users/username/.iterm2:$PATH` after installing `imgcat`. | ||
|
||
The size and quality of the generated images can be adjusted in the code via the parameters `density`, `quality` and `resize`. | ||
|
||
## Todo | ||
|
||
- Add an option to just generate the image without displaying it | ||
- Add an argument parser to play with the parameters for generating the image | ||
- Add an option to include LaTeX packages (eg. to generate tables, plots, figures...) | ||
- Add Linux support for image display | ||
- Options to reuse previous command or correct it | ||
- Support for new commands (`\R`, `\f` ...) |
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