0

I am a new user of emacs. I have installed emacs 27.1 in my Ubuntu 22.04. I can successfully open my ms.tex file in emacs (terminal). After that, I press the C-c C-c command and then I type my file name as ms.tex. It successfully creates the ms.pdf file in my directory. Then I press C-c C-c and then I type \doc-view ms.pdf RET. It does not show the actual pdf. It shows an encoded version of ms.pdf file. I also typed M-x doc-view-minor-mode RET on emacs. After that, I pressed C-c C-c then an error message appears, the message says that unable to render, view extracted text instead?. (y or n). After typing y RET it does not show the right pdf and it shows an error message which says Wrong type argument: number-or-marker-p, nil. I can open my ms.pdf file using evince ms.pdf externally but I can not open it in emacs. I searched my problem on google and based on some answers I have tried to modify my C-x C-f ~/.emacs.d/init.el file but it has not worked. After pressing M-x package-install after that I type pdf-tools it does not show anything. Ghostscript and xpdf are already in the newest version.

5
  • 1
    What's the question?
    – Drew
    Aug 19 at 4:17
  • 1
    you've showed us what you've tried to do, but to elaborate on @drew's question, what do you want to do?
    – nega
    Aug 19 at 4:51
  • 1
    I want to open pdf in emacs, meaning to say, after pressing the C-x C-f command and after pressing the C-c C-c command, I want to see my pdf file within emacs (not externally). After running pdflatex command the pdf should be updated automatically. Hope I have answered.
    – msingh
    Aug 19 at 5:08
  • If Emacs is running inside of a terminal, then you cannot do that. Can you run the Emacs gui instead?
    – db48x
    Aug 19 at 6:19
  • Yes. If I run emacs gui, I can open the pdf with \doc-view. I want to do the same thing using emacs terminal.
    – msingh
    Aug 19 at 9:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.