TransWikia.com

Include .Rtex as a chapter in latex

TeX - LaTeX Asked by cianius on December 4, 2020

I have an Rtex that contains:

documentclass[openany]{book}
chapter{Introduction}
input{./Introduction/Introduction}

chapter{Thesis Outline}
input{./Outline/Outline_Chapter}

bibliographystyle{plainnat}
bibliography{./References/Upgrade}

end{document}

I was to include some R code into the file “./Outline/Outline_Chapter”. Is there any way to have that as Outline_Chapter.Rtex and still be input/included to the overall document?

One Answer

The following works in Overleaf (naming main file *.Rtex).

documentclass{standalone}
begin{filecontents*}{tmp999.Rtex}
<<>>=
rnorm(3)
@
end{filecontents*}
begin{document}
input{tmp999}
end{document}

Overleaf output

Answered by David M Kaplan on December 4, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP