Quantcast
Channel: Statistics Help @ Talk Stats Forum - Other Software
Viewing all articles
Browse latest Browse all 142

[LaTeX] Removing space after \include statement

$
0
0
Hee TS,

So I integrate my tex documents with R without Sweave cause Sweave really really really doesn't make your documents any easier to read... also you really don't need it to have it's functionality - so I would love a sweave free solution.


So here is an example document;


Code:

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}

This is my random number (\input{temp.txt})

\end{document}

With a parallel R-script

Code:

write(rnorm(1),"temp.txt")
Only problem is that it always leaves a trailing space... e.g. (-1.234567 ). Anybody got an idea on how to remove this trailing space?


Thanks for any input you may have,

TE

Viewing all articles
Browse latest Browse all 142

Latest Images

Trending Articles



Latest Images