我正在尝试重新创建下表
到目前为止,我已经成功创建了以下内容
缺少的是覆盖桌子部分的斑点/污渍。我不知道如何插入它们,也许 tikz?
平均能量损失
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{document}
\section{Introduction}
\begin{table}[]
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}c l r l r l r l r}
\midrule
\textbf{År} &
\multicolumn{2}{c}{\textbf{Avdrag}} &
\multicolumn{2}{c}{\textbf{Renter}} &
\multicolumn{2}{c}{\textbf{Terminbeløp}} &
\multicolumn{2}{c}{\textbf{Restlån}} \\
\midrule
2018 & kr & \num{17446} & kr & \num{6000} & kr & \num{23446} & kr & \num{182554} \\
2019 & kr & \num{17969} & kr & \num{5477} & kr & \num{23446} & kr & \num{164585} \\
2020 & kr & \num{18508} & kr & \num{6000} & kr & \num{23446} & kr & \num{146076} \\
2921 & kr & \num{17446} & kr & \num{6000} & kr & \num{23446} & kr & \num{127012} \\
2022 & kr & \num{17446} & kr & \num{6000} & kr & \num{23446} & kr & \num{107377} \\
2023 & kr & & kr & \num{6000} & kr & \num{23446} & kr & \num{} \\
2024 & kr & \num{20953} & kr & \num{6000} & kr & \num{23446} & kr & \num{} \\
2025 & kr & \num{21} & kr & \num{6000} & kr & \num{23446} & kr & \num{44864} \\
\bottomrule
\end{tabular*}
\end{table}
\end{document}
答案1
看来咖啡包 (olsak-misc) 自上次提问以来已经更新。它们现在作为文字 PDF 插入实现。
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{lipsum}
\input{fun-coffee}
\begin{document}
\noindent\rlap{\hspace*{-1.5in}\raisebox{-1in}[0pt][0pt]{\scalebox{0.8}{\coffeeA}}}% adjust position
\indent\lipsum[1-4]
\tikz[overlay, remember picture]{\path (current page.center)
node[opacity=0.2, inner sep=0pt] {\coffeeA};
\draw[blue] (current page.center) ++(6.5,-4.4) circle[radius=4];}% trial and error
\newpage
\coffeeB
\lipsum[1-4]
\newpage
\coffeeC
\lipsum[1-4]
\newpage
\coffeeD
\lipsum[1-4]
\end{document}
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{siunitx}
\input{fun-coffee}
\begin{document}
\section{Introduction}
\begin{table}[]
\coffeeA
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}c l r l r l r l r}
\midrule
\textbf{År} &
\multicolumn{2}{c}{\textbf{Avdrag}} &
\multicolumn{2}{c}{\textbf{Renter}} &
\multicolumn{2}{c}{\textbf{Terminbeløp}} &
\multicolumn{2}{c}{\textbf{Restlån}} \\
\midrule
2018 & kr & \num{17446} & kr & \num{6000} & kr & \num{23446} & kr & \num{182554} \\
2019 & kr & \num{17969} & kr & \num{5477} & kr & \num{23446} & kr & \num{164585} \\
2020 & kr & \num{18508} & kr & \num{6000} & kr & \num{23446} & kr & \num{146076} \\
2921 & kr & \num{17446} & kr & \num{6000} & kr & \num{23446} & kr & \num{127012} \\
2022 & kr & \num{17446} & kr & \num{6000} & kr & \num{23446} & kr & \num{107377} \\
2023 & kr & & kr & \num{6000} & kr & \num{23446} & kr & \num{} \\
2024 & kr & \num{20953} & kr & \num{6000} & kr & \num{23446} & kr & \num{} \\
2025 & kr & \num{21} & kr & \num{6000} & kr & \num{23446} & kr & \num{44864} \\
\bottomrule
\end{tabular*}
\end{table}
\end{document}
答案2
尝试用一些 Ti 为自己实现污点钾Z\path
命令和一些路径操作。然后您可以使用tikzmark
包。这里的“污点”是一个实心的圆圈。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\begin{document}
\begin{table}
\tikzmark{origin}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}c l r l r l r l r}
\midrule
\textbf{År} &
\multicolumn{2}{c}{\textbf{Avdrag}} &
\multicolumn{2}{c}{\textbf{Renter}} &
\multicolumn{2}{c}{\textbf{Terminbeløp}} &
\multicolumn{2}{c}{\textbf{Restlån}} \\
\midrule
2018 & kr & \num{17446} & kr & \num{6000} & kr & \num{23446} & kr & \num{182554} \\
2019 & kr & \num{17969} & kr & \num{5477} & kr & \num{23446} & kr & \num{164585} \\
2020 & kr & \num{18508} & kr & \num{6000} & kr & \num{23446} & kr & \num{146076} \\
2921 & kr & \num{17446} & kr & \num{6000} & kr & \num{23446} & kr & \num{127012} \\
2022 & kr & \num{17446} & kr & \num{6000} & kr & \num{23446} & kr & \num{107377} \\
2023 & kr & & kr & \num{6000} & kr & \num{23446} & kr & \num{} \\
2024 & kr & \num{20953} & kr & \num{6000} & kr & \num{23446} & kr & \num{} \\
2025 & kr & \num{21} & kr & \num{6000} & kr & \num{23446} & kr & \num{44864} \\
\bottomrule
\end{tabular*}
\end{table}
\begin{tikzpicture}[overlay,remember picture]
\filldraw[fill=yellow] (pic cs:origin)++(3,0) circle (1cm);
\end{tikzpicture}
\end{document}
顺便说一句,这里(可能)有一个拼写错误:我认为是 2021 而不是 2921。