When including quotes in a text, there are some styles that need to be adhered to. One style is to always place the last quote where the actual quote ends, no matter the next character (e.g. ... and then he said, "This is a disgrace", which is uncommon even for him.
. Another style is to include punctuation marks inside the quote if such characters follow the quote (e.g. ... and then he said, "This is a disgrace," which is uncommon even for him.
).
Once selected, a style should be consistent throughout the document. Thus, I figured it would be nice to use a macro which took care of this, like so:
... and then he said, \quote{This is a disgrace}, which is uncommon even for him.
The macro should then be able to wrap the argument in quotation marks scan the next character and place the last quotation mark where appropriate, depending on the desired style. (I know that \ifnextchar
can be used to scan the following character, but not how to move it inside the quote if necessary.)
csquotes
package does it.csquotes
wasn't available? =)