LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2012, 02:42 PM   #1
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 548

Rep: Reputation: 116Reputation: 116
Editing a .tex file in elvis


Hi,
I have a .tex file:

Code:
$ cat Letter.tex
\documentclass{letter}
\signature{Me}
\address{My Address}
\begin{document}
\begin{letter}
\opening{Dear Sir or Madam}
Hello World
\closing{Yours Faithfully,}
\end{letter}
\end{document}
Now as you can see above, when I "cat" the file, I have all the output. But when I try to open it in elvis:

Code:
$ vi Letter.tex
Then I only get the following:

Code:
     1   Hello World
My .exrc file is set up to show the line numbers:

Code:
$ cat ~/.exrc                
:set autoindent
:set ts=2
:set number
so it seems like elvis is trying to strip out the document control and just show me the content - I don't want it to do this!!!

Using slax 13.37

Code:
$ vi --version
elvis 2.2.0
...

Last edited by devnull10; 09-03-2012 at 02:45 PM.
 
Old 09-03-2012, 02:48 PM   #2
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 548

Original Poster
Rep: Reputation: 116Reputation: 116
Figured it out from somewhere else - have to do CTRL+Shift+w then d. Bit of a pain but fixed it for now.
 
Old 09-03-2012, 05:34 PM   #3
wigry
Member
 
Registered: Jul 2004
Distribution: slackware
Posts: 222

Rep: Reputation: 52
Why not use VIM? You get the syntax highlihting and all other bells and whistles without sacrificing the vi experience. Part of slack since forever I believe although elvis has been so called preferred editor.

Last edited by wigry; 09-03-2012 at 05:35 PM.
 
Old 09-11-2012, 04:41 PM   #4
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 548

Original Poster
Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by wigry View Post
Why not use VIM? You get the syntax highlihting and all other bells and whistles without sacrificing the vi experience. Part of slack since forever I believe although elvis has been so called preferred editor.
Good idea - I just use elvis because that's the default symlink from vi - I might change it though.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] What are the consequences if I delete one of the elvis.ses file ethereal1m Linux - Software 2 08-25-2010 12:17 PM
vim file.tex !latex file.tex & pdfdvi file.dvi & xpdf -remote sname -reload Mol_Bolom Linux - General 0 07-09-2009 08:46 PM
Ever used TeX, post your work. -- Tex Art Gallery barton Linux - Software 2 02-28-2006 03:29 AM
TeX can't find tex.fmt jrdioko Linux - Software 0 11-14-2005 06:34 PM
how to compile a tex-file ?? Lise Linux - Newbie 3 02-27-2005 01:20 PM


All times are GMT -5. The time now is 09:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration