On Sat, Feb 25, 2012 at 3:00 PM, Richard Heck <rgh...@comcast.net> 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". # # FORMATS SECTION ########################## # \format "pdf5" "pdf" "PDF (BEAMER)" "" "evince" "auto" "document,vector,menu=export" # # COPIERS SECTION ########################## # \copier pdf5 "pdfcopier.sh \"$$i\" \"$$o\"" That fails thusly: $ lyx -e pdf5 hpcexample-1.lyx Error: Couldn't export file ---------------------------------------- No information for exporting the format PDF (BEAMER). PDF (BEAMER) does not show in the LyX export menu. -- Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas