Announcement

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

  • Frmttable: preventing notes added by "note" option from spanning width of page in a Latex table, and left justifying notes.

    Dear all,
    I am using John Luke Gallup's "frmttable" command to create tex tables. An issue I'm having is that no matter the width of the table, any notes added below the table span the width of the page. I'm wondering if there is a way to specify the frmttable command so that added notes are the width of the table. I can use \ to break the note into multiple lines, but this is not optimal. Also, if possible, I would also like to left justify the note. I cannot figure out how to do so.
    Here is some sample code:
    Code:
    frmttable using "$dir1/stata files/impact analysis revision 1/results/girls6_60.tex", ///
    statmat(obs) substat(1) sdec(0) ///
    sfmt(fc) tex fragment merge ct(""\"Observations"\"") ///
    note("Notes: * p \textless 0.10, ** p \textless 0.05, *** p \textless 0.01. Standard errors in brackets estimated as in \citet{Young2016}." \ "All regressions include an intercept and indicators for fourteen strata.")

  • #2
    So I figured out that you can avoid notes spanning the whole page by using replay to reload an existing table and then appending the note while using the "multicol" option. For example:
    Code:
    frmttable , replay tex fragment append ///
    note("Note: * \textit{p} \textless 0.10, ** \textit{p} \textless 0.05, *** \textit{p} \textless 0.01. Standard errors in brackets, 95\% confidence intervals in parentheses, both estimated as in \citet{Young2016}. All regressions include an intercept, indicators for thirteen strata, direct effects for all climate variables, as well as distance to the nearest weatherstation and its interaction with the treatment indicator. All climate variables measured from May through December 2015. Z-scores and stunting indicators calculated according to World Health Organization standards \citep{WHO}.") ///
    multicol(1, 1, 6)
    However, it doesn't seem possible to left-justify the note without editing the tex file directly. If anyone has a solution to this, I'd love to hear it.

    Comment

    Working...
    X