[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-688633-105":59,"doc-detail-688633-en":122,"doc-similar-688633":141},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":115,"head_meta":117,"extra_data":119,"updated_unix":121},105,"en","cs109-latex-cheat-sheet-quick-reference-for-cs109","CS109 LaTeX Cheat Sheet - Quick Reference for CS109","","CS109 LaTeX Cheat Sheet provides a fast reference to LaTeX language features encountered in CS109 problem sets and coursework. It compiles frequently used mathematical markup such as common symbols, sums and products, probability and random-variable notation, and calculus expressions. The sheet also covers practical structures including grouped equation blocks, Venn diagrams via the venndiagram package, graph plotting with TikZ/PGF, probability trees, and table formatting, plus optional Python code highlighting and general learning tips.",{"@graph":69,"@context":114},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/cs109-latex-cheat-sheet-quick-reference-for-cs109/688633/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/cs109-latex-cheat-sheet-quick-reference-for-cs109/688633.png","ImageObject",300,407,{"name":92,"@type":93},"Kurz","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-27","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108],{"name":109,"@type":110,"acceptedAnswer":111},"What optional tools or packages does it mention?","Question",{"text":112,"@type":113},"It mentions venndiagram for Venn diagrams, TikZ/pgf for plotting and probability trees, and pythonhighlight for Python code highlighting, along with tips such as using Wolfram Alpha.","Answer","https://schema.org",{"og:url":83,"og:type":116,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":118,"canonical":83},"index,follow",{"doc_id":120,"site_id":62},688633,1794090354,{"code":4,"msg":5,"data":123},{"doc_id":120,"user_id":124,"nickname":92,"user_avatar":125,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":126,"file_id":127,"file_url":128,"file_type":129,"file_size":130,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":34,"language":131,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":132,"faqs":133,"seo_title":134,"seo_description":67,"update_tm":121,"read_time":135,"preview_page_count":8,"preview_urls":136},2336478945635,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","CS109 LaTeX Cheat Sheet  \nCreated by Derek Chong for CS109 during Spring 2020.  \nThis cheat sheet assumes you have done an introductory tutorial and have a basic level of general knowledge. It focuses on giving you a quick reference for language features you will encounter in CS109 , in order to make your life easier when working on problem sets.  \nFrequently-Used Markup  \n\n| Building Blocks |  |  |  |\n| --- | --- | --- | --- |\n| | \\geq | | \\leq |\n| | \\neq | | \\approx |\n| | \\sim | | \\Rightarrow |\n| | \\sqrt{42} | | \\infty |\n| | \\lambda | | \\mu, \\sigma |\n| | \\Phi(0) | | \\Sigma |\n| | \\theta | | \\bar{X}, \\hat{X} |\n| | A,B,\\dots,Z | | 1,2,\\cdots,n |\n| | \\verb |my_function()| | | \\frac{42 \\textrm{ units} \\times 42 \\textrm{ units}}{42\u003Cbr>\\textrm{ units}\\times 42 \\textrm{ units}} |\n| | \\sum_ {i=0}^{n}\\frac{a}{b} | | \\prod_ {i=0}^{n}\\frac{a}{b} |\n| Probability |  |  |  |\n| | P(A \\cap B) | | P(A \\cup B) |\n| | \\binom{n}{k} | | P(A_ 1 |B^C) |\n\n\n| | P(\\textrm{text } |\\textrm{ text}) | | P(\\textrm{cond}\\leq 5 .0) |\n| --- | --- | --- | --- |\n| | \\frac{P(\\textrm{a }| \\textrm{ b})\\times\u003Cbr>P(\\textrm{b})}{P(\\textrm{a})} | | \\frac{P(\\textrm{a }| \\textrm{ b})\\times\u003Cbr>P(\\textrm{b})}{P(\\textrm{a } |\\textrm{\u003Cbr>b})P(\\textrm{b}) + P(\\textrm{a } |\\textrm{\u003Cbr>b}^C)P(\\textrm{b}^C )} |\n| Random Variables |  |  |  |\n| | X \\sim\u003Cbr>\\textrm{Ber}(p) | | X \\sim\u003Cbr>\\textrm{Bin}(n,p) |\n| | X \\sim \\textrm{Poi}(\\lambda=0) | | X \\sim \\textrm{Exp}(\\lambda=0) |\n| | X \\sim \\mathcal{N}(\\mu = 0, \\sigma^2 = 1) | | \\theta \\sim\u003Cbr>\\textrm{Beta}(a,b) |\n| Calculus |  |  |  |\n| | \\int_ {-1}^{1} x^2 - 2x + 1 dx | | \\left[ x -\\frac{1}{2}x^2 \\right]_ { -1}^1 |\n| | \\iint_ {0\u003Cy\u003Cx\u003C1}\\frac{x}{y} dy dx | | \\left . \\frac{2}{3}y- \\frac{3}{4}y^2 \\right |_ {-1}^{x} |\n| Variance and Covariance |  |  |  |\n| | \\textrm{Var}(X) | | \\textrm{Cov}(X,Y) |\n| | \\begin{bmatrix} a & b \\\\ c & d \\end{bmatrix} | | \\rho |\n\nUseful Structures  \nGroups of Equations  \n\\begin { align * } chunks can be used to organise multiple lines of equations.  \n\\begin{align*} P(X=x |Y=1,W=P_ 1)  \n&= \\frac{P(X=x,Y=1 | W=P_ 1)}{P(Y=1 |W=P_ 1)} \\\\&= P(X=x |W=P_ 1) \\\\&= \\binom{5}{x}(0 .1)^x(0 . 9)^{5-x} \\\\ P(X=x |Y=1,W=P_ 2)  \n&= \\frac{P(X=x,Y=1 | W=P_ 2)}{P(Y=1 |W=P_ 2)} \\\\&= P(X=x |W=P_ 2) \\\\&= \\binom{5}{x}(0 .1)^x(0 . 9)^{5-x}\\end{align*}  \nVenn Diagrams  \nYou may have to install the venndiagram package (and include \\usepackage{venndiagram})  \n\\begin{venndiagram3sets}[labelA={Foo},labelB={Bar},labelC ={Baz},  \nlabelOnlyA={1},labelOnlyB={2},labelOnlyC={3}, labelOnlyAB={4},labelOnlyAC={5},labelOnlyBC={6},labelABC={7},  \nlabelNotABC={8}]  \n\\begin{center}  \n\\begin{venndiagram3sets}[labelA={Foo},labelB={Bar},labelC ={Baz},  \nlabelOnlyA={1},labelOnlyB={2},labelOnlyC={3}, labelOnlyAB={4},labelOnlyAC={5},labelOnlyBC={6},labelABC={7},labelNotABC={8},shade={yellow}]  \n\\fillOnlyB\\end{venndiagram3sets}\\end{center}  \n\\begin{center}\\begin{venndiagram2sets}[labelA={Foo},labelB={Bar}, labelOnlyA={$x$},labelOnlyB={$z$}, labelAB={$y$}, shade={white}]  \n\\fillAll \\end{venndiagram2sets}\\end{center}  \nFull package documentation is available here:  \n[https://ctan.math.illinois.edu/macros/latex/contrib/venndiagram/venndiagram.pdf](https://ctan.math.illinois.edu/macros/latex/contrib/venndiagram/venndiagram.pdf)  \nPlotting Graphs  \n\\begin{tikzpicture}  \n\\begin{axis}[  \naxis lines = center,  \nxlabel = {$p$},]  \n\\addplot [domain=-0 .05:1 .5, samples=100, color=blue]{x};  \n\\addlegendentry{$p$}  \n\\addplot [domain=-0 .05:1 .5, samples=100, color=red]{x*x};  \n\\addlegendentry{$q = p^2$}  \n\\end{axis}\\end{tikzpicture}  \nProbability Trees  \n\\tikzstyle{level 1}= [level distance=3 .5cm , sibling distance=3cm]  \n\\tikzstyle{level 2}= [level distance=3 .5cm , sibling distance=3 .3cm]  \n\\tikzstyle{bag} = [text width=4em , text centered]\\tikzstyle{end} = [circle , minimum width=3pt , fill , inner sep=0pt]  \n\\begin{tikzpicture} [grow=right]\\node [bag] {Foo}  \nchild {  \nnode [bag] {Bar}  \nchild {  \nnode [end , label=right : {Baz}] {} edge from parent  \nnode [above] ","cbCaitJ9RStHhWIZ","https://ap.wps.com/l/cbCaitJ9RStHhWIZ","pdf",471442,"English","# Frequently-Used Markup\n## Probability\n## Random Variables\n## Calculus\n## Variance and Covariance\n# Useful Structures\n## Groups of Equations\n## Venn Diagrams\n## Plotting Graphs\n## Probability Trees\n## Tables\n# Python Code Highlighting\n# General Tips","[{\"question\":\"What optional tools or packages does it mention?\",\"answer\":\"It mentions venndiagram for Venn diagrams, TikZ/pgf for plotting and probability trees, and pythonhighlight for Python code highlighting, along with tips such as using Wolfram Alpha.\"}]","CS109 LaTeX Cheat Sheet - Quick Reference for CS109 | PDF",18,[137],{"page_no":8,"url":138,"width":139,"height":140},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/fe8ba3eff46914c51f89b3a90c2d7c19.webp",983,1272,{"list":142,"token":66},[143,149,155,161,167,173,180,186,193,199],{"doc_id":144,"doc_title":145,"file_type":129,"home_preview_img_url":146,"slug":147,"view_count":81,"category_name":30,"create_tm":148},671830,"chessboard - A package to print chessboards - manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988782751/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129879&Signature=2dy5ywydu378BdOowJ47MJiJWf0%3D","chessboard-a-package-to-print-chessboards-manual",1793581240,{"doc_id":150,"doc_title":151,"file_type":129,"home_preview_img_url":152,"slug":153,"view_count":29,"category_name":30,"create_tm":154},650808,"TIKZORBILTAL Package - Molecular Diagrams and Atomic Orbitals (s, p, d) - Command Syntax and Examples","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229973340599/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129879&Signature=nnFtbIzfTfzCGNnH68APw3C9O1g%3D","tikzorbiltal-package-molecular-diagrams-and-atomic-orbitals-s-p-d-command-syntax-and-examples",1792846132,{"doc_id":156,"doc_title":157,"file_type":129,"home_preview_img_url":158,"slug":159,"view_count":24,"category_name":30,"create_tm":160},663186,"tikz-network - Version 1.1 - User Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229981599117/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129879&Signature=kMcAcsDjGHlgEzbgs2z5DQnpGGU%3D","tikz-network-version-11-user-manual",1793225672,{"doc_id":162,"doc_title":163,"file_type":129,"home_preview_img_url":164,"slug":165,"view_count":19,"category_name":30,"create_tm":166},688132,"Bluebeam Revu Default Keyboard Shortcuts Cheat Sheet - Quick Reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001268988/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129879&Signature=1eAZoSEuAG02wXMYuKlYaHoFuTc%3D","bluebeam-revu-default-keyboard-shortcuts-cheat-sheet-quick-reference",1794086464,{"doc_id":168,"doc_title":169,"file_type":129,"home_preview_img_url":170,"slug":171,"view_count":19,"category_name":30,"create_tm":172},685807,"Introductory Scientific Computing with Python - Interactive Plotting - Lists and Plotting Points","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000213234/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129879&Signature=7z6PyYPv69UCcVpeu5Xr5fFwabs%3D","introductory-scientific-computing-with-python-interactive-plotting-lists-and-plotting-points",1794018712,{"doc_id":174,"doc_title":175,"file_type":129,"home_preview_img_url":176,"slug":177,"view_count":178,"category_name":30,"create_tm":179},657499,"A Markdown Interpreter for TEX - Version 3.16.2","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975517355/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129879&Signature=pdHB6XuF21POZFEsDi2JALx2KSM%3D","a-markdown-interpreter-for-tex-version-3162",13,1792981474,{"doc_id":181,"doc_title":182,"file_type":129,"home_preview_img_url":183,"slug":184,"view_count":81,"category_name":30,"create_tm":185},699578,"New Computer Fan Data-Science Set-up - Python (Anaconda), R (Rstudio), Matlab and Latex (Texlive)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011320290/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129879&Signature=N2LCQFjzAyLxz5LK%2Fpcf002Behc%3D","new-computer-fan-data-science-set-up-python-anaconda-r-rstudio-matlab-and-latex-texlive",1794479724,{"doc_id":187,"doc_title":188,"file_type":129,"home_preview_img_url":189,"slug":190,"view_count":191,"category_name":30,"create_tm":192},665446,"Commutative Diagrams with TikZ - Version 1.0 - May 4, 2021","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983494399/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129879&Signature=8OFxVT7CtAVLLy1M0td3%2F5OSDEw%3D","commutative-diagrams-with-tikz-version-10-may-4-2021",14,1793304182,{"doc_id":194,"doc_title":195,"file_type":129,"home_preview_img_url":196,"slug":197,"view_count":19,"category_name":30,"create_tm":198},657599,"SBMLDIAGRAMS: A PYTHON PACKAGE TO PROCESS AND VISUALIZE SBML LAYOUT AND RENDER","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975610735/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129879&Signature=zONwT0FxwAQoHpt8RzPt92X6VRA%3D","sbmldiagrams-a-python-package-to-process-and-visualize-sbml-layout-and-render",1792984584,{"doc_id":200,"doc_title":201,"file_type":129,"home_preview_img_url":202,"slug":203,"view_count":204,"category_name":30,"create_tm":205},389903,"Python For Data Science Cheat Sheet - SciPy Linear Algebra","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917144105/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129879&Signature=%2FiVk8u2A4HRWGxmIhwfkzCVT1uE%3D","python-for-data-science-cheat-sheet-scipy-linear-algebra",16,1790328319]