Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16


    We're somehow discussing things which are not very related to the rest of the list, since the rest of the people are talking about inserting graphs in a document. But just to answer your question, yes, you can customize the styles, change font, font size, etc in markdoc. But Weaver package provide all of these options. So you might look into that instead. Markdoc meant to be a "quick and dirty" package that includes a single command for creating a dynamic document. Whereas Weaver is a whole new HTML or LaTeX log system that can be run in parallel to Stata smcl log... I'd encourage you to wait a start a new post when and ask your question if you can't figure them out.
    Last edited by haghish; 29 Jan 2016, 16:05.

    Comment


    • #17
      Attaullah Shah You can so all of this directly in Stata as well. See

      Code:
      help mf__docx
      And the additional documentation related to specific styling functions http://www.stata.com/docx-styles/.

      Comment


      • #18
        Mikko Rönkkö

        Originally posted by Mikko Rönkkö View Post
        haghish The markdoc package looks really promising. If there was a way to automatically export the graphs and include them in the file, that would be exactly what I need. But even without that, it should simplify the process a bit and syntax highlighting is nice to have.
        I received similar suggestion lately which made me think it's really what everyone is after. So I updated the img command to "allow" automating the process of exporting and importing the graph. So, if the file name is not specified, it assumes that there is an existing current graph.

        Code:
        . sysuse auto, clear
        . histogram mpg
        . img
        
        . hist price
        . img, title("This is the histogram of the Price variable") 
        
        
        // And if the filename is specified...
        
        . img filename.suffix
        I upload img.ado as well in case anyone wishes to try it or make better suggestions ideas. it's currently only available for Weaver package (ssc install weaver).
        Attached Files

        Comment


        • #19
          In case anyone from this thread is interested, along with Mauricio Caceres I wrote a Jupyter kernel for Stata that works on Windows, Linux, and Mac, and (unlike ipystata) controls Stata directly and thus doesn't need to slow down while moving data between Python and Stata.

          You can get more information here: https://kylebarron.github.io/stata_kernel/

          Click image for larger version

Name:	Screenshot from 2018-09-07 00-08-18.png
Views:	2
Size:	332.6 KB
ID:	1461190
          Attached Files

          Comment

          Working...
          X