Announcement

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

  • Font size

    Dear All,

    Is there any way to control the font size that is applied when the translate command is applied to translate from LOG to PDF format?

    Due to differences between the screen width and the paper width the default font makes an ugly derivative of otherwise beautiful table

    PS: I need to change the font size, not the font face, which is readily available.
    PPS: translate is a built-in command so no source is available there for inspection.

    Thank you, Sergiy

  • #2
    PPS: translate is a built-in command so no source is available there for inspection.
    The output of help translate is informative, however. Following its guidance, on my system (macOS, Stata 16.1) I ran the following.
    Code:
    . translator query log2pdf
    -------------------------------------------------------------------------
                    header | off
                headertext | 
                      logo | off
                      user | 
               projecttext | 
                 cmdnumber | off
    -----------------------+-------------------------------------------------
                  fontsize | 10                         margin | 1.00
                  pagesize | letter                    rmargin | 1.00
                 pagewidth | 8.50                      tmargin | 1.00
                pageheight | 11.00                     bmargin | 1.00
    -------------------------------------------------------------------------
    
    . return list
    
    macros:
                r(bmargin) : "1.00"
             r(pageheight) : "11.00"
                r(tmargin) : "1.00"
              r(pagewidth) : "8.50"
                r(rmargin) : "1.00"
               r(pagesize) : "letter"
                 r(margin) : "1.00"
               r(fontsize) : "10"
              r(cmdnumber) : "off"
                   r(logo) : "off"
                 r(header) : "off"
    From the section of help translate covering override_options I am led to believe that e.g. fontsize(12) would increase the font size to 12 points.

    Comment


    • #3
      Great! This is exactly what I was looking for. Thank you very much William Lisowski !

      Comment

      Working...
      X