Search found 3 matches

by bobred
Thu Jul 21, 2016 5:55 pm
Forum: LyX
Topic: Macro in Lyx
Replies: 1
Views: 3632

Macro in Lyx

Hi
I am trying to get a macro that takes 2 argument and displays the derivative of x to order n. I type the following onto the Lyx page

\newcommand{\diff}[2]{\dfrac{d^{#2}}{d#1^{#2}}}
when I highlight and go to and press Ctrl+M I get a macro, that works. I would like a way that I can hide this ...
by bobred
Mon Jul 18, 2016 10:06 am
Forum: LyX
Topic: Remove underscores from filename
Replies: 4
Views: 6412

Remove underscores from filename

Hi
Thank you cgnieder.
Worked a treat.

Code: Select all

 \StrSubstitute{\currfilebase}{\string _}{ }[\fileName]
In TexNicCenter and TexWorks the filename is surrounded by quotes whereas in Lyx it is not.

James
by bobred
Fri Jul 15, 2016 4:19 pm
Forum: LyX
Topic: Remove underscores from filename
Replies: 4
Views: 6412

Remove underscores from filename

Hi

I am using LyX 2.2 on Windows 7, MiKTeX is up to date. I am using currfile to get the file name and display it on the header. My problem is that it is displaying spaces with underscores. Example

what I have: RP-C-1_Strontium_constancy_checks
what I want: RP-C-1 Strontium constancy checks ...