Skip to content

Commit 46885e9

Browse files
author
smeyer
committed
add reference output for Rd \eqn (before Rd2txt() patch)
git-svn-id: https://svn.r-project.org/R/trunk@88433 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 3e93d4c commit 46885e9

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

tests/testit.Rd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ foo(\var{x}, \var{y}, ...)
7878
row\tab % nothing here
7979
}
8080
}
81+
\section{\verb{\eqn}}{
82+
This should not start a new paragraph:
83+
\eqn{\frac{1}{n-1}}{
84+
1/(n-1)}.
85+
}
8186
\section{\verb{\deqn}}{
8287
1-arg form, centered also in text conversion:
8388
\deqn{

tests/testit.html.save

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ output
129129

130130

131131

132+
<h3><code style="white-space: pre;">&#8288;\eqn&#8288;</code></h3>
133+
134+
<p>This should not start a new paragraph:
135+
<code class="reqn">\frac{1}{n-1}</code>.
136+
</p>
137+
138+
132139
<h3><code style="white-space: pre;">&#8288;\deqn&#8288;</code></h3>
133140

134141
<p>1-arg form, centered also in text conversion:

tests/testit.tex.save

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ row&
8686
}
8787
\end{Section}
8888
%
89+
\begin{Section}{\AsIs{\texttt{\bsl{}eqn}}}
90+
This should not start a new paragraph:
91+
\eqn{\frac{1}{n-1}}{}.
92+
\end{Section}
93+
%
8994
\begin{Section}{\AsIs{\texttt{\bsl{}deqn}}}
9095
1-arg form, centered also in text conversion:
9196
\deqn{

tests/testit.txt.save

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ _V_a_l_u_e:
7070
-3- third
7171
row
7272

73+
\_e_q_n:
74+
75+
This should not start a new paragraph:
76+
77+
1/(n-1).
78+
7379
\_d_e_q_n:
7480

7581
1-arg form, centered also in text conversion:

0 commit comments

Comments
 (0)