## [MiKTeX] Re: \includegraphics

 [MiKTeX] Re: \includegraphics From: Herman Z. Bennett - 2004-07-30 12:47:44 Thanks for your answer. I am using pdfLaTeX and I can't see the figures. As I said, I run an old program that did show the figure, but now it doesn't. What can be happening that the figure doesn't show up, but the space to fit it in does? Can you recomend a standard procedure for adding pdf figure with pdfLaTeX (that works for you). Thanks again, Herman > --__--__-- > > Message: 2 > Date: Thu, 29 Jul 2004 18:02:53 -0600 > From: "Luis A. Payan R." > To: miktex-users@... > Subject: Re: [MiKTeX] \includegraphics > Reply-To: miktex-users@... > > Hi, > > PDF figures only can be seen when the final document is converted into > pdf format, in dvi format the pdf figures does not appear. Are you > compiling with LaTeX or pdfLaTeX?. > > If you are compiling with LaTeX I recommend to you to read the dvipdfm > documentation. There, it is explained how to include pdf figures into > LaTeX documents. Download from: > > http://www.ctan.org/tex-archive/dviware/dvipdfm/dvipdfm.pdf > > Herman Z. Bennett wrote: > > >Hi: I am trying to add a pdf figure. I have use this 2 pieces, but both > fail. > >The caption and the space of the graph is there, but the space where the > figure > >should have been is empty. > > > >\vspace{-3.7in} \hspace{.5in} > >\begin{figure}[!h] \centering > >\includegraphics[-50,0][410,410]{fig.pdf} > >\caption{OLS REgression Figures} > >\end{figure} > > > > > >\begin{figure} > >\begin{picture}(300,220)(0,0) > >\put(0,0){\resizebox{20 cm}{!}{\includegraphics{fig.pdf}}} > >\end{picture} > >\caption{OLS REgression Figures} \label{pdf} > >\end{figure} > > > >I have try these two option with multipli combinations of: > > > >\usepackage[dvipdfm]{graphicx} > >\usepackage{graphics} > >\usepackage{graphicx} > > > >but the same thing. > > > >Even more, I loaded an old *.tex where I used to have a pdf figure inserted. > I > >run it again, and the sapce was empty (yes, I have the *.pdf file in the > >corresponding folder). For reference my Miktex version is 2.4.1661. > > > >I also tryied to print the figure in ps, the do ps->eps in GV and the > distiller > >for pdf. Same thing. > > > >Thanks for any help on what could be going wrong or which is the standard > way of > >adding a pdf figure. > > > >Herman > > > > > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by OSTG. Have you noticed the changes on > >Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > >one more big change to announce. We are now OSTG- Open Source Technology > >Group. Come see the changes on the new OSTG site. http://www.ostg.com > >_______________________________________________ > >MiKTeX-Users mailing list > >MiKTeX-Users@... > >https://lists.sourceforge.net/lists/listinfo/miktex-users > > > > > > > > > > > > -- > Luis Alfredo Payan Rodriguez > ............................ > listas@... > http://www.alpanet.org > > > > > > > --__--__-- > > _______________________________________________ > MiKTeX-Users mailing list > MiKTeX-Users@... > https://lists.sourceforge.net/lists/listinfo/miktex-users > > > End of MiKTeX-Users Digest > 

 [MiKTeX] Re: \includegraphics From: Herman Z. Bennett - 2004-07-30 12:47:44 Thanks for your answer. I am using pdfLaTeX and I can't see the figures. As I said, I run an old program that did show the figure, but now it doesn't. What can be happening that the figure doesn't show up, but the space to fit it in does? Can you recomend a standard procedure for adding pdf figure with pdfLaTeX (that works for you). Thanks again, Herman > --__--__-- > > Message: 2 > Date: Thu, 29 Jul 2004 18:02:53 -0600 > From: "Luis A. Payan R." > To: miktex-users@... > Subject: Re: [MiKTeX] \includegraphics > Reply-To: miktex-users@... > > Hi, > > PDF figures only can be seen when the final document is converted into > pdf format, in dvi format the pdf figures does not appear. Are you > compiling with LaTeX or pdfLaTeX?. > > If you are compiling with LaTeX I recommend to you to read the dvipdfm > documentation. There, it is explained how to include pdf figures into > LaTeX documents. Download from: > > http://www.ctan.org/tex-archive/dviware/dvipdfm/dvipdfm.pdf > > Herman Z. Bennett wrote: > > >Hi: I am trying to add a pdf figure. I have use this 2 pieces, but both > fail. > >The caption and the space of the graph is there, but the space where the > figure > >should have been is empty. > > > >\vspace{-3.7in} \hspace{.5in} > >\begin{figure}[!h] \centering > >\includegraphics[-50,0][410,410]{fig.pdf} > >\caption{OLS REgression Figures} > >\end{figure} > > > > > >\begin{figure} > >\begin{picture}(300,220)(0,0) > >\put(0,0){\resizebox{20 cm}{!}{\includegraphics{fig.pdf}}} > >\end{picture} > >\caption{OLS REgression Figures} \label{pdf} > >\end{figure} > > > >I have try these two option with multipli combinations of: > > > >\usepackage[dvipdfm]{graphicx} > >\usepackage{graphics} > >\usepackage{graphicx} > > > >but the same thing. > > > >Even more, I loaded an old *.tex where I used to have a pdf figure inserted. > I > >run it again, and the sapce was empty (yes, I have the *.pdf file in the > >corresponding folder). For reference my Miktex version is 2.4.1661. > > > >I also tryied to print the figure in ps, the do ps->eps in GV and the > distiller > >for pdf. Same thing. > > > >Thanks for any help on what could be going wrong or which is the standard > way of > >adding a pdf figure. > > > >Herman > > > > > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by OSTG. Have you noticed the changes on > >Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > >one more big change to announce. We are now OSTG- Open Source Technology > >Group. Come see the changes on the new OSTG site. http://www.ostg.com > >_______________________________________________ > >MiKTeX-Users mailing list > >MiKTeX-Users@... > >https://lists.sourceforge.net/lists/listinfo/miktex-users > > > > > > > > > > > > -- > Luis Alfredo Payan Rodriguez > ............................ > listas@... > http://www.alpanet.org > > > > > > > --__--__-- > > _______________________________________________ > MiKTeX-Users mailing list > MiKTeX-Users@... > https://lists.sourceforge.net/lists/listinfo/miktex-users > > > End of MiKTeX-Users Digest > 
 [MiKTeX] Re: \includegraphics From: Herman Z. Bennett - 2004-07-31 13:52:08 Thanks. "Try removing the sizing and bounding box information" worked...I should have thought of trying that! Now the figure is there, but it is located in the upper corner of the page and far from the captions (in fact part of the figure is lost). It is as if pdflatex understand that all the blank space of the fig.pdf page is part of the figure. I know I could stat playing with the location parameters, however, from an example I found in bookex.tex, I think that there must be a way to tell pdflatex to include only the figure and not its surroundings (in fact if you open the pdf file of the figure in the example of bookex.tex, it is located in a side of the page, but pdflatex only uses the space where the figure is, not the whole page (as it seems to be in my case). To try to solve this I print the figure (from excel) to a ps file. then did ps->eps (to delimit the margin of the figure) and then distiller. But, the problem persisted. In sum, maybe the problem could be in how pdflatex is reading the figure. If this is the case, how can I make pdflatex to understand the margins of the figure in the fig.pdf? Does it do it automatically? Thanks so much for your help. Herman > > Message: 2 > Date: Fri, 30 Jul 2004 08:47:38 -0400 > From: "Herman Z. Bennett" > To: miktex-users@... > Subject: [MiKTeX] Re: \includegraphics > Reply-To: miktex-users@... > > Thanks for your answer. I am using pdfLaTeX and I can't see the figures. As > I > said, I run an old program that did show the figure, but now it doesn't. > What > can be happening that the figure doesn't show up, but the space to fit it in > does? Can you recomend a standard procedure for adding pdf figure with > pdfLaTeX > (that works for you). > > Thanks again, > Herman > > -- __--__-- > > > > >Hi: I am trying to add a pdf figure. I have use this 2 pieces, but both > > fail. > > >The caption and the space of the graph is there, but the space where the > > figure > > >should have been is empty. > > > > > >\vspace{-3.7in} \hspace{.5in} > > >\begin{figure}[!h] \centering > > >\includegraphics[-50,0][410,410]{fig.pdf} > > >\caption{OLS REgression Figures} > > >\end{figure} > > > > > > > > >\begin{figure} > > >\begin{picture}(300,220)(0,0) > > >\put(0,0){\resizebox{20 cm}{!}{\includegraphics{fig.pdf}}} > > >\end{picture} > > >\caption{OLS REgression Figures} \label{pdf} > > >\end{figure} > > > > > >I have try these two option with multipli combinations of: > > > > > >\usepackage[dvipdfm]{graphicx} > > >\usepackage{graphics} > > >\usepackage{graphicx} > > > > > >but the same thing. > > > > > >Even more, I loaded an old *.tex where I used to have a pdf figure > inserted. > > I > > >run it again, and the sapce was empty (yes, I have the *.pdf file in the > > >corresponding folder). For reference my Miktex version is 2.4.1661. > > > > > >I also tryied to print the figure in ps, the do ps->eps in GV and the > > distiller > > >for pdf. Same thing. > > > > > >Thanks for any help on what could be going wrong or which is the standard > > way of > > >adding a pdf figure. > > > > > >Herman > > > > Message: 3 > Date: Fri, 30 Jul 2004 14:20:49 +0100 > To: miktex-users@... > From: Steve Sangwine > Subject: Re: [MiKTeX] Re: \includegraphics > Reply-To: miktex-users@... > > > A few suggestions to try and help you find the problem.... > > > Try removing the sizing and bounding box information, eg: > \includegraphics{fig.pdf}. If the figure now appears (maybe too > big or off the edge of the page, at least you know that the error > is in the bounding box or sizing information. > > Check that fig.pdf opens OK in Acrobat reader and you can > see the figure. > > Make sure the figure does not contain white text on white background. > (This is one way the figure can be correctly included but invisible.) > > Try including some other type of file, like a small PNG or BMP image file > just to make sure graphics is working correctly. > > Steve Sangwine > > 
 Re: [MiKTeX] Re: \includegraphics From: Steve Sangwine - 2004-08-02 07:52:04 Sometimes I have found problems with bounding boxes to be soluble most easily by viewing the .ps or .pdf file in gsview. Then you can use the cursor and measurement facility to determine exactly the bounding box dimensions and offset to show the part of the figure that you want. Then, usually, \includegraphics can be made to include just the part of the figure that you want to appear on the page. It could be that your pdf figure occupies a whole page of PDF even though most of the page is blank. Another simple idea to use is to include in the \includegraphics command a scale factor like this: \includegraphics[scale=0.1]{fig.pdf} so that the included figure is shrunk to 10% of its normal size. Then play with the bounding box to make the part that you want visible, and then remove the scale factor. Steve Sangwine At 14:52 31/07/2004, Herman Z. Bennett wrote: >Thanks. "Try removing the sizing and bounding box information" worked...I should >have thought of trying that! > >Now the figure is there, but it is located in the upper corner of the page and >far from the captions (in fact part of the figure is lost). It is as if >pdflatex understand that all the blank space of the fig.pdf page is part of the >figure. I know I could stat playing with the location parameters, however, from >an example I found in bookex.tex, I think that there must be a way to tell >pdflatex to include only the figure and not its surroundings (in fact if you >open the pdf file of the figure in the example of bookex.tex, it is located in >a side of the page, but pdflatex only uses the space where the figure is, not >the whole page (as it seems to be in my case). > >To try to solve this I print the figure (from excel) to a ps file. then did >ps->eps (to delimit the margin of the figure) and then distiller. But, the >problem persisted. > >In sum, maybe the problem could be in how pdflatex is reading the figure. If >this is the case, how can I make pdflatex to understand the margins of the >figure in the fig.pdf? Does it do it automatically? > >Thanks so much for your help. >Herman > > >> >> Message: 2 >> Date: Fri, 30 Jul 2004 08:47:38 -0400 >> From: "Herman Z. Bennett" >> To: miktex-users@... >> Subject: [MiKTeX] Re: \includegraphics >> Reply-To: miktex-users@... >> >> Thanks for your answer. I am using pdfLaTeX and I can't see the figures. As >> I >> said, I run an old program that did show the figure, but now it doesn't. >> What >> can be happening that the figure doesn't show up, but the space to fit it in >> does? Can you recomend a standard procedure for adding pdf figure with >> pdfLaTeX >> (that works for you). >> >> Thanks again, >> Herman >> > -- __--__-- >> > >> > >Hi: I am trying to add a pdf figure. I have use this 2 pieces, but both >> > fail. >> > >The caption and the space of the graph is there, but the space where the >> > figure >> > >should have been is empty. >> > > >> > >\vspace{-3.7in} \hspace{.5in} >> > >\begin{figure}[!h] \centering >> > >\includegraphics[-50,0][410,410]{fig.pdf} >> > >\caption{OLS REgression Figures} >> > >\end{figure} >> > > >> > > >> > >\begin{figure} >> > >\begin{picture}(300,220)(0,0) >> > >\put(0,0){\resizebox{20 cm}{!}{\includegraphics{fig.pdf}}} >> > >\end{picture} >> > >\caption{OLS REgression Figures} \label{pdf} >> > >\end{figure} >> > > >> > >I have try these two option with multipli combinations of: >> > > >> > >\usepackage[dvipdfm]{graphicx} >> > >\usepackage{graphics} >> > >\usepackage{graphicx} >> > > >> > >but the same thing. >> > > >> > >Even more, I loaded an old *.tex where I used to have a pdf figure >> inserted. >> > I >> > >run it again, and the sapce was empty (yes, I have the *.pdf file in the >> > >corresponding folder). For reference my Miktex version is 2.4.1661. >> > > >> > >I also tryied to print the figure in ps, the do ps->eps in GV and the >> > distiller >> > >for pdf. Same thing. >> > > >> > >Thanks for any help on what could be going wrong or which is the standard >> > way of >> > >adding a pdf figure. >> > > >> > >Herman >> > > >> Message: 3 >> Date: Fri, 30 Jul 2004 14:20:49 +0100 >> To: miktex-users@... >> From: Steve Sangwine >> Subject: Re: [MiKTeX] Re: \includegraphics >> Reply-To: miktex-users@... >> >> >> A few suggestions to try and help you find the problem.... >> >> >> Try removing the sizing and bounding box information, eg: >> \includegraphics{fig.pdf}. If the figure now appears (maybe too >> big or off the edge of the page, at least you know that the error >> is in the bounding box or sizing information. >> >> Check that fig.pdf opens OK in Acrobat reader and you can >> see the figure. >> >> Make sure the figure does not contain white text on white background. >> (This is one way the figure can be correctly included but invisible.) >> >> Try including some other type of file, like a small PNG or BMP image file >> just to make sure graphics is working correctly. >> >> Steve Sangwine >> >> > > > > >------------------------------------------------------- >This SF.Net email is sponsored by OSTG. Have you noticed the changes on >Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, >one more big change to announce. We are now OSTG- Open Source Technology >Group. Come see the changes on the new OSTG site. http://www.ostg.com >_______________________________________________ >MiKTeX-Users mailing list >MiKTeX-Users@... >https://lists.sourceforge.net/lists/listinfo/miktex-users 
 [MiKTeX] Re: \includegraphics From: Herman Z. Bennett - 2004-08-01 16:31:46 Hi: For your information (this is a comment more than a question). After tryi= ng different ways to add a pdf figure, I found out a way to make to pdf figu= re to appear (in fact was a friend who was helping me...).=20 1.- create figure as PS. 2.- do ps2pdf and create the figure in pdf 3.- add the figure as folows: \usepackage[dvipdfm]{graphicx} \begin{figure} \centering \includegraphics[width=3D6in, angle=3D0, bb=3D68 576 523 724]{fig.pdf} \caption{} \label{figolsmin3} \end{figure} 4.- run pdflatex As far as I understand, this is equivalent to use the distiller, then ebb= .exe and then pdflatex, but it seems not to be---because the latter doesn't wo= rk (at least in my computer nor in my friend's). Also, I find curious that when trying to add an eps figure (with the corr= ect bounding box), GS doesn't show it. When I get to the page with the figure= , the figure starts to appear, but after 2 seconds it vanishes and leaves the s= pace blank. The same happens in my friend=92s computer.=20 Hope sharing this experience helps. Herman 
 Re: [MiKTeX] Re: \includegraphics From: Hans Fredrik Nordhaug - 2004-08-02 06:18:09 On Sun, Aug 01, 2004 at 12:31:40PM -0400, Herman Z. Bennett wrote: > Hi: > > For your information (this is a comment more than a question). After trying > different ways to add a pdf figure, I found out a way to make to pdf figure to > appear (in fact was a friend who was helping me...). > > 1.- create figure as PS. > 2.- do ps2pdf and create the figure in pdf > 3.- add the figure as folows: > > \usepackage[dvipdfm]{graphicx} > > \begin{figure} > \centering > \includegraphics[width=6in, angle=0, bb=68 576 523 724]{fig.pdf} > \caption{} \label{figolsmin3} > \end{figure} > > 4.- run pdflatex > > As far as I understand, this is equivalent to use the distiller, then ebb.exe > and then pdflatex, but it seems not to be---because the latter doesn't work (at > least in my computer nor in my friend's). > > Also, I find curious that when trying to add an eps figure (with the correct > bounding box), GS doesn't show it. When I get to the page with the figure, the > figure starts to appear, but after 2 seconds it vanishes and leaves the space > blank. The same happens in my friends computer. Some comments: 1) Don't use PS, use EPS. (Use the ps2eps script - http://www.telematik.informatik.uni-karlsruhe.de/~bless/ps2eps.html) The problem with the disappearing figure after 2 seconds is probably related to the fact the the figure isn't an EPS. 2) When you have the EPS, use the epstopdf script to preserve the correct bounding box. 3) Don't give the bounding box (bb). If you have done 1) and 2) and you still see too much white pscae try the clip option. 4) Don't use the dvipdfm option for graphicx when running pdflatex. Use the pdftex option (of course). Regards, Hans PS! Use the MiKTeX search page: http://www.miktex.org/search.html comp.text.tex is a very valuable resource. 
 Re: [MiKTeX] Re: \includegraphics From: Steve Sangwine - 2004-07-30 13:24:43 At 13:47 30/07/2004, you wrote: >Thanks for your answer. I am using pdfLaTeX and I can't see the figures. As I >said, I run an old program that did show the figure, but now it doesn't. What >can be happening that the figure doesn't show up, but the space to fit it in >does? Can you recomend a standard procedure for adding pdf figure with pdfLaTeX >(that works for you). A few suggestions to try and help you find the problem.... Try removing the sizing and bounding box information, eg: \includegraphics{fig.pdf}. If the figure now appears (maybe too big or off the edge of the page, at least you know that the error is in the bounding box or sizing information. Check that fig.pdf opens OK in Acrobat reader and you can see the figure. Make sure the figure does not contain white text on white background. (This is one way the figure can be correctly included but invisible.) Try including some other type of file, like a small PNG or BMP image file just to make sure graphics is working correctly. Steve Sangwine >Thanks again, >Herman >> --__--__-- >> >> Message: 2 >> Date: Thu, 29 Jul 2004 18:02:53 -0600 >> From: "Luis A. Payan R." >> To: miktex-users@... >> Subject: Re: [MiKTeX] \includegraphics >> Reply-To: miktex-users@... >> >> Hi, >> >> PDF figures only can be seen when the final document is converted into >> pdf format, in dvi format the pdf figures does not appear. Are you >> compiling with LaTeX or pdfLaTeX?. >> >> If you are compiling with LaTeX I recommend to you to read the dvipdfm >> documentation. There, it is explained how to include pdf figures into >> LaTeX documents. Download from: >> >> http://www.ctan.org/tex-archive/dviware/dvipdfm/dvipdfm.pdf >> >> Herman Z. Bennett wrote: >> >> >Hi: I am trying to add a pdf figure. I have use this 2 pieces, but both >> fail. >> >The caption and the space of the graph is there, but the space where the >> figure >> >should have been is empty. >> > >> >\vspace{-3.7in} \hspace{.5in} >> >\begin{figure}[!h] \centering >> >\includegraphics[-50,0][410,410]{fig.pdf} >> >\caption{OLS REgression Figures} >> >\end{figure} >> > >> > >> >\begin{figure} >> >\begin{picture}(300,220)(0,0) >> >\put(0,0){\resizebox{20 cm}{!}{\includegraphics{fig.pdf}}} >> >\end{picture} >> >\caption{OLS REgression Figures} \label{pdf} >> >\end{figure} >> > >> >I have try these two option with multipli combinations of: >> > >> >\usepackage[dvipdfm]{graphicx} >> >\usepackage{graphics} >> >\usepackage{graphicx} >> > >> >but the same thing. >> > >> >Even more, I loaded an old *.tex where I used to have a pdf figure inserted. >> I >> >run it again, and the sapce was empty (yes, I have the *.pdf file in the >> >corresponding folder). For reference my Miktex version is 2.4.1661. >> > >> >I also tryied to print the figure in ps, the do ps->eps in GV and the >> distiller >> >for pdf. Same thing. >> > >> >Thanks for any help on what could be going wrong or which is the standard >> way of >> >adding a pdf figure. >> > >> >Herman >> > >> > >> > >> > >> > >> >------------------------------------------------------- >> >This SF.Net email is sponsored by OSTG. Have you noticed the changes on >> >Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, >> >one more big change to announce. We are now OSTG- Open Source Technology >> >Group. Come see the changes on the new OSTG site. http://www.ostg.com >> >_______________________________________________ >> >MiKTeX-Users mailing list >> >MiKTeX-Users@... >> >https://lists.sourceforge.net/lists/listinfo/miktex-users >> > >> > >> > >> > >> > >> >> -- >> Luis Alfredo Payan Rodriguez >> ............................ >> listas@... >> http://www.alpanet.org >> >> >> >> >> >> >> --__--__-- >> >> _______________________________________________ >> MiKTeX-Users mailing list >> MiKTeX-Users@... >> https://lists.sourceforge.net/lists/listinfo/miktex-users >> >> >> End of MiKTeX-Users Digest >> > > > > > >------------------------------------------------------- >This SF.Net email is sponsored by OSTG. Have you noticed the changes on >Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, >one more big change to announce. We are now OSTG- Open Source Technology >Group. Come see the changes on the new OSTG site. http://www.ostg.com >_______________________________________________ >MiKTeX-Users mailing list >MiKTeX-Users@... >https://lists.sourceforge.net/lists/listinfo/miktex-users