On 15/01/2018 10:51 p.m., Bernt Lie wrote:
Another thing related to efficiency:
3.I tend to experiment a bit with my notation. What symbol should I
use for dimensionless variables? I have tried with math expressions
with bar decoration, with subscript asterisk, etc., etc. I should
probably have defined macros for this (but haven’t looked too much
into that possibility). Instead I have used the Math Find/Replace
option. Some difficulties with this:
a.Suppose I want to replace math variables with bar decoration to the
same math variables with superscript asterisk? (\bar{x} to x^\ast,
\bar{z} to z^\ast, etc., etc.). Currently, I cannot do it in one
batch: I have to remember each of the variable names for which I want
to do this.
b.When doing search/replace in math expressions... suppose I want to
change E to K (e.g., if I write about kinetic energy). The math tool
for search and replace then also goes through ordinary text, and not
only the math expressions. It would be nice if there was an option so
that ordinary text (i.e., not enclosed in $.$ or $$.$$) is left out of
the replacement.
Best regards,
Bernt Lie
It *is* possible to use Adv. Find & Replace for these replacements. For
example, to change E to K only in maths insets & not text, open Adv. F &
R and in the Settings tab clear the Ignore format checkbox (in other
words, you want the format to matter). Then in the search tab enter a
maths inset (Ctrl+M) in the Find pane and enter E in it; in the Replace
with pane enter K, set the Case sensitive check box, and click the
Replace All button. This will do the job for inline maths insets. You
will have to repeat the process for displaystyle maths insets, AMS align
environments, etc. etc. Not ideal, particularly for a large document.
The kind of replacements envisaged in a. (\bar{x} to x^\ast) can be
done in the same way.
Andrew
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus