mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] custom style help


Chronological Thread 
  • From: Joris van der Hoeven <address@hidden>
  • To: Matteo Bertini <address@hidden>
  • Cc: <address@hidden>
  • Subject: Re: [TeXmacs] custom style help
  • Date: Mon, 24 May 2004 14:11:33 +0200 (CEST)


On Mon, 24 May 2004, Matteo Bertini wrote:
> Hi all, I'm an happy texmacs user, and so let's start with a:
>
> Thank you for your work!!
>
> ... and now the question:
>
> can someone provide me a very simple custom style that... for example
> redefine the Example to have a smaller font?
>
> Like <with|font-size|0.84|>

What about

(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"

> I'd like to have a border surrounding all example, but I think now as
> now it is not possible? Right?

Try

(assign "example"
(macro "body"
(document
(block (tformat (table (row (cell
(document
(with "font-size" "0.84"
(std-example (document (arg "body")))))))))))))

and/or

(assign "example"
(macro "body"
(document
(block
(tformat (twith "table-width" "1par")
(table (row (cell
(document
(with "font-size" "0.84"
(std-example (document (arg "body")))))))))))))

More generally, read

Help -> Manual -> Writing your own style files




Archive powered by MHonArc 2.6.19.

Top of page