关闭单个 \gabcsnippet{} 块的列表缩进

关闭单个 \gabcsnippet{} 块的列表缩进

出于某些需求,我\gabcsnippet在类似列表的环境 (itemizeenumerate) 中有一些块。如何仅跳过这些块的列表缩进?示例:

\documentclass{minimal}

\usepackage{gregoriotex}

\begin{document}

\begin{itemize}
  \item List item
  \item List item

  % it's desirable to skip list indentation for this line.
  \gabcsnippet{(c4) Pro(h)ce(h)dá(h)mus(h) in(h) pa(h)ce.(f) (::)}

  \item List item
\end{itemize}

\end{document}

答案1

adjustbox包定义了一个命令\adjustbox,该命令有两个参数:调整和内容。可以进行各种调整,其中之一是边距,定义为左/下/右/上值。

梅威瑟:

\documentclass{article}

\usepackage{gregoriotex}
\usepackage{adjustbox}

\begin{document}
\noindent abc
\begin{itemize}
  \item List item
  \item List item

  % it's desirable to skip list indentation for this line.
  % margins: left bottom right top
  \adjustbox{margin=-26pt 0ex 0ex 0ex}{\gabcsnippet{(c4) Pro(h)ce(h)dá(h)mus(h) in(h) pa(h)ce.(f) (::)}}

  \item List item
  
  % further to the left and a bit of top margin
  \adjustbox{margin=-28pt 0ex 0ex 2ex}{\gabcsnippet{(c4) Pro(h)ce(h)dá(h)mus(h) in(h) pa(h)ce.(f) (::)}}
\end{itemize}

\end{document}

结果:

在此处输入图片描述

相关内容