Basic Examples (4)
Basic Examples
(4)
Save a copy of an example notebook to the system's temporary directory and convert the notebook to a slide show prompter:
In[1]:=
file=CopyFile[FileNameJoin[{$InstallationDirectory,"Documentation","English","System","ExampleData","document.nb"}],FileNameJoin[{$TemporaryDirectory,"document.nb"}]];
In[2]:=
nb=[file,{600,500},150]
Out[2]=
NotebookObject
During evaluation of In[2]:=
The auto-generated output files:
In[3]:=
files=FileNames["documentPrompter*",$TemporaryDirectory]
Out[3]=
{/private/var/folders/0m/xs08c2td1y38x1hxbb6qm4w80000gn/T/documentPrompter-600x500.nb,/private/var/folders/0m/xs08c2td1y38x1hxbb6qm4w80000gn/T/documentPrompter.pdf}
Open the output PDF file in the default PDF viewer on your system:
In[4]:=
SystemOpen[Last[files]]
Clean up by closing the prompter notebook and deleting the temporary files.:
In[5]:=
NotebookClose[nb]
In[6]:=
DeleteFile[Flatten[{file,files}]]