I am writing a document in the revtex4-1 class in LyX. I would like to apply widetext to some of my longer formulas. However, selecting the widetext environment in Lyx would cause the entire paragraph to switch to a single column, including all regular text, instead of just the equation. How would I target the equation specifically?
Asked
Active
Viewed 827 times
3
Torbjørn T.
- 206,688
Deep Blue
- 163
1 Answers
6
- Hit enter to start a new paragraph.
- Add the widetext environment
- Add equation inside widetext enviroment.
Another option could be using ERTs for starting and ending the environment:
- Hit Ctrl + L to open an ERT, and write
\begin{widetext}in it. - Hit →, the right arrow key, to move the cursor outside the ERT.
- Start a displayed math env with for example Ctrl + Shift + M, and write your equation.
- Hit →, the right arrow key, to move the cursor outside the math inset.
- Without hitting enter or anything, hit Ctrl + L to open a second ERT, and write
\end{widetext}in it. - Continue the sentence immediately after the ERT, no space, no line feed.
Here is what it might look like in LyX, and the code it generates:
You could also add a newline inside the ERTs, before \begin{widetext} and after \end{widetext}. It wouldn't make a new paragraph, but it would place those on their own lines of code.
Torbjørn T.
- 206,688

$$ ... $$for displaymath, cf. https://tex.stackexchange.com/q/503) – Torbjørn T. Feb 12 '18 at 08:28