General ⇒ how can I add this special picture to my latex?
how can I add this special picture to my latex?
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 309 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
how can I add this special picture to my latex?
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
Re: how can I add this special picture to my latex?
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?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
how can I add this special picture to my latex?
Best regards
Thorsten¹
- Attachments
-
- The picture itself in PNG format extracted from the PDF.
- plane.png (167.49 KiB) Viewed 6551 times
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
how can I add this special picture to my latex?
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 263 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
how can I add this special picture to my latex?
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.Stefan_K wrote:[...] I've used pdfcrop to trim the white border of the posted pdf document. [...]
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 242 times
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: how can I add this special picture to my latex?
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
how can I add this special picture to my latex?
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.Stefan_K wrote:[…] If you test pdfcrop with MiKTeX on Windows please let us know about the result. […]
[1] Starting mgs.exe at the DOS-Prompt
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: how can I add this special picture to my latex?
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.
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
how can I add this special picture to my latex?
Code: Select all
\documentclass{beamer}
\usepackage{default}
\begin{document}
\begin{frame}
\includegraphics[width=\textwidth]{plane}
{\centering\tiny small Text\par}
\end{frame}
\end{document}