New answers tagged

1

I provide two counters: one global and one local. With \repeatallpages=3 all pages are repeated three times, but a \repeatpages=4 (any value > 1) would override this for the current page. %% first five lines just for a smaller picture \pdfpageheight=3in \pdfpagewidth=5in \hsize=3in \vsize=1in \font\bbbigfont=cmr17 \bbbigfont %%% \catcode`@=11 \def\...


5

You can't detect that because at the time TeX does page-breaking it has long finished expanding macros. However you can trick it into inserting a rule there for you. If you change your \tablerule to: \def\tablerule{\noalign{% \hrule height .3mm \filbreak\vskip-.3mm \hrule height .3mm}} then each rule will be doubled, but due to the negative \vskip ...


2

Sure, this can be done by “simply hacking” the plain TeX \output routine. Actually, it is sufficient to redefine the \plainoutput macro, which is used by the plain TeX \output routine: \newcount\nbcopies \nbcopies=0 % Used to save the page box in case we need to ship it out several times \newbox\pagebox \def\additionalcopies#1{% \global\nbcopies=#1\relax ...


7

In an \halign, for a given column, TeX measures the natural width of each cell in the column and typesets the cell contents in an implicit \hbox to m where m is the maximum natural width found for all cells in the column. This is where the \hfil and \hss in your alignment preamble play a role: to fill each cell to the maximum natural width within the column. ...


6

The TeXbook p. 114 reads: Since \vsize, \maxdepth, and \topskip are parameters, you can change them at any time; what happens if you do? Well, TeX salts away the values of \vsize and \maxdepth when it prints the “%% line,” i.e., when the first box or insertion occurs on the current page; subsequent changes to those two parameters have no effect until the ...


1

You can debug what is going on by adding \tracingoutput=1 and looking in the log file (or additionally add \tracingonline=1 to see it in output directly). With the code in the question, this gives (with \showboxdepth=1 to suppress further levels of output): Completed box being shipped out [1] \vbox(287.47198+0.0)x284.52756 .\vbox(56.9055+0.0)x44.44453, glue ...


0

I was able to fix the problem by specifying the file name of the font. \font\bf="[cmunsx]" at 14pt \font\rm="[cmunss]" at 11pt \font\tt="[cmuntt]" at 11pt


1

The first \vbox has no notion about the size of the second one, so the \vfill just adds zero glue. If you want alignment at the top, use \vtop. \hbox{ \vtop{ \hbox{1} \hbox{2} \hbox{3} } \vtop{ \hbox{A} \hbox{B} \hbox{C} \hbox{D} \hbox{E} } } \bye But it's rather difficult to understand what you want to achieve.


7

\vbox{ {bottom-left-top} {bottom-left-down} } is the same as \vbox{bottom-left-top bottom-left-down} and sets a paragraph of text, broken into lines \hsize wide. I think you intended \vbox{% \hbox{bottom-left-top}% \hbox{bottom-left-down}% } to vertically stack two hboxes in a vbox.


4

The primitive \hrule is a vertical command; when TeX encounters it, it switches to vertical mode, emitting \par if it is in (unrestricted) horizontal mode. Because of this, it cannot appear inside \hbox. To the contrary, \vrule is a horizontal command, so it triggers starting a paragraph if found in vertical mode. In your case \vrule height 0.4pt width ...


6

You can load amstex (which is recommended if you do much mathematics), but you have to fix the definitions of \dddot (and \ddddot): \input amstex % fix \dddot and \ddddot \begingroup \catcode`@=11 \gdef\dddot#1{{\mathop{\kern0pt #1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@ \hbox{\rm...}\vss}}}} \gdef\ddddot#1{{\mathop{\kern0pt #1}\limits^{\vbox to-1.4\ex@{\...


9

The amstex macros provide this accent. \input amstex $\dddot{a}$ \bye


4

This is assuming pdftex for the image inclusion but otherwise is just using the \parshape tex primitive to specify the cutouts. \parshape takes a list of pairs, left indent and length of line segment. \def\z{one two three four five six seven eight nine ten elevel twelve} \def\zz{Red \z. Green yellow \z. Blue black orange\z} \def\zzz{\zz. \zz. \zz} \...


4

For a long underline you can use \hrulefill inside a box: Some text with no real sense, just to fill \hbox to 6em{\hrulefill} some space. \bye


Top 50 recent answers are included