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

10
votes
3answers
1k views

Avoiding “minus sign” dash in listings commentstyle

Is there a general way to get listings package to typeset a hyphen as a minus character in the rest of the code (the default behavior), but typeset a hyphen as a true hyphen if it occurs in comments ...
8
votes
1answer
510 views

biblatex: different output for one, two, or three authors

I'm using/customizing the verbose style in biblatex. This is the desired output, depending on the number of authors (just focussing on the authors): Apple, Anthony. Title. [⇦ 1 author] Banana, ...
7
votes
2answers
2k views

biblatex, authoryear-icomp: brackets around the year in footnotes

I use biblatex with the cite-style authoryear for footnotes, which results in Chang et al. 2005, p. 1116. Faculty guidelines require Chang et al. (2005), p. 1116. though. Which files need ...
8
votes
2answers
684 views

How to punctuate multiline equations?

This might be off topic, yet I wouldn't know where else to ask. I want to keep up with the good habit of punctuating displayed equations. For example I know the comma (,) is compulsory in Here, we ...
7
votes
3answers
365 views

dot's shape of the italic abbreviation words

I want to write thief (pl. thieves) Which is correct, the \textbf{thief} (\textit{pl.} thieves) or the \textbf{thief} (\textit{pl}. thieves) ?
32
votes
2answers
6k views

What's the advantage of using csquotes over using an editor's auto-replacement for "?

