How to integrate Asymptote with Beamer

本文详细介绍了如何将Asymptote图形绘制工具与LaTeX Beamer类文档结合使用,包括必要的配置步骤及示例代码。遵循这些指南可以实现在演示文稿中直接插入复杂的矢量图形。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

原文:http://senlinwu.blogspot.com/2006/12/how-to-integrate-asymptote-with-beamer.html

 

原文无法访问,转贴如下

 

If you want to integrate Asymptote with beamer, follow the following steps:

1. Including the line "/usepackage{asymptote}" before "/begin{document}". Of course, you should make sure that the style file asymptote.sty, can be found by the latex programme.

2. If you want to use pdflatex to compile the tex file, you should also include the package "epstopdf".

3. Add "[fragile]" option to the frame where you want to include Asymptote statement.

4. Including asy statements in the environment "/begin{asy}/end{asy}".

5. Use "latex --> asy --> latex --> dvips --> ps2pdf" or "pdflatex-->asy-->pdflatex" to compile the tex file.

 

An example

/documentclass{beamer}
/usepackage{epstopdf}
/usepackage{asymptote}
/begin{document}
/begin{frame}[fragile]
/begin{asy}
 size(3cm,0);
 draw(unitcircle, red);
/end{asy}
/end{frame}
/end{document}

### 查找与 Spring Boot 3.4.1 兼容的 Spring CloudSpring Cloud Alibaba 版本 对于 Spring Boot 3.4.1 的兼容性,建议使用特定版本Spring CloudSpring Cloud Alibaba 来确保最佳集成效果。 #### Spring Cloud 版本 Spring Boot 3.x 系列通常对应于较新的 Spring Cloud 发布列车版本。具体来说,Spring Boot 3.4.1 应该匹配 Spring Cloud 2022.0.x 或更高版本[^1]。这些发布列车版本提供了对最新特性和改进的支持,并修复了许多已知问题。 #### Spring Cloud Alibaba 版本 为了使 Nacos Discovery 组件正常工作并解决潜在的依赖冲突(如 `snakeyaml`),推荐使用的 Spring Cloud Alibaba 版本应为 2022.0.0 及以上版本[^2]。此版本不仅解决了与 Spring Boot 3.x 的兼容性问题,还引入了一些重要的优化和错误修正。 以下是配置 `pom.xml` 中的相关依赖项示例: ```xml <dependencies> <!-- spring cloud alibaba nacos discovery --> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> <version>${spring-cloud-alibaba.version}</version> <exclusions> <exclusion> <groupId>org.yaml</groupId> <artifactId>snakeyaml</artifactId> </exclusion> </exclusions> </dependency> <!-- other dependencies --> </dependencies> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>3.4.1</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-alibaba-dependencies</artifactId> <version>2022.0.0.0</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> ``` 通过上述设置可以有效管理项目中的依赖关系,从而实现 Spring Boot 3.4.1、Spring CloudSpring Cloud Alibaba 的无缝协作。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值