You are not logged in.

#1 2014-12-11 07:40:33

amanouss
Member
Registered: 2014-12-08
Posts: 19

picture in texlive

Hi 

I'm compiling   a tex-file  with the  code        below.   I use xelatex
and although   I get the message

Process exited normally

when  I open the pdf file, there is no picture.


When  I'm in Debian, with the same file   I'm getting  the full picture.   

I would like to know what to do to have  the full picture in arch linux


Thanks


The code (was created in latexdraw)


\begin{figure}[htd]
  \centering
\scalebox{1} % Change this value to rescale the drawing.
{
\begin{pspicture}(0,-2.01)(5.781875,2.0140624)
\psline[linewidth=0.04](0.1,1.29)(0.12,-1.33)(1.52,-1.33)(1.52,-0.73)(3.32,-0.73)(3.32,-1.33)(3.92,-1.33)
\psline[linewidth=0.04](4.12,-1.31)(4.72,-1.31)(4.72,1.29)(3.32,1.27)(3.32,0.87)(1.52,0.87)(1.52,1.27)(0.52,1.27)
\psline[linewidth=0.04](1.52,0.49)(1.52,-0.31)(3.32,-0.31)(3.32,0.47)(1.52,0.47)
\psline[linewidth=0.04cm,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(2.5,0.65)(1.86,0.65)
\psline[linewidth=0.04cm,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(0.0,1.99)(0.28,1.29)
\psline[linewidth=0.04cm,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(4.02,-1.35)(4.22,-1.99)
\psline[linewidth=0.04cm,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(1.92,-0.53)(2.62,-0.53)
\usefont{T1}{ptm}{m}{n}
\rput(3.2375,0.655){\footnotesize $2lt/min$}
\usefont{T1}{ptm}{m}{n}
\rput(3.3214064,-0.505){\footnotesize $8lt/min$}
\usefont{T1}{ptm}{m}{n}
\rput(0.9975,1.835){\small $6lt/min$}
\usefont{T1}{ptm}{m}{n}
\rput(5.061406,-1.585){\small $6lt/min$}
\usefont{T1}{ptm}{m}{n}
\rput(4.0075,0.135){\small $T_{2}$}
\usefont{T1}{ptm}{m}{n}
\rput(1.1214062,0.115){\small $T_{1}$}
\end{pspicture}
}
\caption{two tanks}
\end{figure}

Offline

#2 2014-12-11 07:57:05

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,813
Website

Re: picture in texlive

Please use code tags and proper punctuation.


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#3 2014-12-11 08:24:00

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,102

Re: picture in texlive

And post a fully compiling source test case and the output of xelatex

Last edited by arojas (2014-12-11 08:24:29)

Offline

#4 2014-12-11 20:29:53

amanouss
Member
Registered: 2014-12-08
Posts: 19

Re: picture in texlive

I' m posting the tex code and the pdf file. It is the first time  I'm posting  picture and code, so  I'm sorry if  something is not ok

The  tex code,


\documentclass[reqno,a4paper,twoside,11pt]{stml-l}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm,xfrac}
\usepackage[toc,page]{appendix}
\usepackage{mathtools}
\usepackage{eulervm}
\usepackage{unicode-math}
\usepackage{pdfsync}
\usepackage{xltxtra}
\setmainfont{Linux Libertine O}
\setmathfont{xits-math.otf}
 \addtolength{\oddsidemargin}{-.75in}
 \addtolength{\evensidemargin}{-.75in}
 \addtolength{\textwidth}{1.5in}
 \addtolength{\topmargin}{-.875in}
 \addtolength{\textheight}{1.75in}
\usepackage[bookmarks=false,plainpages=false,
colorlinks,urlcolor=blue,unicode,
bookmarksopen,pdfstartview=FitH]
{hyperref}
\usepackage{graphics}
\usepackage{epsfig,wrapfig}%,subfigure
%\usepackage%[dvipdfm,hiresbb,dvips]%{graphicx}
\usepackage{psfrag}
\usepackage{pstricks}
\usepackage[a4paper,text={15.5cm,22.2cm},centering]{geometry}  
 \begin{document}
\begin{figure}[htd]
  \centering
\scalebox{1} % Change this value to rescale the drawing.
{
\begin{pspicture}(0,-2.01)(5.781875,2.0140624)
\psline[linewidth=0.04](0.1,1.29)(0.12,-1.33)(1.52,-1.33)(1.52,-0.73)(3.32,-0.73)(3.32,-1.33)(3.92,-1.33)
\psline[linewidth=0.04](4.12,-1.31)(4.72,-1.31)(4.72,1.29)(3.32,1.27)(3.32,0.87)(1.52,0.87)(1.52,1.27)(0.52,1.27)
\psline[linewidth=0.04](1.52,0.49)(1.52,-0.31)(3.32,-0.31)(3.32,0.47)(1.52,0.47)
\psline[linewidth=0.04cm,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(2.5,0.65)(1.86,0.65)
\psline[linewidth=0.04cm,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(0.0,1.99)(0.28,1.29)
\psline[linewidth=0.04cm,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(4.02,-1.35)(4.22,-1.99)
\psline[linewidth=0.04cm,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(1.92,-0.53)(2.62,-0.53)
\usefont{T1}{ptm}{m}{n}
\rput(3.2375,0.655){\footnotesize $2lt/min$}
\usefont{T1}{ptm}{m}{n}
\rput(3.3214064,-0.505){\footnotesize $8lt/min$}
\usefont{T1}{ptm}{m}{n}
\rput(0.9975,1.835){\small $6lt/min$}
\usefont{T1}{ptm}{m}{n}
\rput(5.061406,-1.585){\small $6lt/min$}
\usefont{T1}{ptm}{m}{n}
\rput(4.0075,0.135){\small $T_{2}$}
\usefont{T1}{ptm}{m}{n}
\rput(1.1214062,0.115){\small $T_{1}$}
\end{pspicture} 
}
\caption{two tanks}
\end{figure}
\end{document}.

the pdf ouput

the pdf output

Offline

#5 2014-12-12 11:54:43

FreeTheBee
Member
Registered: 2011-01-02
Posts: 125

Re: picture in texlive

It would help if you could strip out all working code and leave a minimal example that shows the error. I tried to compile but I get errors on the fonts.

Offline

#6 2014-12-12 12:40:36

amanouss
Member
Registered: 2014-12-08
Posts: 19

Re: picture in texlive

To have a  '' minimal code''


In the tex code   

I changed the document class from smtl-l to    book

and   I  comment  the lines

%\usepackage{eulervm}
%\usepackage{unicode-math}
%\usepackage{pdfsync}
%\usepackage{xltxtra}
%\setmainfont{Linux Libertine O}
%\setmathfont{xits-math.otf}
 %\addtolength{\oddsidemargin}{-.75in}
 %\addtolength{\evensidemargin}{-.75in}
 %\addtolength{\textwidth}{1.5in}
 %\addtolength{\topmargin}{-.875in}
 %\addtolength{\textheight}{1.75in}
%\usepackage[bookmarks=false,plainpages=false,
%colorlinks,urlcolor=blue,unicode,
%bookmarksopen,pdfstartview=FitH]
%{hyperref}.


the   pdf output is the same.   

(I have install texlive is from arch)

Offline

#7 2014-12-12 14:35:25

FreeTheBee
Member
Registered: 2011-01-02
Posts: 125

Re: picture in texlive

The problem seems to be with ghostscript. Downgrading from 9.15-1 to 9.14-1 solved the issue for me (found here). At least there is schematic picture now, not sure of course if it is completely correct.

Offline

#8 2014-12-13 08:14:19

amanouss
Member
Registered: 2014-12-08
Posts: 19

Re: picture in texlive

The  solution  of FreeTheBee  works perfect, downgrading  ghostscipt  from 9.15-1 to 9.14-1,     I'm getting the full picture.


thanks

Offline

Board footer

Powered by FluxBB