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

5
votes
3answers
227 views

Using dash instead of point in headers

How can I set - instead of . as separator in headers? 1 Chap 1-1 Sec 1-2 Sec 1-2-1 SubSec 2 Chap 2-1 Sec I use XePersian package. The following does not work: \documentclass{book} ...
2
votes
1answer
21 views

Quotations around the letter t: csquotes

MWE: \documentclass[12pt]{article} %make " quotation marks \usepackage[english]{babel} \usepackage{csquotes} \MakeOuterQuote{"} \begin{document} \texttt{read.table(file, sep = "t")} \end{document} ...
3
votes
1answer
34 views

How to use apostrophe ' with babel french loaded?

The french apostrophe is the following ’, when babel french is loaded it automatically turns typed apostrophes ' into ’. How to preserve the apostrophe ' in some cases (quote for example) but not in ...
5
votes
1answer
134 views

Bibliography - a comma separating author(s) from titles

I am compiling a bibliography in a book by means of bibtex using plain.bst style (or rather its Polish version plplain.bst). Using answers to other questions on similar problems, I have modified ...
6
votes
2answers
313 views

Redefining `---`

Is it possible to redefine the group of characters ---, so that instead of drawing a "em-dash" when typing ---, the output would be two "en-dashes" (––)?
1
vote
0answers
15 views

texmaker on OS X does not show CJK punctuations in editor

My environment: OS X 10.11.4 Texmaker 4.5 mactex from brew cask install mactex OS X builtin Chinese input method I configured texmaker to use XeLaTeX + View PDF, SimSun as Font, UTF-8 as ...
5
votes
3answers
117 views

\@seccntformat only for section

I would like to add a dot between the number of the section and section name. I used \makeatletter \renewcommand*{\@seccntformat}[1]{% \csname the#1\endcsname .} \makeatother The problem is that, ...
5
votes
1answer
86 views

Placing a comma before a citation-related superscript number

According to the Chicago Manual of Style (section 14.21) "a note number should generally be placed at the end of a sentence or at the end of a clause. The number normally follows a quotation (whether ...
0
votes
1answer
26 views

How can i avoid comma along with and in latex reference(.bib)?

Comma sign in Bibliography Last portion of above link contains both comma and and which is grammatically incorrect. How can i avoid comma?
6
votes
4answers
759 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 ...
0
votes
2answers
69 views

If I have a double quote ' " ' in my text it shows up in the pdf as \textquotedbl{}

I am new to latex. I am running xubuntu 14.04. I am using Lyx 2.0.8. I can write, compile to pdf then view the pdf. Unfortunately, if I have a double quote ' " ' in my text it shows up in the pdf as ...
59
votes
7answers
36k views

Isn't there any other way of doing double quotes in LaTeX besides `` + ''?

The standard way of writing quotes and double quotes in LaTeX is with `` and '', but I find them quite ugly. Isn't there something similar to \emph{}, but for quotes? I mean something like ...
0
votes
3answers
73 views

Problem with lstlisting environment

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 ...
5
votes
2answers
401 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} ...
1
vote
1answer
41 views

Fullstop after \dots in a formula

Should I put fullstop after \dots in a formula in the end of a sequence? Consider for example the nonsense formula $$E=mc^2 + \dots .$$
36
votes
2answers
2k views

Should I use ~ or \mbox?

