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.

1038 questions
105
votes
3 answers

What is best method to insert an ellipsis in a (Xe)TeX document?

What is best method to insert an ellipsis in a (Xe)TeX document? \documentclass{article} \usepackage{fontspec} \setmainfont{Times New Roman} \begin{document} a...b a ... b %or a\ldots b a \ldots b %or a…b a … b $a...b a ... b$ %or $a\ldots…
Real Dreams
  • 8,298
  • 12
  • 56
  • 78
76
votes
2 answers

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{document} To be ʻIt's a nice day!ʼ I know that due to…
Peilonrayz
  • 1,136
61
votes
3 answers

Quotes in LaTeX ?

Possible Duplicate: What is the best way to use quotation mark glyphs Can I just use " for the quotes in my document? I'm asking this because when I use them in my TextMate editor the included text is highlighted with a red color. Therefore, I…
aneuryzm
  • 4,901
45
votes
5 answers

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 all quotes, just get the occasional straight…
andrew
  • 2,221
24
votes
4 answers

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$ Or something else entirely? To me, both of the above…
bzm3r
  • 3,196
21
votes
1 answer

Why do ``` and ''' produce outputs with different spaces?

Why do ``` and ''' produce outputs with different spaces? \documentclass{article} \parindent=0pt \begin{document} Input: \begin{verbatim} ```\\ ''' \end{verbatim} Output: ```\\ ''' \end{document}
17
votes
2 answers

Comma in math mode

In some countries one use comma as decimal separator instead of a dot. I ususally use: %%%% Une vrai virgule pour les décimaux \DeclareMathSymbol{@}{\mathord}{letters}{"3B} and $3@2$ to obtain 3,2 instead of $3,2$ that gives 3, 2 <- a uggly useless…
Tarass
  • 16,912
16
votes
2 answers

Very long dashes in Victorian-era book

I am trying to faithfully recreate the typographic style of a Victorian era book. One thing I've noticed is the extensive use of dashes: em-dashes are everywhere, for example. Beyond the em dash however, I notice a set of even longer dashes. For…
A. Ahmad
  • 393
16
votes
4 answers

Why can't LaTeX smartly match the double quote?

In many word processors, when you type " twice, it will give you a left and right double quotation marks in sequence, they are smartly matched. Why does latex end up with using, ``Blahblahblah...'' to do double quotings? Question: Any philosophy…
Daniel
  • 1,816
13
votes
2 answers

Ideal Setup for Swiss-Style Quotes (Quotation Marks in German-speaking Switzerland)

As far as I know Switzerland uses French quotes but without whitespace. So instead of « citation » it goes like this «citation» (to make it more confusing, in Germany they have the alternative use of »citation«) I am going quite well with the…
12
votes
2 answers

Display real apostrophe in parts of a document

The question How to make a real apostrophe or single-quote in LaTeX is my question too, but the answer points to a package upquote that affects the entire document. I need to display an apostrophe (U+0027) only a couple of times within the document.…
Sverre
  • 20,729
12
votes
3 answers

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" (––)?
12
votes
3 answers

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 question mark). There is…
Alp Uzman
  • 284
9
votes
2 answers

Avoid inverted exclamation and question marks, when followed by quotes

In an automated system that is generating LaTeX to render PostScript and PDF, i need to avoid an ambiguity in LaTeX: Two backticks (``) produce a closing doublequote: “ A question/exclamation mark followed by a backtick (?`) produces the inverted…
Kaii
  • 406
9
votes
1 answer

What is the preferred/correct way to punctuate menu sequences in manuals?

Since computers are around for quite a while now and menues turned out a success as user interface elements, I’m wondering whether there were efforts made to standardize a certain way of punctuation in menu instruction sequences used in…
Lenar Hoyt
  • 1,629
1
2 3 4 5