Problems with LyX

Paul A. Rubin parubin73 at gmail.com
Fri Oct 9 17:50:30 UTC 2020


On 10/9/20 1:02 PM, Andreas Plihal wrote:
> Dear community,
> a few days ago I wrote you my problem in german. Sorry for that. 
> Instead of it I will try it with my (bad) english:
>
> I have produced around 120 A4 pages with LyX, interspersed with much 
> mathematical formulas. I choose the KOMA-script for books for it. The 
> content is finished, now I'm fine-tuning the shape. In doing so, I 
> carefully consult the manuals enclosed with the software:
>
>   * Introduction
>   * Tutorial
>   * User Guide
>   * Extensions
>   * Adjustments
>   * Embedded Objects
>   * Special manuals
>   * Etc.
>
>
> I have already been able to solve a number of problems this way.
>
> But now I am facing a tricky problem. And I don't know if the problem 
> is with me, with LyX or with its documentation. In all honesty, I'm a 
> little confused. I try to tell you the cause of my confusion.
>
> I want to include boxes for mathematical examples in my book. To do 
> this, I chose the so called 'colored boxes', divided them into an 
> upper part (for the mathematical example) and a lower part (for its 
> solution), was able to underlay both parts with different colors (for 
> making it pretty), choose a pretty thin boxrule and finally managed to 
> make the box breakable. I can even place the text for footnotes inside 
> the box outside the box. Unfortunately, two strange things happen in 
> this process:
>
>  1. I put 2 footnotes in the box. Outside the box, however, both
>     footnote texts are quoted with the same No. 2. A footnote text
>     with No. 1 does not even exist.
>  2. I made the entire text in the collor box long enough, so there
>     MUST be arise a page break. This puts the first footnote on the
>     first page and the second on the second page of the box. Now the
>     two footnote texts should be shown on the corresponding pages. But
>     they won't, both are shown on the second page.
>
> So far so bad.
>
> And now comes my real problem, which arises when I try to fix the 
> problem above:
>
> In the various manuals
>
>   * Tutorial 5.2.4.2;
>   * UserGuide 6.7.1, 6.10.2, B.18,
>   * Additional 2.4.1, 2.4.2, 2.4.3, 2.5, 3.4, 3.5.2, 5.6.2, 6.2.3,
>     6.2.4.2, 6.2.5.4, 6.7.3, 6.7.5.1, 6.7.5.2, 6.9 .3, 6.11.3, 6.12.3,
>     6.12.4, 6.13.2, 6.16, 6.16.2, 6.18.4.3, 8.1.3.1;
>   * EmbeddeObjects 2.5, 2.6.3, 2.6.3.2, 2.7.1, 2.8.2.2, 2.8.3, 2.8.4,
>     2.9, 2.11.1, 2.11.2, 2.11.3, 2.13, 2.14.1, 2.14.3 , 2.14.4,
>     2.14.5, 3.2.1, 3.3, 3.4.1, 3.4.2, 3.4.3, 3.5, 3.9, 3.10, 4.1,
>     4.2.1, 4.2.2, 4.3, 6.3, 8;
>   * Customization 5.3.5, 5.3.7, 6.2.2
>
>
> it is always advised to add into the preamble in some situations.
>
> However, in the manual, for example 'Additional 2.4.2 - Change the 
> preamble' is written:
> /The commands LyX adds to the header of a LaTeX file are fixed; You 
> cannot change them without changing LyX yourself. But you can add your 
> own stuff to the preamble.
> To do this, choose Document⇒Settings⇒LaTeX header. This opens an 
> editing window in which you can write your preferred commands.
>
> The editing behavior in this window is specific, so don't expect the 
> LyX key combinations to work in it.
> LyX adds everything in the LaTeX leader window to its built-in leader. 
> Before you add your own declarations to the header, check to see if 
> LyX doesn't already support this (remember what we said about 
> reinventing the wheel?). Also: make sure your headers are correct. LyX 
> doesn't check it. If the opening credits are incorrect, you will most 
> likely get the error message Missing \ begin {document}. If you ever 
> get them, check your opening credits!/
> Nice. When I try to change the preamble, I regularly read the LaTeX 
> preamble shown in LyX in its first line:
>
> /% Do not change the preamble !!!/
> Even if I ignore that, I can't add anything to the preamble - that 
> seems to be technically impossible in LyX.
>
> Now the manual UserGuide '3.1.2.4 - Local Format' says:
> /Modules work with LyX like packages with LaTeX: They are meant to be 
> used in different documents. If you often need the same thing in 
> different documents, you should consider writing a module for it. 
> Sometimes, however, you need a format for a particular document, but 
> only in that one document. Something like a document-specific LaTeX 
> preamble: LyX ’ so-called 'local format'. See the Local Layout section 
> of the Customization Guide for information on how to use it./
> When I try to find the various in the above Manuals to accommodate the 
> changes proposed there in the 'local format', I regularly receive the 
> message after validation:
> /Format is invalid!/
> Can you please help me?
> Greetings
> Andreas Plihal
>
Can you create (and post here) a minimal example showing the two 
problems (the missing footnote number 1 and the box spanning pages with 
both footnotes on the second page)? (The box contents do not matter, so 
long as the document demonstrates the problems.)

Cheers,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20201009/eb3329ee/attachment.html>


More information about the lyx-users mailing list