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

21
votes
2answers
8k views

Straight quotes?

How do I get a straight quote instead of curly quotes? I’m not inside verb or listing or any other special environments, and I’m not using XeLaTeX or anything—just normal LaTeX. I don’t want to change ...
0
votes
0answers
24 views

lacheck doesn't like factorials?

I have the following code. \documentclass{standalone} \begin{document} $n!$ \end{document} Running lacheck on it results "test.tex", line 3: punctuation mark "!" should be placed after end of math ...
0
votes
2answers
75 views

How can I change the way it is compiled comma

[ I am using: \usepackage[T1]{fontenc} \usepackage{lmodern} The problem is that when I compile the text, comma appears as decimal point separator. How can I change this ?
1
vote
0answers
45 views

Quotes in latex [closed]

Here is my latex code : In the equation (2.1) `d' represents the interatomic distance, `a' represents the carbon-carbon bond length which is $0.142 nm$, $ d_{\scriptscriptstyle 0} $ and $ A $ are ...
3
votes
0answers
24 views

gaps between word and greek angle quotes [on hold]

I use XeLatex to write a thesis in greek. My problem is that writing «word» displayed as « word » , with a gap before and after the word. How can I change that? I don't want these gaps. Thank you
2
votes
3answers
1k views

Smart quote in TeXstudio

A useful feature of TeXworks is the smart quote. Does TeXstudio have a similar feature? (to replace "" and '' with their Unicode opening and closing counterparts)
10
votes
4answers
7k views

Escape “> and <”

I have the following piece of text which I want to output literally: <<"Welcome">>. However it's converted to those funky quotations. I've been trying all sorts of things with \ mostly but ...
0
votes
1answer
44 views

Is there any grammar correcting software in TeXmaker?

I am interested in a grammar correcting software in TeXmaker if there is one around like in Microsoft word: it's possible to correct grammar : commas placing, redundant expression, non-formulated ...
91
votes
2answers
20k 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?
3
votes
2answers
41 views

Drawing separated dashed/filled rectangles (sub-tables) within a tabular environment

Please, I need to draw a table that looks exactly like the following one Thickness is not important here, but rather the grouping and shading of symbols in rectangular sub-tables within the main ...
0
votes
1answer
29 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?
2
votes
3answers
76 views

Redefining symbol for specific language in ConTeXt

I have somewhat a follow-up to this question. I figured that it would be better to have a regular em-dash (---) whose size and spacing rules adjust depending on current language. So when \language[ru] ...
2
votes
2answers
81 views

Avoid linebreak in abbreviation

I use the macros for i.e. and e.g. from the tufte-book example. They look great, but sometimes a linebreak occurs in between like in the following example: \documentclass[nobib]{tufte-book} \...
2
votes
3answers
76 views

decimal comma in bchart, tikzpicture etc

Is there any way how to redefine decimal separator in environments like bchart, tikzpicture and so on? I need to typeset decimal comma, not decimal point. Minimal example: \documentclass{article} \...
2
votes
0answers
26 views

Bibliography, comma for two authors, semicolon for three

A journal I want to submit an article to has the following requirement for the bibliography: When it's two authors they're supposed to be separated by a comma plus the word "and". Mayers, J., and ...
5
votes
3answers
237 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} \renewcommand{\...
2
votes
1answer
25 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
46 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
148 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
322 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
19 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
130 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
103 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 ...
6
votes
4answers
814 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
71 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
38k 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 \quotes{...
0
votes
3answers
76 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
414 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
46 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 ...
25
votes
3answers
8k 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
914 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
125 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} { morestring=[b]...
4
votes
3answers
450 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}} ...
16
votes
2answers
59k 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!' \end{...
0
votes
0answers
23 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
69 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
98 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 \RequirePackage{...
3
votes
1answer
77 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
23 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
60 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
34 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 ...
151
votes
4answers
257k 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.
41
votes
5answers
17k 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
49 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 \newcommand{\abc}{...
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 “knee,...
3
votes
0answers
66 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
75 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, ...