Many editors (TeXnicCenter, Texmaker, TeXworks, ...) offer auto-replacement of " by the desired form of quotation marks, be it `` and '' for English, "` and "' for German, or whatnot. Usually, I know ...
3
votes
1answer
546 views

Siunitx: alignment, parentheses and font size

I'm trying to align numbers (that are bolded, between parentheses, etc.) by decimal points in table columns while using the auto-round option of the siunitx package. The following code doesn't work: ...
9
votes
2answers
532 views

How can I get my ellipses formatted correctly in XeTeX?

I've been using \dots and \ldots to try to get ellipses happening. Ellipses should look like this: Some text . . . and then some more text. But instead they look like this: Some text ...and some ...
31
votes
2answers
1k views

Replace “quotes” with „quotes“?

I live in a funny part of the world where we're required to quote text like this: „quotes“ (note the difference between the opening and closing quote). Is there an easy way to set up a LaTeX document ...
5
votes
1answer
2k views

Problem with using quotations in German document [duplicate]

Possible Duplicate: Quotation with double quote and O results in Ö I want to write a document in German. For it I write in the preamble: \usepackage[german]{babel} ...
10
votes
2answers
2k views

Horizontal line of custom length like an —

Is there a way to get a custom-length horizontal line that appears like a "longer em-dash", if you will?
11
votes
1answer
638 views

What does 'missing \@ before…' error mean in vim?

I get this strange behavior when I have capitals before a period, like so 1 \documentclass{article} 2 \begin{document} >> 3 Another possible protein blah blah blah from GRIP/ABP. Blah ...
7
votes
1answer
527 views

Punctuation marks in math mode in xetex/mathspec

I am using XeTeX and have the following short document: \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amsthm} \usepackage[MnSymbol]{mathspec} \usepackage[no-sscript]{xltxtra} ...
12
votes
3answers
1k views

How to typeset - - with lstlisting package?

Consider this small example: \documentclass[a4paper,10pt]{article} \usepackage[utf8x]{inputenc} \usepackage{listings} %for listings of the source code \begin{document} \lstset{language=sh} ...
17
votes
1answer
2k views

fontspec with Helvetica breaks quotes

The usual quoting with `` and '' doesn't work anymore after including this (which also changes the engine to XeTeX): \usepackage{fontspec} \setmainfont{Helvetica} They are just printed verbatim in ...
5
votes
1answer
378 views

Every counter with a fullstop at the end

Is there an easier way than redefining all commands to have every counter followed by a fullstop? Chapter counter, theorem counter, figure counter etc. should always look like 1.3.4. and not ...
4
votes
1answer
293 views

Subsections for theorems

\documentclass[14pt]{article} \usepackage{amsmath,amsfonts,amssymb,amsthm} \newtheorem{thm}{Theorem}[section] \newtheorem{defn}[thm]{Definition} \newtheorem{cor}[thm]{Corollary} ...
16
votes
1answer
545 views

Adding an open-quote mark to the start of each line in a multiline quotation?

I'm going to be re-typesetting some old books (from the late 18th Century) in the coming weeks, and a few of them are old enough that they use an archaic typographic convention for quotation: every ...
9
votes
2answers
616 views

xeCJK messes with punctuation

Neither a question nor really a complain, but I find I cannot use xeCJK in multilingual documents (in the present case French + English + Chinese), simply because it messes with the punctuation in the ...
44
votes
7answers
13k 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 ...
12
votes
4answers
1k views

How do I prevent LaTeX from creating en-dash and em-dash?

All over the internet, there's this question on how to make LaTeX do the en-dash and em-dash. I have the opposite problem. I have some text from which I am generating HTML and LaTeX outputs. The ...
6
votes
1answer
405 views

Could icomma conflict with siunitx?

I'm also having the problem with the space after a comma in decimal numbers (like discussed here: German language: use of comma in numbers) and I wonder if I can use both the icomma-package (which ...
5
votes
3answers
201 views

French internationalisation, override babel default spacing

I'm writing my thesis paper in French. In the document I use the name of the ISO27001:2005 norm name, and by babel conventions this is rewritten as ISO27001 :2005 with a extra space before the ...
4
votes
1answer
619 views

Running figure numbering

I want to use running figure numbering so I used a trick form this website http://www.tex.ac.uk/cgi-bin/texfaq2html?label=running-nos. \documentclass[a4paper, 11pt]{scrbook} \usepackage{chngcntr} ...
22
votes
1answer
8k views

Should you put citations before or after interpunction?

This probably also could go to English.SE, but I'm not sure. When I want to cite a source for a complete sentence, you put the citation before or after the period? And if you cite for a word, or ...
2
votes
0answers
614 views

Observation (not a question): the commands \guillemotleft and \guillemotright appear to be misspellings [closed]

The traditional French double quotation marks, « and », are called guillemets. They are used in the scripts of many modern languages, including some forms of Chinese (as 《 and 》 in restricted ...
3
votes
1answer
302 views

how to get a colon “:” after the short abbreviation in acronym

I was wondering how to get in my acronym list ":" (colon) after the short abbreviation, for example: I want to get UV: Ultra Violet but I keep getting UV Ultra Violet without the ...
7
votes
2answers
614 views

Footnotes with automatic final period

I'm tired to always add a period at the end of the \footnote command. Is there the possibility that LaTeX automatically does this at the end of every footnote?
15
votes
1answer
763 views

listings package changes hyphens to minus signs

The listings package transforms source-code hyphens (-, U+002D) into minus signs (−, U+2212) when using the default proportional fonts, though not when using the default monospaced typewriter font. A ...
17
votes
2answers
4k views

Period after math-mode equation

If I write If $x \rightarrow y$, then $y \rightarrow z$. it looks fine. But if the sentence is more involved and formulas longer, I tend to change $...$ to \[...\]. In many cases I think the result ...
14
votes
2answers
2k views

How do I ensure a single character for \ldots

How do I ensure that \ldots comes out in the PDF as a single character? I'm formatting a document for a publisher, who has given this condition in its formatting rules, but I do not know how I can do ...
7
votes
1answer
905 views

Avoid line break between em-dash and the next word

I'm writing a text in spanish, and I have a phrase wrote between em-dashes (that work like parentheses). The problem is that if the "opening" em-dash is too near the end of the line, then it may ...
8
votes
1answer
409 views

polyglossia adds extra kerning to csquotes

When I use csquotes with polyglossia, an extra kerning is added after the first quotation mark. \enquote{Werk} becomes „ Werk“, not „Werk“. This doesn't look nice, especially when you have a word ...
11
votes
6answers
4k views

How to remove the “.” in the proof environment?

Using amsthm, is there a possibility to remove the dot when typing \begin{proof}...\end{proof}? This would be typeset as "Proof." If you change your proofname \begin{proof}[Proof:]...\end{proof} you ...
29
votes
2answers
10k views

number format in pgfplots axis

How can I change the type of the decimal/thousand separator from the american one to the european one? More precisely, I want: "1000" to be written as is, instead of "1,000" "0,1" instead of "0.1" ...
3
votes
1answer
320 views

Inserting period/stop at end of each reference

Using author-date style, how does one insert a period or stop at the end of every reference? I presume you have to \renewbibmacro and \setunit*{\adddot} to a specific field? ...
5
votes
1answer
430 views

Enclosing place: publication in parentheses

Using biblatex and author-date styles, how do I go about customising my bibliography so that place/address: publisher becomes (address: publisher) e.g. (London: Routledge) rather than London: ...
12
votes
5answers
2k views

Ellipsis with a period/fullstop

While quoting how ellipsis should be used if few sentences are omitted in between. (ommissions are not clauses or words or phrases, but sentences). For example if there is a passage like: This is a ...
8
votes
1answer
1k views

biblatex: How to remove the comma before ed./eds.?

How can I remove the comma before ed. or eds. and put this abbreviation in parentheses? I'm using biblatex. For example this reference: Dozy, Reinhart, ed.: Supplément aux dictionnaires arabes. ...
23
votes
3answers
1k views

How to avoid a linebreak before a comma?

I just had a problem with a linebreak after a word ending with a hyphen which was followed by a comma. This example shows the problem: (The example is constructed, but this just occurred to me in a ...
5
votes
1answer
181 views

“$$…$$.” has the dot on the wrong line; How to punctuate correctly?

I like to use the $$\sum S_{i}$$ or something similar. But I get the dot . or the comma , placed in an awkward position. I work around this problem sometimes by using $ \sum S$, but this is not good ...
3
votes
1answer
354 views

How to use autopair for double quotes in .tex files (so that typing " leads to ``'')?

I'm working with Aquamacs 2.3a to compile .tex documents. Typing double quotes " one time leads to ``. Then writing a word and finishing with " again, expands to ``myword''. How can I have autopair to ...
2
votes
3answers
5k views

Figure and table numbers in caption are terminated by a period and semicolon

I'd like help redefining the Table and Figure captions. Currently both Table and Figure numbers are terminated by a period and colon. For example, \caption{Foo bar} Produces the text, Table 1.: ...
11
votes
1answer
2k views

Colon (:) instead of period (.) after author with biblatex, alphabetic

With biblatex, alphabetic style, I have <author>. <title> But I want to have a colon ":" instead of the period "." after the author: <author>: <title> What do I ...
13
votes
4answers
356 views

How to prevent last period in captions from appearing in the list of figures?

Is there any simple way of removing the last character of an argument to a command (or environment)? I'm looking for a simple way to remove the punctuation mark from a caption when it appears in the ...
5
votes
1answer
364 views

Listing index uses wrong dashes

When generating an index of all my Listings, the library seems to use the wrong dashes to connect words: Expected Unported-2.0-Graphic Actual Unported—2.0—Graphic In the title of the listings, ...
8
votes
1answer
258 views

Unicode or control sequences?

What kind of troubles may occur if Unicode characters will be entered directly in the following situations (English, no math): Diacritics: for example, ö instead of \"{o}. Em, en dashes and minuses. ...
9
votes
2answers
3k views

Remove dot-after-number in figure captions while keeping the dot in chapter/section captions

In my document (using KOMAScript and babel[ngerman]) I have various figures which get captions like "Abbildung 1: ...". However, as soon as I add a \appendix to the document all those captions change ...
12
votes
3answers
1k views

Implementing a sort of “tightened frenchspacing”

By default, (La)TeX adds extra space between sentences. The exact rules are in the TeXbook, a summary by TH. can be found here. What follows is is my "executive summary": After any period (or ...
9
votes
1answer
486 views

Writing Biblical Hebrew texts with different coloring for consonants, vowel and accent signs

I have got the following problem: I am using Biblical Hebrew texts written in XeTeX but I would like to color consonants as well as vowel and accent signs differently. I have read Coloring combining ...