to_pdf readme
This commit is contained in:
parent
9597580185
commit
63b73bc745
28
README.md
28
README.md
@ -314,6 +314,34 @@ go install github.com/danielmiessler/yt@latest
|
|||||||
|
|
||||||
Be sure to add your `YOUTUBE_API_KEY` to `~/.config/fabric/.env`.
|
Be sure to add your `YOUTUBE_API_KEY` to `~/.config/fabric/.env`.
|
||||||
|
|
||||||
|
### `to_pdf`
|
||||||
|
|
||||||
|
`to_pdf` is a helper command that converts LaTeX files to PDF format. You can use it like this:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
to_pdf input.tex
|
||||||
|
```
|
||||||
|
|
||||||
|
This will create a PDF file from the input LaTeX file in the same directory.
|
||||||
|
|
||||||
|
You can also use it with stdin which works perfectly with the `write_latex` pattern:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
echo "ai security primer" | fabric --pattern write_latex | to_pdf
|
||||||
|
```
|
||||||
|
|
||||||
|
This will create a PDF file named `output.pdf` in the current directory.
|
||||||
|
|
||||||
|
### `to_pdf` Installation
|
||||||
|
|
||||||
|
To install `to_pdf`, install it the same way as you install Fabric, just with a different repo name.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
go install github.com/danielmiessler/fabric/to_pdf/to_pdf@latest
|
||||||
|
```
|
||||||
|
|
||||||
|
Make sure you have a LaTeX distribution (like TeX Live or MiKTeX) installed on your system, as `to_pdf` requires `pdflatex` to be available in your system's PATH.
|
||||||
|
|
||||||
## Meta
|
## Meta
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user