Images on new line instead of in-line

Posted in: Newspaper
Post count: 8

Hi,

I am trying to use LaTeX to show formulas, but the LaTeX images always show up on a new line instead of in-line. How do I get them to show up in-line?

On this page, you can see an instance of that error. https://nhsjs.com/2020/developing-honey-based-antimicrobial-wound-healing-agents-by-integrating-glucose-oxidase-enhancement-with-pectin-hydrogels/

If you search for the words: “Measurements for the zones of inhibition were normalized to values” you will see that the next two images are broken up awkwardly.

Post count: 35449

Hi,
I think you’ll like to be something like this -> https://i.imgur.com/wLc4GBF.png the problem is that wen you set those characters and images those are set like new paragraphs -> https://i.imgur.com/klLVBMV.png
What you can do is to edit the post and set it in code/editor mode and remove the paragraphs, the the images should be set correctly -> https://i.imgur.com/MiwuCrN.png
Also you can try using the options from Gutenberg https://www.wpbeginner.com/beginners-guide/how-to-add-and-align-images-in-wordpress-block-editor/ maybe this can help.
Let me know the results.

Post count: 8

Hi Calin,

Really appreciate the fact that you took the time to take a look at my issue. So the problem is that the text you are seeing is actually written like this in the wordpress editor.

Measurements for the zones of inhibition were normalized to values $\phi$, where

The plugin WP-QuickLaTeX then converts $\phi$ into the proper symbol, creates an image, and then places the image in-line. The plug-in creator says that some themes’ default CSS adds line breaks before/after each image, which may be the issue. Is that a possibility here, and if so, how do I force the image in-line, rather than having the greek letter symbol on its own line each time?

Post count: 35449

Hi, this is a good question, unfortunately, for the moment I didn’t manage to get a solution, I will try to make a test with WP-QuickLaTeX and with our theme maybe there is something easy that can be done and I can provide some suggestions.
Thank you!

Post count: 8

Hi Calin,

I checked and tried to add an in-line image without using LaTeX but it still looks like this even using the inline image function in Gutenberg.

https://i.imgur.com/EjJ04yH.jpeg

Post count: 35449

Hi,
Our theme do not have special elements for adding images in posts, this can be done using the editor from WordPress. I made a few tests and I found out that using the classic element is more easier to achieve what you need, here is a short video about how you can achieve it: http://www.filedropper.com/a34b29e5-a776-469f-9dd0-c799c09a7264
I hope this will help you!

Post count: 8

Hey Calin,

Thanks so much for all the help. It really has made a huge difference!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.