Re: LyX + arrows +beamer?

2011-03-22 Thread Manveru
2011/2/22 Paul A. Rubin :
> On 02/21/2011 06:19 PM, i...@virginia.edu wrote:
>
> I just created a .lyx file with the code in your email an it works!
> Thanks!
> Another cool thing that I would like to be able to do with LyX is this
> http://www.texample.net/tikz/examples/gnuplot-basics/
> Is it possible?
> Thanks!
> -Ignacio
>
> Yes (example attached).  You obviously need to have Gnuplot installed.  You
> also need to modify the converter LyX uses.  In Tools > Preferences... >
> File Handling > Converters, highlight the LaTeX (pdflatex) -> PDF (pdflatex)
> converter.  Change the converter line to
>
> pdflatex --shell-escape $$i
>
> and click Modify and then Save.

Keeping --shell-escape in PDF (pdflatex) converter is like asking for
troubles in other cases. I suggest to create another converter with
--shell-escape enabled keeping original one unaffected.

-- 
Manveru
jabber: manv...@manveru.pl
     gg: 1624001
   http://www.manveru.pl


Re: LyX + arrows +beamer?

2011-02-21 Thread Paul A. Rubin

On 02/21/2011 06:19 PM, i...@virginia.edu wrote:

I just created a .lyx file with the code in your email an it works!

Thanks!

Another cool thing that I would like to be able to do with LyX is this
http://www.texample.net/tikz/examples/gnuplot-basics/
Is it possible?

Thanks!

-Ignacio

Yes (example attached).  You obviously need to have Gnuplot installed.  
You also need to modify the converter LyX uses.  In Tools > 
Preferences... > File Handling > Converters, highlight the LaTeX 
(pdflatex) -> PDF (pdflatex) converter.  Change the converter line to


pdflatex --shell-escape $$i

and click Modify and then Save.

Paul



t_test_example.lyx
Description: application/lyx


Re: LyX + arrows +beamer?

2011-02-21 Thread i...@virginia.edu
I just created a .lyx file with the code in your email an it works!

Thanks!

Another cool thing that I would like to be able to do with LyX is this
http://www.texample.net/tikz/examples/gnuplot-basics/
Is it possible?

Thanks!

-Ignacio

On Mon, Feb 21, 2011 at 6:02 PM, Ignacio Martinez wrote:

