mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] bold symbols in TeXmacs


Chronological Thread 
  • From: Miguel de Benito Delgado <address@hidden>
  • To: "address@hidden" <address@hidden>
  • Subject: Re: [TeXmacs] bold symbols in TeXmacs
  • Date: Wed, 27 May 2015 09:55:59 +0200

Hi,

I know it's a bit late now, but for the record here's a hack:

In your my-init-texmacs.scm add

(use-modules (texmacs keyboard latex-kbd))
(kbd-commands
    ("mathbf" "Use bold font series" (emulate-keyboard "C-F6")))

This is probably not the best way to achieve it, but it illustrates a handy trick.

Cheers,

--
Miguel de  Benito.

On Mon, Apr 13, 2015 at 7:03 AM, Youjun Hu <address@hidden> wrote:
Hi all,

It is a convention in math and physics that vectors are denoted by bold and upright symbols.
In texmacs-1.0.7 (I had used this version for 8 years), I input vectors by using latex commands \mathbf. However, the characters input this way are bold but not upright.
When I ask about this issue on the mail list (2011).
Joris van der Hoeven made the following comments: "we should interpret bold upright symbols as special symbols, and not as standard symbols in a fancy font. This requires to add several Unicode characters to TeXmacs, which is somewhat a hassle for me right now, but on the todo list."
It seems to me that the things on the todo list has been implemented in the TeXmacs-1.99.2.
The bold upright symbols can be input by using C-F6-x, where x is a character desired (corresponding to the .tm source code \<b-up-x\>).
In TeXmacs-1.99.2, the latex command \mathbf seems to be disabled, and it no longer generates bold fonts.
However all the .tm files created by me before using texmacs-1.99.2 are using the \mathbf command to generate bold characters.
To make these old .tm files able to be viewed in Texmacs-1.99.2, I edit the source of the .tm file by using emacs and do the following regexpress replace:
 regexp replace: <with|math-font-series|bold|\(.*\)>
to  \\<b-up-\1\\>
Although this works, but it is tedious since I have lots of old .tm files that use \mathbf.

My question is:
Is it possible to make the latex simulator \mathbf still generate bold fonts in Texmacs-1.99.2?

Best,
Youjun

--
YouJun Hu
Institute of Plasma Physics
Chinese Academy of Sciences
Hefei, 230031, P. R. China
Email: address@hidden
Phone: +86-18256900186 (cell), +86-551-5593246
Homepage: http://theory.ipp.ac.cn/~yj/




  • Re: [TeXmacs] bold symbols in TeXmacs, Miguel de Benito Delgado, 05/27/2015

Archive powered by MHonArc 2.6.19.

Top of page