 
     # Editors for private normal editable files.
     register(false, HTML_MD_Editor,   html_md_exts)
-    register(false, LatexEditor,      ['tex'])
+    register(false, LatexEditor,      ['tex', 'rnw'])
     register(false, Terminal,         ['term', 'sage-term'])
     register(false, Media,            ['png', 'jpg', 'jpeg', 'gif', 'svg'].concat(VIDEO_EXTS))
 

            else
                cb()

        async.series([
            task_latex,
            task_sage,
            task_bibtex,

        @project_id = opts.project_id
        @filename   = opts.filename
        @image_type = opts.image_type
        @ext = misc.filename_extension_notilde(@filename)?.toLowerCase()

        @_pages     = {}
        @num_pages  = 0
