texlive[68839] Master: litesolution (14nov23)

commits+karl at tug.org commits+karl at tug.org
Tue Nov 14 22:03:28 CET 2023


Revision: 68839
          https://tug.org/svn/texlive?view=revision&revision=68839
Author:   karl
Date:     2023-11-14 22:03:28 +0100 (Tue, 14 Nov 2023)
Log Message:
-----------
litesolution (14nov23)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/libexec/ctan2tds
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/litesolution/
    trunk/Master/texmf-dist/doc/latex/litesolution/License
    trunk/Master/texmf-dist/doc/latex/litesolution/README.md
    trunk/Master/texmf-dist/doc/latex/litesolution/figures/
    trunk/Master/texmf-dist/doc/latex/litesolution/figures/HDU.pdf
    trunk/Master/texmf-dist/doc/latex/litesolution/figures/cover1.png
    trunk/Master/texmf-dist/doc/latex/litesolution/litesolution-demo.tex
    trunk/Master/texmf-dist/doc/latex/litesolution/litesolution-doc.tex
    trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.pdf
    trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.tex
    trunk/Master/texmf-dist/tex/latex/litesolution/
    trunk/Master/texmf-dist/tex/latex/litesolution/litesolution.cls
    trunk/Master/tlpkg/tlpsrc/litesolution.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/litesolution/License
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/License	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/License	2023-11-14 21:03:28 UTC (rev 68839)
@@ -0,0 +1,415 @@
+The LaTeX Project Public License
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+
+LPPL Version 1.3c  2008-05-04
+
+Copyright 1999 2002-2008 LaTeX3 Project
+    Everyone is allowed to distribute verbatim copies of this
+    license document, but modification of it is not allowed.
+
+
+PREAMBLE
+========
+
+The LaTeX Project Public License (LPPL) is the primary license under
+which the LaTeX kernel and the base LaTeX packages are distributed.
+
+You may use this license for any work of which you hold the copyright
+and which you wish to distribute.  This license may be particularly
+suitable if your work is TeX-related (such as a LaTeX package), but 
+it is written in such a way that you can use it even if your work is 
+unrelated to TeX.
+
+The section `WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE',
+below, gives instructions, examples, and recommendations for authors
+who are considering distributing their works under this license.
+
+This license gives conditions under which a work may be distributed
+and modified, as well as conditions under which modified versions of
+that work may be distributed.
+
+We, the LaTeX3 Project, believe that the conditions below give you
+the freedom to make and distribute modified versions of your work
+that conform with whatever technical specifications you wish while
+maintaining the availability, integrity, and reliability of
+that work.  If you do not see how to achieve your goal while
+meeting these conditions, then read the document `cfgguide.tex'
+and `modguide.tex' in the base LaTeX distribution for suggestions.
+
+
+DEFINITIONS
+===========
+
+In this license document the following terms are used:
+
+   `Work'
+    Any work being distributed under this License.
+    
+   `Derived Work'
+    Any work that under any applicable law is derived from the Work.
+
+   `Modification' 
+    Any procedure that produces a Derived Work under any applicable
+    law -- for example, the production of a file containing an
+    original file associated with the Work or a significant portion of
+    such a file, either verbatim or with modifications and/or
+    translated into another language.
+
+   `Modify'
+    To apply any procedure that produces a Derived Work under any
+    applicable law.
+    
+   `Distribution'
+    Making copies of the Work available from one person to another, in
+    whole or in part.  Distribution includes (but is not limited to)
+    making any electronic components of the Work accessible by
+    file transfer protocols such as FTP or HTTP or by shared file
+    systems such as Sun's Network File System (NFS).
+
+   `Compiled Work'
+    A version of the Work that has been processed into a form where it
+    is directly usable on a computer system.  This processing may
+    include using installation facilities provided by the Work,
+    transformations of the Work, copying of components of the Work, or
+    other activities.  Note that modification of any installation
+    facilities provided by the Work constitutes modification of the Work.
+
+   `Current Maintainer'
+    A person or persons nominated as such within the Work.  If there is
+    no such explicit nomination then it is the `Copyright Holder' under
+    any applicable law.
+
+   `Base Interpreter' 
+    A program or process that is normally needed for running or
+    interpreting a part or the whole of the Work.    
+
+    A Base Interpreter may depend on external components but these
+    are not considered part of the Base Interpreter provided that each
+    external component clearly identifies itself whenever it is used
+    interactively.  Unless explicitly specified when applying the
+    license to the Work, the only applicable Base Interpreter is a
+    `LaTeX-Format' or in the case of files belonging to the 
+    `LaTeX-format' a program implementing the `TeX language'.
+
+
+
+CONDITIONS ON DISTRIBUTION AND MODIFICATION
+===========================================
+
+1.  Activities other than distribution and/or modification of the Work
+are not covered by this license; they are outside its scope.  In
+particular, the act of running the Work is not restricted and no
+requirements are made concerning any offers of support for the Work.
+
+2.  You may distribute a complete, unmodified copy of the Work as you
+received it.  Distribution of only part of the Work is considered
+modification of the Work, and no right to distribute such a Derived
+Work may be assumed under the terms of this clause.
+
+3.  You may distribute a Compiled Work that has been generated from a
+complete, unmodified copy of the Work as distributed under Clause 2
+above, as long as that Compiled Work is distributed in such a way that
+the recipients may install the Compiled Work on their system exactly
+as it would have been installed if they generated a Compiled Work
+directly from the Work.
+
+4.  If you are the Current Maintainer of the Work, you may, without
+restriction, modify the Work, thus creating a Derived Work.  You may
+also distribute the Derived Work without restriction, including
+Compiled Works generated from the Derived Work.  Derived Works
+distributed in this manner by the Current Maintainer are considered to
+be updated versions of the Work.
+
+5.  If you are not the Current Maintainer of the Work, you may modify
+your copy of the Work, thus creating a Derived Work based on the Work,
+and compile this Derived Work, thus creating a Compiled Work based on
+the Derived Work.
+
+6.  If you are not the Current Maintainer of the Work, you may
+distribute a Derived Work provided the following conditions are met
+for every component of the Work unless that component clearly states
+in the copyright notice that it is exempt from that condition.  Only
+the Current Maintainer is allowed to add such statements of exemption 
+to a component of the Work. 
+
+  a. If a component of this Derived Work can be a direct replacement
+     for a component of the Work when that component is used with the
+     Base Interpreter, then, wherever this component of the Work
+     identifies itself to the user when used interactively with that
+     Base Interpreter, the replacement component of this Derived Work
+     clearly and unambiguously identifies itself as a modified version
+     of this component to the user when used interactively with that
+     Base Interpreter.
+     
+  b. Every component of the Derived Work contains prominent notices
+     detailing the nature of the changes to that component, or a
+     prominent reference to another file that is distributed as part
+     of the Derived Work and that contains a complete and accurate log
+     of the changes.
+  
+  c. No information in the Derived Work implies that any persons,
+     including (but not limited to) the authors of the original version
+     of the Work, provide any support, including (but not limited to)
+     the reporting and handling of errors, to recipients of the
+     Derived Work unless those persons have stated explicitly that
+     they do provide such support for the Derived Work.
+
+  d. You distribute at least one of the following with the Derived Work:
+
+       1. A complete, unmodified copy of the Work; 
+          if your distribution of a modified component is made by
+          offering access to copy the modified component from a
+          designated place, then offering equivalent access to copy
+          the Work from the same or some similar place meets this
+          condition, even though third parties are not compelled to
+          copy the Work along with the modified component;
+
+       2. Information that is sufficient to obtain a complete,
+          unmodified copy of the Work.
+
+7.  If you are not the Current Maintainer of the Work, you may
+distribute a Compiled Work generated from a Derived Work, as long as
+the Derived Work is distributed to all recipients of the Compiled
+Work, and as long as the conditions of Clause 6, above, are met with
+regard to the Derived Work.
+
+8.  The conditions above are not intended to prohibit, and hence do not
+apply to, the modification, by any method, of any component so that it
+becomes identical to an updated version of that component of the Work as
+it is distributed by the Current Maintainer under Clause 4, above.
+
+9.  Distribution of the Work or any Derived Work in an alternative
+format, where the Work or that Derived Work (in whole or in part) is
+then produced by applying some process to that format, does not relax or
+nullify any sections of this license as they pertain to the results of
+applying that process.
+     
+10. a. A Derived Work may be distributed under a different license
+       provided that license itself honors the conditions listed in
+       Clause 6 above, in regard to the Work, though it does not have
+       to honor the rest of the conditions in this license.
+      
+    b. If a Derived Work is distributed under a different license, that
+       Derived Work must provide sufficient documentation as part of
+       itself to allow each recipient of that Derived Work to honor the 
+       restrictions in Clause 6 above, concerning changes from the Work.
+
+11. This license places no restrictions on works that are unrelated to
+the Work, nor does this license place any restrictions on aggregating
+such works with the Work by any means.
+
+12.  Nothing in this license is intended to, or may be used to, prevent
+complete compliance by all parties with all applicable laws.
+
+
+NO WARRANTY
+===========
+
+There is no warranty for the Work.  Except when otherwise stated in
+writing, the Copyright Holder provides the Work `as is', without
+warranty of any kind, either expressed or implied, including, but not
+limited to, the implied warranties of merchantability and fitness for a
+particular purpose.  The entire risk as to the quality and performance
+of the Work is with you.  Should the Work prove defective, you assume
+the cost of all necessary servicing, repair, or correction.
+
+In no event unless required by applicable law or agreed to in writing
+will The Copyright Holder, or any author named in the components of the
+Work, or any other party who may distribute and/or modify the Work as
+permitted above, be liable to you for damages, including any general,
+special, incidental or consequential damages arising out of any use of
+the Work or out of inability to use the Work (including, but not limited
+to, loss of data, data being rendered inaccurate, or losses sustained by
+anyone as a result of any failure of the Work to operate with any other
+programs), even if the Copyright Holder or said author or said other
+party has been advised of the possibility of such damages.
+
+
+MAINTENANCE OF THE WORK
+=======================
+
+The Work has the status `author-maintained' if the Copyright Holder
+explicitly and prominently states near the primary copyright notice in
+the Work that the Work can only be maintained by the Copyright Holder
+or simply that it is `author-maintained'.
+
+The Work has the status `maintained' if there is a Current Maintainer
+who has indicated in the Work that they are willing to receive error
+reports for the Work (for example, by supplying a valid e-mail
+address). It is not required for the Current Maintainer to acknowledge
+or act upon these error reports.
+
+The Work changes from status `maintained' to `unmaintained' if there
+is no Current Maintainer, or the person stated to be Current
+Maintainer of the work cannot be reached through the indicated means
+of communication for a period of six months, and there are no other
+significant signs of active maintenance.
+
+You can become the Current Maintainer of the Work by agreement with
+any existing Current Maintainer to take over this role.
+
+If the Work is unmaintained, you can become the Current Maintainer of
+the Work through the following steps:
+
+ 1.  Make a reasonable attempt to trace the Current Maintainer (and
+     the Copyright Holder, if the two differ) through the means of
+     an Internet or similar search.
+
+ 2.  If this search is successful, then enquire whether the Work
+     is still maintained.
+
+  a. If it is being maintained, then ask the Current Maintainer
+     to update their communication data within one month.
+     
+  b. If the search is unsuccessful or no action to resume active
+     maintenance is taken by the Current Maintainer, then announce
+     within the pertinent community your intention to take over
+     maintenance.  (If the Work is a LaTeX work, this could be
+     done, for example, by posting to comp.text.tex.)
+
+ 3a. If the Current Maintainer is reachable and agrees to pass
+     maintenance of the Work to you, then this takes effect
+     immediately upon announcement.
+     
+  b. If the Current Maintainer is not reachable and the Copyright
+     Holder agrees that maintenance of the Work be passed to you,
+     then this takes effect immediately upon announcement.  
+    
+ 4.  If you make an `intention announcement' as described in 2b. above
+     and after three months your intention is challenged neither by
+     the Current Maintainer nor by the Copyright Holder nor by other
+     people, then you may arrange for the Work to be changed so as
+     to name you as the (new) Current Maintainer.
+     
+ 5.  If the previously unreachable Current Maintainer becomes
+     reachable once more within three months of a change completed
+     under the terms of 3b) or 4), then that Current Maintainer must
+     become or remain the Current Maintainer upon request provided
+     they then update their communication data within one month.
+
+A change in the Current Maintainer does not, of itself, alter the fact
+that the Work is distributed under the LPPL license.
+
+If you become the Current Maintainer of the Work, you should
+immediately provide, within the Work, a prominent and unambiguous
+statement of your status as Current Maintainer.  You should also
+announce your new status to the same pertinent community as
+in 2b) above.
+
+
+WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE
+======================================================
+
+This section contains important instructions, examples, and
+recommendations for authors who are considering distributing their
+works under this license.  These authors are addressed as `you' in
+this section.
+
+Choosing This License or Another License
+----------------------------------------
+
+If for any part of your work you want or need to use *distribution*
+conditions that differ significantly from those in this license, then
+do not refer to this license anywhere in your work but, instead,
+distribute your work under a different license.  You may use the text
+of this license as a model for your own license, but your license
+should not refer to the LPPL or otherwise give the impression that
+your work is distributed under the LPPL.
+
+The document `modguide.tex' in the base LaTeX distribution explains
+the motivation behind the conditions of this license.  It explains,
+for example, why distributing LaTeX under the GNU General Public
+License (GPL) was considered inappropriate.  Even if your work is
+unrelated to LaTeX, the discussion in `modguide.tex' may still be
+relevant, and authors intending to distribute their works under any
+license are encouraged to read it.
+
+A Recommendation on Modification Without Distribution
+-----------------------------------------------------
+
+It is wise never to modify a component of the Work, even for your own
+personal use, without also meeting the above conditions for
+distributing the modified component.  While you might intend that such
+modifications will never be distributed, often this will happen by
+accident -- you may forget that you have modified that component; or
+it may not occur to you when allowing others to access the modified
+version that you are thus distributing it and violating the conditions
+of this license in ways that could have legal implications and, worse,
+cause problems for the community.  It is therefore usually in your
+best interest to keep your copy of the Work identical with the public
+one.  Many works provide ways to control the behavior of that work
+without altering any of its licensed components.
+
+How to Use This License
+-----------------------
+
+To use this license, place in each of the components of your work both
+an explicit copyright notice including your name and the year the work
+was authored and/or last substantially modified.  Include also a
+statement that the distribution and/or modification of that
+component is constrained by the conditions in this license.
+
+Here is an example of such a notice and statement:
+
+  %% pig.dtx
+  %% Copyright 2008 M. Y. Name
+  %
+  % This work may be distributed and/or modified under the
+  % conditions of the LaTeX Project Public License, either version 1.3
+  % of this license or (at your option) any later version.
+  % The latest version of this license is in
+  %   https://www.latex-project.org/lppl.txt
+  % and version 1.3c or later is part of all distributions of LaTeX
+  % version 2008 or later.
+  %
+  % This work has the LPPL maintenance status `maintained'.
+  % 
+  % The Current Maintainer of this work is M. Y. Name.
+  %
+  % This work consists of the files pig.dtx and pig.ins
+  % and the derived file pig.sty.
+
+Given such a notice and statement in a file, the conditions
+given in this license document would apply, with the `Work' referring
+to the three files `pig.dtx', `pig.ins', and `pig.sty' (the last being
+generated from `pig.dtx' using `pig.ins'), the `Base Interpreter'
+referring to any `LaTeX-Format', and both `Copyright Holder' and
+`Current Maintainer' referring to the person `M. Y. Name'.
+
+If you do not want the Maintenance section of LPPL to apply to your
+Work, change `maintained' above into `author-maintained'.  
+However, we recommend that you use `maintained', as the Maintenance
+section was added in order to ensure that your Work remains useful to
+the community even when you can no longer maintain and support it
+yourself.
+
+Derived Works That Are Not Replacements
+---------------------------------------
+
+Several clauses of the LPPL specify means to provide reliability and
+stability for the user community. They therefore concern themselves
+with the case that a Derived Work is intended to be used as a
+(compatible or incompatible) replacement of the original Work. If
+this is not the case (e.g., if a few lines of code are reused for a
+completely different task), then clauses 6b and 6d shall not apply.
+
+
+Important Recommendations
+-------------------------
+
+ Defining What Constitutes the Work
+
+   The LPPL requires that distributions of the Work contain all the
+   files of the Work.  It is therefore important that you provide a
+   way for the licensee to determine which files constitute the Work.
+   This could, for example, be achieved by explicitly listing all the
+   files of the Work near the copyright notice of each file or by
+   using a line such as:
+
+    % This work consists of all files listed in manifest.txt.
+   
+   in that place.  In the absence of an unequivocal list it might be
+   impossible for the licensee to determine what is considered by you
+   to comprise the Work and, in such a case, the licensee would be
+   entitled to make reasonable conjectures as to which files comprise
+   the Work.

Added: trunk/Master/texmf-dist/doc/latex/litesolution/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/README.md	2023-11-14 21:03:28 UTC (rev 68839)
@@ -0,0 +1,19 @@
+# The `LiteSolution` document
+
+
+Modules of `LiteSolution` provide the following supports:
+
+
+**Welcome to pull requests
+[here](https://github.com/xiamyphys/LiteSolution).**
+
+## License
+
+This work may be distributed and/or modified under the conditions of the
+[LaTeX Project Public License](http://www.latex-project.org/lppl.txt),
+either version 1.3c of this license or (at your option) any later version.
+
+This work has the LPPL maintenance status `maintained`.
+
+The Current Maintainer of this work is
+[Mingyu Xia](https://www.ctan.org/author/xia-my).
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/litesolution/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litesolution/figures/HDU.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/litesolution/figures/HDU.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/figures/HDU.pdf	2023-11-14 21:02:04 UTC (rev 68838)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/figures/HDU.pdf	2023-11-14 21:03:28 UTC (rev 68839)

Property changes on: trunk/Master/texmf-dist/doc/latex/litesolution/figures/HDU.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litesolution/figures/cover1.png
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/litesolution/figures/cover1.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/figures/cover1.png	2023-11-14 21:02:04 UTC (rev 68838)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/figures/cover1.png	2023-11-14 21:03:28 UTC (rev 68839)

Property changes on: trunk/Master/texmf-dist/doc/latex/litesolution/figures/cover1.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litesolution/litesolution-demo.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/litesolution-demo.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/litesolution-demo.tex	2023-11-14 21:03:28 UTC (rev 68839)
@@ -0,0 +1,85 @@
+\chapter{A Sample for \pkg{LiteSolution} Template}
+\fancyhead[L]{\color{H6}\kaishu\faIcon{atom}\;2022年\titlelogo{https://sci.hdu.edu.cn}{HDU}「普通物理2」期中试题解析}
+\fancyhead[R]{\color{H6}\kaishu\rightmark\,}
+
+\section{选填题(共15分)}
+\begin{choice}{D}[波的能量]
+    一平面简谐波在弹性媒介中传播,在媒质质元从最大位移处回到平衡位置的过程中
+    \begin{tasks}(2)
+        \task 它的势能转换成动能
+        \task 它的动能转换成势能
+        \task 它从相邻的一段质元获得能量,其能量逐渐增加
+        \task 它把能量传给相邻的一段质元,其能量逐渐减小
+    \end{tasks}
+\end{choice}
+\begin{solution}*
+    波在传播过程中介质质元振动的动能和势能同时变化.\sokka{C}
+\end{solution}
+
+\begin{choice}{D}[双缝干涉]
+    在双缝干涉实验中,两缝间距离为$d$,双缝与屏幕之间的距离为$D$($D\gg d$).波长为$\lambda$的平行单色光垂直照射到双缝上,屏幕上干涉条纹中相邻暗纹之间的距离是
+    \begin{tasks}(4)
+        \task $\frac{2\lambda D}{d}$
+        \task $\frac{\lambda d}{D}$
+        \task $\frac{dD}{\lambda}$
+        \task $\frac{\lambda D}{d}$
+    \end{tasks}
+\end{choice}
+\begin{solution}*
+    由明纹公式$x=k\lambda D/d$得暗纹间距$\Delta x=\lambda D/d$.\sokka{D}
+\end{solution}
+
+\begin{problem}[简谐振动的合成][3]
+    一个质点同时参与两个在同一直线上的简谐振动:$x_1=4\cos{\ab(2t+\frac{\pi}{6})},\ x_2=2\cos{\ab(2t-\frac{\pi}{6})}$.该质点合振动的振幅大小为\ans{$2\sqrt{7}$}.
+\end{problem}
+\begin{solution}*
+    $A=\sqrt{A_1^2+A_2^2+2A_1A_2\cos{\Delta\varphi}}=2\sqrt{7}$.
+\end{solution}
+
+\begin{problem}[多普勒效应][6]
+    一辆运动的警车发出警铃声音频率为$f_s=1400\mathrm{Hz}$,从左向右移动,速度大小为$70\mathrm{m/s}$. 一个观察者从右向左移动,速度大小为$10\mathrm{m/s}$,空气中的声速$u=340\mathrm{m/s}$.观察者与警车相遇前后,听到警铃的频率分别为\ans{$1814.8\mathrm{Hz}$,$1126.8\mathrm{Hz}$}.
+\end{problem}
+\begin{solution}*
+    $f_1=\frac{340+10}{340-70}\times 1400\mathrm{Hz}\approx 1814.8\mathrm{Hz},\ f_2=\frac{340-10}{340+70}\times 1400\mathrm{Hz}\approx 1126.8\mathrm{Hz}$.
+\end{solution}
+
+\section{计算题(共20分)}
+\begin{problem}[简谐振动][10]
+    一个质量为$1\mathrm{kg}$的物块沿$x$轴做简谐振动,振幅为$10\mathrm{cm}$,最大速度$2\times 10^{-2}\mathrm{m/s}$.在时间$t=4\mathrm{s}$时,物块位于$5\mathrm{cm}$.求
+    \begin{enumerate}
+        \item 简谐运动的周期和最大加速度.
+        \item 简谐运动的位移方程.
+    \end{enumerate}
+\end{problem}
+\begin{solution}
+    \begin{enumerate}
+        \item 由$v_{\max}=\omega,\ T=\frac{2\pi}{\omega}$得$T=10\pi\mathrm{s},\ \omega=0.2\mathrm{s}^{-1},\ a_{\max}=\omega^2A=4\times 10^{-3}\mathrm{m/s}^2$.\point{4}
+        \item $t=4\mathrm{s}$时$x=\frac{1}{2}A,\ v<0$,所以此时相位$\varphi=\frac{\pi}{3}$.故位移方程为\point{2}
+        \[x=0.1\cos{\ab[0.2\ab(t-4)]+\frac{\pi}{3}}=0.1\cos{\ab(0.2t+0.079\pi)}\eqno\point{4}\]
+    \end{enumerate}
+\end{solution}
+
+\begin{problem}[牛顿环][10]
+    空气中,使用波长为$480\mathrm{nm}$平行单色光观察牛顿环.在反射光中测得某一明环的直径为$4.74\mathrm{mm}$,在它外面第$10$个明环的直径为$7.24\mathrm{mm}$.求
+\begin{enumerate}
+    \item 平凸透镜的曲率半径.
+    \item 直径为$4.74\mathrm{mm}$明环的条纹级数$k$.
+    \item 假设把整个装置放入水中($n=1.33$),原直径为$4.74\mathrm{mm}$明环的新直径.
+\end{enumerate}
+\end{problem}
+\begin{solution}
+\begin{enumerate}
+    \item $R=\ab(r_{k+10}^2-r_k^2)/10\lambda=1.56\mathrm{m}$.\point{4}
+    \item 由$r_k=\sqrt{\frac{2k-1}{2}\lambda R}$得$k=\frac{r_k^2}{\lambda R}+\frac{1}{2}=8$.\point{3}
+    \item 由于光在介质中的波长与折射率成反比,所以此时$d_k^{\prime}=\frac{d_k}{\sqrt{n}}=4.11\mathrm{mm}$.\point{3}
+\end{enumerate}
+\end{solution}
+
+\section{计算题\! $^\dagger$(共15分)}
+
+\begin{problem}[弹簧振子][15]
+    一个质量为$m=1\mathrm{kg}$的盘子刚性连接竖直悬挂的轻弹簧下端,弹簧的劲度系数为$k=90\mathrm{N/m}$.盘子在竖直方向做简谐运动,振幅$A=10.0\mathrm{cm}$.现有一个质量$m_2=1\mathrm{kg}$的物体自由落下掉在盘上,没有反弹.当\textbf{盘子位于向上最大位移处},盘子与物体发生碰撞,物体从开始自由自由落体发生处,距离为$h=20\mathrm{cm}$,假设碰撞瞬间完成.求碰撞后盘子和物体组成的系统,它的振动周期、振幅和振动能量.
+\end{problem}
+\begin{solution}*
+    Answer omitted.
+\end{solution}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/litesolution/litesolution-demo.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litesolution/litesolution-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/litesolution-doc.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/litesolution-doc.tex	2023-11-14 21:03:28 UTC (rev 68839)
@@ -0,0 +1,241 @@
+\chapter{The \pkg{LiteSolution} Template}
+\fancyhead[L]{\,\color{H7}\href{https://github.com/xiamyphys/litesolution}{\faIcon{github}\;\leftmark}}
+\fancyhead[R]{\color{H7}\rightmark\,}
+
+\centerline{Xia Mingyu, \href{https://www.hdu.edu.cn}{Hangzhou Dianzi University}}
+\ddmmyyyydate
+\centerline{\mailto{xiamyphys at gmail.com}}
+\centerline{\today,\quad Version 1.0a}
+
+This is the document for \pkg{LiteSolution} template, which provides a lite design of the solution of test paper.
+
+Some designs of this template currently only support \textbf{Simplified Chinese (Mainland)}. If necessary, you can change some Chinese characters to the language you want in the \verb|*.cls| file.
+
+\section{Introduction}
+\subsection{The purpose of this template}
+This template provides a lite and fresh template, and mainly used for typesetting solutions of final, textbooks' and other exercises. This template is developed based on \href{https://www.ctan.org/pkg/elegantbook}{\pkg*{ElegantBook}} and \href{https://github.com/Azure1210/VividBooK}{\pkg*{VividBooK}}, ported and improved the chapter design module code of \href{https://www.overleaf.com/latex/templates/the-legrand-orange-book-template-english/jtctyfmnpppc}{The Legrand Orange Book}. I'd like to express my gratitude to the template authors above for their previous work.
+
+If you meet bugs when using this template, or you have better suggestions or ideas, or you want to participate in the development of the template or other templates by me, welcome to contact via email \href{mailto:xiamyphys at gmail.com}{xiamyphys at gmail.com}.
+
+Also, you can join my \textsf\LaTeX{} Template Discussion \href{https://qm.qq.com/q/OnHzbNvVAG}{QQ Group: 760570712} to communicate with me and get the insider preview edition of the template.
+
+\subsection{Loading \pkg{LiteSolution} and its modes}
+
+Update all the packages to the latest version or switch to portable version instead by implementing the commands 
+\begin{verbatim}
+    tlmgr update --self
+    tlmgr update --all
+    tlmgr update --self --all --reinstall-forcibly-removed
+\end{verbatim}
+
+To learn more, please refer to \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my TEX distribution?}
+
+Save the file \verb|litesolution.cls| to your project's root directory, and then create a \verb|.tex| file, just input the command \verb|\documentclass{litesolution}| on the first line.
+
+The template provides 3 modes, \mode{answer}, \mode{mtpro2} and \mode{counter}. Just add the options of the modes you want separately in the square bracket of the command \verb|\documentclass[options]{litesolution}| in your \verb|.tex| file.
+
+\section{Modes of \pkg{LiteSolution}}
+\subsection{The \mode{answer} mode}
+This mode has two options, \mode{ans} and \mode{noans}, which can show and hide answers respectively. After you choose the \mode{noans}, the contents in the environment \cmd{solution}, the command \cmd{ans} and the answers in the multiple choice questions will all become the same color as the pagecolor. So the area that originally contained the answer will be replaced by an area of the same blank size. You can generate exams without answers and solutions by enabling \mode{noans}.
+
+\subsection{The \mode{mtpro2} mode}
+If you've installed the \emph{Mathtime Pro 2 Lite} font in your computer, then you can use this mode to change the math font.
+
+\subsection{The \mode{counter}}
+This mode has two options, \mode{separate} and \mode{continuous}, which can make the page counter between chapters be remaked or continuous.The page numbers between each test question will be continuous when you use the \mode{continuous} mode or the page number of each test question will start from 1 when you use the \mode{separate}.
+
+
+\section{Commands of \pkg{LiteSolution}}
+\subsection{The \cmd{chapterimage} command}
+\begin{verbatim}
+    \chapterimage{cover1.png}
+\end{verbatim}
+This command can assign the title background image for each subsequent chapter.
+
+\subsection{The \cmd{chapterfont} command}
+This command can assign the title font for each subsequent chapter, if you do not use this command, the title font will be \emph{songti} in Chinese and \emph{Libertinus} in English.
+
+\subsection{The \cmd{ans} command}
+This command can underlines the answer and changes the color of the answer to \textcolor{1号色}{Blue Sapphire}.
+
+\paragraph{If mode \mode{noans} is enabled, the answer will disappear, leaving only a horizontal line the same width as the answer.}
+
+\subsection{The \cmd{watermark} command}
+\begin{verbatim}
+    \watermark{ctanlion.pdf}
+\end{verbatim}
+
+This command can add watermark to the document.
+
+\subsection{Other customer commands}
+In order to facilitate input, the following commands are scheduled. You can add others in the \verb|*.cls| file as you like.
+\vskip1em
+\begin{center}
+    \begin{tabular}{l|l|l|l|l|l}
+        \toprule
+        Command & Output & Command & Output & Command & Output\\
+        \midrule
+        \verb|\titlelogo{#1}{#2}| & Add emoji with link in text & \verb|\point{#1}| & Add score & \verb|\i| & $\mathrm{i}$\\
+        \hline
+        \verb|\sokka{#1}| & 故本题选择\#1项 & \verb|\d| & $\mathrm{d}$ & \verb|\e| & $\mathrm{e}$\\
+        \bottomrule
+    \end{tabular}    
+\end{center}
+
+\section{Environments of \pkg{LiteSolution}}
+\subsection{The \cmd{choice} environment}
+There're two variables in this envrionment. The first one is the answer of the choice problem, the second one is the keywords of this choice problem and it's optional.
+
+\begin{tcblisting}{sidebyside}
+\begin{choice}{D}[Keywords]
+If you want to add choice and keywords.
+\begin{tasks}(2) % 2 choices per line
+    \task This is choice A  \task This is choice B
+    \task This is choice C  \task This is choice D
+\end{tasks}
+\end{choice}
+\begin{choice}{D}
+If you want to add choice only.
+\begin{tasks}(4) % 4 choices per line
+    \task Chc A \task Chc B \task Chc C \task Chc D
+\end{tasks}
+\end{choice}
+\end{tcblisting}
+
+\begin{paracol}{2}
+    \begin{choice}{D}[Gaussian theory]
+        $A$和$B$为两个均匀带电球体,$A$带电荷$+q$,$B$带电荷$-q$,作一与$A$...
+        \begin{tasks}(2)
+            \task 通过$S$面的电场强度...        \task 通过$S$面的电场强度...
+            \task 通过$S$面的电场强度...        \task 通过$S$面的电场强度...
+        \end{tasks}
+    \end{choice}
+    \switchcolumn
+    \centering\vfill
+    \begin{tikzpicture}
+        \draw [thick] (0,0) circle (0.8);
+        \draw [thick] (0,0) circle (1.2);
+        \draw [thick] (2.4,0) circle (0.8);
+        \draw [thick] (0,0)--(0.85,0.85);
+        \node [anchor=east] at (0,0) {$A$};
+        \node [anchor=north] at (0,0) {$+q$};
+        \node [anchor=east] at (0.566,0.566) {$r$};
+        \node [anchor=south] at (0.85,0.85) {$S$};
+        \node [anchor=south] at (2.4,0) {$-q$};
+    \end{tikzpicture}
+    \vfill
+\end{paracol}
+\begin{verbatim}
+\begin{paracol}{2}
+\begin{choice}{D}[Gaussian theory]
+    $A$和$B$为两个均匀带电球体,$A$带电荷$+q$,$B$带电荷$-q$,作一与$A$...
+    \begin{tasks}(2)
+        \task 通过$S$面的电场强度...        \task 通过$S$面的电场强度...
+        \task 通过$S$面的电场强度...        \task 通过$S$面的电场强度...
+    \end{tasks}
+\end{choice}
+\switchcolumn\centering\vfill\tikz{...}\vfill
+\end{paracol}
+\end{verbatim}
+
+\subsection{The \cmd{problem} environment}
+Sightly different from the cmd{choice} environment: the two variables are points and keywords, and the question number counter is shared with the multiple-choice question number counter.
+\begin{tcblisting}{sidebyside}
+    \begin{problem}[Keywords][5]
+        If you want to add keywords and points.
+    \end{problem}
+    \begin{problem}
+        If you want to add none.
+    \end{problem}
+    \begin{problem}[Keywords]
+        If you want to add keywords only.
+    \end{problem}
+    \begin{problem}*[][5]
+        If you want to add points only.
+    \end{problem}
+\end{tcblisting}
+
+\begin{paracol}{2}
+\begin{problem}[Gaussian theory \& Field strength][6]
+    一均匀带电直导线长为$d$,电荷线密度为$+\lambda$.过导线中点$O$作一半径为$R$($R>\frac{d}{2}$)的球面$S$,$P$为带电直导线的延长线与球面$S$的交点. 则通过该球面的电场强度通量$\Phi_e=$\ans{$\frac{\lambda d}{\varepsilon_0}$},带电直线的延长线与球面交点$P$处的电场强度的大小为\ans{$\frac{\lambda d}{4\pi\varepsilon_0(R^2-d^2/4)}$},方向\ans{沿矢径$\boldsymbol{OP}$}.
+    \end{problem}
+\switchcolumn\centering
+\vfill
+\begin{tikzpicture}[scale=0.83]
+    \draw (0,0) circle (2);
+    \draw [thick,->] (-2,0)--(0,0)--(1,1.732);
+    \node [anchor=east] at (-2,0) {$P$};
+    \filldraw (-2,0) circle (0.05);
+    \node [anchor=west] at (0.5,0.866) {$R$};
+    \filldraw [pattern=north east lines] (-0.8,-0.1)--(-0.8,0.1)--(0.8,0.1)--(0.8,-0.1)--cycle;
+    \draw [thick,|<-] (-0.8,-0.3)--(-0.25,-0.3);
+    \draw [thick,|<-] (0.8,-0.3)--(0.25,-0.3);
+    \node at (0,-0.3) {$L$};
+\end{tikzpicture}
+\vfill
+\end{paracol}
+\begin{verbatim}
+\begin{paracol}{2}
+    \begin{problem}[Gaussian theory \& Field strength][6]
+        一均匀带电直导线长为$d$,电荷线密度为$+\lambda$,过导线中点$O$...
+        场强大小\ans{$\frac{\lambda d}{4\pi\varepsilon_0(R^2-d^2/4)}$}...
+    \end{problem}
+\switchcolumn\centering\vfill\tikz{...}\vfill
+\end{paracol}
+\end{verbatim}
+
+\subsection{The \cmd{note} environment}
+\begin{tcblisting}{sidebyside}
+\begin{note}
+    Please note that...
+\end{note}
+\end{tcblisting}
+
+\subsection{The \cmd{solution} environment}
+\begin{tcblisting}{sidebyside}
+\begin{solution}
+    This is the answer for the problem.
+\end{solution}
+\end{tcblisting}
+
+If a star (*) is added after the \verb|\begin{solution}|, then the content will follow the 
+\begin{tcblisting}{sidebyside}
+\begin{solution}*
+    This is the answer for the problem.
+\end{solution}
+\end{tcblisting}
+
+\paragraph{If mode \mode{noans} is enabled, the solution will disappear, leaving only a blank box with the same height as the solution, and the name of the box will change to \emph{\textcolor{1号色}{\textbf{\faIcon{ban} 答案隐藏}}}.}
+
+\newpage
+\section{Version History}
+This template is used to type the mid-term and final exam solutions of \emph{College Physics}. Initially, I used the \href{https://www.ctan.org/pkg/elegantbook}{ElegantBook} template for layout, however, it's no longer be maintained since January 1st, 2023, so I trun to use the \href{https://github.com/Azure1210/VividBooK}{\pkg*{VividBooK}} instead. But this template is too bloated and some functions \& designs need to be redesigned, so I started developing \pkg{LiteSolution}.
+
+\textsf{\bfseries Version 0.1a} was finished developing on 29 June, 2023 and released on \href{https://mp.weixin.qq.com/s/kd4StYk3XybhNQZkAfoY6A}{\faIcon{weixin} WeChat Public Account: 物理问题作} with the name \emph{FreshSolution}. This version redesigned the \cmd{exercise} environment and the \cmd{solution} environment in terms of designs and functions, and improvements have been made to the design of the chapterimage part.
+
+\textsf{\bfseries Version 0.1b} was finished developing on 6 July, 2023 and released on \href{https://www.latexstudio.net/index/details/index/mid/3553.html}{LaTeX Studio} (Xiaoshan, Hangzhou) and \href{http://xhslink.com/YBuuuw}{Xiaohongshu}, where won the favor of many people. This version has added the global option to make the page number be remaked or continuous between chapters, and command \cmd{watermark} has been added in this version.
+
+\textsf{\bfseries Version 1.0a} was finished developing on 15 November, 2023. This version has redesigned the \cmd{chapterimage} part, \cmd{choice} and replaced the \cmd{exercise} environment with the \cmd{problem} environment.
+
+\datechange{06/07/2023}{Version 0.1b}
+\begin{itemize}
+    \item Support page number remaking between chapters.
+    \item Added \cmd{watermark} command.
+\end{itemize}
+
+\datechange{15/11/2023}{Version 1.0a}
+\begin{itemize}
+    \item Redesigned the \cmd{chapterimage} part, include the layout and the code.
+    \item Redesigned the \cmd{choice} and \cmd{solution} environment, keywords become optional and supports star (*) key. 
+    \item Replaced the \cmd{exercise} environment with the \cmd{problem} environment, supports adding only keywords or points.
+    \item Added the \cmd{note} environment and some customer commands.
+\end{itemize}
+
+\subsection*{Future Plans}
+\begin{itemize}
+    \item Plan to integrate the color management of \href{https://www.ctan.org/pkg/elegantbook}{\pkg*{ElegantBook}}.
+    \item Plan to integrate the chapter design of \href{https://www.ctan.org/pkg/elegantbook}{\pkg*{ElegantBook}} into the star (*) key value of this template \cmd{chapter}.
+    \item Plan to add the \mode{dark} mode to this template to make the text color light while make the page color dark to protect eyesight.
+    \item Plan to change the \verb|*.cls| file to a block code design to make it easier for subsequent developers to maintain or modify.
+    \item ......
+\end{itemize}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/litesolution/litesolution-doc.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.pdf	2023-11-14 21:02:04 UTC (rev 68838)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.pdf	2023-11-14 21:03:28 UTC (rev 68839)

Property changes on: trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.tex	2023-11-14 21:03:28 UTC (rev 68839)
@@ -0,0 +1,29 @@
+\documentclass{litesolution}
+\usepackage[level]{datetime}
+
+% document setup
+\makeatletter
+\def\@pkg#1{\texorpdfstring{\href{https://www.ctan.org/pkg/#1}{\textcolor{pkgcolor}{\textsf{#1}}}}{“#1”}}
+\def\s at pkg#1{\texorpdfstring{\textcolor{pkgcolor}{\textsf{#1}}}{“#1”}}
+\DeclareRobustCommand\pkg{\@ifstar\s at pkg\@pkg}
+\def\mode#1{\texorpdfstring{\textcolor{moducolor}{\textsf{#1}}}{“#1”}}
+\def\cmd#1{\texorpdfstring{\textcolor{cmdcolor}{\textsf{#1}}}{“#1”}}
+\def\datechange#1#2{%
+  \noindent{\makebox[\textwidth][r]{\color{H7}\rule{1.15\textwidth}{.4pt}}}
+  \noindent\makebox[0pt][r]{\makebox[-3em][r]{\small\textbf{\textcolor{H7}{#1}}}\;\;}{\sffamily Update: \ignorespaces#2}}
+\makeatother
+\setmainfont{Libertinus Serif}
+\setsansfont{Libertinus Sans}
+\setmonofont{NotoSansMono}[
+  Scale=MatchLowercase,
+  Extension=.ttf,
+  UprightFont=*-Light,
+  BoldFont=*-Medium
+]
+
+\begin{document}
+
+\chapterimage{cover1.png}
+\input{litesolution-doc.tex}
+\input{litesolution-demo.tex}
+\end{document}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/litesolution/litesolution.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/litesolution/litesolution.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/litesolution/litesolution.cls	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/litesolution/litesolution.cls	2023-11-14 21:03:28 UTC (rev 68839)
@@ -0,0 +1,432 @@
+%% ************************************************************************************************************
+%% ******************************************************                                                     *
+%% * This work may be distributed and/or modified under *           *           *****       *   *             *
+%% * the conditions of the LaTeX Project Public License *           *      ** *   *    ***   * *              *
+%% *     http://www.latex-project.org/lppl.txt          *           *     *  **   *   *****   *               *
+%% * either version 1.3c of this license or any later   *           *     *  **   *   *****   *               *
+%% * version.                                           *           *     *  **   *   *      * *              *
+%% ******************************************************           *****  ** *   *    ***  *   *             *
+%% start of file `litesolution.cls'.                                                                          *
+%% Copyright 2023 LiteLaTeX (xiamyphys at gmail.com)                                                             *
+%% available at https://github.com/xiamyphys/LiteSolution                                                     *
+%% Thanks https://github.com/ElegantLaTeX/ElegantBook,  https://github.com/Azure1210/VividBooK                *
+%% !Mode:: "TeX:UTF-8"                                                                                        *
+%% ************************************************************************************************************
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{litesolution}[15/11/2023 v1.0a LiteSolution document class]
+\RequirePackage{kvoptions}
+\RequirePackage{etoolbox}
+\SetupKeyvalOptions{family=LITE, prefix=LITE@, setkeys=\kvsetkeys}
+\newcommand{\ekv}[1]{\kvsetkeys{LITE}{#1}}
+% ---- 全局选项
+\DeclareStringOption[ans]{answer}
+\DeclareVoidOption{ans}{\ekv{answer=ans}}
+\DeclareVoidOption{noans}{\ekv{answer=noans}}
+
+\DeclareStringOption[separate]{counter}
+\DeclareVoidOption{separate}{\ekv{counter=separate}}
+\DeclareVoidOption{continuous}{\ekv{counter=continuous}}
+
+\DeclareStringOption{math}
+\DeclareVoidOption{mtpro2}{\ekv{math=mtpro2}}
+
+% ----- Default Options -----
+\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{book}}
+\ProcessKeyvalOptions*\relax
+% \ProcessOptions*\relax
+\LoadClass[a4paper,oneside]{book}
+
+\RequirePackage{extarrows}% 长等号
+\RequirePackage{fixdif,derivative}% 微分算子修复
+\RequirePackage{physics2}
+\usephysicsmodule{ab,ab.legacy,braket,nabla.legacy}
+\RequirePackage{qrcode}
+\qrset{link, height=4em}
+
+\RequirePackage[e]{esvect}% 矢量箭头
+\RequirePackage{setspace}
+\RequirePackage{bbm}% 花体字
+\RequirePackage{dutchcal}% 花体字2
+\RequirePackage{mathrsfs}% 花体字3
+\RequirePackage{csquotes}% 引号
+\RequirePackage{tasks}% 选择题
+\settasks{label=\color{normalcolor}\Alph*.}
+
+\definecolor{pkgcolor}{Hsb}{103,.8,.5}
+\definecolor{moducolor}{Hsb}{290,.8,.5}
+\definecolor{cmdcolor}{Hsb}{188,.8,.5}
+\definecolor{filecolor}{Hsb}{207,.6,.7}
+\definecolor{H1}{Hsb}{349,.8,.8}% 海棠紅 (Hangzhou MTR L 1 )
+\definecolor{H2}{Hsb}{23, .8,.8}% 丹桂橙 (Hangzhou Metro 2 )
+\definecolor{H3}{Hsb}{48, .8,.8}% 柠檬黄 (Hangzhou Metro 3 )
+\definecolor{H4}{Hsb}{103,.8,.8}% 香樟绿 (Hangzhou Metro 4 )
+\definecolor{H5}{Hsb}{188,.8,.8}% 青藍色 (Hangzhou MTR L 5 )
+\definecolor{H6}{Hsb}{207,.8,.8}% 海洋蓝 (Hangzhou Metro 6 )
+\definecolor{H7}{Hsb}{290,.8,.8}% 浪漫紫 (Hangzhou Metro 7 )
+\RequirePackage{hyperref}
+\hypersetup{colorlinks,urlcolor=H1,linkcolor=H2,filecolor=filecolor,pdfstartview=FitH,pdfview=FitH,pdfcreator=XeTeX output}
+
+\RequirePackage[letterpaper,margin=0.75in,headheight=0.25in,headsep=0.2in,footskip=0.2in]{geometry}
+
+\RequirePackage{indentfirst,comment}
+% fontsetting
+\ifdefstring{\LITE at math}{mtpro2}{
+  \let\Bbbk\relax
+  \RequirePackage[lite]{mtpro2}
+}{\relax}
+
+\RequirePackage[UTF8,scheme=plain]{ctex}
+\def\chapterfont#1{
+  \setCJKfamilyfont{chapterfont}{#1}[Extension =.ttf]
+  \gdef\@chapterfont{#1}
+}
+
+\setcounter{tocdepth}{1}
+
+\PassOptionsToPackage{no-math}{fontspec}
+\PassOptionsToPackage{quiet}{fontspec}
+\RequirePackage[no-math]{fontspec}
+
+\AfterEndPreamble{
+  \setlength\parindent{2\ccwd}}
+
+%% 章节以及页脚图形
+\RequirePackage{xcolor}
+\RequirePackage{silence}
+
+  \definecolor{backgroundcolor}{HTML}{F8F7E9}
+  \definecolor{headrulecolor}{HTML}{640125}
+  \pagecolor{backgroundcolor!20}
+  \definecolor{1号色}{HTML}{4D5AAF} %
+  \definecolor{2号色}{HTML}{006E54} %
+
+  \ifdefstring{\LITE at answer}{ans}{
+  \definecolor{solutioncolor}{HTML}{0F2350} %
+  \newcommand{\solutionname}{\faIcon{check-square} 分析与解}
+}{\relax}
+\ifdefstring{\LITE at answer}{noans}{
+  \definecolor{solutioncolor}{HTML}{FEFEFB} %
+  \definecolor{solutionbg}{RGB}{130,73,71} %
+  \newcommand{\solutionname}{\faIcon{ban} 答案隐藏}
+}{\relax}
+
+  \definecolor{normalcolor}{HTML}{000000} %
+
+% ----- box -----
+%% 章节设置
+\RequirePackage[center,pagestyles]{titlesec}
+\RequirePackage[title,titletoc,header]{appendix}
+
+\newcommand{\notename}{\faIcon{snowflake} 注意}
+\renewcommand*{\proofname}{证明}
+\newcommand{\problemname}{\faIcon{pen-square} 题目} % 题目=习题
+
+\newcommand{\remarkname}{注}
+\renewcommand*{\date}[8]{
+  \vspace{-0.5em}\color{normalcolor}
+  \begin{minipage}{0.64\textwidth}
+    \begin{multicols}{2}
+      \textbf{考试时间}:\kaishu #1
+  
+      \textbf{\songti 课程编号}:\kaishu #3
+
+      \textbf{\songti 任课教师}:\kaishu #2
+      
+      \textbf{\songti 解析制作}:\kaishu #4
+    \end{multicols}
+  \end{minipage}
+  \hfill
+  \begin{minipage}{0.15\textwidth}
+    \centering
+      #5
+
+      \vskip1ex\scriptsize\textbf{#6}
+  \end{minipage}
+  \hfill
+  \begin{minipage}{0.15\textwidth}
+    \centering
+      #7
+
+      \vskip1ex\scriptsize\textbf{#8}
+  \end{minipage}
+  \vspace{-0.5em}
+}
+
+\RequirePackage[most]{tcolorbox}
+\tcbuselibrary{breakable}
+\tcbset{
+  common/.style={
+    blanker,breakable,
+    left=3mm,
+    toprule=.3em,
+    bottomrule=.3em,
+    bottomtitle=.75\baselineskip,
+    fonttitle=\bfseries
+  }
+}
+\newcounter{prob}[chapter]
+\setcounter{prob}{1}
+\renewcommand{\theprob}{\arabic{prob}}
+
+\NewDocumentEnvironment{choice}{m o}{
+  \refstepcounter{prob}
+  \IfNoValueTF{#2}
+  {
+    \begin{tcolorbox}[
+      common,
+      borderline west={1.5pt}{0mm}{2号色},
+      title=\bfseries\color{2号色}{\problemname}\theprob\hfill【\quad\color{solutioncolor} #1 \color{2号色}\quad 】,
+      coltitle=2号色,
+      colupper=normalcolor,
+      collower=normalcolor
+    ]
+  }{
+    \begin{tcolorbox}[
+      common,
+      borderline west={1.5pt}{0mm}{2号色},
+      title=\bfseries\color{2号色}{\problemname}\theprob\hfill\color{2号色}\faIcon{tag}~#2\qquad【\quad\color{solutioncolor} #1 \color{2号色}\quad 】,
+      coltitle=2号色,
+      colupper=normalcolor,
+      collower=normalcolor
+    ]
+  }
+  \rmfamily\color{normalcolor}}{\end{tcolorbox}}  
+
+\NewDocumentEnvironment{problem}{s o o}{
+  \refstepcounter{prob}
+  \IfBooleanTF{#1}{
+    \def\tagname{\relax}
+  }{
+    \def\tagname{\hfill\faIcon{tag}}
+  }
+  \IfNoValueTF{#3}{
+    \IfNoValueTF{#2}{
+      \begin{tcolorbox}[
+        common,
+        borderline west={1.5pt}{0mm}{2号色},
+        title=\color{2号色}{\problemname} \theprob,
+        coltitle=2号色,
+        colupper=normalcolor,
+        collower=normalcolor
+      ]
+    }{
+      \begin{tcolorbox}[
+        common,
+        borderline west={1.5pt}{0mm}{2号色},
+        title=\color{2号色}{\problemname} \theprob\tagname~#2,
+        coltitle=2号色,
+        colupper=normalcolor,
+        collower=normalcolor
+      ]
+    }
+  }{
+    \IfNoValueTF{#2}{
+      \begin{tcolorbox}[
+        common,
+        borderline west={1.5pt}{0mm}{2号色},
+        title=\color{2号色}{\problemname} \theprob(本题#3分),
+        coltitle=2号色,
+        colupper=normalcolor,
+        collower=normalcolor
+      ]
+    }{
+      \begin{tcolorbox}[
+        common,
+        borderline west={1.5pt}{0mm}{2号色},
+        title=\color{2号色}{\problemname} \theprob(本题#3分)\tagname~#2,
+        coltitle=2号色,
+        colupper=normalcolor,
+        collower=normalcolor
+      ]
+    }
+  }
+  \rmfamily\color{normalcolor}}{\end{tcolorbox}}
+
+\newcommand{\noting}[1]{
+  \begin{tcolorbox}[
+    common,
+    borderline west={1.5pt}{0mm}{orange},
+    coltitle=orange,
+    ]%
+    {\textbf{\color{orange}\notename}}
+  \kaishu\color{normalcolor}#1\end{tcolorbox}}
+
+\newenvironment{note}{
+  \begin{tcolorbox}[
+    common,
+    borderline west={1.5pt}{0mm}{orange},
+    title=\textbf{\color{orange}\notename},
+    coltitle=2号色,
+  ]
+  \kaishu\color{normalcolor}}{\end{tcolorbox}}
+
+\definecolor{second}{RGB}{226,106,106} %
+\newenvironment{proof}{
+  \par\noindent\bfseries\songti{\color{second}\proofname\;}
+  \color{black!90}\fangsong}{
+  \hfill\ensuremath{\square}
+  \par}
+
+\NewDocumentEnvironment{solution}{s}{
+  \IfBooleanTF{#1}{
+    \begin{tcolorbox}[
+      common,
+      borderline west={1.5pt}{0mm}{1号色},
+      coltitle=1号色
+      ]
+    \textcolor{1号色}{\textbf{\solutionname}}
+  }
+  {
+    \begin{tcolorbox}[
+    common,
+    borderline west={1.5pt}{0mm}{1号色},
+    title=\textcolor{1号色}{\textbf{\solutionname}},
+    coltitle=1号色,
+    colupper=solutioncolor,
+    collower=solutioncolor
+    ]}%
+  \kaishu\color{solutioncolor}}{\end{tcolorbox}}
+
+\RequirePackage{enumerate}
+% list/itemize/enumerate setting
+\RequirePackage[shortlabels,inline]{enumitem}
+\setlist{nolistsep,leftmargin=1.5em}
+
+\RequirePackage{graphicx}
+\graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}
+\RequirePackage{bm}% 数学加粗
+\RequirePackage{pdfpages}
+\RequirePackage{esint}% 面积分
+\RequirePackage{wrapstuff}% 图文绕排
+\RequirePackage{booktabs}
+\RequirePackage{paracol}
+\columnratio{0.67}
+\RequirePackage{multicol,multirow}
+
+\RequirePackage{fancyvrb}
+%%中文结构名字
+
+%绘图
+\RequirePackage{tikz} %% load tikz without tikz
+\usetikzlibrary{intersections,decorations.markings,spy,arrows,shapes,fadings,mindmap,shapes.arrows,shapes.symbols,tikzmark,shapes.geometric,graphs,decorations.pathmorphing,through,arrows.meta,shapes.misc,decorations.shapes,angles,backgrounds,calc,math,decorations,decorations.pathreplacing,fit,quotes,shadows,positioning,patterns,shadings}
+\tikzset{>=stealth,line cap=round,line join=round}
+\RequirePackage{pgfplots}
+\pgfplotsset{compat=1.9}
+%电路图绘制
+\RequirePackage{circuitikz}
+\ctikzset{logic ports=ieee,logic ports/scale=0.6,fill=backgroundcolor}
+
+\newcommand*{\eitemi}{\tikz \draw [baseline, ball color=1号色,draw=none] circle (2pt);}
+\newcommand*{\eitemii}{\tikz \draw [baseline, fill=1号色,draw=none,circular drop shadow] circle (2pt);}
+\newcommand*{\eitemiii}{\tikz \draw [baseline, fill=1号色,draw=none] circle (2pt);}
+\setlist[enumerate,1]{label=\color{1号色}\arabic*.}
+\setlist[enumerate,2]{label=\color{1号色}(\alph*).}
+\setlist[enumerate,3]{label=\color{1号色}\Roman*.}
+\setlist[enumerate,4]{label=\color{1号色}\Alph*.}
+\setlist[itemize,1]{label={\eitemi}}
+\setlist[itemize,2]{label={\eitemii}}
+\setlist[itemize,3]{label={\eitemiii}}
+
+\def\thesection{\arabic{section}}
+\titleformat{\section}[hang]{\bfseries}{
+    \Large\bfseries\heiti{\color{1号色}\thesection.}\enspace}{1pt}{%
+    \color{1号色}\Large\bfseries\filright}
+\titleformat{\subsection}[hang]{\bfseries}{
+  \large\bfseries\color{1号色}\thesubsection\enspace}{1pt}{%
+  \color{1号色}\large\bfseries\filright}
+\titleformat{\subsubsection}[hang]{\bfseries}{
+  \large\bfseries\color{1号色}\thesubsubsection\enspace}{1pt}{%
+  \color{1号色}\large\bfseries\filright}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%chapter图片定制开始%%%%%%%%%%%%%%%
+\def\chapterimage{\gdef\@chapterimage}
+\def\@makechapterhead#1{%
+	\begin{tikzpicture}[remember picture,overlay]
+      \fill [fill=backgroundcolor,opacity=0.2] (current page.north west) rectangle +(\paperwidth,-\paperwidth/13*6);
+      \node[scope fading=south,anchor=north,inner sep=0pt] at (current page.north) {\includegraphics[width=\paperwidth]{\@chapterimage}};
+      \draw [line width=2pt,2号色!40] ($(current page.north west)-(0,3.5/13*\paperwidth)$) -- ($(current page.north east)-(0,3.5/13*\paperwidth)$);
+      \draw [line width=2pt,2号色!40] ($(current page.north west)-(0,4.5/13*\paperwidth)$) -- ($(current page.north east)-(0,4.5/13*\paperwidth)$);
+      \fill [backgroundcolor!40,opacity=0.5] ($(current page.north west)-(0,3.5/13*\paperwidth)$) rectangle +(\paperwidth,-\paperwidth/13);
+      \node at ($(current page.north west)-(-0.5*\paperwidth,4/13*\paperwidth)$) {\ifcsname @chapterfont\endcsname\CJKfamily{chapterfont}\fi\huge\bfseries\color{normalcolor}#1~\color{2号色}\faIcon{feather-alt}};
+	\end{tikzpicture}\par
+  \vspace{3.5\paperwidth/13}
+	\thispagestyle{plain}
+  \fancypagestyle{plain}{
+  \fancyhead{} % 页眉清空
+  \def\headrulewidth{0pt} % 去页眉线
+  }
+  \ifdefstring{\LITE at counter}{separate}{
+    \setcounter{page}{1}
+  }{\relax}
+}
+\def\@makeschapterhead#1{
+  \centering
+  \ifcsname @chapterfont\endcsname\CJKfamily{chapterfont}\fi\huge\bfseries\color{normalcolor}#1\normalsize
+  \thispagestyle{plain}
+  \fancypagestyle{plain}{
+  \fancyhead{} % 页眉清空
+  \def\headrulewidth{0pt} % 去页眉线
+  }
+  \ifdefstring{\LITE at counter}{separate}{
+    \setcounter{page}{1}
+  }{\relax}
+}
+%%%%%%%%%%%chapter图片定制结束%%%%%%%%%%%%%%%
+
+\newcommand{\watermark}[1]{\RequirePackage{wallpaper}\CenterWallPaper{0.5}{#1}}
+%%%%%%%%%%%%%%%%%%%%%%%
+\RequirePackage{ulem}
+\RequirePackage{fancyhdr}
+\RequirePackage{fontawesome5}
+
+\fancyhf{}
+
+\fancyfoot[C]{\color{1号色}\sout{\hbox to 0.4\textwidth{}}\quad\faIcon{chevron-left}\;第~\color{normalcolor}{\sffamily\thepage}\color{1号色}~页\;\faIcon{chevron-right}\quad\sout{\hbox to 0.4\textwidth{}}}
+\fancyfoot[L]{\color{1号色}{$\boldsymbol{\cdot}$}}
+\fancyfoot[R]{\color{1号色}{$\boldsymbol{\cdot}$}}
+
+\renewcommand{\headrule}{\color{headrulecolor}\hrule width\textwidth}
+\pagestyle{fancy}
+
+\renewcommand{\sectionmark}[1]{\markright{#1}{}}
+\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
+%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%[第三方定制]%%%%%%%%%%%%%%%%%%%%%
+\def\e{\mathrm{e}}
+\def\i{\mathrm{i}}
+\newcommand\mailto[1]{\href{mailto:#1}{\nolinkurl{#1}}}
+\newcommand\sokka[1]{故本题选择 \textbf{#1} 项.}
+\newcommand\ans[1]{\underline{\color{solutioncolor}\ #1\ }}
+\newcommand\length[4]{
+\node (a) at ($0.5*($#2+#1$)$) {#3};
+\draw [->|] ($0.5*($#2+#1+#4$)$) -- #2; 
+\draw [->|] ($0.5*($#2+#1-#4$)$) -- #1;}
+\newcommand\cdotfill{\leavevmode\cleaders\hb at xt@.44em{\hss$\cdot$\hss}\hfill\kern\z@}
+\newcommand{\point}[1]{\cdotfill\texttt{(#1pt)}}
+\setstretch{1.5}
+\AtBeginDocument{\everymath{\displaystyle}}
+
+\makeatletter 
+\protected\def\titlelogo#1#2{
+  \leavevmode at ifvmode
+  \lower\dimexpr\f at size\p@*1/10\hbox{\href{#1}{\includegraphics[height={\f at size\p@}]{#2}}}
+  }
+\makeatother
+
+\usepackage{listings,dirtree}
+\lstdefinestyle{TeX}{
+    language      =  [LaTeX]TeX,
+    texcsstyle    =  *\color{H7},
+    numbers       =  none,
+    basicstyle    =  {\small\color{H6}\tt},
+    mathescape    =  false,
+    breaklines    =  true,
+    columns       =  fixed,
+    keywordstyle  =  \color{H3},
+    commentstyle  =  \color{darkgray},
+    tabsize       =  2,
+    keywords      =  {chapter,choice,problem,solution,enumerate}
+}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/tex/latex/litesolution/litesolution.cls
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2023-11-14 21:02:04 UTC (rev 68838)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2023-11-14 21:03:28 UTC (rev 68839)
@@ -503,7 +503,7 @@
     lineno ling-macros linguex linguisticspro linop
     lion-msc lipsum lisp-on-tex
     listbib listing listings listings-ext listingsutf8 listlbls listliketab
-    listofitems listofsymbols litetable
+    listofitems listofsymbols litesolution litetable
     lithuanian liturg lkproof llncs llncsconf lm lm-math lmake lni lobster2
     locality localloc logbox logical-markup-utils logicproof logicpuzzle logix
     logoetalab logpap logreq lollipop

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2023-11-14 21:02:04 UTC (rev 68838)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2023-11-14 21:03:28 UTC (rev 68839)
@@ -1772,6 +1772,7 @@
  'light-latex-make'	=> '&tl_man_to_pdf',
  'lilyglyphs'		=> '&POSTlilyglyphs',
  'listbib'		=> '&POSTlistbib',
+ 'litesolution'		=> '&POST_onelevel',
  'litetable'		=> '&POST_onelevel',
  'lithuanian'		=> '&POSTlithuanian',
  'lni'			=> '&POST_rmsymlink',

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2023-11-14 21:02:04 UTC (rev 68838)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2023-11-14 21:03:28 UTC (rev 68839)
@@ -805,6 +805,7 @@
 depend listlbls
 depend listliketab
 depend listofsymbols
+depend litesolution
 depend litetable
 depend lkproof
 depend lmake

Added: trunk/Master/tlpkg/tlpsrc/litesolution.tlpsrc
===================================================================


More information about the tex-live-commits mailing list.