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.
1,050
questions
2
votes
3
answers
219
views
How do I make a command that makes a comma-separated list where all the items are bold?
I want a command that, when given a list of things, outputs a comma-separated list where all the items are bold and with an "and".
For example, if I do \wordlist{one,two,three}, I would want ...
0
votes
0
answers
57
views
How to increase the space between letters and apostrophes? [duplicate]
I use Times Ten Paneuropean and I have to increase the space between some letters and apostrophes: d'A and l'A. How could I do that? This is my MWE:
\documentclass[12pt,a4paper]{article}
\usepackage{...
0
votes
0
answers
21
views
Using an apostrophe with the author command instead of a right single quotation mark [duplicate]
How can I use an apostrophe (0x27 in ASCII) for the author's name?
\author{An Example Author's Name}
With the example code above and \maketitle, the author's name is displayed as An Example Author’s ...
3
votes
2
answers
76
views
Getting straight single quotes in a bibliography
The following MMW ...
\documentclass{article}
\usepackage{fontspec}
\usepackage[backend=biber, style=authoryear]{biblatex}
%\usepackage{libertinus}
%\usepackage{textcomp}
\begin{filecontents}{\...
2
votes
1
answer
135
views
How to add a period after a theorem number?
I'm using the newtheorem command to label "Problems" in a journal manuscript (using this template). However, there is no period after the number assigned to each Problem. How can I get ...
2
votes
2
answers
74
views
Exclamation point inside brackets in bib entry prevents period
I have a bib entry with a typo at the end of its title. I indicate this with [sic!]. This prevents, however, a period from being printed after the title, cf. the MWE below. Without the exclamation ...
4
votes
2
answers
181
views
End Punctuation Checking using LuaLaTeX (like Reg-Ex)
I have need to check each paragraph ending end-period(.) is available or not. If missing need to put end-period LaTeX code \textcolor{red}{.}
As per Automatically adding space before punctuation in ...
8
votes
2
answers
353
views
On Producing Bold Commas in Lettrines When O is a Word
Consider the code (which I compile with lualatex)
\documentclass[12pt]{book}
\textwidth=4.5in
\usepackage{lettrine}
\renewcommand{\LettrineFontHook}{\bfseries{}} % for the initial argument.
\...
3
votes
1
answer
49
views
How to remove the comma seperator between month and year in datetime package
I am using the orignal datetime package out of choice and I want to know how I can remove the comma separator that occurs between the month and year.
Here is my code to view
\documentclass{article}
\...
1
vote
1
answer
28
views
Small non-breaking space in \parencites with pages mentioned
Writing a paper in french, I have a problem with \parencites: the separation between two items is a semicolon (which is great) but it's stuck directly after the first item. I need to add a thin non-...
1
vote
2
answers
22
views
How to define a fixed space between dot and the next word of the following sentence?
The spacing between . and the next word in line differs between the lines.
In this example it is the case for: . Gustav and . Carl.
\documentclass[11pt]{report}
\usepackage[utf8]{inputenc}
\...
0
votes
1
answer
30
views
Hide point after company as author in biblatex
I'm currently facing an issue with biblatex and apa6. When I try to use a company as author (double curly braces or not) there is always a dot behind it in the bibliography.
For example:
Europäische ...
0
votes
1
answer
70
views
Proper dash with XeLaTeX / Lucida Calligraphy
When using the font Lucida Calligraphy with XeLaTeX the dashes do not work correctly: -- gives two small dashes instead of a longer one. How can I repair that?
MWE:
\documentclass[12pt]{scrartcl}
\...
1
vote
2
answers
38
views
How to remove the Oxford comma in natbib bibliography author list using IEEEtranN?
How can I remove the Oxford comma after "S. Author"? I've looked through IEEEtranN.bst, but can't figure out where the comma is added. I'm not using babel as it seems to clash with some math ...
3
votes
1
answer
68
views
Remove oxford comma on title page in German apa7
I'm using the apa7 package in LaTeX. In the German language, we do not have the oxford comma (eg. ", and") when we list multiple authors. However, even with babel set to ngerman, I get an ...
2
votes
1
answer
112
views
The horizontal gap/kern before the comma is too large with unicode-math
The following minimal example is stripped down from the sentence, “Let (𝑇, ≤) be a poset.”
Feeding lualatex or xelatex with
\documentclass{standalone}
%\usepackage[math-style=ISO]{unicode-math}
\...
1
vote
1
answer
66
views
Polyglossia with Russian language set does not render -- and --- and nice quotes [duplicate]
Using polyglossia package with \setdefaultlanguage{russian} stops producing en-dashes and em-dashes from -- and ---, respectively. Also, no more nice 'upper 99' quotemarks (or any other nice ...
1
vote
1
answer
194
views
How to type lambda expressions?
In computer science and related field the identity function is sometimes written lambda x.x, the square function lambda x.x^2 an so on.
What is the correct way to typeset this in LaTeX? I have a ...
0
votes
1
answer
51
views
Need a dash with a certain thickness and length (and something above it)
\documentclass[10pt,a4paper]{llncs}
\begin{document}
-\ \textemdash\ \textendash\ =\ $\equiv$
\newline
$\hat{-} \hat{\textemdash} \hat{\textendash} \hat{=} \hat{\equiv}$
\end{document}
And again, ...
2
votes
1
answer
44
views
Spacing and punctuation problems when customizing the list of figures
I am required to modify the appearance of the list of figures and tables so that the indexed elements appear in the form:
Figure X.X: Figure caption...... page
(and the same with the tables).
I'm ...
5
votes
1
answer
396
views
Extra Spacing After "s.t."
Whenever I type "s.t." in my paper, there is always extra space after it. It also has this wierd thing when I highlight that extra space, it highlight through some random point in my paper. ...
0
votes
1
answer
106
views
persistent issues with overfull \hbox in bibliography
Hi there I'm working on a document report. I'm pretty much satisfied with the overall appearance, but for the sake of me I cannot figure out the issues I'm having with the bibliography.
At a first ...
0
votes
0
answers
14
views
TeXShop Problem: No auto-replacement of quotation marks (unless Key Binding activated)
I have searched around, but I did not really find a solution to my problem, that is not based on csquotes, which I would like to avoid. Presently, I am using TeXShop (which I cannot really avoid) and ...
1
vote
0
answers
30
views
Comma in the decimal numbers (Italian notation) [duplicate]
I wanted to ask this question a few months ago, and I don't know if there is a duplicate. I have searched but couldn't find anything. Here there is a minimal working example:
\documentclass[a4paper,...
1
vote
1
answer
54
views
Is the advice I find to use \colon for punctuation and : for set notation outdated
I am working on a novel that include a fair amount of religious discussion, including citing bible verses.
The advice I find on various sites on the internet is to use \colon for punctuation and ...
4
votes
2
answers
283
views
Remove the dot after a specific theorem environment
The following code can remove the trailing dot from all theorem environments.
\makeatletter
\xpatchcmd{\@thm}{\thm@headpunct{.}}{\thm@headpunct{}}{}{}
\makeatother
See Remove dot after theorem with ...
2
votes
0
answers
76
views
Fontspec mapping tex-text AND devanagarinumerals
I am unable to figure out the correct way to tell fontspec to adhere to both Mapping=tex-text and Mapping=devanagarinumerals. Here's an MWE:
% !TeX program = XeLateX
\documentclass{article}
\...
4
votes
2
answers
314
views
I switched to using polyglossia for some hebrew text and all of em dashed in my text reverted to three dashes
Switching from babel to plyglossia in my text seems to be associaed with em dashes (typed as three dashes in a row) now being printed as three dashes.
I assume that the change to polyglossia is ...
2
votes
1
answer
116
views
Automatic raise of punctuating commas inside math mode
How to have a switch to turn on/off the raising of punctuating commas inside the math mode so that (when the switch is true) they are typeset by \newcommand{\CommaPunct}{\mathpunct{\raisebox{0.5ex}{,}}...
0
votes
1
answer
76
views
Comma placed just before name of author in citation, with the Journal of Fluid Mechanics .bst style file
Edited.
Technical context:
I use a Mac. I use TeXShop. I use BibTex, and BibDesk. I have all jfm (journal of fluid mechanics) necessary files in the folder the of the tex file.
Here is my code:
\...
3
votes
2
answers
578
views
What's the correct way of writing a systems of equation in latex?
i was writing some equations in a paper for an exam, and i was wondering what
was the correct ways of writing a system of equations, including the use of punctuation.
For example i was writing:
\...
0
votes
0
answers
84
views
How to add comma instead of dot after last author in reference?
Please suggest how to replace dot(.) after the last author in reference as shown in Figure.
The code used in premeble is:
\documentclass[AMA,Times1COL]{WileyNJDv5}
%STIX1COL,STIX2COL,...
4
votes
1
answer
302
views
French spacing in plain tex / optex
I've seen the answer here for Latex. How can I adapt this to plain TeX or OPTeX?
\frlang
\fontfam[Times]
{
\catcode`\:=\active
\catcode`\;=\active
\catcode`\?=\active
\catcode`\!=\...
1
vote
0
answers
59
views
How can I enable common Latex shortcuts for em-dashes (---) and quotation marks (`` '') while using a system font?
I am using TexpadTeX (from the Mac application Texifier/TexPad) and am trying to use Adobe's Garamond Premier Pro font, which is a system font on MacOS.
I'm also very used to using some widely-used ...
0
votes
0
answers
38
views
xelatex: -- produces hyphens instead of en-dash [duplicate]
Using xelatex, the following code produces six hyphens, as in the code sample.
Using pdflatex, it produces a hyphen, an en-dash and an em-dash, as should be. The behavior is reproducible with other ...
1
vote
1
answer
81
views
Lower the period following a display style fraction
I dislike the look of the output of the following code because the period mark following the fraction looks confused (to my eyes, at least), almost like it's trying to be a degree symbol. I wish that ...
0
votes
1
answer
17
views
When using \part, unwanted full stop/period appears after float numbers in scrbook [duplicate]
I'm writing a document using the scrbook class, and I'm having some strange behavior when combing floats with the \part macro.
For the following document:
\documentclass{scrbook}
\begin{document}
\...
4
votes
2
answers
368
views
Automatically add a final period to a caption where there is none
I tried to adapt the answer to Automatically add a final period if argument of '\paragraph' does not end with a punctuation character as a way to automatically add a period to a caption when ...
4
votes
2
answers
479
views
Automatically add a final period if argument of '\paragraph' does not end with a punctuation character
I'd like to automatically add a final period if the argument of \paragraph does not end with either ., ?, or !.
A solution has been provided in Add a period after each paragraph title but this ...
3
votes
0
answers
118
views
OpenType case-senstive forms break microtype's protrusion for hyphens
By enabling the OpenType feature case-senstive forms ([Letters=Uppercase]), vertically lifted brackets, hyphens, or parentheses for example) via setmainfont with fontspec, I loose the protrusion for ...
3
votes
0
answers
254
views
Is \[ c^2 = a^2 + b^2 \text{,} \] not better than \[ c^2 = a^2 + b^2 , \]?
I know the question of punctuation at the end of displayed equations has been discussed many times in here (see e.g. here). However, as far as I see, one of the elephants in the room has never really ...
0
votes
2
answers
185
views
Add extra kerning before certain punctuation in Babel, but not for the typewriter font
I want to add extra kerning before exclamation marks, question marks, colons, semicolons, etc. and extra kerning before and after en and em dashes. My current code is based off of this answer.
The ...
2
votes
1
answer
31
views
Changing "and" word in authors names of polish article for "," (comma separator)
The problem looks simple (but probably is not). I need to change word "and" for simple comma separator (,) in the part related with authors names. I would like to not change the "layout&...
3
votes
3
answers
715
views
take space after comma in math mode
I have searched hard for the answer to this question but have not been able to find it. I'm typing an article and I have to write a lot of formulas, and for me it's more beautiful write
f(x, y) than f(...
2
votes
0
answers
73
views
assymetric-spacing colon as middle separator in set comprehension at various sizes
Let's assume within this post that an author unconventionally insists on using the colon as a middle separation symbol in all three traditional variable binders (class/set comprehensions, quantifier ...
3
votes
1
answer
205
views
What's the point of \colon always inserting additional spacing around : with amsmath, NewTX, or TeX Gyre Termes Math?
When looking at https://tex.stackexchange.com/a/64435, it seems to me that \mathpunct{:} and \colon should be interchangeable. But with amsmath, or NewTX, or unicode-math + TeX Gyre Termes Math, they ...
1
vote
0
answers
25
views
punctuation in traditional Chinese {bkai} is in the middle instead of the right bottom corner, how to fix it?
I use the following code for some traditional Chinese characters output:
\documentclass[12pt]{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{UTF8}{bkai}
君子一言,駟馬難追。
\end{CJK}
\end{document}
...
2
votes
1
answer
58
views
Remove period after author (year) generated by \usepackage[style=authoryear]{biblatex}?
My bib file:
@book{tgt,
title = {The Great Title},
author = {Jane Doe},
year = {2022},
publisher = {Macmillan},
address = {Paris},
}
My LaTeX code:
\documentclass{article}
\usepackage[style=...
0
votes
0
answers
22
views
Some questions relating to writing project number
I'm writing acknowledgement for a paper and have some questions that I need some help.
The acknowledgement is something like below with some modification to hide the real name.
This research was ...
2
votes
1
answer
55
views
No protrusion into left margin with Nordic quotation marks with microtype, babel and csquotes
I want opening quotation marks to protrude into the left margin. And all is fine and dandy as long as I use English, but Nordic languages use \textquotedblright (”) for both opening and closing quotes....