mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] custom style help


Chronological Thread 
  • From: Matteo Bertini <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] custom style help
  • Date: Mon, 24 May 2004 16:44:59 +0200

Joris van der Hoeven wrote:

(assign "std-example" (value "example"))

(assign "example"
(macro "body"
(document
(with "font-size" "0.84"
(std-example (document (arg "body"))))))))

Copy & paste both assignments using "Edit -> Paste from -> Scheme"

It works... but how can I create a style file or a package to insert from the menu?

I created a file "my-example.ts" in .TeXmacs/packages

<TeXmacs|1.0.3.7>

<style|source>

<\body>
<active*|
<\src-title>
<src-package|my-example|1.0>
<\src-purpose>
Example with small chars
</src-purpose>
</src-title>>

<assign|std-example|
<value|example>
>
<assign|example|
<\macro|body>
<with|font-size|0.84|
<\std-example>
<arg|body>
</std-example>
>
</macro>
>
\;
\;
</body>

but after Document->Use package->my-example and inserting an "Example" I have:

<macro|*brown*body| <macro|*brown*body|Example 1. *RED*body> >

Where is the problem?
I'm sorry but I can't understand well how styles works...


Thanks,
Matteo



Archive powered by MHonArc 2.6.19.

Top of page