-
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.
Added troubleshooting section to the Usage Guide.
- Loading branch information
1 parent
d71bc66
commit 6594103
Showing
8 changed files
with
285 additions
and
2 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
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
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> | ||
 | ||
</div> |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
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