On 2013-02-24, Paul Johnson wrote:
> I need customization help to change all math usages of a variable x to
> \bm{\mathrm{x}} AND to make it easier to enter those  in the future.

> Why?

> I'm late to the math style party.  Until now, I've not paid attention
> to the conventions of style for variables, matrices, and vectors. It
> was all "math" to me. I didn't put functions like "sin" or "log" as
> plain characters. 

In LyX, you should/could write "\sin" or "\log" for mathematical functions.

> I did not notice that d in  "dx/dy" is upright.
> Lots of complications! The LyX math guide explains a lot of this, I've
> just ignored it until now. But a Microsoft Word user pointed out my
> laziness and now must respond.

> Many people think a vector can't just be a math x, it is supposed to
> be roman, not italics, and bold.  

The standard (ISO 80000-2) is bold-italic. This is also the
recommendation by many international science bodies (see below). However,
some non-standard house styles use upright bold.

The details of ISO-conforming mathematical typesetting are in
http://mirrors.ctan.org/macros/latex/contrib/isomath/isomath.html


> Political Analysis, in their style
> page 
> (http://www.oxfordjournals.org/our_journals/polana/for_authors/general.html),
> recommends using package bm for bolding things.

> They have this suggestion for raw LaTeX users, to create a macro \vm:


> I don't know why one would prefer bm over boldsymbol or the other
> things that appear now in the LyX math menus for fonts. Can I make LyX
> aware of \vm?

Add

> \usepackage{bm}

to Document>Settings>LaTeX preamble.

Write

  \newcommand\vm[1]{\bm{\mathrm{#1}}}
  
in the document (as text). Select it and press Ctrl-M (or whatever your
binding for a math box is). The command should change into a math-macro
definition.

For bold-italic vectors, the definition steps would change to

Add

> \usepackage{isomath}

to Document>Settings>LaTeX preamble.

Write

  \newcommand\vm[1]{\mathbfit{#1}}}
  
in the document (as text). Select it and press Ctrl-M 




Günter


[typefaces] National Institute of Standards and Technology (NIST),
Typefaces for Symbols in Scientific Manuscripts:
http://physics.nist.gov/cuu/pdf/typefaces.pdf.

[checklist] National Institute of Standards and Technology (NIST), SI
Unit rules and style conventions Check List for Reviewing Manuscripts:
http://physics.nist.gov/cuu/Units/checklist.html.

[fonts_for_symbols] International Union of Pure and Applied Chemistry
(IUPAC), On the use of italic and roman fonts for symbols in scientific
text, (Revised December 1999):
http://old.iupac.org/standing/idcns/fonts_for_symbols.html.

[SI] Bureau international des poids et mesures (BIPM), The International
System of Units (SI): http://www.bipm.org/en/si/si_brochure/.

[Green-Book] International Union of Pure and Applied Chemistry (IUPAC),
Quantities, Units and Symbols in Physical Chemistry, 3rd edition, RSC
Publishing, Cambridge 2007: [ISBN 0 85404 433 7; ISBN-13 978 0 85404 433
7].

[Red-Book] International Union of Pure and Applied Physics (IUPAP),
Symbols, Units, Nomenclature and Fundamental Constants in Physics:
http://metrology.wordpress.com/measurement-process-index/iupap-red-book/index-iupap-red-book/.


Reply via email to