Tag Info

Hot answers tagged

13

Why not go the SI way ;) \documentclass{article} \usepackage[detect-all]{siunitx} \begin{document} This is a range from \numrange{1}{10}. This is a range from \numrange[range-phrase = --]{1}{10}. \end{document} Here is some more. \documentclass{article} \usepackage[detect-none]{siunitx} \sisetup{range-phrase = \text{--}} \begin{document} This ...


7

The design of Palatino is not really compatible with Charter. There is a free version of a math font compatible with Charter, available with mathdesign. \documentclass{article} \usepackage[charter]{mathdesign} \usepackage{XCharter} \newcommand{\numberset}[1]{\mathbb{#1}} \newcommand{\C}{\numberset{C}} \begin{document} The polynomial ring $\C[x,y,z]$ has ...


7

Well, the documentation of koma-script helped me to find a solution after all: \documentclass{scrbook} \renewcommand{\partheadmidvskip}{\enskip} \renewcommand{\partformat}{\thepart\autodot} \setkomafont{partnumber}{\usekomafont{part}} \begin{document} \part{This Is Part One} \end{document} However, since I am not a very experienced user of LaTeX I ...


6

The problem seems to lie with biblatex's punctuation tracker. Since author is a required field for @incollections, biblatex can - in a way - expect there to be one. (As a matter of fact, that is not the best of ideas, especially since @incollection is alias for @inreference in the standard styles, and @inreference entries don't always have authors one can ...


6

Indeed, the font family name has changed. You can use \newcommand*\quotefont{\fontfamily{LinuxLibertineT-TLF}} % selects Libertine for quote font I suggest also to change \kern0pt into \kern4pt or something else that avoids the quote bumping in the first character. Note that \RequirePackage is not needed: the option to xcolor can be passed in the ...


6

Some years ago, the package xltxtra was recommended for usage with XeLaTeX, but it isn't any more. To the contrary, it is not recommended to load xltxtra, unless you really need its extra functions (you usually don't). The \setromanfont command has been deprecated some years ago, favoring the clearer command \setmainfont. The Mapping=tex-text option has ...


5

Maybe I'm missing something but why not define your active characters to use \MakeBlockQuote instead? I guess this doesn't allow you to specify inner/outer marks specifically but if csquotes is taking care of the nesting in any case, perhaps that is not too much of a problem. (I define both outer and inner but never actually use the inner ones for just this ...


4

Why use math mode? I would do as suggested here and write She has 1 to 5 cookies on her at all times. (She has between 1 and 5 cookies on her at all times.) From wikipedia (Dash article): Various style guides (including the Guide for the Use of the International System of Units (SI) and the AMA Manual of Style) recommend that when a number range ...


3

In LaTex, the hyphen used for ranges like pages of a book, etc. is referred to as an en-dash and is best written as: She has between 1--5 cookies on her at all times. It is also possible to use the math mode as follows but the first approach is preferable: She has between $1$--$5$ cookies on her at all times. Or: She has between $1\textup{--}5$ cookies ...


3

You seem to have confused the punctuation tracker. Try if it works if you use \bibopenbracket and \bibclosebracket and replace the \space by \setunit{\addspace} or \setunit*{\addspace}. The \setunit{\addspace\bibopenbracket} that you mention in your comment looks a bit dubious but without minimal example I can't test why you think that you need it.


2

You can use the biblatex/csquotes quotation command \mkbibquote. So your example would look like this title = {This Book Title Ends in \mkbibquote{Quotation Marks}} This solution, unfortunately, comes at the cost of making the .bib file somewhat dependent on biblatex. See also the advice in the biblatex-chicago documentation on pp. 49-50 about ...


2

Your code is not particularly minimal, since most of the packages in your preamble have nothing to do with the problem you've identified. When I put works with quotation marks in my .bib file, I've always just used the standard LaTeX method of typing `` and ''. That has always worked for me, and it works in this case, too. Why are you using \mkbibquote ...


2

You can define a specific font command in fontspec just for punctuation. In this example I create an \englishfont family for Latin script (your commands for this were not quite right), then I create a command \punct just for punctuation that uses the \englishfont. It takes one argument, which could be any string you want in the other font, such as ...


1

You may use \newunicodechar in a more complicated way to check whether the next character is the same. We need a different active character (here ?) because \newunicodechar already uses ~ internally. \documentclass[twoside]{report} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage{hindi} \setotherlanguage{english} ...


1

Neither option is correct, for several reasons. "Between 1–5 cookies" reads as "between one to five cookies", which doesn't make sense. You mean either "Between 1 and 5 cookies" or "1–5 cookies". Most style guides for English recommend writing small numbers (less than ten, twenty or a hundred, depending on who you ask) in words, rather than in ...


1

What about \renewcommand*{\partformat}{\thepart\autodot} ? If you provide an example, we can test... Edit: @cgnieder, tohecz, Jubos, who deleted my first answer: This is an answer, it solves the OP's question partially. There is no reason to close it. Go and help people who have questions. E.g., solve this question here.


1

There is no possibility to set this behavior with an option. You would need to hack KOMAScript. Copy the class-file scrbook.cls to the same directory as your tex-document. Rename it, e.g. to mybook.cls The lines you want to change are 100 and 2533, also you need to comment out the lines 2529-2532, these are the lines, where the Part I-Line is created. In ...



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