Subject: mailing-list for TeXmacs Users
List archive
From : "David G. Wonnacott" <address@hidden>- To: address@hidden
- Subject: Re: [TeXmacs] Macros involving item don't wrap correctly
- Date: Thu, 04 Aug 2011 12:22:27 -0400
Hi again TeXmacs folks,
I'm having trouble with line-wrapping of items inside floating figures, which is perhaps related to this thread, though what I've seen of this thread has not enlightened me as to a fix, since I'm not writing a macro.
See the attached .tm and .pdf for details.
Thanks for any help you can provide,
Dave Wonnacott
On 4/1/11 5:51 AM, Jan Lellmann wrote:
Hello,<TeXmacs|1.0.7.3>
I'm trying to build a custom "algorithmic" environment. When I try to define a macro "alg-item" that generates an "<item>", Texmacs doesn't wrap the line anymore (see demo below).
Any ideas why?
Best Regards,
Jan
----
<TeXmacs|1.0.7.3>
<style|generic>
<\body>
<assign|alg-item|<\macro|body>
<compound|item><arg|body>
</macro>>
<\itemize>
<item>item item item item item item item item item item item item item
item item item item item item item item item item item item item item
item item item item item item item item item item item\
<\alg-item>
state state state state state state state state state state state state
state state state state state state state state state state state state
state state\
</alg-item>
<item>item item item item item item item item item item item item item
item item item item item item item item item item item item item item
item item item item item item item item item item item
<\alg-item>
state state state state state state state state state state state state
state state state state state state state state state state state state
state state\
</alg-item>
</itemize>
</body>
<\initial>
<\collection>
<associate|language|american>
<associate|page-type|letter>
<associate|preamble|false>
</collection>
</initial>
<style|book>
<\body>
<chapter|In Which we Attempt a List in a Figure>
I am trying to create a floating figure that contains a list in which the
items may span several lines, but am having trouble because when I try this
the items don't ``wrap''. This is with TeXmacs 1.0.7.3 running on Ubuntu
10.04.
Here, I create the figure --\<gtr\> <\float|float|tbh>
<\big-figure>
<label|fig-long-items>
<\description-aligned>
<item*|1a>Create a figure with Insert-\<gtr\>Page
Insertion-\<gtr\>Floating figure
<item*|1b>Label and caption the figure, just because I always do that
<item*|2a>Create the list with the ``Aligned'' style
<item*|2b>Other styles may demonstrate the problem; I've not checked
<item*|2c>I'm using aligned because I happen to want slighly strange
numbering
<item*|3>Enter some really really long text, to demonstrate that it
goes off into the margin rather than wrapping each line as I wanted
it to.
<item*|4>Create a simplified copy just giving these instructions, to
veryify the problem
<item*|5>Get help from TeXmacs-users mailing list.
</description-aligned>
\;
</big-figure|The long-item list in a figure.>
</float> \<less\>--, known as Figure <reference|fig-long-items>. Note the
problem reading all of Step 3.
Here is a copy of the content of the figure, which line-wraps just fine:
<\description-aligned>
<item*|1a>Create a figure with Insert-\<gtr\>Page
Insertion-\<gtr\>Floating figure
<item*|1b>Label and caption the figure, just because I always do that
<item*|2a>Create the list with the ``Aligned'' style
<item*|2b>Other styles may demonstrate the problem; I've not checked
<item*|2c>I'm using aligned because I happen to want slighly strange
numbering
<item*|3>Enter some really really long text, to demonstrate that it goes
off into the margin rather than wrapping each line as I wanted it to.
<item*|4>Create a simplified copy just giving these instructions, to
veryify the problem
<item*|5>Get help from TeXmacs-users mailing list.
</description-aligned>
\;
</body>
<\initial>
<\collection>
<associate|font-base-size|11>
<associate|page-medium|paper>
<associate|page-type|letter>
</collection>
</initial>
<\references>
<\collection>
<associate|auto-1|<tuple|1|1>>
<associate|auto-2|<tuple|5|1>>
<associate|fig-long-items|<tuple|1.1|1>>
</collection>
</references>
<\auxiliary>
<\collection>
<\associate|figure>
<tuple|normal|The long-item list in a figure.|<pageref|auto-2>>
</associate>
<\associate|toc>
<vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|1<space|2spc>In
Which we Attempt a List in a Figure>
<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>
Attachment:
list-in-fig.pdf
Description: Adobe PDF document
- Re: [TeXmacs] Macros involving item don't wrap correctly, David G. Wonnacott, 08/04/2011
- Message not available
- [TeXmacs] Re: How to find errors in a TeXmacs document?, David G. Wonnacott, 08/09/2011
- Re: [TeXmacs] Re: How to find errors in a TeXmacs document?, Sam Liddicott, 08/09/2011
- [TeXmacs] Re: How to find errors in a TeXmacs document?, David G. Wonnacott, 08/09/2011
- Message not available
- Re: [TeXmacs] Macros involving item don't wrap correctly, Sam Liddicott, 08/09/2011
- [TeXmacs] TeXmacs 1.0.7.7 generating bad PDF, unlike 1.0.7.3 ("Oh, help and bother!"), David G. Wonnacott, 08/12/2011
- [TeXmacs] Re: TeXmacs 1.0.7.7 generating bad PDF, unlike 1.0.7.3 ("Oh, help and bother!"), David G. Wonnacott, 08/12/2011
- [TeXmacs] Re: TeXmacs 1.0.7.7 generating bad PDF, unlike 1.0.7.3 ("Oh, help and bother!"), Paul Zarucki, 08/12/2011
- Re: [TeXmacs] Re: TeXmacs 1.0.7.7 generating bad PDF, unlike 1.0.7.3 ("Oh, help and bother!"), David G. Wonnacott, 08/12/2011
- [TeXmacs] Re: TeXmacs 1.0.7.7 generating bad PDF, unlike 1.0.7.3 ("Oh, help and bother!"), Paul Zarucki, 08/12/2011
- [TeXmacs] Re: TeXmacs 1.0.7.7 generating bad PDF, unlike 1.0.7.3 ("Oh, help and bother!"), David G. Wonnacott, 08/12/2011
Archive powered by MHonArc 2.6.19.