Re: LyXWin not working on XP

2005-06-18 Thread Paul A. Rubin

Rob S wrote:


Quick Windows tip: rather than mapping a local network drive, try 
subst, which is faster (operates directly at the filesystem level - no 
SMB generation and parsing, no transfers through the loopback 
interface), cleaner, and safer (no unnecessarily-shared directory).  
You can make the subst command an autorun entry in the Registry so it 
takes effect every time you reboot.





More info please! subst??

Can provide a more detailed step by step method for this - it may help 
others, like myself, who are not that "computer jargon" literate.


Cheers

Rob S


subst (short for "substitute") is an old DOS command that is still 
supported.  It allows you to assign a local drive letter to a directory. 
 In Ye Olde Days, I think the main use was to shorten path names, 
because the Windows environment was too tiny to allow long paths.  So 
(assuming you did not have an actual drive mapped to X:), you could use 
X: as shorthand for C:\this\that\the\other\thing.


Suppose that I have an urge to use LyX on files located in "My 
Documents\Assorted Junk" (note the spaces).  I can execute the command


subst X: "C:\Documents and Settings\my.login\My Documents\Assorted Junk"

and thereafter direct LyX to files in the X: root folder.  LyX can also 
access files in subdirectories, *provided* the subdirectory does not 
contain any spaces.  Thus LyX sees "My Documents\Assorted 
Junk\file1.lyx" as X:\file1.lyx and "My Documents\Assorted 
Junk\exams\test1.lyx" as X:\exams\test1.lyx, but good luck with "My 
Documents\Assorted Junk\last night.lyx" or "My Documents\Assorted 
Junk\Weird Stuff\file3.lyx".


To undo the substitution, just issue subst X: /d at a command prompt.

Michael's correct that the substitution could be set up in the registry 
to be run automatically, but registry hacking is pretty intimidating to 
novices (and rightly so).  A perhaps easier solution is to add it to the 
Startup folder.  The steps for Win XP (should be basically the same in 
Win 2K) are as follows:


1.  Right-click the Start button, click Open, double-click Programs and 
then Startup.


2.  Right-click on an empty part of the folder and select New -> Shortcut.

3.  Where it asks for the location of the item, type "cmd" (no quotes) 
and click Next.


4.  Rename the shortcut to something mnemonic, such as "Substitute X for 
My Docs" (or "Play with Fire").  Click Finish.


5.  Right-click the new icon in the Startup folder and click Properties. 
 In the target text box, *after* cmd.exe, add the following:


/C subst X: "C:\Documents and Settings\myid\My Documents"

