The recommended way of solving nested quotations in Norwegian is to use «» for the outer level and then alternating between ‘’ and “”. (Source)
Is it a large undertaking to do this with csquotes
?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityDefine a new quote style and add appropriate level tests for the outer quotation marks:
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[maxlevel=3]{csquotes}
\makeatletter
\DeclareQuoteStyle{threelevel}
{\ifnum\csq@qlevel<2 \guillemotleft\else\textquotedblleft\fi}% opening outer mark
{\ifnum\csq@qlevel<2 \guillemotright\else\textquotedblright\fi}% closing outer mark
{\textquoteleft}% opening inner mark
{\textquoteright}% closing inner mark
\makeatother
\ExecuteQuoteOptions{style=threelevel}
\begin{document}
\enquote{Jeg (temmelig hånlig): \enquote{I setter uvanlig pris på Dürer --
først kommer \enquote{Som jeg vil fryse etter solen} og nå sanduret fra Melancolia.}}
\end{document}
\guillemotleft
would be expanded before the \ifnum\csq@qlevel<2
test is performed. Happily, the expansion of \guillemotleft
doesn't start with a digit: you can guess what would happen. The spaces I added will be ignored.
\tw@
instead of 2
?
\MakeAutoQuote{«}{»}
in your solution makes it easier to use since you can write «some text»
instead of \enquote{some text}
.
May 7, 2014 at 7:28