Tag Info

New answers tagged

2

Using the latest TeX Live 2014 (with xeCJK 2014/06/20 v3.2.13), there is no error. It is a very old bug of xeCJK, and is roughly fixed since TeX Live 2013 (with xeCJK 2013/05/28 v3.2.1). There may be still some special situations that xeCJK cannot handle well, but you can hardly meet the issue now. Anyway, it is always preferred to use an empty line to ...


4

Regarding the inputenc question Your example works without problem if I copy it in an utf8-document and declare the inputenc encoding accordingly as utf8. Ditto with ansinew. I can't really imagine how you could get the output in your image -- it can be created but imho not with the standard files. None of them would replace non-ascii chars with question ...


2

this is the kind of job I use to do sometimes. Well, there are few tools you can use for solve this. Maybe the best and automatic way is with pandoc, but sincerely the truth is that I have not tested enough and have not had a satisfactory experience with it yet. Another choice is to do what @Bernard suggests. Formerly I used AbiWord for open doc files and ...


1

Pandoc is a command-line tool that can covert docx files to LaTeX files. As for dealing with ellipses and quote marks, I think that the best way to handle those is using the search and replace function in your LaTeX editor.


4

You can have the straight quotes, provided you use some tricks. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{textcomp} \usepackage{amssymb,amsmath,amsfonts} \usepackage{algorithm,algpseudocode} \usepackage{etoolbox} % for the trick % setup algorithmic to use straight quotes ...


2

Here's the active character approach, also using textcomp. \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} \setlength\PreviewBorder{2mm} \usepackage[utf8]{inputenc} % this is needed for umlauts \usepackage[ngerman]{babel} % this is needed for umlauts \usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf ...


1

You could probably make the quotes active, but I suggest wrapping them in a macro (a reference would be given in Straight quotes?): \documentclass{article} \usepackage[utf8]{inputenc} % this is needed for umlauts \usepackage[ngerman]{babel} % this is needed for umlauts \usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf ...


1

The following is almost the same as @werners answer, with a slight difference. With the option appendixprefix you get the prefix appendix just before the number. This contradicts with having the title on the same line (this is the way it is implemented). The main idea is the same, patching \@@makechapterhead as there happens the magic. At first i saved just ...


4

Here's how you can obtain the output you're after in the KOMA-script classes: \documentclass[appendixprefix=true]{scrreprt} \usepackage{etoolbox} \makeatletter \g@addto@macro{\appendix}{% \patchcmd{\@@makechapterhead}% <cmd> {\endgraf\nobreak\vskip.5\baselineskip}% <search> {\hspace*{-.5em}:\space}% <replace> {}{}% ...


4

In the case outlined biblatex uses a macro called \blx@usqcheck which it uses for US-style quotations with 'moving' punctuation. This checks ahead for punctuation, spaces and so on but also includes a check: \if\noexpand\@let@token\relax \blx@usqcheck@i\blx@tempb \fi where the \blx@usqcheck@i\blx@tempb does not insert any closing quote mark but saves if ...


6

The standard way to do this, I believe, is to use '~' between Mr./Mrs./Dr. and the following name. This has two effects: it eliminates the extra space, as you want, and also prevents the person's title and their name from being split on two separate lines. For instance: I was talking to Dr.~Sparks yesterday, who said\ldots If you just want a single ...



Top 50 recent answers are included