Questions tagged [punctuation]

{punctuation} is for questions involving the typesetting of punctuation marks. If your question relates to punctuation in particular document parts such as e.g. bibliography formatting or section formatting you should also add the appropriate tag for that topic.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Changing punctuation for book references using IEEEbib

Writing my thesis here and the thesis office insists on having book references be listed with a colon after the address instead of a comma. So I would need this: Chris J. Myers, Engineering genetic ...
25
votes
2answers
5k views

biblatex: remove commas between last and first names in bibliography

I am new to biblatex, and I need to create a bibliography with the authors' names with last names followed by pure initials. Using the style=numeric, firstinits and terseinits options along with: \...
1
vote
3answers
65 views

Preventing a line break between an en dash and a paren

When referring to a person who is still alive I give the birth year followed by an en dash all in parentheses, as in Jim Foo (1977--). At times this results in a line break between the en dash and ...
53
votes
2answers
4k views

Is there a LaTeX implementation of Bazin's punctuation marks?

In 1966 Bazin proposed 6 novel punctuation marks for acclamation, authority, certainty, doubt, irony, and love: Is there a LaTeX package that provides macros of Bazin's punctuation marks? There are ...
2
votes
1answer
37 views

Foreign quote with outer language quotes

csquote's \foreignquote{<inner lang>}{<quote>} command switch to <inner lang> before enquoting, so as a result, the enclosing quotes are those configured for <inner lang>. E.g. ...
0
votes
2answers
418 views

Remove some commas from “ModernCV”

You can see in this picture (made by ModernCV ) that the commas appear automatically between fields I would like to remove some commas without changing the definition of this macro.
2
votes
1answer
86 views

Disappearing left quotation mark in `\texttt{}` when using babel (norwegian)

