I'm not sure if a copier or converter can be associated to a
particular document class, but this task does not seem to be closely
tied to LyX since it is just pdf-to-pdf conversion. I mean you can
write a shell script named, say, pdfnup22, and put it in your PATH so
that each time you call pdfnup22 to convert all your slides to the 2x2
layout. To restrict the conversion only on certain files, I guess you
can name all your slides with a special pattern, e.g. something like
^.*-lecture.pdf$, then pdfnup22 lists all files with this pattern and
convert them all. This conversion can be done on demand, instead of
each time you export PDF from LyX.

Or if you like point-and-click, you can make a pdfnup22.sh in your
directory and change its mode to be executable; then each time you
want to convert the slides, just click it and you are done.

Regards,
Yihui
--
Yihui Xie <[email protected]>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Sat, Feb 25, 2012 at 12:43 PM, Paul Johnson <[email protected]> wrote:
> I'm generating a lot of slide shows for my statistics class. Sometimes
> I forget to run the followup program
> to create a compressed version of the presentation. It want to make
> that automatic.[1]
>
> When I export a document in pdf from a Beamer slides project, I also
> want this shell program to run.
> It automatically creates another pdf document that is 4 slides on one page.
>
> #!/bin/bash
>
> pdfnup --nup 2x2 --suffix '2x2' --frame true --batch $1
>
>
> pdfnup is from package called "pdfjam" on Debian Linux. The output is
> awesome, quick, convenient.
>
>
> I am reading the LyX customization manual about copiers, but I just
> can't understand it!
>
> I don't want to destroy the existing copy behavior that writes the PDF
> output to the document folder,
> I just want that additional command to run.  But I don't want this 2x2
> PDF type for all PDF I create,
> just for the Beamer slide projects.
>
> Thanks in advance.
>
>
> [1] I've got example output here, in case you want to see what I mean:
>
> http://pj.freefaculty.org/guides/stat/Regression/ElementaryOLS
>
> I just upload the full working directory, let the students take the
> source code or the pdf output,
> or the 2x2 pdf output.
>
> --
> Paul E. Johnson
> Professor, Political Science
> 1541 Lilac Lane, Room 504
> University of Kansas

Reply via email to