Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function 函数的 added 键值报错 #41

Closed
xkwxdyy opened this issue Apr 17, 2024 · 3 comments
Closed

function 函数的 added 键值报错 #41

xkwxdyy opened this issue Apr 17, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@xkwxdyy
Copy link
Contributor

xkwxdyy commented Apr 17, 2024

\begin{function}[added={2024-04-13},type=environment]{point}
  \begin{syntax}
    \verb|\begin{point}| \oarg{point key-val}
    ~~... 
    \verb|\end{point}|
  \end{syntax}
  知识点。
\end{function}

xelatex 编译后报错

Misplaced \omit.
\multispan ->\omit
@xkwxdyy xkwxdyy changed the title cusdoc 中的 function 函数的 added 键值报错 function 函数的 added 键值报错 Apr 17, 2024
@xkwxdyy
Copy link
Contributor Author

xkwxdyy commented Apr 17, 2024

updated=2024-04-13 也是同样的报错

@Sophanatprime
Copy link
Owner

Sophanatprime commented Apr 17, 2024

无法复现,给出完整例子。

只在某些情况下出现。

@Sophanatprime Sophanatprime added the bug Something isn't working label Apr 17, 2024
@xkwxdyy
Copy link
Contributor Author

xkwxdyy commented Apr 17, 2024

无法复现,给出完整例子。

只在某些情况下出现。

只需要在现在有的那个文件里加一段就可以复现:

\DocumentMetadata{}
\documentclass{cusdoc}

\hypersetup{pdfauthor={夏大鱼羊},
  pdftitle= Now-Learn-English 手册,
  pdfcreator={\XeLaTeX} with hyperref and Now-Learn-English}

\usepackage{transparent}
\newsavebox\WaterMarkBox
\sbox{\WaterMarkBox}{\rotatebox{45}{\transparent{0.2}\includegraphics[width = 15cm, ]{../assets/logo.png}}}
\background+[./watermark]{\copy\WaterMarkBox}

\newindextype[auto=true,filename=\jobname.idx,heading*={\section}]{\empty}
\setupindex[\empty,docchange]{auto=false}

\makeatletter
\protected\def\normalsize{%
  \@setfontsize \normalsize {10.53937}{12.64725}%
  \abovedisplayskip 1\p@ \@plus 4\p@ \@minus 2\p@ 
  \abovedisplayshortskip \z@ \@plus 2\p@ 
  \belowdisplayskip \abovedisplayskip 
  \belowdisplayshortskip \abovedisplayshortskip
  \let \@listi \@listI
}
\makeatother

\def\nofuncskip{\par\vskip-\bigskipamount\vskip\parskip\par}
\def\zhslash{/}
\newcommand\UNEXPANDEDRESULT{最终结果使用 \tn{unexpanded} (\cs{exp_not:n})包裹起来。}

\raggedbottom \hfuzz=2.5pt \vfuzz=10pt 


\title{Now-Learn-English \LaTeX 模板使用手册}
\author{夏大鱼羊}
\date{\zhtoday\quad v0.2}

\enablecombinedlist 

\begin{document}

\usepagestyle{totalempty}
\setlength{\lineskiplimit}{4pt}
\setlength{\lineskip}{4pt}

\def\thepage{t.\arabic{page}}
\setuplayout{preset=balance}
\maketitle

\frontmatter
\cusdoctoc

\mainmatter
\usepagestyle{fancy}
\setuptitle[chapter]{numbering=true,pagestyle=fancy}
\removebackground[./watermark]


\begin{function}[type=environment,added=2024-04-17]{point}
  \begin{syntax}
    \verb|\begin{point}| \oarg{point key-val}
    ~~... 
    \verb|\end{point}|
  \end{syntax}
  知识点。
\end{function}


\end{document}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants