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

5
votes
2answers
141 views

Comma in front of & in the reference section

I'm handling with a problem concerning referencing and citing sources in APA-Style. Here is my example code: \documentclass[a4paper, 12pt, bibtotoc, liststotoc, pointlessnumbers ...
10
votes
6answers
5k views

Dashed box environment

I am new to LaTeX and I'm having a hard time trying to create a dashed box environment without success. Can someone please share a code for a dashed box environment such as the one in the image? I ...
6
votes
1answer
61 views

Adding parentheses to figure references

Using pretty much no packages, when using the \ref{label of figure} i get just the number of the figure. Is there an easy way to set it to make parentheses around that number? At the moment I have ...
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
408 views

Single quotes in csquotes

I'm using the csquotes package with the modifications recommended by this answer, to detect quotation marks in my text (pasted from Microsoft Word) and make them look good in the output. Is there any ...
3
votes
1answer
142 views

make ``quote'' output as “quote„

I have a document in which everything is quoted in the form: ``quote'' How do I make them appear in the output document as “quote„ thanks
7
votes
1answer
144 views

Defining HTML-like tags as TeX macros

I have to admit, my catcode skill are not that good. I'm working with some templates that will be filled in by a programme (HTML::Template, made for HTML but very handy for LaTeX as well). I'd like ...
2
votes
1answer
242 views

Problem with “and” keyword translation

I'm trying to generate bibliography using bibtex. My problem is that keyword and is not generated to comma. I also want to put First name after Last name. (I'm using Gummi as LaTeX editor). Document: ...
9
votes
2answers
184 views

Hyphenation of words containing apostrophes

My question is plain and simple. Any way to hyphen words such as “Lor'themar”, “Kel'Thuzad”, etc.? Using \hyphenation{Kel'-Thu-zad} gives me this error, for instance when compiling. Error in ...
6
votes
2answers
1k views

Curly quotes in non-default font with xelatex

I have the following: \usepackage{fontspec} \setromanfont [Ligatures={Common}, Numbers={OldStyle}]{Palatino} And compile with this: xelatex main.tex I use: ``word'' But the quotes are never ...
2
votes
2answers
869 views

How to add LaTeX style quotation marks to the Hunspell spell checker?

Quotation marks in LaTeX have to be added with `` and '', but this results in the word being marked as misspelled in Texmaker, which uses Hunspell files (.dic and .aff). I tried adding `` and '' to ...
11
votes
1answer
244 views

Declare acronyms and abbreviations to automatically correct spaces after periods?

If I understand correctly, (La)TeX assumes that a period after a lower-case letter ends a sentence while a period after an upper-case letter does not. Unfortunately, my documents usually contain ...
58
votes
3answers
66k views

What is the LaTeX command for “em dash” (—)?

I am trying to insert the symbol in the title of the question, which I copied from a PDF article, but it appears as space in the output file. What is the corresponding LaTeX command?
1
vote
1answer
62 views

Citation style: pages punctuation

Look at following \autocite-example: \autocite[15]{kant} Immanuel Kant: Freizeitparks im Harz, S. 15. How can I change the comma into a period? For the bibliography it's easy. I can use: ...
8
votes
2answers
226 views

How to get single curved quotation marks in math mode

I know I can get these fancy quotes `abc' I want to get those quotes separately. I know how to get the left one: {`}a But when I try just the right one, I get a different quote then when ...
4
votes
1answer
79 views

Global setting of hyphenation for words containing dashes

I'm using the word "Zwei-Drittel-Abstimmungsmehrheit" a bunch of times in my document. Often it won't fit into the current line, extending into the right margin. I figured out that the following ...
14
votes
2answers
410 views

Automatically add quotes

I would like to create a new environment which will behave similar to quote, but with quotes added. I tried something like this: ...
4
votes
2answers
340 views

Change period after the title

I will loose my nerves here... Please help me with this crazzy bibtex style code. I want to change my bibtex style file in order to change the dot after the authors and the title with the comma: ...
8
votes
1answer
147 views

How can I make my dash work with microtype?

Consider the following definition: \documentclass[a6paper]{article} \usepackage[showframe]{geometry} \usepackage{microtype} \def\Dash{\unskip\thinspace\textemdash\thinspace\ignorespaces\allowbreak} ...
37
votes
5answers
6k views

Adequate hyphenation of words already containing a hyphen

