Graphics, Figures & Tables\psline doesn't draw anything

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
zaaz
Posts: 2
Joined: Sat Mar 23, 2024 5:36 pm

\psline doesn't draw anything

Post by zaaz »

Hello,

I have a strange problem since I updated to Ubuntu 22.04 LTS : my latex documents containting pstrick label "\psline" will just show nothing after compilation. For exemple :

Code: Select all

\documentclass{article}
\usepackage{pstricks}

\begin{document}

This is a line
\begin{pspicture}(0,0)(10,6)
\psline[linewidth=2 pt]{<->}(2,1)(6,4)
\end{pspicture}

\end{document}
creates a .pdf which says "This is a line", without any errors, but without the line.

I use kile to edit and I complile with Xelatex (as usual). I tried to add manually the latest pstricks.sty file from CTAN but I still have the problem.

Any clues ? Is this a pstricks problem or a xelatex one ? Help !!
Last edited by zaaz on Sun Mar 24, 2024 12:27 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

\psline doesn't draw anything

Post by Stefan Kottwitz »

Hi zaaz,

welcome to the forum!

The LaTeX code runs fine; when I click on "Run LaTeX here," I can see that line.

Possibly, there's an issue with your LaTeX installation; it's hard to say without seeing that in detail. Adding pstricks.sty manually is not a proper solution because pstricks consists of many more files.

You could (should) remove that copy in any case. Or install a full pstricks package in your local tex tree or your user directory. Less complicated; perhaps uninstall and reinstall LaTeX or install TeXlive via tug.org. I would do that.

Stefan
LaTeX.org admin
zaaz
Posts: 2
Joined: Sat Mar 23, 2024 5:36 pm

\psline doesn't draw anything

Post by zaaz »

Hey, thank you for you answer.

I followed your advice and removed the .sty I put manually.

I had TeXlive installed from repository, so I removed it and installed the 2024 version from tug.org. I noticed that my repository version of texlive was old (2021).

And it works !! Thank you again
Post Reply