我想修改我的业余无线电日志,以便每隔一行都是一个全长的注释行,可能在全长行的背景中用浅灰色写有“注释”字样。
+-------+-------+-------+
|header1|header2|header3|
+-------+-------+-------+
| | | |
+-------+-------+-------+
| notes |
+-------+-------+-------+
| | | |
+-------+-------+-------+
| notes |
+-----------------------+
...
到目前为止的代码如下:http://pastebin.com/BgHGkhq8
% !TEX encoding = UTF-8 Unicode
\PassOptionsToPackage{table}{xcolor}
\documentclass[12pt,a4paper,oneside,landscape]{article}
\usepackage[utf8]{inputenc}
\usepackage{ngerman}
\usepackage{todonotes}
%\usepackage[cm]{fullpage}
\usepackage{array}
\usepackage[a4paper, left=0.6cm, right=0.5cm,top=3.7cm, bottom=0.5cm]{geometry}
\usepackage[T1]{fontenc}
\newcommand{\changefont}[3]{
\fontfamily{#1} \fontseries{#2} \fontshape{#3} \selectfont}
\usepackage{graphicx,type1cm,eso-pic,color}
\makeatletter
\AddToShipoutPictureBG{
\setlength{\@tempdimb}{.5\paperwidth}
\setlength{\@tempdimc}{0.85\paperheight}
\setlength{\unitlength}{1pt}
\put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
\makebox(0,0){\rotatebox{0}{\textcolor[gray]{.4}
{\fontsize{2cm}{2cm}\selectfont{Amateurfunk-Log DC1TS}}}}}
}
\AddToShipoutPicture*{
\setlength{\@tempdimb}{0.02\paperwidth}
\setlength{\@tempdimc}{0.12\paperheight}
\setlength{\unitlength}{1pt}
\put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
\makebox(0,0){\rotatebox{270}{\textcolor[gray]{0.65}
{\fontsize{1cm}{1cm}\selectfont{Seite 025}}}}}
}
\begin{document}
\changefont{cmss}{m}{n}
\rowcolors{3}{gray!5}{white}
\begin{tabular}{
| >{\centering\arraybackslash}m{2cm} %Datum
| >{\centering\arraybackslash}m{1.3cm} %Zeit Start
| >{\centering\arraybackslash}m{1.3cm} %Zeit Ende
| >{\centering\arraybackslash}m{2cm} %Frequenz
| >{\centering\arraybackslash}m{1.5cm} %Mode
| >{\centering\arraybackslash}m{3cm} %Rufzeichen
| >{\centering\arraybackslash}m{3cm} %Name
| >{\centering\arraybackslash}m{3cm} %QTH
| >{\centering\arraybackslash}m{1.3cm} %Power
| >{\centering\arraybackslash}m{0.9cm} %Report gegeben
| >{\centering\arraybackslash}m{0.9cm} %Report erhalten
| >{\centering\arraybackslash}m{0.8cm} %QSL gesendet
| >{\centering\arraybackslash}m{0.8cm} %QSL erhalten
|}
\hline
Datum &
\multicolumn{2}{c|}{Zeit UTC} &
Frequenz &
Mode &
Rufzeichen &
Name &
QTH &
Power &
\multicolumn{2}{c|}{Report} &
\multicolumn{2}{c|}{QSL} \\ [1ex]
& Start & Ende & (MHz) & & & & & (W) & geg. & empf. & ges. & erh. \\ [1ex]
\hline
& : & : & & & & & & & & & & \\ [4ex]
\hline
& : & : & & & & & & & & & & \\ [4ex]
\hline
& : & : & & & & & & & & & & \\ [4ex]
\hline
& : & : & & & & & & & & & & \\ [4ex]
\hline
& : & : & & & & & & & & & & \\ [4ex]
\hline
& : & : & & & & & & & & & & \\ [4ex]
\hline
& : & : & & & & & & & & & & \\ [4ex]
\hline
& : & : & & & & & & & & & & \\ [4ex]
\hline
& : & : & & & & & & & & & & \\ [4ex]
\hline
& : & : & & & & & & & & & & \\ [4ex]
\hline
& : & : & & & & & & & & & & \\ [4ex]
\hline
& : & : & & & & & & & & & & \\ [4ex]
\hline
\end{tabular}
\pagebreak
\end{document}
\endinput
编辑 1:为了澄清:现在我使用它来简单地打印出需要手工填写的空白表格;稍后我考虑将其集成到我的(非常粗糙,即预 alpha)sqlite
基于文本(即控制台 - 想想 nanonote 和业余无线电日志记录:) 日志“应用程序”(实际上只是一堆脚本)。
答案1
请提供最少的示例并将其作为代码环境发布在这里!
\documentclass[12pt,a4paper,oneside,landscape]{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{ragged2e}
\usepackage{array}
\usepackage[table]{xcolor}
\usepackage[a4paper, left=0.6cm, right=0.5cm,top=3.7cm, bottom=0.5cm]{geometry}
\usepackage{graphicx,type1cm,eso-pic}
\makeatletter
\AddToShipoutPictureBG{
\setlength{\@tempdimb}{.5\paperwidth}
\setlength{\@tempdimc}{0.85\paperheight}
\setlength{\unitlength}{1pt}
\put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
\makebox(0,0){\rotatebox{0}{\textcolor[gray]{.4}
{\fontsize{2cm}{2cm}\selectfont{Amateurfunk-Log DC1TS}}}}}
}
\AddToShipoutPicture*{
\setlength{\@tempdimb}{0.02\paperwidth}
\setlength{\@tempdimc}{0.12\paperheight}
\setlength{\unitlength}{1pt}
\put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
\makebox(0,0){\rotatebox{270}{\textcolor[gray]{0.65}
{\fontsize{1cm}{1cm}\selectfont{Seite 025}}}}}
}
\newcolumntype{M}[1]{>{\Centering}m{#1}}
\newcolumntype{C}{>{\rule[-3ex]{0pt}{8ex}}c}
\begin{document}
\sffamily
\rowcolors{3}{gray!5}{white}
\begin{tabular}{
| M{2cm} %Datum
| M{1.3cm} %Zeit Start
| M{1.3cm} %Zeit Ende
| M{2cm} %Frequenz
| M{1.5cm} %Mode
| M{3cm} %Rufzeichen
| M{3cm} %Name
| M{3cm} %QTH
| M{1.3cm} %Power
| M{0.9cm} %Report gegeben
| M{0.9cm} %Report erhalten
| M{0.8cm} %QSL gesendet
| M{0.8cm} %QSL erhalten
|}
\hline
Datum & \multicolumn{2}{c|}{Zeit UTC} &
Frequenz & Mode & Rufzeichen & Name & QTH & Power &
\multicolumn{2}{c|}{Report} & \multicolumn{2}{c|}{QSL} \\ [1ex]
& Start & Ende & (MHz) & & & & & (W) & geg. & empf. & ges. & erh. \\ [1ex]
\hline
& : & : & & & & & & & & & & \\ [4ex] \hline
& : & : & & & & & & & & & & \\ [4ex] \hline
\multicolumn{13}{|C|}{\textcolor{black!15}{\Huge\bfseries Notes}}\\\hline
& : & : & & & & & & & & & & \\ [4ex] \hline
& : & : & & & & & & & & & & \\ [4ex] \hline
& : & : & & & & & & & & & & \\ [4ex] \hline\hline
\end{tabular}
\end{document}
答案2
感谢大家的回答,最终我让它像这样工作:
\documentclass[12pt,a4paper,oneside,landscape]{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{ragged2e}
\usepackage{array}
\usepackage[table]{xcolor}
\usepackage[a4paper, left=0.6cm, right=0.5cm,top=3.7cm, bottom=0.5cm]{geometry}
\usepackage{graphicx,type1cm,eso-pic}
\makeatletter
\AddToShipoutPictureBG{
\setlength{\@tempdimb}{.5\paperwidth}
\setlength{\@tempdimc}{0.85\paperheight}
\setlength{\unitlength}{1pt}
\put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
\makebox(0,0){\rotatebox{0}{\textcolor[gray]{.4}
{\fontsize{2cm}{2cm}\selectfont{Amateurfunk-Log DC1TS}}}}}
}
\AddToShipoutPicture*{
\setlength{\@tempdimb}{0.02\paperwidth}
\setlength{\@tempdimc}{0.12\paperheight}
\setlength{\unitlength}{1pt}
\put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){
\makebox(0,0){\rotatebox{270}{\textcolor[gray]{0.65}
{\fontsize{1cm}{1cm}\selectfont{Seite 025}}}}}
}
\newcolumntype{M}[1]{>{\Centering}m{#1}}
\newcolumntype{C}{>{\rule[-3ex]{0pt}{8ex}}c}
\begin{document}
\sffamily
\rowcolors{3}{gray!5}{white}
\begin{tabular}{
| M{2cm} %Datum
| M{1.3cm} %Zeit Start
| M{1.3cm} %Zeit Ende
| M{2cm} %Frequenz
| M{1.5cm} %Mode
| M{3cm} %Rufzeichen
| M{3cm} %Name
| M{3cm} %QTH
| M{1.3cm} %Power
| M{0.9cm} %Report gegeben
| M{0.9cm} %Report erhalten
| M{0.8cm} %QSL gesendet
| M{0.8cm} %QSL erhalten
|}
\hline
Datum & \multicolumn{2}{c|}{Zeit UTC} &
Frequenz & Mode & Rufzeichen & Name & QTH & Power &
\multicolumn{2}{c|}{Report} & \multicolumn{2}{c|}{QSL} \\ [1ex]
& Start & Ende & (MHz) & & & & & (W) & geg. & empf. & ges. & erh. \\ [1ex]
\hline
\hline
& : & : & & & & & & & & & & \\ [4ex] \hline
\multicolumn{13}{|C|}{\textcolor{black!10}{\Huge\bfseries Notizen}}\\\hline
\hline
& : & : & & & & & & & & & & \\ [4ex] \hline
\multicolumn{13}{|C|}{\textcolor{black!10}{\Huge\bfseries Notizen}}\\\hline
\hline
& : & : & & & & & & & & & & \\ [4ex] \hline
\multicolumn{13}{|C|}{\textcolor{black!10}{\Huge\bfseries Notizen}}\\\hline
\hline
& : & : & & & & & & & & & & \\ [4ex] \hline
\multicolumn{13}{|C|}{\textcolor{black!10}{\Huge\bfseries Notizen}}\\\hline
\hline
& : & : & & & & & & & & & & \\ [4ex] \hline
\multicolumn{13}{|C|}{\textcolor{black!10}{\Huge\bfseries Notizen}}\\\hline
\end{tabular}
\end{document}