mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] A symbol for the text insertion bar


Chronological Thread 
  • From: Sam Liddicott <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] A symbol for the text insertion bar
  • Date: Wed, 9 May 2012 18:28:53 +0100

Thanks for that answer.

I came up with this so far, a macro called tip (for text insertion point):

<assign|tip|<macro|<with|gr-mode|<tuple|edit|line>|gr-frame|<tuple|scale|1fs|<tuple|0.5gw|0.5gh>>|gr-geometry|<tuple|geometry|3ln|1ex|bottom>|gr-color|red|gr-auto-crop|false|<graphics||<with|color|red|<line|<point|0gw|0ln>|<point|1gw|0ln>>>|<with|color|red|<line|<point|0.5gw|0ln>|<point|0.5gw|1gh>>>|<with|color|red|<line|<point|0gw|1gh>|<point|1gw|1gh>>>>>>>

<\with|font-base-size|94>
  aX<tip>q<tip>
</with>

<tip>a<tip>X<tip>

Unlike the real insertion point it's size is based on the font size, but I can't find a unit of measure to represent the height of an upper-case X.
1fn is too high.

It will do for now, though...

Sam


On Wed, May 9, 2012 at 2:45 PM, Miguel de Benito Delgado <address@hidden> wrote:
Hi,
  what does 

a symbol (or macro) to draw the text insertion point that texmacs uses.

mean? The red, double T text cursor? I doubt it's a character, so you'll have to draw it: either use the virtual font mechanism or a small image, then <superpose> stuff or use evil-negative-spaces to render it close to text.
________________
Miguel de  Benito.







Archive powered by MHonArc 2.6.19.

Top of page