When using the package babel with the norwegian option (\usepackage[norsk]{babel}), double-quotation marks (") in \texttt{} disappear if they occur before certain letters (e.g., b, d, and f), but not ...
2
votes
2answers
54 views

Macro that ignores the next dot character if its expansion ends with dot character

In short, I want the following ... \def\foo{??????????????} \def\bar{bar} A \foo-foo, a \foo, and a \foo came into a \foo. Says the \foo: Why the \foo? \def\bar{baz.} A \foo-foo, a \foo, and a \...
19
votes
4answers
18k views

Escape “> and <”

I have the following piece of text which I want to output literally: <<"Welcome">>. However it's converted to those funky quotations. I've been trying all sorts of things with \ mostly but ...
0
votes
0answers
81 views

Unwanted underscore appears in `\path` text after dash

An unwanted underscore displays after the dash in the text of \path: \path{{hyphenated-text}/directory}. displays in HTML output as: hyphenated-_text/directory Any ideas on how to avoid this ...
4
votes
2answers
193 views

$x_1, \dotsc, x_n$ vs. $x_1$, $\dots$, $x_n$

For example, if I want to say something like Let x_1, ..., x_n be real numbers. should I use Let $x_1, \dotsc, x_n$ be real numbers. or Let $x_1$, $\dots$, $x_n$ be real numbers. Note that if ...
0
votes
2answers
27 views

Colon (:) instead of comma when using article entry type

I'm currently having a problem with Biblatex delimiter after the author. I want to have <author>: <title> instead of <author>, <title>. With the following commands it works, ...
25
votes
1answer
51k views

«» resemble too much \ll \gg

I am typesetting a translation of some ancient poetry book from another language (namely Finnish). In the text there are several quotes which uses the Guillemets (« and »). Since I am using a UTF-8 ...
0
votes
0answers
38 views

Punctuation spacing in math that ends with a differential \dd{}, and the physics package

It seems the physics package adds an extra (thin) space after \dd{x}, before my punctuation (usually "," or ".") and I don't want this. This is a common scenario for me, especially if I'm displaying a ...
2
votes
0answers
30 views

Should multiple cities in publisher names, like “Amsterdam–New York”, use en-dash or hyphen? [closed]

Often, publishers list multiple cities in their address, like “Amsterdam–New York–London”; these appear very frequently in bibliographies. Should these be typeset with an en-dash, or a hyphen, or is ...
6
votes
2answers
185 views

Automatically end list item with proper punctuation (semicolon, period)

If I have a list using itemize, I want to automatically end each \item with a semicolon (for all but the last item) or a period (for the last item). For example: \begin{itemize} \item One \item ...
0
votes
1answer
65 views

How to use apostrophes and quotation marks in biblatex

Firstly. in my reference, it supposes to be 'Composition', but it turns up to be ’Composition’ below: title={NoiseSpeech, a noise of living bodies: towards Attali's 'Composition'} Secondly, why ...
1
vote
1answer
108 views

LuaTeX and the minus / hyphen sign

In light of the explanations given in LuaTeX and em dashes "\automatichyphenmode=1 avoids the problem by not converting the hyphen to a discretionary in a number of cases." and the LuaTeX Reference ...
9
votes
2answers
244 views

Upright punctuation independent from font style

Is there any way to make all the punctuation (comma, period, colon, semicolon, etc.) in roman even if the current active style is italic? I am using mathtime package and fonts for my setup and the ...
0
votes
3answers
84 views

Rectangle in tikz

Can you help me. to obtain this: I tried to do this: \documentclass[tikz,border=7mm]{standalone} \begin{document} \begin{tikzpicture}[scale=3] \draw (0,0) rectangle (2,1) coordinate(C) ...
96
votes
6answers
46k views

How to force LaTeX not to break the line after a hyphen “-”?

With ~ we can enforce that no line break occures between two words. But this does not seem to work with special characters. I want LaTeX to enforce not to break the line after the - in (re-)creation. ...
2
votes
1answer
120 views

(Two hyphens != n-dash) even out of math mode

I am not trying to do this in math mode, and yet a pair of consecutive hyphens \documentclass{article} \begin{document} \sffamily\bfseries\itshape How are you?\\ {\emph --Bob} \end{document} are not ...
11
votes
2answers
1k views

csquotes: punctuation and quotation marks

csquotes automatically includes or excludes the punctuation marks in or from the quotation depending on the language specified in the preamble. This can be adjusted individually by commands like \...
3
votes
1answer
35 views

How to create ligatures for dashes and quotes in cm-unicode fonts in plain xetex?

Process the following file with xetex: \font\tenrm="[cmunrm]" at 10 pt \tenrm ``A''---b--c. \end This is the log: This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016/Debian) (preloaded ...
3
votes
1answer
335 views

lacheck doesn't like factorials?

I have the following code. \documentclass{standalone} \begin{document} $n!$ \end{document} Running lacheck on it results "test.tex", line 3: punctuation mark "!" should be placed after end of math ...
0
votes
0answers
20 views

cleveref: How include Oxford comma in \cref argument having several items? [duplicate]

I always use the Oxford comma — the comma between the penultimate item and the last item in a list of three or more items — as in: The sailors were Wynken, Blynken, and Nod How can I get ...
0
votes
2answers
70 views

Add comma between author and year with et al

I am using biblatex with style=authoryear and maxcitenames=2. For a reference with more than two authors \cite command produces Erkus et al. 2010 and \textcite command produces Erkus et al. (...
0
votes
0answers
32 views

Latex use straight quotes by default [duplicate]

I understand that \textquotesingle can be used to insert straight quotes into text. Is there an option available to convert all quotes ' and " throughout the entire document into straight instead of ...
1
vote
1answer
73 views

Proper way to typeset the phrase “x-y plane” in US English [closed]

What's the right way to typeset the phrase "x-y plane" in US English? A full sentence example would be something like: Our new detector has incredible resolution in the x-y plane, but provides no ...
3
votes
2answers
121 views

Stylized punctuation marks for mathematical formulas

I'm looking for a a set of stylized punctuation marks for use in mathematical formulas. Package stix has a symbol \typecolon that looks like this This is just the kind of thing I am looking for, but ...
3
votes
2answers
1k views

Using a dash (--) in LaTeX Beamer class

I want to use a dash in my beamer presentation, however 4--6 looks just like that in the output (i.e. the -- is not converted to a dash as it usually is). Does anyone know a way around that? Here's ...
36
votes
2answers
25k views

Hyperref + \url: long URL with dashes won't break

I've discovered a rather weird behaviour of PdfLaTeX. In this example \documentclass{article} \usepackage[breaklinks]{hyperref} \begin{document} \url{http://www.emarketer.com/blog/index.php/quick-...
51
votes
2answers
244k views

Display ' apostrophe

Is there a small package free way of implementing something like this in pdflatex and LaTeX? I wish for the outcome of \documentclass{article} \begin{document} `It's a nice day!' \end{document} ...
6
votes
1answer
389 views

biblatex: mismatched quotation marks (italic/roman)

The Chicago Manual of Style says punctuation and quotation marks should match the surrounding rather than the enclosed font (i.e. roman or italic), unless they form part of a title, in which case they ...
3
votes
2answers
98 views

Using quotation marks and exclamation marks

I've got a problem with the combination of (German) quotation marks and exclamation marks in LaTeX. Consider this code: \documentclass[12pt,twoside,a4paper]{book} \usepackage[T1]{fontenc} \usepackage[...
3
votes
1answer
75 views

Removing comma if exactly two authors from *.bst file (natbib) in AIAA paper template

I'm using natbib with a custom .bst file for a conference paper. Unfortunately, the .bst file results in a comma separating the authors names when there are only two authors, and I need to remove this ...
5
votes
1answer
919 views

biblatex punctuation issue when book titles end in quotation marks

The Chicago Manual of Style specifies American punctuation: periods and commas should precede closing quotation marks (§ 6.9). It also specifies that titles within book titles should be enclosed in ...
23
votes
1answer
2k views

listings package changes hyphens to minus signs [duplicate]

The listings package transforms source-code hyphens (-, U+002D) into minus signs (−, U+2212) when using the default proportional fonts, though not when using the default monospaced typewriter font. A ...
13
votes
2answers
1k views

The punctuation signs; comma and dot, below footnote indicator is beautiful in the context of typographic styles?

The norm say: When there are punctuation marks (e.g. a comma, colon or period) at the point where the footnote indicator should be inserted, the indicator is placed after the punctuation in English ...
10
votes
2answers
2k views

csquotes: always enclose blockquote in “ ”

I'm trying to force csquotes to always set a \blockquote in display mode but still enclose the quote in quotation marks, German ones in particular. How can I achieve that? \documentclass{scrartcl} \...
12
votes
2answers
911 views

What is the purpose of : in math mode?

What is the purpose of $:$? We know that in math mode one should write in natural language and not being so strict with math notation. For example: $f:A\to B$ is not "correct", the correct way would ...
3
votes
4answers
160 views

Easiest way to just get quotation marks to do what they should [duplicate]

When I write "test" in latex (TeXStudio), I get this: Clearly this is not what quotation marks should look like. There are a lot of answers on stackexchange about this question, but the ones I've ...
1
vote
1answer
82 views

How do I specify what language I want to use?

In this answer: https://tex.stackexchange.com/a/168625/160474 the author says "I would suggest using a language that does not have the Oxford comma (british for example).". What does he mean by ...
15
votes
2answers
4k views

Changing “and” to “&” and removing Oxford comma in bibliography

I need to change the "and" to "&" and remove the Oxford comma in my bibliography. I saw a solution here for removing the oxford comma that suggests changing the .bst file, but I'd prefer not to do ...
2
votes
2answers
68 views

non-breaking, normal-sized space after period

I know that a backslash will produce a normal-sized space after a period i.e.\ like this and I know that a tilde will produce a non-breaking space, as in Figure~1. What if I want a non-breaking space ...
0
votes
0answers
17 views

In-text citations in LaTeX: list comma needed! (natbib, author-year, chicago-based style)

I am currently finishing a book written in LaTeX and the copy-editor asks me to use the list comma for in-text citations such as "One, Two, and Three 2019" (instead of "One, Two and Three 2019" as it ...
0
votes
0answers
58 views

Changing commas and dots in bst file

I want to change the comma which place after the title (misc) with a dot. This comma is given as pink. (Ağaç Türlerimiz. 11 Mart...) Some authors have two names. I want to put a comma after the first ...
2
votes
2answers
108 views

Punctuation spacing at the end of equation, align or $$

In writing equations, I use to end with commas, dots and whatsoever punctuation separated by a \quad spacer... \begin{equation} sin(x)+cos(x)=a\quad, \end{equation} Since I am going to write ...
0
votes
1answer
37 views

How to replace last comma by dot after last encountered word?

My question is related but with some complication. How to replace last comma by dot after last encountered word? % !TeX program = pdflatex % !TeX encoding = utf8 \...
1
vote
1answer
21 views

How to replace last comma by dot in comma-separated words from datatool's database?

How to replace last comma by dot in comma-separated words from datatool's database? Can it be done without calculating the number of entries in the database? % !TeX program = pdflatex ...