(using whatever *unused* drive letter you like in lieu of X, changing 
myid to your log-in id, and extending the path as desired.


6.  Test it by double-clicking the shortcut.  A command window should 
open and immediately close again.  Now see if you can navigate to X: in 
Windows Explorer, or from a command prompt, or in LyX.


-- Paul



Re: PSTricks Example: Errors in LyX

2005-06-18 Thread Paul Smith
On 6/18/05, Rich Shepard <[EMAIL PROTECTED]> wrote:
> > I think it is a problem of LyX: it separates the ERT lines with a blank
> > line, when it internally converts to LaTeX. Your way works too, as long as
> > you use control-enter instead of enter to change to the next line (inside
> > ERT).
> 
>Aha! Knowing what LyX is doing internally clears up my confusion. I don't
> know that it's a "problem" as much as it requires a different line break than
> does plain LaTeX.
> 
>Thanks so much for the lesson. I know I'll come up against this many times
> when I use examples written in LaTeX or code written by someone else.

You are welcome, Rich. I agree with you: instead of being a problem,
it may be a LyX feature; I do not know.

Paul


Re: PSTricks Example: Errors in LyX

2005-06-18 Thread Rich Shepard

On Sat, 18 Jun 2005, Paul Smith wrote:


I think it is a problem of LyX: it separates the ERT lines with a blank
line, when it internally converts to LaTeX. Your way works too, as long as
you use control-enter instead of enter to change to the next line (inside
ERT).


Paul,

  Aha! Knowing what LyX is doing internally clears up my confusion. I don't
know that it's a "problem" as much as it requires a different line break than
does plain LaTeX.

  Thanks so much for the lesson. I know I'll come up against this many times
when I use examples written in LaTeX or code written by someone else.

Rich

--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863


Re: PSTricks Example: Errors in LyX

2005-06-18 Thread Paul Smith
On 6/18/05, Rich Shepard <[EMAIL PROTECTED]> wrote:
>Why?
> 
>I'd really like to understand how splitting a line using the comment
> character as a continuation mark breaks the document. Is this one of the
> differences between lyx and latex?

Rich,

I think it is a problem of LyX: it separates the ERT lines with a
blank line, when it internally converts to LaTeX. Your way works too,
as long as you use control-enter instead of enter to change to the
next line (inside ERT).

Paul


Re: PSTricks Example: Errors in LyX

2005-06-18 Thread Rich Shepard

On Sat, 18 Jun 2005, Paul Smith wrote:


Rich: use a single line for
\psgrid[gridlabels=0pt,subgriddiv=2,gridcolor=lightgray,subgridcolor=lightgray]


Paul,

  Sonofagun!

  Why?

  I'd really like to understand how splitting a line using the comment
character as a continuation mark breaks the document. Is this one of the
differences between lyx and latex?

  I'll get to the ps4pdf after I learn how to make the figures I need.

Thanks,

Rich

--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863


Re: PSTricks Example: Errors in LyX

2005-06-18 Thread Paul Smith
On 6/18/05, Rich Shepard <[EMAIL PROTECTED]> wrote:
> Paragraph ended before \pst@@object was complete.

Rich: use a single line for

\psgrid[gridlabels=0pt,subgriddiv=2,gridcolor=lightgray,subgridcolor=lightgray]

This should solve your problem. You should use ps4pdf. To configure
LyX to work together with ps4pdf, consult the discussion that I
referred to you, earlier today.

Paul


PSTricks Example: Errors in LyX

2005-06-18 Thread Rich Shepard

  I've once again missed the obvious someplace and need to be hit with a clue
stick.

  Now that Herbert's fixed the link on the PSTricks page to simple examples
for simple users, I downloaded the set and tried to get example1.tex working
in LyX. I keep getting an error message when I press "ctrl-d" to view the
dvi:

Paragraph ended before \pst@@object was complete.

  When I load Paul's example, that displays properly.

  The .lyx file is below.

  Just for giggles, I took the example .tex file and ran it through the
sequence latex -> dvips -> ps2pdf and it worked just fine.

Clue stick appreciated,

Rich

--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863
==
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\usepackage{pst-plot} 
\end_preamble

\language american
\inputencoding auto
\fontscheme palatino
\graphics default
\paperfontsize default
\spacing single 
\papersize letterpaper

\paperpackage a4
\use_geometry 0
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 2
\paperpagestyle empty

\layout Standard


\begin_inset Float figure
wide false
collapsed false

\layout Standard
\align center

\begin_inset ERT
status Open

\layout Standard

\backslash 
begin{pspicture}(0.25,-0.25)(8,8)

\layout Standard

\backslash 
psgrid[gridlabels=0pt,subgriddiv=2,%

\layout Standard
gridcolor=lightgray,subgridcolor=lightgray]
\layout Standard

\backslash 
psaxes[dx=1,Dx=2]{->}(0,0)(8,8)

\layout Standard

\backslash 
end{pspicture}

\layout Standard

\end_inset


\layout Caption

Grid Example
\end_inset


\the_end


Re: My versions won't control

2005-06-18 Thread Matej Cepl
Richard Brown wrote:

> Thanks to everyone for their comments, which I have found illuminating.
> It seems to me that RCS would probably be sufficient for me now, as I am
> a single user but that CVS would cope with future developments if my
> colleagues also adopt Lyx. So I'd go for RCS now, if I could find any
> information on how to install it! The RCS lists are full of spam going
> back to 2001, so I reckon nobody uses them any more. Does anyone on this
> list have an idea of how to install RCS (or CVS, for that matter) on
> WinXP? Grateful for help!

I am not Windows anymore, but try this
http://gnuwin32.sourceforge.net/packages/diffutils.htm
or maybe this
http://www.simtel.net/product.php?id=34100

Matej
-- 
Matej Cepl, http://www.ceplovi.cz/matej/blog/
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
The main idea of the pope's asking for forgiveness was not to be
afraid of the truth. DO NOT BE AFRAID OF TRUTH! We have to have
faith in the God's governing power to be able not to be afraid.
-- On NPR The Connection from March 13, 2000




Re: Words containing Umlaute not found by find and replace

2005-06-18 Thread Angus Leeming
On Friday 17 June 2005 21:07, Andre Poenitz wrote:
> On Fri, Jun 17, 2005 at 11:20:05AM +0100, Angus Leeming wrote:
> > Wolfgang Engelmann wrote:
> > > Do I understand you correctly, that I should use at least under
> > > SuSe 9.2 (and 9.3?) LyX xforms instead of QT? Or switch to
> > > another distribution?
> >
> > Nope. It's sufficient to follow Georg's suggestion of invoking
> > lyx through a wrapper script
> >
> > #! /bin/sh
> > LANG=de_DE lyx $*
>
> What happened to "$@"?

Bah! sh, cmd.exe, they're the same, right?

Angus (easily confused)


Still have problems with version control

2005-06-18 Thread Richard Brown
Thanks to everyone for their suggestions about version control. I still
can't seem to get it to work.
I am working with winXP.
I have the RCS files from Purdue, have unzipped them and have put them
in a directory (C:\lyx\RCS) which I have also added to the PATH
variable. (There is no install, start or readme file so I can't think of
any othe rsteps to take.)
I open a lyx file of mine (called prova1.lyx) from my work directory
(c:\documents\richard\lyxfiles) and try to use the verison control from
the lyx file menu.(File-> version control) I usually get a window called
REGISTER, and so I put a comment in (for instance, "first version") and
close. The LYX dos window carries an error message which reads
ci: RCS/prova1.lyx : no such file or directory

If I carry on, or if I close the file, or close LYX, or close windows,
and then start again the same usually happens. But twice, I don't
understand how, I had instead  a slightly different response: instead of
the REGISTER  window I got a menu with other options (check version,
revert, and 2 others I don't remember) and tried to use the options. The
error message this time was
rlog: RCS/prova1.lyx : no such file or directory

Next time I got the REGISTER window again.

What am I doing wrong? Thanks.

Richard


Re: PStricks figures -> Beamer Presentation

2005-06-18 Thread Rich Shepard

On Sat, 18 Jun 2005, Paul Smith wrote:


Consult the following discussion:
http://marc.theaimsgroup.com/?l=lyx-users&m=110842268802554&w=2


  Thanks, Paul. I guess the caffine did not fully propagate this morning
because I missed that when I looked at my collection of lyx mail list
messages.

Rich

--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863


Re: PStricks figures -> Beamer Presentation

2005-06-18 Thread Paul Smith
On 6/18/05, Rich Shepard <[EMAIL PROTECTED]> wrote:
>I don't have a reference in my saved e-mail messages about this.
> 
>What is the recommended protocol for adding figures drawn with PStricks in
> LyX to a beamer presentation, also in LyX? I recall threads about pstricks
> not playing nice with pdflatex, so I assume I cannot make a figure float
> within the beamer slide and write the pstricks code within that.

Rich,

Consult the following discussion:

http://marc.theaimsgroup.com/?l=lyx-users&m=110842268802554&w=2

HTH,

Paul


Re: My versions won't control

2005-06-18 Thread Nicolás

Richard Brown wrote:

if I could find any
information on how to install it! 


I haven't try, but I guess you should do someting like:
1)Download the 3 zip files that you can find here:
http://www.cs.purdue.edu/homes/trinkle/RCS/
2)Unzip them into a directory of your choice
3)It may happen that:
- There is some setup (or similar) file -> run it
- There is some file with installation instructions -> follow them
- The uncompressed files are ready to be used (you will see probably a 
rcs.exe file somewhere).


