将 Tikz 定位在表格线上

将 Tikz 定位在表格线上

我正在尝试制作一个带有工作历史时间线的自定义简历类。具体来说,我想在标题旁边的表格线上加一个黑点。我曾尝试使用 Tikz 来实现这一点,但效果不如预期(请参阅 MWE)。

可能有更优雅的方法来实现这一点。有人知道怎么做吗?

梅威瑟:

\documentclass[11pt, a4paper]{article}
\usepackage{pgf, tikz,tikzpagenodes}
\setlength\parindent{0pt}
\begin{document}
    \newcommand{\tabledot}{
        \begin{tikzpicture}[overlay]
        \filldraw[black] (2.4,0.86) circle (.5ex) node[] {};         
        \end{tikzpicture}
    }
    \newcommand{\expitem}[4]{
        \tabledot
        \begin{tabular}{p{0.15\linewidth}|p{0.8\linewidth}}
            #1 & \textbf{#2}\\
            & \textit{#3}\\
            & {\fontsize{9}{10}\selectfont #4}
        \end{tabular}
    }
\expitem{1998-1999}{Experimental Assistant, Black Mesa Research Labs}{Anomalous Materials Laboratory}{My work here consists of little more than pressing a button and pushing a cart. Please, someone give me a job working in theoretical physics.}
\expitem{1992-1997}{PhD Theoretical Physics, MIT}{Supervised by Dr. Isaac Kleiner}{Thesis Title: Observation of Einstein-Podolsky-Rosen Entanglement on Supraquantum Structures by Induction Through Nonlinear Transuranic Crystal of Extremely Long Wavelength (ELW) Pulse from Mode-Locked Source Array}
\end{document}

这将产生以下内容 在此处输入图片描述

我怎样才能使第二个点正确排列?

答案1

这是一项最小损害提案,将项目符号置于日期旁边overlay。当然有更简洁的方法可以做到这一点。

\documentclass[11pt, a4paper]{article}
\usepackage{tikz}
\setlength\parindent{0pt}
\begin{document}
    \newcommand{\expitem}[4]{
        \begin{tabular}{p{0.15\linewidth}|p{0.8\linewidth}}
            \tikz[baseline={(X.base)}]{\node[inner sep=0pt](X){#1};
            \fill[overlay] (X.west)+(2.12,0) circle[radius=.5ex];} & \textbf{#2}\\
            & \textit{#3}\\
            & {\fontsize{9}{10}\selectfont #4}
        \end{tabular}
    }
\expitem{1998-1999}{Experimental Assistant, Black Mesa Research Labs}{Anomalous Materials Laboratory}{My work here consists of little more than pressing a button and pushing a cart. Please, someone give me a job working in theoretical physics.}
\expitem{1992-1997}{PhD Theoretical Physics, MIT}{Supervised by Dr.\ Isaac Kleiner}{Thesis Title: Observation of Einstein-Podolsky-Rosen Entanglement on Supraquantum Structures by Induction Through Nonlinear Transuranic Crystal of Extremely Long Wavelength (ELW) Pulse from Mode-Locked Source Array}
\end{document}

在此处输入图片描述

相关内容