newcommand 乳胶参数
newcommand latex arguments
只是一个简单的问题,我在 Google 上找不到答案。
我需要为我的 LaTeX 项目引入二次引用方法。我无法让它工作。
\newcommand{\sekcite[4]}{
{
(\cite[#1]{#2} qtd. in \cite[#4]{#3})
}
}
为了测试目的,我在文本中加入了以下几行:
\par \textcite[1]{Su2016}
\par \parencite[2]{Spar2014}
\par \sekcite{Su2016}{1}{Spar2014}{2}
期望的结果应该是这样的:
C. H. Su, Fan, and P. Y. Su (2016, p. 1)
(Sparwelt.de 2014, p. 2)
(C. H. Su, Fan, and P. Y. Su 2016, p. 1 qtd. in Sparwelt.de 2014, p. 2)
问题是,我得到:
C. H. Su, Fan, and P. Y. Su (2016, p. 1)
(Sparwelt.de 2014, p. 2)
(C. H. Su, Fan, and P. Y. Su 2016, p. 0 qtd. in 1) 2
正如我在这里读到的:http://www.golatex.de/wiki/%5Cnewcommand
我可以用
创建一个新命令
\newcommand{\NAME}[COUNT]{CODE}
我做错了什么?
编辑:我应该添加的内容:我收到以下警告:
The following entry could not be found(biblatex) in the database:(biblatex) 1(biblatex) Please verify the spelling and rerun(biblatex) LaTeX afterwards.
我在 MiKTeX 上使用 Texmaker 4.5 Windows 7
当前的稳定版本
试试
\newcommand{\sekcite}[4]{%
(\cite[#2]{#1} qtd.\ in \cite[#4]{#3})%
}
Note the use of %
。此外,在 .
之后使用 \
可确保您没有句末句号 space.
只是一个简单的问题,我在 Google 上找不到答案。
我需要为我的 LaTeX 项目引入二次引用方法。我无法让它工作。
\newcommand{\sekcite[4]}{
{
(\cite[#1]{#2} qtd. in \cite[#4]{#3})
}
}
为了测试目的,我在文本中加入了以下几行:
\par \textcite[1]{Su2016}
\par \parencite[2]{Spar2014}
\par \sekcite{Su2016}{1}{Spar2014}{2}
期望的结果应该是这样的:
C. H. Su, Fan, and P. Y. Su (2016, p. 1)
(Sparwelt.de 2014, p. 2)
(C. H. Su, Fan, and P. Y. Su 2016, p. 1 qtd. in Sparwelt.de 2014, p. 2)
问题是,我得到:
C. H. Su, Fan, and P. Y. Su (2016, p. 1)
(Sparwelt.de 2014, p. 2)
(C. H. Su, Fan, and P. Y. Su 2016, p. 0 qtd. in 1) 2
正如我在这里读到的:http://www.golatex.de/wiki/%5Cnewcommand
我可以用
创建一个新命令\newcommand{\NAME}[COUNT]{CODE}
我做错了什么?
编辑:我应该添加的内容:我收到以下警告:
The following entry could not be found(biblatex) in the database:(biblatex) 1(biblatex) Please verify the spelling and rerun(biblatex) LaTeX afterwards.
我在 MiKTeX 上使用 Texmaker 4.5 Windows 7
当前的稳定版本试试
\newcommand{\sekcite}[4]{%
(\cite[#2]{#1} qtd.\ in \cite[#4]{#3})%
}
Note the use of %
。此外,在 .
之后使用 \
可确保您没有句末句号 space.