Graphics, Figures & Tablesmhchem avoids scaling of images

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Sina
Posts: 2
Joined: Thu May 14, 2020 6:52 pm

mhchem avoids scaling of images

Post by Sina »

Hi,

I have a problem with including, or better to say, scaling figures I am inserting when using the package mhchem.

When I do not use mhchem the figures are included and scaled as I want, but once I load the mhchem package everything goes wrong.
The image is included, but its not possible to scale it in any way and it also appears on top of other parts of the document. It does not matter what kind of image I am trying to include (png, jpg,eps,pdf).
Has anyone an idea what is going wrong or what I am doing wrong?

I am using Latex on a Windows machine using Texmaker. Following the latex code I am using.

Code: Select all

\documentclass{article}

\usepackage[english]{babel}		
\usepackage[T1]{fontenc}						
\usepackage{tabularx}
\usepackage{array}
\usepackage{upgreek}													
\usepackage{booktabs}											
\usepackage{multirow}
\usepackage{siunitx}
\usepackage{tabu}
\usepackage{float}
%\usepackage[version=4]{mhchem}
\usepackage[square,sort,comma,numbers]{natbib}
\usepackage{texshade}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{seqsplit}
\usepackage{enumitem}

\begin{document}
\includegraphics[width=\textwidth]{D://Bilder/Keira2.jpeg} 
\end{document}
Last edited by cgnieder on Fri May 15, 2020 6:41 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

mhchem avoids scaling of images

Post by Bartman »

What happens, when you load texshade before mhchem?
Sina
Posts: 2
Joined: Thu May 14, 2020 6:52 pm

mhchem avoids scaling of images

Post by Sina »

Yes, this is working! :D
Thank you so much, sometimes it can be so easy! :lol:
Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

mhchem avoids scaling of images

Post by Bartman »

Some off topic notes:

tabularx loads array.

The tabu package is currently not maintained.

In most cases you should load the hyperref package last.
Post Reply