Hot answers tagged

7

I still owe the answer I (more or less) promised in order to show how this issue could be addressed by means of patches to the font metric data. I have put it off until now because the situation we want to cope with is fairly complex and intricate, and deserves a careful explanation. General Discussion The fact that the input --- is translated into an ...


7

With the new luaotfload syntax for the definition of extra font features (from v2.7 on, I guess). Basically, we condone ligaturing the " to ”, but then have a font feature which substitutes ” back to ". It might also be possible to hook into the ligaturing callback to prevent this particular ligature. Disclaimer: I have no idea what I'm doing. \...


7

You should better use \psqq instead of an hard coded ff and customize it to your needs. But at least you should use \adddot instead of a period: \documentclass[a4paper,12pt]{article} \usepackage[english]{babel} \usepackage[authordate,backend=biber]{biblatex-chicago} \addbibresource{test.bib} \DefineBibliographyStrings{english}{% sequens = {f\adddot}, ...


6

It's actually simpler: the period in “ff.” should not be sentence ending, so the rules of LaTeX say it should be followed by \@. \begin{filecontents*}{\jobname.bib} @book{Sievers1893, author = "Eduard Sievers", title = "Altgermanische Metrik", date = "1893", publisher = "Max Niemeyer", address = "Halle", } @book{Kloekhorst2008, author = "Alwin Kloekhorst", ...


5

The position of the angle depends on the material to be typeset inside it. If you want that all \phase command produce the angle as if a comma is in the number, you can patch it as follows \documentclass{article} \usepackage{steinmetz} \usepackage{xpatch} \xpatchcmd{\phase}{#2}{\vphantom{,}#2}{}{} \begin{document} $220\phase{0^{\circ}}$ $220\phase{0{,}5^...


4

To add a dot after the chapter number in the title of the chapter only, you need to patch \@makechapterhead: \usepackage{etoolbox} \makeatletter \patchcmd{\@makechapterhead}% <cmd> {\thechapter}% <search> {\thechapter.}% <replace> {}{}% <success><failure> \makeatother To add a dot after the (any) sectional number in its ...


4

@topskip: Start using ConTeXt again! Other TeX ligatures (-- and ---) are enabled by default, quotes are not! \setupbodyfont[dejavu] \starttext "Heading" \stoptext


3

You want to disable the automatic Ligatures=TeX feature: \documentclass{article} \usepackage{fontspec} \defaultfontfeatures[\rmfamily]{} \setmainfont{DejaVu Serif} \begin{document} "Heading" \end{document}


3

I'd suggest you use \renewcommand*{\labelnamepunct}{% \ifboolexpr{test {\ifentrytype{book}} or test {\ifentrytype{thesis}}} {\addcolon\space} {\addcomma\space}} Then you can get away without patching the drivers and it is slightly more obvious what it is you are doing.


3

Ok. I've come up with an answer based on: biblatex: remove comma after last author only in book In numeric thesis and book driver it is enough to change nametitledelim so I added: \xpatchbibdriver{thesis}{\setunit{\printdelim{nametitledelim}}}{\setunit{\addcolon \addspace} }{}{} \xpatchbibdriver{book}{\setunit{\printdelim{nametitledelim}}}{\setunit{\...


3

I sympathize with you. \documentclass{article} \usepackage{amsmath} \makeatletter \renewcommand{\make@df@tag@@@}[2][]{% \gdef\df@tag{% \tagform@{#2\rlap{\hphantom)#1}}% \toks@\@xp{\p@equation{#2}}% \edef\@currentlabel{\the\toks@}% }% } \makeatother \begin{document} \begin{align*} f(x) &= absuc \tag{First tag} \\ &= abshgi \...


3

Disregarding any style conventions here's a short wrapper` macro -- judge whether this is 'easier': \documentclass{article} \usepackage{etoolbox} \newcommand{\nrange}[4][]{% #2=% \ifblank{#1}{% Optional argument empty? Yes? Then omit the second number in the enumeration #3, \dots ,#4% }{% #3, #1, \dots,#4% }% } \begin{document} $\nrange{k}...


2

Related to something I wrote recently, I would use ,\  in math mode, and just “text mode” when text is involved. I put “” because by text mode I don't mean \text. \newcommand*\mathwords{\textnormal} $\{ x \in A : \mathwords{first condition, second condition, third condition} \}$ $\{ x \in A : x > 0 ,\ x^2 \in B ,\ x^3 \notin C \}$ Something should be ...


2

Never say never, but I can't think of an instance where you should ever have mathematical operators outside of math mode, including =, when you're writing an equation, or otherwise typesetting maths. This seems to be a common mistake that people make. Put the entire formula, equation, expression, mathematical object in math mode. $k = 1, 2, \dots, 25$ $...


1

You can get the curly left quotes with literate, but imho you have to disable the string delimiter to avoid to get the spaces shown. \documentclass{article} \usepackage{listings} \lstset{ language=Java, tabsize=2, numbers=left, basicstyle=\footnotesize, literate={``}{\textquotedblleft}1, deletestring=[b]", , } \begin{document} ...


1

Without going as far as redefining \cvitemwithcomment, you can capture the : and remove it: \documentclass{moderncv} \moderncvstyle{banking} \firstname{First} \lastname{Lastname} \let\oldcvitemwithcomment\cvitemwithcomment \let\oldhintstyle\hintstyle \renewcommand{\cvitemwithcomment}[4]{{% \renewcommand*{\hintstyle}[2]{\oldhintstyle{##1}}% \...


1

The input you show is incorrect (although it normally works by accident, it should be ``hello world'' not ``hello world" with two ' not a " Without a full example, hard to say exactly why you are getting a straight quote in the output



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