Announcement

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

  • dyndoc and css formating

    Hi all.

    I run the -dyndoc- command in stata15.
    I include in my code header and css codes.

    When I save the file to HTML, I see the HTML file as a formatted document (see CS1 attachment)
    but when I send it to others, it looks like a raw HTML code (as can be seen in the CS2 attachment).

    Are there any additional code lines needed to save the formatting?

    Many thanks!
    G.

    Code:
    dyndoc "test.md", saving("test.html") replace
    md file:
    Code:
    <<dd_version: 1>>
    <<dd_include: header.txt>>
    
    Report
    ===============================================================
    ### 1.Descriptives
    
    ~~~~
    <<dd_do: nocommands>>
    sum test
    <</dd_do>>
    ~~~~
    Header file:
    http://www.stata-press.com/data/r16/...ing/header.txt

    Css file:
    http://www.stata-press.com/data/r16/...stmarkdown.css
    Attached Files
    Stata 13, Windows OS

  • #2
    I don't really use dyndoc but you must send the CSS and HTML files together. The html simply tells the browser where to look for the style information, but contains none of the details.

    Comment


    • #3
      You need save both header.txt and stmarkdown.css in the same local folder where test.md is.

      Comment

      Working...
      X