New answers tagged

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{"} ...


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} % ...


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, ...


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 ...


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}


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 ...


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 ...


0

To avoid the comma you must modify the unsrt.bib as follows: Replace the following code: FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't := nameptr #1 > { namesleft #1 > { ", " * t * } ...


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 — ...


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 ...


0

@scottkosty, herewith are both files requested. They are separated by double lines of asterisks. Well, it turns out that they are formatted to lines. Also some line ends have been messed up. I imagine this is because of \r\n versus \n or similar. This one works LyX 2.0 created this file. For more info see http://www.lyx.org/ \lyxformat 413 ...


2

I have discovered that in LyX I have to put the minted part of the file into a [ctrl]+[L] box. Only then does it work.



Top 50 recent answers are included