{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.

learn more… | top users | synonyms (2)

67
votes
2answers
11k views

Is a period after an abbreviation the same as an end of sentence period?

Does latex do anything special with periods? If so, is there a way to differentiate end-of-sentence periods from periods indicating abbreviation?
1
vote
0answers
27 views

pgf-plot: y-axis shows comma instead of decimal point

The ticks of the y-axis have to be displayed with a decimal point instead of a comma. I have no idea how to do that. I'm using \usepackage[english]{babel} and even the commad \decimalpoint does not ...
1
vote
1answer
23 views

Comma as letter and semicolon as operator in math formulas

Inside document source2e.pdf there are the following two lines \DeclareMathSymbol{,}{\mathpunct}{letters}{"3B} \DeclareMathSymbol{;}{\mathpunct}{operators}{"3B} which treats these two punctuation ...
13
votes
3answers
2k views

How to quote correctly with csquotes?

I am unsure how to quote correctly using csquotes and \textquote and \blockquote. In the documentation I found this general advise: \blockquote[cite][punct]{text}tpunct but am unsure how to really use ...
6
votes
2answers
16k 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!' ...
20
votes
2answers
928 views

$a,\ b$, and $c$ vs. $a$, $b$, and $c$

If I want to list three constants a, b, c, it appears that both lines in the following MWE produce the same visual results, at least in the MWE itself and in all the experiments I have conducted: ...
32
votes
9answers
11k views

How to get straight quotation marks?

How do I get straight quotation marks, i.e., " and ' in TeX? (No, \verb changes the font and this is unacceptable.) [Edit] I forgot to mention that I’m using XeLaTeX, and fontspec is a necessity. ...
0
votes
0answers
48 views

Why are my en-dashes and em-dashes light gray?

LyX seems to be generating light gray en-dashes and em-dashes in my PDF preview, when I use -- and ---. Why is this happening, and how can I get it to output normal black long dashes? Edit: I'm on ...
0
votes
1answer
50 views

Does UTF8 add right-quote and left-quote recognition to LaTeX, XeTeX? [duplicate]

I've got a LaTeX novel writing project with lots of character quotations. I use Focuswriter to create chapter text files (ASCII, UTF-8). There is no LaTeX markup in the chapter files. A LaTeX ...
4
votes
2answers
82 views

Quote marks - Inverted L / Gamma symbol style?

I'm using XeLaTeX along with the cjk package. I'm trying to recreate quotation marks like the inverted L symbols in the following image: A first attempt. Here's a MWE after looking at the comments ...
3
votes
1answer
33 views

Backwards quotes in embedded C code

I used the csquotes package to make all double quotes curl the right way in the body of my document, but in the embedded code it doesn't work. I tried the slanted quotes and they don't work either. ...
2
votes
3answers
92 views

Biblatex IEEE extra comma before and: author1, author2, and author3

When I use Biblatex with style=ieee, I get a COMMA and a AND before the third author in my bibliography: MWE: \documentclass{article} \usepackage[english]{babel} ...
0
votes
3answers
28 views

Problem with lstlisting enviroment

I'm writing \documentclass{beamer} \usepackage{listings} \begin{frame} \begin{lstlisting}[language=bash] #!/bin/bash echo "Hello,world!" \end{lstlisting} \end{frame} But the output ...
3
votes
1answer
110 views

which variable controls separation of entries in entry set

using \defbibentryset and block=nbpar I would like to replace the default semicolon by a new line to separate entries in the entry sets. Which biblatex variable controls it?
21
votes
2answers
5k views

How to properly typeset footnotes/superscripts after punctuation marks?

I find the spacing of footnote marks after punctuation marks quite unsatisfactory, especially with sans serif fonts and compared to the spacing after letters. Example follows: I came up with a ...
2
votes
1answer
35 views

Modification of biblatex APA style

For my final thesis I need to use a slightly modified version of the APA style. Before I go into more detail, I would like to show you a MWE: \documentclass[12pt]{scrreprt} \usepackage[T1]{fontenc} ...
6
votes
1answer
5k views

Remove comma from moderncv's \cventry

This image shows the excerpt of a CV produced with the moderncv document class: Notice that after the bold text there is a comma. This seems to be produced automatically. How can I stop this?
3
votes
1answer
24 views

Babel: two languages, active shorthands

I'd like to use multiple languages in my document (babel), and both ngerman and british should have the nice shorthands active ("` and "'). The british language environment should turn "` into “ and ...
8
votes
1answer
46 views

