From f29b26cba9aa505e36175106d7003181003ecd44 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sat, 23 Mar 2024 07:35:03 +0000 Subject: [PATCH] Print comments in paper.pdf and create submission.pdf without comments --- Makefile | 37 ++++++++++--------------------------- draft.tex | 2 -- paper.tex | 19 ++++++------------- submission.tex | 2 ++ 4 files changed, 18 insertions(+), 42 deletions(-) delete mode 100644 draft.tex create mode 100644 submission.tex diff --git a/Makefile b/Makefile index 33d5256..ad7ea9a 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,10 @@ # Source Latex files -TEX_MAIN = paper.tex - -TEX_MAIN_DRAFT = draft.tex TEX_MAIN_PAPER = paper.tex -TEX_MAIN_BLIND = blind.tex -TEX_MAIN_CAMERA_ACM = cameraACM.tex +TEX_MAIN_SUBMISSION = submission.tex # Generate PDF files -PDF_DRAFT = draft.pdf PDF_PAPER = paper.pdf -PDF_BLIND = blind.pdf -PDF_CAMERA_ACM = cameraACM.pdf +PDF_SUBMISSION = submission.pdf IMAGES := $(wildcard images/*.jpg images/*.pdf images/*.png) @@ -18,7 +12,7 @@ IMAGES := $(wildcard images/*.jpg images/*.pdf images/*.png) # from textidote .PHONY: grammar -all: ${PDF_DRAFT} ${PDF_PAPER} +all: ${PDF_SUBMISSION} ${PDF_PAPER} # spelling and grammar grammar: paper.tex @@ -28,32 +22,21 @@ grammar: paper.tex -textidote --check en --output html paper.tex > index.html python3 -m http.server - -${PDF_DRAFT}: ${TEX_MAIN_DRAFT} ${TEX_MAIN} ${IMAGES} - latexmk ${TEX_MAIN_DRAFT} - -${PDF_PAPER}: ${TEX_MAIN_PAPER} ${TEX_MAIN} ${IMAGES} +${PDF_PAPER}: ${TEX_MAIN_PAPER} ${IMAGES} latexmk ${TEX_MAIN_PAPER} -${PDF_CAMERA_ACM}: ${TEX_MAIN_CAMERA_ACM} ${TEX_MAIN} ${IMAGES} - latexmk ${TEX_MAIN_CAMERA_ACM} - -draft: ${PDF_DRAFT} - -blind: ${PDF_BLIND} +${PDF_SUBMISSION}: ${TEX_MAIN_SUBMISSION} ${IMAGES} + latexmk ${TEX_MAIN_SUBMISSION} paper: ${PDF_PAPER} -cameraACM: ${PDF_CAMERA_ACM} - -view-draft: ${TEX_MAIN_DRAFT} ${TEX_MAIN} ${IMAGES} - latexmk -pvc ${TEX_MAIN_DRAFT} +submission: ${PDF_SUBMISSION} -view-paper: ${TEX_MAIN_PAPER} ${TEX_MAIN} ${IMAGES} +view-paper: ${TEX_MAIN_PAPER} ${IMAGES} latexmk -pvc ${TEX_MAIN_PAPER} -view-camera-acm: ${TEX_MAIN_CAMERA_ACM} ${TEX_MAIN} ${IMAGES} - latexmk -pvc ${TEX_MAIN_CAMERA_ACM} +view-submission: ${TEX_MAIN_SUBMISSION} ${IMAGES} + latexmk -pvc ${TEX_MAIN_SUBMISSION} clean: latexmk -C diff --git a/draft.tex b/draft.tex deleted file mode 100644 index cc5da3c..0000000 --- a/draft.tex +++ /dev/null @@ -1,2 +0,0 @@ -\def\paperversion{draft} -\input{paper} diff --git a/paper.tex b/paper.tex index 7d27c46..b016510 100644 --- a/paper.tex +++ b/paper.tex @@ -1,21 +1,14 @@ \def\paperversiondraft{draft} -\def\paperversionblind{normal} -\def\paperversioncameraACM{cameraACM} +\def\paperversionnormal{normal} -% If no draft paper-version is requested, compile in 'normal' mode -\ifx\paperversion\paperversiondraft +% If the paper version is set to 'normal' mode keep it, +% otherwise set it to 'draft' mode. +\ifx\paperversion\paperversionnormal \else - \ifx\paperversion\paperversioncameraACM - \else - \def\paperversion{normal} - \fi + \def\paperversion{draft} \fi -\ifx\paperversion\paperversioncameraACM - \documentclass[sigplan]{acmart} -\else - \documentclass[review, anonymous, sigplan]{acmart} -\fi +\documentclass[review, anonymous, sigplan]{acmart} \def\acmversionanonymous{anonymous} \def\acmversionjournal{journal} diff --git a/submission.tex b/submission.tex new file mode 100644 index 0000000..f21b38c --- /dev/null +++ b/submission.tex @@ -0,0 +1,2 @@ +\def\paperversion{normal} +\input{paper}