preview environment doesn't render in the document in 2.4.0?
matan guedj
matanel1326 at gmail.com
Wed Jun 26 16:14:16 UTC 2024
On Wed, Jun 26, 2024 at 6:50 PM Udicoudco <udifoglle at gmail.com> wrote:
> On Wed, Jun 26, 2024 at 6:22 PM matan guedj <matanel1326 at gmail.com> wrote:
> > your solution now works, I've read the log and noticed the warning
> 'cprotect.sty' wasn't installed so I installed it and your solution works
> now,
> > but (sorry for being so persistent) it's way less intuitive and easy to
> do, it's a very specific solution where my problem with the preview
> environment is global.
>
> It is possible that you are missing other packages that other
> documents depend on.
> You cam install the full scheme to avoid such problems.
>
> > I also don't understand, why your solution works?
>
> As I said, it is impossible to insert floats (or any movable thing)
> inside boxes.
> LaTeX simply does not support that. see https://texfaq.org/FAQ-parmoderr.
> My solution was to simply put the preview box inside the float, instead
> of the other way around.
>
> >and why did in 2.3.7 it all worked perfectly well with no intervention on
> my part?
>
> The example you attached does not work in 2.3.7, so for this case
> I'm not sure what you mean.
>
> As for the problem with missing packages, LyX 2.4 might depend on
> different LaTeX packages than LyX 2.3, so if you did not install these
> packages you might suffer from such unexpected changes.
>
> > but when I read my log file, I can't see such an error
>
> What do you mean by "such an error"? The error message
> below is a consequence to the float inside the box.
>
> > and on line 597-607 I get:
> > "
> > ! LaTeX Error: Not in outer par mode.
> >
> > See the LaTeX manual or LaTeX Companion for explanation.
> > Type H <return> for immediate help.
> > ...
> >
> > l.62 \caption
> > {Merge Sort $(A,p,r)$} \Comment{$A$ is the array, $p$ is
> the le...
> >
> > You've lost some text. Try typing <return> to proceed.
> > If that doesn't work, type X <return> to quit.
> > "
>
> All other messages are warnings not errors. The one with the aux you can
> ignore,
> but you should probably change your margins if you want to use marginal
> notes,
> otherwise ignore the other warning as well.
>
> > important to mention that the lyx file compiles to PDF with no errors at
> all.
>
> When LyX export to pdf it ignores anything related to preview boxes,
> so the float is not inside a box in the actual LaTeX export, just in the
> temporary files for the preview.
>
> Udi
>
>
ohhh, i understand you now, the way i wrote the code was creating a float
inside the preview because of the algorithmic/algorithm package,
might you know of a package that does the same thing (writing code/pseudo
code) but without creating a float inside? so I could use it simply with
the preview
and thank you very much! this whole ordeal taught me not little about
"easy" debugging in lyx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20240626/00be380f/attachment.html>
More information about the lyx-users
mailing list