a view dvi patch for NT

2000-01-21 Thread Dr. Ing. Roland Krause
Hi guys, here is the promised patch that does two things. 1 It allows for $$FName in \view_dvi_command and \view_ps_command so that on NT/95 you can put \view_dvi_command "yap `cygpath -w $$FName`" and resp. \view_ps_command "gsview32 `cygpath -w $$FName`" in your lyxrc file. This removes the

Re: a view dvi patch for NT

2000-01-24 Thread Jean-Marc Lasgouttes
> "Ing" == Ing Roland Krause <[EMAIL PROTECTED]> writes: Ing> This is a multi-part message in MIME format. Ing> --71C85E59F99D511FBDE72691 Content-Type: text/plain; Ing> charset=us-ascii Content-Transfer-Encoding: 7bit Ing> Hi guys, here is the promised patch that does two things

Re: a view dvi patch for NT

2000-01-24 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | That's good indeed. You could probably habve used LSubString to do the | replace, but I'm disgressing... | | \begin{disgression} | It seems to me that you can do something like | LSubString foo(command,"$$FNAME"); | foo = QuoteName(name); |

Re: a view dvi patch for NT

2000-01-24 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> LSubString foo(command, "$$FNAME"); for a command that does not Lars> contain a $$FNAME would not be a valid substring. Lars> So everything you do with it will fail/throw/abort etc. So I cannot use substrings unless I know th

Re: a view dvi patch for NT

2000-01-24 Thread Dr. Ing. Roland Krause
I have seen your subst() function but I did not use it because I thought that you wanted to switch to STL algorithms as much as possible. The LSubString class could be extended but you'd have to decide what to do if the substring isnt present. Do you want to append something to the original strin

Re: a view dvi patch for NT

2000-01-24 Thread Lars Gullik Bjønnes
"Dr. Ing. Roland Krause" <[EMAIL PROTECTED]> writes: | Ok while we are at it, what is LSubstring intended for in the first place? It | can not be in heavy use | afaik, I believe there are four files, LaTeX.C, chset.C, vc-backend.C and | LSubstring.[Ch]where it is used. | I think it was intended t

Re: a view dvi patch for NT

2000-01-24 Thread Dr. Ing. Roland Krause
Jean-Marc, Jean-Marc Lasgouttes wrote: > Ing> 2 It introduces > Ing> \view_dvi_paper_option "" also in lyxrc. With this option you can > Ing> overwrite the papersize that is specified when viewing a dvi > Ing> file. yap (the MikTeX dvi viewer) doesnt have a paper option at > Ing> all, so you get