On 03/02/2012 02:02 AM, Paul Johnson wrote:
Oh, heck. I broke the regular export of the one-page at a time PDF
when I added my copier for the 4 sheets on one page.

Details below, please advise.

Sorry, I'm not sure I understand the issue yet.

If you export to "PDF (Beamer)", then this will always give you the 2x2 thing, since the copier will always be invoked.

If you try to export to just "PDF (pdflatex)", is that when you have a problem?

Richard

On Mon, Feb 27, 2012 at 2:15 PM, Richard Heck<[email protected]>  wrote:
On 02/27/2012 01:11 PM, Paul Johnson wrote:
When this finally seemed to work, I was so happy.  However, I see now
I've broken the pdf export.

The weird thing is that LyX asks me if I want to replace the old pdf
version, and I say yes, it still does not get copied.

Just now, I worked on lecture notes and exported to PDF(Beamer). I end up with
-rw-r--r--  1 337226 Mar  2 00:57 Regression-MultipleInputs-lecture-2-2x2.pdf
-rw-r--r--  1  56429 Mar  2 00:55 Regression-MultipleInputs-lecture-2.lyx
-rw-r--r--  1543209 Sep 29 12:17 Regression-MultipleInputs-lecture-2.pdf

I do get the 4 slides on 1 page output, the one with 2x2 on the end.
The lyx file is saved, but last semester's pdf is stuck there.

Here's what I'm using now.

In .lyx/preferences, I add:

\format "pdf5" "pdf" "PDF (Beamer)" "" "evince" "" "document,vector,menu=export"

\converter "pdflatex" "pdf5" "pdflatex $$i" "latex=pdflatex"

\copier pdf5 "pdfcopier.sh \"$$i\" \"$$o\""

And here's "pdfcopier.sh"

#!/bin/bash
INFILE="$1";
pdfnup --nup 2x2  --frame true --suffix '2x2' --batch "$INFILE";

Inside LyX, I can Export to PDF(Beamer) and it does export the file
with the 2x2 format, and the name is set correctly.
.
What do you think?


Reply via email to