Coder Social home page Coder Social logo

Comments (4)

rbbernardino avatar rbbernardino commented on June 12, 2024

I had the same issue and adopted another solution: change the "View" command!
You may see that when you issue a C-c C-v, the command to call your viewer appears. We need to add a build/ before the file name.

Each program has a slightly different calling method, so to find out what is it, for example, for Evince:
M-x [RET] describe-variable [RET] TeX-view-program-list-builtin [RET]
Search for your program, ex. Evince:
C-s evince
You'll see the lines:

("Evince"
        ("evince"
        (mode-io-correlate " -p %(outpage)")
        " %o")
    "evince")

Just change " %o" to " build/%o", notice the space before build!

To apply such a change, in my .emacs, I have: (I use Okular)

(defun okular-view-LaTeX-mode()
  (add-to-list 'TeX-view-program-list
			   '("Okular" ("okular --unique build/%o" (mode-io-correlate "#src:%n%a"))))
  (setq TeX-view-program-selection '((output-pdf "Okular"))))
(add-hook 'LaTeX-mode-hook 'okular-view-LaTeX-mode)

You may change to your program and it's calling method.

from auctex-latexmk.

tom-tan avatar tom-tan commented on June 12, 2024

Sorry for late reply.

IMO the way @rbbernardino suggested is a reasonable solution for it.
Otherwise it will need too much work to support $out_dir in auctex-latexmk (I guess it is almost equivalent to implement a subset of Perl interpreter :-( ).

from auctex-latexmk.

j-jith avatar j-jith commented on June 12, 2024

I agree that what @rbbernardino has suggested is a satisfactory solution for this problem. I'll close this issue then, if you don't mind.

If you are interested, we had a similar issue in the vim plugin vimtex (lervag/vimtex#701). It was fixed with a function that parses latexmkrc with some regexp trickery.

from auctex-latexmk.

tom-tan avatar tom-tan commented on June 12, 2024

Thank you for the information!
I will take a look.

from auctex-latexmk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.