Re: Embedding arrows stuff

2012-05-10 Thread Guenter Milde
On 2012-05-10, Scott Kostyshak wrote:
 From: Paul A. Rubin [ru...@msu.edu]
 Sent: Wednesday, May 09, 2012 8:10 PM


My preferred workaround used to be to select the entire equation and
use ctrl-M to convert it back to plain text, dink around with that,
then ctrl-M again to make it a formula once more.  That no longer works
(I'm not sure which version did away with it).

 I didn't know that this is how it used to work. I wonder why it was
 changed. For something similar, see workaround 1 below.

...

 Two ways to do this:

 (a) You could bind the following command-sequence to a shortcut. Then
 put your cursor in front of your long equation and run the shortcut.
 command-sequence char-forward; line-end-select ; cut; char-backward;
 paste; char-delete-forward

 (b) Or if you want to do it manually, go just inside the equation and
 do ctrl+shift+right arrow or ctrl+end. Both of those work for me. And
 then go outside of math and paste. It should now show up as LaTeX.

Feature request:

It would be nice, if a math inset would behave like a float, minipage or
branch: if you go to the first position inside the inset and press
backspace, the inset is dissolved and the content inlined. This would
give a consistent user experience.

Günter



Re: Embedding arrows stuff

2012-05-10 Thread Paul A . Rubin
Guenter Milde milde at users.sf.net writes:

 It would be nice, if a math inset would behave like a float, minipage or
 branch: if you go to the first position inside the inset and press
 backspace, the inset is dissolved and the content inlined. This would
 give a consistent user experience.

I'll second that motion.

Paul





Re: Embedding arrows stuff

2012-05-10 Thread Alex Vergara Gil


El 10/05/2012 09:02 a.m., Paul A. Rubin escribió:

Guenter Mildemildeat  users.sf.net  writes:


It would be nice, if a math inset would behave like a float, minipage or
branch: if you go to the first position inside the inset and press
backspace, the inset is dissolved and the content inlined. This would
give a consistent user experience.

I'll second that motion.

Paul

And when it is inlined you go to the first position, press TAB and the 
inline should go back to inset. The reverse case would be great too!


Alex






Re: Embedding arrows stuff

2012-05-10 Thread Guenter Milde
On 2012-05-10, Scott Kostyshak wrote:
 From: Paul A. Rubin [ru...@msu.edu]
 Sent: Wednesday, May 09, 2012 8:10 PM


My preferred workaround used to be to select the entire equation and
use ctrl-M to convert it back to plain text, dink around with that,
then ctrl-M again to make it a formula once more.  That no longer works
(I'm not sure which version did away with it).

 I didn't know that this is how it used to work. I wonder why it was
 changed. For something similar, see workaround 1 below.

...

 Two ways to do this:

 (a) You could bind the following command-sequence to a shortcut. Then
 put your cursor in front of your long equation and run the shortcut.
 command-sequence char-forward; line-end-select ; cut; char-backward;
 paste; char-delete-forward

 (b) Or if you want to do it manually, go just inside the equation and
 do ctrl+shift+right arrow or ctrl+end. Both of those work for me. And
 then go outside of math and paste. It should now show up as LaTeX.

Feature request:

It would be nice, if a math inset would behave like a float, minipage or
branch: if you go to the first position inside the inset and press
backspace, the inset is dissolved and the content inlined. This would
give a consistent user experience.

Günter



Re: Embedding arrows stuff

2012-05-10 Thread Paul A . Rubin
Guenter Milde milde at users.sf.net writes:

 It would be nice, if a math inset would behave like a float, minipage or
 branch: if you go to the first position inside the inset and press
 backspace, the inset is dissolved and the content inlined. This would
 give a consistent user experience.

I'll second that motion.

Paul





Re: Embedding arrows stuff

2012-05-10 Thread Alex Vergara Gil


El 10/05/2012 09:02 a.m., Paul A. Rubin escribió:

Guenter Mildemildeat  users.sf.net  writes:


It would be nice, if a math inset would behave like a float, minipage or
branch: if you go to the first position inside the inset and press
backspace, the inset is dissolved and the content inlined. This would
give a consistent user experience.

I'll second that motion.

Paul

And when it is inlined you go to the first position, press TAB and the 
inline should go back to inset. The reverse case would be great too!


Alex






Re: Embedding arrows & stuff

2012-05-10 Thread Guenter Milde
On 2012-05-10, Scott Kostyshak wrote:
> From: Paul A. Rubin [ru...@msu.edu]
> Sent: Wednesday, May 09, 2012 8:10 PM


>>My preferred workaround used to be to select the entire equation and
>>use ctrl-M to convert it back to plain text, dink around with that,
>>then ctrl-M again to make it a formula once more.  That no longer works
>>(I'm not sure which version did away with it).

> I didn't know that this is how it used to work. I wonder why it was
> changed. For something similar, see workaround 1 below.

...

> Two ways to do this:

> (a) You could bind the following command-sequence to a shortcut. Then
> put your cursor in front of your long equation and run the shortcut.
> command-sequence char-forward; line-end-select ; cut; char-backward;
> paste; char-delete-forward

> (b) Or if you want to do it manually, go just inside the equation and
> do ctrl+shift+ or ctrl+end. Both of those work for me. And
> then go outside of math and paste. It should now show up as LaTeX.

Feature request:

It would be nice, if a math inset would behave like a float, minipage or
branch: if you go to the first position inside the inset and press
backspace, the inset is dissolved and the content inlined. This would
give a consistent user experience.

Günter



Re: Embedding arrows & stuff

2012-05-10 Thread Paul A . Rubin
Guenter Milde  users.sf.net> writes:

> It would be nice, if a math inset would behave like a float, minipage or
> branch: if you go to the first position inside the inset and press
> backspace, the inset is dissolved and the content inlined. This would
> give a consistent user experience.

I'll second that motion.

Paul





Re: Embedding arrows & stuff

2012-05-10 Thread Alex Vergara Gil


El 10/05/2012 09:02 a.m., Paul A. Rubin escribió:

Guenter Milde  writes:


It would be nice, if a math inset would behave like a float, minipage or
branch: if you go to the first position inside the inset and press
backspace, the inset is dissolved and the content inlined. This would
give a consistent user experience.

I'll second that motion.

Paul

And when it is inlined you go to the first position, press TAB and the 
inline should go back to inset. The reverse case would be great too!


Alex






Re: Embedding arrows stuff

2012-05-09 Thread Guenter Milde
On 2012-05-08, Tim Wescott wrote:

 I'm thinking that I should probably just write an equation, print the
 file to eps (if I can figure out how), edit it with Inkscape, then put
 that figure into the text.

There was a thread about LyX as equation editor here on the list some
time ago. The idea is simply to add export options (EPS, PDF (cropped), SVG)
in the ToolsSettingsExport dialogue. It is (AFAIK) described on
wiki.lyx.org.

Günter



Re: Embedding arrows stuff

2012-05-09 Thread Tim Wescott
On Tue, 2012-05-08 at 22:25 +, Paul A.Rubin wrote:
 Tim Wescott tim at wescottdesign.com writes:
 
  
  I want to generate a page with Beamer that looks like the enclosed
 pdf.
  Any suggestions on how to achieve the arrows pointing to parts of
 an
  equation effect?
  
  I'm thinking that I should probably just write an equation, print
 the
  file to eps (if I can figure out how), edit it with Inkscape, then
 put
  that figure into the text.
  
  But if there's a stunningly easier way that doesn't involve spending
 the
  next year learning some new tool, I'm open to suggestions.
  
 
 Not stunningly easier, but I would use the TiKZ package (by Til
 Tantau, the
 author of Beamer). It's worth getting to know for its easy integration
 with
 Beamer and its range.  
 
 I'm pasting in an example below (one frame from a demo I did here). 

That looks cool -- but it runs off the right side of my screen and Lyx
won't let me scroll over there.

Suggestions?

-- 

Tim Wescott
www.wescottdesign.com
Control  Communications systems, circuit  software design.



Re: Embedding arrows stuff

2012-05-09 Thread Paul A . Rubin
Tim Wescott tim at wescottdesign.com writes:


 That looks cool -- but it runs off the right side of my screen and Lyx
 won't let me scroll over there.
 
 Suggestions?

This is a major PITA.  Horizontal scrollbars have been suggested, and I suspect
there's a (long) open ticket for it.

My preferred workaround used to be to select the entire equation and use ctrl-M
to convert it back to plain text, dink around with that, then ctrl-M again to
make it a formula once more.  That no longer works (I'm not sure which version
did away with it).

The best workaround I've got now is to insert the cursor into the formula and
use Edit  Math  Change Formula Type to make it AMS multiline.  Then I can
insert ctrl-enter periodically to break it into multiple lines, do any edits I
want, and then use Edit  Math  Change Formula Type to convert it back into an
regular display mode formula.  Sigh.

Paul



Re: Embedding arrows stuff

2012-05-09 Thread William Seager
On Thursday 10 May 2012 00:10:33 Paul A. Rubin wrote:
 This is a major PITA. 

++ on that
-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


RE: Embedding arrows stuff

2012-05-09 Thread Scott Kostyshak
From: Paul A. Rubin [ru...@msu.edu]
Sent: Wednesday, May 09, 2012 8:10 PM

This is a major PITA.  Horizontal scrollbars have been suggested, and I suspect
there's a (long) open ticket for it.

Yes, here: http://www.lyx.org/trac/ticket/1083

My preferred workaround used to be to select the entire equation and use ctrl-M
to convert it back to plain text, dink around with that, then ctrl-M again to
make it a formula once more.  That no longer works (I'm not sure which version
did away with it).

I didn't know that this is how it used to work. I wonder why it was changed. 
For something similar, see workaround 1 below.

Here are 3 workarounds to long inline math equations that you might find useful.

workaround 1:
Convert the math to LaTeX, edit the LaTeX, then convert back to math.

Two ways to do this:
(a) You could bind the following command-sequence to a shortcut. Then put your 
cursor in front of your long equation and run the shortcut.
command-sequence char-forward; line-end-select ; cut; char-backward; paste; 
char-delete-forward

(b) Or if you want to do it manually, go just inside the equation and do 
ctrl+shift+right arrow or ctrl+end. Both of those work for me. And then go 
outside of math and paste. It should now show up as LaTeX.

To convert from LaTeX back to math, highlight the LaTeX code and do ctrl+m.

workaround 2:
Bind the following command to a shortcut. This will split an inline math 
inset into two separate inline math insets.
command-sequence line-end-select; cut; char-forward; math-mode; paste; 
char-forward; word-backward

You might need to do that more than once (at different positions, of course) 
depending on how long your equation is.
To then paste them back together into one math inset highlight them all and 
press ctrl+m. 

workaround 3:
zoom out (ctrl + scroll wheel).

I wonder if we should create a wiki page for workarounds to this issue as it 
seems to come up often and a fix seems to be too difficult. If anyone is up to 
it, please go ahead, and then link to it from here http://wiki.lyx.org/FAQ/Math

Scott

Re: Embedding arrows stuff

2012-05-09 Thread Guenter Milde
On 2012-05-08, Tim Wescott wrote:

 I'm thinking that I should probably just write an equation, print the
 file to eps (if I can figure out how), edit it with Inkscape, then put
 that figure into the text.

There was a thread about LyX as equation editor here on the list some
time ago. The idea is simply to add export options (EPS, PDF (cropped), SVG)
in the ToolsSettingsExport dialogue. It is (AFAIK) described on
wiki.lyx.org.

Günter



Re: Embedding arrows stuff

2012-05-09 Thread Tim Wescott
On Tue, 2012-05-08 at 22:25 +, Paul A.Rubin wrote:
 Tim Wescott tim at wescottdesign.com writes:
 
  
  I want to generate a page with Beamer that looks like the enclosed
 pdf.
  Any suggestions on how to achieve the arrows pointing to parts of
 an
  equation effect?
  
  I'm thinking that I should probably just write an equation, print
 the
  file to eps (if I can figure out how), edit it with Inkscape, then
 put
  that figure into the text.
  
  But if there's a stunningly easier way that doesn't involve spending
 the
  next year learning some new tool, I'm open to suggestions.
  
 
 Not stunningly easier, but I would use the TiKZ package (by Til
 Tantau, the
 author of Beamer). It's worth getting to know for its easy integration
 with
 Beamer and its range.  
 
 I'm pasting in an example below (one frame from a demo I did here). 

That looks cool -- but it runs off the right side of my screen and Lyx
won't let me scroll over there.

Suggestions?

-- 

Tim Wescott
www.wescottdesign.com
Control  Communications systems, circuit  software design.



Re: Embedding arrows stuff

2012-05-09 Thread Paul A . Rubin
Tim Wescott tim at wescottdesign.com writes:


 That looks cool -- but it runs off the right side of my screen and Lyx
 won't let me scroll over there.
 
 Suggestions?

This is a major PITA.  Horizontal scrollbars have been suggested, and I suspect
there's a (long) open ticket for it.

My preferred workaround used to be to select the entire equation and use ctrl-M
to convert it back to plain text, dink around with that, then ctrl-M again to
make it a formula once more.  That no longer works (I'm not sure which version
did away with it).

The best workaround I've got now is to insert the cursor into the formula and
use Edit  Math  Change Formula Type to make it AMS multiline.  Then I can
insert ctrl-enter periodically to break it into multiple lines, do any edits I
want, and then use Edit  Math  Change Formula Type to convert it back into an
regular display mode formula.  Sigh.

Paul



Re: Embedding arrows stuff

2012-05-09 Thread William Seager
On Thursday 10 May 2012 00:10:33 Paul A. Rubin wrote:
 This is a major PITA. 

++ on that
-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


RE: Embedding arrows stuff

2012-05-09 Thread Scott Kostyshak
From: Paul A. Rubin [ru...@msu.edu]
Sent: Wednesday, May 09, 2012 8:10 PM

This is a major PITA.  Horizontal scrollbars have been suggested, and I suspect
there's a (long) open ticket for it.

Yes, here: http://www.lyx.org/trac/ticket/1083

My preferred workaround used to be to select the entire equation and use ctrl-M
to convert it back to plain text, dink around with that, then ctrl-M again to
make it a formula once more.  That no longer works (I'm not sure which version
did away with it).

I didn't know that this is how it used to work. I wonder why it was changed. 
For something similar, see workaround 1 below.

Here are 3 workarounds to long inline math equations that you might find useful.

workaround 1:
Convert the math to LaTeX, edit the LaTeX, then convert back to math.

Two ways to do this:
(a) You could bind the following command-sequence to a shortcut. Then put your 
cursor in front of your long equation and run the shortcut.
command-sequence char-forward; line-end-select ; cut; char-backward; paste; 
char-delete-forward

(b) Or if you want to do it manually, go just inside the equation and do 
ctrl+shift+right arrow or ctrl+end. Both of those work for me. And then go 
outside of math and paste. It should now show up as LaTeX.

To convert from LaTeX back to math, highlight the LaTeX code and do ctrl+m.

workaround 2:
Bind the following command to a shortcut. This will split an inline math 
inset into two separate inline math insets.
command-sequence line-end-select; cut; char-forward; math-mode; paste; 
char-forward; word-backward

You might need to do that more than once (at different positions, of course) 
depending on how long your equation is.
To then paste them back together into one math inset highlight them all and 
press ctrl+m. 

workaround 3:
zoom out (ctrl + scroll wheel).

I wonder if we should create a wiki page for workarounds to this issue as it 
seems to come up often and a fix seems to be too difficult. If anyone is up to 
it, please go ahead, and then link to it from here http://wiki.lyx.org/FAQ/Math

Scott

Re: Embedding arrows & stuff

2012-05-09 Thread Guenter Milde
On 2012-05-08, Tim Wescott wrote:

> I'm thinking that I should probably just write an equation, print the
> file to eps (if I can figure out how), edit it with Inkscape, then put
> that figure into the text.

There was a thread about "LyX as equation editor" here on the list some
time ago. The idea is simply to add export options (EPS, PDF (cropped), SVG)
in the Tools>Settings>Export dialogue. It is (AFAIK) described on
wiki.lyx.org.

Günter



Re: Embedding arrows & stuff

2012-05-09 Thread Tim Wescott
On Tue, 2012-05-08 at 22:25 +, Paul A.Rubin wrote:
> Tim Wescott  wescottdesign.com> writes:
> 
> > 
> > I want to generate a page with Beamer that looks like the enclosed
> pdf.
> > Any suggestions on how to achieve the "arrows pointing to parts of
> an
> > equation" effect?
> > 
> > I'm thinking that I should probably just write an equation, print
> the
> > file to eps (if I can figure out how), edit it with Inkscape, then
> put
> > that figure into the text.
> > 
> > But if there's a stunningly easier way that doesn't involve spending
> the
> > next year learning some new tool, I'm open to suggestions.
> > 
> 
> Not "stunningly easier", but I would use the TiKZ package (by Til
> Tantau, the
> author of Beamer). It's worth getting to know for its easy integration
> with
> Beamer and its range.  
> 
> I'm pasting in an example below (one frame from a demo I did here). 

That looks cool -- but it runs off the right side of my screen and Lyx
won't let me scroll over there.

Suggestions?

-- 

Tim Wescott
www.wescottdesign.com
Control & Communications systems, circuit & software design.



Re: Embedding arrows & stuff

2012-05-09 Thread Paul A . Rubin
Tim Wescott  wescottdesign.com> writes:


> That looks cool -- but it runs off the right side of my screen and Lyx
> won't let me scroll over there.
> 
> Suggestions?

This is a major PITA.  Horizontal scrollbars have been suggested, and I suspect
there's a (long) open ticket for it.

My preferred workaround used to be to select the entire equation and use ctrl-M
to convert it back to plain text, dink around with that, then ctrl-M again to
make it a formula once more.  That no longer works (I'm not sure which version
did away with it).

The best workaround I've got now is to insert the cursor into the formula and
use Edit > Math > Change Formula Type to make it AMS multiline.  Then I can
insert ctrl-enter periodically to break it into multiple lines, do any edits I
want, and then use Edit > Math > Change Formula Type to convert it back into an
regular display mode formula.  Sigh.

Paul



Re: Embedding arrows & stuff

2012-05-09 Thread William Seager
On Thursday 10 May 2012 00:10:33 Paul A. Rubin wrote:
> This is a major PITA. 

++ on that
-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


RE: Embedding arrows & stuff

2012-05-09 Thread Scott Kostyshak
From: Paul A. Rubin [ru...@msu.edu]
Sent: Wednesday, May 09, 2012 8:10 PM

>This is a major PITA.  Horizontal scrollbars have been suggested, and I suspect
>there's a (long) open ticket for it.

Yes, here: http://www.lyx.org/trac/ticket/1083

>My preferred workaround used to be to select the entire equation and use ctrl-M
>to convert it back to plain text, dink around with that, then ctrl-M again to
>make it a formula once more.  That no longer works (I'm not sure which version
>did away with it).

I didn't know that this is how it used to work. I wonder why it was changed. 
For something similar, see workaround 1 below.

Here are 3 workarounds to long inline math equations that you might find useful.

workaround 1:
Convert the math to LaTeX, edit the LaTeX, then convert back to math.

Two ways to do this:
(a) You could bind the following command-sequence to a shortcut. Then put your 
cursor in front of your long equation and run the shortcut.
command-sequence char-forward; line-end-select ; cut; char-backward; paste; 
char-delete-forward

(b) Or if you want to do it manually, go just inside the equation and do 
ctrl+shift+ or ctrl+end. Both of those work for me. And then go 
outside of math and paste. It should now show up as LaTeX.

To convert from LaTeX back to math, highlight the LaTeX code and do ctrl+m.

workaround 2:
Bind the following command to a shortcut. This will "split" an inline math 
inset into two separate inline math insets.
command-sequence line-end-select; cut; char-forward; math-mode; paste; 
char-forward; word-backward

You might need to do that more than once (at different positions, of course) 
depending on how long your equation is.
To then paste them back together into one math inset highlight them all and 
press ctrl+m. 

workaround 3:
zoom out (ctrl + scroll wheel).

I wonder if we should create a wiki page for workarounds to this issue as it 
seems to come up often and a fix seems to be too difficult. If anyone is up to 
it, please go ahead, and then link to it from here http://wiki.lyx.org/FAQ/Math

Scott

Re: Embedding arrows stuff

2012-05-08 Thread Paul A . Rubin
Tim Wescott tim at wescottdesign.com writes:

 
 I want to generate a page with Beamer that looks like the enclosed pdf.
 Any suggestions on how to achieve the arrows pointing to parts of an
 equation effect?
 
 I'm thinking that I should probably just write an equation, print the
 file to eps (if I can figure out how), edit it with Inkscape, then put
 that figure into the text.
 
 But if there's a stunningly easier way that doesn't involve spending the
 next year learning some new tool, I'm open to suggestions.
 

Not stunningly easier, but I would use the TiKZ package (by Til Tantau, the
author of Beamer). It's worth getting to know for its easy integration with
Beamer and its range.  

I'm pasting in an example below (one frame from a demo I did here).

Paul

#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass beamer
\begin_preamble
\usepackage{tikz}
\usetikzlibrary{arrows,shapes,positioning}
\end_preamble
\use_default_options true
\maintain_unincluded_children false
\begin_local_layout

\end_local_layout
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman lmodern
\font_sans lmss
\font_typewriter lmtt
\font_default_family rmdefault
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry true
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip smallskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout BeginFrame
\begin_inset ERT
status collapsed

\begin_layout Plain Layout

[+-| alert@+]
\end_layout

\end_inset

Overlaying Graphics on Text
\end_layout

\begin_layout Standard
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikzstyle{every picture}+=[remember picture]
\end_layout

\begin_layout Plain Layout


\backslash
everymath{
\backslash
displaystyle}
\end_layout

\begin_layout Plain Layout


\backslash
tikzstyle{na} = [baseline=-.5ex] 
\end_layout

\end_inset


\end_layout

\begin_layout Itemize
Coriolis acceleration 
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikz[na] 
\backslash
node[coordinate] (n1) {};
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Formula 
\[
\vec{a}_{p}=\vec{a}_{o}+\frac{^{b}d^{2}}{dt^{2}}\vec{r}
+\tikz[baseline]{\node[fill=blue!20,anchor=base](t1)
{\ensuremath{2\vec{\omega}_{ib}\times\frac{^{b}d}{dt}\vec{r}}};}
+\tikz[baseline]{\node[fill=red!20,ellipse,anchor=base](t2)
{\ensuremath{\vec{\alpha}_{ib}\times\vec{r}}};}
+\tikz[baseline]{\node[fill=green!20,anchor=base](t3)
{\ensuremath{\vec{\omega}_{ib}\times(\vec{\omega}_{ib}\times\vec{r})}};}
\]

\end_inset


\end_layout

\begin_layout Itemize
Transversal acceleration 
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikz[na]
\backslash
node [coordinate] (n2) {};
\end_layout

\end_inset


\end_layout

\begin_layout Itemize
Centripetal acceleration 
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikz[na]
\backslash
node [coordinate] (n3) {};
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
begin{tikzpicture}[overlay]
\end_layout

\begin_layout Plain Layout


\backslash
path[-]1- (n1) edge [bend left] (t1);
\end_layout

\begin_layout Plain Layout


\backslash
path[-]2- (n2) edge [bend right] (t2);
\end_layout

\begin_layout Plain Layout


\backslash
path[-]3- (n3) edge [out=0, in=-90] (t3);
\end_layout

\begin_layout Plain Layout


\backslash
end{tikzpicture}
\end_layout

\end_inset


\end_layout

\begin_layout EndFrame

\end_layout

\end_body
\end_document




Re: Embedding arrows stuff

2012-05-08 Thread Paul A . Rubin
Tim Wescott tim at wescottdesign.com writes:

 
 I want to generate a page with Beamer that looks like the enclosed pdf.
 Any suggestions on how to achieve the arrows pointing to parts of an
 equation effect?
 
 I'm thinking that I should probably just write an equation, print the
 file to eps (if I can figure out how), edit it with Inkscape, then put
 that figure into the text.
 
 But if there's a stunningly easier way that doesn't involve spending the
 next year learning some new tool, I'm open to suggestions.
 

Not stunningly easier, but I would use the TiKZ package (by Til Tantau, the
author of Beamer). It's worth getting to know for its easy integration with
Beamer and its range.  

I'm pasting in an example below (one frame from a demo I did here).

Paul

#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass beamer
\begin_preamble
\usepackage{tikz}
\usetikzlibrary{arrows,shapes,positioning}
\end_preamble
\use_default_options true
\maintain_unincluded_children false
\begin_local_layout

\end_local_layout
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman lmodern
\font_sans lmss
\font_typewriter lmtt
\font_default_family rmdefault
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry true
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip smallskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout BeginFrame
\begin_inset ERT
status collapsed

\begin_layout Plain Layout

[+-| alert@+]
\end_layout

\end_inset

Overlaying Graphics on Text
\end_layout

\begin_layout Standard
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikzstyle{every picture}+=[remember picture]
\end_layout

\begin_layout Plain Layout


\backslash
everymath{
\backslash
displaystyle}
\end_layout

\begin_layout Plain Layout


\backslash
tikzstyle{na} = [baseline=-.5ex] 
\end_layout

\end_inset


\end_layout

\begin_layout Itemize
Coriolis acceleration 
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikz[na] 
\backslash
node[coordinate] (n1) {};
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Formula 
\[
\vec{a}_{p}=\vec{a}_{o}+\frac{^{b}d^{2}}{dt^{2}}\vec{r}
+\tikz[baseline]{\node[fill=blue!20,anchor=base](t1)
{\ensuremath{2\vec{\omega}_{ib}\times\frac{^{b}d}{dt}\vec{r}}};}
+\tikz[baseline]{\node[fill=red!20,ellipse,anchor=base](t2)
{\ensuremath{\vec{\alpha}_{ib}\times\vec{r}}};}
+\tikz[baseline]{\node[fill=green!20,anchor=base](t3)
{\ensuremath{\vec{\omega}_{ib}\times(\vec{\omega}_{ib}\times\vec{r})}};}
\]

\end_inset


\end_layout

\begin_layout Itemize
Transversal acceleration 
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikz[na]
\backslash
node [coordinate] (n2) {};
\end_layout

\end_inset


\end_layout

\begin_layout Itemize
Centripetal acceleration 
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikz[na]
\backslash
node [coordinate] (n3) {};
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
begin{tikzpicture}[overlay]
\end_layout

\begin_layout Plain Layout


\backslash
path[-]1- (n1) edge [bend left] (t1);
\end_layout

\begin_layout Plain Layout


\backslash
path[-]2- (n2) edge [bend right] (t2);
\end_layout

\begin_layout Plain Layout


\backslash
path[-]3- (n3) edge [out=0, in=-90] (t3);
\end_layout

\begin_layout Plain Layout


\backslash
end{tikzpicture}
\end_layout

\end_inset


\end_layout

\begin_layout EndFrame

\end_layout

\end_body
\end_document




Re: Embedding arrows & stuff

2012-05-08 Thread Paul A . Rubin
Tim Wescott  wescottdesign.com> writes:

> 
> I want to generate a page with Beamer that looks like the enclosed pdf.
> Any suggestions on how to achieve the "arrows pointing to parts of an
> equation" effect?
> 
> I'm thinking that I should probably just write an equation, print the
> file to eps (if I can figure out how), edit it with Inkscape, then put
> that figure into the text.
> 
> But if there's a stunningly easier way that doesn't involve spending the
> next year learning some new tool, I'm open to suggestions.
> 

Not "stunningly easier", but I would use the TiKZ package (by Til Tantau, the
author of Beamer). It's worth getting to know for its easy integration with
Beamer and its range.  

I'm pasting in an example below (one frame from a demo I did here).

Paul

#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass beamer
\begin_preamble
\usepackage{tikz}
\usetikzlibrary{arrows,shapes,positioning}
\end_preamble
\use_default_options true
\maintain_unincluded_children false
\begin_local_layout

\end_local_layout
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman lmodern
\font_sans lmss
\font_typewriter lmtt
\font_default_family rmdefault
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry true
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip smallskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout BeginFrame
\begin_inset ERT
status collapsed

\begin_layout Plain Layout

[<+-| alert@+>]
\end_layout

\end_inset

Overlaying Graphics on Text
\end_layout

\begin_layout Standard
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikzstyle{every picture}+=[remember picture]
\end_layout

\begin_layout Plain Layout


\backslash
everymath{
\backslash
displaystyle}
\end_layout

\begin_layout Plain Layout


\backslash
tikzstyle{na} = [baseline=-.5ex] 
\end_layout

\end_inset


\end_layout

\begin_layout Itemize
Coriolis acceleration 
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikz[na] 
\backslash
node[coordinate] (n1) {};
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Formula 
\[
\vec{a}_{p}=\vec{a}_{o}+\frac{^{b}d^{2}}{dt^{2}}\vec{r}
+\tikz[baseline]{\node[fill=blue!20,anchor=base](t1)
{\ensuremath{2\vec{\omega}_{ib}\times\frac{^{b}d}{dt}\vec{r}}};}
+\tikz[baseline]{\node[fill=red!20,ellipse,anchor=base](t2)
{\ensuremath{\vec{\alpha}_{ib}\times\vec{r}}};}
+\tikz[baseline]{\node[fill=green!20,anchor=base](t3)
{\ensuremath{\vec{\omega}_{ib}\times(\vec{\omega}_{ib}\times\vec{r})}};}
\]

\end_inset


\end_layout

\begin_layout Itemize
Transversal acceleration 
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikz[na]
\backslash
node [coordinate] (n2) {};
\end_layout

\end_inset


\end_layout

\begin_layout Itemize
Centripetal acceleration 
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikz[na]
\backslash
node [coordinate] (n3) {};
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
begin{tikzpicture}[overlay]
\end_layout

\begin_layout Plain Layout


\backslash
path[->]<1-> (n1) edge [bend left] (t1);
\end_layout

\begin_layout Plain Layout


\backslash
path[->]<2-> (n2) edge [bend right] (t2);
\end_layout

\begin_layout Plain Layout


\backslash
path[->]<3-> (n3) edge [out=0, in=-90] (t3);
\end_layout

\begin_layout Plain Layout


\backslash
end{tikzpicture}
\end_layout

\end_inset


\end_layout

\begin_layout EndFrame

\end_layout

\end_body
\end_document