Dear Experts,
I am using texsave command (from ssc's texsave package) to export tables prepared in data format - like those generated from mrtab or collapse command. However, in the texfile generated, the labels/text do not fit into a page. I tried relabeling variables/text by adding "\n" but it did not work while compiling in Latex. Is there any way to relabel the variables or the text within the variables so that the resultant output in texfile comes with line break?
Provided below is a sample data and code that did not work:
I am using texsave command (from ssc's texsave package) to export tables prepared in data format - like those generated from mrtab or collapse command. However, in the texfile generated, the labels/text do not fit into a page. I tried relabeling variables/text by adding "\n" but it did not work while compiling in Latex. Is there any way to relabel the variables or the text within the variables so that the resultant output in texfile comes with line break?
Provided below is a sample data and code that did not work:
Code:
clear set obs 5 set seed 123456 gen a = "This is a very long text that does not fit into my page" gen b = runiform(0, 1) gen c = runiform(20, 30) // I tried to change it to the following but it did not work replace a = "This is a very long text \nthat does not fit into my page" // I want the tex output such that the text line "that does not fit into my page" starts in a new line //ssc install texsave * Use it once texsave a b c using texfile.tex, replace frag varlabels
Comment