Tag Info

Hot answers tagged

10

I'm not sure I understand the problem. Here's how it's treated with the macro \@addpunct made available by amsthm: \documentclass{article} \usepackage{amsthm} \makeatletter \newcommand{\macroaddingperiod}[1]{% \emph{#1}\@addpunct{.}% } \makeatother \begin{document} Here we use \macroaddingperiod{on some text} Should we add \macroaddingperiod{a period ...


7

I think this has been answered elsewhere, but I can't find it. Add the following redefinition to your preamble (somewhere after \usepackage{biblatex}) \renewcommand{\finentrypunct}{} This redefines the \finentrypunct macro which, according to the biblatex manual, controls "the punctuation printed at the very end of every bibliography entry, usually a ...


5

You can modify/remove the very last punctuation with: \renewcommand*\finentrypunct{}


4

Here is a solution the does not disable the guillemets in French documents. Thanks to Giordano and David Carlisle for providing all the pieces necessary to assemble the information. AUCTeX thinks any document that loads the class you're using (call it foo.cls) is in French. It thinks that because it has compiled foo.cls into a file (foo.el or foo.elc) that ...


4

the question isn't very clear but \newcomamnd\macroX[1]{} appears to do what you ask.


3

I found a reasonable workaround here on SuperUser (by giordano). The code that fixed it was: (add-hook 'TeX-language-fr-hook (lambda () (setq TeX-quote-language `("francais" "``" "''" ,TeX-quote-after-quote)))) Obviously, this doesn't solve the underlying problem of why AUCTeX is entering French mode when it doesn't need to, but it does put ...


3

From The TeXbook: \discretionary{<pre-break text>}{<post-break text>}{<no-break text>} You could try something like: \newcommand{\sep}{\discretionary{}{}{}} \newcommand{\datasetname}{My\sep long\sep data\sep set\sep name}


2

If there is to be no space before \DD (that is, it is exactly like punctuation) then use your definition as follows: \documentclass{article} \usepackage{xcolor} \newcommand{\DD}{{\color{red}$\circ$}} \begin{document} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lovbabortis\DD\ facilisis sem. Nullam nec mi et neque pharetra sollicitudin. ...


1

Punctuation should never be separated from the preceding word (unless you're French). So Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis\DD{} facilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet\DD{} mi nec ante. is how you should input the code. Note {} in order to have a space after the symbol, ...


1

A possibly “gentle” solution is to input your long words with spaces where the line breaks are allowed. The separator is customizable, here I added an optional argument for changing it at will. I also disabled hyphenation by setting a language with no patterns; this is not necessary if a monospaced font is uses, as usually monospaced fonts disable ...


1

Disclaimer: I discovered regular expressions less than a month ago. This is the easiest way I can think of, since, as others have said, ` and ' are ligatures in the font. This solution works at least in your example. You need a system that lets you use regular expresions. In my case I used my text editor. Here you have, for instance, an online one (I don't ...



Only top voted, non community-wiki answers of a minimum length are eligible