let s talk about code
play

Lets talk about Code Sourcecode-centric presentations made easy - PowerPoint PPT Presentation

Lets 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


  1. 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

  2. L A T EX vs. WYSIWYG

  3. Why not to use L A T EX? Reason #1:

  4. Why not to use L A T EX? Reason #1: very verbose

  5. Why not to use L A T EX? Reason #2:

  6. Why not to use L A T EX? Reason #2: very, very verbose

  7. Sample Slide • a bullet • another bullet 1 a red numbered sub-item 2 a bold numbered sub-item • yet another bullet

  8. 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

  9. ==== 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

  10. 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

  11. wiki2beamer usage

  12. wiki2beamer usage • it’s a Python script

  13. wiki2beamer usage • it’s a Python script ~ $ wiki2beamer t a l k . t x t > t a l k . tex

  14. 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

  15. Falling back to L A T EX

  16. Falling back to L A T EX 1 \ YourFancyLatexCommand {} 2 3 * a bullet \here 4 * another bullet \orhere 5 6 \oranywhere []{} 7

  17. Code-talks #include <stdio.h> 1 2 int main(int argc , char ** argv) { 3 4 5 } 6

  18. Code-talks #include <stdio.h> 1 2 int main(int argc , char ** argv) { 3 printf("Hello World !\n"); 4 5 } 6

  19. Code-talks #include <stdio.h> 1 2 int main(int argc , char ** argv) { 3 printf("Hello World !\n"); 4 return 0; 5 } 6

  20. 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

  21. 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

  22. 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 ;)

  23. Contact Kai Dietrich <mail@cleeus.de> DECT: 5230 wiki2beamer.sourceforge.net

Recommend


More recommend