Hot answers tagged

7

The punctuation sign after the name is determined by the function output.check that, in case the name is not empty calls the function output.nonnull. Shortly, output.nonnull prints a comma if we are in the middle of a sentence, or a period or a space. The style uses the variable output.state to store if we are in the middle of a sentence or elsewhere. Thus, ...


7

How about \makeatletter \def\@seccntformat#1{\@ifundefined{#1@cntformat}% {\csname the#1\endcsname\quad}% default {\csname #1@cntformat\endcsname}}% enable indiv. control \newcommand\section@cntformat{\thesection.\quad} \makeatother Feel free to use a different spacing amount than \quad. A full MWE: \documentclass{article} \makeatletter ...


5

You could simply replace all instances of --- in the tex file with --{}-- or, if you prefer, \textendash\textendash{}. In the Computer Modern font family, the outputs of --{}--and --- will be visually indistinguishable as an em-dash is exactly twice as wide as an en-dash. If using LuaLaTeX is an option for you, it's straightforward to set up a small ...


5

Using a \ifx\.... comparison \documentclass{article} \makeatletter \DeclareRobustCommand{\@seccntformat}[1]{% \def\temp@@a{#1}% \def\temp@@b{section}% \ifx\temp@@a\temp@@b \csname the#1\endcsname .\quad% \else \csname the#1\endcsname\quad% \fi } \makeatother \begin{document} \section{Foo} \subsection{Foo} \end{document}


4

Under regular documents, using \pdfstrcmp (e-TeX) should work: \documentclass{article} \makeatletter \renewcommand{\@seccntformat}[1]{% \csname the#1\endcsname% Print sectional counter \ifnum\pdfstrcmp{#1}{section}=0 .\fi% If \section, print . \quad% Space between number and title } \makeatother \begin{document} \section{A section} \subsection{A ...


3

The fact you're using babel-french has nothing to do with the problem. Straight quotes are very rarely used in typography, so when you type the ' character, you get a curly glyph that serves both as a closing quote and as apostrophe. If you want a straight quote, you can use the glyph provided by textcomp. \documentclass{report} \usepackage[T1]{fontenc} % ...


2

The character " is made active, to expand to a double opening or closing quote (context depending). However, the typewriter font in OT1 encoding has a backslash where the text fonts have the double opening quote. Solution: \documentclass[12pt]{article} %make " quotation marks \usepackage[english]{babel} \usepackage{csquotes} \MakeOuterQuote{"} ...


2

if you use xepersian package, the better way is to set SepMark as follows: \usepackage{xepersian} \SepMark{-} This way the direction of the numbers is also kept!


2

Mixing a little bit of other answers. I would use utf8 characters, and I would use them correctly, hyphen when an hyphen is there, en-dash when an en-dash is there, and em-dash when an em-dash is there. And then change the output of those symbols. Personally, I would load \usepackage[utf8]{inputenc} and then make a search & replace of --- into — ...


1

I contacted the maintainer of the natbib package. For completeness, I'm posting the response that I was given. This is an issue that cannot be easily solved. The whole \citet with superscripted numerals was a complicated programming problem, since it is radically different from regular numerical citations. The problem was to add the authors to the ...



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