Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm going to be re-typesetting some old books (from the late 18th Century) in the coming weeks, and a few of them are old enough that they use an archaic typographic convention for quotation: every line of a multi-line quote begins with an open quotation mark. This is subtly different from a decorated block quote (see http://en.wikipedia.org/wiki/Quotation_mark#History), since there is no margin change or other indicator, except that each line is decorated on the left.

I have a nagging feeling I've seen a package that actually does this, but the search terms make it pretty unfindable. Does anybody have any advice for reproducing this behavior? I'd actually like to capture it as part of the project.

Here's an example I've found in Google Books: http://books.google.com/books?id=nY8FAAAAQAAJ&dq=review&pg=PA190#v=onepage&q&f=false .

As you can see, the quotation start is indicated by inline where it starts, but the first character set on every subsequent line is also until the quote closes. In other words, the quote mark occurs at the start (with some following space, actually) of every newline created, after the quotation opens, and only until the quotation closes.

share|improve this question
    
Have a look at tex.stackexchange.com/questions/16964/… –  lockstep Dec 3 '11 at 14:04
    
No, what I'm talking about is not a block quote, nor is it a large ornament. –  Bill Tozier Dec 3 '11 at 14:24
add comment

1 Answer

up vote 17 down vote accepted
\documentclass{article}
\usepackage{lineno,kantlipsum}

\newcommand{\leftquotes}{\def\makeLineNumber{%
  \ifnum\value{linenumber}=1 \else\hskip\leftmargin\llap{``}\hss\fi}}

\newenvironment{quotedquotation}
  {\quotation\linenumbers\leftquotes}
  {\endquotation}

\begin{document}
\begin{quotedquotation}
``\kant*[1]\unskip''
\end{quotedquotation}
\end{document}

(The \unskip is there only for technical reasons.)

enter image description here

lineno puts a zero width \hbox at the left margin and uses \makeLineNumber to decide what to typeset in it. In a quotation environment the left margin is the same, but lines are shifted right by \leftmargin, so we have to cover this space. Then we typeset another zero width box with contents on its left (\llap{x} does the same as \makebox[0pt][r]{x} but it's more efficient) and then we issue the \hss command for telling TeX that this whole business will not occupy any space (so it can stay in a zero width box without overfilling it).

"Solution" for paragraph mode

I'm afraid that reproducing that kind of book requires a lot of manual intervention. Here is a partial solution:

\documentclass{article}
\usepackage{lineno,kantlipsum}

\newenvironment{quotedlines}[1]{\leavevmode\rlap{`}\kern.5em#1{\parfillskip=0pt\par}%
  \begingroup\leftskip=.5em
  \def\makeLineNumber{\rlap{`}}\linenumbers\noindent\ignorespaces}
  {\par\endgroup}

\begin{document}
\kant*[1]
\begin{quotedlines}{Here starts}
\kant*[2]
\end{quotedlines}
\kant[3]
\end{document}

In the argument of quotedlines you put the end of the line (what goes after the quote mark at the beginning).

enter image description here

share|improve this answer
3  
Really nice solution! –  Gonzalo Medina Dec 3 '11 at 15:11
1  
@egreg Can you explain \hskip \llap and \hss in this context? TIA. –  cjorssen Dec 3 '11 at 15:14
    
@BillTozier: egreg just put in a non-trivial effort to solve your problem, and if the answer is not correct then it's pretty close. Please be careful to phrase your comments in a courteous fashion if you want your problem to receive continued attention. –  qubyte Dec 3 '11 at 15:40
1  
kantlipsum is my new favourite package! –  Seamus Dec 3 '11 at 16:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.