Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a LaTeX document where I often have to insert pathnames of files on my machine of other LaTeX files. Is there a way in emacs do get the following:

  1. A command which opens a file selection dialogue such that the choosen filename + path will be inserted at point.
  2. A macro which opens the file under point. For example when the point is on ~/mytex.tex and I press a certain key sequence it should open ~/mytex.tex in a new buffer.
  3. A macro which opens the corresponding pdf file of tex filename under point in evince, for example ~/mytex.pdf.
  4. A command which opens a file selection dialogue to change the filename under point.

It is important to have the file-path names in a plain style because they should be proceed by latex as well.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.