LyXGraphics scale, width and height ignored

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
JoeWright
Posts: 1
Joined: Mon Aug 08, 2016 6:01 pm

Graphics scale, width and height ignored

Post by JoeWright »

Hi, I'm new to Lyx and I'm having a problem with scaling jpgs.

Clicking on the image gives me the options to change scale, width and/or height. But none of them have any effect on the PDF or Words outputs.

Here's the top bit:

Code: Select all

%% LyX 2.2.0 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm,headheight=0cm,headsep=0cm,footskip=0cm}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{graphicx}
\usepackage{babel}
\begin{document}
and here's some examples of the graphics bits:

\includegraphics[width=6cm,height=3cm,keepaspectratio]{Racket.JPG}
\includegraphics[scale=0.25]{PPADC.JPG}


Any ideas?

Thanks, Joe

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Graphics scale, width and height ignored

Post by Stefan Kottwitz »

Hi Joe,

welcome to the forum!

I don't have LyX installed (perhaps another reader does) but I could test the LaTeX export file. Perhaps post your .lyx file (for LyX testers) and the LaTeX export file and an image as attachment to a post, here in to forum. So we could verify and fix the issue.

Of course you could post a reduced copy, as long as it shows the issue.

Stefan
LaTeX.org admin
Post Reply