TeX quotation marks short-circuit optional argument with \ifx

In a command with an optional argument, if I put a string beginning with TeX quotes (e.g., ``quote'') in the optional argument, something goes wrong. See the bottom entry in the example below. The ...
1
vote
1answer
47 views

How to subscript a single quotation mark?

I can do: \emph{f$_i$$_j$} to get fij But how do I get fij'? I've tried: \emph{f$_i$$_j$$_'$} But it didn't work.
2
votes
0answers
19 views

Put parentheses by default when referencing an equation [duplicate]

I have this equation: \begin{equation} \label{eq:helicsol} x = y \end{equation} and then I have: As we can observe, the solution of \ref{eq:helicsol} and I get: As we can observe, the ...
34
votes
6answers
10k views

What is the best way to use quotation mark glyphs?

There are several types of quotation marks in the English language (and in other languages there are even more). There are also several ways in LaTeX to represent these. I have seen editors, that are ...
3
votes
1answer
24 views

Biblatex not putting a dot behind “abbreviated” single character author name

Here it is claimed that using biber as backend is enough to correctly "abbreviate" with a dot author names given as a single character, however, from my MWE it does not seem like this would be the ...
6
votes
1answer
70 views

biblatex - Manually replace dash with en dash in bibliography

I use biblatex, biber with the style biblatex-philosophy. Unfortunately, the page ranges in the bibliography are produced with a regular dash and not an en dash. Here is a MWE: ...
5
votes
1answer
225 views

How do I make en/em dashes work in Myriad when using it with MinionPro

I'm using MinionPro for the body of a document and Myriad for figure/table captions. Because I can't load packages MinionPro and Myriad at the same time, I load the Myriad fonts for the sans-serif ...
1
vote
1answer
36 views

Get comma between multiple reference superscript numbers

When I add multiple references at the same point in my document, the superscript numbers are shown directly next to each other. I want a comma between them but cannot work out how to do that. It was ...
7
votes
1answer
120 views

Locally disabling en and em dash ligatures

A programming tool that I use (coqdoc) generates LaTeX documentation from my source code. Parts of the manual include pretty-printed code listings and math proofs. These listings and proofs are ...
1
vote
0answers
24 views

Color of dash gaps in tabular and dash endpoint alignment?

I am using the \usepackage[table]{xcolor} and the \rowcolors{...}{...}{...} command to get rowwise alternating background colors in my tables. Now i wanted to have dashed vertical lines and came ...
15
votes
1answer
1k views

How to break long URLs using common hyphenation but adding a line feed indicator?

I saw several questions like this one that request a solution for breaking apart URLs. I wonder if it is possible to hyphenate the words in a URL as it happens in normal text (i.e., breaking apart ...
4
votes
1answer
235 views

Multilingual document: Problem between babel and csquotes: \MakeOuterQuote{"}

: Line 5 is my problem... I want to use simple quotation marks in a multilingual document with csquotes AND babel, with the help of \MakeOuterQuote{"}, and I need the command \selectlanguage{ngerman} ...
8
votes
4answers
2k views

How to correctly write number ranges?

Suppose I would like to write something like: "She has between 1-5 cookies on her at all times."; what is the correct way to write such a number range in TeX? Is it: $1$-$5$ Or: $1\text{-}5$ ...
5
votes
4answers
143 views

French guillemets specific look

I want to find the french guillemets in latex. To be honest I found them by many ways : \og text \fg{} with or without OT1 and french babel, but they do not produce the same result as those which ...
1
vote
2answers
39 views

Biblatex delimiter after journal title

I am trying to change the separator between the title of a journal article and the following element (In this case the name of the journal). however, I cannot find the proper delimiter in the §4.10 of ...
1
vote
1answer
44 views

position punctuation after a box

In this document I think the period would look better horizontally aligned with the floor of the box. Perhaps it should be bolder, too. If you think the alignment is right as is please say so. Edit: ...
5
votes
1answer
75 views

Adding a comma after “et al.” in citations doesn't work for a different language “et al.”

In an assignment, I am required to have citations formatted in the following manner: in the authoryear style with a comma after the andothers-string (normally "et al.") with "et al." translated to ...
7
votes
1answer
150 views

How to prevent a stranded comma on the next line?

In this document, where I am replicating my original document in order to get the issue I am highlighting here, a comma is stranded on the next line: \documentclass[a4paper, 14pt]{extarticle} ...
2
votes
2answers
98 views

French-style quotes look ugly

I want to use French-style quotes like so: «Quote» So i replaced the quotes with \flqq{} and \frqq{} but unfortunately it looks very ugly (see example) is there a way to have the french quotes ...
3
votes
0answers
45 views

Spurious punctuation in xelatex + biblatex + Cyrillic or Greek

Biblatex has a mechanism that prevents spurious punctuation. Generally, it works fine but fails with xetex and some languages. The MWE below compiles fine with pdflatex but with xelatex yields double ...
1
vote
1answer
90 views

Replace “dot” with “comma” using biber and verbose-trad1

I'd like to have a "comma" instead of a "dot" after the authors and before the title. In other words, replace the "dot" for a "comma" as the author-title separator... MWE : \documentclass{article} ...
3
votes
2answers
394 views

Double dot at the end of sentence when figure reference ends with a dot

I try to make a class. I wrote \renewcommand\thetable{\thechapter\arabic{table}.} and under the table or in sentence I have e.g. "Table 2.1." but problem is when reference is at the end of ...
3
votes
0answers
56 views

Removing double punctuation when SI units with dots occur at the end of a sentence

I'm writing a document that uses a mix of SI and atomic units. The latter are usually written in the slightly awkward notation p = 1 a.u. with dots and all. (I know, it's not great, but what can ...
1
vote
1answer
61 views

Biblatex journal: issue, number punctuation

I use biblatex-biber in a report class, and need to modify my journal footnote from this: JOUR 24, no. 2 (1998) to this: JOUR 24.2 (1998) I am using a document style I did not create, and ...
1
vote
1answer
18 views

Can not redefine the command of \figureformat (\figureformat undefined)

I want to redefine the \figureformat to customize the output of figure captions: \renewcommand*{\figureformat}{\thefigure.\figurename} However, it gives an error when I compile: \figureformat ...
1
vote
0answers
17 views

use dots instead of comma in math mode with babel package use [duplicate]

hi i started to use math mode for lab reports but when i use the babel package (\usepackage[spanish]{babel}) the dots changes by comma, i been tried to use \DeclareMathSymbol and \mathcode.="8000` ...
55
votes
3answers
13k views

Block quote with big quotation marks

How can I create a block quote enviroment with big quotation marks similar to the Cquote Template of Wikipedia? Additionally it would be nice to place both quotation marks and quote in a colored box ...
1
vote
0answers
58 views

vancouver.bst : How to remove the dot after the journal name

I need to remove the dots after the names of the journals in the references of my paper. I am using the vancouver style file. My minimum working example (MWE) looks like this: ...
1
vote
1answer
32 views

How to except code blocks from csquotes smart quoting?

\LaTeX newbie here. I figured out that csquotes can be used to automate smart curly quotes, and have added this to my preamble: \usepackage{csquotes} \MakeOuterQuote{"} This has the effect of ...
5
votes
1answer
72 views

Is there a way to disable kerning of punctuation marks globally?

I use the font XCharter in my document. Unfortunately, I get undesired kerning of punctuation marks following capital letters like W, P and T – especially in the bibliography (biblatex). Is there a ...
3
votes
2answers
43 views

Footnotemark after period in bibliography

I need footnotes in either the pages or addendum fields of some of my references. Since I don't have control over the period appended at the end of those fields, the footnote mark will end up before ...
3
votes
2answers
3k views

Is there an alternative way to double quote in Latex?

I am editing my Latex code using MS Word. Before you get any ideas (I know it's weird) please refer How to run Latex from Word? Having found myself in this unusual predicament, I also have to use ...