Hello LyX Users: Question about asymptote package within a LyX document.

2023-04-25 Thread Enrique Comer
Hello LyX Users:
I just read the article by Justin Domke with link: 
https://justindomke.wordpress.com/2017/05/24/the-second-and-third-best-features-of-lyx-you-arent-using/.



My question is:

►How could we call the asymptote package from within a LyX document?.




For example: From Justin Domke, we can write:


\begin{tikzpicture}
\draw[red] (0,0) -- (0,1);
\draw[green] (0,1) -- (1,1);
\draw[red] (1,1) -- (1,0);
\draw[blue] (1,0) -- (0,0);
\end{tikzpicture}
and obtain the corresponding figure.
How could we prepare LyX to be able to evaluate, for example:


begin{asy}size(0,100);import geometry;triangle 
t=triangle(b=3,alpha=90,c=4);dot((0,0));draw(t);draw(rotate(90)*t,red);draw(shift((-4,0))*t,blue);draw(reflect((0,0),(1,0))*t,green);draw(slant(2)*t,magenta);
\end{asy}
and obtain the figure? (note: the example code is from the gallery in link: 
https://asymptote.sourceforge.io/gallery/triangle.asy )






►I already tested the previous asymptote code from a LyX document, with the 
LaTeX preamble including: \usepackage[inline]{asymptote}, but the result was 
the generation of PDF without errors, but also without the expected figure.





Thank you very much in advance for any pointer to answer this question.


Congratulations for supporting the use of the great editor LyX.Best 
regards,Enrique Comer

|  | Libre de virus.www.avast.com |

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: centering frame titles in beamer

2023-04-25 Thread Tom Goldring

Yes, that did it - thanks a million!
Tom

On 4/25/23 11:37 AM, Paul A. Rubin wrote:

Document > Settings... > LaTeX Preamble):

\setbeamertemplate{frametitle}[default][center]

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: centering frame titles in beamer

2023-04-25 Thread Steve Litt
Tom Goldring said on Mon, 24 Apr 2023 15:18:13 -0400

>I am able to create a slide presentation in LyX using beamer. Is there 
>an easy way to center the frame titles without going through trial and 
>error adjustments (depending on the length of the frame title) for
>each frame?

Hi Tom,

Could you please attach a small, 2 slide example sliver of your
document that demonstrates the frame title, without attempting to
center it. You've already learned the right way to center it, but I'd
like to try an alternative way, and will report whether my idea works.
Once again, the real way is what Paul Rubin said, but I'd like to take
a crack at it.

SteveT

Steve Litt 
Autumn 2022 featured book: Thriving in Tough Times
http://www.troubleshooters.com/bookstore/thrive.htm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: centering frame titles in beamer

2023-04-25 Thread Paul A. Rubin

On 4/24/23 21:04, Tom Goldring wrote:
My apologies, somehow I missed seeing your answer. Could you please 
resend?


Thanks,
Tom

Try adding the following to the preamble (Document > Settings... > LaTeX 
Preamble):


\setbeamertemplate{frametitle}[default][center].


Paul

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users