I wrote an entry I want to announce my graduation thesis with IPython Notebook, but the other day the graduation thesis was announced successfully, so I will report it afterwards. I will do it.
In conclusion, the IPython Notebook is great for ** information sharing and program demonstrations in team members and laboratories, but for time-consuming slides such as thesis presentations. The benefit to the effort is small **.
The reason I thought so was as follows.
--Low degree of freedom regarding the placement of figures and the placement of objects --Need to edit the detailed configuration file --Projector resolution, button hiding --You need to execute the command every time you edit and launch the browser. --Automation is possible, but it's more cumbersome than opening a slide file in an editing application --Can only be edited and executed on a PC with an environment (that is, your own) --Difficult to convert to pdf file
Some of the problems have been mentioned in previous articles, so I've solved them, but the fact that the first term is still less flexible can be edited graphically like PowerPoint and KeyNote. Compared to the one, it is inferior. I think it can be a substitute for LaTeX's Beamer (but Beamer has more freedom).
This time, I will introduce a script to alleviate the last part "I have a hard time converting to a pdf file".
My environment:
OS: Ubuntu 14.04
WM: Xmonad 0.11
Required commands:
--ʻImport (Package: imagemagick) --
convert (package: imagemagick) --
xte` (Package: xautomation)
Take screenshots, save them in jpg or png format, and use the convert
command to convert those images that have been serialized into a single pdf file.
xte
is a command included in a package called xautomation on Ubuntu, which allows you to operate the keyboard and mouse from the shell. is. Use this feature to automate the action of taking screenshots, freeing you from the hassle. Besides, it feels good to see the screen move without doing anything.
Below is a simple script I created. Please read in your own environment.
#!/bin/bash
folder=$(pwd)
num=40
xte 'keydown Super_L' 'key 4' 'keyup Super_L'
for t in `seq 1 ${num}`
do
name=$(printf screen_%03d.jpg $t);
sleep 0.5
import -window root -quality 0 ${folder}/${name}
xte 'key Right'
done
xte 'keydown Super_L' 'key 3' 'keyup Super_L'
exit 0
Match the resolution of your monitor to the resolution of your projector in advance.
xrandr --output HDMI1 --mode 1024x768
Etc.
Then, in another workspace, enter Notebook's slide mode and keep it full screen (to take a screenshot of this entire screen).
The image is saved in the directory when the script is called, so it is better to call the script from the newly created directory. Change num
according to the number of slides. The next line of operations using xte will take you to the workspace where your browser is running. Those who move with the arrow keys should rewrite as such.
When you run the script, you'll be taken to workspace 4 where you're viewing the slide, take a full-screen screenshot without compression with the ʻimport` command, and press the → key to move to the next slide (Page Down to Sub slide Can also be included). Repeat this and return to workspace 3 when you have taken the specified number of shots.
After taking the slides, delete unnecessary slides and check if they are in pdf order.
convert -page 1024x768 -gravity Center *.jpg out1.pdf
Make a pdf file like this.
In my case, I was able to make a presentation in Notebook, but no one was skeptical about that point, and I was asked questions about my research. It's a little lonely, but of course. The pdf version of the material is often used for presentations in the laboratory, so there may still be opportunities to use it. However, I think it's better to make slides with Impress of LibreOffice obediently. I think it's a good idea to use Notebook as a draft for yourself and as a tutorial for the program.
Recommended Posts