Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

12
votes
2answers
831 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
99 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
75 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 ...
0
votes
0answers
14 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 ...
2
votes
2answers
38 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 ...
2
votes
2answers
72 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
0answers
25 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 ...
0
votes
1answer
27 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
17 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 ...
0
votes
1answer
28 views

In biblatex (and fnpct) the feature of moving around punctuation breaks if using color commands over it

Biblatex by default (autopunct = true) moves punctuations around for superscript citation. However, changing the color of the superscript by \textcolor or by \color (need extra grouping) breaks this ...
2
votes
1answer
39 views

How to change \autocites delimiter (semicolon) when empty page specifier in postnote?

I've been trying to solve the following problem. Consider this example line. I presume the existence of some given document main.tex and some .bib file. \documentclass[14pt, project, twoside]{...
1
vote
1answer
46 views

Replace colon with comma before pages in article type with biblatex-chicago

Normally, Chicago-style references produce the following structure for articles: Lastname, Firstname. "Article Title." Prestigious Journal 24 (2019): 1–78. However, I need the colon after the ...
3
votes
1answer
17 views

BibLaTeX Punctuation after parentheses

If an article title ends with .) the comma that is supposed to follow isn't there. If there is only a closing parenthesis there is also the comma. See the screenshot below. How can this be fixed? \...
1
vote
1answer
22 views

\foreach iterates through list as one argument? - Help please

My question is very simple. The following lines \documentclass[10pt,german]{article} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{pgffor} %foreach \expandafter\xdef\csname ...
1
vote
1answer
40 views

How to deal with sentence-level parentheses ending equations?

