I'm aware there are similar questions like this on TeX.SE but I'm not competent enough to infer between other examples and mine or to isolate the problematic line of code.
I'm confused because it's not just the size of the text creating the cut off - if I change text size to 12 from 36 it will still be cut off.
Can anybody suggest?
My table and code is below.
% Table created by stargazer v.5.2 by Marek Hlavac, Harvard University. E-mail: hlavac at fas.harvard.edu
% Date and time: Sun, Apr 30, 2017 - 16:53:55
\begin{table}[!htbp] \centering
\caption{}
\label{}
\begin{tabular}{@{\extracolsep{5pt}} cccc}
\\[-1.8ex]\hline
\hline \\[-1.8ex]
& Variable & Party.With.High.Populism.Score & Party.With.Low.Populism.Score \\
\hline \\[-1.8ex]
1 & Nationalism & Supports nationalistic conception of society & Supports cosmopolitan conception of society \\
2 & Multiculturalism & Supports assimilation & Supports multiculturalism \\
3 & Immigration & Supports a tough stance on immigration & Opposes tough stance on immigration \\
4 & Democratic Freedoms & Values tradition and authoritarian values & Values libertarian values \\
5 & Civil Liberties & Supports a tough stance on crime & Promotes civil liberties \\
6 & Social Lifestyle & Opposes liberal attitudes to lifestyle & Favours liberal attitudes to lifestyle \\
7 & Establishment & Critical of the establishment & Supportive of the establishment \\
8 & Religion & Supports religions inflluence on politics as 'moral authority' & Opposes religions influence on politics \\
9 & Urban/Rural & Supports rural rather than urban interests & Supports urban rather than rural interests \\
10 & Environment & Prioritises economic growth over environment protection & Prioritises environmental protection over economic growth \\
\hline \\[-1.8ex]
\end{tabular}
\end{table}


\documentclassto\end{document}that saidcccccolumns do not allow line breaking change some of thecto sayp{3cm}to have 3cm wide columns, or whatever fits. – David Carlisle Apr 30 '17 at 15:32\documentclassin the preamble but even though I've put it before the begin table line, it says can only be used in preamble. I've noticed that my example contains\begin{table}[!htbp] \centeringbut does not have\begin{document}- could that be a problem? – Henry Cann Apr 30 '17 at 16:07\begin{document}. How did you make the image you show? you presumably included the fragment of code with the table into a latex document? – David Carlisle Apr 30 '17 at 16:21stargazer(gg2, type = "latex", out = "heh2.tex", summary = FALSE)where gg2 is the data frame object read into R from excel, produces output which I then paste directly into LaTeXIT from the R Studio console output. It also creates a file called "heh2.tex". I normally use this method for regression output but have successfully created other basic tables in the last week. Bizarre that it works given that you say the begin document command is essential? – Henry Cann Apr 30 '17 at 16:31\docuemntclassand\begin{document}\end{document}(otherwise you would get no output from latex) – David Carlisle Apr 30 '17 at 17:04