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

0
votes
2answers
58 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
35k 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
70 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
386 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
34 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 .$$
34
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
873 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
116 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
11k 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
438 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}} ...
13
votes
2answers
52k 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
19 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
44 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
92 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
67 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
19 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
57 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
31 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 ...
144
votes
4answers
246k 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
15k 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
47 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 ...
3
votes
0answers
70 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 ...
8
votes
1answer
106 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
55 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
73 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
43 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
331 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
72 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
25 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
173 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
74 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
37 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
56 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
53 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
20 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
39 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: ...
4
votes
1answer
63 views

How to enable/disable automatic quotations marks and control indents with csquote and \blockquote

When my blockquote is long enough, latex don't put quotation marks when using \blockquote in the csquote package, e.g.: The Statistical Machine Translation (SMT) paradigm is largely attributed ...
3
votes
1answer
274 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 ...
5
votes
1answer
222 views

illogical punctuation and non french spacing

There is a convention in American typesetting that punctuation marks such as commas and periods should not come immediately after a closing quotation mark; instead they should be moved inside. It ...
2
votes
1answer
110 views

Using “\citeauthor{key}.” at the end of a phrase renders repeated points

The present question is a follow-up question to this one: Preventing repeated periods in citations I have the same problem, using \citeauthor{key}. at the end of a phrase for a reference with more ...
1
vote
1answer
50 views

Polyglossia \setdefaultlanguage seems to break French quotes

This might be more of a bug report than a proper question, but here goes. In the following example, compiled with lualatex, the sequence << is translated to an opening French quotation mark ...
0
votes
0answers
19 views

Changing citation style

i am currently using the package \usepackage[authoryear,comma]{natbib} and the style plain. Everything is working as it should besides the one thing that when i have 2 authors it cites as follows: ...
7
votes
2answers
2k views

pgfplots import data from table with comma as decimal separator

I am trying to plot data from data files which are using the comma as decimal separator instead of a point (as is normal in SI style (French version): ...
1
vote
1answer
41 views

Problem with quotes and AtEndDocument

Consider the following code: \documentclass{article} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{babel,quotes,angles} ...
3
votes
1answer
23 views

hyphenation and punctuation with “.–” at the end of the line

I have to edit a text (actually a diary) where the line quite often ends with: .– (point and dash) eg. "Last night I took the subway.–" LaTeX does not break the word "subway" if it's at the end of ...