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

7
votes
2answers
483 views

amsmath nobreakdash definition to allow normal hyphenation

In the amsmath package documentation it is written: \newcommand{\n}[1]{$n$\nobreakdash-\hspace{0pt}} The last example shows how to prohibit a linebreak after the hyphen but allow normal ...
6
votes
1answer
135 views

Macro for handling placement of last quotation mark when setting quotes in text?

When including quotes in a text, there are some styles that need to be adhered to. One style is to always place the last quote where the actual quote ends, no matter the next character (e.g. ... and ...
11
votes
2answers
223 views

How can I check if a header has an ending full stop?

I am modifiyng some macros to enforce a section style that should end with a full stop. The full stop is added automatically, but sometimes people add the full stop and I get two. How can I modify the ...
12
votes
2answers
6k views

Correct use of hyphen, en dash, or em dash in compound words [duplicate]

Possible Duplicate: Dashes: - vs. – vs. — I know that there are many sources on the use of dashes both on tex.sx ( Dashes: - vs. – vs. — ) and in the real world (Wikipedia: Dash). But there ...
5
votes
3answers
811 views

Less pointy angle brackets

I was looking for a way to beautifully display UML stereotype titles including angle brackets like you can see here: What I came up with is $\mathtt{\ll metaclass\gg}$, however, as you can see here ...
7
votes
2answers
918 views

biblatex: is it possible to add a text directly after the reference number (without a comma)?

I'd like to add a certain marker after some bibliographic entries, e. g. superscript star *. It should appear directly after the references number and should not be separated by a comma (as normal ...
9
votes
1answer
1k views

own bibliography style with biblatex

My bibliography has to look like this: name, givenname; name2 ,givenname2: title. edition location : publisher, Year. e.g. Weck, Manfred; Brecher, Christian: Werkzeugmaschinen. 6.Auflage ...
7
votes
2answers
2k views

Redefining quote environment with tiny font and double quote signs?

I want to redefine the quote environment in such a way to get the output of the following code. \begin{quote}{\tiny\textquotedblleft Text \textquotedblright}\end{quote} I also want to fix the line ...
21
votes
1answer
1k views

Putting quotation marks in TeX document

Have to put double quotes mark for a sentence. I am using Xetex. For the input string ``The work'', the output is also ``The work'' whereas it should be “The work”. Below is the list of packages and ...
1
vote
0answers
75 views

Changed style of caption numbering [duplicate]

Possible Duplicate: Appendix changes sections and figures numbering I have a problem with some captions in a document I am currently working on. Usually when I compile the main file, all ...
4
votes
1answer
2k views

Change separator in Bibtex bibliography from comma to period

I've been editing a Bibtex style, the standard agsm.bst, to match my university's requirements. I've managed to get everything correct, except that the style separates the year, title, and journal ...
3
votes
1answer
1k views

How to replace a hyphen (-) with an en-dash (–) automatically?

I would like to set up my LaTeX (XeTeX) document in such a way so that I could type a hyphen (-, the one on the keyboard) and it would get replaced with an en-dash (–, the "longer" dash) in the ...
20
votes
3answers
11k views

Aligning Decimal Points in Table

I want to align two numbers in two different rows the decimal point. I do see a link for that here: Aligning numbers by decimal points in table columns However, I don't understand how to ...
8
votes
2answers
546 views

How to replace the “.” with “:” in the proof environment?

I have seen a similar post here How to remove the "." in the proof environment?. But I don't know how I can modify the answer to replace . with : by using etoolbox.
7
votes
1answer
267 views

How do I get guillemets in a listing?

I'm wondering if it's possible to use guillemets («») in a lstlisting block? I have seen some solutions for including it in the document, but none with the listings package.
6
votes
1answer
2k views

Can I change the “range” punctuation in siunitx?

When using siunitx, by default, \SIrange{0}{10}{\celsius} will render 0 °C to 10 °C. Is there any general way to change the default rendering of ranges to 0--10 °C (i.e., using an en dash instead of ...
4
votes
2answers
4k views

Linebreak and \enquote

Using the \enquote{} command from the csquotes package my quotes seem to be wrapped to the next line a lot of times like this: This is an "example " sentence. Without the extra whitespace. Now ...
7
votes
2answers
1k views

How does one display straight quotes in the normal font?

From this code: \subsubsection{General Escaping Format} Generally, escaping MUST be done in a manner similar to most programming languages, such as C, C++, Java, or similar, for quoted string ...
6
votes
1answer
310 views

How to add quotation marks to fractions?

As the title says I want to add quotation marks around a fraction in \displaystyle mode. My first try looks very unnatural, as you can see ^{``}\frac{1}{0^-}^" The problem is with the first ...
1
vote
1answer
404 views

How to change the default ':' in subsection to paren ')'?

In latex, when I write , \subsubsection*{a} it produces a: but I want to write a) How should I do this.
5
votes
2answers
847 views

Linebreak between numbers connected by dash

In my text I am using lots of dates. Now I have the following problem: 1480–1541 (two figures and between them a dash) appears at the end of one line and extends over the line into the margin space ...
3
votes
2answers
296 views

How to put a full stop at the bottom, not mid-line, after an aligned matrix?

How can I put a full stop at the bottom rather than at mid-line following the end of an aligned matrix expression such as $\begin{pmatrix} x\\ y \end{pmatrix}$?
8
votes
3answers
2k views

Remove colon in the caption of a figure without using caption package

I know that I can Remove colon in the caption of a figure if the caption is empty when I simply use the caption package. But let's say I am using a journal-specific class (e.g. elsarticle) that has ...
10
votes
2answers
737 views

Replacing all dots in a document

I want to replace all dots in a LaTeX document with a call to a macro. Just doing a search and replace on '.' won't help as this will not replace the dots generated by LaTeX, e.g. in section numbers, ...
9
votes
2answers
2k views

Separation by semicolon instead of comma in biblatex' \cites

I am using biblatex+biber for the bibliography of my thesis. I use the numeric-comp citation style. Overall this works perfectly. I generally use \cite to cite references; but occassionally also ...
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
541 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
735 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
370 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) ?
33
votes
2answers
7k 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
563 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
542 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 ...
32
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 ...
6
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?
13
votes
1answer
682 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
538 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
391 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
298 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
559 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
646 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 ...
46
votes
7answers
15k 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
2k 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
432 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
204 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
643 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} ...
23
votes
1answer
9k 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 ...