# Tag Info

## New answers tagged punctuation

1

Indeed, the font family name has changed. You can use \newcommand*\quotefont{\fontfamily{LinuxLibertineT-TLF}} % selects Libertine for quote font I suggest also to change \kern0pt into \kern4pt or something else that avoids the quote bumping in the first character. Note that \RequirePackage is not needed: the option to xcolor can be passed in the ...

1

Neither option is correct, for several reasons. "Between 1–5 cookies" reads as "between one to five cookies", which doesn't make sense. You mean either "Between 1 and 5 cookies" or "1–5 cookies". Most style guides for English recommend writing small numbers (less than ten, twenty or a hundred, depending on who you ask) in words, rather than in ...

12

Why not go the SI way ;) \documentclass{article} \usepackage[detect-all]{siunitx} \begin{document} This is a range from \numrange{1}{10}. This is a range from \numrange[range-phrase = --]{1}{10}. \end{document} Here is some more. \documentclass{article} \usepackage[detect-none]{siunitx} \sisetup{range-phrase = \text{--}} \begin{document} This ...

2

In LaTex, the hyphen used for ranges like pages of a book, etc. is referred to as an en-dash and is best written as: She has between 1--5 cookies on her at all times. It is also possible to use the math mode as follows but the first approach is preferable: She has between $1$--$5$ cookies on her at all times. Or: She has between $1\textup{--}5$ cookies ...

4

Why use math mode? I would do as suggested here and write She has between 1 to 5 cookies on her at all times. From wikipedia (Dash article): Various style guides (including the Guide for the Use of the International System of Units (SI) and the AMA Manual of Style) recommend that when a number range might be misconstrued as subtraction, the ...

5

Maybe I'm missing something but why not define your active characters to use \MakeBlockQuote instead? I guess this doesn't allow you to specify inner/outer marks specifically but if csquotes is taking care of the nesting in any case, perhaps that is not too much of a problem. (I define both outer and inner but never actually use the inner ones for just this ...

6

Some years ago, the package xltxtra was recommended for usage with XeLaTeX, but it isn't any more. To the contrary, it is not recommended to load xltxtra, unless you really need its extra functions (you usually don't). The \setromanfont command has been deprecated some years ago, favoring the clearer command \setmainfont. The Mapping=tex-text option has ...

0

You can use biblatex and more specifically biblatex-apa, as it is easy to customise. Here is an example where you'll find the lines of code to add to your preamble. Note that the syntax to produce a bibliography is somewhat different with biblatex: \documentclass[12pt,american, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...

4

the question isn't very clear but \newcomamnd\macroX[1]{} appears to do what you ask.

4

Here is a solution the does not disable the guillemets in French documents. Thanks to Giordano and David Carlisle for providing all the pieces necessary to assemble the information. AUCTeX thinks any document that loads the class you're using (call it foo.cls) is in French. It thinks that because it has compiled foo.cls into a file (foo.el or foo.elc) that ...

10

I'm not sure I understand the problem. Here's how it's treated with the macro \@addpunct made available by amsthm: \documentclass{article} \usepackage{amsthm} \makeatletter \newcommand{\macroaddingperiod}[1]{% \emph{#1}\@addpunct{.}% } \makeatother \begin{document} Here we use \macroaddingperiod{on some text} Should we add \macroaddingperiod{a period ...

1

Disclaimer: I discovered regular expressions less than a month ago. This is the easiest way I can think of, since, as others have said,  and ' are ligatures in the font. This solution works at least in your example. You need a system that lets you use regular expresions. In my case I used my text editor. Here you have, for instance, an online one (I don't ...

3

I found a reasonable workaround here on SuperUser (by giordano). The code that fixed it was: (add-hook 'TeX-language-fr-hook (lambda () (setq TeX-quote-language ("francais" "" "''" ,TeX-quote-after-quote)))) Obviously, this doesn't solve the underlying problem of why AUCTeX is entering French mode when it doesn't need to, but it does put ...

1

Punctuation should never be separated from the preceding word (unless you're French). So Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis\DD{} facilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet\DD{} mi nec ante. is how you should input the code. Note {} in order to have a space after the symbol, ...

2

If there is to be no space before \DD (that is, it is exactly like punctuation) then use your definition as follows: \documentclass{article} \usepackage{xcolor} \newcommand{\DD}{{\color{red}$\circ$}} \begin{document} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lovbabortis\DD\ facilisis sem. Nullam nec mi et neque pharetra sollicitudin. ...

Top 50 recent answers are included