Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A new markup option: pdflatex + pdfcomment #49

Closed
peci1 opened this issue Apr 7, 2016 · 4 comments
Closed

A new markup option: pdflatex + pdfcomment #49

peci1 opened this issue Apr 7, 2016 · 4 comments

Comments

@peci1
Copy link

peci1 commented Apr 7, 2016

I managed to get a version of the diff that marks the changes utilizing the pdfcomment package. It is actually quite useful, since the compiled diff should be rendered exactly the same as the current version of the document.

Here's what's needed (I'm no LaTeX hacker, so maybe there are some protects or other stuff to be added):

\usepackage[author={anonymous}]{pdfcomment}
\providecommand{\DIFaddtex}[1]{\pdfmarkupcomment[markup=Underline]{#1}\space{}}
\providecommand{\DIFdeltex}[1]{ \pdfcomment[icon=Insert]{#1}}
@ftilmann
Copy link
Owner

ftilmann commented Apr 7, 2016

Sounds like an interesting idea. I will try it out, and if it works well, add it as a style choice

ftilmann added a commit that referenced this issue May 1, 2016
@ftilmann
Copy link
Owner

ftilmann commented May 1, 2016

I largely implemented your suggestion but modified the option to commands a bit. In particular I was concerned that the 'delete' symbols cover up the text, and added some horizontal space to avoid that. This means that the layout is not exactly the same but it should be pretty close and I think it's a price worth paying for avoiding overlap.
Commit: 85f77a6

@ftilmann ftilmann closed this as completed May 1, 2016
@peci1
Copy link
Author

peci1 commented May 1, 2016

Nice, thanks!

@faroit
Copy link

faroit commented Dec 11, 2019

@ftilmann I wonder if its possible to actually make PDFCOMMENT optional. That means we have the usual inline changes but additionally add pdf comments. That way, users that use supported PDF readers will be able to quickly navigate to the modified changes by browsing the list of pdf comments. Does this make sense?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants