<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 11-Oct-20 10:50 PM, Baris Erkus
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:VI1PR0601MB252837042B69DE31E0D05259DE060@VI1PR0601MB2528.eurprd06.prod.outlook.com">
      
      <div class="moz-cite-prefix">On 09-Oct-20 8:02 PM, Andreas Plihal
        wrote:<br>
      </div>
      <blockquote type="cite" cite="mid:trinity-a8320fa3-00e3-435b-9d69-1d69557c2dfa-1602262953503@3c-app-gmx-bap24">
        <div style="font-family: Verdana;font-size: 12.0px;">
          <div><span class="tlid-translation translation"></span>
            <div><span class="tlid-translation translation">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:</span><br>
               </div>
            <ol>
              <li>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.</li>
            </ol>
          </div>
        </div>
      </blockquote>
      <p>You are using <tt>\footnotemark</tt> and <tt>\footnotetext</tt>.
        I tried this with basic LaTeX and both footnotes have 2.
        Obviously and apparently , these two commands cannot follow the
        numbers. Probably <tt>\footnotetext</tt> has to follow <tt><tt>\footnotemark.</tt></tt></p>
      <p>Try this in LaTeX and you will see all the footnote numbers are
        3.</p>
      <p><tt>\documentclass{article}</tt><tt><br>
        </tt><tt><br>
        </tt><tt>\begin{document}</tt><tt><br>
        </tt><tt>    </tt><tt><br>
        </tt><tt>    Testing footnotes. I'm writing something here to
          test \footnotemark several features. Testing the second
          \footnotemark and third \footnotemark.</tt></p>
      <p><tt>    \footnotetext{First footnote}</tt><tt><br>
        </tt><tt>    \footnotetext{Second footnote}</tt><tt><br>
        </tt><tt>    \footnotetext{Third footnote}</tt><tt><br>
        </tt><tt>        </tt><tt><br>
        </tt><tt>\end{document}</tt></p>
      <p>But if you try this one, everything works fine:</p>
      <p><tt>\documentclass{article}<br>
          <br>
          \begin{document}<br>
              <br>
              Testing footnotes. I'm writing something here to test
          \footnotemark several features. <br>
              \footnotetext{First footnote}<br>
              <br>
              Testing the second \footnotemark<br>
              \footnotetext{Second footnote}<br>
              <br>
              and third \footnotemark.<br>
              \footnotetext{Third footnote}<br>
                  <br>
          \end{document}<br>
        </tt></p>
      <p>So, this has nothing to do with LyX. Why don't you use <tt>\footnote</tt>
        instead of <tt>\footnotemark</tt> and <tt>\footnotetext</tt>?</p>
      <blockquote type="cite" cite="mid:trinity-a8320fa3-00e3-435b-9d69-1d69557c2dfa-1602262953503@3c-app-gmx-bap24">
        <div style="font-family: Verdana;font-size: 12.0px;">
          <div>
            <ol>
              <li><span class="tlid-translation translation">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.</span><br>
              </li>
            </ol>
          </div>
        </div>
      </blockquote>
      I am guessing that tcolorbox does not have an automatic page break
      as you would expect. I recommend you look at the manuals of
      tcolorbox and stackexchange pages such as <a moz-do-not-send="true" href="https://tex.stackexchange.com/questions/186709/identify-tcolorbox-page-breaks">this
        one</a>
      (<a class="moz-txt-link-freetext" href="https://tex.stackexchange.com/questions/186709/identify-tcolorbox-page-breaks" moz-do-not-send="true">https://tex.stackexchange.com/questions/186709/identify-tcolorbox-page-breaks</a>)
      <pre class="moz-signature" cols="72">-- 
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
Please bottom-post. Start your reply here:</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
    </blockquote>
    <p>You can also have a look at <a moz-do-not-send="true" href="https://tex.stackexchange.com/questions/263693/footnote-in-a-tcolorbox-environment">this
        one</a>
(<a class="moz-txt-link-freetext" href="https://tex.stackexchange.com/questions/263693/footnote-in-a-tcolorbox-environment">https://tex.stackexchange.com/questions/263693/footnote-in-a-tcolorbox-environment</a>)<br>
    </p>
    <pre class="moz-signature" cols="72">-- 
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
Please bottom-post. Start your reply here:</pre>
  </body>
</html>