I am using the csquotes
package and its \enquote{TEXT IS HERE}
very often.
Instead of
\documentclass[12pt]{article}
\usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry}
\usepackage[russian,english]{babel}
\usepackage[style=russian]{csquotes}
\begin{document}
\enquote{\hspace{.44mm}TEXT IS HERE 1\hspace{.44mm}}
\enquote{\hspace{.44mm}TEXT IS HERE 2\hspace{.44mm}}
\end{document}
I would like to write
\documentclass[12pt]{article}
\usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry}
\usepackage[russian,english]{babel}
\usepackage[style=russian]{csquotes}
\begin{document}
\MACRO TEXT IS HERE 1.
\MACRO TEXT IS HERE 2.
\end{document}
where \MACRO TEXT IS HERE.
= \enquote{\hspace{.44mm}TEXT IS HERE\hspace{.44mm}}
.
This would greatly speed up writing dialogues.
Is this possible? Assume that each line so quoted is a new paragraph.
(For instance, I know that PARAGRAPH IS HERE.{{\parfillskip-1pt\par}}
justifies the last line of the paragraph just like putting the paragraph into a bracket environment.)
EDIT: I have a strange additional space between the end of the paragraph and the closing quotation mark using the following code
\documentclass[12pt]{article}
\usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry}
\usepackage[russian,english]{babel}
\usepackage[style=russian]{csquotes}
\def\MACRO#1\par{\enquote{#1}\par}
\usepackage[T1]{fontenc}
\begin{document}
\MACRO TEXT IS HERE.
\end{document}
If I replace \def\MACRO#1\par{\enquote{#1}\par}
with \def\MACRO#1\par{\enquote{#1\hspace*{-0.88mm}}\par}
, the white space problem is solved, but is that necessary? What causes TeX to add the large white space between HERE.
and >>
?
\parfillskip
is before the following\par
so before the paragraph is broken into lines, but it is after the text has been set so it is too late to change the text. (if it is on the main vertical list)