Generalhow can I add this special picture to my latex?

LaTeX specific issues not fitting into one of the other forums of this category.
gcheer3
Posts: 41
Joined: Wed Jun 25, 2008 4:39 pm

how can I add this special picture to my latex?

Post by gcheer3 »

I got this graph in a word file. It has three layers. Original graph( only the plane) , two yellow boxes and gray characters on the left wing of the plane. I cannot just save it as a graph. Because it only can show one layer (only the plane) if I do that. the yellow boxes and characters will be all missing. So I dont know how can I add this graph to the my latex file.

Since I cannot upload doc file to this forum, I made a pdf file.

Thank you very much.
Attachments
Doc4.pdf
(64.17 KiB) Downloaded 295 times

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: 10347
Joined: Mon Mar 10, 2008 9:44 pm

how can I add this special picture to my latex?

Post by Stefan Kottwitz »

Hi,

you could include this pdf file, just without the white space.
Or use pgf/TikZ to get better results, have a look at this example: Transparent shadows.

Stefan
LaTeX.org admin
gcheer3
Posts: 41
Joined: Wed Jun 25, 2008 4:39 pm

Re: how can I add this special picture to my latex?

Post by gcheer3 »

Thank you, Stenfan.

I just used add that pdf directly. That works. First, I go to the word, make the page layout as landscape, then I enlarge the pic as big as possible in the word file. Then I transfer the doc to pdf. I use \includegraphics [height=9cm]{filename}

The result I want is use one slide to only display this picture. But The picture cannot be centered. The picture is displayed in the right bottom of the slide. I tried \begin{center} and\end{center}. It doesnt help at all.

Any suggestions?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

how can I add this special picture to my latex?

Post by localghost »

I extracted the picture from the PDF file and saved it in PNG format. Try to insert it with the \includegraphics command. You can find the file in the attachment.


Best regards
Thorsten¹
Attachments
The picture itself in PNG format extracted from the PDF.
The picture itself in PNG format extracted from the PDF.
plane.png (167.49 KiB) Viewed 6350 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

how can I add this special picture to my latex?

Post by Stefan Kottwitz »

Hi,

I've used pdfcrop to trim the white border of the posted pdf document. The result is attached.
You can use it by \includegraphics too, like Thorsten's png. Compare the quality of the blue text and the yellow boxes with those of the png file if you zoom into the picture, the pdf file could be the better choice.

Stefan
Attachments
plane.pdf
(59.68 KiB) Downloaded 251 times
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

how can I add this special picture to my latex?

Post by localghost »

Stefan_K wrote:[...] I've used pdfcrop to trim the white border of the posted pdf document. [...]
This was my first approach. But somehow the result was not satisfying as can be seen in the attachment. I don't know the reason which causes this insufficient reduction. Perhaps the version of pdfcrop on my Linux system². I didn't use any special trim options but I will test that later on MiKTeX.

Supplement:
Calling pdfcrop with the right parameters yields the same result as that of Stefan.

Code: Select all

pdfcrop --margins "0 0 -49 -4" Doc4.pdf
Attachments
Doc4-crop.pdf
A not very good result with pdfcrop.
(59.68 KiB) Downloaded 229 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Re: how can I add this special picture to my latex?

Post by Stefan Kottwitz »

Hi Thorsten,

I got the same result when I called pdfcrop without additional options. Then I used the --margins option to trim it, just reduced the margin step by step until the white margin was gone without going too far.
If you test pdfcrop with MiKTeX on Windows please let us know about the result.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

how can I add this special picture to my latex?

Post by localghost »

Stefan_K wrote:[…] If you test pdfcrop with MiKTeX on Windows please let us know about the result. […]
I managed to make MiKTeX Ghostscript (MGS) work on the command prompt after following the instructions from the MiKTeX Blog [1]. But pdfcrop (Version 1.8) refuses to work even if I try to give the also installed GPL Ghostscript 8.62 binary (gswin32c.exe) as a command line parameter. Perhaps I'm doing something wrong. I will try on later because a working pdfcrop (Version 1.5) on Linux is much more important to me at the time.

[1] Starting mgs.exe at the DOS-Prompt
gcheer3
Posts: 41
Joined: Wed Jun 25, 2008 4:39 pm

Re: how can I add this special picture to my latex?

Post by gcheer3 »

Thank you. You guys are professional. How can you guys know everything:-)

Thorsten, how did you extract the picture from the PDF file? Do you use some sofeware? I think this is the easier way. I am using windows, pdfcrop may not work very well as you said.

Another question, I want to add a tiny line of sentence under the graph (similar to footnote) and write down some descriptive information about the graph. Very tiny characters under the graph. I tried \footnote{blablabla..} which doesn't work. It seems like the graph covers the text. I dont really know how to make the text and graph neatly on one slide.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

how can I add this special picture to my latex?

Post by Stefan Kottwitz »

Have a look at this small example:

Code: Select all

\documentclass{beamer}
\usepackage{default}
\begin{document}
\begin{frame}
\includegraphics[width=\textwidth]{plane}

{\centering\tiny small Text\par}
\end{frame}
\end{document}
Stefan
LaTeX.org admin
Post Reply