Let’s talk about Code Sourcecode-centric presentations made easy with wiki2beamer wiki2beamer.sourceforge.net Kai Dietrich <mail@cleeus.de> 2009-12-27 This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License
L A T EX vs. WYSIWYG
Why not to use L A T EX? Reason #1:
Why not to use L A T EX? Reason #1: very verbose
Why not to use L A T EX? Reason #2:
Why not to use L A T EX? Reason #2: very, very verbose
Sample Slide • a bullet • another bullet 1 a red numbered sub-item 2 a bold numbered sub-item • yet another bullet
Verbosity \begin{frame} 1 \frametitle{Sample Slide} 2 \begin{itemize} 3 \item a bullet 4 \item another bullet 5 \item \begin{enumerate} 6 \item a red \alert{numbered sub -item} 7 \item a bold \textbf{numbered sub -item} 8 \end{enumerate} 9 \item yet another bullet 10 \end{itemize} 11 \end{frame} 12
==== Sample Slide ==== 1 2 * a bullet 3 * another bullet 4 *# a red !numbered sub -item! 5 *# a bold ’’’numbered sub -item ’’’ 6 * yet another bullet 7
The same with wiki2beamer ==== Sample Slide ==== 1 2 * a bullet 3 * another bullet 4 *# a red !numbered sub -item! 5 *# a bold ’’’numbered sub -item ’’’ 6 * yet another bullet 7
wiki2beamer usage
wiki2beamer usage • it’s a Python script
wiki2beamer usage • it’s a Python script ~ $ wiki2beamer t a l k . t x t > t a l k . tex
wiki2beamer usage • it’s a Python script ~ $ wiki2beamer t a l k . t x t > t a l k . tex ~ $ pdflatex t a l k . tex
Falling back to L A T EX
Falling back to L A T EX 1 \ YourFancyLatexCommand {} 2 3 * a bullet \here 4 * another bullet \orhere 5 6 \oranywhere []{} 7
Code-talks #include <stdio.h> 1 2 int main(int argc , char ** argv) { 3 4 5 } 6
Code-talks #include <stdio.h> 1 2 int main(int argc , char ** argv) { 3 printf("Hello World !\n"); 4 5 } 6
Code-talks #include <stdio.h> 1 2 int main(int argc , char ** argv) { 3 printf("Hello World !\n"); 4 return 0; 5 } 6
Code-talks <[code ][ style=basic ,language=c] 1 2 #include <stdio.h> 3 int main(int argc , char ** argv) { 4 [<2-3> printf (" Hello World !\n");] 5 [<3> return 0;] 6 } 7 8 [code]> 9
Code-talks <[code ][ style=basic ,language=c] 1 2 #include <stdio.h> 3 int main(int argc , char ** argv) { 4 [<2-3> printf (" Hello World !\n");] 5 [<3> return 0;] 6 } 7 8 [code]> 9 expands to ~40 lines of fiddly L A T EX code
What needs to be done • make it a compiler (it’s a hackish preprocessor, now) • formal grammar/parser (anyone?) • packaging for distros • done: Gentoo, Arch • poorly done: Debian, Ubuntu • help needed: Fedora, Suse, . . . (Windows?!) • documentation ;)
Contact Kai Dietrich <mail@cleeus.de> DECT: 5230 wiki2beamer.sourceforge.net
Recommend
More recommend