1
是否可以爲RStudio的Tex部分中的部分,子部分等創建「快捷方式」?類似於在#####標題#####中包裝「標題」的R部分在控制檯窗口上方創建下拉窗簾。RStudio中部分的快捷方式
是否可以爲RStudio的Tex部分中的部分,子部分等創建「快捷方式」?類似於在#####標題#####中包裝「標題」的R部分在控制檯窗口上方創建下拉窗簾。RStudio中部分的快捷方式
您可以使用空的代碼塊。它將創建跳轉菜單條目的生成,從而允許快速跳轉並啓用摺疊而不改變輸出。
這裏的玩具內容...
\documentclass{article}
\usepackage{Sweave}
\SweaveOpts{concordance=TRUE}
\title{Sample Sweave Document}
\author{Thell Fowler}
\begin{document}
\maketitle
\section*{Introduction}
<<\section*{Introduction}>>=
@
Some actual content.
\section{Concept}
<<\section{Concept}>>=
@
Some other content.
\subsection*{Algorithm}
<<\subsection*{Algorithm}>>=
@
<<HelperFunctions>>=
HelperFunction1 <- function() {
print("That helped!")
}
HelperFunction2 <- function() {
print("Oh, that helped too!")
}
@
<<MainFunction>>=
main <- function() {
print("I need some help!")
HelperFunction1()
cat("\tbut not enough! Let's get more help...\n")
HelperFunction2()
cat("That's much better!\n")
}
@
\subsection*{Example}
<<\subsection*{Example}>>=
@
<<Example>>=
# We can get help.
main()
@
\subsubsection*{Pros}
<<\subsubsection*{Pros}>>=
@
\subsubsection*{Cons}
<<\subsubsection*{Cons}>>=
@
\end{document}
它可能看起來像一個痛苦,但它很直接和簡單。
其次VIM模式鍵
對不起,這不是在RStudio中爲Sweave/TeX文檔實現的。
它應該是,P –