Git Product home page Git Product logo

cus's People

Contributors

kianmeng avatar sophanatprime avatar xkwxdyy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cus's Issues

关于 `\tableofcontents` 的目录设置需求

我读了一下手册,关于目录定制的地方感觉门槛不低……我没找到类似于 tocdepth 的接口,默认只显示三个层级。

\documentclass{book}
\usepackage{ctex}
\usepackage{cus}
\enablecombinedlist
\setsecnumdepth{4}

\begin{document}

\tableofcontents

\chapter{1}
\section{2}
\subsection{3}
\subsubsection{4}

\end{document}

大部分用户可能没有那么强的定制化需求,可能改改层级,然后调一下目录条目的字体,增加引导线啥的。

问题

  1. cus 有提供 \tableofcontents 的目录的层级数的调整接口吗?
  2. 比如常见的改目录条目字体字号,增加引导线什么的,在 cus 宏包下是要仍然像传统那样,用 tocloft 宏包来设置就行?

`cus` 宏包无法在文档载入前加载

MWE:

\RequirePackage{cus}
\documentclass{book}

\begin{document}

test

\end{document}

使用 latex 方式编译后报错

! Missing \endcsname inserted.
<to be read again> 
                   \@classoptionslist 
l.1003 \ProcessOptionsKV[c]{Gm}
                               %
? 

场景和需求

