LyX ⇒ Scaling vector graphics in LyX
Scaling vector graphics in LyX
I have several vector-graphs with molecule structures (carbon atoms connected by lines: H2C=CH-CH3). They all have different length/height/aspect ratio.
I have them in .emf format.
When I put them in the LyX document and make a pdf, all of them are scaled differently.
Bigger molecules have atoms sized like "c", and smaller molecules are sized like "C".
I use scaling size "20%" for all.
Is there any way to scale them similarly? Like dpi or something?
Of course I could adjust individual size in "%" or individual width, but I'm looking for a better solution.
Thanks.
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
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: Scaling vector graphics in LyX
In the graphics settings, click on "set width" and put, e.g. '4' in the box and leave 'cm'. Or use "Text Width %".
To give sets of images the same settings, consider using "Graphics group" (in graphics setting look at the "LaTeX and LyX options" tab).
Re: Scaling vector graphics in LyX
- Attachments
-
- graphs.jpg (44.84 KiB) Viewed 6692 times
Reason: Preferably no external links (see Board Rules). Attachments go onto the forum server where possible.
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: Scaling vector graphics in LyX
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Scaling vector graphics in LyX
You have to make sure, that the inputsize is thhe same.
BTW: do you now about chemfig?
Best regards
Johannes
Re: Scaling vector graphics in LyX
So if I scale them to have the same width, then atom sizes will become different.
That is the problem, that vector graphic doesn't have its original "size". It is always scaled to what a user or a program define.
Thanks for the link to the chemfig.