Skip to Content.
Sympa Menu

texmacs-users - [TeXmacs-users] Show/Hide texts according to a variable

Subject: mailing-list for TeXmacs Users

List archive

[TeXmacs-users] Show/Hide texts according to a variable


Chronological Thread 
  • From: Frank <address@hidden>
  • To: TeXmacs <address@hidden>
  • Subject: [TeXmacs-users] Show/Hide texts according to a variable
  • Date: Sat, 25 Jul 2020 17:48:46 +0200

Dear all,

I am trying to implement a macro which allows me to show texts according to the value of a variable. I tried the following:

(document (assign "shown-draft" (macro "body" (if (draft-mode) (arg "body")))) (assign "draft-mode" "true"))

However, I see that this macro is buggy. For example,

(shown-draft (document "s" "e" "alsdkjf asdlfja asdlfj asldkfj asldfk jasldkfj lkasj alskdjf lkasjd  alsdkjfl jasdlkf jalsfj laskdj flajsdf lkjasd lkjaslkfjlaksjdf lajs dflkjaslfkjlkj lajs ldksaj lkajs lkfjsalk jask jfkls jladsj ljadslkj laskdj fljsd ljalksdf jlaksdjf lkjaslkd fjalksjfd ljasl jasdlkf jlkajs lkasldk j"))

Then this extremely long line does not break. I wonder how to deal with this properly?

Best,

Frank




Archive powered by MHonArc 2.6.19.

Top of Page