LyXMargin material sharing figure blank space?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
jotaace
Posts: 4
Joined: Wed Jan 02, 2013 9:29 pm

Margin material sharing figure blank space?

Post by jotaace »

Hello all,

I'm writing my thesis and I'm trying to obtain a format like that:
Sin título-1.jpg
Sin título-1.jpg (129.69 KiB) Viewed 3027 times
To achieve that, I'm using the footmisc package with the [side] option, and the marginfix package to avoid notes slipping out of the page. I've even used the sidecap package trying the next layout:
Sin título-2.jpg
Sin título-2.jpg (138.93 KiB) Viewed 3027 times
Unfortunately, the only thing I've got is notes with the maximum height of text below figures, like the next:
Sin título-3.jpg
Sin título-3.jpg (120.78 KiB) Viewed 3027 times
Since I need big images and a great amount of notes, floating margin notes often jump to the following pages, even two or three pages forward. I've tried everything I've found in forums and LaTeX pages, without any success (floatrow, picins, floatflt, and so on). I guess the problem is something related to floating stuff, but I'm a newbie (and using LyX), and have not yet the required skills to achieve the goal. My last attempt was a kind of "hack" of the *wrapfig* environment, placing the wrapfigure with a 100% text width, and floating margin material did indeed climb the margin up, but sadly the figure pushed the first line of the paragraph to appear in the margin, overlapping the margin note, as shown next:
Sin título-4.jpg
Sin título-4.jpg (133.18 KiB) Viewed 3027 times
I'd like to attach a MWE for all of that, but as I've told, I'm using LyX and have a really complicated preamble. I'll really appreciate any suggestion. Thanks to all and apologies for my english.

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: Margin material sharing figure blank space?

Post by Stefan Kottwitz »

Hi jotaace,

welcome to the board!

My first thought was, that unusual layouts may be hard to achieve, indeed. Common layouts are implemented and there are many classes and packages prepared.

Is it a fancy idea to put side captions into the margin, or a requirement? Do you know books in your field of science which do this? How do it the majority of the books?

I know that common style is to put captions above or below. More concrete, it's often the case that figure captions are below, and table captions are above, but this may vary.

If you really would like to implement this, I guess we actually need a MWE, as you mentioned, to test and to verify. We don't fear complicated preambles. It would just be good if you clean the preamble and remove nonrelevant packages and settings, i.e. create a copy of your document, which is much reduced but still compilable and shows the problem. This highly improves chances to get a solution. Otherwise the talk might be quite theoretically.

Stefan
LaTeX.org admin
jotaace
Posts: 4
Joined: Wed Jan 02, 2013 9:29 pm

Margin material sharing figure blank space?

Post by jotaace »

Hello Stefan, thanks for your answer.
I attach three MWEs, [1] have the appearance I wanted, but only works with short notes that don't invade the figure space. Example [2] shows how the side note jumps to another page when bigger; and [3] shows the wrapfigure "hack", the side note correct beside the figure, and the first line of the paragraph going wrongly into the margin. I've compiled all three succesfully with TeXWorks and pdflatex.
MWE-1.tex
(1.41 KiB) Downloaded 258 times
MWE-2.tex
(1.46 KiB) Downloaded 268 times
MWE-3.tex
(1.41 KiB) Downloaded 253 times
jotaace
Posts: 4
Joined: Wed Jan 02, 2013 9:29 pm

Re: Margin material sharing figure blank space?

Post by jotaace »

Friends,

Due to the lack of replies, do you think that this topic should be moved to a more LaTeX-specific forum instead of LyX's?

Thanks
Post Reply