Skip to content

Instantly share code, notes, and snippets.

@dmhowcroft
Created November 27, 2023 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmhowcroft/3e3a0f55917f8987132d277608de512f to your computer and use it in GitHub Desktop.
Save dmhowcroft/3e3a0f55917f8987132d277608de512f to your computer and use it in GitHub Desktop.
% Adapted from https://github.com/acl-org/ACLPUB/blob/master/templates/proceedings/cd.tex.head
% and https://github.com/acl-org/ACLPUB/blob/master/templates/proceedings/citation-stamp.tex
\documentclass[11pt,oneside]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} % fonts to encode unicode
\usepackage{times}
\usepackage{pdfpages} % can also use [draft] option
\usepackage{hyperref} % hyperlinked table of contents, etc.
%%%%%%%%%%% VARIABLES TO CHANGE %%%%%%%%%%%%%
\newcommand{\procname}{Proceedings of the 16th International Natural Language Generation Conference}
\newcommand{\confdates}{September 11--15}
\newcommand{\confyear}{2023}
\newcommand{\firstpage}{42}
\newcommand{\lastpage}{48}
\newcommand{\filename}{2023_inlg.pdf} % Make sure the pdf is in the same directory as this tex file when you run it
\newcommand{\papertitle}{My very good INLG Paper}
\newcommand{\paperauthors}{Author Apple ; Author Banana ; Author Cranberry}
\newcommand{\venueabbreviation}{INLG 2023}
%%%%%%%%%%%%% YOU DON'T NEED TO EDIT BELOW THIS LINE %%%%%%%%%%%%%%%%
\hypersetup{plainpages=false, % point to papers, not preface
pdfpagemode=none,
colorlinks=true,
unicode=true,
pdftitle={\papertitle},
pdfauthor={\paperauthors},
pdfsubject={\venueabbreviation}
}
% no bookmark pane in this case
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% for A4 size
\setlength{\paperwidth}{21cm} % A4
\setlength{\paperheight}{29.7cm}% A4
\special{papersize=21cm,29.7cm}
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth
\setlength\topmargin{-5mm} \setlength\oddsidemargin{-0cm}
\setlength\textheight{24.7cm} \setlength\textwidth{16cm}
\setlength\columnsep{0.6cm} \newlength\titlebox \setlength\titlebox{2.00in}
\setlength\headheight{5pt} \setlength\headsep{0pt}
\setlength\footskip{0.8cm}
\setlength\leftmargin{0.0in}
\pagestyle{plain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{color}
\definecolor{brown}{rgb}{0.59, 0.29, 0.0}
\newcommand{\changeurlcolor}[1]{\hypersetup{urlcolor=#1}}
\newcommand{\citeinfo}[2]{
\AddToShipoutPicture{
\setlength{\unitlength}{1mm}
%%%% Edit event name, dates, location and copyright (if needed) %%%%%%%%%%%%%%%%%%%%%%
\put(105,13){\makebox(0,0){\footnotesize {\em \procname},
\ifthenelse{\equal{#1}{#2}}{page #1}{pages #1--#2}}}
\put(105,10){\makebox(0,0){\footnotesize \confdates, \confyear. \copyright \confyear Association for Computational Linguistics}}
}}
\begin{document}
\thispagestyle{plain}
\pagenumbering{arabic}
\setcounter{page}{\firstpage}
\includepdfset{pages=-,clip,noautoscale,pagecommand={\thispagestyle{plain}}}
\citeinfo{\firstpage}{\lastpage}
\includepdf[pages=1]{\filename}
\ClearShipoutPicture
\includepdf[pages=2-]{\filename}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment