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

25
votes
4answers
647 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
171 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
117 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
142 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
136 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
280 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
147 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
346 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
161 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
154 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 ...
17
votes
2answers
4k 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
256 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
632 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
39 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
170 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
239 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
181 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
205 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
478 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
83 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
155 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
463 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
774 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
7k 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 ...
7
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
232 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
681 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
202 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 ...
9
votes
2answers
2k views

To Imply a Dash and not Minus Sign in Math Mode

If I am in Math mode, and I want to name a variable, say max-color, here max and color are treated as two different variables and two spaces are placed around the minus sign. Now, what I really meant ...
6
votes
1answer
688 views

Enclosing issue number in parentheses

In my bibliography, the volume number and issue number is currently printed as "volume.issue" I want to change that to "volume(issue)", e.g., "35(5)". Would this be something to do with ...
8
votes
3answers
834 views

How to convert dots to commas in mathmode?

For my study of physics I have to do various lab reports. Normally I just process all my data using python, gnuplot or Mathematica and copy it from there to my TeX document. Unfortunately all these ...
3
votes
1answer
70 views

How can I make an em-dash to allow for a linebreak on either side?

How can I make an em-dash allow a linebreak on either side? Optionally, how do I preserve the hyphenation points of the word on both sides? The following code allows for refrigerator---refrigerator ...
8
votes
1answer
535 views

\slash allows for hyphenation of only the word on its left; how to fix it for the right-hand word

I often use \slash to allow for linebreak after the slash. However I found that \slash doesn't allow for hyphenation of the word to its right, while it does for the word on its left. How do I use ...
2
votes
3answers
3k views

How to modify APA Biblatex style to look like “elsarticle-harv” style?

I have been using the \bibliographystyle{elsarticle-harv} style for a long time, since I newly swtiched to biblatex and it is only for natbib, so how to modify the default biblatex style or ...
0
votes
1answer
851 views

Standard single quotes for code in listings [duplicate]

In my code, I have curved quotes (see screenshot). Can I replace them with vertical quotes? This is my formatting code: \lstset{% % General design backgroundcolor=\color{lightgray}, ...
17
votes
1answer
289 views

What is the ConTeXt equivalent of LaTeX “\@.”

In English text, TeX follows the convention of putting extra space after a period by default, which I like. However, in the case of abbreviations it causes a problem. To suppress the extra space, ...
9
votes
1answer
310 views

Using BibTeX keys containing parentheses with Biber

I am trying to move to using biblatex with Biber rather than BibTeX. unfortunately, nearly all of my BibTeX entries have keys that include colons and parentheses. like, @BOOK{Chambers+Hastie:(92), ...
11
votes
2answers
337 views

To kern double em-dashes

In Virginia Woolf's novels, she used double em-dashes quite often. In Latin Modern, the two dashes closely set together without gap. However, In ebgaramond there is a little gap which is quite ...
7
votes
3answers
208 views

How to define a new command for guillemets marks [duplicate]

Possible Duplicate: babel shorthand "| doesn’t work in macros I would like to define a new command for guillemets marks. I know how to obtain them in LaTeX and those I would like to ...
5
votes
1answer
169 views

biblatex: exclamation mark in title of bib item interferes with field separator

The following code shows, that an exclamation mark in the title of a bib entry removes the field separator (here: a comma) which separates the title from the journal. How can this be avoided? If the ...
10
votes
2answers
269 views

author name with periods produces Et al

I want to cite this article: @article{kc2010ppe, author = {K.C., Samir and Barakat, B. and Goujon, A. and Skirbekk, V. and Sanderson, W. and Lutz, W.}, journal = {Demographic Research}, number = ...
4
votes
1answer
161 views

punctuation after a fraction in math mode

I use to punctuate my equations. In math mode, when the last "word" is a fraction, I raise the final point using \cdot like in x = \frac{3}{2} \cdot so that the "." is at the same height as the ...
4
votes
2answers
208 views

natbib: modifying citation style for particular source type, while others remain default

I'm using natbib and would like to modify the punctuation style for one particular type of source (classical texts), while punctuation for remaining sources should remain at their default settings. ...
2
votes
1answer
507 views

Remove punctuation (comma) after year

For American Society of Genetics journal (Genetics), the bibliography format is somewhat strange. It requires no parenthesis or comma after year field. Beadle, G. B. et al. 2009 Title of the ...
5
votes
1answer
169 views

Chinese punctuation problem

I am trying to move a Chinese punctuation mark to the head of a character. I am using the following macro, which works fine. But if I redefine the \CJKpunctsymbol, it will be a messy. Can any one help ...
3
votes
1answer
187 views

biblatex-apa: sentence case not working

Biblatex-Apa should automatically print titles in the reference list in sentence case, but for some reason it doesn't work (note the lowercase A after the colon): \documentclass{article} ...
3
votes
1answer
191 views

Quotes missing around title of arXiv papers (biblatex + biber)

I am using biblatex and biber. Here is a sample LaTeX file. \documentclass[11pt]{article} \usepackage[backend=biber,firstinits,style=numeric-comp,maxnames=99]{biblatex} ...