[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Put a Style in memory?



Carl,

Yep. Works great. I added a jump to it in my version of $X and it works!

Thank you.

Regards,
Harry


Reply to note from Harry Binswanger Tue, 14 Feb
2012 11:23:54 -0800

> is there some way, using NBSTART.INT or my NB.U2 to pre-load
> and make permanently resident a couple of style definitions?

Not in XyWrite. From the Xy4 Command Reference at p. 4-166:

"The SaveStyle command must be in the document that uses it.
While it is an embedded format command, it cannot be set up as
a default. If you use the same style repeatedly, you can save
it on a text macro [a/k/a Save/Get] so you can quickly insert
it into your documents."

I suspect that the same is true of NB, but I don't know this for a
fact.

> The only other solution I can think of is CA/100, ...

That's probably the way to go. (For those who may be wondering,
CA/100 forces the CAlled file to open in eXPanded view, thus
avoiding the crash that Harry describes.) While the file is still in
eXPanded view, you can run a routine, such as the following frame
ADDSS, to enable switching to formatted views. For each orphaned US
command in the file, ADDSS adds a dummy (empty) SS command at top of
file. I'm assuming that this will be sufficient to stop NB from
crashing when you switch to a formatted view.

XPLeNCODE v2.0
b-gin [UNTITLED]
{{;5addss}} Add dummy SS commands for orphan US commands in c
urrent file (SS command(s) added at top of file) [CLD][cr|lf]
{002}[BX_]es 1[Q2_][XP_][TF_][DX_][YD_]{<}SV01,{>}{<}LBa{>}[B
X_]se  [w<]US[Q2_]{<}IF@not({<}ER{>}){>}[DF_][BX_]se/f  [w>][
Q2_][DF_]{<}SV02{>}[CR_]{<}SX03,{<}CP{>}{>}[YD_][TF_][BX_]se{032}
"[w<]SS{<}PV02{>}"[Q2_]{<}IF{<}ER{>}{>}{<}SX01,{<}IS01{>}+"{<
}SS"+{<}IS02{>}+"{>}"{>}{<}EI{>}[BX_]jmp {<}PV03{>}[Q2_]{<}GL
a{>}{<}EI{>}[TF_]{<}IF{<}VA|01{>}>0{>}{<}GT01{>}[255+048+068]
{<}EI{>}[DO_][FF_]{<}PRDone{>}{<}EX{>}{002}[cr|lf][cr|lf]
-nd
XPLeNCODE

--
Carl Distefano
cld@xxxxxxxx