I have an org document that has confidential and non-confidential information. I need to publish the org file to two different pdfs: one that contains all of the information from the org file and the other with the non-confidential information.
I have tried the following elisp.
(setq org-publish-project-alist '(("counselor" :base-directory "~/Dropbox/org/" :base-extension "org" :publishing-directory "~/Dropbox/org/" :exclude-tags "confidential" :recursive t :title "Appointments" :publishing-function org-latex-publish-to-pdf :headline-levels 4 :exclude ".*" :include ["appointments.org"]))
This produces an appointments.pdf document, but the confidential tags are still included. I also don't know how to change the file name to be appointments-confidential.pdf and appointments-non-confidential.pdf.