GeneralFigure Scales

General information and discussion about TeXnicCenter
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Figure Scales

Post by cgnieder »

Stefan_K wrote:That's because of the spaces in the file name.
Ah, I should have seen that... sometimes you don't see the tree for the woods (to quote one of my favourite movies :) )
site moderator & package author

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: Figure Scales

Post by rainz »

Thanks a lot. That actually solved the problem with figure names however, sizes are still different. I am going crazy over this.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Figure Scales

Post by Stefan Kottwitz »

As said above,
Stefan_K wrote:I'm sure, the problem can be solved, if the information would be sufficient. For example, if you would post a small example with two such images as attachments which shows the effect when compiled. Having a test case leads usually to a solution.
if you would post a compilable example together with two such pictures, we could test it easily. Once it's verified, it can probably be fixed.

If you don't post something concrete we can test, we gladly provide general advice as much as possible, but the actual implementation would be up to you then.

Stefan
LaTeX.org admin
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Figure Scales

Post by cgnieder »

First of all: the images you've attached don't have the same size (i.e. width and height)! More importantly: the both have large and asymmetric white space on it. That's why it seems as if they hadn't the same width after resizing. A third point: jpg is not the best format for inclusion to the document. Better would be to have a vector graphic format like pdf.

Code: Select all

\documentclass{buthesis}
\usepackage{graphicx}
\begin{document}

\begin{figure}[htp]
 \centering
 \fbox{\includegraphics[width=.7\linewidth]{./image1.jpg}}
 \caption{Image 1}
\end{figure}

\begin{figure}[htp]
 \centering
 \fbox{\includegraphics[width=.7\linewidth]{./image2.jpg}}
 \caption{Image 2}
\end{figure}

\end{document}
figures.png
figures.png (58.49 KiB) Viewed 6249 times
But you could still attach the real images that you are actually using :)

Regards
site moderator & package author
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: Figure Scales

Post by rainz »

Thanks I will try that. My figures are in .png format
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: Figure Scales

Post by rainz »

Nope I cannot fix that. I am trying to create a test environment however, the program fails to compile each time
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Re: Figure Scales

Post by Stefan Kottwitz »

Perhaps post the error messages. At least the first one, which is the most relevant, because further error messages may be a consequence. Or post the .log file as attachment, if it's more complicated.

Stefan
LaTeX.org admin
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: Figure Scales

Post by rainz »

Actually there are no errors just warnings and bad boxes. But I am still attaching the log document
Attachments
thesis.log
(24.12 KiB) Downloaded 243 times
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Figure Scales

Post by cgnieder »

rainz wrote:Actually there are no errors just warnings and bad boxes.
In this case you can simply post your code. I'm confident we'll figure out where the warnings and bad boxes are from and how you can avoid them. Important would be to see some code and (even if I begin to sound like a parrot) the real pictures (instead of pictures of the pictures).

Regards
site moderator & package author
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: Figure Scales

Post by rainz »

Unfortunately, I cannot run a part of the code. I do not know how to do that
Post Reply