Re: LyX 2.3.1 -- Beamer presentation
That was most certainly not an MWE :-0-O It's much easier when you remove everything that does not generate the issue, or the other way around, put only exactly what produces the issue. The side effect of this is that it's an iterative method, which often makes one find the cause :-)-O el On 19/10/2018 21:15, F M Salter wrote: > Hi, > > Thanks to Daniel, I rectified the problem. > > Regards > > Frank Salter > >
Re: LyX 2.3.1: Beamer --- overprint
On 10/26/18 11:01 AM, F M Salter wrote: Hi, With overprint on slide, the Alt-P shift-return action creates another overprint. To create a new frame it is necessary to create a standard line before it is possible to move to the next frame. Regards Frank Salter I can confirm that. However, I use a custom binding of Ctrl+Alt+Return (which is easier for me to remember and type than Alt+P Shift+Return) to "call newframe", which starts a new frame even from an overprint paragraph. Paul
LyX 2.3.1: Beamer --- overprint
Hi, With overprint on slide, the Alt-P shift-return action creates another overprint. To create a new frame it is necessary to create a standard line before it is possible to move to the next frame. Regards Frank Salter
Re: LyX 2.3.1 -- Beamer presentation
Hi, Thanks to Daniel, I rectified the problem. Regards Frank Salter
Re: LyX 2.3.1 -- Beamer presentation
On 19/10/2018 13:17, F M Salter wrote: Hi, On Thu. 18 Oct 2018 04:26:19-0700, Baris Erkus wrote: Please Submit a MWE. BE MWE enclosed. Regards Frank Salter Hi, I couldn't compile the file at first and had to remove all equations for some reason. But I guess that is not the problem on your system. As for the jump, there was a typewriter formatting between your first and second frame. I am not sure how it got there or why it causes this problem. You can fix it by removing the separator between the first and second frame and adding it again. Or, alternatively, select the separator together with the second frame label "Frame (plain)" and reset the family via Text Style. Is that what you were after? Best, Daniel
Re: LyX 2.3.1 -- Beamer presentation
Hi, On Thu. 18 Oct 2018 04:26:19-0700, Baris Erkus wrote: > > Please Submit a MWE. > > BE MWE enclosed. Regards Frank Salter jump.lyx Description: application/lyx
RE: LyX 2.3.1 -- Beamer presentation
From: F M Salter<mailto:fmsal...@blueyonder.co.uk> Sent: Wednesday, October 17, 2018 7:01 PM To: lyx-users@lists.lyx.org<mailto:lyx-users@lists.lyx.org> Subject: LyX 2.3.1 -- Beamer presentation Hi When a beamer presentation is presenting a itemised list line by line and the first (the only one at the time) line is shorter than later lines, then the heading on the first frame in not aligned with later frames. It demonstrates a pronounced jump. This did not happen with earlier versions. Is there any way to ensure the alignment is to the left as the action suggests some form of centring. Regards Frank Salter Please Submit a MWE. BE
LyX 2.3.1 -- Beamer presentation
Hi When a beamer presentation is presenting a itemised list line by line and the first (the only one at the time) line is shorter than later lines, then the heading on the first frame in not aligned with later frames. It demonstrates a pronounced jump. This did not happen with earlier versions. Is there any way to ensure the alignment is to the left as the action suggests some form of centring. Regards Frank Salter
Re: Lyx/Latex Beamer Compatibility
Thanks, Paul, for the update. I guess I was totally wrong. Good to know about the Debian release, too. I suppose that will cover Ubuntu. Ehud Kaplan On 05/31/2017 08:57 PM, Paul A. Rubin wrote: On 05/31/2017 11:49 AM, udi wrote: I was under the impression that the Miktex developer has abandoned it in favor of TexLive, which works well on both Windows and Linux. Is that information inaccurate? Ehud Kaplan The most recent release came out three days ago, and the "roadmap" page shows plans through this coming winter. Christian seems to be planning a (first ever?) Debian installer, which would be odd for someone planning to yield the Windows platform to TeXLive. Paul
Re: Lyx/Latex Beamer Compatibility
On 05/31/2017 11:49 AM, udi wrote: I was under the impression that the Miktex developer has abandoned it in favor of TexLive, which works well on both Windows and Linux. Is that information inaccurate? Ehud Kaplan The most recent release came out three days ago, and the "roadmap" page shows plans through this coming winter. Christian seems to be planning a (first ever?) Debian installer, which would be odd for someone planning to yield the Windows platform to TeXLive. Paul
Re: Lyx/Latex Beamer Compatibility
I was under the impression that the Miktex developer has abandoned it in favor of TexLive, which works well on both Windows and Linux. Is that information inaccurate? Ehud Kaplan On 05/30/2017 03:03 PM, Paul A. Rubin wrote: On 05/29/2017 11:03 PM, Christos Makridis wrote: Hey Richard, I am pretty sure it is Windows, and it's the most recent version from miktex. I can ask her for the specifics though if you think it might help? -- We also need to know which LyX installer she used. There are two versions for Windows, the "installer" (52 MB) and the "bundle" (261 MB). The former relies on an existing MiKTeX installation; the latter installs a version of MiKTeX. If you use the bigger installer and you already have MiKTeX, you end up with two MiKTeX installations (the original is not replaced). So I wonder if she used the larger installer and, after uninstalling LyX, some trace of the LyX-installed MiKTeX distribution persisted? Paul -- Ehud Kaplan, Ph.D.
Re: Lyx/Latex Beamer Compatibility
On 05/30/2017 01:43 PM, Christos Makridis wrote: Hey everyone, I talked with my collaborator and acquired some more details. When she was installing lyx, it asked her to update miktex/install updates. She did that and after that was when tex was not working. So then she uninstalled lyx, but tex was still not working, so she uninstalled miktex and reinstalled it. So her beamer slides and some formats of latex are still not working on her windows desktop. My thought was just to reinstall everything and get all the packages up to date? Assuming that the problem is with her MiKTeX installation, wiping all traces of MiKTeX (and LyX) and reinstalling (and then updating) MiKTeX should fix it. The sequence "i_DEc2016_NBER.nav" has me wondering whether something is garbled in a source file, though. If a full reinstall does not fix things, can you get her to provide one of the offending source documents, cut down to more or less the minimum required to trigger an error? Paul
Re: Lyx/Latex Beamer Compatibility
Hey everyone, I talked with my collaborator and acquired some more details. When she was installing lyx, it asked her to update miktex/install updates. She did that and after that was when tex was not working. So then she uninstalled lyx, but tex was still not working, so she uninstalled miktex and reinstalled it. So her beamer slides and some formats of latex are still not working on her windows desktop. My thought was just to reinstall everything and get all the packages up to date?
Re: Lyx/Latex Beamer Compatibility
Great question, will find out and follow up. (Thank you all for being so prompt and interested in figuring out the problem!)
Re: Lyx/Latex Beamer Compatibility
On 05/29/2017 11:03 PM, Christos Makridis wrote: Hey Richard, I am pretty sure it is Windows, and it's the most recent version from miktex. I can ask her for the specifics though if you think it might help? -- We also need to know which LyX installer she used. There are two versions for Windows, the "installer" (52 MB) and the "bundle" (261 MB). The former relies on an existing MiKTeX installation; the latter installs a version of MiKTeX. If you use the bigger installer and you already have MiKTeX, you end up with two MiKTeX installations (the original is not replaced). So I wonder if she used the larger installer and, after uninstalling LyX, some trace of the LyX-installed MiKTeX distribution persisted? Paul
Re: Lyx/Latex Beamer Compatibility
On Mon, May 29, 2017 at 05:55:03PM -0700, Christos Makridis wrote: > Hey Lyx Community, > > One of my collaborators downloaded lyx, but for some reason it prevented > her from compiling her latex files as she normally did. After she > uninstalled lyx, there was still a problem with beamer, which would not > compile. Specifically, it gave the following error: > --- > (C:/Users/filepathXX > i_DEc2016_NBER.nav > ! Undefined control sequence. > l.1 \beamer@endinputifotherversion > {3.33pt} > ? > --- > > Does anyone know why this happened, and if there's a way to avoid it? I > googled the error and it looks like the problem arises from something on > line 1 in the beamer file. But, even so, why was it not a problem before > lyx was installed, and why is it a problem even after it is uninstalled? I've never heard of this happening before. Perhaps a LaTeX package got updated somehow and the new version is incompatibile with the old. It's hard to know without a minimal example .tex or .lyx file. For more information, please read: https://wiki.lyx.org/FAQ/MinimalExample If you can send a minimal example (please send all email to the list), perhaps someone can figure it out. In any case, sorry to your friend and to you for the frustration. I hope you're not on the hook for having recommended LyX :) Scott
Re: Lyx/Latex Beamer Compatibility
Hey Richard, I am pretty sure it is Windows, and it's the most recent version from miktex. I can ask her for the specifics though if you think it might help? -- Christos Makridis Ph.D. Candidate, Stanford University Department of Management Science & Engineering Department of Economics www.christosmakridis.com
Re: Lyx/Latex Beamer Compatibility
On 05/29/2017 08:55 PM, Christos Makridis wrote: > Hey Lyx Community, > > One of my collaborators downloaded lyx, but for some reason it > prevented her from compiling her latex files as she normally did. Is this on Windows? Which version of LyX did she install? and how? Richard
Lyx/Latex Beamer Compatibility
Hey Lyx Community, One of my collaborators downloaded lyx, but for some reason it prevented her from compiling her latex files as she normally did. After she uninstalled lyx, there was still a problem with beamer, which would not compile. Specifically, it gave the following error: --- (C:/Users/filepathXX i_DEc2016_NBER.nav ! Undefined control sequence. l.1 \beamer@endinputifotherversion {3.33pt} ? --- Does anyone know why this happened, and if there's a way to avoid it? I googled the error and it looks like the problem arises from something on line 1 in the beamer file. But, even so, why was it not a problem before lyx was installed, and why is it a problem even after it is uninstalled? Thank you for your help! -- Christos Makridis Ph.D. Candidate, Stanford University Department of Management Science & Engineering Department of Economics www.christosmakridis.com
Re: Lyx and beamer again.
I have never understood the purpose of \lyxframe and \lyxframeend when the standard \begin{frame} and \end{frame} are available. Conceding my almost complete ignorance on this topic, wouldn't it be better to for LyX to use standard Beamer / LaTeX commands whenever possible? This would seem to improve interoperability with users of pure latex, as well as to adhere to the general principle of keeping things simple and not introducing complications that are not needed.
Re: Lyx and beamer again.
Bert Lloyd wrote: I have never understood the purpose of \lyxframe and \lyxframeend when the standard \begin{frame} and \end{frame} are available. Conceding my almost complete ignorance on this topic, wouldn't it be better to for LyX to use standard Beamer / LaTeX commands whenever possible? This would seem to improve interoperability with users of pure latex, as well as to adhere to the general principle of keeping things simple and not introducing complications that are not needed. The problem at the moment is that LyX does not yet support beamer's overlay arguments (...). At the time when the beamer layout was written (by the beamer author himself, BTW), we also did not yet support mandatory environment arguments. We do now, although the InsetArgument framework is not really suitable for submitting a frame title. \lyxframe works around these shortcomings by scanning for the diverse arguments. Jürgen
Re: Lyx and beamer again.
On Sat, Nov 5, 2011 at 9:07 AM, Jürgen Spitzmüller sp...@lyx.org wrote: The problem at the moment is that LyX does not yet support beamer's overlay arguments (...). At the time when the beamer layout was written (by the beamer author himself, BTW), we also did not yet support mandatory environment arguments. We do now, although the InsetArgument framework is not really suitable for submitting a frame title. \lyxframe works around these shortcomings by scanning for the diverse arguments. Jürgen Thanks for the explanation. Are these issues somewhat reduced by the incremental lists modules? http://wiki.lyx.org/Layouts/Modules#toc9 Perhaps these could be included in stock LyX in the future and make the \lyxframe workaround unnecessary?
Re: Lyx and beamer again.
Bert Lloyd wrote: Are these issues somewhat reduced by the incremental lists modules? http://wiki.lyx.org/Layouts/Modules#toc9 Perhaps these could be included in stock LyX in the future and make the \lyxframe workaround unnecessary? Not really. These modules just hardcode some common overlay use cases (which are also achieveable without the modules). Jürgen
Re: Lyx and beamer again.
On Sat, Nov 5, 2011 at 2:07 PM, Jürgen Spitzmüller sp...@lyx.org wrote: The problem at the moment is that LyX does not yet support beamer's overlay arguments (...). At the time when the beamer layout was written (by the beamer author himself, BTW), we also did not yet support mandatory environment arguments. We do now, although the InsetArgument framework is not really suitable for submitting a frame title. I guess that most Beamer hacks could be dropped once #6753 [1] gets addressed. Liviu [1] http://www.lyx.org/trac/ticket/6753 \lyxframe works around these shortcomings by scanning for the diverse arguments. Jürgen -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Lyx and beamer again.
Liviu Andronic wrote: I guess that most Beamer hacks could be dropped once #6753 [1] gets addressed. Liviu [1] http://www.lyx.org/trac/ticket/6753 Indeed, a sane argument UI is a major prerequisite (next to features such as NextNested which automatically nests following paragraphs). However, the argument interface needs to be flexible. The beamer case shows that there's not one perfect UI for all argument-type entries. While many optional and required arguments are best handled via a dialog (as proposed by me in that report) -- for instance the optional and overlay arguments of frame --, arguments such as the frame title should best be inserted directly to the workarea (as the current UI does). For other use cases, even the current clumsy collapsable inset might be the best approach. So we need a broad macro and environment argument abstraction and several user interfaces on top of that. Jürgen
Re: Lyx and beamer again.
I have never understood the purpose of \lyxframe and \lyxframeend when the standard \begin{frame} and \end{frame} are available. Conceding my almost complete ignorance on this topic, wouldn't it be better to for LyX to use standard Beamer / LaTeX commands whenever possible? This would seem to improve interoperability with users of pure latex, as well as to adhere to the general principle of keeping things simple and not introducing complications that are not needed.
Re: Lyx and beamer again.
Bert Lloyd wrote: I have never understood the purpose of \lyxframe and \lyxframeend when the standard \begin{frame} and \end{frame} are available. Conceding my almost complete ignorance on this topic, wouldn't it be better to for LyX to use standard Beamer / LaTeX commands whenever possible? This would seem to improve interoperability with users of pure latex, as well as to adhere to the general principle of keeping things simple and not introducing complications that are not needed. The problem at the moment is that LyX does not yet support beamer's overlay arguments (...). At the time when the beamer layout was written (by the beamer author himself, BTW), we also did not yet support mandatory environment arguments. We do now, although the InsetArgument framework is not really suitable for submitting a frame title. \lyxframe works around these shortcomings by scanning for the diverse arguments. Jürgen
Re: Lyx and beamer again.
On Sat, Nov 5, 2011 at 9:07 AM, Jürgen Spitzmüller sp...@lyx.org wrote: The problem at the moment is that LyX does not yet support beamer's overlay arguments (...). At the time when the beamer layout was written (by the beamer author himself, BTW), we also did not yet support mandatory environment arguments. We do now, although the InsetArgument framework is not really suitable for submitting a frame title. \lyxframe works around these shortcomings by scanning for the diverse arguments. Jürgen Thanks for the explanation. Are these issues somewhat reduced by the incremental lists modules? http://wiki.lyx.org/Layouts/Modules#toc9 Perhaps these could be included in stock LyX in the future and make the \lyxframe workaround unnecessary?
Re: Lyx and beamer again.
Bert Lloyd wrote: Are these issues somewhat reduced by the incremental lists modules? http://wiki.lyx.org/Layouts/Modules#toc9 Perhaps these could be included in stock LyX in the future and make the \lyxframe workaround unnecessary? Not really. These modules just hardcode some common overlay use cases (which are also achieveable without the modules). Jürgen
Re: Lyx and beamer again.
On Sat, Nov 5, 2011 at 2:07 PM, Jürgen Spitzmüller sp...@lyx.org wrote: The problem at the moment is that LyX does not yet support beamer's overlay arguments (...). At the time when the beamer layout was written (by the beamer author himself, BTW), we also did not yet support mandatory environment arguments. We do now, although the InsetArgument framework is not really suitable for submitting a frame title. I guess that most Beamer hacks could be dropped once #6753 [1] gets addressed. Liviu [1] http://www.lyx.org/trac/ticket/6753 \lyxframe works around these shortcomings by scanning for the diverse arguments. Jürgen -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Lyx and beamer again.
Liviu Andronic wrote: I guess that most Beamer hacks could be dropped once #6753 [1] gets addressed. Liviu [1] http://www.lyx.org/trac/ticket/6753 Indeed, a sane argument UI is a major prerequisite (next to features such as NextNested which automatically nests following paragraphs). However, the argument interface needs to be flexible. The beamer case shows that there's not one perfect UI for all argument-type entries. While many optional and required arguments are best handled via a dialog (as proposed by me in that report) -- for instance the optional and overlay arguments of frame --, arguments such as the frame title should best be inserted directly to the workarea (as the current UI does). For other use cases, even the current clumsy collapsable inset might be the best approach. So we need a broad macro and environment argument abstraction and several user interfaces on top of that. Jürgen
Re: Lyx and beamer again.
I have never understood the purpose of \lyxframe and \lyxframeend when the standard \begin{frame} and \end{frame} are available. Conceding my almost complete ignorance on this topic, wouldn't it be better to for LyX to use standard Beamer / LaTeX commands whenever possible? This would seem to improve interoperability with users of "pure" latex, as well as to adhere to the general principle of keeping things simple and not introducing complications that are not needed.
Re: Lyx and beamer again.
Bert Lloyd wrote: > I have never understood the purpose of \lyxframe and \lyxframeend when > the standard \begin{frame} and \end{frame} are available. > > Conceding my almost complete ignorance on this topic, wouldn't it be > better to for LyX to use standard Beamer / LaTeX commands whenever > possible? This would seem to improve interoperability with users of > "pure" latex, as well as to adhere to the general principle of keeping > things simple and not introducing complications that are not needed. The problem at the moment is that LyX does not yet support beamer's overlay arguments (<...>). At the time when the beamer layout was written (by the beamer author himself, BTW), we also did not yet support mandatory environment arguments. We do now, although the InsetArgument framework is not really suitable for submitting a frame title. \lyxframe works around these shortcomings by scanning for the diverse arguments. Jürgen
Re: Lyx and beamer again.
On Sat, Nov 5, 2011 at 9:07 AM, Jürgen Spitzmüllerwrote: > The problem at the moment is that LyX does not yet support beamer's overlay > arguments (<...>). At the time when the beamer layout was written (by the > beamer author himself, BTW), we also did not yet support mandatory environment > arguments. We do now, although the InsetArgument framework is not really > suitable for submitting a frame title. > > \lyxframe works around these shortcomings by scanning for the diverse > arguments. > > Jürgen > Thanks for the explanation. Are these issues somewhat reduced by the incremental lists modules? http://wiki.lyx.org/Layouts/Modules#toc9 Perhaps these could be included in "stock" LyX in the future and make the \lyxframe workaround unnecessary?
Re: Lyx and beamer again.
Bert Lloyd wrote: > Are these issues somewhat reduced by the incremental lists modules? > http://wiki.lyx.org/Layouts/Modules#toc9 > Perhaps these could be included in "stock" LyX in the future and make > the \lyxframe workaround unnecessary? Not really. These modules just hardcode some common overlay use cases (which are also achieveable without the modules). Jürgen
Re: Lyx and beamer again.
On Sat, Nov 5, 2011 at 2:07 PM, Jürgen Spitzmüllerwrote: > The problem at the moment is that LyX does not yet support beamer's overlay > arguments (<...>). At the time when the beamer layout was written (by the > beamer author himself, BTW), we also did not yet support mandatory environment > arguments. We do now, although the InsetArgument framework is not really > suitable for submitting a frame title. > I guess that most Beamer hacks could be dropped once #6753 [1] gets addressed. Liviu [1] http://www.lyx.org/trac/ticket/6753 > \lyxframe works around these shortcomings by scanning for the diverse > arguments. > > Jürgen > -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Lyx and beamer again.
Liviu Andronic wrote: > I guess that most Beamer hacks could be dropped once #6753 [1] gets > addressed. Liviu > > [1] http://www.lyx.org/trac/ticket/6753 Indeed, a sane argument UI is a major prerequisite (next to features such as "NextNested" which automatically nests following paragraphs). However, the argument interface needs to be flexible. The beamer case shows that there's not one "perfect" UI for all argument-type entries. While many optional and required arguments are best handled via a dialog (as proposed by me in that report) -- for instance the optional and overlay arguments of frame --, arguments such as the frame title should best be inserted directly to the workarea (as the current UI does). For other use cases, even the current clumsy collapsable inset might be the best approach. So we need a broad macro and environment argument abstraction and several user interfaces on top of that. Jürgen
Lyx and beamer again.
Hi, Contrary to what I have announced in my preceding post, I continue to try to import my latex beamers, following the schema to which I have arrived after the remarks of Guenter : convert first the document to article; neutralize the frame commands; import in Lyx; set the document class to beamer; reintroduce frame commands by hand. This works better than trying to import the beamer document directly. But, I have other problems to solve: - I have spent some time before observing that, when I have set the document class to Presentation(beamer) in Lyx; it has introduced the definition of \lyxframe, but not the one of the \lyxframeend. Once I have introduced it in the preamble, I have been able to compile the document when I export to latex. - Compiling from Lyx poses problem, since I have an animated diagram with multi-include, introduced in an ERT. When I want to preview the pdf, Lyx cannot find the pdf files in the temp folder and complains about it. I have given the path to the pdf files in the Texinputs box , by completing it like: .:/Users/me/myyfolderpath but this does not seem to help enough Lyx and it continues to not to find the pdf graphics and complain that they do have a bounding box (I can perfectly compile running pdflatex on the exported version, in the original folder (myfolderpath). Any idea why pdflatex run by Lyx cannot find my graphics? We had questions about this problem, but I have thought that this texinputs box in the prefs was there for exactly this problem. By the way : it would be better to be able to set the Texinputs variable in the document properties, since it is in general document dependent, if one groups all files together for each document. Regards, Murat -- Prof. Murat Yildizoglu Université Montesquieu Bordeaux IV GREThA (UMR CNRS 5113) Avenue Léon Duguit 33608 Pessac cedex France yi...@u-bordeaux4.fr http://yildizoglu.info http://www.twitter.com/yildizoglu
Re: Lyx and beamer again.
Murat Yildizoglu wrote: - I have spent some time before observing that, when I have set the document class to Presentation(beamer) in Lyx; it has introduced the definition of \lyxframe, but not the one of the \lyxframeend. Once I have introduced it in the preamble, I have been able to compile the document when I export to latex. It is defined once you insert an EndFrame in the document. In my experience, it is generally advisable to insert such and EndFrame at the end of a presentation. But of course the \lyxframeend definition should be inserted in all cases where this macro is used. This is a bug. HTH, Jürgen
Re: Lyx and beamer again.
On Fri, 4 Nov 2011, Jürgen Spitzmüller wrote: It is defined once you insert an EndFrame in the document. In my experience, it is generally advisable to insert such and EndFrame at the end of a presentation. But of course the \lyxframeend definition should be inserted in all cases where this macro is used. This is a bug. Jürgen, I concur. I've found that each frame needs a \endframe and that also needs to be the last line in the presentation. Rich
Re: Lyx and beamer again.
Rich Shepard wrote: I concur. I've found that each frame needs a \endframe and that also needs to be the last line in the presentation. This is probably a misunderstanding. I meant that LyX is supposed to \lyxframeend definition to the auto-generated preamble whenever this macro is used (which is the case in many paragraph styles such as section etc.). Having said that, you should not need to insert a FrameEnd normally.It'sonly needed in very specific cases. Jürgen
Re: Lyx and beamer again.
I was ignorant of this mechanism (inserting hte definition only if the last \lyxframeend{} is manually inserted. Since the part of my document that has not been reconverted to the beamer format was just flowing text,I can compile my document once exported to Latex. But since I have only inserted Start Frame insets froms the menu box, it is strange inf fact that the latex file was able to compile, without the last manual \lyxframeend{}, no? Have I been lucky at least on this point? :-) (I have always read on this list the you need this last fram end, other wise you are doomed ;-) - that is what Rich was suggesting, by the way) Anyway, I have added it now, by precaution. I won't forget this trick. Thanks a lot Jürgen and Rich. Murat 2011/11/4 Jürgen Spitzmüller sp...@lyx.org Rich Shepard wrote: I concur. I've found that each frame needs a \endframe and that also needs to be the last line in the presentation. This is probably a misunderstanding. I meant that LyX is supposed to \lyxframeend definition to the auto-generated preamble whenever this macro is used (which is the case in many paragraph styles such as section etc.). Having said that, you should not need to insert a FrameEnd normally.It'sonly needed in very specific cases. Jürgen -- Prof. Murat Yildizoglu Université Montesquieu Bordeaux IV GREThA (UMR CNRS 5113) Avenue Léon Duguit 33608 Pessac cedex France yi...@u-bordeaux4.fr http://yildizoglu.info http://www.twitter.com/yildizoglu
Lyx and beamer again.
Hi, Contrary to what I have announced in my preceding post, I continue to try to import my latex beamers, following the schema to which I have arrived after the remarks of Guenter : convert first the document to article; neutralize the frame commands; import in Lyx; set the document class to beamer; reintroduce frame commands by hand. This works better than trying to import the beamer document directly. But, I have other problems to solve: - I have spent some time before observing that, when I have set the document class to Presentation(beamer) in Lyx; it has introduced the definition of \lyxframe, but not the one of the \lyxframeend. Once I have introduced it in the preamble, I have been able to compile the document when I export to latex. - Compiling from Lyx poses problem, since I have an animated diagram with multi-include, introduced in an ERT. When I want to preview the pdf, Lyx cannot find the pdf files in the temp folder and complains about it. I have given the path to the pdf files in the Texinputs box , by completing it like: .:/Users/me/myyfolderpath but this does not seem to help enough Lyx and it continues to not to find the pdf graphics and complain that they do have a bounding box (I can perfectly compile running pdflatex on the exported version, in the original folder (myfolderpath). Any idea why pdflatex run by Lyx cannot find my graphics? We had questions about this problem, but I have thought that this texinputs box in the prefs was there for exactly this problem. By the way : it would be better to be able to set the Texinputs variable in the document properties, since it is in general document dependent, if one groups all files together for each document. Regards, Murat -- Prof. Murat Yildizoglu Université Montesquieu Bordeaux IV GREThA (UMR CNRS 5113) Avenue Léon Duguit 33608 Pessac cedex France yi...@u-bordeaux4.fr http://yildizoglu.info http://www.twitter.com/yildizoglu
Re: Lyx and beamer again.
Murat Yildizoglu wrote: - I have spent some time before observing that, when I have set the document class to Presentation(beamer) in Lyx; it has introduced the definition of \lyxframe, but not the one of the \lyxframeend. Once I have introduced it in the preamble, I have been able to compile the document when I export to latex. It is defined once you insert an EndFrame in the document. In my experience, it is generally advisable to insert such and EndFrame at the end of a presentation. But of course the \lyxframeend definition should be inserted in all cases where this macro is used. This is a bug. HTH, Jürgen
Re: Lyx and beamer again.
On Fri, 4 Nov 2011, Jürgen Spitzmüller wrote: It is defined once you insert an EndFrame in the document. In my experience, it is generally advisable to insert such and EndFrame at the end of a presentation. But of course the \lyxframeend definition should be inserted in all cases where this macro is used. This is a bug. Jürgen, I concur. I've found that each frame needs a \endframe and that also needs to be the last line in the presentation. Rich
Re: Lyx and beamer again.
Rich Shepard wrote: I concur. I've found that each frame needs a \endframe and that also needs to be the last line in the presentation. This is probably a misunderstanding. I meant that LyX is supposed to \lyxframeend definition to the auto-generated preamble whenever this macro is used (which is the case in many paragraph styles such as section etc.). Having said that, you should not need to insert a FrameEnd normally.It'sonly needed in very specific cases. Jürgen
Re: Lyx and beamer again.
I was ignorant of this mechanism (inserting hte definition only if the last \lyxframeend{} is manually inserted. Since the part of my document that has not been reconverted to the beamer format was just flowing text,I can compile my document once exported to Latex. But since I have only inserted Start Frame insets froms the menu box, it is strange inf fact that the latex file was able to compile, without the last manual \lyxframeend{}, no? Have I been lucky at least on this point? :-) (I have always read on this list the you need this last fram end, other wise you are doomed ;-) - that is what Rich was suggesting, by the way) Anyway, I have added it now, by precaution. I won't forget this trick. Thanks a lot Jürgen and Rich. Murat 2011/11/4 Jürgen Spitzmüller sp...@lyx.org Rich Shepard wrote: I concur. I've found that each frame needs a \endframe and that also needs to be the last line in the presentation. This is probably a misunderstanding. I meant that LyX is supposed to \lyxframeend definition to the auto-generated preamble whenever this macro is used (which is the case in many paragraph styles such as section etc.). Having said that, you should not need to insert a FrameEnd normally.It'sonly needed in very specific cases. Jürgen -- Prof. Murat Yildizoglu Université Montesquieu Bordeaux IV GREThA (UMR CNRS 5113) Avenue Léon Duguit 33608 Pessac cedex France yi...@u-bordeaux4.fr http://yildizoglu.info http://www.twitter.com/yildizoglu
Lyx and beamer again.
Hi, Contrary to what I have announced in my preceding post, I continue to try to import my latex beamers, following the schema to which I have arrived after the remarks of Guenter : convert first the document to article; neutralize the frame commands; import in Lyx; set the document class to beamer; reintroduce frame commands by hand. This works better than trying to import the beamer document directly. But, I have other problems to solve: - I have spent some time before observing that, when I have set the document class to Presentation(beamer) in Lyx; it has introduced the definition of \lyxframe, but not the one of the \lyxframeend. Once I have introduced it in the preamble, I have been able to compile the document when I export to latex. - Compiling from Lyx poses problem, since I have an animated diagram with multi-include, introduced in an ERT. When I want to preview the pdf, Lyx cannot find the pdf files in the temp folder and complains about it. I have given the path to the pdf files in the Texinputs box , by completing it like: .:/Users/me/myyfolderpath but this does not seem to help enough Lyx and it continues to not to find the pdf graphics and complain that they do have a bounding box (I can perfectly compile running pdflatex on the exported version, in the original folder (myfolderpath). Any idea why pdflatex run by Lyx cannot find my graphics? We had questions about this problem, but I have thought that this texinputs box in the prefs was there for exactly this problem. By the way : it would be better to be able to set the Texinputs variable in the document properties, since it is in general document dependent, if one groups all files together for each document. Regards, Murat -- Prof. Murat Yildizoglu Université Montesquieu Bordeaux IV GREThA (UMR CNRS 5113) Avenue Léon Duguit 33608 Pessac cedex France yi...@u-bordeaux4.fr http://yildizoglu.info http://www.twitter.com/yildizoglu
Re: Lyx and beamer again.
Murat Yildizoglu wrote: > - I have spent some time before observing that, when I have set the > document class to Presentation(beamer) in Lyx; it has introduced the > definition of \lyxframe, but not the one of the \lyxframeend. Once I have > introduced it in the preamble, I have been able to compile the document > when I export to latex. It is defined once you insert an "EndFrame" in the document. In my experience, it is generally advisable to insert such and EndFrame at the end of a presentation. But of course the \lyxframeend definition should be inserted in all cases where this macro is used. This is a bug. HTH, Jürgen
Re: Lyx and beamer again.
On Fri, 4 Nov 2011, Jürgen Spitzmüller wrote: It is defined once you insert an "EndFrame" in the document. In my experience, it is generally advisable to insert such and EndFrame at the end of a presentation. But of course the \lyxframeend definition should be inserted in all cases where this macro is used. This is a bug. Jürgen, I concur. I've found that each frame needs a \endframe and that also needs to be the last line in the presentation. Rich
Re: Lyx and beamer again.
Rich Shepard wrote: > I concur. I've found that each frame needs a \endframe and that also needs > to be the last line in the presentation. This is probably a misunderstanding. I meant that LyX is supposed to \lyxframeend definition to the auto-generated preamble whenever this macro is used (which is the case in many paragraph styles such as section etc.). Having said that, you should not need to insert a FrameEnd normally.It'sonly needed in very specific cases. Jürgen
Re: Lyx and beamer again.
I was ignorant of this mechanism (inserting hte definition only if the last \lyxframeend{} is manually inserted. Since the part of my document that has not been reconverted to the beamer format was just flowing text,I can compile my document once exported to Latex. But since I have only inserted Start Frame insets froms the menu box, it is strange inf fact that the latex file was able to compile, without the last manual \lyxframeend{}, no? Have I been lucky at least on this point? :-) (I have always read on this list the you need this last fram end, other wise you are doomed ;-) - that is what Rich was suggesting, by the way) Anyway, I have added it now, by precaution. I won't forget this trick. Thanks a lot Jürgen and Rich. Murat 2011/11/4 Jürgen Spitzmüller> Rich Shepard wrote: > > I concur. I've found that each frame needs a \endframe and that also > needs > > to be the last line in the presentation. > > This is probably a misunderstanding. I meant that LyX is supposed to > \lyxframeend definition to the auto-generated preamble whenever this macro > is > used (which is the case in many paragraph styles such as section etc.). > > Having said that, you should not need to insert a FrameEnd > normally.It'sonly > needed in very specific cases. > > Jürgen > -- Prof. Murat Yildizoglu Université Montesquieu Bordeaux IV GREThA (UMR CNRS 5113) Avenue Léon Duguit 33608 Pessac cedex France yi...@u-bordeaux4.fr http://yildizoglu.info http://www.twitter.com/yildizoglu
Re: Lyx and Beamer
On 2011-06-28, Richard Heck wrote: On 06/28/2011 09:28 AM, Murat Yildizoglu wrote: Just to complete my previous mail by an example, I get the following type strange codings (copied from the View latex code window): \end{frame} \lyxframeend{}\section{Blabla} The \end{frame} comes from an Evil Red box and \lyxframeend{} is introduced without a selection by me of a frame environment. Would it solve this specific problem just to remove the ERT box with \end{frame}? LyX's beamer support is kind of strange, in part because of LyX's limited ability to handle arguments and in part because frames act like insets but are rendered more like commands. This is why there is the odd \lyxframeend{} macro. The reason for the strange implementation is LyX's merging of subsequent paragraphs of the same style into one LaTeX environment. The beamer author invented this workaround several versions before the --environment separator dummy style was added. Another alternative is implementing the frame environment (and similar) as custom insets. (Again, this is only possible in recent versions, years after the original beamer layout was written.) This alternative is chosen by my new version of seminar.layout http://www.lyx.org/trac/ticket/7624 Anyway, it does not surprise me that LyX has trouble importing beamer files properly. I think the only thing you can really do is clean it up manually. I propose an alternative beamer layout, either relying on nesting and --environment separator-- or with custom insets. With such a layout in the personal LyXdir, import of beamer sources and co-operating with no-LyXers might become easier. Günter
Re: Lyx and Beamer
On 2011-06-28, Murat Yildizoglu wrote: Lyx is not able to recognize \section like commands and translate them to its environment structure (this is how I got the \lyxframeend problem: I wanted to have more readable section titles, by selection the corresponding environment for them). Looks like SW uses non-standard ways to mark up sections. Maybe pre-processing the *.tex file before the LyX import helps. This is really very annoying indeed... We can only gain our co-authors to Lyx if the conversion from Latex is quite painless. Indeed. However, conversion from machine written LaTeX (be it OpenOffice, SW, a Word2TeX converter or some other front end) is always even more complicated. Some of these tools do fingerpainting instead of structring the document. Günter
Re: Lyx and Beamer
2011/6/29 Guenter Milde mi...@users.berlios.de On 2011-06-28, Murat Yildizoglu wrote: Lyx is not able to recognize \section like commands and translate them to its environment structure (this is how I got the \lyxframeend problem: I wanted to have more readable section titles, by selection the corresponding environment for them). Looks like SW uses non-standard ways to mark up sections. Maybe pre-processing the *.tex file before the LyX import helps. This is really very annoying indeed... We can only gain our co-authors to Lyx if the conversion from Latex is quite painless. Indeed. However, conversion from machine written LaTeX (be it OpenOffice, SW, a Word2TeX converter or some other front end) is always even more complicated. Some of these tools do fingerpainting instead of structring the document. Hi Günter, I think that SW produces quite clean Latex files and the coding of the sections uses quite standard commands. For example, one of the sections that ended up in an ERB is: \section{Une br\`{e}ve histoire de la croissance} which is quite standard to my eyes. What is not standard in SW is the use of comments for the Tex boxes and they pollute a lot the final converted document in Lyx. This is why I do clean them from the tex file before import (using regular expressions bases search and replace). But, it is strange that \begin{frame} is not recognized by Lyx and end up in a ERB. I could maybe replace them by \lyxframebegin; but that would not be simple since I must also handle, in this case, the \frametitle command's argument (by transfering it of \lyxframebegin)... That could introduce more mess in some cases if I am not careful :-( Murat -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
On 2011-06-29, Murat Yildizoglu wrote: 2011/6/29 Guenter Milde mi...@users.berlios.de On 2011-06-28, Murat Yildizoglu wrote: Lyx is not able to recognize \section like commands and translate them to its environment structure (this is how I got the \lyxframeend problem: I wanted to have more readable section titles, by selection the corresponding environment for them). Looks like SW uses non-standard ways to mark up sections. Maybe pre-processing the *.tex file before the LyX import helps. sections uses quite standard commands. For example, one of the sections that ended up in an ERB is: \section{Une br\`{e}ve histoire de la croissance} which is quite standard to my eyes. It is indeed. And usually \section commands are recognized by reLyX, so it seems something threw it off before this line. ... But, it is strange that \begin{frame} is not recognized by Lyx and end up in a ERB. The reason is, that there is not Style for the frame environment in the standard beamer.layout file. Instead, there is the BeginFrame style that translates to \lyxframeend{}\lyxframe. I could maybe replace them by \lyxframebegin; but that would not be simple since I must also handle, in this case, the \frametitle command's argument (by transfering it of \lyxframebegin)... That could introduce more mess in some cases if I am not careful :-( I propose an alternative beamer.layout file without all these lyxframe This is somewhere down on my TODO list (after getting some more knowledge about beamer). As a start, you could try to copy beamer.layout to your $LYXDIR/layout/ directory and add a Frame style (definition adapted from my seminar.layout, not tested): Style Frame LatexType Environment LatexName frame NextNoIndent1 Margin Static LeftMargin N ParIndent TopSep 0.4 LabelType Top_Environment LabelString Landscape Slide: End Then, re-try the import. If this helps a bit, we can try to devise a more standard beamer layout. Günter
Fwd: Lyx and Beamer
Oups, I have forgotten the list's address in my reply. -- Forwarded message -- From: Murat Yildizoglu myi...@gmail.com Date: 2011/6/29 Subject: Re: Lyx and Beamer To: Guenter Milde mi...@users.berlios.de Thank you Guenter, That works better visually, but I crash too frequently after having introduced this environment in the layout file. There must be something tricky going on... If I have sometime during summer, I will check if I can create a more complete layout adapted for the importation of my beamer files. But I have several new courses to build this summer and I am not sure at all to have this time. 2011/6/29 Guenter Milde mi...@users.berlios.de On 2011-06-29, Murat Yildizoglu wrote: 2011/6/29 Guenter Milde mi...@users.berlios.de On 2011-06-28, Murat Yildizoglu wrote: Lyx is not able to recognize \section like commands and translate them to its environment structure (this is how I got the \lyxframeend problem: I wanted to have more readable section titles, by selection the corresponding environment for them). Looks like SW uses non-standard ways to mark up sections. Maybe pre-processing the *.tex file before the LyX import helps. sections uses quite standard commands. For example, one of the sections that ended up in an ERB is: \section{Une br\`{e}ve histoire de la croissance} which is quite standard to my eyes. It is indeed. And usually \section commands are recognized by reLyX, so it seems something threw it off before this line. ... But, it is strange that \begin{frame} is not recognized by Lyx and end up in a ERB. The reason is, that there is not Style for the frame environment in the standard beamer.layout file. Instead, there is the BeginFrame style that translates to \lyxframeend{}\lyxframe. I could maybe replace them by \lyxframebegin; but that would not be simple since I must also handle, in this case, the \frametitle command's argument (by transfering it of \lyxframebegin)... That could introduce more mess in some cases if I am not careful :-( I propose an alternative beamer.layout file without all these lyxframe This is somewhere down on my TODO list (after getting some more knowledge about beamer). As a start, you could try to copy beamer.layout to your $LYXDIR/layout/ directory and add a Frame style (definition adapted from my seminar.layout, not tested): Style Frame LatexType Environment LatexName frame NextNoIndent1 Margin Static LeftMargin N ParIndent TopSep 0.4 LabelType Top_Environment LabelString Landscape Slide: End Then, re-try the import. If this helps a bit, we can try to devise a more standard beamer layout. Günter -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __ -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
On 2011-06-28, Richard Heck wrote: On 06/28/2011 09:28 AM, Murat Yildizoglu wrote: Just to complete my previous mail by an example, I get the following type strange codings (copied from the View latex code window): \end{frame} \lyxframeend{}\section{Blabla} The \end{frame} comes from an Evil Red box and \lyxframeend{} is introduced without a selection by me of a frame environment. Would it solve this specific problem just to remove the ERT box with \end{frame}? LyX's beamer support is kind of strange, in part because of LyX's limited ability to handle arguments and in part because frames act like insets but are rendered more like commands. This is why there is the odd \lyxframeend{} macro. The reason for the strange implementation is LyX's merging of subsequent paragraphs of the same style into one LaTeX environment. The beamer author invented this workaround several versions before the --environment separator dummy style was added. Another alternative is implementing the frame environment (and similar) as custom insets. (Again, this is only possible in recent versions, years after the original beamer layout was written.) This alternative is chosen by my new version of seminar.layout http://www.lyx.org/trac/ticket/7624 Anyway, it does not surprise me that LyX has trouble importing beamer files properly. I think the only thing you can really do is clean it up manually. I propose an alternative beamer layout, either relying on nesting and --environment separator-- or with custom insets. With such a layout in the personal LyXdir, import of beamer sources and co-operating with no-LyXers might become easier. Günter
Re: Lyx and Beamer
On 2011-06-28, Murat Yildizoglu wrote: Lyx is not able to recognize \section like commands and translate them to its environment structure (this is how I got the \lyxframeend problem: I wanted to have more readable section titles, by selection the corresponding environment for them). Looks like SW uses non-standard ways to mark up sections. Maybe pre-processing the *.tex file before the LyX import helps. This is really very annoying indeed... We can only gain our co-authors to Lyx if the conversion from Latex is quite painless. Indeed. However, conversion from machine written LaTeX (be it OpenOffice, SW, a Word2TeX converter or some other front end) is always even more complicated. Some of these tools do fingerpainting instead of structring the document. Günter
Re: Lyx and Beamer
2011/6/29 Guenter Milde mi...@users.berlios.de On 2011-06-28, Murat Yildizoglu wrote: Lyx is not able to recognize \section like commands and translate them to its environment structure (this is how I got the \lyxframeend problem: I wanted to have more readable section titles, by selection the corresponding environment for them). Looks like SW uses non-standard ways to mark up sections. Maybe pre-processing the *.tex file before the LyX import helps. This is really very annoying indeed... We can only gain our co-authors to Lyx if the conversion from Latex is quite painless. Indeed. However, conversion from machine written LaTeX (be it OpenOffice, SW, a Word2TeX converter or some other front end) is always even more complicated. Some of these tools do fingerpainting instead of structring the document. Hi Günter, I think that SW produces quite clean Latex files and the coding of the sections uses quite standard commands. For example, one of the sections that ended up in an ERB is: \section{Une br\`{e}ve histoire de la croissance} which is quite standard to my eyes. What is not standard in SW is the use of comments for the Tex boxes and they pollute a lot the final converted document in Lyx. This is why I do clean them from the tex file before import (using regular expressions bases search and replace). But, it is strange that \begin{frame} is not recognized by Lyx and end up in a ERB. I could maybe replace them by \lyxframebegin; but that would not be simple since I must also handle, in this case, the \frametitle command's argument (by transfering it of \lyxframebegin)... That could introduce more mess in some cases if I am not careful :-( Murat -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
On 2011-06-29, Murat Yildizoglu wrote: 2011/6/29 Guenter Milde mi...@users.berlios.de On 2011-06-28, Murat Yildizoglu wrote: Lyx is not able to recognize \section like commands and translate them to its environment structure (this is how I got the \lyxframeend problem: I wanted to have more readable section titles, by selection the corresponding environment for them). Looks like SW uses non-standard ways to mark up sections. Maybe pre-processing the *.tex file before the LyX import helps. sections uses quite standard commands. For example, one of the sections that ended up in an ERB is: \section{Une br\`{e}ve histoire de la croissance} which is quite standard to my eyes. It is indeed. And usually \section commands are recognized by reLyX, so it seems something threw it off before this line. ... But, it is strange that \begin{frame} is not recognized by Lyx and end up in a ERB. The reason is, that there is not Style for the frame environment in the standard beamer.layout file. Instead, there is the BeginFrame style that translates to \lyxframeend{}\lyxframe. I could maybe replace them by \lyxframebegin; but that would not be simple since I must also handle, in this case, the \frametitle command's argument (by transfering it of \lyxframebegin)... That could introduce more mess in some cases if I am not careful :-( I propose an alternative beamer.layout file without all these lyxframe This is somewhere down on my TODO list (after getting some more knowledge about beamer). As a start, you could try to copy beamer.layout to your $LYXDIR/layout/ directory and add a Frame style (definition adapted from my seminar.layout, not tested): Style Frame LatexType Environment LatexName frame NextNoIndent1 Margin Static LeftMargin N ParIndent TopSep 0.4 LabelType Top_Environment LabelString Landscape Slide: End Then, re-try the import. If this helps a bit, we can try to devise a more standard beamer layout. Günter
Fwd: Lyx and Beamer
Oups, I have forgotten the list's address in my reply. -- Forwarded message -- From: Murat Yildizoglu myi...@gmail.com Date: 2011/6/29 Subject: Re: Lyx and Beamer To: Guenter Milde mi...@users.berlios.de Thank you Guenter, That works better visually, but I crash too frequently after having introduced this environment in the layout file. There must be something tricky going on... If I have sometime during summer, I will check if I can create a more complete layout adapted for the importation of my beamer files. But I have several new courses to build this summer and I am not sure at all to have this time. 2011/6/29 Guenter Milde mi...@users.berlios.de On 2011-06-29, Murat Yildizoglu wrote: 2011/6/29 Guenter Milde mi...@users.berlios.de On 2011-06-28, Murat Yildizoglu wrote: Lyx is not able to recognize \section like commands and translate them to its environment structure (this is how I got the \lyxframeend problem: I wanted to have more readable section titles, by selection the corresponding environment for them). Looks like SW uses non-standard ways to mark up sections. Maybe pre-processing the *.tex file before the LyX import helps. sections uses quite standard commands. For example, one of the sections that ended up in an ERB is: \section{Une br\`{e}ve histoire de la croissance} which is quite standard to my eyes. It is indeed. And usually \section commands are recognized by reLyX, so it seems something threw it off before this line. ... But, it is strange that \begin{frame} is not recognized by Lyx and end up in a ERB. The reason is, that there is not Style for the frame environment in the standard beamer.layout file. Instead, there is the BeginFrame style that translates to \lyxframeend{}\lyxframe. I could maybe replace them by \lyxframebegin; but that would not be simple since I must also handle, in this case, the \frametitle command's argument (by transfering it of \lyxframebegin)... That could introduce more mess in some cases if I am not careful :-( I propose an alternative beamer.layout file without all these lyxframe This is somewhere down on my TODO list (after getting some more knowledge about beamer). As a start, you could try to copy beamer.layout to your $LYXDIR/layout/ directory and add a Frame style (definition adapted from my seminar.layout, not tested): Style Frame LatexType Environment LatexName frame NextNoIndent1 Margin Static LeftMargin N ParIndent TopSep 0.4 LabelType Top_Environment LabelString Landscape Slide: End Then, re-try the import. If this helps a bit, we can try to devise a more standard beamer layout. Günter -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __ -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
On 2011-06-28, Richard Heck wrote: > On 06/28/2011 09:28 AM, Murat Yildizoglu wrote: >> Just to complete my previous mail by an example, I get the following >> type strange codings (copied from the View latex code window): >> \end{frame} >> \lyxframeend{}\section{Blabla} >> The \end{frame} comes from an Evil Red box and \lyxframeend{} is >> introduced without a selection by me of a frame environment. Would it solve this specific problem just to remove the ERT box with \end{frame}? > LyX's beamer support is kind of strange, in part because of LyX's > limited ability to handle arguments and in part because frames act like > insets but are rendered more like commands. This is why there is the odd > \lyxframeend{} macro. The reason for the "strange" implementation is LyX's merging of subsequent paragraphs of the same style into one LaTeX environment. The beamer author invented this workaround several versions before the "--environment separator" dummy style was added. Another alternative is implementing the "frame" environment (and similar) as custom insets. (Again, this is only possible in "recent" versions, years after the original beamer layout was written.) This alternative is chosen by my new version of seminar.layout http://www.lyx.org/trac/ticket/7624 > Anyway, it does not surprise me that LyX has trouble importing beamer > files properly. I think the only thing you can really do is clean it up > manually. I propose an alternative beamer layout, either relying on nesting and --environment separator-- or with custom insets. With such a layout in the personal LyXdir, import of beamer sources and co-operating with no-LyXers might become easier. Günter
Re: Lyx and Beamer
On 2011-06-28, Murat Yildizoglu wrote: > Lyx is not able to recognize \section like commands and translate them to > its environment structure (this is how I got the \lyxframeend problem: I > wanted to have more readable section titles, by selection the corresponding > environment for them). Looks like SW uses non-standard ways to mark up sections. Maybe pre-processing the *.tex file before the LyX import helps. > This is really very annoying indeed... We can only gain our co-authors to > Lyx if the conversion from Latex is quite painless. Indeed. However, conversion from "machine written" LaTeX (be it OpenOffice, SW, a Word2TeX converter or some other front end) is always even more complicated. Some of these tools do "fingerpainting" instead of structring the document. Günter
Re: Lyx and Beamer
2011/6/29 Guenter Milde> On 2011-06-28, Murat Yildizoglu wrote: > > > Lyx is not able to recognize \section like commands and translate them to > > its environment structure (this is how I got the \lyxframeend problem: I > > wanted to have more readable section titles, by selection the > corresponding > > environment for them). > > Looks like SW uses non-standard ways to mark up sections. Maybe > pre-processing the *.tex file before the LyX import helps. > > > This is really very annoying indeed... We can only gain our co-authors to > > Lyx if the conversion from Latex is quite painless. > > Indeed. However, conversion from "machine written" LaTeX (be it > OpenOffice, SW, a Word2TeX converter or some other front end) is > always even more complicated. Some of these tools do "fingerpainting" > instead of structring the document. > > Hi Günter, I think that SW produces quite clean Latex files and the coding of the sections uses quite standard commands. For example, one of the sections that ended up in an ERB is: \section{Une br\`{e}ve histoire de la croissance} which is quite standard to my eyes. What is not standard in SW is the use of comments for the Tex boxes and they pollute a lot the final converted document in Lyx. This is why I do clean them from the tex file before import (using regular expressions bases search and replace). But, it is strange that \begin{frame} is not recognized by Lyx and end up in a ERB. I could maybe replace them by \lyxframebegin; but that would not be simple since I must also handle, in this case, the \frametitle command's argument (by transfering it of \lyxframebegin)... That could introduce more mess in some cases if I am not careful :-( Murat -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
On 2011-06-29, Murat Yildizoglu wrote: > 2011/6/29 Guenter Milde>> On 2011-06-28, Murat Yildizoglu wrote: >> > Lyx is not able to recognize \section like commands and translate them to >> > its environment structure (this is how I got the \lyxframeend problem: I >> > wanted to have more readable section titles, by selection the >> corresponding >> > environment for them). >> Looks like SW uses non-standard ways to mark up sections. Maybe >> pre-processing the *.tex file before the LyX import helps. > sections uses quite standard commands. For example, one of the sections that > ended up in an ERB is: > \section{Une br\`{e}ve histoire de la croissance} > which is quite standard to my eyes. It is indeed. And usually \section commands are recognized by reLyX, so it seems something threw it off before this line. ... > But, it is strange that \begin{frame} is not recognized by Lyx and end up in > a ERB. The reason is, that there is not Style for the "frame" environment in the standard beamer.layout file. Instead, there is the "BeginFrame" style that translates to \lyxframeend{}\lyxframe. > I could maybe replace them by \lyxframebegin; but that would not be > simple since I must also handle, in this case, the \frametitle command's > argument (by transfering it of \lyxframebegin)... That could introduce more > mess in some cases if I am not careful :-( I propose an alternative beamer.layout file without all these "lyxframe...". This is somewhere down on my TODO list (after getting some more knowledge about beamer). As a start, you could try to copy beamer.layout to your $LYXDIR/layout/ directory and add a Frame style (definition adapted from my seminar.layout, not tested): Style Frame LatexType Environment LatexName frame NextNoIndent1 Margin Static LeftMargin N ParIndent "" TopSep 0.4 LabelType Top_Environment LabelString "Landscape Slide:" End Then, re-try the import. If this helps a bit, we can try to devise a more standard beamer layout. Günter
Fwd: Lyx and Beamer
Oups, I have forgotten the list's address in my reply. -- Forwarded message -- From: Murat Yildizoglu <myi...@gmail.com> Date: 2011/6/29 Subject: Re: Lyx and Beamer To: Guenter Milde <mi...@users.berlios.de> Thank you Guenter, That works better visually, but I crash too frequently after having introduced this environment in the layout file. There must be something tricky going on... If I have sometime during summer, I will check if I can create a more complete layout adapted for the importation of my beamer files. But I have several new courses to build this summer and I am not sure at all to have this time. 2011/6/29 Guenter Milde <mi...@users.berlios.de> > On 2011-06-29, Murat Yildizoglu wrote: > > 2011/6/29 Guenter Milde <mi...@users.berlios.de> > >> On 2011-06-28, Murat Yildizoglu wrote: > > >> > Lyx is not able to recognize \section like commands and translate them > to > >> > its environment structure (this is how I got the \lyxframeend problem: > I > >> > wanted to have more readable section titles, by selection the > >> corresponding > >> > environment for them). > > >> Looks like SW uses non-standard ways to mark up sections. Maybe > >> pre-processing the *.tex file before the LyX import helps. > > > sections uses quite standard commands. For example, one of the sections > that > > ended up in an ERB is: > > > \section{Une br\`{e}ve histoire de la croissance} > > > which is quite standard to my eyes. > > It is indeed. And usually \section commands are recognized by reLyX, > so it seems something threw it off before this line. > > ... > > > But, it is strange that \begin{frame} is not recognized by Lyx and end up > in > > a ERB. > > The reason is, that there is not Style for the "frame" environment in > the standard beamer.layout file. Instead, there is the "BeginFrame" > style that translates to \lyxframeend{}\lyxframe. > > > I could maybe replace them by \lyxframebegin; but that would not be > > simple since I must also handle, in this case, the \frametitle command's > > argument (by transfering it of \lyxframebegin)... That could introduce > more > > mess in some cases if I am not careful :-( > > I propose an alternative beamer.layout file without all these > "lyxframe...". This is somewhere down on my TODO list (after getting > some more knowledge about beamer). > > As a start, you could try to copy beamer.layout to your $LYXDIR/layout/ > directory and add a Frame style (definition adapted from my > seminar.layout, not tested): > > Style Frame >LatexType Environment >LatexName frame >NextNoIndent1 >Margin Static >LeftMargin N >ParIndent "" >TopSep 0.4 >LabelType Top_Environment >LabelString "Landscape Slide:" > End > > Then, re-try the import. If this helps a bit, we can try to devise a > more standard beamer layout. > > Günter > > -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __ -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Lyx and Beamer
Hi, I have imported a beamer document written previously by Scientific Word (portable latex). The \begin{frame} and \end{frame} instruction have been imported as evel red boxes. This is not a problem in itself, but now, when I introduce a section between two frames Lyx introduces a \lyxframeend instruction that I do need and that seems to crash the compilation of my file (I get an emergency stop in Latex, without further information - I have exported to latex and compiled by hand to see what is going on). Is this normal that Lyx introduces these \lyxframeend commands even if I have not used the New Frame environment? How can I correct the problem? Is \lyxframeend an intelligent problem that is able to check if a frame is already open (in which case, my problem could be caused by something else)? Thank you very much for your help! Murat PS. I also send the message to developers, hoping that they would better know how \lyxframeend works. -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
Just to complete my previous mail by an example, I get the following type strange codings (copied from the View latex code window): \end{frame} \lyxframeend{}\section{Blabla} The \end{frame} comes from an Evil Red box and \lyxframeend{} is introduced without a selection by me of a frame environment. Murat 2011/6/28 Murat Yildizoglu myi...@gmail.com Hi, I have imported a beamer document written previously by Scientific Word (portable latex). The \begin{frame} and \end{frame} instruction have been imported as evel red boxes. This is not a problem in itself, but now, when I introduce a section between two frames Lyx introduces a \lyxframeend instruction that I do need and that seems to crash the compilation of my file (I get an emergency stop in Latex, without further information - I have exported to latex and compiled by hand to see what is going on). Is this normal that Lyx introduces these \lyxframeend commands even if I have not used the New Frame environment? How can I correct the problem? Is \lyxframeend an intelligent problem that is able to check if a frame is already open (in which case, my problem could be caused by something else)? Thank you very much for your help! Murat PS. I also send the message to developers, hoping that they would better know how \lyxframeend works. -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __ -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
On 06/28/2011 09:28 AM, Murat Yildizoglu wrote: Just to complete my previous mail by an example, I get the following type strange codings (copied from the View latex code window): \end{frame} \lyxframeend{}\section{Blabla} The \end{frame} comes from an Evil Red box and \lyxframeend{} is introduced without a selection by me of a frame environment. LyX's beamer support is kind of strange, in part because of LyX's limited ability to handle arguments and in part because frames act like insets but are rendered more like commands. This is why there is the odd \lyxframeend{} macro. Anyway, it does not surprise me that LyX has trouble importing beamer files properly. I think the only thing you can really do is clean it up manually. Richard
Re: Lyx and Beamer
Thanks Richard, This is really bad news for me, since I have a whole bunch of course beamers that I would like to convert to Lyx, since I am trying to definitely ditch Scientific Word (after having lived for some time with both SW and Lyx). My beamer documents are not particularly fancy, with some pauses and \onslide etc. options, but Lys seems to suffer a lot from the conversion. I also clean all comments from the .tex files, since they fill the Lyx window, without any real use. This helps Lyx, but it is not very efficient in conversion. Moreover, the error messages I get from Latex are not always very helpful (but this another problem, well known by me from my latex by hand days ;-) ). Lyx is not able to recognize \section like commands and translate them to its environment structure (this is how I got the \lyxframeend problem: I wanted to have more readable section titles, by selection the corresponding environment for them). Neither options really get through the conversion (for onslide, for example, \onslide gets in an ERB but not its option, but this does not seem to annoy latex, so no problem here). This is really very annoying indeed... We can only gain our co-authors to Lyx if the conversion from Latex is quite painless. How other people handle this? I really would not like to have to recreate everything from scratch (even partially, since I have a lot of files to convert). Murat 2011/6/28 Richard Heck rgh...@comcast.net ** On 06/28/2011 09:28 AM, Murat Yildizoglu wrote: Just to complete my previous mail by an example, I get the following type strange codings (copied from the View latex code window): \end{frame} \lyxframeend{}\section{Blabla} The \end{frame} comes from an Evil Red box and \lyxframeend{} is introduced without a selection by me of a frame environment. LyX's beamer support is kind of strange, in part because of LyX's limited ability to handle arguments and in part because frames act like insets but are rendered more like commands. This is why there is the odd \lyxframeend{} macro. Anyway, it does not surprise me that LyX has trouble importing beamer files properly. I think the only thing you can really do is clean it up manually. Richard -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
On 06/28/2011 10:27 AM, Murat Yildizoglu wrote: Thanks Richard, This is really bad news for me, since I have a whole bunch of course beamers that I would like to convert to Lyx, since I am trying to definitely ditch Scientific Word (after having lived for some time with both SW and Lyx). My beamer documents are not particularly fancy, with some pauses and \onslide etc. options, but Lys seems to suffer a lot from the conversion. I also clean all comments from the .tex files, since they fill the Lyx window, without any real use. This helps Lyx, but it is not very efficient in conversion. Moreover, the error messages I get from Latex are not always very helpful (but this another problem, well known by me from my latex by hand days ;-) ). Lyx is not able to recognize \section like commands and translate them to its environment structure (this is how I got the \lyxframeend problem: I wanted to have more readable section titles, by selection the corresponding environment for them). Neither options really get through the conversion (for onslide, for example, \onslide gets in an ERB but not its option, but this does not seem to annoy latex, so no problem here). This is really very annoying indeed... We can only gain our co-authors to Lyx if the conversion from Latex is quite painless. How other people handle this? I really would not like to have to recreate everything from scratch (even partially, since I have a lot of files to convert). If I were doing this, I'd write a Perl script to handle the clean up. I've done this already with old documents converted from WordPerfect, but of course your needs will be different. Richard
Re: Lyx and Beamer
On Tuesday 28 June 2011 15:42:08 Richard Heck wrote: If I were doing this, I'd write a Perl script to handle the clean up. I've done this already with old documents converted from WordPerfect, but of course your needs will be different. Richard Due to this I have python scripts (no surprise here :-) ) to convert from lyx to latex. I have in my todo list to clean the output the other way around but I have not yet found time to complete this task. :-( -- José Abílio
Lyx and Beamer
Hi, I have imported a beamer document written previously by Scientific Word (portable latex). The \begin{frame} and \end{frame} instruction have been imported as evel red boxes. This is not a problem in itself, but now, when I introduce a section between two frames Lyx introduces a \lyxframeend instruction that I do need and that seems to crash the compilation of my file (I get an emergency stop in Latex, without further information - I have exported to latex and compiled by hand to see what is going on). Is this normal that Lyx introduces these \lyxframeend commands even if I have not used the New Frame environment? How can I correct the problem? Is \lyxframeend an intelligent problem that is able to check if a frame is already open (in which case, my problem could be caused by something else)? Thank you very much for your help! Murat PS. I also send the message to developers, hoping that they would better know how \lyxframeend works. -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
Just to complete my previous mail by an example, I get the following type strange codings (copied from the View latex code window): \end{frame} \lyxframeend{}\section{Blabla} The \end{frame} comes from an Evil Red box and \lyxframeend{} is introduced without a selection by me of a frame environment. Murat 2011/6/28 Murat Yildizoglu myi...@gmail.com Hi, I have imported a beamer document written previously by Scientific Word (portable latex). The \begin{frame} and \end{frame} instruction have been imported as evel red boxes. This is not a problem in itself, but now, when I introduce a section between two frames Lyx introduces a \lyxframeend instruction that I do need and that seems to crash the compilation of my file (I get an emergency stop in Latex, without further information - I have exported to latex and compiled by hand to see what is going on). Is this normal that Lyx introduces these \lyxframeend commands even if I have not used the New Frame environment? How can I correct the problem? Is \lyxframeend an intelligent problem that is able to check if a frame is already open (in which case, my problem could be caused by something else)? Thank you very much for your help! Murat PS. I also send the message to developers, hoping that they would better know how \lyxframeend works. -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __ -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
On 06/28/2011 09:28 AM, Murat Yildizoglu wrote: Just to complete my previous mail by an example, I get the following type strange codings (copied from the View latex code window): \end{frame} \lyxframeend{}\section{Blabla} The \end{frame} comes from an Evil Red box and \lyxframeend{} is introduced without a selection by me of a frame environment. LyX's beamer support is kind of strange, in part because of LyX's limited ability to handle arguments and in part because frames act like insets but are rendered more like commands. This is why there is the odd \lyxframeend{} macro. Anyway, it does not surprise me that LyX has trouble importing beamer files properly. I think the only thing you can really do is clean it up manually. Richard
Re: Lyx and Beamer
Thanks Richard, This is really bad news for me, since I have a whole bunch of course beamers that I would like to convert to Lyx, since I am trying to definitely ditch Scientific Word (after having lived for some time with both SW and Lyx). My beamer documents are not particularly fancy, with some pauses and \onslide etc. options, but Lys seems to suffer a lot from the conversion. I also clean all comments from the .tex files, since they fill the Lyx window, without any real use. This helps Lyx, but it is not very efficient in conversion. Moreover, the error messages I get from Latex are not always very helpful (but this another problem, well known by me from my latex by hand days ;-) ). Lyx is not able to recognize \section like commands and translate them to its environment structure (this is how I got the \lyxframeend problem: I wanted to have more readable section titles, by selection the corresponding environment for them). Neither options really get through the conversion (for onslide, for example, \onslide gets in an ERB but not its option, but this does not seem to annoy latex, so no problem here). This is really very annoying indeed... We can only gain our co-authors to Lyx if the conversion from Latex is quite painless. How other people handle this? I really would not like to have to recreate everything from scratch (even partially, since I have a lot of files to convert). Murat 2011/6/28 Richard Heck rgh...@comcast.net ** On 06/28/2011 09:28 AM, Murat Yildizoglu wrote: Just to complete my previous mail by an example, I get the following type strange codings (copied from the View latex code window): \end{frame} \lyxframeend{}\section{Blabla} The \end{frame} comes from an Evil Red box and \lyxframeend{} is introduced without a selection by me of a frame environment. LyX's beamer support is kind of strange, in part because of LyX's limited ability to handle arguments and in part because frames act like insets but are rendered more like commands. This is why there is the odd \lyxframeend{} macro. Anyway, it does not surprise me that LyX has trouble importing beamer files properly. I think the only thing you can really do is clean it up manually. Richard -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
On 06/28/2011 10:27 AM, Murat Yildizoglu wrote: Thanks Richard, This is really bad news for me, since I have a whole bunch of course beamers that I would like to convert to Lyx, since I am trying to definitely ditch Scientific Word (after having lived for some time with both SW and Lyx). My beamer documents are not particularly fancy, with some pauses and \onslide etc. options, but Lys seems to suffer a lot from the conversion. I also clean all comments from the .tex files, since they fill the Lyx window, without any real use. This helps Lyx, but it is not very efficient in conversion. Moreover, the error messages I get from Latex are not always very helpful (but this another problem, well known by me from my latex by hand days ;-) ). Lyx is not able to recognize \section like commands and translate them to its environment structure (this is how I got the \lyxframeend problem: I wanted to have more readable section titles, by selection the corresponding environment for them). Neither options really get through the conversion (for onslide, for example, \onslide gets in an ERB but not its option, but this does not seem to annoy latex, so no problem here). This is really very annoying indeed... We can only gain our co-authors to Lyx if the conversion from Latex is quite painless. How other people handle this? I really would not like to have to recreate everything from scratch (even partially, since I have a lot of files to convert). If I were doing this, I'd write a Perl script to handle the clean up. I've done this already with old documents converted from WordPerfect, but of course your needs will be different. Richard
Re: Lyx and Beamer
On Tuesday 28 June 2011 15:42:08 Richard Heck wrote: If I were doing this, I'd write a Perl script to handle the clean up. I've done this already with old documents converted from WordPerfect, but of course your needs will be different. Richard Due to this I have python scripts (no surprise here :-) ) to convert from lyx to latex. I have in my todo list to clean the output the other way around but I have not yet found time to complete this task. :-( -- José Abílio
Lyx and Beamer
Hi, I have imported a beamer document written previously by Scientific Word (portable latex). The \begin{frame} and \end{frame} instruction have been imported as evel red boxes. This is not a problem in itself, but now, when I introduce a section between two frames Lyx introduces a \lyxframeend instruction that I do need and that seems to crash the compilation of my file (I get an emergency stop in Latex, without further information - I have exported to latex and compiled by hand to see what is going on). Is this normal that Lyx introduces these \lyxframeend commands even if I have not used the New Frame environment? How can I correct the problem? Is \lyxframeend an intelligent problem that is able to check if a frame is already open (in which case, my problem could be caused by something else)? Thank you very much for your help! Murat PS. I also send the message to developers, hoping that they would better know how \lyxframeend works. -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
Just to complete my previous mail by an example, I get the following type strange codings (copied from the View latex code window): \end{frame} \lyxframeend{}\section{Blabla} The \end{frame} comes from an Evil Red box and \lyxframeend{} is introduced without a selection by me of a frame environment. Murat 2011/6/28 Murat Yildizoglu> Hi, > > I have imported a beamer document written previously by Scientific Word > (portable latex). The \begin{frame} and \end{frame} instruction have been > imported as evel red boxes. This is not a problem in itself, but now, when I > introduce a section between two frames Lyx introduces a \lyxframeend > instruction that I do need and that seems to crash the compilation of my > file (I get an emergency stop in Latex, without further information - I have > exported to latex and compiled by hand to see what is going on). > > Is this normal that Lyx introduces these \lyxframeend commands even if I > have not used the New Frame environment? How can I correct the problem? > Is \lyxframeend an intelligent problem that is able to check if a frame is > already open (in which case, my problem could be caused by something else)? > > Thank you very much for your help! > > Murat > > PS. I also send the message to developers, hoping that they would better > know how \lyxframeend works. > > -- > Prof. Murat Yildizoglu > Université Paul Cézanne (Aix-Marseille 3) > GREQAM (UMR CNRS 6579) > Centre de la Vieille Charité > 2, rue de la Charité > 13236 Marseille cedex 02 > > Bureau 320 > Tel : +33 4 91 14 07 27 (standard) > Tel : +33 4 91 14 07 70 (secrétariat) > Tel : +33 4 91 14 07 47 (bureau) > Fax : +33 4 91 90 02 27 > > e-mail: murat.yildizo...@univ-cezanne.fr > www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html > http://www.twitter.com/yildizoglu > __ > -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
On 06/28/2011 09:28 AM, Murat Yildizoglu wrote: > Just to complete my previous mail by an example, I get the following > type strange codings (copied from the View latex code window): > > \end{frame} > > \lyxframeend{}\section{Blabla} > > > The \end{frame} comes from an Evil Red box and \lyxframeend{} is > introduced without a selection by me of a frame environment. > > LyX's beamer support is kind of strange, in part because of LyX's limited ability to handle arguments and in part because frames act like insets but are rendered more like commands. This is why there is the odd \lyxframeend{} macro. Anyway, it does not surprise me that LyX has trouble importing beamer files properly. I think the only thing you can really do is clean it up manually. Richard
Re: Lyx and Beamer
Thanks Richard, This is really bad news for me, since I have a whole bunch of course beamers that I would like to convert to Lyx, since I am trying to definitely ditch Scientific Word (after having lived for some time with both SW and Lyx). My beamer documents are not particularly fancy, with some pauses and \onslide etc. options, but Lys seems to suffer a lot from the conversion. I also clean all comments from the .tex files, since they fill the Lyx window, without any real use. This helps Lyx, but it is not very efficient in conversion. Moreover, the error messages I get from Latex are not always very helpful (but this another problem, well known by me from my latex by hand days ;-) ). Lyx is not able to recognize \section like commands and translate them to its environment structure (this is how I got the \lyxframeend problem: I wanted to have more readable section titles, by selection the corresponding environment for them). Neither options really get through the conversion (for onslide, for example, \onslide gets in an ERB but not its option, but this does not seem to annoy latex, so no problem here). This is really very annoying indeed... We can only gain our co-authors to Lyx if the conversion from Latex is quite painless. How other people handle this? I really would not like to have to recreate everything from scratch (even partially, since I have a lot of files to convert). Murat 2011/6/28 Richard Heck <rgh...@comcast.net> > ** > On 06/28/2011 09:28 AM, Murat Yildizoglu wrote: > > Just to complete my previous mail by an example, I get the following type > strange codings (copied from the View latex code window): > > \end{frame} > > \lyxframeend{}\section{Blabla} > > > The \end{frame} comes from an Evil Red box and \lyxframeend{} is > introduced without a selection by me of a frame environment. > > > LyX's beamer support is kind of strange, in part because of LyX's > limited ability to handle arguments and in part because frames act like > insets but are rendered more like commands. This is why there is the odd > \lyxframeend{} macro. Anyway, it does not surprise me that LyX has trouble > importing beamer files properly. I think the only thing you can really do is > clean it up manually. > > Richard > > -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Re: Lyx and Beamer
On 06/28/2011 10:27 AM, Murat Yildizoglu wrote: > Thanks Richard, > > This is really bad news for me, since I have a whole bunch of course > beamers that I would like to convert to Lyx, since I am trying to > definitely ditch Scientific Word (after having lived for some time > with both SW and Lyx). > > My beamer documents are not particularly fancy, with some pauses and > \onslide etc. options, but Lys seems to suffer a lot from the > conversion. I also clean all comments from the .tex files, since they > fill the Lyx window, without any real use. This helps Lyx, but it is > not very efficient in conversion. Moreover, the error messages I get > from Latex are not always very helpful (but this another problem, well > known by me from my latex by hand days ;-) ). > > Lyx is not able to recognize \section like commands and translate them > to its environment structure (this is how I got the \lyxframeend > problem: I wanted to have more readable section titles, by selection > the corresponding environment for them). Neither options really get > through the conversion (for onslide, for example, \onslide gets in an > ERB but not its option, but this does not seem to annoy latex, so no > problem here). > > This is really very annoying indeed... We can only gain our co-authors > to Lyx if the conversion from Latex is quite painless. > > How other people handle this? I really would not like to have to > recreate everything from scratch (even partially, since I have a lot > of files to convert). > If I were doing this, I'd write a Perl script to handle the clean up. I've done this already with old documents converted from WordPerfect, but of course your needs will be different. Richard
Re: Lyx and Beamer
On Tuesday 28 June 2011 15:42:08 Richard Heck wrote: > If I were doing this, I'd write a Perl script to handle the clean up. > I've done this already with old documents converted from WordPerfect, > but of course your needs will be different. > > Richard Due to this I have python scripts (no surprise here :-) ) to convert from lyx to latex. I have in my todo list to clean the output the other way around but I have not yet found time to complete this task. :-( -- José Abílio
Re: LyX + arrows +beamer?
2011/2/22 Paul A. Rubin ru...@msu.edu: 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/2/22 Paul A. Rubin ru...@msu.edu: 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/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?
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 space 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) edge
Re: LyX + arrows +beamer?
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 ru...@msu.edu 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 space 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
Re: LyX + arrows +beamer?
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 igna...@virginia.eduwrote: 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 ru...@msu.edu 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 space 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
Re: LyX + arrows +beamer?
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?
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 space 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) edge
Re: LyX + arrows +beamer?
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 ru...@msu.edu 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 space 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
Re: LyX + arrows +beamer?
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 igna...@virginia.eduwrote: 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 ru...@msu.edu 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 space 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
Re: LyX + arrows +beamer?
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?
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)
Re: LyX + arrows +beamer?
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 Rubinwrote: > 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 \[ >
Re: LyX + arrows +beamer?
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 Martinezwrote: > 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 >> >> {$ >>
Re: LyX + arrows +beamer?
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