mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] bold symbols in TeXmacs


Chronological Thread 
  • From: Sam Liddicott <address@hidden>
  • To: Youjun Hu <address@hidden>
  • Cc: "address@hidden" <address@hidden>
  • Subject: Re: [TeXmacs] bold symbols in TeXmacs
  • Date: Thu, 23 Apr 2015 17:25:42 +0100

You may be able to use sed to avoid some of the tedium

sed -i.bak -e 's/<with|math-font-series|bold|\(.*\)>/\\<b-up-\1\\>/g' *.tm

if it works well, you can delete the .bak files

Sam

On Mon, Apr 13, 2015 at 6: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/





Archive powered by MHonArc 2.6.19.

Top of page