Tikz 环境中的行号

Tikz 环境中的行号

我正在尝试将页面分成 4 个子部分,类似于如何在tex中将一个页面分成四个区域。我希望使用 lineno 包对每个部分内的文本行进行编号。但渲染中没有显示这些数字。如何在这个 tikz 环境中显示这些行号?

这是 MWE。

\documentclass{book}
\usepackage[utf8]{inputenc}

\usepackage[landscape]{geometry}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{lipsum}
\usepackage{verbatim}
\usepackage{eso-pic}
\usepackage{fancyhdr}
\usepackage{tikz}

\usepackage[pagewise]{lineno}

\usepackage{tikzpagenodes}
\usetikzlibrary{calc}

\tikzset{quarterpage/.style={text width=.47*\textwidth, minimum height=.5*\textheight, 
    minimum width=.5*\textwidth, text depth=.47*\textheight}}

\newcommand{\posA}{($.5*(current page text area.north west)+.5*(current page text area)$)}
\newcommand{\posB}{($.5*(current page text area.north east)+.5*(current page text area)$)}
\newcommand{\posC}{($.5*(current page text area.south west)+.5*(current page text area)$)}
\newcommand{\posD}{($.5*(current page text area.south east)+.5*(current page text area)$)}

\begin{document}

\newgeometry{left=3cm,right=3cm,outer=5cm,inner=2.5cm}
\setlength\columnsep{30pt}

\begin{tikzpicture}[remember picture, overlay]
\node[quarterpage]at\posA{
\begin{linenumbers}
one\\
two\\
three
\end{linenumbers}
};
\node[quarterpage]at\posB{B};
\node[quarterpage]at\posC{C};
\node[quarterpage]at\posD{D};
\end{tikzpicture}

\end{document}

这是使用 Overleaf 上的 XeLaTeX 编译后的样子。

使成为

相关内容