Say you want to make a remark on-the-fly, which involves a formula too big to be put online, but this formula is supposed to end your sentence (as in, for instance, if we let How do you deal with the ...
1
vote
1answer
74 views

LuaTeX an 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 ...
0
votes
0answers
22 views

Change the style of decimal point in siunitx [duplicate]

Consider this example: \documentclass{article} ...
4
votes
1answer
75 views

Japanese quotation marks do not display as full-width

When I use Japanese quotation marks at the start of a line, the whitespace at the beginning of the character seems to get cut off, moving the quotation mark half a space forward. This puts the text ...
2
votes
3answers
34 views

Smart \footnotemark macro: Swap if inserted before punctuation character

For obvious reasons, it is a good practice (actually the correct way to do it) to place footnote markers after the punctuation marks, this is: Incorrect: This is a statement1. This is a statement2, ...
0
votes
0answers
33 views

How can I get LuaLaTeX to turn three hyphens into an em-dash? [duplicate]

For some reason, LuaLaTeX is outputting an en-dash for both -- and --- for me. MWE: test.tex: \documentclass{article} \begin{document} blah-blah blah-...
2
votes
1answer
102 views

Tex Gyre Bonum font

I'm writing a document using Tex Gyre Bonum as roman font and Tex Gyre Bonum Math as math font. But these fonts have different commas. So, commas in equation environments are not equal to commas in ...
1
vote
1answer
29 views

How to set single spacing after punctuation in bibliography section using apacite?

I am working in APA6 class option, and with the apacite citation package. I want to have strict single spacing after punctuation / between sentences. In text, I used the \frenchspacing command. ...
1
vote
1answer
29 views

PGFPlots grouped bar chart with error bars providing additional information above, convert point to string in comma for display

How can I get comma as a decimal separator in my upper axes (the number above the major grid)? All suggestions to improve the graph are warmly welcomed. basic requirement using .csv data with (long)...
0
votes
1answer
46 views

Use text font for punctuations in xelatex with unicode-math

Suppose I have the following declarations in the preamble \usepackage[utf8]{inputenc} \usepackage{unicode-math} \setmathfont{My Best Math Font} \setmainfont{My Best Font} and then some texts like ...
0
votes
1answer
176 views

format inline Sexpr number to include a comma

I have the following inline code to call a value from R code. The value called for example is 8000. I would like to format the value so there is a comma for the 1,000 place - for example 8,000. The ...
11
votes
2answers
505 views

LuaTeX and em dashes

LuaLaTeX is not inserting em dashes unless there is space around the triple dash. It works fine when using a unicode em dash, or explicitly using the \textemdash macro. Here is a MWE: \documentclass{...
0
votes
2answers
113 views

Remove the dot after section number in ToC [witouth any package] [duplicate]

I'm using the book class and I want to remove the final dot in the section number, i.e, I have 1. Chapter Name 1.1. Section Name 1.1.1. Subsection Name 1.1.1.1. Subsubsection Name I want 1. ...
0
votes
0answers
38 views

Semicolon in node label in Tikz [duplicate]

I am trying to have a label with the text "I(X;Y)". However, it fails to compile due to the semicolon. Is there any way to escape the semicolon? Edit: The following code works perfectly \...
2
votes
1answer
58 views

How to remove the comma before a post-note in citations using biblatex?

I'm managing my references using biblatex. Sometimes I need to write a post-note, but the citation appears with a comma (´,´). There is a way to erase it? \documentclass[12pt,a4paper]{article} \...
0
votes
2answers
52 views

Delete point after “author” that is not a person

I want to cite a corporation as an "author" in my references. However, there is always a point between the "author" and the "year" in the references. Normally this makes sense, as the typical author ...
2
votes
1answer
65 views

Removing comma after shorthands in biblatex-chicago

This is a follow-up question to a previous question I asked about "How to tweak volcite in biblatex-chicago to cite volume and page using Arabic numerals separated by a colon". I would like to know ...
0
votes
0answers
23 views

Punctuation issue on Harvard style [duplicate]

I have the following style: Anderson, E. (1988), 'Transaction costs as determinants of opportunism in integrated and independent sales forces', Journal of Economic Behavior & Organization Vol. ...
1
vote
2answers
75 views

Centralizing the dots in equations

Folks, forgive me for answering this question. I'm unable to centralize dots in equations though i believe that the script is right. Could you please advise on the following: \begin{equation*} \begin{...
4
votes
1answer
53 views

Quotation marks based on langid with biblatex

I use biblatex with the csquotes and the babel package. Sometimes words in titles are set in qoutation marks. Normally I use \enquote for quotation marks. I want the style of the quotation marks in ...
5
votes
1answer
356 views

Oxford comma only for three or more authors, but not for exactly two authors

I want to insert the Oxford Comma only if an entry has 3 or more authors, but not if the entry has exactly two authors. e.g. A and B (1999) [NO COMMA] A, B, and C (1999) [COMMA before C] I ...
0
votes
0answers
15 views

Relation signs compiled strangely [duplicate]

I met a strange behaviour. This small piece of code: \documentclass{article} \begin{document} <> \end{document} is compiled as Is it normal? Could you give an explanation? I use TeXLive ...
1
vote
1answer
64 views

Remove punctuation between url and addendum

Could someone please give me a hint on how to get rid of the dot after the url before the addendum in the bibliography list? Here's my MWE: \documentclass[12pt,a4paper,parskip=half,abstracton]{...
15
votes
2answers
1k views

Very long dashes in Victorian-era book

I am trying to faithfully recreate the typographic style of a Victorian era book. One thing I've noticed is the extensive use of dashes: em-dashes are everywhere, for example. Beyond the em dash ...
0
votes
1answer
60 views

biblatex no colon after isbn

I'm using biblatex with the ext-authoryear style. What I want to achieve is that there's no colon after the ISBN Entry. So it should look like: Cockburn, Alistair (2005): Writing Effective Use ...
2
votes
1answer
86 views

In a reference: how to remove the comma when the paper title ends with a question mark

I use the jf.bst bibliography style and the jf.sty package. I am trying to solve two issues related to the formatting of bibliographic entries. 1. How to remove the comma after the title field if the ...
3
votes
2answers
58 views

Formatting the text entered with commands in custom environment

I want to create some kind of a to-do list. Here is a simple example: \documentclass{article} \newenvironment{myEnv}[1]{% \begin{center}% --- #1 ---% \end{center} }{} \newcommand*{\...
2
votes
1answer
125 views

Better solutions for a 2em-dash

For anonymization, I want to remove people's names. I have read that the 2em-dash is fine for this. Since there's no ---- for that, I googled a bit about the options. There's a source (TUGboat, ...
3
votes
1answer
194 views

Can't typeset guillemets in Russian beamer presentation

I can't seem to produce guillemets (angle quotes) inside of a beamer frame, I get the error message <to be read again> < l.9 \end{frame} for the following MWE \...
1
vote
1answer
45 views

Suppressing comma after question mark in one index entry

I want to index the name of a book that ends in a question mark. What I get is \textit{What is Life?}, 27, but what I'd like is \textit{What is Life?} 27. In other words I want to suppress the ...
3
votes
2answers
147 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 ...
2
votes
1answer
39 views

Using stringstyle with quotation marks does not fit properly using listings package

Please consider this MWE with stringstyle=\bfseries\color{blue}: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{color} \usepackage{enumitem} \usepackage{...
2
votes
1answer
50 views

How to make biblatex-chicago put a footnote before punctuation?

I use the \autocite command from the package biblatex-chicago for referencing, and I use the \footnote command for other footnotes. Usually, I want footnotes to appear after punctuation, but in rare ...
0
votes
1answer
106 views

How to remove commas from between multiple authors (Biblatex)

I am using numeric-comp style. As can be seen from the quoted text, between authors commas and full-stops are together, ie Smith, J., Berry, M., I dont know if this is normal style in Biblatex but ...
4
votes
2answers
284 views

Comma should come in italic font inside equations

My tags are as follow: \documentclass{book} \usepackage[T1]{fontenc} \usepackage{txfonts} \begin{document} Test \quad $a,b$\quad \textit{a, b}\quad a, b \end{document} In this, I need to get the ...
0
votes
1answer
62 views

How to get a separator symbol longer than emdash (maybe a quadruple hyphen)? [duplicate]

I am trying to typeset a table, wherein some headers do not apply to a particular row, i.e. for certain cells. I do not want to use "N.A". According to the package author of booktabs, it is ...