\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{justinhunt} \pdfinfo{ /Title (poodll-filter.pdf) /Creator (Cheatography) /Author (justinhunt) /Subject (PoodLL Filter Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{446AA3} \definecolor{LightBackground}{HTML}{F3F5F9} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{PoodLL Filter Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{justinhunt} via \textcolor{DarkBackground}{\uline{cheatography.com/19076/cs/2248/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}justinhunt \\ \uline{cheatography.com/justinhunt} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 18th June, 2014.\\ Updated 12th May, 2016.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{PoodLL Filter Strings For Moodle}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{17.67cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/justinhunt_1403072293_widget_montage.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{All of these filters strings will work in your Moodle if the PoodLL filter is enabled. In most cases only the key attributes are required. The other attributes will use default values if not included in the filter string. Try them out, or see other strings, at http://demo.poodll.com .} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.0083 cm} x{12.2617 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Timers}} \tn % Row 0 \SetRowColor{LightBackground} stopwatch & \{\{noshy\}\}\{POODLL:type=stopwatch,fontsize=64,width=400,height=265\} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \seqsplit{countdown(fixed)} & \{\{noshy\}\}\{POODLL:type=countdown,initseconds=120,fontheight=48,height=300\} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} \seqsplit{countdown(free)} & \{\{noshy\}\}\{POODLL:type=countdown,initseconds=120,usepresets=true,fontheight=48,height=300\} \tn % Row Count 10 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{8.1169 cm} x{9.1531 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Miscellaneous}} \tn % Row 0 \SetRowColor{LightBackground} calculator & \{\{noshy\}\}\{POODLL:type=calculator,size=normal\} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} dice & \{\{noshy\}\}\{POODLL:type=dice,dicecount=2,dicesize=200,width=600,height=300\} \tn % Row Count 7 (+ 4) % Row 2 \SetRowColor{LightBackground} \{\{noshy\}\}counter(up) & \{\{noshy\}\}\{POODLL:type=counter,usepresets=false,initcount=0,fontheight=64,width=360,height=240\} \tn % Row Count 12 (+ 5) % Row 3 \SetRowColor{white} \{\{noshy\}\}counter(down) & \{\{noshy\}\}\{POODLL:type=counter,usepresets=false,initcount=8,fontheight=64,width=360,height=240\} \tn % Row Count 17 (+ 5) % Row 4 \SetRowColor{LightBackground} \{\{noshy\}\}counter(free) & \{\{noshy\}\}\{POODLL:type=counter,usepresets=true,initcount=0,fontheight=64,width=480,height=240\} \tn % Row Count 22 (+ 5) % Row 5 \SetRowColor{white} \{\{noshy\}\}quizlet & \{\{noshy\}\}\{POODLL:type=quizlet,id=28127964,title=for\_your\_ref,mode=scatter,width=100\%,height=400\} \tn % Row Count 27 (+ 5) % Row 6 \SetRowColor{LightBackground} \{\{noshy\}\}scroller start (horizontal) & \{\{noshy\}\}\{POODLL:type=scrollerstart,axis=x,speed=40,pixelshift=4,height=110,width=500\} \tn % Row Count 32 (+ 5) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{8.1169 cm} x{9.1531 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Miscellaneous (cont)}} \tn % Row 7 \SetRowColor{LightBackground} \{\{noshy\}\}scroller start (vertical) & \{\{noshy\}\}\{POODLL:type=scrollerstart,speed=10,axis=y,pixelshift=1,width=600,height=250\} \tn % Row Count 5 (+ 5) % Row 8 \SetRowColor{white} \{\{noshy\}\}scroller end & \{\{noshy\}\}\{POODLL:type=scrollerstop\} \tn % Row Count 7 (+ 2) % Row 9 \SetRowColor{LightBackground} flashcards & \{\{noshy\}\}\{POODLL:type=flashcards,qname=name\_of\_matching\_question,cardwidth=300,cardheight=150,randomize=yes,width=400,height=252\} \tn % Row Count 14 (+ 7) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{7.4261 cm} x{9.8439 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Players (PoodLL style)}} \tn % Row 0 \SetRowColor{LightBackground} \{\{noshy\}\}standard audio & \{\{noshy\}\}\{POODLL:type=audio,path=http://mysite.com/musicfile.mp3,usepoodlldata=false,protocol=http\} \tn % Row Count 5 (+ 5) % Row 1 \SetRowColor{white} \{\{noshy\}\}once audio & \{\{noshy\}\}\{POODLL:type=onceplayer,url=http://mysite.com/musicfile.mp3\} \tn % Row Count 9 (+ 4) % Row 2 \SetRowColor{LightBackground} \{\{noshy\}\}mini audio & \{\{noshy\}\}\{POODLL:type=miniplayer,url=http://mysite.com/musicfile.mp3\} \tn % Row Count 13 (+ 4) % Row 3 \SetRowColor{white} \{\{noshy\}\}word audio & \{\{noshy\}\}\{POODLL:type=wordplayer,url=http://mysite.com/elephant.mp3,word=elephant,fontsize=36\} \tn % Row Count 18 (+ 5) % Row 4 \SetRowColor{LightBackground} \{\{noshy\}\}inline word audio & \{\{noshy\}\}\{POODLL:type=wordplayer,url=http://mysite.com/elephant.mp3,word=elephant,fontsize=36,runtime=js\} \tn % Row Count 23 (+ 5) % Row 5 \SetRowColor{white} \{\{noshy\}\}video (MP4/FLV/MOV) & \{\{noshy\}\}\{POODLL:type=video,path=http://site.com/avideo.mp4,usepoodlldata=false,protocol=http,width=400,height=300\} \tn % Row Count 29 (+ 6) % Row 6 \SetRowColor{LightBackground} \{\{noshy\}\}video (custom splash) & \{\{noshy\}\}\{POODLL:type=video,path=http://site.com/avideo.mp4,splashurl=http://mysite.com/splash.jpg,usepoodlldata=false,protocol=http,width=400,height=300\} \tn % Row Count 36 (+ 7) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{These are the long hand filter strings.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{7.5988 cm} x{9.6712 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Players (Link style)}} \tn % Row 0 \SetRowColor{LightBackground} standard audio player & \textless{}a href="url\_of\_file.mp3"\textgreater{}anything.mp3\textless{}/a\textgreater{} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} mini player (audio) & \textless{}a href="url\_of\_file.mp3"\textgreater{}anything.mini.mp3\textless{}/a\textgreater{} \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} once player (audio) & \textless{}a href="url\_of\_file.mp3"\textgreater{}anything.once.mp3\textless{}/a\textgreater{} \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} word player (eg elephant) & \textless{}a href="url\_of\_file.mp3"\textgreater{}elephant.word.mp3\textless{}/a\textgreater{} \tn % Row Count 11 (+ 3) % Row 4 \SetRowColor{LightBackground} inline word player (eg elephant) & \textless{}a href="url\_of\_file.mp3"\textgreater{}elephant.inlineword.mp3\textless{}/a\textgreater{} \tn % Row Count 14 (+ 3) % Row 5 \SetRowColor{white} video (MP4 / FLV / MOV) & \textless{}a href="url\_of\_file.mp4"\textgreater{}anything.mp4\textless{}/a\textgreater{} \tn % Row Count 16 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{In practise, you can just insert a media file into an html area as usual and it works. For the once, word and mini players it is the same. Just carefully change the text on the page to add "once" , "mini" or "word" to make them work.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{6.908 cm} x{10.362 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Recorders}} \tn % Row 0 \SetRowColor{LightBackground} \{\{noshy\}\}audio recorder & \{\{noshy\}\}\{POODLL:type=audiorecorder\} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \{\{noshy\}\}video recorder & \{\{noshy\}\}\{POODLL:type=videorecorder\} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \{\{noshy\}\}webcam snapshot & \{\{noshy\}\}\{POODLL:type=snapshot\} \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{Recorders inserted using filter strings won't save recordings in a way you can get at them. They are mostly useless, but sometimes there is a case to use them.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{7.4261 cm} x{9.8439 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Whiteboards}} \tn % Row 0 \SetRowColor{LightBackground} \{\{noshy\}\}default & \{\{noshy\}\}\{POODLL:type=whiteboard,runtime=auto\} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \{\{noshy\}\}with background image & \{\{noshy\}\}\{POODLL:type=whiteboard,backimage=http://site.com/image.png,width=800,height=400\} \tn % Row Count 8 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{Drawings made with whiteboards inserted in this way can not be saved.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{8.635 cm} x{8.635 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Pairwork}} \tn % Row 0 \SetRowColor{LightBackground} \{\{noshy\}\}pairwork admin & \{\{noshy\}\}\{POODLL:type=adminconsole\} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \{\{noshy\}\}pairwork widget (audio) & \{\{noshy\}\}\{POODLL:type=newpoodllpairwork\} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \{\{noshy\}\}pairwork widget (video,chat,whiteboard) & \{\{noshy\}\}\{POODLL:type=newpoodllpairwork,width=800, height=1000,chat=true,whiteboard=true,showvideo=true,whiteboardback=http://site.com/pic.jpg\} \tn % Row Count 12 (+ 8) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{6.5626 cm} x{10.7074 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Broadcast/Subscribe}} \tn % Row 0 \SetRowColor{LightBackground} \{\{noshy\}\}screensubscribe & \{\{noshy\}\}\{POODLL:type=screensubscribe,width=600,height=400,broadcastkey=unique123\} \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} \{\{noshy\}\}cambroadcaster & \{\{noshy\}\}\{POODLL:type=cambroadcaster,broadcastkey=unique123\} \tn % Row Count 7 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{This was the basis of the original PoodLL pairwork. It simply broadcasts a webcam/audio stream on a unique key. Using the same key, screensubscribe can watch it.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \end{document}