mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
sweave.lyx: update FAQ (fragile frames are now supported)
This commit is contained in:
parent
b7c04ebb15
commit
5df5421117
@ -1,5 +1,5 @@
|
|||||||
#LyX 2.1 created this file. For more info see http://www.lyx.org/
|
#LyX 2.1 created this file. For more info see http://www.lyx.org/
|
||||||
\lyxformat 445
|
\lyxformat 462
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\textclass article
|
\textclass article
|
||||||
@ -50,6 +50,8 @@ sweave
|
|||||||
\use_package mathdots 1
|
\use_package mathdots 1
|
||||||
\use_package mathtools 0
|
\use_package mathtools 0
|
||||||
\use_package mhchem 1
|
\use_package mhchem 1
|
||||||
|
\use_package stackrel 0
|
||||||
|
\use_package stmaryrd 0
|
||||||
\use_package undertilde 0
|
\use_package undertilde 0
|
||||||
\cite_engine basic
|
\cite_engine basic
|
||||||
\cite_engine_type numerical
|
\cite_engine_type numerical
|
||||||
@ -759,7 +761,7 @@ sideways false
|
|||||||
status open
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
\begin_inset Caption
|
\begin_inset Caption Standard
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
Quantiles of the first four variables in the
|
Quantiles of the first four variables in the
|
||||||
@ -913,7 +915,7 @@ pairs(iris, col = iris$Species)
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
\begin_inset Caption
|
\begin_inset Caption Standard
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
Scatter plot matrix of the
|
Scatter plot matrix of the
|
||||||
@ -977,7 +979,7 @@ boxplot(Sepal.Length~Species,data=iris,horizontal=TRUE,xlab='Sepal.Length')
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
\begin_inset Caption
|
\begin_inset Caption Standard
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
Boxplots of sepal length grouped by species.
|
Boxplots of sepal length grouped by species.
|
||||||
@ -1501,43 +1503,24 @@ How to use Sweave with beamer?
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
You will end up with LaTeX errors if you use Sweave in beamer slides in
|
You will end up with LaTeX errors if you use Sweave in normal beamer slides
|
||||||
LyX; the reason is the beamer frame that contains verbatim R code and output
|
in LyX; the reason is the beamer frame that contains verbatim R code.
|
||||||
must have the
|
The solution is to use a
|
||||||
|
\emph on
|
||||||
|
FragileFrame
|
||||||
|
\emph default
|
||||||
|
instead of a normal
|
||||||
|
\emph on
|
||||||
|
Frame
|
||||||
|
\emph default
|
||||||
|
, or to pass the option
|
||||||
\family typewriter
|
\family typewriter
|
||||||
fragile
|
fragile
|
||||||
\family default
|
\family default
|
||||||
option.
|
to the frame title via
|
||||||
However, currently there is no straightforward way to do this.
|
|
||||||
One way is to write raw TeX code, and the other is to use the
|
|
||||||
\family sans
|
|
||||||
beamer-fragile.module
|
|
||||||
\family default
|
|
||||||
discussed in
|
|
||||||
\begin_inset CommandInset href
|
|
||||||
LatexCommand href
|
|
||||||
name "#7273"
|
|
||||||
target "http://www.lyx.org/trac/ticket/7273"
|
|
||||||
|
|
||||||
\end_inset
|
|
||||||
|
|
||||||
(put this file under the
|
|
||||||
\family sans
|
|
||||||
layouts
|
|
||||||
\family default
|
|
||||||
directory of LyX user directory and reconfigure LyX).
|
|
||||||
After including this module in your document, you should be able to use
|
|
||||||
|
|
||||||
\family sans
|
\family sans
|
||||||
Insert\SpecialChar \menuseparator
|
Insert\SpecialChar \menuseparator
|
||||||
Custom Insets\SpecialChar \menuseparator
|
Frame Options
|
||||||
FragileFrame
|
|
||||||
\family default
|
|
||||||
, which is essentially
|
|
||||||
\family typewriter
|
|
||||||
|
|
||||||
\backslash
|
|
||||||
begin{frame}[fragile]
|
|
||||||
\family default
|
\family default
|
||||||
.
|
.
|
||||||
\end_layout
|
\end_layout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user