运行子节后的累积间距

运行子节后的累积间距

我是 Latex 的新手,正在适应Deedy 简历模板尝试使用 Tikz 添加由线连接的点来标记日期。每个\runsubsection命令后,节点都放置在垂直间距之后,该间距似乎与当前子节编号呈线性关系。

代码显示节点边框是为了显示问题。我附上了一个图像,其中的间距用红色椭圆标记。

在此处输入图片描述

我的代码:

\documentclass[]{deedy-resume-openfont}
\usepackage{fancyhdr}
\usepackage{blindtext}
\usepackage{enumitem}
\usepackage{tikz}
\usepackage{varwidth}
\usetikzlibrary{shapes,snakes}

\usetikzlibrary{shapes,arrows,backgrounds,positioning}

\pagestyle{fancy}
\fancyhf{}

\begin{document}

\namesection{doo}{bar}{ \urlstyle{same}\href{https://foo} \\
}


\section{Section}
\tikzstyle{every picture}+=[remember picture]

%n0
%\tikz[baseline] \node[circle,label=left:label,fill=black,inner sep=3pt] (n0) at (,0)  {};
\tikz[baseline] \node[draw,fill=none,align=left] at (,0)  {
  \vbox{
    \runsubsection{runsubsection}\descript{| descript }
  }
};
\tikz[baseline] \node[draw,fill=none,align=left] at (,0)  {
  \hspace*{15mm}\vbox{
    \blindtext
  }
};

%n1
%\tikz[baseline] \node[circle,label=left:label,fill=black,inner sep=3pt] (n1) at (,1)  {};
\tikz[baseline] \node[draw,fill=none,align=left] at (,1)  {
  \vbox{
    \runsubsection{runsubsection}\descript{| descript }
  }
};
\tikz[baseline] \node[draw,fill=none,align=left] at (,0)  {
  \hspace*{15mm}\vbox{
    \blindtext
  }
};

%n2    
%\tikz[baseline] \node[circle,label=left:label,fill=black,inner sep=3pt] (n2) at (,2)  {};
\tikz[baseline] \node[draw,fill=none,align=left] at (,2)  {
  \vbox{
    \runsubsection{runsubsection}\descript{| descript }
  }
};
\tikz[baseline] \node[draw,fill=none,align=left] at (,0)  {
  \hspace*{15mm}\vbox{
    \blindtext
  }
};

%n3
%\tikz[baseline] \node[circle,label=left:label,fill=black,inner sep=3pt] (n3) at (,3)  {};
\tikz[baseline] \node[draw,fill=none,align=left] at (,3)  {
  \vbox{
    \runsubsection{runsubsection}\descript{| descript }
  }
};
\tikz[baseline] \node[draw,fill=none,align=left] at (,0)  {
  \hspace*{15mm}\vbox{
    \blindtext
  }
};

\sectionsep
\end{document}  \documentclass[]{article}

我错过了什么?

答案1

到处使用\node[...] at (0,0)(或完全省略at (0,0)

\documentclass[]{deedy-resume-openfont}
\usepackage{fancyhdr}
\usepackage{blindtext}
\usepackage{enumitem}
\usepackage{tikz}
\usepackage{varwidth}
\usetikzlibrary{shapes,snakes}

\usetikzlibrary{shapes,arrows,backgrounds,positioning}

\pagestyle{fancy}
\fancyhf{}

\begin{document}

\namesection{doo}{bar}{ \urlstyle{same}\href{https://foo} \\
}


\section{Section}
\tikzstyle{every picture}+=[remember picture]

%n0
%\tikz[baseline] \node[circle,label=left:label,fill=black,inner sep=3pt] (n0) at (,0)  {};
\tikz[baseline] \node[draw,fill=none,align=left] at (0,0)  {
  \vbox{
    \runsubsection{runsubsection}\descript{| descript }
  }
};
\tikz[baseline] \node[draw,fill=none,align=left] at (0,0)  {
  \hspace*{15mm}\vbox{
    \blindtext
  }
};

%n1
%\tikz[baseline] \node[circle,label=left:label,fill=black,inner sep=3pt] (n1) at (,1)  {};
\tikz[baseline] \node[draw,fill=none,align=left] at (0,0)  {
  \vbox{
    \runsubsection{runsubsection}\descript{| descript }
  }
};
\tikz[baseline] \node[draw,fill=none,align=left] at (0,0)  {
  \hspace*{15mm}\vbox{
    \blindtext
  }
};

%n2    
%\tikz[baseline] \node[circle,label=left:label,fill=black,inner sep=3pt] (n2) at (,2)  {};
\tikz[baseline] \node[draw,fill=none,align=left] at (0,0)  {
  \vbox{
    \runsubsection{runsubsection}\descript{| descript }
  }
};
\tikz[baseline] \node[draw,fill=none,align=left] at (0,0)  {
  \hspace*{15mm}\vbox{
    \blindtext
  }
};

%n3
%\tikz[baseline] \node[circle,label=left:label,fill=black,inner sep=3pt] (n3) at (,3)  {};
\tikz[baseline] \node[draw,fill=none,align=left] at (0,0)  {
  \vbox{
    \runsubsection{runsubsection}\descript{| descript }
  }
};
\tikz[baseline] \node[draw,fill=none,align=left] at (0,0)  {
  \hspace*{15mm}\vbox{
    \blindtext
  }
};

\sectionsep
\end{document}

Overleaf 上的实例

相关内容