~ stands for a non-breaking space, and \mbox{<text>} creates a box with text in it that cannot be broken (since its a "box"). I understand that \mbox has broader application than ~ (e.g. when ...
24
votes
3answers
7k views

Remove colon in the caption of a figure if the caption is empty

One of my figures should not have a caption, only the normal numbering. To get this, I use this code: \begin{wrapfigure}{l}{4cm} \begin{center} \includegraphics[width=3cm]{graphic.pdf} ...
13
votes
3answers
901 views

Question Mark Without a Dot

What would be a neat way of typing a question mark without a dot? I thought I could use such a punctuation for questions in the middle of a sentence (and so justify continuing lowercase after the ...
4
votes
1answer
121 views

Spurious punctuation in xelatex + biblatex + Cyrillic or Greek [closed]

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 ...
14
votes
1answer
12k views

How to improve listings display of JSON files?

I was wondering if there is a good way for JSON files to be listed with the listings package. The only language definition I could come up with, is this: \lstdefinelanguage{json} { ...
4
votes
3answers
445 views

<< and >> do not give « » (guillemets)

Context ~$ latex --version pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) kpathsea version 6.2.1 with this *.tex file \documentclass[12pt]{article} %Gummi|065|=) \title{\textbf{Test ULysse}} ...
14
votes
2answers
56k 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!' ...
0
votes
0answers
21 views

Force double inverted comma

I'm trying to output (COMMAND "_OVERKILL" (SSGET "_A") "" "") but always get (COMMAND „_OVERKILL“ (SSGET „_A“) „“ „“) using (\textbf{COMMAND}\space\enquote{\_OVERKILL}\space(\textbf{SSGET} ...
4
votes
2answers
62 views

avoid space after thousands separator in math mode

In math mode, LaTeX inserts a small space after a comma. This looks nice in $a,b,c$, for example. But I don't like the way it looks when using a comma as a thousands separator, e.g., $x = 100,000$. ...
5
votes
2answers
97 views

How to ignore ending punctuation in an equation environment?

I use the following to export all equations in a long document as a separate pdf (and subsequently, png files): \documentclass{article} \newif\ifexport %\exporttrue \ifexport ...
3
votes
1answer
73 views

Putting an enumerate list into quotation marks

I have a question: How can one put quotation marks around a list, i.e. like this: "1. item one ... n. item n" I need to cite a list in my document. (I will need to use German quotation marks, ...
2
votes
0answers
20 views

tufte quotation marks in texshop misbehave

In tutfte-book class, using texshop the quotation marks in `fish' and ``fowl'' come out 'fish' and ''fowl'' with a positive tilt (/). Any idea why?
3
votes
0answers
59 views

tex4ht breaks bibliography punctuation with 'american' language and biblatex-chicago

To follow the guidelines of The Chicago Manual of Style, the package biblatex-chicago will put trailing punctuation inside closing quotation marks in bibliographic notes (like this "end,"--not like ...
2
votes
0answers
32 views

Microtype problem with line-endings

today i noticed that when i compile my Tex-File with LuaLaTeX and the Microtype-Package that the line-endings are not correctly formatted. Here an small example where you can see that the punctuation ...
147
votes
4answers
252k views

Why do the less than symbol (<) and the greater than symbol (>) appear wrong as upside down exclamation (¡) or question mark (¿)?

When typing < or > in LaTeX and compiling with pdflatex, the less than and greater than symbols appear at upside down exclamation points. I'm not in math mode.
38
votes
5answers
16k views

How to force LaTeX not to break the line after a hyphen “-”?

With ~ we can enforce that no line break occures between two words. But this does not seem to work with special characters. I want LaTeX to enforce not to break the line after the - in (re-)creation. ...
6
votes
1answer
48 views

Keep babel's automatic spacing in \newcommand

In French, there's a narrow non-breaking space before ":". These are automatically added by the babel package, of course. However, I noticed something strange: the following macro ...
8
votes
1answer
109 views

Suppressing comma in one index entry

I have a line that says \index{flamingo's ``knee''}. As one would expect, it produces an entry flamingo’s “knee”, 3 in the index. Unfortunately the publisher wants it to be flamingo’s ...
3
votes
0answers
62 views

biblatex authoryear-icomp parenthesis in footnotes and textcite

By typing Some text \autocite[88]{A01}. Now Textcite \textcite[88]{A01} I try to achieve the following output: Using this answer, I do get the footnotes right. Unfortunately, there are brackets ...
7
votes
3answers
3k views

German quotation marks are broken in XeLaTeX

Although I known nothing about German, I have to complie some German TeX documents. The German quotation marks "' or \grqq and "' or \grqq in my document are replaced by cmr font and the PDF file is ...
4
votes
2answers
74 views

What are opening and closing double quotes? And how do I redefine it to be something else?

I have a LaTeX document written with normal English quotes, eg.: ``This is a quoted text.'' Now, I would like to redefine `` and '', so the combination of two ` characters is substituted with, say, ...
1
vote
1answer
44 views

Override the spacing on the right of an in-line equation when followed by a punctuation mark

I set \mathsurround to 2pt in order to have a bit more horizontal spacing between text and in-line equations. Is there a way to set it to 0pt on the right whenever the in-line equation is followed by ...
0
votes
1answer
372 views

Remove period at end of bibliography items [duplicate]

Consider the following MWE: \documentclass[a4paper]{article} \usepackage{hyperref} \begin{document} \nocite{test1,test2} \bibliographystyle{plain} \bibliography{sample} \end{document} And the ...
2
votes
2answers
75 views

How to customize a .bst file

I want to customize this .bst file. Now, when I compile a reference it gives me (For an entry of type @article): Author1, Author2, "Title," Journal Volume (Year) pages, arxiv:0208157. But I want ...
35
votes
2answers
2k views

Finishing math with a period

I am new to this site and couldn't find this question after a quick search but it may have been asked before. This is possibly the most inconsequential issue one can have, but it has been bothering ...
0
votes
0answers
27 views

Correct punctuation after a quote

What is the typographically correct way of handling punctuation at the end of a quote? I do not know ``Which one is best''. Ok.\par I do not know ``Which one is best.'' Ok.\par I do not know ``Which ...
5
votes
2answers
8k views

How do I prevent LaTeX from showing a whitespace following a quote when in an lstlistings environment? [closed]

When I am inside the lstlistings environment, it seems that using a quote such as (') or (") will toggle on the showing of whitespace indicators (small little half rectangles). Am I doing something ...
4
votes
2answers
176 views

How to set a function with dash and subscript

In $f_3$ the subscript is higher than in $f'_3$. So how does one set a function with dash and subscript correctly?
0
votes
2answers
100 views

beramono and texttt : angle brackets show as inverted exclamation mark and inverted question mark symbols (upside-down signs, like in spanish)

Angle brackets < and > in \texttt render as inverted exclamation mark and inverted question mark (spanish punctuation marks): \documentclass{article} \usepackage{beramono} \begin{document} ...
2
votes
1answer
117 views

How do I typeset a low single quotation mark?

How do I typeset a low "9" single quotation mark such as that seen below?
2
votes
1answer
38 views

How to remove “.” in the definition [duplicate]

I want to add a definition in my LaTeX file. However, I have a dot after the word definition. How can I remove it? I want: Definition Here is the definition NOT Definition. Here is the ...
1
vote
1answer
61 views

LuaLaTeX comma issue in math mode [duplicate]

I am having an issue compiling math equations. I got a weird comma symbol with lualatex. Here is a MWE and the result : \documentclass[french]{report} \usepackage{fontspec,luatextra,xunicode} ...
3
votes
2answers
55 views

How to deal with hyphens in .bib files?

I am using a .bib files for my references. Some entries have a hyphen in the title or in the abstract which mess up with LaTex. It returns l.22 ...y Local Adaptation and Fitness Trade,Äė ...
1
vote
0answers
22 views

Get punctuation in Springer spbasic bibstyle

This question relates to: Issue with Springer spbasic on how to get punctuation in the bibliography entries. I've been able to add periods for p. and pp. and Ed. and et al., as suggested in the ...
2
votes
1answer
49 views

Author punctuation in Biblatex bibliography

I'm looking to remove the comma between author first name and surname in the bibliography. To come out as: Vincent C, Amalberti R. (2015) LaTeX works so well. BMJ 25(1):370-81 Instead, I'm getting: ...