想要自己建立一个库来进行一些设置的打包,上面 MWE 是在 .tex 文件里的,但一般会在 .cls 里处理(即在 \Loadclass\Requirepackage{cus},但应该问题是相同的?
经常会有一个设置涉及到文类的选项传递,比如 book 类的 openany, 如果 cus 宏包放在文档类调用的后面,那么在库里进行一些文档类选项传递也没有用了。

问题

  1. 这个不能在文档类调用前加载 cus 宏包是不可避免的吗?
  2. 如果问题 1 是不可避免的,那如果我想在库里传递选项给文类的话有办法吗?

`cus` 宏包与 `biblatex` 宏包冲突

版本:mactex 2024
MWE:

\documentclass{book}
\usepackage{cus}
\usepackage{biblatex}

\begin{document}

test

\end{document}

latex 方式编译之后报错:

! Package biblatex Error: Patching \addtocontents failed.

See the biblatex package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.5 \begin{document}
                    
? 

相关资料

  • tex.se 上找到一个 回答,但是这个是一个特殊的文类,好像是和 titlesec 包相关的问题,但我不太懂。我猜是和 cus 里和目录或者章节标题相关的模块或者设置冲突了。

需求:希望出一个 `cusdoc.cls`

目前 cus-cn.texcus 的手册,包含了所有设置和内容。虽然 cus 包含了 doc 库,但是要想写一个用户手册出来还有有很多工作要做,但您这个 cus-cn.tex 已经做了很多了,所以就想能不能官方把这些设置优化整合成一个 cls,也作为 cus 项目的一部分?毕竟 cus 好像也要做一些文类。

顺便提一个问题:

\begin{xample}
\cussetup[frame]{outer-sep=0pt, sep=20pt}
或 
\cussetup{ frame/outer-sep=0pt, frame/sep=20pt }
\stopxamplecode
\xamplecode\medskip
\end{xample}

\stopxamplecode\xamplecode 不能整合到环境里吗,每次都要手写不是挺麻烦的,这样做是有什么考虑吗?

`\CUSLibraryDelayedUntil` 的“失效”问题

cus 版本:main 分支的非最新版本:dd143f406d628a41863a13d71f9264d8767133fc

MWE

\documentclass{ctexbook}
\makeatletter
\@ifundefined{input@path}{\let\input@path\@empty}{}
\g@addto@macro\input@path{{./module}{./library}{./lt3ekeys}{./cus-doc}{./cus-doc-aux}}
\makeatother
\usepackage[
  library={
    math.theorem
  }
]{cus}
\usepackage{amsmath}

\begin{document}
\begin{proof}
  test
\end{proof}
\end{document}

其中 math.theorem 库的内容为

\CUSLibraryDelayedUntil* { amsmath }
% \CUSDependency{ package = { amsthm } }
\CUSProvideExplLibrary{math.theorem}{2024-04-07}{v0.0.1}{define math theorem environment}


% \RequirePackage{amsmath}
\RequirePackage{amsthm}


% 重定义 proof 环境的样式
\RenewDocumentEnvironment { proof } { O{\proofname} +b }
  {
    \par
    \pushQED { \qed }
    \normalfont \topsep6 \p@ \@plus6 \p@ \relax
    \trivlist
    \item \relax
    \group_begin:
      \hspace*{2em}
      \heiti #1
    \group_end:
    \hspace{1em} \ignorespaces
    #2
  }
  {
    \popQED \endtrivlist \@endpefalse
  }

使用 xelatex 编译后报错

! LaTeX Error: Environment proof undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.14 \begin{proof}
                  
? 

需求和场景

math.theorem 库用来写一些数学环境的定义,其中用到了 amsthmthmtools 包,一开始本来把这两个包写进 dependency 的。

但是发现 proof 环境的 \qedhere 异常,搜索发现需要把 amsthm 放在 amsmath 包后面载入,然后我加了 \CUSLibraryDelayedUntil* { amsmath }

但是我想到 #25 里好像说 dependency 是在那一刻去加载,这样的话amsthmthmtools 包还是会在 amsmath 后面,所以我把 dependency 改成了显式的 requirepackage,然后在 tex 里加入 amsmath 发现报错,这个库并不是像我想的那样,在 amsmath 后才载入。甚至改成

\usepackage{amsmath}
\usepackage[
  library={
    math.theorem
  }
]{cus}

这个顺序,依旧说 proof undefine。

目前测试下来的可行办法是:tex 文件去掉 amsmath 的载入,math.theorem 库的开头改成

% \CUSLibraryDelayedUntil* { amsmath }
% \CUSDependency{ package = { amsthm } }
\CUSProvideExplLibrary{math.theorem}{2024-04-07}{v0.0.1}{define math theorem environment}


\RequirePackage{amsmath}
\RequirePackage{amsthm}

这样就没有报错了。不知道上面的问题在哪。

为什么要这么弄,是因为 amsmath 本不应该在这个库载入,因为没有用到里面的命令,需求只是要把这个库依赖的 amsthm 放在 amsmath 后面。

总结:

  1. 为什么会出现上面的问题?
  2. 我这个问题有什么建议的解决办法吗?

`\section` 中有 cs 时的 `\tableofcontents` 出现报错

场景

下面可能不是一个最 minimal 的 MWE,但可以复现问题

% !TeX program = xelatex
\documentclass{ctexbook}
\usepackage{cus}
\ExplSyntaxOn
\NewDocumentCommand { \whudefineconstant } { m }
  {
    \keys_set:nn { whu/constant } {#1}
  }

\cs_new_protected:Nn \__whu_define_constant_family:n
  {
    \keys_define:nn { whu/constant }
      {
        #1/中文正文 .code:n =
          { \__whu_set_constant:nnn {#1} { \l_keys_key_str } {##1} }
      , #1/中文目录 .code:n =
          { \__whu_set_constant:nnn {#1} { \l_keys_key_str } {##1} }
      , #1/英文正文 .code:n =
          { \__whu_set_constant:nnn {#1} { \l_keys_key_str } {##1} }
      , #1/英文目录 .code:n =
          { \__whu_set_constant:nnn {#1} { \l_keys_key_str } {##1} }
      , #1         .code:n = 
          {
            \keys_set:nn { whu/constant/#1 } { ##1 }
            \bool_lazy_and:nnT
              { \__whu_constant_if_exist_p:nn {#1} {中文正文} }
              { ! \__whu_constant_if_exist_p:nn {#1} {中文目录} }
              {
                \__whu_set_constant:nnn {#1} {中文目录}
                  { \__whu_use_constant:nn {#1} {中文正文} }
              }
            \bool_lazy_and:nnT
              { \__whu_constant_if_exist_p:nn {#1} {英文正文} }
              { ! \__whu_constant_if_exist_p:nn {#1} {英文目录} }
              {
                \__whu_set_constant:nnn {#1} {英文目录}
                  { \__whu_use_constant:nn {#1} {英文正文} }
              }
          }
      }
  }

\__whu_define_constant_family:n {致谢}
\cs_new_protected:Nn \__whu_set_constant:nnn
  {
    \tl_const:cn { c__whu_constant_ #1/#2 _tl } {#3}
  }
\cs_new_protected:Nn \__whu_use_constant:nn
  {
    \tl_use:c { c__whu_constant_ #1/#2 _tl }
  }
\cs_new_protected:Nn \__whu_get_constant_csname:nn
  {
    c__whu_constant_ #1/#2 _tl
  }
\prg_new_conditional:Nnn \__whu_constant_if_exist:nn { p , T , F , TF }
  {
    \tl_if_exist:cTF { \__whu_get_constant_csname:nn {#1} {#2} }
      \prg_return_true:
      \prg_return_false:
  }
\ExplSyntaxOff
\enablecombinedlist

\begin{document}
\whudefineconstant{
  致谢={
    中文正文=致\quad 谢
  }
}

\tableofcontents

\ExplSyntaxOn
\section{
  \__whu_use_constant:nn{致谢}{中文正文}
}
\ExplSyntaxOff
\end{document}

使用 xelatex 编译后报错

! Missing $ inserted.
<inserted text> 
                $
l.73 
     
? 

尝试

  1. 去掉 \tableofcontents 后不报错
  2. 不去掉 \tableofcontents,但是\section的参数改为正常文本,不报错

`ctexart`中载入 `cus` 宏包的 `\tableofcontents` 报错问题

MWE

% !TeX program = xelatex
\documentclass{ctexart}
\usepackage{cus}
\enablecombinedlist

\begin{document}

\tableofcontents

\section{测试}


\end{document}

使用 xelatex 编译后报错:

! Undefined control sequence.
\title parameter@chapter@break ->\if@openright 
                                               \cleardoublepage \else \clear...
l.9 
    
? 

看上去 cusarticle 类的适配还没做完?

修改模块和库文件所在路径

目前的 \CUSLoadModule\CUSLoadLibrary 的检测貌似都是检测主 .tex 文件所在目录下是否存在文件。

但是随之模块和库文件越来越多,如果他们都还是放在主文件的话,视觉上文件就太多了,可能需要新建一个目录来存放模块和库(或者建立两个目录来分别存放)。

但是这样的话在检测的时候可能就会出问题,可能需要您写接口来处理这个问题了

`\makelapbox` 的报错问题

MWE

我看手册是可以 \makelapbox{material},但是

\documentclass{ctexart}
\makeatletter
\@ifundefined{input@path}{\let\input@path\@empty}{}
\g@addto@macro\input@path{{./module}{./library}{./lt3ekeys}{./cus-doc}{./cus-doc-aux}}
\makeatother
\usepackage{cus}

\begin{document}

左边的文字\makelapbox{测试}右边的文字

\end{document}

xelatex 后报错

Missing number, treated as zero.
<to be read again>

`\CUSDependency{module={...}}` 的失效

场景

我在一个模块 acknowledgement 里新建了一个环境 acknowledgement,然后另外一个库里使用 \CUSDependency{module={acknowledgement}} 加载,在 .tex 文件调用这个库后使用 acknowledgement 环境,报错环境未定义。

自查

我查看了 cus.sty 的关于这部分的源码:

cus/cus.sty

Line 332 in f0d8c9c

\cs_new_nopar:Npn \__cus_load_module:n #1 { }

发现模块的调用设置是空的,这是没来得及写还是我哪里没弄对?

`\setinputpath` 的调用问题

\documentclass{ctexbook}
\setinputpath{{./library},{./module}}
\usepackage{cus}

\begin{document}
test
\end{document}

xelatex 编译后报错

! Package cus Error: The module `ltx' you try to load does not exist.

Type <return> to continue.
 ...                                              
                                                  
l.400 \CUSLoadModule
                     { util }
? 

f8709e3 更新了 \setinputpath 命令,但是在 ltx 模块里,而 ltx 模块移到了 module 目录下。而如果想要调用 \setinputpath 来设置 {./module} 的话首先要加载 ltx 模块,但是不设置 {./module} 的话又无法加载 ltx 模块,陷入了无法调用的死循环了。

能否实现 setuptitle once 的效果?

我一开始看到 \setuponetitle 命令,以为是 setup once 的含义,类似于 AddToNextHook 的效果,只作用于下面第一个出现的 title level。
但测试了才发现是 <title level> 只有一个的意思。

不知道能否实现 \setuptitleonce 的效果?就是仅仅作用于后面出现的第一个 title level,然后第二个开始就仍然是之前的设置。

`\setupnexttitle` 没有产生“作用一次”的效果,仍然影响了后面的所有命令

MWE

% !TeX program = xelatex
\documentclass{ctexbook}
\usepackage{cus}


\begin{document}
\section{测试}
test
\setupnexttitle { format+ = \large }
\section{测试}
test
\section{测试}
\section{测试}
test

\end{document}

编译后发现仍然影响了后面所有的标题。
image

问题

除了上面这个问题外,还有一个看了手册关于 \setupnexttitle 的描述

+ 的,把 {⟨title keys⟩} 附加到之前所保存的选项之后

% !TeX program = xelatex
\documentclass{ctexbook}
\usepackage{cus}


\begin{document}
\section{测试}
\setuponetitle{section}{format=\zihao{2}}
\section{测试}
\section{测试}
test
\setupnexttitle + { format+ = \large }
\section{测试}
test
\section{测试}
\section{测试}
test

\end{document}

测试了一下,看不出和没有 + 的区别。能否给一个例子说明加了 + 后效果不同,以及那个

? 的,仅会设置已知的选项,当选项未定义时会忽略它们,当为某些标题定义了额外的键时,它很有用。

能够给一个 当为某些标题定义了额外的键时,它很有用 的场景例子呢?

`\background` 结合 `\put` 无效

\documentclass{ctexart}
\makeatletter
\@ifundefined{input@path}{\let\input@path\@empty}{}
\g@addto@macro\input@path{{./module}{./library}{./lt3ekeys}{./cus-doc}{./cus-doc-aux}}
\makeatother
\usepackage{cus}
\usepackage{graphicx}

\begin{document}

\background+()[./logo]{
  \put(5cm, 5cm){\includegraphics[width = 5cm]{example-image.png}}
}

test

\newpage

test

\end{document}

发现没有显示图片。我看手册上是

还可以置为空,此时 ⟨content⟩ 中可以使用 \put 命令指定文字的位置,纸张左上角为原点;

请问我哪里使用有问题吗?

`\changes` 报错

\DocumentMetadata{}
\documentclass{cusdoc}

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

\usepackage{biblatex}

\begin{document}
\changes{v0.0.1}{2024-04-25}{基于重新整理手册代码}

\changes{v0.0.1}{2024-04-26}{增加本科模板参考}


\PrintChanges 

\end{document}

xelatex 编译后报错

! Missing = inserted for \ifnum.
<to be read again> 
                   -
l.16 \changes{v0.0.1}{2024-04-26}
                                 {增加本科模板参考}
? 

去掉 \usepackage{biblatex} 包 xelatex 编译后报错

! Undefined control sequence.
l.6 \abx@aux@refcontext
                       {nty/global//global/global/global}
? 

`\background` 如何实现 `rm` 的位置?

手册上:

水平位置包括:左(l)、右(r)、内侧(i)、外侧(o);垂直 位置包括:顶部(t)、底部(b);它们的组合也就是 layout 的四个角。此外 还有一个 cm,它表示 layout 的正中心,这也是默认值

我试了一下好像 lm rm 这种不行,为什么不把 cm 也放入可选中呢?

主要需求是想实现这样的 logo
image

就是放在页面的左侧或者右侧,只出现一半。

`pgf` 模块更名后编译报错

我将 cus.library.pgf.tex 改成 cus.library.pgf_cus.tex,并且把 cus.library.pgf.tex 中的

\CUSProvideLibrary{pgf}{\cus@d@te}{\cus@versi@n}{pgf and tikz support}

改为

\CUSProvideLibrary{pgf_cus}{\cus@d@te}{\cus@versi@n}{pgf and tikz support}

后使用 latex 编译方式编译

\documentclass{book}
\usepackage[library={pgf_cus}]{cus}


\begin{document}

test

\end{document}

出现下面的报错

! Undefined control sequence.
l.2 \usetikzlibrary
                   {spath3}
? 

其它模块文件做上面的改动不会有问题。这个 pgf 模块不改名时也不会出问题。

请问这是什么原因呢?

`cus` 是否有接口将 `numbering=false` 的 `\chapter` 添加到目录?

MWE

主要的场景就是添加参考文献:

\documentclass{book}
\usepackage{ctex}
\usepackage{cus}
\enablecombinedlist

\bibliographystyle{plain}


\begin{document}

\tableofcontents

test\cite{key}

\bibliography{test}

\end{document}

其中 test.bib 的内容:

@article{key,
  author          = {Author, A. and Buthor, B.},
  journal         = { Journal of Something },
  number          = { 1 },
  title           = { Title of the article },
  volume          = { 1 },
  year            = { 2024 }
}

使用 latexmk -latex 编译后可以看到参考文献这个章节标题并没有添加到目录:
image

如果是显式的

\chapter{xxx}

...

还可以用 \addcontentsline{toc}{chapter}{xxx} 来添加,但是这个 \bibliography 并不是显式的。

尝试

我只想到两种方法

  • 直接找到 \bibliography 的源码,然后\renewcommand 一下,然后在里面添加 \addcontentsline{toc}{chapter}{xxx}
  • 找到 \bibliography 的源码之后打补丁

但是这两个方式对一般用户要求有点高了,而且并不方便,我看了一下 cus-cn.pdf 没有找到(可能是我遗漏了)相应的接口,请问这个需求 cus 可以实现吗?

文档编译失败

我 clone 了 83ac8cd 版本的项目到本地,然后我使用 xelatex cus-cn 编译的时候出现了下面的报错:

! Package fmulticol Error: The key `_adj' is unknown and is being ignored.

Type <return> to continue.
 ...                                              
                                                  
l.4281 \begin
             {itemize}[leftmargin=5cm]
? 

请问一下是什么原因造成的呢


版本:mactex 2024

`\backgroundpicture` 的使用报错

MWE

\documentclass{ctexart}
\makeatletter
\@ifundefined{input@path}{\let\input@path\@empty}{}
\g@addto@macro\input@path{{./module}{./library}{./lt3ekeys}{./cus-doc}{./cus-doc-aux}}
\makeatother
\usepackage{cus}


\begin{document}

\backgroundpicture+*(cm)[./logo]{example-image.png}

test

\end{document}

xelatex 编译后报错:

Package keyval: ./logo undefined.

我看了一下手册
image

我的这个写法应该是符合手册的写法的。

`function` 函数的 `added` 键值报错

\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

需求:开发一个类似于 `\CUSLibraryDelayedUntil` 的命令

场景

希望能开发一个类似于 \CUSLibraryDelayedUntil 用于日常使用的延迟加载命令,比如 hyperref 宏包一般是比较晚加载的,比如可能在 \AtEndPreamble 时才加载。但是我在前期根据文档选项的不同会进行一些设置,比如如果要打印,就会把 hyperref 的 link 去掉,但这部分命令需要在 hyperref 宏包使用,而这些设置一般和 \AtEndPreamble{\RequirePackage{hyperref}} 不在同一处,甚至不在同一个文件中。

想法

我第一反应是 \CUSLibraryDelayedUntil,但是发现这个只能是把库移动到后面,有点“大”了,我的需求偏向于小的,精准的定位。
然后我看了一下 \CUSLibraryDelayedUntil 的源码:

cus/cus.sty

Lines 236 to 262 in dd143f4

\ekeysdeclarecmd \CUSLibraryDelayedUntil { s m }
{
\tl_set:Nx \l__cus_tmp_tl { \tl_range:Nnn \CurrentFile { 13 } { -5 } }
\bool_if:nT {#1}
{
\cus_if_class_loaded:F
{
\__cus_load_library_hook:nn \cus_hook_gput_dc:n { \l__cus_tmp_tl }
\use_i:nnnn \file_input_stop:
}
}
\tl_if_blank:nF {#2}
{
\prop_if_in:NoTF \g__cus_library_delayed_prop \l__cus_tmp_tl
{ }
{
\prop_gput:Nxx \g__cus_library_delayed_prop \l__cus_tmp_tl {#2}
\@ifpackageloaded {#2}
{ }
{
\__cus_load_library_hook:nn
{ \hook_gput_code:nnn { package/#2/after } {cus/load} } \l__cus_tmp_tl
\file_input_stop:
}
}
}
}

发现本质上也是用钩子 \hook_gput_code:nnn { package/#2/after },钩在 package 的后面,但是这个操作还是有点底层了,不仅用于开发,日常在 2e 层可能也会有这个需求。

所以希望能开发一个这样的命令。

`function` 加入 `added` 编译效果的线的长度问题

#41 修复之后

\begin{keyval}[path = information]{teacher}
  \begin{syntax}
    teacher = <name>&朱老师
  \end{syntax}
  老师的名字或名称。
\end{keyval}

\begin{keyval}[path = information,added= 2024-04-17]{teacher}
  \begin{syntax}
    teacher = <name>&朱老师
  \end{syntax}
  老师的名字或名称。
\end{keyval}

xelatex 编译
image

可以看到加了 added 的线长度不正常了

如何跨 module 或者 library 进行命令设置

场景与 MWE

现在有一个 math-master 库用来进行硕士毕业论文模版设置

\CUSProvideExplLibrary{math-master}{\whu@date}{\whu@version}{...}
...
\cs_new:Npn \__whu_acknowledgement_format_set:
  {
    % \setuponetitle { chapter } 
    %   {
    %     % mode = nonumber 
    %     mode = normal 
    %   }
    hahahaha 
  }
\CUSLoadModule { acknowledgement }

其中关于致谢的内容我做成了模块

\CUSDependency{module={struct}}
\CUSProvideExplModule{acknowledgement}{\whu@date}{\whu@version}{Environment for acknowledgement}


% \cs_new:Npn \__whu_acknowledgement_format_set: {}
\NewDocumentEnvironment { acknowledgement } {}
  {
    % \setuponetitle{chapter}{mode=normal, numbering=false}
    \__whu_acknowledgement_format_set:
    \chapter{致谢}
  }
  {}

我的想法是模块里放最 minimal 的配置,以及提供空白设置,然后在其它库中通过设置这个空白设置,从而可以达到不同库(进而是不同类型的模板,比如本科,硕士)有不同的设置,而不是直接复制致谢库里的内容到每个库里,这样可能会造成代码的臃肿和不简洁。我相信重复调用也是 cus 项目中模块和库的设计的出发点之一。

问题

我不知道该如何实现这个我所说的这个效果,可以给点思路吗

关于 `\CUSDependency` 和 `\CUSLibraryDelayedUntil` 的问题

其实这个问题一直都有,果真遇到了问题,场景是我问您的这个
xkwxdyy/whuthesis@190619f#commitcomment-140694869

关于\CUSDependency

为了方便说明,下面假设我在 master 库里设置了 \CUSDependency{library={cover}}

  1. cover 库 和 master 库是什么关系?就是这个依赖的原理是什么呢?手册里就写了依赖库。我一开始的理解是 cover 库会在 master 之前加载。但是上面问您的这个问题又好像不是这样的,因为如果是的话不管 cover 有没有 delay 加载,都能保证 master 在 cover 后面加载,这样始终不会出问题。不过这样看来,delay 的优先级更高一些
  2. 其实 dependency 的 package 我也不太明白,因为我曾经 dependency 了 ctex 发现报错了,我一开始是想着我里面的设置里有 \ziju 命令,所以要保证这个库一定能运行的话就在 dependency 里加一个 ctex,报错之后只能去掉了。
  3. 我不太清楚要不要写这个 dependency,比如我有一个 master 库,和 math.master 库,后者是前者的基础上进行一些设置,应该要把 前者写进后者的 dependency 里吧?
  4. dependency 里的 library 的顺序有影响吗?

关于 \CUSLibraryDelayedUntil

  1. 手册里提到这个只能在宏包或者文档类载入后加载库,那么能否在某个库后面加载库呢?
    就比如我上面的这个问题里面,cover 其实一种模块类型的库,里面进行了一些 cs 和键值的 define,然后我在 master 里进行 set,从而达到一种模块搭建的效果。所以 master 理论上来说需要在 cover 后面加载,也就是需要不管 cover delay 不 delay,delay 在谁后面,都保证 master 能在 cover 后面加载的话,这样就不会出现我问的那个问题了应该。
  2. 我有点还是不太清楚什么时候该用这个 delay

`\backgroundpicture` 如何调整透明度

一种办法是不用这个命令,直接用 \background,这样就可以用 \transparent 来调整透明度

\background+(lb)[./watermark]{\transparent{0.2}\includegraphics[width = 20cm]{background.png}}

但是 \backgroundpicture 的话,接口也是 includegraphics 的,好像没有 opacity 类似的命令,那要如何实现透明度调整呢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.