LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-09-2009, 07:46 PM   #1
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0
Posts: 219
Blog Entries: 2

Rep: Reputation: 41
vim file.tex !latex file.tex & pdfdvi file.dvi & xpdf -remote sname -reload


I'm not exactly sure where to post this, or even if there is a better title than that.

I had just recently learned about "xpdf -remote sessionname -reload", so now I can quickly view latex files directly after editing them from within vim. However, that is a lot of keystrokes, and I haven't even began learning about all the other commands for those programs.

I looked over the man pages of xdvi, which would save one extra step, but I didn't see anything about reloading a dvi file loaded in xdvi from a terminal.

Anyway, this is about the simplest that I can come up for editing latex files and viewing the data.
  1. Create a script file that will create an environment variable to the location of the file being edited, if necessary, and create another environment variable for naming the session. Run vim.
  1. Add aliases to my .profile or create a script file to run xpdf the first time using the environment variables and to reload xpdf.

I am just curious if there weren't some other methods/files/tricks that anyone would know that would make this a bit easier.

Also, what would happen if I recursively ran a script file? I don't think using xpdf -remote sessionname -reload will be a problem, but this is something I've been curious about.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tex file viewer for windows ? Vilius Linux - Software 3 02-27-2009 10:46 AM
Live CD contain TeX and/or LateX trainee Linux - Newbie 2 06-20-2006 04:24 AM
Ever used TeX, post your work. -- Tex Art Gallery barton Linux - Software 2 02-28-2006 02:29 AM
how to compile a tex-file ?? Lise Linux - Newbie 3 02-27-2005 12:20 PM
Is this a troff, groff, TeX, or nroff file? atrionfo Linux - General 1 04-19-2002 05:55 AM


All times are GMT -5. The time now is 10:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration