Load new math resources in the native Web editor
This commit is contained in:
1 parent
8b6dab8d52
commit
fe86163767
12 files changed
+838
-106
No files matched your search
+25
-7
@@ -38,17 +38,35 @@ python3 target/local-beta/native-beta.py compile /path/to/main.tex /path/to/outp
|
||||
|
||||
## 使用项目的 Web 界面
|
||||
|
||||
将 texrra-web 放在引擎仓库旁边。启动或重开时指定 Web 目录。
|
||||
将 texrra-web 放在引擎仓库旁边。从项目列表新建项目或拖入 ZIP。
|
||||
|
||||
~~~sh
|
||||
python3 target/local-beta/native-beta.py web --web-dir ../texrra-web --projects-dir target/local-projects
|
||||
~~~
|
||||
|
||||
导入后打开项目的主文件,左侧可切换源文件,右侧显示原生实时预览。
|
||||
ZIP 可包含子目录、源文件及图像等资源。库中的导入副本保留原样,
|
||||
编辑时点击「保存源文件」生成独立副本。当前本地服务同时打开一个项目。
|
||||
|
||||
也可用 Web 工作台直接打开样例或重开已保存的项目。
|
||||
|
||||
~~~sh
|
||||
python3 target/local-beta/native-beta.py open --web-dir ../texrra-web
|
||||
python3 target/local-beta/native-beta.py resume /path/to/saved-project --web-dir ../texrra-web
|
||||
~~~
|
||||
|
||||
该入口显示 Web 工作台的文件栏、编辑区和预览区。编辑、局部预览、
|
||||
源码保存及下载 PDF 都使用原生 Beta 会话。每次启动打开一个由命令行
|
||||
指定的项目。现有 Web 的项目列表和 ZIP 导入仍在原 serve 入口。
|
||||
启动指令中的其他参数和保存目录格式与上文相同。
|
||||
## 输入公式
|
||||
|
||||
编辑源文件时用 $...$ 输入行内公式,用 \[...\] 输入陈列公式。
|
||||
使用 align 等环境时,在导言区加入 \usepackage{amsmath}。
|
||||
例如在正文中输入以下内容。
|
||||
|
||||
~~~latex
|
||||
行内公式 $E=mc^2$。
|
||||
\[
|
||||
\frac{\alpha+\beta}{\sqrt{1+x^2}}
|
||||
\]
|
||||
~~~
|
||||
|
||||
## 保存和重新打开
|
||||
|
||||
@@ -60,8 +78,8 @@ python3 target/local-beta/native-beta.py resume /path/to/saved-project --web-dir
|
||||
python3 target/local-beta/native-beta.py resume /path/to/texrra-sources-directory
|
||||
~~~
|
||||
|
||||
有编译错误的草稿也可以保存。重开目前需要通过首次编译,若草稿仍有错误,
|
||||
可先在保存目录的 sources 中修正源文件。每次保存都会得到独立的一份。
|
||||
有编译错误的草稿也可以保存和重开。打开后可在编辑器修正错误。
|
||||
每次保存都会得到独立的一份。
|
||||
|
||||
## 已对照的项目
|
||||
|
||||
|
||||
Reference in new issue
Block a user