diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.sh')
-rw-r--r-- | Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.sh b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.sh new file mode 100644 index 00000000000..344d55fef7b --- /dev/null +++ b/Master/texmf-dist/doc/latex/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 |