Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8020833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:48:07+00:00 2026-06-04T21:48:07+00:00

In TeX mode I can compile (region / buffer) and then ask Emacs to

  • 0

In TeX mode I can compile (region / buffer) and then ask Emacs to show what was compiled by running M-x tex-view or C-c C-v, however, when this command runs it looks into tex-dvi-view-command variable for the program to open the recently compiled file.

There are two problems with this approach now:

  1. The text color in the generated DVI is the same as in the Emacs buffer, but the background is not (I get white text on white background…), but it can be the problem of the particular program it is using to display it, not sure yet. Ocular shows black text on white background.

  2. It opens in dvi viewer. But I would like it to open in Emacs (Emacs can display PDF / DVI on its own, no need for external viewer).

So, my question is: is there a common way to achieve this (esp. #2) or I’ll have to add that function myself?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:48:11+00:00Added an answer on June 4, 2026 at 9:48 pm

    I haven’t used the specific feature that you’ve described, but I would imagine that if you ran emacs as a server (q.v., Using Emacs as a Server), you could set tex-dvi-view-command to use emacsclient, in which case the file would be opened in a new buffer in your current emacs session.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use the following function from Latex, Emacs: automatically open *TeX Help* buffer on
How can you set the syntax of a .txt file .tex in Emacs?
I have a file containing much TeX mark-up, like this: The fish ate 20\percent
Is there a way to generate tables in tex format in R and then
I'm trying to use preg_replace to change the formatting of a TeX file. This
I am running Emacs 23.1.1 and AucTeX 11.85 in an Ubuntu 8.10 machine. After
I use the function TeX-parse-error defined by Ivan Andrus at the bottom of Emacs
I keep auto-fill-mode enabled by default for all LaTeX files. This is usually nice,
I have seen code in lua like this if (a==b or false) then what
I use emacs+AucTeX to write LaTeX files. At the bottom of the .tex file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.