In any case be sure that the directory containing rcs.exe is in the PATH 
 environment variable, if not add it

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/environment_variables.mspx


Nicolás


Re: My versions won't control

2005-06-18 Thread Richard Brown
Thanks to everyone for their comments, which I have found illuminating.
It seems to me that RCS would probably be sufficient for me now, as I am
a single user but that CVS would cope with future developments if my
colleagues also adopt Lyx. So I'd go for RCS now, if I could find any
information on how to install it! The RCS lists are full of spam going
back to 2001, so I reckon nobody uses them any more. Does anyone on this
list have an idea of how to install RCS (or CVS, for that matter) on
WinXP? Grateful for help!

Andre Poenitz wrote:

>On Tue, Jun 14, 2005 at 08:11:04PM -0400, Matej Cepl wrote:
>  
>
>>Andre Poenitz wrote:
>>
>>
>>>As a sidenote: RCS has been (sort of) superseded by CVS a dozen years
>>>ago which in turn is in the process of being superseded by SVN as far
>>>as I can tell. Things might be bearable on a single-user system, though.
>>>  
>>>
>>Aren't CVS (and even more SVN) kind of overkill for personal one-user
>>editing (which is what most people do with LyX)? I happily use RCS for all
>>my needs and I haven't found a reason why to switch to CVS (I do not know
>>much about SVN though).
>>
>>
>
>We use CVS at home and I don't think it is overkill.
>
>Andre'
>
>
>  
>


Re: My versions won't control

2005-06-18 Thread Andre Poenitz
On Tue, Jun 14, 2005 at 08:11:04PM -0400, Matej Cepl wrote:
> Andre Poenitz wrote:
> > As a sidenote: RCS has been (sort of) superseded by CVS a dozen years
> > ago which in turn is in the process of being superseded by SVN as far
> > as I can tell. Things might be bearable on a single-user system, though.
> 
> Aren't CVS (and even more SVN) kind of overkill for personal one-user
> editing (which is what most people do with LyX)? I happily use RCS for all
> my needs and I haven't found a reason why to switch to CVS (I do not know
> much about SVN though).

We use CVS at home and I don't think it is overkill.

Andre'


Re: Words containing Umlaute not found by find and replace

2005-06-18 Thread Andre Poenitz
On Fri, Jun 17, 2005 at 11:20:05AM +0100, Angus Leeming wrote:
> Wolfgang Engelmann wrote:
> > Do I understand you correctly, that I should use at least under SuSe 9.2
> > (and 9.3?) LyX xforms instead of QT? Or switch to another distribution?
> 
> Nope. It's sufficient to follow Georg's suggestion of invoking lyx through 
> a wrapper script
> 
> #! /bin/sh
> LANG=de_DE lyx $*

What happened to "$@"?

Andre'