LyXbeamer | Insert the red vertical Line

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
EigenGoofy
Posts: 42
Joined: Fri Jul 22, 2011 12:26 am

beamer | Insert the red vertical Line

Post by EigenGoofy »

Hello, all!

As the attachment shows, how do I insert the red vertical line before "1." under the Block environment please? Thank you!
Attachments
snap.jpg
snap.jpg (58.95 KiB) Viewed 7862 times
Last edited by EigenGoofy on Sat Feb 04, 2012 4:35 am, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

beamer | Insert the red vertical Line

Post by coachbennett1981 »

Are you familiar with PSTricks? You could try using the \psbrace command, e.g.,

Code: Select all

\begin{pspicture}(8,2.5) 
\psbrace[nodesepA=-10pt,nodesepB=15pt](8,2)(8,4){\fbox{Text}} 
\psbrace[ref=Ct,rot=90,nodesepA=5pt,linewidth=0.5pt](8,4.4)(8,8){$D(0)+0$}
\end{pspicture
EigenGoofy
Posts: 42
Joined: Fri Jul 22, 2011 12:26 am

Re: beamer | Insert the red vertical Line

Post by EigenGoofy »

Hi, coachbennett1981!

Sorry, I am not familiar with PSTricks. I believe that there is a very easy way write that vertical line by just clicking somewhere in LyX. But I don't know where. Thanks!
hm_cavalcanti
Posts: 6
Joined: Fri Feb 10, 2012 3:12 pm

Re: beamer | Insert the red vertical Line

Post by hm_cavalcanti »

This vertical line you see is used to nest stuff inside the block environment.
If what you want is to insert contents inside the block environment, all you have to do is to type alt+shift+right to insert them inside the block or alt+shift+right to take them away from the block environment.

Did I understand right or what you want is actually to print this big [ on the compiled document?
hm_cavalcanti
Posts: 6
Joined: Fri Feb 10, 2012 3:12 pm

beamer | Insert the red vertical Line

Post by hm_cavalcanti »

Just correcting, you can type alt+shift+left to "nest" materials inside a block environment of beamer or alt+shift+left to "unnest" contents of the block environment.

Just as an example, you would have in LaTeX

Code: Select all

\begin{block}{Title of the block}
Contents of the block
\begin{enumerate}
\item item 1
\item item 2
\item item 3
\end{enumerate}
\end{environment}
in LyX, you would have
block: ERT[{Title of the block}]
[ contents of the block
[- item 1
[- item 2
[- item 3

In the first line where you have the block environment (select it in the paragraph environment box), you insert a LaTeX code (ctrl+L). Then you can insert for example a list environment, type all the contents of the list, then select the whole list and type alt+shift+right to nest it inside the block environment.
EigenGoofy
Posts: 42
Joined: Fri Jul 22, 2011 12:26 am

beamer | Insert the red vertical Line

Post by EigenGoofy »

hm_cavalcanti wrote:Just correcting, you can type alt+shift+left to "nest" materials inside a block environment of beamer or alt+shift+left to "unnest" contents of the block environment.

Just as an example, you would have in LaTeX

Code: Select all

\begin{block}{Title of the block}
Contents of the block
\begin{enumerate}
\item item 1
\item item 2
\item item 3
\end{enumerate}
\end{environment}
in LyX, you would have
block: ERT[{Title of the block}]
[ contents of the block
[- item 1
[- item 2
[- item 3

In the first line where you have the block environment (select it in the paragraph environment box), you insert a LaTeX code (ctrl+L). Then you can insert for example a list environment, type all the contents of the list, then select the whole list and type alt+shift+right to nest it inside the block environment.

Thank you very much, hm_cavalcanti! The way you suggest works in LyX!
Post Reply