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.

0
votes
1answer
24 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
29 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
27 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
21 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
39 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
73 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
61 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
33 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
30 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
77 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
22 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
25 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
42 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
43 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
479 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
71 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. ...
1
vote
0answers
33 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
45 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
51 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
59 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
22 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
70 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
47 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
323 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
59 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]{...
14
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
57 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
76 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
114 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
190 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
42 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
142 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
37 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
44 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
90 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
276 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
48 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 ...
3
votes
2answers
92 views

Custom command with space and following punctuation?

I want to write a custom command to produce a species name but I am having trouble getting it to work with punctuations. The specifications for my desired output are: Text in italic font No ...
1
vote
3answers
144 views

Auctex: replacing quotation marks with proper TeX ones

I'm LaTeX-ifiying a document produced by exporting an MS Word document into plain text. I'm wondering if there's some automatic method for replacing all the double quotes, so that "quoted text" is ...
12
votes
3answers
406 views

reflectbox in emphasis environment

I try to get irony punctuation mark in LaTeX with CMU font. This symbol is in Unicode: ⸮ (U+U+2E2E) So I search a way to get a correct rendering with CMU of this symbol. But the problem is the ...
0
votes
0answers
30 views

How to hyphenate word including a dash in list of references?

I have a concatenated word that contains a dash in the title of a biblatex entry. The problem is that I cannot add the correct hyphenations manually to the entry since Zotero seems not to allow for ...
2
votes
0answers
39 views

pdfLaTeX solution to en dash kerning around numbers with newtx font

I often write number ranges using en dashes, e.g. 1--2. However, I've noticed that whenever I encounter the number 4 on the right end of an en dash, the two characters appear so close to each other it ...
2
votes
1answer
54 views

Failure of proper quotation marks with pxfonts

\documentclass{article} \usepackage{pxfonts} \begin{document} `' \end{document} gives improper quotation marks, as opposed to \documentclass{article} %\usepackage{pxfonts} \begin{document} ...
0
votes
1answer
25 views

Biblatex entry type @online: endash in field year

I want to add an endash to the year field of an online resource @Online{Galebach:2002, author = {Brian Galebach}, title = {Collection of n-uniform tilings}, year = {2002-...
0
votes
1answer
44 views

How to use biblatex's \addperiod outside the bibliography?

Sometimes the \addperiod command from biblatex could be useful in other situations as well. How to use it outside the bibliography? M(N)WE: \documentclass{book} \usepackage{biblatex} \begin{...
3
votes
1answer
330 views

What is the difference between “-” and “--” in text mode? [duplicate]

I'm interested in all the difference, that means: appearance: If there are common rules across fonts like distance from baseline, length and so on. typographical rules: If they are handled ...