Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] Macros involving item don't wrap correctly

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] Macros involving item don't wrap correctly


Chronological Thread 
  • From: Jan Lellmann <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Macros involving item don't wrap correctly
  • Date: Mon, 04 Apr 2011 17:56:21 +0200

Hello,

I did read most of the documentation, but I admit some concepts are quite difficult to grasp from the manual without visualization.

I just saw that I forgot to mention that <IND> is defined as <hspace|.5cm> in the original mail.

I can adjust the left indentation of the whole line (including the bullet/line number), but I can't get the space _between_ the bullet/line number and the text. Does Texmacs allow this?

Jan

On 04.04.2011 09:38, Sam Liddicott wrote:

On 03/04/11 20:20, Jan Lellmann wrote:

Thanks, that solved one of the problems.

Now I cannot find a way to put an indentation _between_ the list item
(i.e. the line number) and content.

Using something like

<assign|STATE1|<macro|body|<IND><arg|body>>>

produces the "no line wrap" effect.

<assign|STATE1|<macro|body|<surround|<IND>||<arg|body>>>>

shows no indentation at all. Using <indent-left> indents _before_ the list
list item. How can this be done? Do I need to use an invisible table or
something similar?


I think you need to read all of the documentation at:
http://www.texmacs.org/tmweb/manual/web-manual.en.html
but particularly you may want the white-space primitives helpful:
http://www.texmacs.org/tmweb/manual/webman-primitives.en.html


Jan

On 01.04.2011 12:41, Sam Liddicott wrote:
Try this:

<assign|alg-item|<\macro|body>
<surround|<compound|item>||<arg|body>>
</macro>>

Two things made a different: One was using<surround> which is for this
purpose,
also in View, Edit Source Treemode make sure you don't see the word
"document"
inside you parameter to alg-item, it also can affect it.

The above macro and with the above check in Source Tree mode fix your
problem
for me.

Sam

On 01/04/11 10:51, Jan Lellmann wrote:
<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>


--
[FSF Associate Member #2325]<http://www.fsf.org/register_form?referrer=2325>

<http://www.openrightsgroup.org/>





Archive powered by MHonArc 2.6.19.

Top of Page