GeneralFigure Scales

General information and discussion about TeXnicCenter
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Figure Scales

Post by rainz »

Hello everyone,

I have a problem with my figure scales. Even though I have the exact same figure format some figures gets bigger than others. I am attaching the error file, if you could help that would be great. Thanks in advance!
Attachments
thesis.log
error logs
(29.09 KiB) Downloaded 393 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Figure Scales

Post by cgnieder »

Hi rainz,

it is unlikely you get a good answer if you don't provide us with more information:how do you include the figures in your document etc... ? Also the log does not show us much besides that you have an error in an eqnarray environment (which should not be used by the way).

Would you please show us a Infominimal working example (emphasis on minimal) that recreates your issues?

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

Figure Scales

Post by rainz »

All of the figures are displayed in the below format:

Code: Select all

\begin{figure}
\centering
\scalebox{0.40}
        {\includegraphics{C:/YMR.png}}
\caption{YMR}
\label{fig:YMR}
\end{figure}
Last edited by cgnieder on Tue Aug 21, 2012 12:42 pm, edited 1 time in total.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Figure Scales

Post by cgnieder »

This is not really helpful as it does not allow us to reproduce your problem. Just a thought: I probably wouldn't use \scalebox but the option of \includegraphics for scaling the image:

Code: Select all

\begin{figure}
  \centering
  \includegraphics[scale=.4]{C:/YMR.png}
  \caption{YMR}
  \label{fig:YMR}
\end{figure}
The documentation of graphicx explains this and other options.

If that doesn't help please follow the link explaining what a Infominimal working example is and provide one to us.

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

Figure Scales

Post by rainz »

How can I reproduce the example? there are 3 figures displayed in the below format:

Code: Select all

\begin{figure}
\centering
\scalebox{0.40}
        {\includegraphics{C:/YMR.png}}
\caption{YMR}
\label{fig:YMR}
\end{figure}
\\
\begin{figure}
\centering
\scalebox{0.40}
        {\includegraphics{C:/YMR2png}}
\caption{YMR2}
\label{fig:YMR2}
\end{figure}
\\
\begin{figure}
\centering
\scalebox{0.40}
        {\includegraphics{C:/YMR3}}
\caption{YMR3}
\label{fig:YMR3}
\end{figure}
Last edited by cgnieder on Tue Aug 21, 2012 12:54 pm, edited 1 time in total.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Figure Scales

Post by cgnieder »

Did you even follow the link? A minimal working examaple (MWE) should be ready for copy, paste and compile, that is start with \documentclass, have a proper but short preamble and the document should show the undesired behaviour. In your case it might be that you also need to paste the images as they seem to give you trouble.

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

Figure Scales

Post by rainz »

I hope this helps.

Code: Select all

\documentclass{buthesis}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{multirow}
\usepackage{lscape}
\usepackage{float}
\usepackage{morefloats}	

\begin{document}


Below figures \ref{fig:rainz}, \ref{YMR} and \ref{YMR2} indicate .....
\begin{figure}
\centering
\scalebox{0.40}
        {\includegraphics{C:/rainz.png}}
\caption{rainz}
\label{fig:rainz}
\end{figure}
\\
\begin{figure}
\centering
\scalebox{0.40}
        {\includegraphics{C:/YMR.png}}
\caption{YMR}
\label{fig:YMR}
\end{figure}
\\
\begin{figure}
\centering
\scalebox{0.40}
        {\includegraphics{C:/YMR2.png}}
\caption{YMR2}
\label{fig:YMR2}
\end{figure}
Last edited by cgnieder on Tue Aug 21, 2012 9:14 pm, edited 1 time in total.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Figure Scales

Post by cgnieder »

I have two questions still:
  1. Could you please post a link to the buthesis style file or attach it here in the forum?
  2. Are all of the pictures of the same size? This would mean I could experiment with an arbitrary image file of my own. If not you might need to attach them as well.
Best regards
site moderator & package author
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: Figure Scales

Post by rainz »

1. It is a style used in the university. I do not know how to post a link to it. If you could describe me how to find it maybe I could. Sorry I am relatively new to latex :(
2. All the .png's are of the same size
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Figure Scales

Post by cgnieder »

But you must have a buthesis.sty file somewhere on your TeX system, maybe in your project folder. You could attach that one. When you post here below the editor field is a button »Upload attachment«.

Regards
site moderator & package author
Post Reply