Tikzpicture 中脚注行和第一个脚注之间的垂直字距调整

Tikzpicture 中脚注行和第一个脚注之间的垂直字距调整

这与如何更改 Tikzpicture 中脚注线和脚注标记的颜色

考虑一下代码

\documentclass[12pt]{book}
\textwidth=5in \textheight=3.50in 
\usepackage[sfdefault]{cabin} 
\usepackage{lipsum}
\usepackage{csquotes}
\usepackage{xcolor}
\definecolor{bblue}{RGB}{33,41,88}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}

\let\ltxfootnoterule\footnoterule
\renewcommand\footnoterule{%
  \ltxfootnoterule
  \kern 5pt% back up
}

\begin{document}
\thispagestyle{empty}

Some text with a footnote.\footnote{Footnote for the text.}

\begin{center}
\begin{tikzpicture}[pencildraw/.style={ %
    /utils/exec=\renewcommand\footnoterule{\color{white}\rule{.3\linewidth}{0.8pt}},
    decorate,
    decoration={random steps,segment length=2pt,amplitude=1pt}
    } %
]
\node[
preaction={fill=black,opacity=0.5,transform canvas={xshift=1mm,yshift=-1mm}},
pencildraw,draw,fill=bblue,text=white,text width=1.00\textwidth,inner sep=2.5mm,align=justify] 
{\fontsize{11.5}{14}\selectfont {\bfseries \enquote{How to increase the vertical space between the footnoteline and the (first) footnote?\footnote{\textcolor{white}{Tikz footnote.}}} \par}};
\end{tikzpicture}
\end{center}
\end{document}

产生

在此处输入图片描述

我想增加脚注行和第一个脚注之间的垂直空间tikzpicture

在 之外tikzpicture,这可以通过以下方式实现,例如:

 \let\ltxfootnoterule\footnoterule
\renewcommand\footnoterule{%
  \ltxfootnoterule
  \kern 5pt% back up
}

这对于 之外的文本脚注似乎效果很好tikzpicture。但是,上述宏似乎对 之内的脚注无效tikzpicture

问题:我如何调整(在本例中为增加)脚注行和第一个(在本例中为唯一一个)脚注之间的垂直字距tikzpicture评论:不要想要影响图片外脚注的字距,这由上述宏单独处理。

谢谢。

答案1

\footnotesep您可以更改tikz 图片内部的长度。

例如使用\addtolength{\footnotesep}{<lenght>}(示例中为 2mm)

A

\documentclass[12pt]{book}
\textwidth=5in \textheight=3.50in 
\usepackage[sfdefault]{cabin} 
\usepackage{lipsum}
\usepackage{csquotes}
\usepackage{xcolor}
\definecolor{bblue}{RGB}{33,41,88}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}

\let\ltxfootnoterule\footnoterule
\renewcommand\footnoterule{%
    \ltxfootnoterule
    \kern 5pt% back up
}

\begin{document}
    \thispagestyle{empty}
    
    Some text with a footnote.\footnote{Footnote for the text.}
    
    \begin{center}
        \begin{tikzpicture}[pencildraw/.style={ % changed <<<<<<<<<<<<<
                /utils/exec=\addtolength{\footnotesep}{2mm}\renewcommand\footnoterule{\color{white}\rule{.3\linewidth}{0.8pt}},
                decorate,   decoration={random steps,segment length=2pt,amplitude=1pt}}%
            ]
            \node[
            preaction={fill=black,opacity=0.5,transform canvas={xshift=1mm,yshift=-1mm}},
            pencildraw,draw,fill=bblue,text=white,text width=1.00\textwidth,inner sep=2.5mm,align=justify] 
            {\fontsize{11.5}{14}\selectfont {\bfseries \enquote{How to increase the vertical space between the footnoteline and the (first) footnote?\footnote{\textcolor{white}{Tikz footnote.}}} \par}};
        \end{tikzpicture}
    \end{center}

\end{document}

相关内容