Unlike in English, in German there are quite a few words that contain a hyphen, e.g., "Arbeiter-Unfallversicherung" (workers' accident insurance). By default, (La)TeX will only break such words after ...
0
votes
1answer
260 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: ...
20
votes
1answer
436 views

Why can words with hyphen char not be hyphenated?

Assume I have a word like Baden-Württemberg. TeX can't hyphenate any of these two word parts. Why? why isn't it something like this: where the small ticks indicate possible hyphenation points. A ...
5
votes
1answer
180 views

Package: songs strange opening quotation marks

I'm typesetting a songbook, and I have to cite a title of the original melody just under the current title. \documentclass[a4paper,12pt]{mwart} \usepackage[lyric]{songs} ...
21
votes
3answers
822 views

Can cleveref be made to use the Oxford comma for multiple citations?

Simple question: Is there a simple way to get cleveref to use the Oxford comma? \documentclass{article} \usepackage[standard]{ntheorem} \usepackage{cleveref} \begin{document} ...
8
votes
2answers
142 views

Quotation marks around operator in math mode

I want to create formulae where the \rightarrow is enclosed in double quotation marks and appears like any other word in a formula. What I'm getting instead, are formulae where these quotation marks ...
1
vote
0answers
74 views

Comprehensive list of mathmode dots with explanations

I have read on several occasions that there are differences between the multitude of dots commands that TeX and amsmath offer. However, I am not sure up to this day when to use which, and how critical ...
1
vote
1answer
58 views

Using doublequotes in bibtex fields and babel

I have autocreated (Mendeley - so editing by hand will be rendered useful on the next autocreation of the file) bib-files, which contain e.g. ". Unfortunately, those " are treated as the LaTeX ...
4
votes
0answers
73 views

Using comma as a decimal mark with SageTeX [closed]

There are a lot of questions about how-to use comma instead of dot in standart LaTeX documents. But how i can do this in documents with SageTeX? P.S. I use online editor cloud.sagemath.com
5
votes
1answer
511 views

pgfplots import data from table with comma as decimal separator

I am trying to plot data from data files which are using the comma as decimal separator instead of a point (as is normal in SI style (French version): ...
6
votes
1answer
102 views

\xspace doesn't add whitespace before quotes if they are active

I'm trying to get \xspace to add a whitespace before “ if it is an auto quote using csquotes. Here is an MWE: \documentclass{minimal} \usepackage[autostyle,german=guillemets]{csquotes} ...
5
votes
1answer
166 views

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 ...
5
votes
2answers
218 views

Left and right quotation marks aren't correct when using fontspec

Using XeLaTeX the following document produces the correct result if \setmainfont{Arial} is never called (the quotation marks are proper left- and right-quotation marks). Once I try to set a font (even ...
8
votes
3answers
175 views

Move periods inside quotes in bibliography

I'm writing an article in Norwegian, and the guidelines specify that articles should be quoted in the bibliography as follows: John Doe. 2005. "My article." A Cool Journal 16. My impression is ...
0
votes
1answer
98 views

Hyphen going into margin

I have the following issue with a hyphen going into the margin: As you can see, the Spatio-Temporal word has crossed the margin. How can I fix it in LaTeX? I am using the TeX template at ...
4
votes
2answers
387 views

Biblatex — how to add colon after volume?

How does one place a colon after the volume and before the page range for articles? \documentclass{memoir} \usepackage{biblatex} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} ...
0
votes
0answers
45 views

\AtBeginDocument breaks csquotes nesting - or \xspace won't add space

A couple of months ago, I asked this question because xspace wasn't adding whitespace before an active quote. The apparent solution was to add \AtBeginDocument. However, this breaks csquotes nesting ...
5
votes
1answer
74 views

Should a code sample be followed by a punctuation to conform to the language grammar?

Let's say I have the following text: The first program a computer science student sees is usually program HelloWorld(output); begin WriteLn('Hello, World!'); end. or 10 PRINT "Hello ...
4
votes
1answer
98 views

Multiple series of footnotes with and without period after \thefootnotemark

I am in the final stages of editing a complex document with different series of footnotes — mainly, a normal series using Arabic numerals and a second set using an asterisk. (Because this is a ...
25
votes
6answers
2k views

Automatic german quotation marks

I would like to compile a file according to German standards, in which quotation marks are to be put like this: \glqq text \grqq In my LaTeX document I use quotation marks in the standard way: ...
2
votes
1answer
137 views

Why won't the quotation marks and dash be shown correctly?

I tried to write a document having a dash after a quotation mark. However, pdflatex has problems to show the document correctly. It looks like the second quotation mark is missing and the second dash ...
8
votes
2answers
580 views

Comma in legend in pgfplots

The following code with the comma in the legend entry fails to compile. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} ...
0
votes
1answer
151 views

using csquotes' shorthands in English

Is there a special reason why csquotes' shorthands cannot be used in English text or am I overlooking something? The \enquote command works fine. It's true that English style quotes are amongst the ...
4
votes
1answer
186 views

\footcite and \autocite handle comma differently

biblatex, with verbose-trad2 style, has different behaviors when you use \autocite and \footcite. It is weird because, in this context, \autocite calls \footcite. Here is the problem (look the place ...
3
votes
1answer
99 views

The - (dash) disappears in document url

I have the following problem. I am writing a paper in LaTeX and at some point I am adding a URL as a footnote. It looks like this: ...
18
votes
2answers
4k views

How to properly typeset footnotes/superscripts after punctuation marks?

I find the spacing of footnote marks after punctuation marks quite unsatisfactory, especially with sans serif fonts and compared to the spacing after letters. Example follows: I came up with a ...
2
votes
1answer
264 views

How to delete a full stop on reference ending

According to APA rules, after each reference there must the digital object identification (doi). I use JabRef as a reference manager and for some reason, if I put an article doi on its "doi" field, it ...
4
votes
0answers
155 views

Multilingual document: Problem between babel and csquotes: \MakeOuterQuote{"}

: Line 5 is my problem... I want to use simple quotation marks in a multilingual document with csquotes AND babel, with the help of \MakeOuterQuote{"}, and I need the command \selectlanguage{ngerman} ...
8
votes
1answer
131 views

How can I replace a full stop with an image?

I would like to hide an easter egg in my document by replacing the last full stop of my conclusion with a (vector) image scaled down to pass as a punctuation, almost like a microdot. Is this possible ...
9
votes
1answer
121 views

Inconsistency with period at the end of bib entry with original date

LaTeX apparently treats the same case with two different outputs. When a bib entry has origdate according to the APA style, the string (Original work published xxx) should be appended at the end of ...
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 ...