Problems with including graphics

Djones9976 djones9976 at aol.com
Thu Jul 18 23:29:48 CEST 2019


All,
I am using the following preamble in a document written using TexShop on an iMac computer with OS X
% !TEX TS-program = latex
\documentclass[14pt, oneside]{article}    \usepackage[rflt]{floatflt}\usepackage{mathptmx}\usepackage{array}\usepackage{pstcol} \usepackage{pst-plot}\usepackage{graphicx}\usepackage{pstricks-add}\usepackage{amsmath, amssymb}  %%%%%%%%%%%%%%\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage{url}\usepackage{tabularx}\usepackage{longtable}\usepackage{pstricks}\usepackage{pst-func}\usepackage{pst-math}\usepackage{xspace}\usepackage[colorlinks,linktocpage]{hyperref}\usepackage{wrapfig}\usepackage{pst-3dplot}\usepackage{fancyhdr}\setlength{\headheight}{15.2pt}\pagestyle{fancy}\usepackage{hyperref}\usepackage{color}\hypersetup{    colorlinks,%    citecolor=black,%    filecolor=black,%    linkcolor=black,%    urlcolor=black}\definecolor{orange}{rgb}{1,0.5,0}\definecolor{violet}{rgb}{1,0.5,0}\definecolor{brown}{rgb}{1,0.5,0}\definecolor{purple}{rgb}{1,0.5,0}\usepackage{resizebox}\usepackage{float}\usepackage{caption}       %%%%%%%%%%%%%%%%%%%%%%\usepackage{geometry}\usepackage{subfigure} 
\begin{document}
\pagestyle{fancyplain}\fancyhf{}


With the first line (% !TEX TS-program = latex) in place the following program works without any problem:
\begin{figure}[!h]%\vspace{1in}\psset{unit=0.375cm}\centering\begin{pspicture}(20,10)%\psgrid[subgriddiv=0,griddots=10,gridlabels=7pt]%\psaxes[linewidth=1pt,ticks=none,labels=none]{->}(0,0)(0,0)(36,24)\psset{gridcolor=green,subgridcolor=yellow}\pscircle[linewidth=1pt,linecolor=black](1,4){0.75}\rput(1,4){$m_{1}$}\psline[linecolor=black,linestyle=solid,linewidth=1pt,fillstyle=solid]{->}(1.7,4)(6,4)\rput(3,5){$\mathrm{v}_{1}$}\psline[linecolor=black,linestyle=solid,linewidth=1pt,fillstyle=solid]{-}(7,4)(18,4)\pscircle[linewidth=1pt,linecolor=black](15,9){0.75}\rput(15,9){$m_{3}$}\psline[linecolor=black,linestyle=solid,linewidth=1pt,fillstyle=solid]{o->}(9,4)(15,8)\rput(12,7){$\mathrm{v}_{3}$}\rput(11,4.5){$\theta$}\rput(10,3.5){$\phi$}\psline[linecolor=black,linestyle=solid,linewidth=1pt,fillstyle=solid]{o->}(9,4)(12,1)\rput(10,1.5){$\mathrm{v}_{4}$}\pscircle[linewidth=1pt,linecolor=black](12,0){0.75}\rput(12,0){$m_{4}$}\psline[linecolor=black,linestyle=solid,linewidth=1pt,fillstyle=solid]{<->}(12,1)(15,8)\rput(13.3,4){$\bullet$}\rput(14.7,5.5){$\mathrm{v}_{3}^{\prime}$}\rput(13.4,2.1){$\mathrm{v}_{4}^{\prime}$}\rput(12.5,3.5){$\alpha$}\rput(14.1,4.5){$\alpha$}%\psline[linecolor=black,linestyle=solid,linewidth=2pt,fillstyle=solid]{o->}(1,4)(5,4)\rput(3,5){$\mathrm{v}_{1}$}%\psline[linecolor=black,linestyle=solid,linewidth=2pt,fillstyle=solid]{o->}(1,4)(5,4)\rput(3,5){$\mathrm{v}_{1}$}\end{pspicture}\caption{Vector diagram for collision of neutron with target atom in LAB and CM systems.}\label{fig: Collision}\end{figure}p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Arial}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Arial; min-height: 16.0px}

However, the following program will not work unless I delete the first line (% !TEX TS-program = latex) from the preamble:

\begin{figure}[!h]\begin{center}\includegraphics[scale=0.35]{diff-elastic-Xsect-Fe-Pb.jpg}\end{center}\caption{Differential Elastic Scattering Cross Sections for 6.15 MeV Neutrons from Iron and Lead}\label{fig:ENERGY-Lead111}\end{figure}

I will greatly appreciate any suggestions that will solve this dilemma.
Thank you in advance.
Dallas Jonesp.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Arial}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Arial; min-height: 16.0px}span.Apple-tab-span {white-space:pre}p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Arial; min-height: 16.0px}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Arial}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20190718/8c5aa35c/attachment.html>


More information about the texhax mailing list