# Tag Info

0

If you have a very reference- and citation-heavy document (say, a thesis or scientific paper), the error can sometimes resolve itself on a second compilation when suddenly all your ? get converted to actual text (Chapter 1 or Jones et al. (1986)). It's not necessarily a great idea to depend on that, but it just means that you might get away with compiling ...

0

Another solution from TeX primitive level: \newread\exfile \openin\exfile=examp_error.txt % the file where "3" or similar is included" \ifeof\exfile \def\experr{} \errmessage{the file examp_error.txt doesn't exist} \else {\endlinechar=-1 \global\read\exfile to\experr}\fi \input lo\experr.txt % does \input lo3.txt or something similar This works in ...

2

There are some issues with the snippet in the question: \input{} is not expandable, because it also checks, if the file exists. The primitive \@@input could be used instead, but there are better ways, see below. \unskip is also not expandable and can therefore not be used as part of a file name. See package trimspaces to remove spaces at the end of a ...

4

You have planted several bugs in your document. The most important one is that you shouldn't load both amsthm and ntheorem (see section 3.2.2 in the manual of ntheorem). Since you're using the syntax of the latter, remove \usepackage{amsthm} You have other minor or less minor bugs, though. \usepackage{times} is overridden by \usepackage{fourier} ntheorem ...

3

Here is a debugged code. The main problem was you loaded both amsthm and ntheorem. I removed amsthm, because I know better ntheorem, it's easier to customise, and it can place automatically the end-of-proof symbol, even when the proof ends up in a displayed equation. hyperef should beloaded before the first theorem declaration. I took the liberty to ...

1

A little bit of modifications to: remove "Chapter 0", change the proposition identifiers, make the lengthy exercises look better \documentclass[a4paper,12pt]{book} % -- math packages \usepackage{amsmath} \usepackage{amssymb} \usepackage[thmmarks, amsmath, thref]{ntheorem} % -- fonts and related \usepackage[utf8]{inputenc} ...

Top 50 recent answers are included