diff options
Diffstat (limited to 'macros/latex/contrib/ocgtools/examples/ocgtools-preview.sh')
-rw-r--r-- | macros/latex/contrib/ocgtools/examples/ocgtools-preview.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-preview.sh b/macros/latex/contrib/ocgtools/examples/ocgtools-preview.sh new file mode 100644 index 0000000000..344d55fef7 --- /dev/null +++ b/macros/latex/contrib/ocgtools/examples/ocgtools-preview.sh @@ -0,0 +1,6 @@ +pdflatex "\AtBeginDocument{\usepackage[pdftex,displaymath,floats,active,tightpage]{preview}}\PassOptionsToPackage{noocg}{ocgtools} \def\ocgpreview#1#2{#2}\input $1 " +cp $1.pdf preview-temp.pdf +grep '\\newlabel{' ocgtools-preview.aux | sed 's/newlabel/maplabelstoall/g' > preview.labels +pdflatex $1 +pdflatex $1 +pdflatex $1 |