操作系统:Debian 12
TeX版本:TeX Live 2023
具体编译器:XeLaTeX
贴代码:
\documentclass[a4paper]{ctexart}
\usepackage{amsmath}
\xeCJKsetup{CJKmath=true}
\title{\textsf{混合两种液体并倒出相关的比例问题的解法}}
\author{\texttt{XXX}}
\date{}
\setmainfont{Century}
\setsansfont{Microsoft YaHei UI}
\setmonofont{Consolas}
\setCJKsansfont{Microsoft YaHei UI}
\begin{document}
\maketitle
\begin{abstract}
2023学年六年级数学学科期末考试的第17题
是一个关于喝了一杯橙汁的一部分后
又反复掺水继续喝,
求橙汁和水之比的问题.
我基于此问题进行了一些思考,
并进行了一些推广.
\end{abstract}
\section{问题研究背景}
小明给小燕倒了一杯满满的橙汁,
小燕先喝了这杯橙汁的20\%,
然后加满水,又喝了一杯的2/5,
再倒满水后又喝了半杯,然后又加满水
最后把一杯都喝了,
求小燕喝的橙汁和水的比.
\begin{equation*}
\begin{aligned}
解:&设橙汁量为1. \\
&则V_水=20\%+\frac25+\frac12=\frac{11}{10} \\
&\therefore V_橙:V_水=1:\frac{11}{10}=10:11 \\
&\therefore 小燕喝的橙汁和水的比为10:11.
\end{aligned}
\end{equation*}
% 未完待续
\end{document}
错误提示:
! Undefined control sequence.
l.34 &\therefore
V_橙:V_水=1:\frac{11}{10}=10:11 \\
?
! Undefined control sequence.
l.35 &\therefore
小燕喝的橙汁和水的比为10:11.
输出pdf不显示“因为”“所以”符号。