10
votes
1answer
147 views

Hide ^^^^-notation from pdftex

The following example gives when compiled with pdflatex the error ! Text line contains an invalid character. \documentclass{article} \usepackage{ifluatex} \ifluatex \usepackage{fontspec} \fi ...
5
votes
1answer
138 views

Changing page margins in {pdf-,Xe-}TeX

In TeX, changing the \hsize and the \vsize changes the main text size and the page size of the dvi output. When I compile a document with pdftex or xetex, the page size remains at A4. How can I change ...
3
votes
0answers
45 views

How do I create a reading list, and a bibliography in the same document? [closed]

I'm using a latex, bibtex and pdflatex to organise my dissertation. I need to create a references heading for all the texts I have cited in my work. I also need to create a reading list containing all ...
17
votes
1answer
126 views

What primitives can expandably tell us about the current horizontal list?

I've been writing some code that expands macros and catches characters and non-expandable primitives as they reach TeX's stomach, and I encountered an issue: since I gather letters one by one, with ...
25
votes
2answers
396 views

What are lccode and uccode used for?

In TeX, each of the 256 bytes has an associated \lccode and an \uccode, integers in the range [0,255] which indicate among other things how \lowercase and \uppercase act. There are of course a bunch ...
3
votes
1answer
98 views

FMT to CLS Creation in LaTeX

A Few years back we have created fmt format through PDFTEX. Now we have need to update some points in the class file. It is possible again to create fmt to .cls or .dtx files?
3
votes
1answer
841 views

Including a PDF for dvi output

I want to include a multipage-pdf in latex and get .dvi output. I know \include{pdfpages} only works with pdfLaTeX. I can't convert PDF to .eps since it is multi-page. I want to have .dvi output with ...
6
votes
1answer
127 views

Trailing space to end \input| argument

Why do \message{\input|"texlua ..."} and \message{\input|"texlua ..." } give very different results? Notice the extra space before } in the second case. Minimal example to be compiled with pdftex ...
5
votes
3answers
2k views

Compile Tex inside Microsoft C#.net

I know there are some command-line applications like pdflatex that can help me to compile a LaTex document from C#.Net (using the System.Diagnostics.Process class) . I wanna know that what's the ...
9
votes
1answer
998 views

Expansion in \numexpr…\relax versus \pdfstrcmp

The \numexpr...\relax construction in eTeX allows to evaluate numerical expressions, and it expands tokens fully as it goes. The \pdfstrcmp{...}{...} construction in pdfTeX lets us compare two lists ...
10
votes
2answers
628 views

Do XeTeX and LuaTeX always use Unicode?

I am writing some functions to manipulate strings. A typical way to produce a character with a given character code is the \lowercase primitive. The following code produces a character with code 234, ...
8
votes
2answers
153 views

Are \count1, …, \count9 useful?

To quote TeX by Topic, "whenever a \shipout occurs, TeX also writes the values of counters 0–9 to the dvi file and the terminal." Do any dvi viewers or converters (e.g., dvips) make use of ...
4
votes
2answers
308 views

How do I create a pdf file from old tex code?

How can I convert the old tex file below into a pdf? I would very much like to know as I have a few other files that I would like to convert. Thanks. PS: I selected the shortest example I had to ...