1

I have some latex tables that I generated via stata.

I am trying to incorporate them onto r markdown so that I can create a comprehensive pdf with all the figures (some generated in r markdown, some in the form of latex).

I have a many tex files like this and would like to know how I can load the latex codes to R markdown.

    \documentclass{article}
    \usepackage[margin=.25in]{geometry}
    \begin{document}
    \begin{table}[htbp]\centering
    \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
    \caption{Share Ownership for 1927 (Third Degree Connections, No Weights)}
    \begin{tabular}{l*{5}{c}}
    \hline\hline
                &\multicolumn{1}{c}{(1)}         &\multicolumn{1}{c}{(2)}         &\multicolumn{1}{c}{(3)}         &\multicolumn{1}{c}{(4)}         &\multicolumn{1}{c}{(5)}         \\
    \hline
    No. of Firms&      -0.002         &      -0.011         &      -0.015         &      -0.011         &      -0.015         \\
                &     (0.018)         &     (0.025)         &     (0.026)         &     (0.025)         &     (0.026)         \\
                &    [-0.000]         &    [-0.000]         &    [-0.000]         &    [-0.000]         &    [-0.000]         \\
    Poors Dummy &       0.653\sym{***}&       0.668\sym{***}&       0.641\sym{***}&       0.657\sym{***}&       0.632\sym{***}\\
                &     (0.166)         &     (0.167)         &     (0.167)         &     (0.167)         &     (0.167)         \\
                &     [0.002]\sym{***}&     [0.002]\sym{***}&     [0.002]\sym{***}&     [0.002]\sym{***}&     [0.002]\sym{***}\\
\hline\hline
\end{tabular}
\end{table}
\end{document}

closed as off-topic by Torbjørn T., Zarko, ChrisS, gernot, egreg Mar 4 '17 at 23:15

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – Torbjørn T., Zarko, ChrisS, gernot, egreg
If this question can be reworded to fit the rules in the help center, please edit the question.

  • What is R markdown? – Bernard Feb 16 '17 at 21:35

Browse other questions tagged or ask your own question.