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

1
vote
0answers
123 views

Lyx - quotation mark in C program [closed]

I have a problem with double quotation marks in program listing. When I load a file.c as a child document in lyx and set it as program listing, I get error: #include "softSPI.h" undefined control ...
10
votes
1answer
408 views

\@ vs. \␣ after abbreviation. (Read backslash-at vs. backslash-space)

I was used to write abbreviations like foo i.e.\ bar but today learned that I could also write them as foo i.e.\@ bar. Both of these apparently have the effect of keeping the space to its normal ...
2
votes
1answer
292 views

Quotation marks are not appearing adequately

In certain documents of mine, the quotation marks are displayed incorrectly. For instance, while writing down `word', as usual, the word is formatted within two reverse backticks. Some of my other ...
5
votes
2answers
1k views

Vertical dashed line of a custom height

I need a vertically dashed line in my matrix, but my current solution looks like the dashes are going out of the array environment (and they are - i checked in photoshop). Can I manually shorten it by ...
10
votes
1answer
352 views

csquotes: punctuation and quotation marks

csquotes automatically includes or excludes the punctuation marks in or from the quotation depending on the language specified in the preamble. This can be adjusted individually by commands like ...
11
votes
2answers
282 views

Should a negative kern be added after a degree symbol if followed by punctuation?

Not sure why I have not noticed this before, but spacing between a degree unit and punctuation seems strange as shown in red. Should a manual \kern be added (as shown in blue)? Code: ...
13
votes
4answers
614 views

Using commas in mathematical formulas

I need write some formula, but I don't know how to arrange the comma's place. $p,\ q\in N$, blabla $0<a,\ b<1$ blabla $i,\ j=1,\ 2,\ \dots,\ n$ or $p,\;q\in N$, blabla $0<a,\;b<1$ ...
2
votes
4answers
461 views

Putting row of dots in an equation

Is it possible create a system of equations that will look like this: aX(x_0)+bX(x_0)+cX(x_0)=A dX(x_1)+eX(x_1)+fX(x_1)=B ......................... gX(x_n)+hX(x_n)+iX(x_n)=B I tried with this: ...
7
votes
1answer
336 views

Decimal comma: extract one feature from babel-spanish

\usepackage[spanish]{babel} makes $12.34$ to print "12,34", not "12.34". It doesn't change dot to comma if one says for example $x.y$. Can I use only that feature from babel package, and still use ...
5
votes
2answers
208 views

Uneven spacing around ellipsis in $[A_1;\dotsc;A_n]$

I've noticed that when a \dotsc has a semicolon on each side, there's uneven space around the ellipsis created. With \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} ...
6
votes
2answers
211 views

How do I type a Chinese dash in XeLaTex

How do I write a Chinese dash, a two-fullwidth-character long dash? 「——」 looks ugly typset with XeLaTex and the font that I am using (The two parts are not connected and there is a gap in the ...
0
votes
0answers
20 views

biblatex - year in parentheses for references with authoryear? [duplicate]

According to guidelines, besides printing the year in parentheses in the bibliography (which is working by default), I must have the year in parentheses for the references. Also, I have to use ...
2
votes
2answers
491 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)
6
votes
1answer
217 views

biblatex: move backrefpages to after the period

I've used some tips about how to toy with the format of backrefs in biblatex, and I'm seeing that the formatting is quite flexible. In the screenshot below, I've put the backref into a box. That's ...
0
votes
1answer
277 views

How do I change the order of comma and ending double-quote after the title?

An example of a BiBTeX reference of mine @ARTICLE{58, author = {{Craig M. Pratt and Terry Eaton and Marilyn Francis and Antonio Pacifico}}, title = {{Ambulatory Electrocardiographic Recordings: ...
6
votes
1answer
430 views

Overfull \hbox caused by em-dash

There is one problem that currently seems insolvable to me. I am typesetting a book in Russian language and I noticed that, in some cases, an overfull box appears which cannot be solved via manual ...
2
votes
1answer
70 views

XeLaTex: — sign

I use following code: \begin{center} \begin{tabular}[]{llcl} \hline \rowcolor[gray]{.9}\textbf{Parameter} & \textbf{Description} \\\hline -c, --create & Do something\\\hline \end{tabular} ...
2
votes
1answer
687 views

TexShop keeps converting apostrophes into curly ones [duplicate]

Whenever I type something such as The energy's source, TexShop changes the apostrophe into a curly one which does not print in the PDF. How can I stop future apostrophes from being changed without ...
4
votes
1answer
585 views

biblatex - comma with space behind every unit (style=authoryear)

I'd like to have a comma behind every unit in a bibliography entry except the year and at the end of an entry. How can I achieve that? This is what I have so far. \usepackage[ language=auto, ...
25
votes
4answers
668 views

Smart parentheses?

Is there a way of smartly nesting parentheses and square brackets (in text mode), so that LaTeX detects nesting relations and typesets them accordingly? I'm thinking in something like csquotes does ...
7
votes
2answers
183 views

fail to add Chinese punctuation after CJKnumber in chatper title in xeLaTeX

I'm writing my thesis in Chinese with xeLaTeX and I've to format the chapter name and section name. The following command works ok: \usepackage[CJKnumber][xeCJK] ...
2
votes
1answer
123 views

How to prevent \xspace from adding a full space after a period?

I have a little macro that I use for doing adding an e.g. in my writing: \newcommand{\eg}{\emph{e.g.}\xspace} The problem I have is that LaTeX is treating the g. as the end of a sentence and is ...
5
votes
1answer
144 views

Using \@-ified punctuation while using \frenchspacing

After reading this very informative TeX.SE thread about spacing and punctuation, I was left wondering about an issue that didn't seem to be addressed: using \frenchspacing together with the modified ...
0
votes
1answer
151 views

Override quotation style [duplicate]

Is it possible to override the default quotation marks of ``notation''? As a czech user, I have to use \uv{} to have czech styled quotations, which doesn't write so well.
17
votes
1answer
286 views

Is there a method just write `---` to get an em-dash, putting thinspace both before and after it?

Is there a method just write --- to get an em-dash, putting a thinspace both before and after it? The situation about break is similar with the original ---.
9
votes
1answer
151 views

What is the difference between the hyphen-like characters #45 and #127 from the T1 encoding?

What is the difference between the symbols with decimal indices #45 and #127 from the T1 encoding? Character #45 seems to be the ordinary hyphen, but what about #127? The en-dash and em-dash are at ...
2
votes
1answer
363 views

\parencite in footnote: where to put the full stop?

I am not entirely sure, if this question fits the agenda of this site. I you feel that it does not, please accept my apologies. Just a brief question: If I have a footnote with a quote, then ...
1
vote
1answer
171 views

Punctuation in superscripting with Natbib in Xetex

I'm trying to use the achemso package for my bibliography and citations. I'm also trying to using Xetex to use the Minion Pro fonts. When I just typeset with LaTeX and do everything in Computer Modern ...
5
votes
2answers
155 views

Ignoring Punctuation during Comparison

I am trying to compare two strings and ignore punctuation during the comparison. I thought that catcode redefinition would be a good way to proceed. But, obviously, the use of \catcode has a great ...
0
votes
0answers
36 views

How to insert a dot in the section headings? [duplicate]

I am using this macro: \newcommand{\ssection}[1]{\section[1]{\centering #1}} \ssection{BACKGROUND} Result, is centered but there are couple of spaces between 1 and B: 1 BACKGROUND ...
19
votes
2answers
5k 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. ...
13
votes
2answers
2k views

How to quote correctly with csquotes?

I am unsure how to quote correctly using csquotes and \textquote and \blockquote. In the documentation I found this general advise: \blockquote[cite][punct]{text}tpunct but am unsure how to really use ...
2
votes
1answer
266 views

biblatex: why no comma after abbreviated shorttitle?

Sorry, this is only a minor question, but I just realised for the first time that when you cite a bibliographic item which has no shortitle, then -- using style=verbose -- you usually get (apart from ...
2
votes
1answer
693 views

No italics in algorithm2e if-clause

Why does algorithm2e typeset the variables anychange and done in italics, and how can I turn this off? How can I remove the semicolon after done in the until-clause? $\textsf{anychange} \gets ...
2
votes
0answers
40 views

How to get language dependent quotation marks in citations with biblatex? [duplicate]

I cite german and french articles. In my bibliography the titles are given in quotation marks. Now, I would like to have the quotation marks dependent on the language of the article. I thought ...
3
votes
2answers
176 views

Ellipsis without brackets — fine tuning

Very much related to this question and its answer, I would like to ask the following: If I want to indicate omissions in a quotation not by using Text [...] more text. but instead by using Text ... ...
14
votes
1answer
251 views

Dedicated symbol for […] in quotations?

I would like to use [...] in quotations to indicate a part which was not included. Just entering [...] does not render it perfectly in my opinion. Is there a special way of inputing said symbol? ...
1
vote
1answer
183 views

new quote-based environment end spacing [closed]

In order to insert quotations, the document uses a quote-based \newenvironmentx \newenvironmentx{QUOTE}[1][1=.]{% \begin{quote}% \tiny\noindent% \gdef\parQ{#1}``% }{\parQ''% \normalsize% ...
2
votes
1answer
251 views

Texmaker Illegal unit of measure

I've got problems with my Texmaker on Windows 7... I changed some text in the document and configured the colors for my listings. Suddenly Latex throws an error by the optional parameter of the ...
5
votes
2answers
1k views

KOMA-Script scrbook: How to remove period after part

I'm using scrbook to typeset a document and I'm using \part for formatting the parts of it. The default output renders \part{Mytitle} into Part I. Mytitle Now I'd like to get rid of the ...
2
votes
2answers
677 views

How to force csquotes to show the quotations marks in block quotes?

How can I force the csquotes package to always show quotations marks in my block quotes, regardless of the language etc...? Tried this, but no cigar: \usepackage{csquotes}[english=british] % ...
2
votes
1answer
86 views

Is there a way to specify the last connecting punctuation/word of the authors list in apacite?

How can I make apacite use a different connecting punctuation/word between the last 2 authors (in both the article body and bibliography)? Instead of "Johnson, J. B., & Smith, J. (2013). Title of ...
7
votes
1answer
157 views

Why does Context line-break my quotation and leave the quotation sign on it's own row?

Using Context to set a book I have the following problem: Context linebreaks some quotations in a way that makes the quotation sign (in my case a guillemet [sic!]) appear on its own row. How can i ...
45
votes
1answer
471 views

Is it always best practice to not include text punctuation in inline math mode?

It has been pointed out on this site, e.g. here by egreg, that text punctuation doesn't belong to the formula in inline math. I've been following this practice for a long time, so I write for all ...
7
votes
1answer
994 views

Automatically prevent line-break at hyphen of specific words (e.g. “dual-self”)

Usually questions about hyphenation and line-breaks are concerned about how to allow hyphenation when a word already contains a hyphen. That's not what I'm after: I would like to prevent the word ...
9
votes
2answers
8k views

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 ...
8
votes
1answer
2k views

TeXStudio : Disable auto-completion of parentheses

I cannot stand the auto-completion of TeXStudio (formerly TexMakerX) regarding parentheses, braces, etc. I agree auto-completion is useful sometimes, but here it does just not work as I would like. ...
10
votes
2answers
251 views

Math Spacing in the presence of a trailing/non-trailing comma

I thought I knew how to use a \hphantom{} but don't know of an easy way to handle this case due to the comma. I want to get the text aligned for the X row. I added the appropriate \hphantom{{}+1} ...
12
votes
1answer
721 views

Block quote with big quotation marks and opening quote on bottom

I wanted to adapt Block quote with big quotation marks to languages like my natural language German, but also some other mainly Germanic and Slavic languages (c.f. Wikipedia: Non-English usage of ...
5
votes
2answers
216 views

Abbreviations: taking into account spacing AND punctuation [duplicate]

So I'm trying to come up with some good, general definitions for latin abbreviations in my TeX template... What I did up to now is this: \usepackage{xspace} \newcommand{\etc}{etc.\xspace} ..which ...