mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] References to labels following in the text


Chronological Thread 
  • From: Ralf Juengling <address@hidden>
  • To: Joris van der Hoeven <address@hidden>
  • Cc: address@hidden
  • Subject: Re: [TeXmacs] References to labels following in the text
  • Date: Tue, 29 Oct 2013 07:34:34 -0700 (PDT)


Thanks, Joris. I was just about to post another email.

Jeremy's workaround fixes the problem with the references (thank you!),
but that workaround is not perfect: putting a label just after a figure changes the spacing to the paragraph following the figure. Attached
another little doc which shows this.

Ralf


On Tue, 29 Oct 2013, Joris van der Hoeven wrote:

On Tue, Oct 29, 2013 at 05:48:31AM -0700, Ralf Juengling wrote:
I managed to create a small document which shows the problem (attached).

Thanks. As Jeremy noticed, the problem indeed comes from the fact that
the labels are put inside the captions _and_ the list of tables and figures
(with the same captions including the labels) are put at the start of the
document.

I think that I found a final fix for this kind of problems by
automatically removing all labels when creating tables of contents,
lists of tables/figures, etc. I just did the commit on SVN.

Best wishes, --Joris
<TeXmacs|1.0.7.19>

<style|book>

<\body>
  <\list-of-figures|figure>
    <glossary-1|<label|fig-foo-figure>There might be a multiline figure
    caption here. It depends on how long it is. It could be one line or two
    lines or three lines. blahblah|<pageref|auto-3>>

    <glossary-1|There might be another multiline figure caption here. It
    depends on how long this one is. It could be one line or two lines or
    three lines. blahblah|<pageref|auto-4>>
  </list-of-figures>

  <chapter|Figure Reference Problem>

  Figure <reference|fig-foo-figure> shows a foo.

  <big-figure|foo|<label|fig-foo-figure>There might be a multiline figure
  caption here. It depends on how long it is. It could be one line or two
  lines or three lines. blahblah>

  There is some text following Figure <reference|fig-foo-figure>. When the
  label is inside the caption, then the spacing between the figure and the
  following paragraph looks good. \ 

  Figure <reference|fig-bah-figure> below shows a bah.

  <big-figure|bah|There might be another multiline figure caption here. It
  depends on how long this one is. It could be one line or two lines or three
  lines. blahblah><label|fig-bah-figure>

  There is also some text following Figure <reference|fig-bah-figure>. Now
  the label is outside the caption and the spacing between figure and this
  paragraph does not look good.

  \;
</body>

<\references>
  <\collection>
    <associate|auto-1|<tuple|?|1>>
    <associate|auto-2|<tuple|1|3>>
    <associate|auto-3|<tuple|1.1|3>>
    <associate|auto-4|<tuple|1.2|3>>
    <associate|auto-5|<tuple|2|5>>
    <associate|auto-6|<tuple|2.1|7>>
    <associate|auto-7|<tuple|2.2|7>>
    <associate|auto-8|<tuple|2.2|7>>
    <associate|fig-bah-figure|<tuple|1.2|3>>
    <associate|fig-bah2-figure|<tuple|?|3>>
    <associate|fig-foo-figure|<tuple|1.1|3>>
    <associate|fig-foo2-figure|<tuple|?|3>>
    <associate|tab-rock-table|<tuple|2.2|7>>
    <associate|tab-some-table|<tuple|2.1|7>>
  </collection>
</references>

<\auxiliary>
  <\collection>
    <\associate|figure>
      <tuple|normal|<label|fig-foo-figure>There might be a multiline figure
      caption here. It depends on how long it is. It could be one line or two
      lines or three lines. blahblah|<pageref|auto-3>>

      <tuple|normal|There might be another multiline figure caption here. It
      depends on how long this one is. It could be one line or two lines or
      three lines. blahblah|<pageref|auto-4>>
    </associate>
    <\associate|toc>
      <vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|List
      of figures> <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>|1<space|2spc>Figure
      Reference Problem> <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-2><vspace|0.5fn>
    </associate>
  </collection>
</auxiliary>



Archive powered by MHonArc 2.6.19.

Top of page