mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] Re: Re: Re: Re: floats in multi-page document


Chronological Thread 
  • From: "Alvaro Tejero Cantero" <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Re: Re: Re: Re: floats in multi-page document
  • Date: Thu, 29 May 2008 14:09:53 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=cmLMx6VSuXDk9Yj9B5xm+84wYez74hNmRfXBqF736kN6OTLwtAJ5fvpJOTkkOORxIFUi4hiyL8aOg+YaTksl7VS56rrHgde3rgMAvs3TTF0zjmvZZnaoSQubKI+CLbvmaIc4y6jNIJd7JLgv91NWmA/5/cFUxmB1KsUQSxuHdpI=

Ok, after a quick test (nevertheless updating everything from every
document, inclusions, image links, all...) I can report just the
opposite:

* I can see the references in chp1 to figures in chp2 when I look at
the master document.
* I cannot see the references in chp1 to figures in chp2 when I look at chp1.

In fact, it is more subtle: the references don't work each other time
I go to chp1 via the "go" menu. There seems to be a general problem in
TeXmacs that going from a buffer to the same buffer inactivates some
expressions...

I attach the files so that you can check if this is setup-specific.

Best luck,

Álvaro.

On Thu, May 29, 2008 at 1:52 PM, <address@hidden> wrote:
> Alvaro,
>
> Thanks for your help. I'm sorry I wasn't clear enough on my previous post.
> The problem is with the references to the figures. The captions show just
> fine.
>
> * When the figure is non-floating, there is no problem.
> * When the figure is floating, the reference to the figure shows as ?.
>
> The steps you you did in order to reproduce the problem are exactly as the
> ones I use in my document. However, I am using a custom book style, but
> that shouldn't make a difference.
>
> Cheers,
> Hadar
>
> Alvaro wrote:
>>Hi,
>>
>>I tried to reproduce your behaviour in my system and had nothing
>>remarkable save for the fact that floats can float into the next
>>chapter if you're in pageless (papyrus) mode.
>>
>>I have assumed that the problem is with the figure numbers in the
>>captions and not with references. This is what I did:
>>
>>1. I created chp1.tm, chp2.tm and master.tm in style book.
>>2. Added a nonfloating figure to chp1 and a floating one to chp2.
>>3. Included chp1.tm and chp2.tm via <include|filename> in master.tm,
>>also with book style.
>>4. Add a floating figure to chp1.tm so now it has 2 figures.
>>5. Run "Update inclusions" to have master reveal the new figure.
>>
>>Álvaro.
>>
>>PS. I also attached the chapters to the master at some point via
>>Tools->Project->Attach to master, but this shouldn't be of any
>>relevance here because AFAIK the mechanism only serves to allow cross
>>references between chapters.
>>
>>
>>On Thu, May 29, 2008 at 10:29 AM, <address@hidden> wrote:
>>> Alvaro wrote:
>>>>First of all, have you run "update all"?
>>>
>>> Yes, of-coarse... I tried all the trivial stuff, such as "update all",
>>>"update inclusions", etc.
>>>
>>>>
>>>>On Tue, May 27, 2008 at 7:39 PM, <address@hidden> wrote:
>>>>> Hi all,
>>>>>
>>>>> I am trying to compile a multi-page document, book style with chapters
>>>>>included. The floats numbers are not recognized for some reason. For
>>>>>example, instead of "Figure 5.3" I'm getting "Figure ?".
>>>>> When viewing the same chapter on it's own, everything looks fine and
>>>>>there's no problem.
>>>>>
>>>>> I'm using ver. 1.0.6.12 on amd64.
>>>>>
>>>>> any ideas???
>
<TeXmacs|1.0.6.12>

<project|master.tm>

<style|book>

<\body>
  <chapter|All or nothing>

  bla bla bla

  <big-figure|This is not a floatign figure|><\float|float|tbh>
    <big-figure|This IS a floating figure (numbered 1.2)|yeeah>

    <reference|chp2:floating>

    <reference|chp2:nonfloating>
  </float>
</body>

<\initial>
  <\collection>
    <associate|prog-scripts|maxima>
  </collection>
</initial>

<\references>
  <\collection>
    <associate|auto-1|<tuple|1|?>>
    <associate|auto-2|<tuple|1.1|?>>
    <associate|auto-3|<tuple|1.2|?>>
  </collection>
</references>

<\auxiliary>
  <\collection>
    <\associate|figure>
      <tuple|normal||<pageref|auto-2>>

      <tuple|normal|yeeah|<pageref|auto-3>>
    </associate>
    <\associate|toc>
      <vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|1<space|2spc>All
      or nothing> <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
      <no-break><pageref|auto-1><vspace|0.5fn>
    </associate>
  </collection>
</auxiliary>
<TeXmacs|1.0.6.12>

<project|master.tm>

<style|book>

<\body>
  <chapter|Everything or none>

  <\float|float|tbh>
    <big-figure||<label|chp2:floating>This is a floatign figure>

    <big-figure||<label|chp2:nonfloating>Figure added after \<less\>include
    ing\<gtr\>>
  </float><reference|chp2:nonfloating>
</body>

<\initial>
  <\collection>
    <associate|info-flag|detailed>
    <associate|prog-scripts|maxima>
  </collection>
</initial>

<\references>
  <\collection>
    <associate|auto-1|<tuple|1|?>>
    <associate|auto-2|<tuple|1.1|?>>
    <associate|auto-3|<tuple|1.2|?>>
    <associate|chp2:floating|<tuple|1.1|?>>
    <associate|chp2:nonfloating|<tuple|1.2|?>>
  </collection>
</references>

<\auxiliary>
  <\collection>
    <\associate|figure>
      <tuple|normal|<label|chp2:floating>This is a floatign
      figure|<pageref|auto-2>>

      <tuple|normal|<label|chp2:nonfloating>Figure added after
      \<less\>include ing\<gtr\>|<pageref|auto-3>>
    </associate>
    <\associate|toc>
      <vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|1<space|2spc>Everything
      or none> <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
      <no-break><pageref|auto-1><vspace|0.5fn>
    </associate>
  </collection>
</auxiliary>
<TeXmacs|1.0.6.12>

<style|book>

<\body>
  <include|chp1.tm>

  <include|chp2.tm>
</body>

<\initial>
  <\collection>
    <associate|preamble|false>
    <associate|prog-scripts|maxima>
  </collection>
</initial>

<\references>
  <\collection>
    <associate|auto-1|<tuple|1|?|chp1.tm>>
    <associate|auto-2|<tuple|1.1|?|chp1.tm>>
    <associate|auto-3|<tuple|1.2|?|chp1.tm>>
    <associate|auto-4|<tuple|2|?|chp2.tm>>
    <associate|auto-5|<tuple|2.1|?|chp2.tm>>
  </collection>
</references>

<\auxiliary>
  <\collection>
    <\associate|figure>
      <tuple|normal||<pageref|auto-2>>

      <tuple|normal|yeeah|<pageref|auto-3>>

      <tuple|normal|This is a floatign figure|<pageref|auto-5>>
    </associate>
    <\associate|toc>
      <vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|1<space|2spc>All
      or nothing> <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
      <no-break><pageref|auto-1><vspace|0.5fn>

      <vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|2<space|2spc>Everything
      or none> <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
      <no-break><pageref|auto-4><vspace|0.5fn>
    </associate>
  </collection>
</auxiliary>



Archive powered by MHonArc 2.6.19.

Top of page