> Hi Paul,
>
> Thanks for replaying.
> This is my first time in the list and I'm confuse.
> Did you send an attached .lyx file? I just got a long email with a lot of
> code that I'm not sure where in lyx to put...
> Thanks again
>
> -Ignacio
>
>
> On Mon, Feb 21, 2011 at 5:55 PM, Paul Rubin  wrote:
>
>> GMANE is acting weirdly -- it won't display the original text of your
>> question.
>>  At any rate, the answer is that the diagram can indeed be reproduced in
>> LyX
>> (see below).  I put the various chunks of the formula in ERT, as new LaTeX
>> commands, but that's not necessary.  You can do it in the equation editor,
>> with
>> a couple of tricks: use \{ to create an inset with braces around it for
>> mathematical arguments; and inside that inset, type \ensuremath 
>> rather
>> than typing $...$.  The reason I used LaTeX macros to capture bits and
>> pieces is
>> that LyX (at least as of 1.6.x) does not have horizontal scrolling for
>> annoyingly wide equations or tables, so editing this thing in the equation
>> editor requires zooming way, way out and using a very powerful magnifying
>> glass.
>>
>> Paul
>>
>>
>> === file begins ===
>> #LyX 1.6.7 created this file. For more info see http://www.lyx.org/
>> \lyxformat 345
>> \begin_document
>> \begin_header
>> \textclass beamer
>> \begin_preamble
>> \usetheme{CambridgeUS}
>> \usepackage{times}
>> \usepackage{tikz}
>> \usetikzlibrary{arrows,shapes}
>> \end_preamble
>> \use_default_options true
>> \language english
>> \inputencoding auto
>> \font_roman lmodern
>> \font_sans lmss
>> \font_typewriter lmtt
>> \font_default_family default
>> \font_sc false
>> \font_osf false
>> \font_sf_scale 100
>> \font_tt_scale 100
>>
>> \graphics default
>> \paperfontsize default
>> \spacing single
>> \use_hyperref false
>> \papersize letterpaper
>> \use_geometry true
>> \use_amsmath 1
>> \use_esint 1
>> \cite_engine basic
>> \use_bibtopic false
>> \paperorientation portrait
>> \leftmargin 1in
>> \topmargin 1in
>> \rightmargin 1in
>> \bottommargin 1in
>> \secnumdepth 3
>> \tocdepth 3
>> \paragraph_separation skip
>> \defskip medskip
>> \quotes_language english
>> \papercolumns 1
>> \papersides 1
>> \paperpagestyle default
>> \tracking_changes false
>> \output_changes false
>> \author ""
>> \author ""
>> \end_header
>>
>> \begin_body
>>
>> \begin_layout Standard
>> \begin_inset ERT
>> status open
>>
>> \begin_layout Plain Layout
>>
>>
>> \backslash
>> tikzstyle{every picture}+=[remember picture]
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>>
>> \backslash
>> everymath{
>> \backslash
>> displaystyle}
>> \end_layout
>>
>> \end_inset
>>
>>
>> \end_layout
>>
>> \begin_layout BeginFrame
>> \begin_inset ERT
>> status open
>>
>> \begin_layout Plain Layout
>>
>> [<+-| alert@+>]
>> \end_layout
>>
>> \end_inset
>>
>> Rigid body dynamics
>> \end_layout
>>
>> \begin_layout Standard
>> \begin_inset ERT
>> status open
>>
>> \begin_layout Plain Layout
>>
>>
>> \backslash
>> tikzstyle{na} = [baseline=-.5ex]
>> \end_layout
>>
>> \end_inset
>>
>>
>> \end_layout
>>
>> \begin_layout Standard
>> \begin_inset ERT
>> status open
>>
>> \begin_layout Plain Layout
>>
>>
>> \backslash
>> newcommand{
>> \backslash
>> myta}{
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>>
>> \backslash
>> tikz[baseline]{
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>>
>> \backslash
>> node[fill=blue!20,anchor=base] (t1)
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>> {$2
>> \backslash
>> vec{
>> \backslash
>> omega}_{ib}
>> \backslash
>> times
>> \backslash
>> frac{{}^bd}{dt}
>> \backslash
>> vec{r}$};
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>>  }
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>> }
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>>
>> \backslash
>> newcommand{
>> \backslash
>> mytb}{
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>>
>> \backslash
>> tikz[baseline]{
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>>
>> \backslash
>> node[fill=red!20, ellipse,anchor=base] (t2)
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>> {$
>> \backslash
>> vec{
>> \backslash
>> alpha}_{ib}
>> \backslash
>> times
>> \backslash
>> vec{r}$};
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>>  }
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>> }
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>>
>> \backslash
>> newcommand{
>> \backslash
>> mytc}{
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>>
>> \backslash
>> tikz[baseline]{
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>>
>> \backslash
>> node[fill=green!20,anchor=base] (t3)
>> \end_layout
>>
>> \begin_layout Plain Layout
>>
>> {$
>> \backslash
>> vec{
>> \backslash
>> omega}_{

Re: LyX + arrows +beamer?

2011-02-21 Thread Ignacio Martinez
Hi Paul,

Thanks for replaying.
This is my first time in the list and I'm confuse.
Did you send an attached .lyx file? I just got a long email with a lot of
code that I'm not sure where in lyx to put...
Thanks again

-Ignacio


On Mon, Feb 21, 2011 at 5:55 PM, Paul Rubin  wrote:

> GMANE is acting weirdly -- it won't display the original text of your
> question.
>  At any rate, the answer is that the diagram can indeed be reproduced in
> LyX
> (see below).  I put the various chunks of the formula in ERT, as new LaTeX
> commands, but that's not necessary.  You can do it in the equation editor,
> with
> a couple of tricks: use \{ to create an inset with braces around it for
> mathematical arguments; and inside that inset, type \ensuremath 
> rather
> than typing $...$.  The reason I used LaTeX macros to capture bits and
> pieces is
> that LyX (at least as of 1.6.x) does not have horizontal scrolling for
> annoyingly wide equations or tables, so editing this thing in the equation
> editor requires zooming way, way out and using a very powerful magnifying
> glass.
>
> Paul
>
>
> === file begins ===
> #LyX 1.6.7 created this file. For more info see http://www.lyx.org/
> \lyxformat 345
> \begin_document
> \begin_header
> \textclass beamer
> \begin_preamble
> \usetheme{CambridgeUS}
> \usepackage{times}
> \usepackage{tikz}
> \usetikzlibrary{arrows,shapes}
> \end_preamble
> \use_default_options true
> \language english
> \inputencoding auto
> \font_roman lmodern
> \font_sans lmss
> \font_typewriter lmtt
> \font_default_family default
> \font_sc false
> \font_osf false
> \font_sf_scale 100
> \font_tt_scale 100
>
> \graphics default
> \paperfontsize default
> \spacing single
> \use_hyperref false
> \papersize letterpaper
> \use_geometry true
> \use_amsmath 1
> \use_esint 1
> \cite_engine basic
> \use_bibtopic false
> \paperorientation portrait
> \leftmargin 1in
> \topmargin 1in
> \rightmargin 1in
> \bottommargin 1in
> \secnumdepth 3
> \tocdepth 3
> \paragraph_separation skip
> \defskip medskip
> \quotes_language english
> \papercolumns 1
> \papersides 1
> \paperpagestyle default
> \tracking_changes false
> \output_changes false
> \author ""
> \author ""
> \end_header
>
> \begin_body
>
> \begin_layout Standard
> \begin_inset ERT
> status open
>
> \begin_layout Plain Layout
>
>
> \backslash
> tikzstyle{every picture}+=[remember picture]
> \end_layout
>
> \begin_layout Plain Layout
>
>
> \backslash
> everymath{
> \backslash
> displaystyle}
> \end_layout
>
> \end_inset
>
>
> \end_layout
>
> \begin_layout BeginFrame
> \begin_inset ERT
> status open
>
> \begin_layout Plain Layout
>
> [<+-| alert@+>]
> \end_layout
>
> \end_inset
>
> Rigid body dynamics
> \end_layout
>
> \begin_layout Standard
> \begin_inset ERT
> status open
>
> \begin_layout Plain Layout
>
>
> \backslash
> tikzstyle{na} = [baseline=-.5ex]
> \end_layout
>
> \end_inset
>
>
> \end_layout
>
> \begin_layout Standard
> \begin_inset ERT
> status open
>
> \begin_layout Plain Layout
>
>
> \backslash
> newcommand{
> \backslash
> myta}{
> \end_layout
>
> \begin_layout Plain Layout
>
>
> \backslash
> tikz[baseline]{
> \end_layout
>
> \begin_layout Plain Layout
>
>
> \backslash
> node[fill=blue!20,anchor=base] (t1)
> \end_layout
>
> \begin_layout Plain Layout
>
> {$2
> \backslash
> vec{
> \backslash
> omega}_{ib}
> \backslash
> times
> \backslash
> frac{{}^bd}{dt}
> \backslash
> vec{r}$};
> \end_layout
>
> \begin_layout Plain Layout
>
>  }
> \end_layout
>
> \begin_layout Plain Layout
>
> }
> \end_layout
>
> \begin_layout Plain Layout
>
>
> \backslash
> newcommand{
> \backslash
> mytb}{
> \end_layout
>
> \begin_layout Plain Layout
>
>
> \backslash
> tikz[baseline]{
> \end_layout
>
> \begin_layout Plain Layout
>
>
> \backslash
> node[fill=red!20, ellipse,anchor=base] (t2)
> \end_layout
>
> \begin_layout Plain Layout
>
> {$
> \backslash
> vec{
> \backslash
> alpha}_{ib}
> \backslash
> times
> \backslash
> vec{r}$};
> \end_layout
>
> \begin_layout Plain Layout
>
>  }
> \end_layout
>
> \begin_layout Plain Layout
>
> }
> \end_layout
>
> \begin_layout Plain Layout
>
>
> \backslash
> newcommand{
> \backslash
> mytc}{
> \end_layout
>
> \begin_layout Plain Layout
>
>
> \backslash
> tikz[baseline]{
> \end_layout
>
> \begin_layout Plain Layout
>
>
> \backslash
> node[fill=green!20,anchor=base] (t3)
> \end_layout
>
> \begin_layout Plain Layout
>
> {$
> \backslash
> vec{
> \backslash
> omega}_{ib}
> \backslash
> times(
> \backslash
> vec{
> \backslash
> omega}_{ib}
> \backslash
> times
> \backslash
> vec{r})$};
> \end_layout
>
> \begin_layout Plain Layout
>
>  }
> \end_layout
>
> \begin_layout Plain Layout
>
> }
> \end_layout
>
> \end_inset
>
>
> \end_layout
>
> \begin_layout Itemize
> Coriolis acceleration
> \begin_inset ERT
> status open
>
> \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}+\

Re: LyX + arrows +beamer?

2011-02-21 Thread Paul Rubin
GMANE is acting weirdly -- it won't display the original text of your question.
 At any rate, the answer is that the diagram can indeed be reproduced in LyX
(see below).  I put the various chunks of the formula in ERT, as new LaTeX
commands, but that's not necessary.  You can do it in the equation editor, with
a couple of tricks: use \{ to create an inset with braces around it for
mathematical arguments; and inside that inset, type \ensuremath  rather
than typing $...$.  The reason I used LaTeX macros to capture bits and pieces is
that LyX (at least as of 1.6.x) does not have horizontal scrolling for
annoyingly wide equations or tables, so editing this thing in the equation
editor requires zooming way, way out and using a very powerful magnifying glass.

Paul


=== file begins ===
#LyX 1.6.7 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass beamer
\begin_preamble
\usetheme{CambridgeUS}
\usepackage{times}
\usepackage{tikz}
\usetikzlibrary{arrows,shapes}
\end_preamble
\use_default_options true
\language english
\inputencoding auto
\font_roman lmodern
\font_sans lmss
\font_typewriter lmtt
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry true
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author "" 
\author "" 
\end_header

\begin_body

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


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

\begin_layout Plain Layout


\backslash
everymath{
\backslash
displaystyle} 
\end_layout

\end_inset


\end_layout

\begin_layout BeginFrame
\begin_inset ERT
status open

\begin_layout Plain Layout

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

\end_inset

Rigid body dynamics
\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


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

\end_inset


\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
newcommand{
\backslash
myta}{
\end_layout

\begin_layout Plain Layout

  
\backslash
tikz[baseline]{ 
\end_layout

\begin_layout Plain Layout


\backslash
node[fill=blue!20,anchor=base] (t1)
\end_layout

\begin_layout Plain Layout

 {$2
\backslash
vec{
\backslash
omega}_{ib}
\backslash
times
\backslash
frac{{}^bd}{dt}
\backslash
vec{r}$};
\end_layout

\begin_layout Plain Layout

  }
\end_layout

\begin_layout Plain Layout

}
\end_layout

\begin_layout Plain Layout


\backslash
newcommand{
\backslash
mytb}{
\end_layout

\begin_layout Plain Layout

  
\backslash
tikz[baseline]{
\end_layout

\begin_layout Plain Layout


\backslash
node[fill=red!20, ellipse,anchor=base] (t2)
\end_layout

\begin_layout Plain Layout

 {$
\backslash
vec{
\backslash
alpha}_{ib}
\backslash
times
\backslash
vec{r}$};
\end_layout

\begin_layout Plain Layout

  }
\end_layout

\begin_layout Plain Layout

}
\end_layout

\begin_layout Plain Layout


\backslash
newcommand{
\backslash
mytc}{
\end_layout

\begin_layout Plain Layout

  
\backslash
tikz[baseline]{
\end_layout

\begin_layout Plain Layout


\backslash
node[fill=green!20,anchor=base] (t3)
\end_layout

\begin_layout Plain Layout

 {$
\backslash
vec{
\backslash
omega}_{ib}
\backslash
times(
\backslash
vec{
\backslash
omega}_{ib}
\backslash
times
\backslash
vec{r})$};
\end_layout

\begin_layout Plain Layout

  } 
\end_layout

\begin_layout Plain Layout

}
\end_layout

\end_inset


\end_layout

\begin_layout Itemize
Coriolis acceleration 
\begin_inset ERT
status open

\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}+\frac{^{b}d^{2}}{dt^{2}}\vec{r}+\myta+\mytb+\mytc\]

\end_inset


\end_layout

\begin_layout Itemize
Transversal acceleration
\begin_inset ERT
status open

\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 open

\begin_layout Plain Layout


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

\end_inset


\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\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) edg

LyX + arrows +beamer?

2011-02-20 Thread i...@virginia.edu
Hi,
Is it possible to do this
(http://www.texample.net/tikz/examples/beamer-arrows/)  with LyX?
How?

Thanks!