mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] Creating table with macro (was: Bridge macros?)


Chronological Thread 
  • From: Jan Alboszta <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Creating table with macro (was: Bridge macros?)
  • Date: Fri, 29 Oct 2004 13:55:52 +0200
  • Organization: Gwozdzie SA

Hello
I have found solution which looks like temporary hack, but works for me.
Don't know why some other tries failed. In long time I think about
equivalent of bridge-i.sty, so it will not be so much pine to convert
from and to latex, but it will probably will end of some style which will
suit my needs... If someone is interested in such .ts file I can send. But
it's not complete yet.

Anyway here is what I've done for bidding:

(assign "pierwszyN" (macro (concat (assign "Pierwszy" "N") (assign "Drugi"
"E") (assign "Trzeci" "S") (assign "Czwarty" "W"))))

(assign "naglowek" (macro (
tabular (tformat (cwith "1" "-1" "1" "-1""cell-halign" "c")
(cwith "1" "-1" "1" "-1" "cell-width" "2cm")
(table
(row (cell (value ""Pierwszy")) (cell (value "Drugi"))
(cell (value "Trzeci")) (cell (value "Czwarty"))))))))

(assign "lic2" (macro "x"(tformat
(twith "table-min-cols" "4")
(twith "table-max-cols" "4")
(cwith"1" "-1" "1" "-1" "cell-width" "2cm")
(cwith"1" "-1" "1" "-1""cell-halign" "c")
(arg "x"))))

(assign"lic" (macro"x"(concat(naglowek) (next-line)
(tformat
(twith"table-min-cols""4")
(twith"table-max-cols" "4")
(cwith "1" "-1" "1""-1""cell-width""2cm")
(cwith"1" "-1" "1" "-1" "cell-halign" "c")
(arg"x")))))

lic is the one used.
Is it possible to disallow end-user to call some macros?
Something like variables with @ in latex.

Table creating macro inside macro wants values of all cells. So they can't
be nested. It looks like a kind of bug, but probably it's philosophy.

pozdr.
Jan Alboszta

--
Ostatnie słowa bohaterów:
"Idziemy w prawo?"



Archive powered by MHonArc 2.6.19.

Top of page