印刷的标准校样需要如下所示的裁切标记和色条
使用该软件包crop
,可以轻松添加裁切标记。
但是颜色条怎么样?
有没有什么方法或包可以实现它?
一个例子是
\documentclass[b5paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[cross,a4,center,info,axes]{crop}
\title{Test}
\author{User}
\begin{document}
\maketitle
\section{Fox}
The quick brown fox jumps over a lazy dog.
\end{document}
答案1
这使用了 Gonzalo Medina 的background
包并在每个页面上放置一个纯色表格,并移动到“正确”位置。
\documentclass[b5paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[table]{xcolor}
\usepackage[cross,a4,center,info,axes]{crop}
\usepackage{background}
\newcommand{\colorbar}{%
{%
\setlength{\tabcolsep}{0pt}%
\abovedisplayskip=0pt%
\belowdisplayskip=0pt%
\begin{tabular}{*{4}{@{}p{0.4cm}@{}}}
\cellcolor{cyan} & \cellcolor{magenta} & \cellcolor{yellow} & \cellcolor{black} \tabularnewline
\end{tabular}%
}%
}
\backgroundsetup{opacity=1,angle=0,scale=1,placement=top,vshift=0.6cm,hshift=6cm,contents={\colorbar}}
\title{Test}
\author{User}
\begin{document}
\maketitle
\section{Fox}
The quick brown fox jumps over a lazy dog.
\end{document}
答案2
另一种方法但仍在@Christian Hupfer's \colorbar
:如果您已经定义了一些文本,您可以直接background
插入到-settings 中:\colorbar
crop
\documentclass[a4paper,10pt]{article}
\usepackage[table,cmyk]{xcolor}
\usepackage{background,hyperref}
\newcommand{\colorbar}{%
{%
\renewcommand{\arraystretch}{.5}%
\setlength{\tabcolsep}{0pt}%
\abovedisplayskip=0pt%
\belowdisplayskip=0pt%
\begin{tabular}{*{4}{@{}p{1cm}@{}}}
\cellcolor{cyan} & \cellcolor{magenta} & \cellcolor{yellow} & \cellcolor{black} \tabularnewline
\end{tabular}%
}%
}
\usepackage[
cam,
center,
color=black!50,
font=textsf,
width=25truecm,
height=34truecm
]{crop}
\makeatletter
\renewcommand*\CROP@@info{%
\global\advance\CROP@index\@ne
\def\x{\discretionary{}{}{\hbox{\kern.5em---\kern.5em}}}%
\dimen@4pt
\ifx\CROP@pagecolor\@empty
\else
\advance\dimen@\CROP@overlap
\fi
\hb@xt@\z@{%
\hss
\vbox to\z@{%
\centering
\hsize\paperwidth
\vss
\normalfont
\normalsize
\expandafter\csname\CROP@font\endcsname{%
\hspace*{3em}Author\hfill\colorbar\quad\the\year/\the\month/\the\day\x
\CROP@time\x
page\kern.5em\thepage\x
\#\the\CROP@index
\strut\hspace*{3em}~\\\hspace*{3em}\emph{Title}\hfill
Prepress by
\href{http://your-company.com}{your-company.com}\hspace*{3em}
}%
\vskip\dimen@
}%
\hss
}}
\makeatother
\title{Test}
\author{User}
\begin{document}
\maketitle
\section{Fox}
The quick brown fox jumps over a lazy dog.
\end{document}