Skip to content

Commit

Permalink
Added troubleshooting section to the Usage Guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslrodri committed Oct 10, 2024
1 parent d71bc66 commit 6594103
Show file tree
Hide file tree
Showing 8 changed files with 285 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ Contributions are welcome from everyone! Whether you're reporting bugs, submitti

All notable changes to this project are presented below.

## v0.5.6

**✨ Improvements**

- Docs: Added troubleshooting section to the Usage Guide.

## v0.5.5

**🐞 Bug Fixes**
Expand Down
6 changes: 6 additions & 0 deletions docs/about/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
All notable changes to this project are presented below.

## v0.5.6

**✨ Improvements**

- Docs: Added troubleshooting section to the Usage Guide.

## v0.5.5

**🐞 Bug Fixes**
Expand Down
32 changes: 32 additions & 0 deletions docs/usage/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## Troubleshooting pdflatex PATH Issues

If you encounter issues with the `pdflatex` PATH and receive the following error message:

<div class="result" style="padding-right: 0;">
<div class="log-output">
/bin/sh: 1: pdflatex: not found
</div>
</div>

First, ensure that the `pdflatex` command is accessible in your IDE environment. In some cases, you may need to add `pdflatex` to your system's PATH, or specify the `~` symbol before the command.

If you continue to experience issues, you can use the `-tp=<tex_program>` option to specify a custom `pdflatex` PATH. Here's an example:

```python
# Replace it for the path
PDF_LATEX_PATH = r"C:\Users\lucas\AppData\Local\Programs\MiKTeX\miktex\bin\x64\pdflatex.exe"
```

```latex
%%tikz -as=tikz -t=pgfplots -nt -tp="$PDF_LATEX_PATH"
\begin{axis}[
xlabel=$x$,
ylabel={$f(x) = x^2 - x + 4$}
]
\addplot {x^2 - x + 4};
\end{axis}
```

<div class="result" markdown>
![Another quadratic formula](../assets/tikz/another_quadratic.svg)
</div>
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ nav:
- Usage guide:
- Usage as IPython Magics: usage/as-magic.md
- Usage as a Python package: usage/as-package.md
- Troubleshooting: usage/troubleshooting.md
- Additional options: arguments.md
- API reference: api.md
- About:
Expand Down
240 changes: 239 additions & 1 deletion notebooks/GettingStarted.ipynb

Large diffs are not rendered by default.

Binary file modified notebooks/outputs/a_dot.pdf
Binary file not shown.
Binary file modified notebooks/outputs/angle.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "jupyter-tikz"
version = "0.5.5"
version = "0.5.6"
description = "IPython Magics for rendering TeX/TikZ in Jupyter Notebooks"
license = "MIT"
authors = ["lucaslrodri"]
Expand Down

0 comments on commit 6594103

Please sign in to comment.