TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting 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

Is there a shortcut in LyX for export to PDF?

Is there any way to auto export on save?

share|improve this question
In Lyx you should be able to customize the shortcuts (Preferences->Editing->Shortcuts). – Guido Jan 6 '13 at 6:09
Ctrl+R views the output in PDF. To me that's already exported... – Werner Jan 6 '13 at 6:17
up vote 7 down vote accepted

The following works for me on Ubuntu with LyX 2.0.5:

To create a shortcut, go to Preferences > Editing > Shortcuts and click on "new". For the function put in buffer-export pdf2 (or if pdf2 is not the format you want then look under Preferences > File Handling > File Formats)

To save and export at the same time, either create a new shortcut or edit the current save shortcut, which is found in the same place. Under "show keybindings containing" text box put buffer-write. It will show the current shortcut (Ctrl + S by default). Click on it and click "modify". Change buffer-write to command-sequence buffer-write; buffer-export pdf2.

If you want to get rid of the dialog asking if you want to overwrite (which comes from the export), go to Preferences > Output and change the setting for "Overwrite on export".

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.