代码之家  ›  专栏  ›  技术社区  ›  Andrew

强制多标记中的乳胶命令结束

  •  2
  • Andrew  · 技术社区  · 15 年前

    我在用 MultiMarkdown 生成我正在研究的学术论文的乳胶文件。我在书目中使用bibrexte,它允许如下命令 autocite autocites :

    This is a true statement.\autocite{source:2007}
    

    什么时候? 自动机 使用时,每个有支撑的条目都被视为引文源,当引文有多个源时,这一点非常有效:

    This is another statement.\autocites{othersource}{yetanothersource}
    

    但是,当文本跟随 自动机 命令是另一个带括号的乳胶命令,BibLaTex将其视为另一个源,间距:

    This is another statement.\autocites{othersource}{yetanothersource} {\itshape The New York Times}…
    

    导致脚注如下:

    Bib data for othersource; bib data for yetanothersource; \itshape The New York Times
    

    这是个问题。一个明显的解决方法是对斜体使用不同的命令,比如 \emph{The New York Times} 但不幸的是,多重降价使用 itshape 而不是 \emph 我不想在MMD的源代码中乱搞。

    是否有一个乳胶序列或代码将强制在两个支撑命令序列之间中断?强制换行 \\ 作品种类( {yetanothersource}\\{\itshape ,但它会在第一个命令之后创建一个新段落。有类似的东西吗 \\ 这将告诉乳胶引擎开始分析 {itshape} 作为新命令而不是作为 autocite{} 是吗?

    1 回复  |  直到 15 年前
        1
  •  2
  •   Brent.Longborough    15 年前

    这是一个无望的猜测,但你试过了吗? \relax ?

    类似:

    This is another statement.\autocites{othersource}{yetanothersource}\relax {\itshape The New York Times}…