23

Define 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@...


21

I'm not quite sure what's ›correct‹ and ›incorrect‹ in your perspective, or what exactly you find problematic with the result you're currently getting. Maybe a minimal example would be helpful. Here's what I do, and what has always (i.e., for about 5 years now) given me output that's correct by my standards. Over time, I've reduced the number of different ...


17

The quotes of the font looks like this. That's the font design. \documentclass[english]{article} \usepackage{babel} \usepackage[T1]{fontenc} \usepackage[autostyle]{csquotes} \usepackage{mathpazo} \begin{document} \enquote*{Test} \end{document}


14

Assuming you are using flyspell, yes it is possible! The package flyspell-babel.el should do exactly what you want: read inline language changes for babel, and start a flyspell process for that language. According to the documentation: The parsing done by this package has its limits limited, and so it will not work with arbitrary LaTeX code. I hope ...


14

You simply have to tell biblatex to use the "American punctuation" for the nynorsk language, that is add the following lines in your preamble: \DefineBibliographyExtras{nynorsk}{% \uspunctuation% } MWE: \documentclass{article} \usepackage{filecontents} \usepackage[nynorsk]{babel} \usepackage[style = american, norwegian = quotes]{csquotes} \usepackage[...


14

Your first example and your second are actually quite different errors. The first is your fault (see Davids answer), but the second is a bug in lilyglyphs lua code. But the problem is not the quote in \directlua. As the command is defined in lilyglyphs the catcode of the " is frozen there and so not problematic. lilyglyphs uses tex.sprint to print the ...


13

You can use csquotes: \documentclass[spanish,french,ngerman,american,british]{article} \usepackage[autostyle]{csquotes} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} \begin{document} \enquote{UK English} \selectlanguage{american} \enquote{US English} \selectlanguage{spanish} \enquote{Spanish} \selectlanguage{french} \enquote{...


13

It is not csquotes fault, it is a problem in the OT1-fonts: The kerning is missing if the quote symbol is entered directly and not through a ligature: \documentclass{article} \begin{document} of'' of\char"22 of\textquotedblright \fontencoding{T1}\selectfont of'' of\char"11 of\textquotedblright \end{document} So this is another reason not to use OT1-...


12

I find this way is very convenient: package: \usepackage[frenchb]{babel} in text: \og text \fg{}


12

The package csquotes can be responsible for deciding when it is necessary to switch from an in-line quotation to a 'block' or 'display' format. For this to work, you need to use the quotation commands it provides that are designed to to this --- notably those commands that have block in their name: \blockquote \foreignblockquote \hyphenblockquote \...


11

You can use \EnableQuotes to get the quotes back. But I personally prefer the \MakeAutoQuote command with an non-ascii arguments: \documentclass[article,12pt,a4paper,openany,oneside]{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english,danish]{babel} \usepackage[autostyle, %if quote style should change with language ...


11

I don't actually think blockquote is an environment, it's meant to be used as a macro, i.e. \blockquote{the quote}. csquotes defines a displayquote environment for this sort of thing, and redefining \mkbegdispquote to include \itshape makes it italic. \documentclass[paper=a4, fontsize=11pt]{scrartcl} \usepackage{csquotes} \renewcommand{\mkbegdispquote}[2]{...


10

I wrote the newverbs package with such an application in mind, i.e.\ quote a verbatim text. It provides, beside other things, a \qverb macro for quoted verbatim material. It is compatible with csquotes and will us its start and end quote marks. \documentclass[ngerman]{article} \usepackage{babel,csquotes} \usepackage{newverbs}% load after csquotes % If you ...


10

adding \show\mkbibemph \show\mkbibquote produces > \mkbibemph=\protected macro: ->\emph . l.6 \show\mkbibemph ? > \mkbibquote=\protected macro: ->\enquote . l.10 \show\mkbibquote so the biblatex ones are defined to expand to the normal ones by default.


10

Indeed quoteblock was removed in version 5.0 of csquotes. The behaviour is controlled now by \mkblockquote for \blockquote and relatives, and by the pair \mkbegdispquote and \mkenddispquote for the environment displayquote and relatives. All these have to be redefined: \documentclass{article} \usepackage[british]{babel} \usepackage{csquotes} % for ...


10

You need to pass the autostyle=true option to csquotes: \documentclass{memoir} \usepackage{xifthen, ifpdf, ifxetex} \ifxetex \usepackage{polyglossia} \setdefaultlanguage{spanish} \setotherlanguages{greek, english} \else \usepackage[greek, english, spanish, es-lcroman]{babel} \fi \usepackage[autostyle=true]{csquotes} \begin{document} \enquote{Quoted ...


10

Sorry but since you ask, I'd say it was your fault:-) Having made a character active you should have known to make it safe before passing to Lua. For example: \documentclass{article} \usepackage{csquotes} \MakeOuterQuote{"} \EnableQuotes \begin{document} \directlua{print(\string"hello\string")} \end{document} See Ulrike's answer for the second example.


9

For the Harvard citation style I'm using something like this right now: \blockquote[{\cite[109]{key}}]{Some interesting quote.} For me it delivers the desired result: Quote (Name + Year, p. 109) It should also work for \textquote, but mind the extra {} inside the [cite] option from the standard form: \blockquote[cite][punct]{text}tpunct Without them it ...


9

The csquotes manual suggests to redefine \mkblockquote, see section 8.7 Hooks for Quotations and Citations. One possibility would be \renewcommand\mkblockquote[4]{\enquote{#1#2#3}#4} which gives the same effect as in this answer. The four arguments of \mkblockquote refer to \mkblockquote{<text>}{<punct>}{<tpunct>}{<cite>} which ...


8

You are on the right track. It's always best practice to use semantic markup in text and define the layout somewhere else (preamble, config file, …). csquotes is a package, that can do this for you. It's even language aware (if set by babel or polyglossia). But bear in mind, that there are several semantically different things, that are usually or ...


8

Note that the csquotes package allows to define an optional argument for citations in \blockquote and this one can be defined to be a footnote. So, you just have to add \renewcommand{\mkcitation}[1]{\footnote{#1}} in the preamble and use \blockquote[bla...]{\lipsum*[1]...} instead of \blockquote{\lipsum*[1]...}\footnote{bla...} Complete MWE \...


8

Although the csquotes package allows you to define certain characters as "active" quotes, as your sample document does for the " character, the single quote character cannot be so used, since it is a reserved character in TeX. Since you mention that you are using text from an MSWord document, a better solution in this case would be to encode your source ...


8

The quoting mechanism using " conflicts with the Babel shorthands that German polyglossia sets up. This actually happens also with pdflatex and babel, where the " used for quoting simply kills the babel shorthands without warning. So the method can be recommended neither with babel nor with polyglossia. If you really don't need the shorthands, do \...


8

csquotes has predefined styles based on the language setting. If your language is british, then you get single quotes. Otherwise you could define them manually. You can alter them using \DeclareQuoteStyle as described in the manual on pp. 14--15 (texdoc csquotes). \documentclass{article} \usepackage[british]{babel} \usepackage{csquotes} \begin{document} He ...


8

If you want to keep csquotes features, simply switch between the two styles with \setquotestyle[quotes]{german} and \setquotestyle[guillemets]{german} MWE: \documentclass{memoir} \usepackage[german]{babel} \usepackage[ german = guillemets,%quotes,<- I'd like to have both quot. marks in the same document autostyle = true, autopunct, ...


8

The problem comes from csquotes. Either set the quoting style on loading, via \usepackage[style=english]{csquotes} or if this is only a problem in the bibliography itself, issue \setquotestyle{english} just before \printbibliography. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[style=english]{...


8

The characters you're mentioning show that the document is using the obsolete package aeguill. If you really want to get that shape, you can load the necessary fonts and change the definition of \guillemotleft and \guillemotright to use wncyr; but be aware of the fact that you're using guillemets in Cyrillic style. \documentclass{article} \usepackage[T1]{...


8

You can add csquotes end of argument marker to the xspace list of exceptions: \documentclass{article} \usepackage{csquotes} \usepackage{xspace} \makeatletter \xspaceaddexceptions{\csq@qclose@i} \makeatletter \newcommand{\test}{test\xspace} \begin{document} \test. \test, ``\test'' \test \enquote{\test} \test \enquote{\test}. \end{document} But note ...


8

You could change the french style. But be aware that \enquote could e.g. be used in the bibliography. \documentclass[12pt, a4paper, oneside]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[french]{babel} \usepackage[autostyle]{csquotes} \DeclareQuoteStyle[quotes]{french} {\itshape\mkfrenchopenquote{\...


Only top voted, non community-wiki answers of a minimum length are eligible