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
1
vote
1answer
73 views

Why is hyphenation not tried for words followed by em-dash?

Consider the following mystory.tex: \tolerance=10000 \hsize=.7in \leavevmode\nobreak\hskip0pt Drofnats---or ``R. J.,'' \end This is the log: (mystory.tex Overfull \hbox (17.41133pt too wide) in ...
0
votes
0answers
39 views

How to modify apsrev.bst to include a period at the end of the bibliography entry?

I am using apsrev as the bibliography style file. I want to add a period at the end of the bibliography entry, i.e., "Jones et al. (1990)." How do I modify the style file?
1
vote
1answer
23 views

Pipe symbol not converted through TeX4ht

My codes are follow: \documentclass{book} \begin{document} This is for test | Test \end{document} If I convert this through TeX4ht then the pipe symbol | converted as emdash, how can I fix this? ...
9
votes
1answer
171 views

Commas in \cases - typographic standards?

I'm wondering what are the typographic standards for the placement of commas/dots in the following (and similar) case:\ The first option looks nicer, the second seems to be more logically consistent.
1
vote
1answer
54 views

Removing spacing between commas in multiple citation

I am trying to remove the spacing between citation numbers in my manuscript using elsearticle.cls template, including natbib package, and model1-num-names as the bibliographystyle. I have tried using ...
0
votes
1answer
57 views

Typesetting commas in bracket vector notation

This is my first post so please go easy on me. I am writing a vector using the bracket notation as shown below: \[ \vec{u} = \left\langle \frac{1}{10} , \frac{1}{3} \right\rangle \] The comma ...
0
votes
0answers
9 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 ...
1
vote
3answers
67 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 ...
2
votes
1answer
45 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. ...
2
votes
1answer
88 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
55 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 \...
0
votes
0answers
82 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 ...
0
votes
2answers
28 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, ...
0
votes
0answers
45 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
32 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 ...
7
votes
2answers
223 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
68 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 ...
0
votes
3answers
89 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) ...
3
votes
1answer
36 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 ...
0
votes
0answers
22 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
0answers
33 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 ...
0
votes
2answers
79 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. (...
1
vote
1answer
76 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
124 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
100 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
88 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 ...
12
votes
2answers
934 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
189 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
84 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
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 ...
2
votes
2answers
78 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
130 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
61 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
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
23 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
37 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
63 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]{...
3
votes
1answer
120 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
35 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
23 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
42 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
119 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 ...
0
votes
0answers
27 views

Change the style of decimal point in siunitx [duplicate]

Consider this example: \documentclass{article} ...
4
votes
1answer
106 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
49 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
38 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
180 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
80 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
77 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
59 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 ...