On 02/27/2012 01:11 PM, Paul Johnson wrote:
On Sat, Feb 25, 2012 at 3:00 PM, Richard Heck<[email protected]>  wrote:
On 02/25/2012 01:43 PM, Paul Johnson wrote:
Copiers are tied to formats, so you will need to create a new format first.
Call it "PDF (beamer)", or something of the sort. When you do, you can
assign a copier program. The copier will have to be responsible for the
actual copying, as well as the conversion you want. Write a little shell
script that takes two arguments, the input file and its output location. So
something like:

#!/bin/bash
INFILE="$1";
OUTFILE="$2";
if [ -z "$OUTFILE" ]; then exit 1; fi
pdfnup -nup 2x2 --suffix 2x2' --frame true --output "$OUTFILE" --batch "$1";

Save it somewhere in your path, say to /home/you/bin/pdfcopier.sh, make it
executable, and then enter
    pdfcopier.sh "$$i" "$$o"
into the copier field for your new format.

Richard

Thanks, Richard.

I think I'm missing a converter line in preferences. Well, I still
don't understand how the ordinary work of pdflatex is supposed to get
done before my copier gets called.

I created the pdfcopier shell script you mention, it is in the path.

I run into some trouble configuring preferences in LyX. Can we just
talk about what is in preferences itself? The LyX preferences gui is
difficult for me.

What do I need for "short name".  I was guessing something unique like "pdf5".
Yes, that's fine. Now you just need to define a pdflatex --> pdf5 converter. This can be done in the UI: Just copy over the information from the existing "LaTeX (pdflatex)" --> "PDF (pdflatex)" converter. Then LyX knows how to produce the pdf5 format, and it should invoke your copier when it is done.

Richard

Reply via email to